:root {
    color-scheme: dark;
    --ink: #111114;
    --panel: #1b181f;
    --line: #3a343c;
    --ember: #ffb566;
    --gold-line: #85613f;
    --text: #faf1e9;
    --muted: #c9bdc4;
    font-family: system-ui, "Segoe UI", sans-serif;
    background: var(--ink);
    color: var(--text);
    line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
body.construction { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; text-align: center; }
.construction h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
img { display: block; max-width: 100%; }
a { color: var(--ember); text-underline-offset: .24em; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 2; padding: .75rem; background: var(--ink); }
.skip:not(:focus) { clip-path: inset(100%); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: .4rem; align-items: center; font-weight: 750; color: var(--text); text-decoration: none; }
.language-menu { position: relative; flex-shrink: 0; z-index: 2; }
.language-menu summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    min-height: 44px;
    padding: .25rem .7rem;
    border: 1px solid var(--line);
    border-radius: .35rem;
    cursor: pointer;
    font-size: .83rem;
    font-weight: 650;
    list-style: none;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after {
    content: '';
    width: .45rem;
    height: .45rem;
    border-right: 1px solid;
    border-bottom: 1px solid;
    transform: translateY(-.13rem) rotate(45deg);
    color: var(--ember);
}
.language-menu[open] summary::after { transform: translateY(.13rem) rotate(225deg); }
.languages {
    position: absolute;
    inset: calc(100% + .35rem) 0 auto auto;
    width: max-content;
    min-width: 100%;
    max-height: 60vh;
    overflow: auto;
    padding: .25rem;
    border: 1px solid var(--line);
    border-radius: .35rem;
    background: var(--panel);
    box-shadow: 0 .5rem 1.25rem #0007;
}
.languages a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    text-decoration: none;
    font-size: .83rem;
    font-weight: 650;
    padding-inline: .65rem;
    border-radius: .2rem;
}
.languages a[aria-current], .languages a:hover { color: var(--ember); background: #392630; }
.languages a:focus-visible { outline-offset: -2px; }

.hero {
    display: grid;
    grid-template-columns: 1.13fr 1fr;
    gap: clamp(1.5rem, 5vw, 4.5rem);
    align-items: center;
    padding-block: clamp(2.5rem, 7vw, 5.5rem);
    border-bottom: 1px solid var(--line);
}
.eyebrow, .offline { font-size: .87rem; font-weight: 650; }
.eyebrow { margin: 0 0 1.2rem; color: var(--ember); letter-spacing: .13em; text-transform: uppercase; }
.hero h1, .games h2, .play h2 {
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.08;
    margin: 0;
}
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 5.15rem); }
.hero h1 span { color: var(--ember); }
.intro { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 33ch; margin: 1.35rem 0 1.6rem; }
.store-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; }
.store {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-radius: .35rem;
}
.store img { width: auto; max-width: min(100%, 12rem); object-fit: contain; }
.store-ios img { height: 44px; }
.store-android img { height: 57px; }
a.store:focus-visible { outline-color: var(--text); }
.offline { margin: .8rem 0 0; color: var(--muted); }

.cover {
    overflow: hidden;
    min-width: 0;
    aspect-ratio: 1.08;
    position: relative;
    border: 1px solid #56404a;
    border-radius: .5rem;
    background:
        radial-gradient(ellipse at 86% 18%, #744333 1%, transparent 59%),
        repeating-linear-gradient(116deg, #fff1 0 1px, transparent 1px 18px),
        linear-gradient(138deg, #4a2635, #201923 72%);
}
.cover::before {
    content: '';
    position: absolute;
    inset: .7rem;
    border: 1px solid #efba952e;
    border-radius: .16rem;
}
.record {
    width: 78%;
    aspect-ratio: 1;
    position: absolute;
    top: 9%;
    left: 44%;
    display: grid;
    place-items: center;
    border: 1px solid #a77060;
    border-radius: 50%;
    background:
        radial-gradient(circle, #21191d 0 35%, transparent 35%),
        conic-gradient(from 25deg, #110e16, #47323c, #140e17, #382532, #110e16);
    box-shadow: .75rem 1rem 2.5rem #0c0809a6, inset 0 0 0 .45rem #21161f, inset 0 0 0 .49rem #77535a;
}
.record::before {
    content: '';
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 4px, #f5a68c3d 5px, transparent 6px 8px);
    mask-image: radial-gradient(circle, transparent 0 36%, #000 37%);
}
.record img { z-index: 1; width: 61%; height: auto; filter: drop-shadow(0 0 1.3rem #ff996645); }
.device {
    position: absolute;
    z-index: 1;
    left: 13%;
    top: 11%;
    width: 46%;
    filter: drop-shadow(0 1.4rem 1.6rem #07050999);
    mask-image: linear-gradient(#000 74%, transparent 98%);
}
.device img { width: 100%; height: auto; border-radius: 14% 14% 0 0 / 7% 7% 0 0; }

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 1.4rem 0;
    list-style: none;
    border-bottom: 1px solid var(--line);
}
.facts li {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 650;
    font-size: .98rem;
}
.facts li::before {
    content: '';
    flex: 0 0 .55rem;
    height: .55rem;
    rotate: 45deg;
    border-radius: .1rem;
    background: var(--ember);
    box-shadow: 0 0 .8rem #ffb56680;
}

.games { padding-block: clamp(2.3rem, 5vw, 4.5rem); }
.games > h2, .play h2 { font-size: clamp(1.85rem, 3.25vw, 2.85rem); }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.35rem, 3vw, 2.4rem); margin-top: 1.75rem; }
.mode { min-width: 0; border: 1px solid var(--gold-line); border-radius: .8rem; background: var(--panel); padding: .8rem; }
.mode { transition: border-color .2s, translate .2s, box-shadow .2s; }
.mode:focus-within, .mode:hover { border-color: var(--ember); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .mode:hover { translate: 0 -3px; box-shadow: 0 .9rem 2rem #0009; }
}
.mode-art { position: relative; }
.mode-preview {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    border: 0;
    border-radius: .5rem;
    padding: .55rem;
    background: transparent;
    color: var(--text);
    cursor: zoom-in;
}
.mode-preview span {
    position: relative;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    background: #171417f2;
}
.mode-preview span::before, .mode-preview span::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: .7rem;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}
.mode-preview span::after { rotate: 90deg; }
.mode-preview:hover span, .mode-preview:focus-visible span { color: #211710; background: var(--ember); }
.mode-copy { padding: .95rem .12rem .23rem; }
.mode h3 { font-size: 1.14rem; line-height: 1.3; margin: 0 0 .36rem; }
.mode p, .play p { color: var(--muted); margin: 0; }
.mode-copy p { font-size: .94rem; }

.game-scene {
    container-type: inline-size;
    aspect-ratio: 1.58;
    overflow: hidden;
    display: grid;
    place-content: center;
    border-radius: .5rem;
    background: radial-gradient(ellipse at 50% 5%, #45303b, #231c27 70%);
}
.scene-hidden-songs { display: block; background: #241b1a; }
.scene-hidden-songs img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.quiz-board, .clue-list, .hangman-word, .letter-keys, .match-board { width: 82cqw; }
.quiz-board { display: grid; gap: 3cqw; }
.scene-quiz .quiz-question { margin: 0; font-size: clamp(.7rem, 4.6cqw, 1.8rem); font-weight: 700; color: var(--text); line-height: 1.25; }
.quiz-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.65cqw; }
.quiz-answers span {
    display: flex;
    gap: 1.5cqw;
    align-items: center;
    padding: 1.65cqw;
    border: 1px solid #7c5b49;
    border-radius: .32rem;
    background: #211b23;
    color: var(--text);
    font-size: clamp(.56rem, 3.15cqw, 1.2rem);
    line-height: 1.2;
}
.quiz-answers b, .clue-list li::marker { color: var(--ember); }
.clue-list { display: grid; gap: 2.1cqw; padding: 0; margin: 0; list-style-position: inside; }
.clue-list li {
    border: 1px solid #7c5b49;
    border-radius: .35rem;
    background: #221c25;
    padding: 2.3cqw 3cqw;
    font-size: clamp(.6rem, 3.5cqw, 1.35rem);
    line-height: 1.24;
}
.clue-list li::marker { font-weight: 700; }
.scene-hangman { gap: 3cqw; }
.hangman-word { display: flex; gap: 3cqw; align-items: center; }
.gallows {
    flex: 0 0 13cqw;
    width: 13cqw;
    height: 14cqw;
    border-left: 2px solid var(--ember);
    border-bottom: 2px solid var(--ember);
    background:
        linear-gradient(var(--ember), var(--ember)) left top / 77% 2px no-repeat,
        linear-gradient(var(--ember), var(--ember)) 77% top / 2px 36% no-repeat;
}
.scene-hangman .hangman-word p { color: var(--ember); font-size: clamp(.6rem, 3cqw, 1.12rem); margin: 0 0 1cqw; }
.letter-slots { display: flex; gap: 1cqw; }
.letter-slots b, .letter-keys b {
    display: grid;
    place-items: center;
    border: 1px solid #6d5454;
    border-radius: .2rem;
    background: #211b23;
    font-size: clamp(.54rem, 3.15cqw, 1.12rem);
    line-height: 1;
}
.letter-slots b { width: 7.6cqw; height: 8.6cqw; color: var(--ember); }
.letter-keys { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1cqw; }
.letter-keys b { height: 6.3cqw; }
.letter-keys .used { background: #584032; color: #ffe1be; }
.scene-words { gap: 2cqw; }
.word-grid {
    width: 53cqw;
    display: grid;
    padding: 1.2cqw;
    border: 1px solid #755d52;
    border-radius: .35rem;
    background: #211b23;
    color: var(--text);
    font-size: clamp(.44rem, 2.95cqw, 1.17rem);
    line-height: 1;
}
.word-grid > span { display: grid; grid-template-columns: repeat(10, 1fr); text-align: center; align-items: center; height: 4.2cqw; }
.word-grid mark { grid-column: span 3; border-radius: 1rem; background: #347461; color: #fff; font-weight: 750; letter-spacing: .22em; }
.word-list { display: flex; justify-content: center; gap: 3cqw; font-size: clamp(.55rem, 3.1cqw, 1.2rem); color: var(--muted); }
.word-list s { color: #98e1bd; }
.match-board { display: grid; grid-template-columns: 1fr 16cqw 1fr; }
.match-albums, .match-bands { display: grid; grid-template-rows: repeat(3, 10.5cqw); gap: 2cqw; }
.match-board span {
    display: grid;
    place-items: center;
    padding: .6cqw;
    border: 1px solid var(--gold-line);
    border-radius: .35rem;
    background: #211b23;
    text-align: center;
    font-size: clamp(.58rem, 3.2cqw, 1.25rem);
    line-height: 1.06;
}
.match-wires { position: relative; }
.match-wires i { position: absolute; left: -1.5cqw; top: 31.5%; width: 19cqw; border-top: 2px solid; }
.match-wires i:nth-child(1) { rotate: 37deg; color: #ffb566; }
.match-wires i:nth-child(2) { rotate: -37deg; color: #dda9e6; }
.match-wires i:nth-child(3) { top: 85%; left: 0; width: 100%; color: #98e1bd; }

.game-dialog {
    width: min(46rem, calc(100% - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    padding: clamp(.8rem, 3vw, 1.4rem);
    border: 1px solid var(--gold-line);
    border-radius: .8rem;
    color: var(--text);
    background: var(--panel);
}
.game-dialog::backdrop { background: #09080cdb; }
html:has(.game-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.game-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: .65rem; margin-bottom: .65rem; }
.game-dialog-head h2 { margin: 0; font-size: clamp(1.15rem, 4vw, 1.8rem); line-height: 1.2; }
.game-dialog-close { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--gold-line); border-radius: .45rem; cursor: pointer; font-size: 1.5rem; line-height: 1; background: #251d22; color: var(--text); }
.game-dialog-close:hover { background: var(--ember); color: #211710; }
.game-dialog > p { margin: .85rem 0 0; color: var(--muted); }
.game-dialog .scene-hidden-songs { aspect-ratio: auto; height: min(62dvh, 40rem); }
.game-dialog .scene-hidden-songs img { object-fit: contain; }

.play {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
    margin-bottom: 4rem;
    padding: clamp(1.4rem, 4vw, 2.6rem);
    border: 1px solid #56404a;
    border-left: 3px solid var(--ember);
    border-radius: .8rem;
    background:
        radial-gradient(ellipse at 100% 0%, #744333aa, transparent 55%),
        linear-gradient(138deg, #33202b, #1b181f 70%);
}
.play > div { flex: 1 1 26rem; }
.play h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); }
.play p { margin-top: .6rem; max-width: 60ch; }

.reading { max-width: 69ch; padding-block: 3rem 4rem; color: var(--muted); overflow-wrap: break-word; }
.reading h1, .reading h2 { color: var(--text); line-height: 1.16; }
.reading h1 { font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.03em; margin: 0 0 1rem; }
.reading h2 { font-size: 1.25rem; margin: 1.7rem 0 .45rem; }
.reading p, .reading ul { margin: 0 0 1rem; }
.reading ul { padding-left: 1.2rem; }
.reading li { margin-bottom: .45rem; }
.reading li::marker { color: var(--ember); }
.reading .draft { font-weight: 700; color: var(--ember); }
.page-head { padding-bottom: 1.4rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.page-head .intro { max-width: 52ch; margin-top: 0; }
.updated { display: inline-block; margin: 0 0 1.2rem; padding: .3rem .7rem; border: 1px solid var(--gold-line); border-radius: .5rem; color: var(--ember); font-size: .86rem; font-weight: 650; }
.legal { max-width: none; display: grid; grid-template-columns: minmax(0, 69ch); }
.legal .page-head { max-width: 69ch; }
.toc { margin-bottom: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--panel); }
.toc h2 { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }
.toc ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .1rem; font-size: .92rem; }
.toc a { color: var(--muted); text-decoration: none; display: block; padding-block: .2rem; }
.toc a:hover { color: var(--ember); }
.legal-body section { scroll-margin-top: 1rem; }
.legal-body section + section { border-top: 1px solid #2a252c; }
.legal-body h2 { margin-top: 1.5rem; }
.contact-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1.6rem;
    padding: 1.2rem;
    border: 1px solid var(--gold-line);
    border-radius: .7rem;
    background: var(--panel);
}
.contact-card p { margin: 0; font-size: .92rem; }
.button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: .5rem 1.2rem;
    border-radius: .45rem;
    background: var(--ember);
    color: #211710;
    font-weight: 750;
    text-decoration: none;
}
.button:hover { background: #ffc98a; }
.faq h2 { margin-top: 2.2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .9rem;
    color: var(--text);
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ember); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: -.2rem; }

@media (min-width: 1000px) {
    .legal { grid-template-columns: minmax(0, 69ch) 16rem; column-gap: 3.5rem; align-items: start; }
    .legal .page-head, .legal-body { grid-column: 1; }
    .toc { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 1.5rem; margin: 0; }
}

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding-block: 1rem 1.5rem; border-top: 1px solid var(--line); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 1.15rem; }
.footer a, .footer button { min-height: 44px; display: inline-flex; align-items: center; font-size: .89rem; }
.footer-brand { margin: 0; font-size: .89rem; color: var(--muted); }
.footer-brand a { font-weight: 750; color: var(--text); text-decoration: none; margin-right: .5rem; }
.footer button { background: none; border: 0; padding: 0; color: var(--ember); text-decoration: underline; text-underline-offset: .24em; cursor: pointer; }
.consent {
    margin: 0 auto 1rem;
    width: min(34rem, 100% - 2rem);
    position: fixed;
    z-index: 1;
    inset: auto 0 0;
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    padding: 1rem;
    border: 1px solid #79625b;
    border-radius: .5rem;
    background: #201b21;
    box-shadow: 0 .5rem 2rem #0008;
}
.consent h2 { font-size: 1rem; margin: 0; }
.consent p { color: var(--muted); margin: .35rem 0 .85rem; font-size: .92rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-actions button { flex: 1; min-height: 44px; border: 1px solid var(--ember); background: #2f2425; color: var(--text); border-radius: .3rem; padding: .4rem .95rem; cursor: pointer; }
.consent-actions button:hover { background: #483226; }

@media (max-width: 760px) {
    .wrap { width: calc(100% - 2rem); }
    .hero { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(2.25rem, 8.5vw, 4.65rem); }
    .cover { width: min(100%, 29rem); aspect-ratio: .95; justify-self: center; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .consent { position: static; max-height: none; width: min(100%, 34rem); margin: 0 0 1rem; }
    .hero .consent { margin: 0; }
}

@media (max-width: 440px) {
    .header { gap: 0 .65rem; flex-wrap: wrap; min-height: 62px; padding-block: .15rem; }
    .brand { font-size: .86rem; }
    .brand img { width: 31px; height: 31px; }
    .language-menu summary { font-size: .78rem; }
    .hero { padding-top: 2rem; }
    .eyebrow { font-size: .78rem; }
    .modes { grid-template-columns: 1fr; }
}
