@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#111118;--panel:#1c1c26;--line:#34343f;--muted:#a7a7b8;--lime:#d7ff65;--pink:#eaa4e6}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f7f5f0;font-family:'DM Sans',sans-serif}header{max-width:1040px;margin:auto;padding:24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:22px;color:inherit;text-decoration:none;letter-spacing:-1px}.brand span{font-weight:400}.brand i{font-size:12px;color:var(--lime);margin-left:8px}main{max-width:680px;margin:0 auto;padding:34px 22px 12px}h1,h2,h3{font-family:'Space Grotesk',sans-serif;letter-spacing:-1.5px}h1{font-size:clamp(44px,9vw,70px);line-height:1.03;margin:18px 0}h1 em{font-style:normal;color:var(--lime)}h2{font-size:32px;margin:12px 0}p{line-height:1.6;color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:700;color:var(--lime)}.panel{background:var(--panel);padding:22px;border:1px solid var(--line);border-radius:20px;margin:20px 0}label{display:block;margin:16px 0 7px;font-size:14px}input,select,textarea{width:100%;background:#111118;color:inherit;border:1px solid #474753;border-radius:10px;padding:14px;font:inherit;font-size:16px}textarea{min-height:110px}button{border:0;border-radius:12px;background:var(--lime);color:#141718;padding:15px 20px;font:700 15px 'DM Sans',sans-serif;cursor:pointer;min-height:46px}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--pink);outline-offset:3px}.wide{width:100%;margin-top:14px}.quiet{background:transparent;color:var(--muted);font-size:13px;padding:10px}.outline{background:transparent;color:var(--lime);border:1px solid var(--line)}.row{display:flex;gap:12px;align-items:center;justify-content:space-between}.scores{display:flex;gap:8px;overflow-x:auto;margin-bottom:28px;padding-bottom:8px}.score{white-space:nowrap;padding:9px 14px;border:1px solid var(--line);border-radius:99px;font-size:12px;color:var(--muted)}.score.active{color:var(--lime);border-color:var(--lime)}.timeline{position:relative;margin:24px 0}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 18px;display:flex;align-items:center;gap:18px}.card strong{color:var(--pink);font:700 28px 'Space Grotesk',sans-serif}.card small{display:block;color:var(--muted);margin-top:4px}.slot{width:100%;background:none;color:var(--muted);border:1px dashed #454552;margin:9px 0;padding:10px;min-height:46px}.slot.selected{background:var(--lime);border-color:var(--lime);color:#141718}.reveal{background:var(--lime);color:#16191a;border-radius:20px;padding:28px;margin:20px 0}.reveal strong{font:700 64px 'Space Grotesk',sans-serif}.reveal h3{font-size:24px;margin:10px 0}.reveal p{color:#343e27;margin:0}#music{max-width:636px;margin:20px auto;padding:0 22px}#music[hidden]{display:none}.player-wrap{position:relative;height:230px;background:#08080c;border:1px solid var(--line);border-radius:18px;overflow:hidden}.player-wrap iframe{width:100%;height:100%}#cover{position:absolute;inset:0;z-index:2;background:radial-gradient(ellipse at center,#29213b,#16151f);display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:auto}#cover[hidden]{display:none}#cover p{font-size:12px;margin:13px 0 0}@keyframes spin{to{transform:rotate(360deg)}}.controls{display:flex;gap:10px}.controls button:first-child{flex:1}#play-status{font-size:13px;min-height:20px}footer{text-align:center;color:#777787;font-size:11px;line-height:1.9;padding:35px 20px 25px}details{margin-top:20px;color:var(--muted);font-size:13px}summary{cursor:pointer;padding:10px 0}a{color:var(--lime)}dialog{max-width:540px;width:calc(100% - 32px);background:var(--panel);color:inherit;border:1px solid var(--line);border-radius:20px;padding:25px}dialog::backdrop{background:#000b}.notice{color:var(--pink)}.muted{color:var(--muted)}@media(min-width:760px){main{padding-top:48px}.panel{padding:28px}}@media(prefers-reduced-motion:reduce){}

/* Compact game layout */
header{max-width:620px;padding:14px 20px}main{max-width:620px;padding:24px 20px 12px}h1{font-size:clamp(28px,6vw,38px);line-height:1.15;margin:12px 0;letter-spacing:-1px}h2{font-size:26px;letter-spacing:-.8px}h1,h2,.card div{overflow-wrap:anywhere}.row>h1,.row>h2{min-width:0}.row>.muted{flex-shrink:0;font-size:13px}.panel{padding:16px;margin:16px 0;border-radius:14px}.scores{margin-bottom:16px;gap:6px}.score{padding:7px 10px}.timeline{margin:16px 0}.card{padding:13px 15px}.wide{margin-top:18px}.hint{font-size:12px;margin:6px 0 20px}details{margin-top:14px}#music{max-width:620px;padding:0 20px;margin:12px auto}.player-wrap{height:200px}#cover{background:#191921}#play-status{margin:8px 0;min-height:0}#play-status:empty,.notice:empty{display:none}.controls{margin-top:12px}footer{padding:24px 20px}footer a{color:var(--muted)}li{padding:6px 0;line-height:1.5}ol{padding-left:22px}select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--pink);outline-offset:3px}

/* Minimal chrome; keep controls and song cards intact. */
header{border-bottom:0}.scores{gap:14px}.score{border:0;border-radius:0;padding:4px 0}.score.active{font-weight:700}.card strong{color:inherit}.music-note{font-size:26px;color:var(--muted)}.player-wrap:has(#cover:not([hidden])){height:56px;border:0;border-radius:10px}.player-wrap iframe{min-height:200px}#playback-options{margin-top:4px}#playback-options summary{font-size:12px}#playback-options button{margin-right:6px}#cover.playing .music-note{color:var(--lime)}main{padding-top:16px;padding-bottom:28px}.panel{border:0}.reveal{border-radius:14px}

/* Compact cards: year, title and artist stack vertically. */
.card,.reveal{display:flex;flex-direction:column;align-items:flex-start;width:160px;max-width:160px;gap:10px;padding:14px}.card>strong,.reveal>strong{flex-shrink:0;font-size:30px;line-height:1;white-space:nowrap}.card>div,.reveal .song-info{width:100%;min-width:0;flex:initial;overflow-wrap:anywhere}.card{font-size:14px;line-height:1.35}.card small{font-size:12px;line-height:1.4;margin-top:6px}.reveal{margin:20px auto}.reveal .song-info{border:0;padding:0}.reveal h3{font-size:16px;line-height:1.3;margin:0 0 6px;letter-spacing:0}.reveal p{font-size:12px;line-height:1.4}

/* Team information lives in the top bar throughout the game. */
#team-bar{display:block;position:sticky;top:0;z-index:10;background:var(--bg);border-bottom:1px solid var(--line);padding:12px 20px;width:100%}#team-bar[hidden]{display:none}.team-scores{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}.team-score{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;padding:10px;border-radius:10px;color:var(--muted);font-size:13px}.team-score.active{background:var(--panel);color:var(--lime);box-shadow:inset 0 -2px var(--lime)}.team-name{overflow-wrap:anywhere;font-weight:600}.team-score strong{white-space:nowrap;font-variant-numeric:tabular-nums}.team-target{font-weight:400;color:var(--muted)}.team-turn{grid-column:1/-1;font-size:10px;margin-top:4px}.game-help{max-width:620px;margin:auto;padding:0 20px 16px;text-align:center}

/* A growing timeline extends sideways, never into additional rows. */
.timeline{display:flex;flex-flow:row nowrap;align-items:stretch;gap:10px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding:6px 4px 14px;scroll-padding-inline:4px;scrollbar-width:thin;scrollbar-color:var(--muted) var(--panel)}.timeline>.card{flex:0 0 160px;width:160px;max-width:160px;min-height:112px;gap:10px}.timeline>.slot{flex:0 0 48px;width:48px;margin:0;padding:8px;font-size:24px;min-height:96px}.timeline:focus-visible{outline:2px solid var(--lime);outline-offset:3px;border-radius:8px}@media(max-width:480px){.timeline>.card{flex-basis:144px;width:144px;padding:12px}.timeline>.slot{flex-basis:44px;width:44px}.timeline{gap:8px}}

/* The record turns only while audio is playing. */
.player-wrap:has(#cover:not([hidden])){height:200px}.vinyl{width:176px;height:176px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:repeating-radial-gradient(circle,#191921 0px,#191921 3px,#30303b 4px,#191921 5px);border:1px solid #494353;animation:spin 4s linear infinite;animation-play-state:paused}.vinyl span{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--pink);color:#17141d;font-size:16px;font-weight:700}#cover.playing .vinyl{animation-play-state:running}@media(prefers-reduced-motion:reduce){.vinyl{animation:none}}

.coins{color:#f4cc62;font-size:12px}.coin-title{color:#f4cc62;font-size:.65em}.buy{margin:5px}.bonus{border:1px solid var(--line);border-radius:12px;padding:12px}.bonus p{margin:4px 0 10px}.slot:disabled{opacity:.8}.coin-shop{border-top:1px solid var(--line);padding-top:6px}
@media(max-width:480px){.card,.reveal{width:144px;max-width:144px}}

.continue-row{display:flex;align-items:center;gap:16px;margin-top:20px}.continue-row>button{flex:1}.coin-check{display:flex;align-items:center;gap:8px;white-space:nowrap;min-height:48px;margin:0;cursor:pointer}.coin-check input{width:22px;height:22px;margin:0;padding:0;accent-color:var(--lime)}
