/* ═══════════════════════════════════════════════════════════════
   N E O N   D E F E N S E — style.css
   Full retro-futuristic neon UI styling
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-deep: #020210;
    --bg-panel: #08081A;
    --bg-card: #0c0c22;
    --bg-btn: #10102a;
    --border-cyan: #00b4c8;
    --border-dim: #1a1a40;
    --cyan: #00ffff;
    --magenta: #ff00ff;
    --pink: #ff3296;
    --green: #32ff64;
    --gold: #ffd700;
    --orange: #ffa028;
    --ice: #96dcff;
    --blue: #5078ff;
    --red: #ff3232;
    --text: #c8c8dc;
    --text-dim: #606080;
    --text-bright: #e8e8f0;
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background: var(--bg-deep);
    font-family: var(--font-mono);
    color: var(--text);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ─── Game Container ──────────────────────────────────────── */
.game-container {
    display: flex;
    flex-direction: row;
    border: 1px solid var(--border-cyan);
    box-shadow: 0 0 30px rgba(0, 180, 200, 0.15), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.game-container.hidden { display: none; }

#gameCanvas {
    display: block;
    background: #040410;
    image-rendering: pixelated;
    cursor: crosshair;
}

/* ─── Sidebar ─────────────────────────────────────────────── */
.sidebar {
    width: 280px;
    height: 960px;
    background: var(--bg-panel);
    border-left: 2px solid var(--border-cyan);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border-dim) var(--bg-panel);
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: var(--bg-panel); }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-dim); border-radius: 3px; }

/* ─── Sidebar Header ─────────────────────────────────────── */
.sb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 6px;
    border-bottom: 1px solid var(--border-dim);
}
.sb-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--pink);
    text-shadow: 0 0 10px rgba(255, 50, 150, 0.5);
    letter-spacing: 2px;
}
.sb-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sb-icon-btn {
    background: none;
    border: 1px solid var(--border-dim);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sb-icon-btn:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}
.speed-badge {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--orange);
    background: rgba(255, 160, 40, 0.12);
    border: 1px solid var(--orange);
    padding: 2px 6px;
    border-radius: 3px;
    animation: pulse-glow-orange 1.5s ease-in-out infinite;
}
.speed-badge.hidden { display: none; }

@keyframes pulse-glow-orange {
    0%, 100% { box-shadow: 0 0 4px rgba(255, 160, 40, 0.3); }
    50% { box-shadow: 0 0 12px rgba(255, 160, 40, 0.6); }
}

/* ─── Resources ───────────────────────────────────────────── */
.sb-resources {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-dim);
}
.res-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
}
.res-label {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
    width: 48px;
}
.res-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}
.res-wave { color: var(--magenta); text-shadow: 0 0 8px rgba(255, 0, 255, 0.4); }
.res-gold { color: var(--gold); text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.res-lives { color: var(--green); text-shadow: 0 0 8px rgba(50, 255, 100, 0.4); }
.res-lives.warning { color: #ffdd44; text-shadow: 0 0 8px rgba(255, 220, 60, 0.5); }
.res-lives.critical { color: var(--red); text-shadow: 0 0 12px rgba(255, 50, 50, 0.6); animation: pulse-crit 0.8s infinite; }
@keyframes pulse-crit { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.res-status {
    font-size: 11px;
    color: var(--text-dim);
    margin-left: auto;
}
.res-status.active { color: var(--cyan); }
.res-status.preparing { color: var(--orange); }

.gold-delta {
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.3s;
}
.gold-delta.positive { color: var(--green); }
.gold-delta.negative { color: var(--red); }

/* ─── Wave Control ────────────────────────────────────────── */
.sb-wave-control {
    padding: 6px 14px 8px;
    border-bottom: 1px solid var(--border-dim);
}
.wave-cd-bar {
    position: relative;
    height: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 3px;
    margin-bottom: 6px;
    overflow: hidden;
}
.wave-cd-bar.hidden { display: none; }
.wave-cd-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(0,180,200,0.3), rgba(0,255,255,0.15));
    transition: width 0.15s linear;
}
.wave-cd-text {
    position: absolute;
    top: 0; left: 8px;
    line-height: 18px;
    font-size: 11px;
    color: var(--cyan);
}
.btn-send-early {
    width: 100%;
    padding: 8px 10px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan);
    background: rgba(0, 180, 200, 0.08);
    border: 1px solid var(--cyan);
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
    animation: pulse-glow-cyan 2s ease-in-out infinite;
}
.btn-send-early:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.4);
}
.btn-send-early.hidden { display: none; }
.early-bonus { color: var(--gold); margin-left: 6px; }

@keyframes pulse-glow-cyan {
    0%, 100% { box-shadow: 0 0 4px rgba(0, 255, 255, 0.2); }
    50% { box-shadow: 0 0 12px rgba(0, 255, 255, 0.4); }
}

/* ─── Sections ────────────────────────────────────────────── */
.sb-section {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-dim);
}
.sb-section-title {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--border-cyan);
    letter-spacing: 2px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 180, 200, 0.2);
}
.sb-tower-panel {
    flex: 1;
    min-height: 180px;
    border-bottom: none;
}

/* ─── Research ────────────────────────────────────────────── */
.research-progress {
    position: relative;
    height: 22px;
    background: var(--bg-card);
    border: 1px solid var(--blue);
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}
.research-progress.hidden { display: none; }
.res-prg-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(80, 120, 255, 0.3), rgba(80, 120, 255, 0.15));
    transition: width 0.15s;
}
.res-prg-text {
    position: absolute;
    top: 0; left: 8px;
    line-height: 22px;
    font-size: 11px;
    color: var(--blue);
}

.research-tracks {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.research-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 5px 8px;
    background: var(--bg-btn);
    border: 1px solid var(--border-dim);
    border-radius: 3px;
    cursor: pointer;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12px;
    transition: all 0.15s;
}
.research-btn:hover:not(.disabled) {
    border-color: var(--green);
    box-shadow: 0 0 8px rgba(50, 255, 100, 0.2);
}
.research-btn.disabled {
    opacity: 0.5;
    cursor: default;
}
.research-btn.active-research {
    border-color: var(--blue);
    background: rgba(80, 120, 255, 0.08);
}
.rk-name { flex: 1; text-align: left; }
.rk-level { color: var(--text-dim); margin-right: 8px; font-size: 11px; }
.rk-cost { font-size: 11px; min-width: 48px; text-align: right; }
.rk-cost.affordable { color: var(--gold); }
.rk-cost.unaffordable { color: var(--text-dim); }
.rk-cost.maxed { color: var(--text-dim); }
.rk-cost.researching { color: var(--blue); }

/* ─── Tower Buttons ───────────────────────────────────────── */
.tower-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tower-btn {
    display: block;
    width: 100%;
    padding: 6px 8px;
    background: var(--bg-btn);
    border: 1px solid var(--border-dim);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text);
    font-family: var(--font-mono);
    text-align: left;
    transition: all 0.15s;
}
.tower-btn:hover:not(.unaffordable) {
    border-color: var(--tw-color);
    box-shadow: 0 0 10px var(--tw-glow);
    background: rgba(255, 255, 255, 0.03);
}
.tower-btn.selected {
    border-color: var(--tw-color);
    box-shadow: 0 0 14px var(--tw-glow), inset 0 0 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.04);
}
.tower-btn.unaffordable {
    opacity: 0.4;
    cursor: default;
}
.tw-header {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tw-hotkey {
    display: inline-block;
    width: 18px; height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
    font-family: var(--font-display);
    color: var(--text-dim);
    border: 1px solid var(--border-dim);
    border-radius: 3px;
}
.tw-name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--tw-color);
}
.tw-cost {
    margin-left: auto;
    font-size: 13px;
    color: var(--gold);
}
.tw-desc {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
    padding-left: 24px;
}

/* ─── Tower Panel (selected tower info) ───────────────────── */
.tower-panel {
    min-height: 140px;
}
.tower-panel-empty {
    color: var(--text-dim);
    font-size: 12px;
    text-align: center;
    padding: 20px 10px;
}
.tp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.tp-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--tw-color);
    text-shadow: 0 0 6px var(--tw-color);
}
.tp-level {
    font-size: 11px;
    color: var(--gold);
}
.tp-desc { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.tp-stats { font-size: 11px; color: var(--text); margin-bottom: 2px; }
.tp-stats-extra { font-size: 10px; color: var(--ice); margin-bottom: 4px; }
.tp-hint { font-size: 11px; color: var(--text-dim); font-style: italic; }
.tp-stat { font-size: 11px; color: var(--text); }
.tp-tracker { font-size: 10px; color: var(--text-dim); margin: 4px 0; }

/* HP */
.tp-hp { margin: 6px 0; }
.tp-hp-text { font-size: 11px; }
.tp-hp.hp-good .tp-hp-text { color: var(--green); }
.tp-hp.hp-warn .tp-hp-text { color: #ffdd44; }
.tp-hp.hp-crit .tp-hp-text { color: var(--red); }
.tp-hp-bar {
    height: 8px;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 2px;
    margin-top: 2px;
    overflow: hidden;
}
.tp-hp-fill { height: 100%; transition: width 0.2s; }
.tp-hp.hp-good .tp-hp-fill { background: var(--green); }
.tp-hp.hp-warn .tp-hp-fill { background: #ffdd44; }
.tp-hp.hp-crit .tp-hp-fill { background: var(--red); }

/* Progress bar */
.tp-progress {
    position: relative;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 3px;
    margin: 6px 0;
    overflow: hidden;
}
.tp-prg-fill {
    height: 100%;
    transition: width 0.15s;
}
.tp-prg-building { background: rgba(0, 255, 255, 0.2); }
.tp-prg-upgrading { background: rgba(50, 255, 100, 0.2); }
.tp-prg-branching { background: rgba(255, 215, 0, 0.2); }
.tp-prg-repairing { background: rgba(100, 255, 150, 0.2); }
.tp-prg-label {
    position: absolute;
    top: 0; left: 8px;
    line-height: 28px;
    font-size: 11px;
    color: var(--text-bright);
}

/* Action buttons */
.tp-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}
.tp-btn {
    width: 100%;
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    border: 1px solid;
}
.tp-btn.disabled { opacity: 0.4; cursor: default; }
.tp-btn-repair { color: var(--green); background: rgba(100, 255, 150, 0.06); border-color: rgba(100, 255, 150, 0.3); }
.tp-btn-repair:hover:not(.disabled) { box-shadow: 0 0 8px rgba(100, 255, 150, 0.3); }
.tp-btn-upgrade { color: var(--green); background: rgba(50, 255, 100, 0.06); border-color: rgba(50, 255, 100, 0.3); }
.tp-btn-upgrade:hover:not(.disabled) { box-shadow: 0 0 8px rgba(50, 255, 100, 0.3); }
.tp-btn-branch {
    color: var(--gold); background: rgba(255, 215, 0, 0.06); border-color: rgba(255, 215, 0, 0.3);
    display: flex; flex-direction: column;
}
.tp-btn-branch:hover:not(.disabled) { box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
.br-key { font-weight: bold; }
.br-desc { font-size: 10px; color: var(--text-dim); margin-top: 1px; }
.br-cost { font-size: 11px; color: var(--gold); margin-top: 2px; }
.tp-branches { display: flex; gap: 4px; }
.tp-branches .tp-btn-branch { flex: 1; }
.tp-btn-aim { color: var(--magenta); background: rgba(255, 0, 255, 0.06); border-color: rgba(255, 0, 255, 0.3); }
.tp-btn-aim:hover { box-shadow: 0 0 8px rgba(255, 0, 255, 0.3); }
.tp-btn-sell { color: #cc6060; background: rgba(200, 60, 60, 0.06); border-color: rgba(200, 60, 60, 0.3); }
.tp-btn-sell:hover { box-shadow: 0 0 8px rgba(200, 60, 60, 0.3); }
.tp-maxed { font-size: 11px; color: var(--text-dim); padding: 4px 0; }

/* ─── Messages ────────────────────────────────────────────── */
.message-area {
    padding: 4px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hud-message {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    border-left: 2px solid var(--pink);
    background: rgba(255, 50, 150, 0.06);
    color: var(--pink);
    transition: opacity 0.3s;
}
.hud-msg-gold { border-left-color: var(--gold); color: var(--gold); background: rgba(255, 215, 0, 0.06); }
.hud-msg-warn { border-left-color: var(--red); color: var(--red); background: rgba(255, 50, 50, 0.06); }
.hud-msg-success { border-left-color: var(--green); color: var(--green); background: rgba(50, 255, 100, 0.06); }

/* ─── Tooltip ─────────────────────────────────────────────── */
.hud-tooltip {
    display: none;
    position: fixed;
    z-index: 1000;
    background: #0a0a24;
    border: 1px solid var(--border-cyan);
    border-radius: 6px;
    padding: 10px 14px;
    min-width: 180px;
    max-width: 240px;
    box-shadow: 0 0 20px rgba(0, 180, 200, 0.3);
    pointer-events: none;
}
.tt-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.tt-desc { font-size: 11px; color: var(--text-dim); margin-bottom: 6px; }
.tt-stat { font-size: 11px; color: var(--text); padding: 1px 0; }
.tt-note { font-size: 10px; color: var(--magenta); margin-top: 4px; font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   OVERLAYS
   ═══════════════════════════════════════════════════════════ */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-deep);
}
.overlay.hidden { display: none; }
.overlay-dim { background: rgba(2, 2, 16, 0.82); }

/* Scanlines */
.scanlines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    z-index: 1;
}

/* ─── Menu ────────────────────────────────────────────────── */
.menu-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 560px;
    width: 100%;
    padding: 20px;
}
.menu-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 900;
    color: var(--cyan);
    text-shadow: 0 0 40px rgba(0, 255, 255, 0.5), 0 0 80px rgba(0, 255, 255, 0.2);
    letter-spacing: 6px;
    line-height: 1.1;
    margin-bottom: 8px;
    animation: title-glow 3s ease-in-out infinite;
}
@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 30px rgba(0, 255, 255, 0.4), 0 0 60px rgba(0, 255, 255, 0.15); }
    50% { text-shadow: 0 0 50px rgba(0, 255, 255, 0.7), 0 0 100px rgba(0, 255, 255, 0.3); }
}
.menu-subtitle {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--magenta);
    letter-spacing: 8px;
    margin-bottom: 16px;
    text-shadow: 0 0 12px rgba(255, 0, 255, 0.4);
}
.menu-divider {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-cyan), transparent);
    margin: 16px auto;
}
.menu-keys {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.8;
    margin-top: 12px;
}
.menu-section-title {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.menu-btn {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--cyan);
    background: rgba(0, 180, 200, 0.08);
    border: 2px solid var(--cyan);
    border-radius: 6px;
    padding: 12px 32px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.2s;
    display: inline-block;
    margin: 6px;
}
.menu-btn:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.4);
    transform: translateY(-1px);
}
.menu-btn-quit {
    color: var(--red);
    border-color: var(--red);
    background: rgba(255, 50, 50, 0.06);
}
.menu-btn-quit:hover {
    background: rgba(255, 50, 50, 0.15);
    box-shadow: 0 0 24px rgba(255, 50, 50, 0.4);
}

.pulse-btn {
    animation: pulse-glow-cyan 2s ease-in-out infinite;
}

/* ─── Leaderboard ─────────────────────────────────────────── */
.leaderboard-table {
    text-align: left;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-dim) transparent;
}
.lb-loading {
    text-align: center;
    color: var(--text-dim);
    padding: 20px;
    font-size: 12px;
}
.lb-header, .lb-row {
    display: grid;
    grid-template-columns: 36px 1fr 60px 60px 60px;
    padding: 5px 10px;
    font-size: 12px;
    align-items: center;
}
.lb-header {
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-dim);
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    background: var(--bg-deep);
}
.lb-row {
    border-bottom: 1px solid rgba(26, 26, 64, 0.5);
    transition: background 0.15s;
}
.lb-row:hover { background: rgba(0, 180, 200, 0.06); }
.lb-row:nth-child(even) { background: rgba(255, 255, 255, 0.01); }
.lb-row:nth-child(even):hover { background: rgba(0, 180, 200, 0.06); }
.lb-rank { font-family: var(--font-display); font-weight: 700; }
.lb-row.rank-1 .lb-rank { color: var(--gold); text-shadow: 0 0 6px rgba(255, 215, 0, 0.5); }
.lb-row.rank-2 .lb-rank { color: #c0c0e0; }
.lb-row.rank-3 .lb-rank { color: #cd7f32; }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-bright); }
.lb-row.rank-1 .lb-name { color: var(--gold); }
.lb-waves { color: var(--magenta); text-align: center; }
.lb-kills { color: var(--cyan); text-align: center; }
.lb-time { color: var(--text-dim); text-align: center; }
.lb-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 20px;
    font-size: 12px;
}

/* ─── Pause ───────────────────────────────────────────────── */
.pause-box {
    text-align: center;
    background: rgba(8, 8, 26, 0.95);
    border: 2px solid var(--cyan);
    border-radius: 12px;
    padding: 40px 60px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
}
.pause-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}
.pause-keys {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* ─── Game Over ───────────────────────────────────────────── */
.gameover-box {
    text-align: center;
    background: rgba(8, 8, 26, 0.95);
    border: 2px solid var(--red);
    border-radius: 12px;
    padding: 30px 50px;
    max-width: 480px;
    box-shadow: 0 0 40px rgba(255, 50, 50, 0.2);
}
.gameover-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    color: var(--red);
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(255, 50, 50, 0.5);
    letter-spacing: 4px;
}
.gameover-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    margin-bottom: 16px;
}
.go-stat {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.go-label { color: var(--text-dim); font-size: 12px; }
.go-val { color: var(--text-bright); font-family: var(--font-display); font-size: 14px; }
.gameover-submit { margin: 12px 0; }
.go-name-label { font-size: 12px; color: var(--text-dim); display: block; margin-bottom: 6px; }
.go-name-row { display: flex; gap: 8px; justify-content: center; }
.go-name-input {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--text-bright);
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: 4px;
    padding: 8px 12px;
    width: 200px;
    outline: none;
    transition: border-color 0.2s;
}
.go-name-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}
.go-name-input::placeholder { color: var(--text-dim); }
.go-submit-status {
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}
.go-submit-status.success { color: var(--green); }
.go-submit-status.error { color: var(--red); }

/* ─── Responsive Scale ────────────────────────────────────── */
@media (max-height: 980px) {
    .game-container {
        transform-origin: center center;
        transform: scale(0.85);
    }
}
@media (max-height: 840px) {
    .game-container { transform: scale(0.75); }
}
