@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Poppins:wght@400;500;600;700&display=swap');

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

:root {
    --gold: #e8c97a;
    --dark: #0d0b09;
    --dialog-bg: rgba(8, 6, 4, 0.88);
}

body.game-page {
    background: #000;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    user-select: none;
}

.game-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(232, 201, 122, 0.15);
    z-index: 100;
    flex-shrink: 0;
}

.game-nav__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.4);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}

.game-nav__back:hover { color: var(--gold); }

.game-nav__title {
    font-family: 'Special Elite', cursive;
    font-size: 0.95rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    flex: 1;
    text-align: center;
    text-transform: uppercase;
}

.game-nav__cred {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cred-bar { display: flex; gap: 5px; }

.cred-pip {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: #27ae60;
    box-shadow: 0 0 8px rgba(39,174,96,0.6);
    transition: background 0.3s, box-shadow 0.3s;
}

.cred-pip--lost {
    background: rgba(255,255,255,0.08);
    box-shadow: none;
}


.game-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}


.game-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease;
    z-index: 0;
}

.game-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(0,0,0,0.2) 0%,
            rgba(0,0,0,0.05) 40%,
            rgba(0,0,0,0.5) 80%,
            rgba(0,0,0,0.8) 100%);
}


.game-chars {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.game-char {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 16px 40px rgba(0,0,0,0.75));
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
    z-index: 2;
}

#char-left  { left: -6%; }
#char-right { right: -6%; }

.game-char--hidden { opacity: 0; pointer-events: none; }

.game-char--dim {
    filter: drop-shadow(0 16px 40px rgba(0,0,0,0.75)) brightness(0.25) saturate(0.1);
    z-index: 1;
}

.game-char--active {
    filter: drop-shadow(0 0 48px rgba(232,201,122,0.22)) brightness(1.06);
    z-index: 3;
}

.game-char--speaking {
    animation: charBob 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes charBob {
    0%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-10px) scale(1.01); }
}


.game-video-frame {
    position: absolute;
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: min(300px, 55%);
    background: #080808;
    border: 2px solid #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    display: none;
    box-shadow: 0 0 0 1px #444, 0 20px 60px rgba(0,0,0,0.9), 0 0 80px rgba(0,0,0,0.5);
    z-index: 6;
}

.game-video-frame--visible { display: block; }

.game-video-frame__header {
    background: #111;
    border-bottom: 1px solid #222;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.55rem;
    color: #666;
    letter-spacing: 0.06em;
}

.game-video-frame__dot { width: 7px; height: 7px; border-radius: 50%; }

.game-video-frame__img {
    width: 100%;
    display: block;
    filter: saturate(0.6) contrast(1.15) brightness(0.9);
}

.game-video-frame__label {
    background: rgba(200, 0, 0, 0.9);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 3px 10px;
    letter-spacing: 0.1em;
    text-align: center;
}


.game-flash {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    pointer-events: none;
    opacity: 0;
}

.game-flash--visible {
    animation: flashIn 1s ease-out forwards;
}

@keyframes flashIn {
    0%   { opacity: 0; background: rgba(255,255,255,0.9); }
    10%  { opacity: 1; background: rgba(255,255,255,0.5); }
    75%  { opacity: 1; }
    100% { opacity: 0; background: rgba(0,0,0,0); }
}

.game-flash__word {
    font-family: 'Special Elite', cursive;
    font-size: clamp(3.5rem, 10vw, 7rem);
    letter-spacing: 0.05em;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.25), -2px -2px 0 rgba(0,0,0,0.15);
    animation: wordSlam 0.25s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes wordSlam {
    0%   { transform: scaleX(2.5) scaleY(0.2) skewX(-10deg); opacity: 0; }
    100% { transform: scaleX(1) scaleY(1) skewX(0deg); opacity: 1; }
}

.flash--objection .game-flash__word  { color: #c0392b; }
.flash--holdit .game-flash__word     { color: #d35400; }
.flash--takethat .game-flash__word   { color: #1a5276; }


.game-evidence {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    backdrop-filter: blur(4px);
}

.game-evidence--visible { opacity: 1; pointer-events: auto; }

.evidence-card {
    background: #f5f0e4;
    border: 2px solid #bca06a;
    border-radius: 6px;
    padding: 32px 36px;
    max-width: 520px;
    width: 90%;
    color: #1a1a1a;
    box-shadow: 0 24px 80px rgba(0,0,0,0.8), inset 0 0 0 8px rgba(188,160,106,0.1);
    transform: scale(0.88) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
}

.game-evidence--visible .evidence-card {
    transform: scale(1) translateY(0);
}

.evidence-card__stamp {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 3px solid #c0392b;
    color: #c0392b;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 3px 8px;
    transform: rotate(10deg);
    opacity: 0.75;
    border-radius: 3px;
}

.evidence-card__label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
}

.evidence-card__title {
    font-family: 'Special Elite', cursive;
    font-size: 1.4rem;
    color: #111;
    margin-bottom: 14px;
    border-bottom: 1px solid #e0d5bb;
    padding-bottom: 12px;
}

.evidence-card__content {
    font-size: 0.87rem;
    line-height: 1.75;
    color: #444;
}

.evidence-card__dismiss {
    margin-top: 20px;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.05em;
}

.evidence-card__dismiss:hover { background: #333; transform: translateY(-1px); }


.game-scene-title {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}

.game-scene-title--visible { opacity: 1; }

.scene-title__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.scene-title__main {
    font-family: 'Special Elite', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    text-shadow: 0 4px 30px rgba(0,0,0,0.9);
    line-height: 1.1;
    letter-spacing: 0.05em;
}


.game-dialog-wrapper {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(920px, 92vw);
    z-index: 20;
}

.game-dialogue {
    background: var(--dialog-bg);
    border: 1px solid rgba(232, 201, 122, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.04);
    min-height: 148px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-dialogue::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,201,122,0.5), transparent);
}

.dialogue-nameplate {
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--gold);
    color: #1a1008;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.dialogue-nameplate i { font-size: 0.6rem; opacity: 0.7; }

.dialogue-text {
    padding: 20px 28px 28px;
    font-size: clamp(0.92rem, 2vw, 1.05rem);
    line-height: 1.75;
    color: rgba(255,255,255,0.93);
    flex: 1;
}

.dialogue-advance {
    position: absolute;
    bottom: 10px;
    right: 14px;
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    display: none;
    align-items: center;
    gap: 5px;
    animation: blink 1.3s ease-in-out infinite;
    text-transform: uppercase;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50%  { opacity: 1; }
}


.game-choices-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.game-choices-overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

.choices-popup {
    background: rgba(12, 9, 6, 0.95);
    border: 1px solid rgba(232, 201, 122, 0.35);
    border-radius: 12px;
    padding: 28px 28px 24px;
    width: min(560px, 90vw);
    box-shadow: 0 32px 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
    transform: scale(0.9) translateY(16px);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.game-choices-overlay--visible .choices-popup {
    transform: scale(1) translateY(0);
}

.choices-popup__header {
    font-family: 'Special Elite', cursive;
    font-size: 1rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 0.06em;
}

.choices-popup__sub {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.choice-btn {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.15s, color 0.18s;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.choice-btn:last-child { margin-bottom: 0; }

.choice-btn:hover {
    background: rgba(232, 201, 122, 0.1);
    border-color: rgba(232, 201, 122, 0.45);
    color: #fff;
    transform: translateX(4px);
}

.choice-btn.correct {
    border-color: #27ae60;
    background: rgba(39,174,96,0.12);
    color: #2ecc71;
}

.choice-btn.wrong {
    border-color: #c0392b;
    background: rgba(192,57,43,0.12);
    color: #e74c3c;
}

.choice-btn:disabled { cursor: default; }


.game-penalty {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Special Elite', cursive;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #e74c3c;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 70;
    white-space: nowrap;
    text-align: center;
}

.game-penalty--show {
    animation: penaltyAnim 1.4s ease-out forwards;
}

@keyframes penaltyAnim {
    0%   { opacity: 0; transform: translateX(-50%) scale(0.4); }
    20%  { opacity: 1; transform: translateX(-50%) scale(1.1); }
    65%  { opacity: 1; transform: translateX(-50%) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-40px); }
}


.game-end {
    position: absolute;
    inset: 0;
    background: rgba(4, 2, 1, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 90;
    padding: 40px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow-y: auto;
}

.game-end--visible { opacity: 1; pointer-events: auto; }

.game-end__title {
    font-family: 'Special Elite', cursive;
    font-size: clamp(2.2rem, 6vw, 4rem);
    color: var(--gold);
    margin-bottom: 16px;
    line-height: 1.1;
}

.game-end.game-over .game-end__title { color: #c0392b; }

.game-end__sub {
    font-size: clamp(0.88rem, 2vw, 1rem);
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 28px;
}

.game-end__epilogue {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
    line-height: 2;
    max-width: 620px;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 24px;
    margin-bottom: 32px;
    font-style: italic;
}

.game-end__btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.game-end__btn {
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.game-end__btn:hover { transform: translateY(-2px); opacity: 0.92; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.game-end__btn--primary { background: var(--gold); color: #1a1008; }
.game-end__btn--secondary { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.12); }


@media (max-width: 768px) {
    .game-char { height: 90%; }
    #char-left  { left: -18%; }
    #char-right { right: -18%; }
    .game-dialog-wrapper { bottom: 12px; width: 97vw; }
    .dialogue-text { font-size: 0.85rem; padding: 18px 18px 22px; }
    .game-nav__title { font-size: 0.78rem; }
    .choices-popup { padding: 22px 18px 18px; }
    .choice-btn { font-size: 0.8rem; padding: 12px 14px; }
    .game-video-frame {
        width: min(140px, 36vw);
        top: 8px;
        left: auto;
        right: 8px;
        transform: none;
        z-index: 8;
    }
}

@media (max-width: 480px) {
    .game-char { height: 85%; }
    #char-left  { left: -22%; }
    #char-right { right: -22%; }
    .dialogue-text { font-size: 0.8rem; }
    .game-end__title { font-size: 2rem; }
    .dialogue-nameplate { font-size: 0.6rem; padding: 4px 12px; }
}


/* ══════════════ MENU SCREEN ══════════════ */

.menu-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    overflow: hidden;
}

.menu-screen__bg {
    position: absolute;
    inset: 0;
    background: #0a0703;
    background-image:
        linear-gradient(to bottom, rgba(232,201,122,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232,201,122,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 0;
}

.menu-screen__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(180,100,30,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(200,60,40,0.06) 0%, transparent 60%);
}

.menu-fiction {
    position: absolute;
    left: 0; right: 0;
    z-index: 10;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
}

.menu-fiction--top {
    top: 0;
    background: rgba(232,150,40,0.12);
    border-bottom: 1px solid rgba(232,150,40,0.2);
    color: rgba(232,180,80,0.85);
}

.menu-fiction--bottom {
    bottom: 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.2);
}

.menu-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 60px 24px;
}

.menu-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 5px 14px;
    border: 1px solid rgba(232,201,122,0.3);
    border-radius: 100px;
    background: rgba(232,201,122,0.06);
}

.menu-title {
    font-family: 'Special Elite', cursive;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    color: #fff;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-shadow: 0 4px 40px rgba(232,201,122,0.15), 0 1px 0 rgba(0,0,0,0.5);
}

.menu-sub {
    font-size: clamp(0.82rem, 2vw, 0.95rem);
    color: rgba(255,255,255,0.4);
    line-height: 1.75;
    max-width: 480px;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 220px;
    margin-top: 8px;
}

.menu-btn {
    width: 100%;
    padding: 13px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.menu-btn:hover {
    background: rgba(232,201,122,0.08);
    border-color: rgba(232,201,122,0.35);
    color: var(--gold);
    transform: translateX(4px);
}

.menu-btn--primary {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1008;
    font-size: 0.95rem;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(232,201,122,0.2);
}

.menu-btn--primary:hover {
    background: #f0d888;
    border-color: #f0d888;
    color: #1a1008;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232,201,122,0.3);
}

.menu-btn--back {
    border-color: transparent;
    color: rgba(255,255,255,0.25);
    font-size: 0.78rem;
    margin-top: 4px;
}

.menu-btn--back:hover { color: rgba(255,255,255,0.5); border-color: transparent; background: transparent; transform: none; }

/* Side panels */
.menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(480px, 100vw);
    height: 100%;
    background: rgba(8,6,4,0.97);
    border-left: 1px solid rgba(232,201,122,0.15);
    z-index: 300;
    padding: 60px 36px 40px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(20px);
}

.menu-panel--open { right: 0; }

.menu-panel__close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.menu-panel__close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.menu-panel__title {
    font-family: 'Special Elite', cursive;
    font-size: 1.6rem;
    color: var(--gold);
    border-bottom: 1px solid rgba(232,201,122,0.15);
    padding-bottom: 14px;
}

.menu-panel__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
}

.menu-panel__body strong { color: rgba(255,255,255,0.85); }

.menu-panel__disclaimer {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 14px;
    font-style: italic;
}

/* Tutorial steps */
.tut-step {
    display: flex;
    gap: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    align-items: flex-start;
}

.tut-step__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(232,201,122,0.1);
    border: 1px solid rgba(232,201,122,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Settings toggles */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.setting-row__label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
}

.setting-row__label i { color: var(--gold); width: 16px; text-align: center; }

.setting-note {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    margin-top: 8px;
    font-style: italic;
}

.toggle-btn {
    width: 48px;
    height: 26px;
    border-radius: 100px;
    background: var(--gold);
    border: none;
    cursor: pointer;
    position: relative;
    transition: background 0.25s;
    flex-shrink: 0;
}

.toggle-btn[data-on="false"] { background: rgba(255,255,255,0.12); }

.toggle-btn__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a1008;
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.toggle-btn[data-on="true"] .toggle-btn__knob { transform: translateX(22px); background: #1a1008; }
.toggle-btn[data-on="false"] .toggle-btn__knob { transform: translateX(0); background: rgba(255,255,255,0.4); }

/* Game screen wrapper */
.game-screen {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
}

/* Game end fiction notice */
.game-end__fiction {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232,180,80,0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(232,180,80,0.15);
    border-radius: 100px;
    background: rgba(232,180,80,0.06);
}

/* panel overlay tint */
.menu-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 290;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.menu-panel-overlay--visible { opacity: 1; pointer-events: auto; }

@media (max-width: 480px) {
    .menu-title { font-size: 2.8rem; }
    .menu-content { padding: 50px 20px; }
    .menu-nav { width: 90%; }
    .menu-panel { padding: 48px 24px 32px; }
}
