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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(20, 20, 30, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(100, 140, 255, 0.15);
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-dim: #555570;
    --accent: #6488ff;
    --accent-glow: rgba(100, 136, 255, 0.25);
    --success: #3ddc84;
    --success-glow: rgba(61, 220, 132, 0.2);
    --danger: #ff5c6c;
    --danger-glow: rgba(255, 92, 108, 0.2);
    --warning: #ffb347;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.screen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
}

/* ==================== MENU ==================== */

.menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 480px;
    width: 90%;
    padding: 40px 0;
}

.title-block {
    text-align: center;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 20px var(--accent-glow));
    animation: float-logo 3s ease-in-out infinite;
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hud-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

.game-title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--text-primary);
    line-height: 1;
    animation: title-reveal 0.8s ease-out;
}

@keyframes title-reveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.title-dot {
    color: var(--accent);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.game-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: subtitle-reveal 0.8s ease-out 0.2s both;
}

@keyframes subtitle-reveal {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.menu-explanation {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: explain-enter 0.6s ease-out 0.3s both;
}

@keyframes explain-enter {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.menu-explanation p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.menu-explanation strong {
    color: var(--text-primary);
}

.menu-tagline {
    font-size: 13px !important;
    color: var(--text-dim) !important;
    font-style: italic;
    margin-top: 4px;
}

/* Difficulty Selector */

.difficulty-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    animation: diff-enter 0.6s ease-out 0.35s both;
}

@keyframes diff-enter {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.diff-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.diff-options {
    display: flex;
    gap: 6px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 4px;
}

.diff-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.diff-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.diff-btn.selected {
    color: var(--text-primary);
    background: var(--accent);
    box-shadow: 0 2px 12px var(--accent-glow);
    animation: diff-select 0.3s ease;
}

@keyframes diff-select {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Primary Button */

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 14px 48px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
    animation: btn-entrance 0.6s ease-out 0.4s both;
}

@keyframes btn-entrance {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px var(--accent-glow), 0 0 60px rgba(100, 136, 255, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

/* Menu Stats */

.menu-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    animation: stats-enter 0.6s ease-out 0.5s both;
}

@keyframes stats-enter {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-val {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.stat-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
}

/* Keyboard Hints */

.keyboard-hints {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}

.keyboard-hints span {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
}

.controller-hint {
    opacity: 0.6;
}

kbd {
    display: inline-block;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==================== GAME SCREEN ==================== */

#screen-game {
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

/* HUD */

.game-hud {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.hud-left {
    display: flex;
    align-items: center;
}

.hud-left .hud-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: inline;
}

.hud-center .hud-diff {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
}

.hud-right {
    display: flex;
    gap: 24px;
}

.hud-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.hud-stat-val {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.hud-stat-val.bump {
    animation: score-bump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes score-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: var(--success); }
    100% { transform: scale(1); }
}

.hud-stat-val.streak-fire {
    animation: streak-fire 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes streak-fire {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); color: var(--warning); }
    100% { transform: scale(1); }
}

.hud-stat-lbl {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
}

/* Game Center */

.game-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* Bot Area */

.bot-area {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.bot-area.waiting .bot-ring {
    border-color: rgba(100, 136, 255, 0.15);
    animation: pulse-ring 2s ease-in-out infinite, ring-rotate 8s linear infinite;
}

@keyframes ring-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bot-core {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.15s ease;
    position: relative;
    z-index: 1;
}

.bot-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.6;
}

.bot-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    font-weight: 600;
    transition: color 0.15s ease;
}

/* Bot States */

.bot-area.idle .bot-core {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

.bot-area.idle .bot-label {
    color: var(--text-dim);
}

.bot-area.waiting .bot-core {
    animation: core-breathe 3s ease-in-out infinite;
}

@keyframes core-breathe {
    0%, 100% { box-shadow: 0 0 0 rgba(100, 136, 255, 0); }
    50% { box-shadow: 0 0 20px rgba(100, 136, 255, 0.08); }
}

.bot-area.waiting .bot-label {
    color: var(--text-secondary);
}

.bot-area.event .bot-core {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

.bot-area.event .bot-ring {
    border-color: var(--border-subtle);
}

.bot-area.event .bot-logo {
    opacity: 0.6;
}

.bot-area.event .bot-label {
    color: var(--text-dim);
}

.bot-area.result-correct .bot-core {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 40px var(--success-glow);
}

.bot-area.result-correct .bot-ring {
    border-color: var(--success);
}

.bot-area.stopped .bot-core {
    background: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 0 40px var(--danger-glow), 0 0 80px rgba(255, 92, 108, 0.15);
}

.bot-area.stopped .bot-ring {
    border-color: var(--danger);
    box-shadow: 0 0 20px var(--danger-glow);
}

.bot-area.stopped .bot-logo {
    opacity: 0;
}

.bot-area.stopped .bot-label {
    color: #fff;
}

.bot-area.result-wrong .bot-core {
    background: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 0 40px var(--danger-glow);
}

.bot-area.result-wrong .bot-ring {
    border-color: var(--danger);
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

/* Status Text */

.game-status-text {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    min-height: 20px;
}

/* Answer Buttons */

.game-answers {
    display: flex;
    gap: 16px;
    padding: 20px 28px 28px;
    justify-content: center;
    width: 100%;
}

.btn-answer {
    flex: 1;
    max-width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.btn-answer:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-answer:active {
    transform: translateY(0);
}

.btn-answer.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.btn-answer-main {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.btn-answer-key {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.btn-less:hover {
    border-color: rgba(255, 92, 108, 0.3);
    box-shadow: 0 4px 24px rgba(255, 92, 108, 0.1);
}

.btn-more:hover {
    border-color: rgba(61, 220, 132, 0.3);
    box-shadow: 0 4px 24px rgba(61, 220, 132, 0.1);
}

/* ==================== RESULT OVERLAY ==================== */

.result-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 10, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(4px);
}

.result-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.result-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: card-enter 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes card-enter {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.result-verdict {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: verdict-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes verdict-pop {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.result-verdict.correct {
    color: var(--success);
    text-shadow: 0 0 20px var(--success-glow);
}

.result-verdict.wrong {
    color: var(--danger);
    text-shadow: 0 0 20px var(--danger-glow);
}

.result-time {
    font-size: 36px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    animation: time-reveal 0.3s ease-out 0.15s both;
}

@keyframes time-reveal {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.result-choice {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.result-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    animation: details-enter 0.3s ease-out 0.2s both;
}

@keyframes details-enter {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.result-row span:first-child {
    color: var(--text-dim);
}

.result-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.btn-next {
    margin-top: 8px;
    padding: 12px 40px;
}

.result-hint {
    font-size: 11px;
    color: var(--text-dim);
}

/* ==================== GAME OVER ==================== */

.gameover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 10, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 30;
    backdrop-filter: blur(6px);
}

.gameover-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.gameover-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 360px;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: gameover-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gameover-enter {
    0% { opacity: 0; transform: scale(0.85) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.gameover-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-dim);
    font-weight: 600;
}

.gameover-score {
    font-size: 52px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
    animation: score-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes score-pop {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.gameover-subtitle {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.gameover-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    padding: 16px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    animation: stats-grid-enter 0.4s ease-out 0.3s both;
}

@keyframes stats-grid-enter {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.go-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.go-stat-val {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.go-stat-lbl {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
}

.gameover-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.gameover-actions .btn-primary {
    width: 100%;
}

.gameover-actions .btn-secondary {
    width: 100%;
    text-align: center;
}

/* ==================== SOUND TOGGLE ==================== */

.sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 50;
}

.sound-toggle:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
}

.hidden {
    display: none !important;
}

/* End Run Button */

.end-run-btn {
    position: fixed;
    top: 16px;
    right: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 50;
}

.end-run-btn:hover {
    color: var(--danger);
    border-color: rgba(255, 92, 108, 0.3);
}

/* ==================== GREEN FLASH OVERLAY ==================== */

.flash-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 220, 132, 0.15);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.05s ease;
}

.flash-overlay.active {
    opacity: 1;
}

.flash-overlay.red {
    background: rgba(255, 92, 108, 0.15);
}

/* ==================== SCREEN PULSE ==================== */

@keyframes screen-pulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
    100% { filter: brightness(1); }
}

.screen-pulse {
    animation: screen-pulse 0.2s ease;
}

/* ==================== SCREEN SHAKE ==================== */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.shake {
    animation: shake 0.3s ease;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .logo-img {
        width: 60px;
        height: 60px;
    }

    .game-title {
        font-size: 48px;
    }

    .menu-container {
        gap: 20px;
    }

    .game-hud {
        padding: 12px 16px;
    }

    .hud-right {
        gap: 16px;
    }

    .hud-stat-val {
        font-size: 15px;
    }

    .game-answers {
        padding: 12px 16px 20px;
        gap: 10px;
    }

    .btn-answer {
        padding: 16px 12px;
    }

    .btn-answer-main {
        font-size: 13px;
    }

    .bot-area {
        width: 150px;
        height: 150px;
    }

    .bot-core {
        width: 115px;
        height: 115px;
    }

    .result-card {
        padding: 28px 24px;
        min-width: 280px;
    }

    .result-time {
        font-size: 28px;
    }

    .gameover-card {
        padding: 28px 24px;
        min-width: 280px;
    }

    .gameover-score {
        font-size: 40px;
    }

    .keyboard-hints {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 48px;
        height: 48px;
    }

    .game-title {
        font-size: 36px;
    }

    .diff-options {
        flex-wrap: wrap;
        justify-content: center;
    }

    .diff-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .menu-stats {
        gap: 20px;
    }

    .stat-val {
        font-size: 16px;
    }

    .gameover-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
