* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #08111f;
    color: #fff;
}
.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}
.layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.panel {
    background: rgba(13, 23, 41, 0.95);
    border: 1px solid #1f3357;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}
.panel-inner {
    padding: 20px;
}
.hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 20px;
}
h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.1;
}
.subtitle {
    color: #b9c7df;
    margin-top: 10px;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
button {
    border: 0;
    border-radius: 16px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.btn-primary { background: #22c55e; color: #07120a; }
.btn-secondary { background: #334155; color: white; }
.btn-outline { background: transparent; color: white; border: 1px solid #40557d; width: 100%; }
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.stat-box {
    background: #162339;
    border-radius: 18px;
    padding: 14px;
}
.stat-label { color: #9db0cf; font-size: 13px; }
.stat-value { margin-top: 6px; font-size: 26px; font-weight: 700; }
.progress-wrap {
    height: 12px;
    background: #162339;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}
.progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #38bdf8, #22c55e);
}
.game-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 920 / 520;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid #2f5d8f;
    background: linear-gradient(to bottom, #7dd3fc 0%, #1d4ed8 38%, #082f49 100%);
}
.shore {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.65), rgba(255,255,255,0.05));
}
.water-line {
    position: absolute;
    top: 117px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.7);
}
.sun {
    position: absolute;
    left: 100px;
    top: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(254, 240, 138, 0.75);
    filter: blur(10px);
}
.boat {
    position: absolute;
    left: 112px;
    top: 54px;
    width: 100px;
    height: 12px;
    background: #7c3f14;
    border-radius: 20px;
}
.boat::after {
    content: '';
    position: absolute;
    left: 14px;
    top: -6px;
    width: 40px;
    height: 8px;
    background: #b45309;
    border-radius: 10px;
}
.hook-line {
    position: absolute;
    width: 3px;
    background: rgba(255,255,255,0.95);
}
.hook {
    position: absolute;
    font-size: 30px;
    line-height: 1;
}
.fish {
    position: absolute;
    line-height: 1;
    user-select: none;
    will-change: transform, left, top;
}
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}
.overlay.hidden { display: none; }
.overlay-box { max-width: 520px; }
.overlay-title { font-size: 34px; font-weight: 800; margin: 8px 0; }
.overlay-text { color: #e2e8f0; }
.big-emoji { font-size: 42px; }
.mt-16 { margin-top: 16px; }
.mb-24 { margin-bottom: 24px; }
.catch-text {
    position: absolute;
    left: 160px;
    top: 96px;
    color: #fde68a;
    font-size: 26px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(10px);
    transition: all .2s ease;
}
.catch-text.show {
    opacity: 1;
    transform: translateY(-8px);
}
.sidebar-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 16px;
}
.input-label {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 8px;
    display: block;
}
.text-input {
    width: 100%;
    background: #162339;
    color: white;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 15px;
}
.guide {
    background: #162339;
    border-radius: 18px;
    padding: 14px 16px;
    color: #dbe7fb;
    margin-top: 16px;
}
.guide-title { font-weight: 700; }
.guide ul { margin: 10px 0 0 18px; padding: 0; }
.guide li { margin-bottom: 8px; color: #c8d5ea; }
.leaderboard-list { display: flex; flex-direction: column; gap: 10px; }
.leaderboard-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #162339;
    border-radius: 18px;
    padding: 14px;
}
.rank-name { font-weight: 700; }
.rank-time { color: #8fa5ca; font-size: 12px; margin-top: 6px; }
.rank-score { color: #fde047; font-size: 24px; font-weight: 800; }
.leaderboard-note { margin-top: 14px; }
.muted { color: #8fa5ca; }
@media (max-width: 1024px) {
    .layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .page { padding: 14px; }
    h1 { font-size: 30px; }
    .hero { flex-direction: column; align-items: start; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .overlay-title { font-size: 28px; }
}
