:root{--ink:#111810;--acid:#cfed72;--paper:#e8e8db;--muted:#9aab99;--video-brightness:.85;--lane-shade:.7;font-family:Arial,Helvetica,sans-serif;color:var(--paper);background:#080d0b;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,a,input,select{touch-action:manipulation}button,select,input{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--acid);outline-offset:5px}[hidden]{display:none!important}#app{min-height:100svh;position:relative;isolation:isolate;overflow:hidden}.backdrop,.vignette{position:fixed;inset:0;z-index:-3;pointer-events:none}.backdrop img,.backdrop video{width:100%;height:100%;object-fit:cover;object-position:65% center;filter:brightness(var(--video-brightness)) saturate(.65)}.backdrop video{position:absolute;inset:0}.vignette{z-index:-2;background:linear-gradient(90deg,#09110df5 0%,#0c140edb 30%,#0a11094d 75%),linear-gradient(0deg,#0a110dee,transparent 45%)}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;border-bottom:1px solid #b4c2a128;position:relative;z-index:5}.brand{display:flex;gap:12px;align-items:center;font-size:13px;line-height:1;font-weight:900;letter-spacing:.04em}.brand-mark{display:block;font:900 28px Impact,Arial;padding:10px 8px;border:1px solid var(--acid);color:var(--acid);transform:skew(-5deg)}.brand-mark span{font:12px monospace;vertical-align:top}.top-meta{display:flex;align-items:center;gap:12px;font:10px monospace;letter-spacing:.12em;color:#c9d1bf}.live-dot,.eyebrow>span{display:inline-block;width:6px;height:6px;background:var(--acid);border-radius:50%;box-shadow:0 0 12px #c4e97766}.slash{color:#687c60}.icon-button{width:40px;height:40px;border:1px solid #abbba140;background:#1020157a;color:var(--paper);font-size:20px}.menu-panel{width:min(480px,45vw);margin:40px 0 30px 8vw}.eyebrow,.small-label{font:9px monospace;letter-spacing:.14em;color:var(--muted)}.eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 18px}h1{font:clamp(62px,7.5vw,110px)/.83 Impact,'Arial Narrow',Arial,sans-serif;letter-spacing:-.025em;margin:0;position:relative;font-weight:900}h1 em{color:var(--acid);font-style:normal}.title-cross{position:absolute;right:10px;top:10px;font:25px monospace;color:var(--acid)}.tagline{font-size:19px;font-weight:600;line-height:1.35;margin:22px 0;color:#d4ddca}.track-card{display:flex;align-items:center;gap:14px;border:1px solid #99ae8b33;background:#102017a8;padding:15px;margin:24px 0}.track-icon{font-size:22px;color:var(--acid);width:42px;height:42px;display:grid;place-items:center;background:#c4dd6220}.track-card h2{font-size:17px;margin:5px 0}.track-card p{font:10px monospace;color:#9fae94;margin:0}.track-card p span{margin:0 7px}.track-index{margin-left:auto;font:20px Impact;color:#80916e}.mode-picker{border:0;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.mode-picker legend{font:9px monospace;letter-spacing:.12em;color:var(--muted);margin-bottom:12px}.mode-card{position:relative;display:flex;gap:10px;align-items:center;padding:17px 12px;border:1px solid #8d9b7e40;background:#0d170f99;cursor:pointer}.mode-card input{position:absolute;opacity:0}.mode-card:has(input:focus-visible){outline:2px solid var(--acid)}.mode-card.selected{border-color:var(--acid);background:#b4d96412}.mode-number{font:10px monospace;color:#6a7e59}.mode-card strong{font-size:12px;letter-spacing:.04em}.mode-card small{display:block;font-size:9px;color:var(--muted);margin-top:6px}.radio-dot{margin-left:auto;width:9px;height:9px;border:1px solid #748b64;border-radius:50%}.selected .radio-dot{background:var(--acid);border-color:var(--acid)}.session-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0}.session-row label{font:9px monospace;letter-spacing:.1em;color:var(--muted)}select{background:#152016;border:1px solid #879b763d;color:#dde5d2;padding:10px;font-size:11px}.primary-button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:19px 22px;border:0;background:var(--acid);color:#15210c;font-size:12px;font-weight:800;letter-spacing:.07em}.primary-button:hover{background:#e0ffa4}.primary-button span{font-size:19px}.status-line,.crowd-rule,.prototype-note{font:9px/1.6 monospace;color:#a0b096}.status-line{min-height:16px}.prototype-note{font-size:8px;letter-spacing:.16em;color:#728466}.crowd-rule{max-width:90%}.menu-controls{position:absolute;left:62%;bottom:20%;width:280px;border-top:1px solid #acba982f;padding-top:20px}.menu-controls>p:not(.small-label){font:11px/1.7 monospace;max-width:250px;color:#c7d2bb}.key-row,.play-keys{display:flex;gap:8px}.key-cap{width:47px;height:49px;display:flex;align-items:center;justify-content:center;position:relative;border:1px solid var(--lane);border-bottom:3px solid var(--lane);background:#0e180ddb}.key-cap kbd{font:20px monospace;color:var(--lane)}.key-cap>span{position:absolute;top:3px;left:4px;font:7px monospace;color:var(--lane)}.pick-hint{display:flex;align-items:center;gap:12px;font:10px monospace;color:#b6c4a6}.pick-hint kbd{border:1px solid #c9dc9f;padding:10px;font:20px monospace}#menu-footer{display:flex;justify-content:space-between;border-top:1px solid #abb99c24;padding:18px 5vw;font:8px monospace;letter-spacing:.1em;color:#7f9571}#highway{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:0}.menu-view #highway{display:none}.playing-view .topbar,.paused-view .topbar,.results-view .topbar{height:74px;pointer-events:none;border:0}.playing-view .topbar .top-meta,.paused-view .topbar .top-meta,.results-view .topbar .top-meta{visibility:hidden}.playing-view .topbar button,.paused-view .topbar button,.results-view .topbar button{pointer-events:auto}.hud{position:fixed;z-index:2;top:90px;left:8vw;right:8vw;display:flex;gap:40px;align-items:center;border-bottom:1px solid #c7d3b447;padding-bottom:18px}.hud-song{display:flex;flex-direction:column;gap:7px}.hud-song strong{font-size:14px}#time-display{font:10px monospace;color:#9daf90}.score-block{margin-left:auto;display:flex;flex-direction:column;gap:5px}.score-block strong{font:35px Impact;letter-spacing:.04em}.combo-block{display:flex;flex-direction:column;align-items:center}.combo-block strong{font:36px Impact;color:var(--acid)}.combo-block strong span{font:19px monospace}.progress{position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#d3e8b31a}.progress>span{display:block;height:100%;background:var(--acid)}#crowd-hud{position:fixed;z-index:2;left:8vw;top:35%;width:145px;font:9px monospace;color:#aabb98}#crowd-hud>div{margin-bottom:20px}meter{display:block;width:100%;height:8px;margin-top:10px;accent-color:var(--acid)}#boo-meter{accent-color:#e28763}#crowd-label{font:10px/1.8 monospace;color:var(--acid);min-height:40px}#judgment{position:fixed;left:60%;top:63%;transform:translate(-50%,-50%);font:30px Impact;letter-spacing:.06em;color:var(--acid);text-shadow:0 2px 18px #000;z-index:3}#judgment.miss{color:#f48d74}#judgment.great{color:#72d4d4}.play-keys{position:fixed;bottom:5%;left:60%;transform:translateX(-50%);justify-content:center;gap:16px;z-index:2}.play-keys .key-cap{width:55px}.play-tip{position:fixed;bottom:3%;left:8vw;font:9px monospace;color:#a9ba9a}.overlay-panel{position:fixed;z-index:8;top:50%;left:50%;transform:translate(-50%,-50%);width:min(480px,90vw);padding:36px;background:#0c170feF;border:1px solid #9db97766;box-shadow:0 30px 150px #000c}.overlay-panel h2{font:56px/.95 Impact;margin:12px 0 24px;letter-spacing:.02em}.overlay-panel h2 em{font-style:normal;color:var(--acid)}.overlay-panel>p:not(.eyebrow){font:11px/1.7 monospace;color:#afbea0}.button-pair{display:flex;gap:12px;margin-top:12px}.secondary-button{flex:1;padding:13px 15px;border:1px solid #aabc8947;background:transparent;color:#dbe6ce;font-size:11px}.text-button{display:block;border:0;background:none;color:#b6c69f;font:10px monospace;margin:18px auto 0}.result-score{display:flex;flex-direction:column;gap:8px}.result-score strong{font:64px Impact;color:var(--acid)}.result-score small{font:8px monospace;color:#a7b992}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:25px 0;border-block:1px solid #7f996143;padding:18px 0}.result-stats>div{display:flex;flex-direction:column;gap:7px}.result-stats strong{font:24px Impact}.result-stats span{font:8px monospace;color:#95a783}dialog{width:min(540px,94vw);max-height:90vh;overflow:auto;background:#101b13;color:var(--paper);border:1px solid #a6bd7f6f;padding:32px;z-index:20}dialog::backdrop{background:#000b;backdrop-filter:blur(7px)}dialog h2{font:36px Impact;margin:0 0 25px}.dialog-close{position:absolute;right:20px;top:16px;background:none;border:0;color:#a9bb93;font-size:26px}.setting{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:17px 0;font-size:11px}.setting label{flex:1}.setting output{font:9px monospace;color:var(--acid);display:block;margin-top:5px}.setting input[type=range]{width:190px;accent-color:var(--acid)}input[type=checkbox]{accent-color:var(--acid)}.setting select{max-width:250px}.setting-note,.rules-note{font:9px/1.7 monospace;color:#95aa86}.binding-field{border:1px solid #80976140;margin:22px 0;padding:15px}.binding-field legend{font:9px monospace;color:#b7cb9c}#binding-buttons{display:flex;flex-wrap:wrap;gap:7px}#binding-buttons button{background:#25331c;border:1px solid #84976455;color:#d9e9c6;padding:9px;font:9px monospace}.compact{padding:13px;width:auto;flex:1}.notice{position:fixed;z-index:30;bottom:25px;left:50%;transform:translateX(-50%);background:#cbe976;color:#192511;padding:14px 25px;font:11px monospace;max-width:90vw;box-shadow:0 4px 40px #0008}.power-active #highway{filter:drop-shadow(0 0 18px #c6f06b55)}.noscript{position:fixed;top:35%;left:10%;background:#131e10;padding:30px}.reduce-motion *{scroll-behavior:auto!important;transition:none!important}@media(max-width:800px){.topbar{height:78px;padding-inline:6vw}.top-meta{font-size:8px}.menu-panel{width:min(480px,88vw);margin:35px auto}h1{font-size:86px;max-width:450px}.menu-controls{position:relative;left:auto;bottom:auto;width:88vw;margin:20px auto 35px}.menu-controls .key-row{float:right;margin-top:-18px}.menu-controls>p:not(.small-label){font-size:10px;max-width:60%}#menu-footer{font-size:7px}.hud{left:5vw;right:5vw;top:82px;gap:16px}.hud-song strong{font-size:10px}.score-block strong{font-size:27px}.combo-block strong{font-size:27px}#crowd-hud{left:5vw;top:29%;width:100px;font-size:8px}#crowd-label{font-size:8px}#judgment{font-size:24px}.play-keys{gap:8px}.play-keys .key-cap{width:38px;height:40px}.play-tip{left:5vw;font-size:8px}.overlay-panel{padding:26px}.overlay-panel h2{font-size:43px}.setting{gap:12px}.setting input[type=range]{width:140px}.setting select{max-width:190px}}@media(max-height:760px) and (min-width:801px){.topbar{height:76px}.menu-panel{margin-top:25px}h1{font-size:80px}.tagline{font-size:16px;margin:16px 0}.track-card{margin:18px 0;padding:11px}.mode-card{padding-block:12px}.primary-button{padding-block:14px}.menu-panel{margin-bottom:20px}}

#countdown{position:fixed;z-index:6;left:60%;top:43%;transform:translate(-50%,-50%);font:100px/1 Impact,Arial,sans-serif;color:var(--acid);text-shadow:0 4px 35px #000;background:#0a130cba;border:1px solid #cfed7260;min-width:140px;padding:22px;text-align:center;pointer-events:none}
.playing-view .backdrop video,.paused-view .backdrop video{object-fit:contain;background:#080d0b}

/* Finger Chart Studio keeps the existing stage and readable lane colors. */
.practice-option{display:flex;align-items:center;gap:8px;font:10px monospace;color:#d4dfc7;margin:14px 0}.practice-option span{font-size:9px;color:var(--muted);margin-left:auto}.studio-open{display:flex;width:100%;align-items:center;justify-content:space-between;margin-top:10px;font-weight:bold}.studio-open span{font:9px monospace;color:var(--muted)}.studio-copy{font:12px/1.8 monospace;color:#bfccb0}.studio-copy strong{display:block;color:var(--acid)}#chart-studio{width:min(620px,94vw)}#chart-studio hr{border:0;border-top:1px solid #a6bd7f33;margin:24px 0}#chart-studio .setting input[type=number]{width:115px;background:#152016;border:1px solid #879b7660;color:#e1ebd1;padding:9px;font:12px monospace}.setting label small{display:block;font:9px/1.7 monospace;color:var(--muted);margin-top:5px}.take-summary{font:11px/1.8 monospace;color:var(--acid);padding:13px;background:#a8d94b0c;border-left:2px solid var(--acid)}#studio-take{max-width:360px}#take-processing:disabled{opacity:.45}.import-chart{display:block;margin-top:12px;text-align:center;cursor:pointer}.import-chart input{display:block;width:100%;margin:10px auto 0;font:10px monospace;color:#a7bb90}button:disabled{cursor:default;opacity:.45}#record-stop{flex:0 0 auto;color:#f8c7ab;border-color:#ed987780;font-weight:bold}.recording #mode-tag{color:#ffb193}.recording #judgment{font-size:22px}.recording #highway{filter:drop-shadow(0 0 9px #d7885330)}.recording .hud{gap:18px}.recording #play-tip{max-width:35vw;line-height:1.7}.recording #combo{color:#ffc48e}
@media(max-width:800px){.practice-option{flex-wrap:wrap}.practice-option span{width:100%;margin-left:22px}#record-stop{font-size:9px;padding:10px}.recording .hud{gap:9px}.recording .score-block strong{font-size:24px}.recording #mode-tag{font-size:8px}#studio-take{max-width:240px}.recording #play-tip{max-width:32vw}.studio-open{padding:13px}}

/* The five receptors are drawn at 71% height; labels cannot look like a second hit row. */
.playing-view .play-keys,.paused-view .play-keys{display:none}.record-legend{position:fixed;z-index:3;top:160px;left:50%;transform:translateX(-50%);font:13px/1.8 monospace;white-space:pre;color:#e1e5e4;background:#101718b8;border:1px solid #e2e8e533;padding:12px 20px;text-align:center}.recording #highway{filter:none}.recording #judgment,.recording .play-keys{display:none!important}.recording #mode-tag,.recording #combo{color:#edf2ef}.recording #countdown{color:#fff;border-color:#eff3f14d;background:#101719dd}.recording #record-stop{color:#f6f8f6;border-color:#eff3f180}.recording .progress>span{background:#edf2ef}.recording .play-tip{color:#d4dcda}#controller-device{max-width:300px}#controller-bindings{overflow-wrap:anywhere}.recording .hud .small-label{color:#b8c2be}
@media(max-width:800px){.menu-controls .key-row{gap:5px}.menu-controls .key-cap{width:38px}.record-legend{top:154px;font-size:11px;padding:10px 14px}#controller-device{max-width:190px}}
/* Raised metal fret caps, shared by keyboard hints and phone controls. */
.key-cap{border-radius:14px 14px 19px 19px;border:2px solid #71878a;border-bottom:5px solid #1c3038;background:radial-gradient(ellipse at 45% 12%,#ffffff55,transparent 45%),linear-gradient(155deg,#263b42,#07121a 65%);box-shadow:0 4px 0 #03090e,0 0 12px color-mix(in srgb,var(--lane) 18%,transparent),inset 0 0 0 3px #0b151a,inset 0 0 0 4px var(--lane)}
.key-cap kbd{text-shadow:0 0 10px color-mix(in srgb,var(--lane) 55%,transparent);font-weight:800}.key-cap>span{top:5px;left:6px;color:#e2ebe0}.device-row select{min-width:235px}.playing-view .backdrop video,.paused-view .backdrop video{object-position:center}
#perfect-counts{font:8px/1.6 monospace;color:#bdcba9}#touch-controls{position:fixed;z-index:6;bottom:0;left:0;right:0;padding:12px max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom));background:linear-gradient(0deg,#030b11f5,#071019d9 70%,transparent);touch-action:none;user-select:none;-webkit-user-select:none}
#touch-frets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(7px,2vw,16px);width:min(740px,100%);margin:auto}
#touch-frets button{position:relative;min-height:72px;padding:10px 4px 8px;color:#f4fff8;border:2px solid #829493;border-bottom:7px solid #14232d;border-radius:21px 21px 27px 27px;background:radial-gradient(ellipse at 45% 5%,#fff9,transparent 37%),linear-gradient(165deg,var(--lane),color-mix(in srgb,var(--lane) 38%,#071321) 75%,#071321);box-shadow:0 5px 0 #01050a,inset 0 0 0 3px #12212b,inset 0 0 0 4px var(--lane),0 0 15px color-mix(in srgb,var(--lane) 22%,transparent);touch-action:none;-webkit-touch-callout:none;overflow:hidden}
#touch-frets button span{display:block;font:900 26px/1 Arial;color:#f6fff7;text-shadow:0 2px 4px #001}.phone-controls #touch-frets kbd{font:10px monospace;opacity:.8}#touch-frets button.pressed{transform:translateY(4px);border-bottom-width:3px;background:radial-gradient(ellipse at 50% 25%,#ffffff,var(--lane) 60%,#142c36);box-shadow:0 1px 0 #01050a,inset 0 0 0 2px #ecfff0,0 0 25px var(--lane)}#touch-frets button.pressed span{color:#10201c;text-shadow:none}
#touch-pick{display:block;margin:12px auto 0;width:min(320px,80%);padding:10px;border:1px solid #cde991;border-radius:12px;background:linear-gradient(#35502d,#152b1b);color:#eaffc9;font:800 12px monospace;touch-action:none}#touch-pick.pressed{background:#d4f88f;color:#11200d}
.phone-controls #play-keys,.phone-controls .play-tip{display:none!important}.phone-controls #notice{bottom:160px}.phone-controls.recording #touch-frets button{--lane:#c5cecc!important;background:linear-gradient(155deg,#586461,#202d2b 80%);box-shadow:0 5px 0 #07100f,inset 0 0 0 3px #293733;filter:none}.phone-controls.recording #touch-frets button.pressed{background:linear-gradient(#dfe5e2,#83938a);box-shadow:0 1px 0 #07100f,inset 0 0 0 2px #e9eeea}.phone-controls.recording .record-legend{top:auto;bottom:122px;font-size:11px}
@media(max-width:800px){.device-row select{min-width:0;width:69%}#touch-frets button{min-height:74px}.phone-controls #crowd-hud{top:28%;width:86px}.phone-controls #crowd-hud>div{margin-bottom:12px}.phone-controls .hud{gap:12px}.phone-controls .hud-song{max-width:44%}.phone-controls #mode-tag{font-size:7px}.phone-controls #crowd-label{font-size:9px}.phone-controls #judgment{left:52%;top:59%;font-size:25px}.phone-controls #record-stop{font-size:9px;padding:10px 7px}.phone-controls .hud-song strong{font-size:9px}}
@media(max-height:500px){.phone-controls .topbar{height:48px}.phone-controls .topbar .brand{font-size:9px}.phone-controls .brand-mark{font-size:18px;padding:5px}.phone-controls .hud{top:53px;padding-bottom:9px}.phone-controls #crowd-hud{top:34%;width:85px}.phone-controls #crowd-hud>div{margin-bottom:10px}.phone-controls #touch-frets button{min-height:50px;padding:6px 2px;border-radius:17px}.phone-controls #touch-frets button span{font-size:21px}.phone-controls #touch-frets kbd{display:none}#touch-controls{padding-top:6px;padding-bottom:max(7px,env(safe-area-inset-bottom))}#touch-pick{position:absolute;right:15px;bottom:80px;width:120px}.phone-controls.recording .record-legend{bottom:80px}.phone-controls #notice{bottom:95px}}
#admin-code{display:block;width:100%;margin-top:15px;padding:13px 14px;border:1px solid #8fae7166;border-radius:4px;background:#09140e;color:#eaf2df;letter-spacing:.12em;font-size:16px}#admin-status{min-height:20px;color:#e7c69e}#touch-pick{min-height:44px}
/* The music video is the stage; only a light transparent road sits above it. */
:root{--video-brightness:1;--video-filter:none;--lane-shade:.2}.playing-view .vignette,.paused-view .vignette{background:linear-gradient(180deg,#02080688,transparent 22%,transparent 86%,#02080644)}.playing-view .backdrop video,.paused-view .backdrop video{filter:var(--video-filter,none)}.playing-view .hud,.paused-view .hud{background:linear-gradient(90deg,#06100bd9,#07120a80);padding:12px 15px;border-radius:8px}.playing-view #crowd-hud,.paused-view #crowd-hud{background:#07110cbb;border:1px solid #bdcea32b;padding:12px;border-radius:7px}#judgment{text-shadow:0 2px 3px #000,0 0 12px #000;contain:layout paint}.phone-controls.power-active #highway{filter:none}
.chart-backups{display:flex;gap:8px;margin:10px 0 16px}.chart-backups label{cursor:pointer;text-align:center}.chart-backups input{position:absolute;width:1px;height:1px;opacity:0}.chart-backups .secondary-button{padding:10px 8px;font-size:10px}#take-status{min-height:28px;line-height:1.5;margin:0}#video-status{position:fixed;z-index:9;right:4vw;top:185px;max-width:300px;padding:12px;background:#132119ef;border:1px solid #b9d48688;border-radius:6px;font:11px/1.5 monospace}#video-status button{display:block;margin-top:8px;min-height:40px;padding:7px 12px;background:#d0ed85;color:#10210e;border:0;font-weight:bold}.menu-view #video-status,.results-view #video-status{display:none}@media(max-width:800px){#video-status{top:173px;max-width:230px;font-size:10px}.playing-view .hud,.paused-view .hud{padding:10px 7px}.playing-view #crowd-hud,.paused-view #crowd-hud{padding:8px}}
#chart-export{width:min(640px,94vw)}#export-file{box-sizing:border-box;cursor:pointer;min-height:48px}#export-text{display:block;box-sizing:border-box;width:100%;height:180px;resize:vertical;margin:10px 0 18px;padding:12px;border:1px solid #8fae7166;border-radius:4px;background:#08100c;color:#dae8cb;font:11px/1.5 monospace;white-space:pre;tab-size:2}#export-status{min-height:32px;font-size:11px;line-height:1.6}#export-close{width:100%;min-height:42px}
.home-link{position:relative;z-index:12;display:inline-flex;align-items:center;min-height:40px;margin-left:auto;margin-right:22px;padding:9px 13px;border:1px solid #c4d6a455;border-radius:5px;background:#102017d9;color:#e4f0d5;font:700 11px monospace;letter-spacing:.07em;pointer-events:auto}.home-link:hover{border-color:#cdec86;background:#284126}.playing-view .topbar .home-link,.paused-view .topbar .home-link,.results-view .topbar .home-link{pointer-events:auto;visibility:visible}@media(max-width:800px){.home-link{margin-right:10px;padding:7px 9px;font-size:10px}.top-meta{display:none}}
/* Stage count-in: machined dial, luminous timing ring, and embossed numerals. */
#countdown{--count-progress:1;width:166px;height:166px;min-width:0;padding:0;border:0;background:none;box-shadow:none;text-shadow:none;font:inherit;display:grid;place-items:center;filter:drop-shadow(0 9px 18px #000b);isolation:isolate}
#countdown::before{content:'';position:absolute;inset:17px;border-radius:50%;background:radial-gradient(ellipse at 50% 10%,#66756b55,transparent 48%),linear-gradient(145deg,#23302beF,#09120ff5 65%,#18231df2);box-shadow:inset 0 2px 2px #ebf3db30,inset 0 -3px 10px #000b;z-index:-1}
.countdown-dial{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.dial-metal{fill:#08110ee8;stroke:#9aab9a;stroke-width:1}.dial-track{fill:none;stroke:#60725d66;stroke-width:3}.dial-progress{fill:none;stroke:#d0ed92;stroke-width:3;stroke-linecap:round;stroke-dasharray:427.26;stroke-dashoffset:calc(427.26 * (1 - var(--count-progress)));transform:rotate(-90deg);transform-origin:50% 50%;filter:drop-shadow(0 0 4px #c6ef72a0)}.dial-ticks{fill:none;stroke:#dce6d28a;stroke-width:1.1}
.countdown-face{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;width:132px;height:132px;border:1px solid #d2e1b52e;border-radius:50%;background:radial-gradient(ellipse at 50% 0%,#acbaa327,#06100cf2 76%);box-shadow:inset 0 1px 0 #f8ffe028,inset 0 -1px 0 #f8ffe018}.countdown-kicker{font:700 8px/1 monospace;letter-spacing:.25em;color:#b9ccb0;margin:0 0 6px .25em}#countdown-number{display:block;font:900 80px/.9 Impact,'Arial Black',Arial,sans-serif;letter-spacing:-.035em;background:linear-gradient(180deg,#fffff0 0%,#ecf0dd 37%,#a9b79d 54%,#f4f8e8 57%,#bac7af 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 2px 0 #0008) drop-shadow(0 0 10px #cdec7a25);font-variant-numeric:tabular-nums}.countdown-instruction{font:700 6px/1 monospace;letter-spacing:.16em;color:#a7bba0;margin-top:7px}
/* Compact hit feedback sits above the fret line; the movie stays visible. */
#judgment{--feedback:#d3ed9c;left:60%;top:61%;z-index:4;display:flex;align-items:center;gap:12px;min-width:224px;max-width:88vw;min-height:75px;padding:12px 20px 14px 15px;border:1px solid #b6c99a6b;border-left:3px solid var(--feedback);border-radius:4px 12px 4px 4px;background:linear-gradient(110deg,#25352aef,#07130eea 78%);box-shadow:inset 0 1px 0 #f4ffe52b,0 8px 24px #0008,0 0 19px #b8e46c14;color:var(--feedback);font:inherit;letter-spacing:normal;text-shadow:none;pointer-events:none;overflow:hidden}
#judgment.miss{--feedback:#ff9b85;color:var(--feedback);border-color:#e29c8180;border-left-color:#ff9b85;background:linear-gradient(110deg,#4a241fef,#1c1411ef 82%);box-shadow:inset 0 1px 0 #ffd7c32b,0 8px 24px #0008,0 0 18px #f06e5320}#judgment.great{--feedback:#99e4e0;color:var(--feedback);border-color:#99e4e06b}#judgment.good{--feedback:#f2d28b;color:var(--feedback);border-color:#f2d28b6b}.judgment-emblem{flex:none;width:36px;height:40px;filter:drop-shadow(0 0 7px #d3ec7c22)}.emblem-frame{fill:#efffe00b;stroke:currentColor;stroke-width:1.1}.emblem-cross,.emblem-check{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.emblem-cross{display:none}#judgment.miss .emblem-cross{display:block}#judgment.miss .emblem-check{display:none}.judgment-copy{display:flex;flex-direction:column;gap:6px;text-align:left}.judgment-copy strong{font:900 28px/.94 Impact,'Arial Black',Arial,sans-serif;letter-spacing:.055em;color:#f1f5df}#judgment.miss .judgment-copy strong{color:#ffd7c4}.judgment-copy span{font:700 7px/1.3 monospace;letter-spacing:.09em;color:var(--feedback)}.judgment-trace{position:absolute;bottom:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--feedback),transparent 82%)}
@media(max-width:800px){#countdown{left:52%;top:43%;width:148px;height:148px}.countdown-face{width:116px;height:116px}#countdown-number{font-size:70px}.countdown-kicker{font-size:7px}.countdown-instruction{font-size:5.5px}#judgment,.phone-controls #judgment{left:52%;top:59%;min-width:216px;min-height:68px;padding:10px 14px;gap:10px}.judgment-copy strong{font-size:25px}.judgment-copy span{font-size:6.5px}.judgment-emblem{width:31px;height:35px}}
@media(max-height:500px){#countdown{top:43%;width:126px;height:126px}.countdown-face{width:98px;height:98px}#countdown-number{font-size:56px}.countdown-kicker{font-size:6px}.countdown-instruction{font-size:5px;margin-top:4px}#judgment,.phone-controls #judgment{top:56%;min-height:58px;padding:8px 13px}.judgment-copy strong{font-size:23px}.judgment-emblem{width:27px;height:31px}}
/* Authoring stays out of the visitor's play flow. */
#menu-footer{flex-direction:column;align-items:stretch;gap:13px}.footer-meta{display:flex;justify-content:space-between;gap:16px}.admin-tools-link{align-self:center;padding:8px 14px;border:0;background:none;color:#8b9e81;font:9px monospace;letter-spacing:.12em;text-decoration:underline;text-underline-offset:4px}.admin-tools-link:hover{color:#d5edac}#admin-tools .session-row{align-items:flex-start}#admin-tools .session-row select{max-width:76%;font-size:10px}#admin-tools .chart-backups{margin-bottom:20px}#admin-tools .studio-open{width:100%;margin:18px 0}#admin-tools #take-status{font-size:10px;line-height:1.6}#admin-tools .button-pair{margin-top:22px}

/* Ring hardware: colored collar, bright silver bead, small black center. */
.key-cap,#touch-frets button{border:1.5px solid #aab8bf;border-bottom:4px solid color-mix(in srgb,var(--lane) 55%,#071016);border-radius:50% 50% 44% 44%;background:linear-gradient(160deg,#1b252d,#03070b 60%,#0a1117);box-shadow:0 5px 0 #010509,0 7px 7px #0006,inset 0 0 0 4px var(--lane),inset 0 0 0 5px #eaf0f3,inset 0 0 0 8px #9aabb5,inset 0 0 0 9px #e0e8ed,inset 0 0 0 10px #18232b;overflow:hidden}
.key-hint{display:flex;flex-direction:column;align-items:center;gap:10px}
.key-hint>kbd{font:700 13px/1 monospace;color:var(--lane);text-shadow:0 2px 2px #000}
#touch-frets button{min-height:66px;padding:0;transition:transform 55ms ease-out;will-change:auto}
.key-cap::before,#touch-frets button::before{content:'';position:absolute;inset:7px;border-radius:inherit;border-top:1px solid #f4faffbb;border-bottom:1px solid #020506;pointer-events:none}
#touch-frets button.pressed{transform:translateY(-5px);border-bottom-width:4px;background:linear-gradient(160deg,#26343d,#03070b 64%);box-shadow:0 10px 0 #010509,0 12px 9px #0007,inset 0 0 0 4px var(--lane),inset 0 0 0 5px #fff,inset 0 0 0 8px #e4f2f7,inset 0 0 0 9px #fff,inset 0 0 0 10px #18232b,0 0 10px color-mix(in srgb,var(--lane) 30%,transparent)}
/* Lower thumb row with a clear gap below the string heads and above system gestures. */
#touch-controls{bottom:calc(env(safe-area-inset-bottom) + clamp(24px,4svh,36px));padding-bottom:14px;background:linear-gradient(0deg,#030a0ee8,#07101996 65%,transparent);pointer-events:none}
#touch-controls button{pointer-events:auto}.phone-controls #notice{bottom:230px}
#music-video{pointer-events:none!important;user-select:none;-webkit-user-select:none;touch-action:none}
.backdrop{pointer-events:none!important}.power-active #highway{filter:none}
body:not(.phone-controls) .playing-view .play-keys,body:not(.phone-controls) .paused-view .play-keys{display:flex}
.play-keys .key-cap{height:54px;min-width:55px}.play-keys{bottom:5%;gap:13px}
/* Compact field telemetry, with a restrained double edge and recessed cells. */
.playing-view .hud,.paused-view .hud{border:1px solid #7d97905c;border-bottom-color:#d0dfaa80;border-radius:3px 13px 3px 3px;background:linear-gradient(105deg,#14251fd9,#07120eda 72%);box-shadow:inset 0 1px 0 #e6f5df24,inset 0 -3px 0 #020b0a8c,0 4px 0 #0206076b;padding:12px 16px}
.hud-song{padding-right:14px;border-right:1px solid #9eb6a13a}.score-block{padding:6px 12px;border:1px solid #75948740;border-top-color:#c3d5bb61;border-radius:2px;background:linear-gradient(#050e0dba,#14231b99);box-shadow:inset 0 2px 4px #0007}.score-block strong{font-variant-numeric:tabular-nums;text-shadow:0 2px 0 #000;line-height:1}.combo-block{min-width:56px;padding:5px 9px;border-left:1px solid #aec29145;border-right:1px solid #283b3077}.hud .icon-button{border-top-color:#c7d5bf7a;background:linear-gradient(#29403580,#0a1610);box-shadow:inset 0 1px 0 #ecffdc18,0 3px 0 #010705}
.playing-view #crowd-hud,.paused-view #crowd-hud{border:1px solid #829b7955;border-left:3px solid #92a78380;border-radius:2px 8px 2px 2px;box-shadow:inset 0 1px 0 #e5f4cc1f,0 4px 0 #0207066b;background:linear-gradient(130deg,#192b20d6,#07110ce0)}
@media(max-width:800px){.playing-view .hud,.paused-view .hud{padding:8px 7px;gap:9px}.hud-song{padding-right:6px}.score-block{padding:6px 7px}.combo-block{min-width:40px;padding:5px}.phone-controls .hud-song{max-width:43%}.phone-controls .hud-song strong{font-size:9px}.phone-controls .hud .small-label{font-size:7px}.phone-controls #notice{bottom:220px}}
@media(max-height:650px){#touch-controls{bottom:calc(env(safe-area-inset-bottom) + 22px)}}
@media(max-height:500px){#touch-controls{bottom:calc(env(safe-area-inset-bottom) + 16px);padding-bottom:7px}.phone-controls .hud{padding:6px}.score-block{padding:3px 6px}.phone-controls #touch-frets button{min-height:50px;padding:7px 2px}.phone-controls #notice{bottom:155px}}

@media(max-width:800px){body.phone-controls .hud-song{flex:1 1 35%;min-width:0;max-width:none}body.phone-controls .hud-song strong{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.phone-controls .score-block{flex:0 0 auto}body.phone-controls #pause{flex:0 0 34px;width:34px}#time-display{white-space:nowrap}}

#neck-layer{position:fixed;inset:0;width:100vw;height:100vh;z-index:0;pointer-events:none;display:none}.playing-view #neck-layer,.paused-view #neck-layer{display:block}.recording #neck-layer{display:none!important}

/* One playing surface: the string heads are also the phone touch controls. */
#play-keys{display:none!important}
#touch-controls{position:fixed;inset:0;width:100%;height:100%;padding:0;margin:0;background:none;border:0;transform:none;pointer-events:none;touch-action:none;z-index:6}
#touch-frets{display:contents;width:auto;max-width:none;margin:0}
#touch-frets button,#touch-frets button.pressed,.phone-controls #touch-frets button{position:absolute;min-height:0;min-width:0;padding:0;margin:0;border:0;border-radius:30%;background:transparent;box-shadow:none;transform:none;transition:none;color:transparent;pointer-events:auto;touch-action:none;user-select:none}
#touch-frets button::before,#touch-frets button::after{display:none}
#touch-frets button:focus-visible{outline:2px solid var(--lane);outline-offset:1px}
/* Centered, aligned telemetry stays above the neck instead of covering its headstock. */
.playing-view .topbar,.paused-view .topbar{height:64px;gap:14px;padding-inline:4vw}
.playing-view .topbar .top-meta,.paused-view .topbar .top-meta{display:none}
.playing-view .topbar .home-link,.paused-view .topbar .home-link{margin-left:auto;margin-right:0}
.playing-view .hud,.paused-view .hud{left:50%;right:auto;top:78px;transform:translateX(-50%);width:min(1040px,92vw);display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(190px,1.4fr) 140px 64px 38px;align-items:center;gap:18px;padding:12px 16px;border-radius:4px 11px 4px 4px}
.hud-song{min-width:0;max-width:none;padding-right:12px;gap:6px}
.hud-song strong{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.hud .score-block{margin:0;padding:7px 10px;min-width:0}.hud .score-block strong{font-size:31px}
.hud .combo-block{min-width:0;padding:6px}.hud .combo-block strong{font-size:28px}
.hud #pause{width:38px;height:40px;min-width:0}
.hud #crowd-hud{position:static;inset:auto;display:grid;grid-template-columns:1fr 1.35fr;gap:5px 12px;min-width:0;width:auto;margin:0;padding:7px 10px;border-left:1px solid #829b7955;font:8px/1.25 monospace;align-self:stretch;align-content:center}
.hud #crowd-hud>div{min-width:0;margin:0}.hud #crowd-hud meter{width:100%;height:5px;margin:4px 0 0}
.hud #power-label{white-space:nowrap}.hud #perfect-counts{grid-column:2;grid-row:2;white-space:nowrap;font:7px/1.3 monospace}
.hud #crowd-label{grid-column:1;grid-row:2;min-height:0;min-width:0;margin:0;font:7px/1.3 monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not(.phone-controls) #countdown{left:50%;top:51%}
body:not(.phone-controls) #judgment{left:50%;top:73%;transform:translate(-50%,-50%);min-width:195px;min-height:58px;padding:9px 13px;gap:9px}
body:not(.phone-controls) .judgment-copy strong{font-size:23px}body:not(.phone-controls) .judgment-copy span{font-size:6px}body:not(.phone-controls) .judgment-emblem{width:27px;height:30px}
.recording .hud{grid-template-columns:minmax(180px,1fr) 120px 70px 38px auto}
/* Phone portrait uses a taller road and one wide thumb target per visible head. */
body.phone-controls .playing-view .topbar,body.phone-controls .paused-view .topbar{height:48px;padding-inline:4vw;gap:8px}
body.phone-controls .playing-view .brand>span:last-child,body.phone-controls .paused-view .brand>span:last-child{display:block;font-size:9px}
body.phone-controls .playing-view .brand-mark,body.phone-controls .paused-view .brand-mark{font-size:21px;padding:6px}
body.phone-controls .playing-view .home-link,body.phone-controls .paused-view .home-link{min-height:30px;font-size:8px;padding:5px 8px}
body.phone-controls .playing-view #settings-open,body.phone-controls .paused-view #settings-open{width:30px;height:30px;font-size:18px}
body.phone-controls .playing-view .hud,body.phone-controls .paused-view .hud{top:56px;width:94vw;grid-template-columns:minmax(0,1fr) 88px 42px 32px;gap:7px 8px;padding:8px}
body.phone-controls .hud-song{grid-column:1;grid-row:1;flex:none;min-width:0;max-width:none;gap:4px;padding-right:6px}
body.phone-controls .hud-song strong{font-size:9px}body.phone-controls .hud .small-label{font-size:6px}body.phone-controls #mode-tag{font-size:6px;letter-spacing:.04em}body.phone-controls #time-display{font-size:8px}
body.phone-controls .hud .score-block{grid-column:2;grid-row:1;padding:5px 6px}body.phone-controls .hud .score-block strong{font-size:23px}
body.phone-controls .hud .combo-block{grid-column:3;grid-row:1;padding:4px;min-width:0}body.phone-controls .hud .combo-block strong{font-size:24px}
body.phone-controls .hud #pause{grid-column:4;grid-row:1;width:32px;height:36px;flex:none}
body.phone-controls .hud #crowd-hud{grid-column:1/-1;grid-row:2;grid-template-columns:1fr 1.4fr 1.2fr 1fr;align-items:center;gap:8px;padding:5px 6px;font-size:6.5px}
body.phone-controls .hud #crowd-hud>div{margin:0}body.phone-controls .hud #perfect-counts,body.phone-controls .hud #crowd-label{grid-column:auto;grid-row:auto;font-size:6px}
body.phone-controls .hud #crowd-hud meter{height:4px;margin-top:3px}
body.phone-controls #countdown{left:50%;top:46%}body.phone-controls #judgment{left:50%;top:70%;min-width:190px;min-height:54px;padding:8px 11px;gap:8px}
body.phone-controls .judgment-copy strong{font-size:22px}body.phone-controls .judgment-copy span{font-size:6px}body.phone-controls .judgment-emblem{width:26px;height:29px}
body.phone-controls #notice{bottom:22px}
@media(max-width:900px) and (min-width:601px){body:not(.phone-controls) .hud{grid-template-columns:minmax(120px,1.1fr) minmax(140px,1.2fr) 110px 45px 34px;gap:10px;padding:10px}body:not(.phone-controls) .hud .score-block strong{font-size:27px}}
@media(max-width:600px){body:not(.phone-controls) .hud{grid-template-columns:minmax(0,1fr) 100px 44px 34px;gap:8px;padding:8px}body:not(.phone-controls) .hud #crowd-hud{grid-column:1/-1;grid-row:2}body:not(.phone-controls) .hud-song strong{font-size:10px}}
@media(max-height:500px){
 body.phone-controls .playing-view .topbar,body.phone-controls .paused-view .topbar{height:38px}
 body.phone-controls .playing-view .hud,body.phone-controls .paused-view .hud{top:43px;width:min(780px,94vw);grid-template-columns:minmax(100px,1fr) minmax(150px,1.4fr) 90px 42px 32px;padding:5px 8px;gap:8px}
 body.phone-controls .hud #crowd-hud{grid-column:2;grid-row:1;grid-template-columns:1fr 1.3fr;padding:4px 6px;gap:3px 8px}
 body.phone-controls .hud #perfect-counts{grid-column:2;grid-row:2}body.phone-controls .hud #crowd-label{grid-column:1;grid-row:2}
 body.phone-controls .hud .score-block{grid-column:3}body.phone-controls .hud .combo-block{grid-column:4}body.phone-controls .hud #pause{grid-column:5}
 body.phone-controls .hud .score-block strong{font-size:21px}body.phone-controls #judgment{top:62%}
}

#highway,#neck-layer,#touch-controls{height:100dvh;width:100vw}
/* One compact top band occupies the free space marked in the artist's screenshot. */
#judgment{display:none!important}
body:not(.phone-controls) .playing-view .topbar,body:not(.phone-controls) .paused-view .topbar{position:fixed;inset:0 0 auto;display:grid;grid-template-columns:145px minmax(0,1fr) 64px 32px;align-items:center;height:64px;gap:9px;padding:5px 2.5vw;z-index:8;background:linear-gradient(#030806b8,#03080648);border:0}
body:not(.phone-controls) .topbar .hud{position:relative;inset:auto;transform:none;width:100%;min-width:0;height:52px;margin:0;padding:5px 8px;display:grid;grid-template-columns:minmax(110px,1fr) minmax(150px,1.3fr) 102px 42px 30px;gap:8px;border-radius:3px 7px 3px 3px;box-shadow:inset 0 1px 0 #dcebc91a}
body:not(.phone-controls) .topbar .hud-song{gap:3px;padding-right:5px;border:0}
body:not(.phone-controls) .topbar .hud-song strong{font-size:10px}
body:not(.phone-controls) .topbar .small-label,body:not(.phone-controls) .topbar #mode-tag{font-size:6.5px;letter-spacing:.05em}
body:not(.phone-controls) .topbar #time-display{font-size:8px}
body:not(.phone-controls) .topbar .score-block{padding:4px 7px}
body:not(.phone-controls) .topbar .score-block strong{font-size:25px}
body:not(.phone-controls) .topbar .combo-block{padding:3px;min-width:0}
body:not(.phone-controls) .topbar .combo-block strong{font-size:24px}
body:not(.phone-controls) .topbar .combo-block strong span{font-size:12px}
body:not(.phone-controls) .topbar #crowd-hud{padding:4px 6px;gap:3px 8px;font-size:7px;box-shadow:none}
body:not(.phone-controls) .topbar #perfect-counts,body:not(.phone-controls) .topbar #crowd-label{font-size:6px}
body:not(.phone-controls) .topbar #pause{width:30px;height:34px}
body:not(.phone-controls) .playing-view .brand,body:not(.phone-controls) .paused-view .brand{gap:8px;font-size:10px}
body:not(.phone-controls) .playing-view .brand-mark,body:not(.phone-controls) .paused-view .brand-mark{font-size:25px;padding:7px 6px}
body:not(.phone-controls) .playing-view .home-link,body:not(.phone-controls) .paused-view .home-link{min-height:32px;font-size:9px;padding:6px;margin:0;justify-content:center}
body:not(.phone-controls) .playing-view #settings-open,body:not(.phone-controls) .paused-view #settings-open{width:32px;height:32px;font-size:18px}
body:not(.phone-controls).recording .topbar .hud{grid-template-columns:minmax(140px,1fr) 85px 42px 30px 105px}
@media(max-width:1000px){
 body:not(.phone-controls) .playing-view .topbar,body:not(.phone-controls) .paused-view .topbar{grid-template-columns:43px minmax(0,1fr) 53px 30px;gap:7px;padding-inline:2vw}
 body:not(.phone-controls) .playing-view .brand>span:last-child,body:not(.phone-controls) .paused-view .brand>span:last-child{display:none}
 body:not(.phone-controls) .topbar .hud{grid-template-columns:minmax(90px,1fr) minmax(110px,1.2fr) 86px 35px 28px;gap:6px;padding:5px}
 body:not(.phone-controls) .topbar .score-block strong{font-size:22px}
}
body.phone-controls .playing-view .topbar,body.phone-controls .paused-view .topbar{position:fixed;inset:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) 52px 30px;align-items:center;height:auto;gap:5px 8px;padding:6px 3vw;z-index:8;background:linear-gradient(#030806bc,#03080638);border:0}
body.phone-controls .topbar .brand{grid-column:1;grid-row:1}
body.phone-controls .topbar .home-link{grid-column:2;grid-row:1;margin:0;justify-content:center}
body.phone-controls .topbar #settings-open{grid-column:3;grid-row:1}
body.phone-controls .topbar .hud{position:relative;inset:auto;transform:none;grid-column:1/-1;grid-row:2;width:100%;min-width:0;height:auto;margin:0;padding:6px;gap:5px 8px;grid-template-columns:minmax(0,1fr) 88px 38px 30px}
body.phone-controls .topbar .hud #pause{width:30px;height:32px}
body.phone-controls .topbar .hud .score-block strong{font-size:22px}
body.phone-controls .topbar .hud #crowd-hud{padding:4px;gap:6px;box-shadow:none}
@media(max-height:500px) and (min-width:600px){
 body.phone-controls .playing-view .topbar,body.phone-controls .paused-view .topbar{grid-template-columns:34px minmax(0,1fr) 48px 28px;height:56px;gap:7px;padding:4px 2vw}
 body.phone-controls .playing-view .brand>span:last-child,body.phone-controls .paused-view .brand>span:last-child{display:none}
 body.phone-controls .playing-view .brand-mark,body.phone-controls .paused-view .brand-mark{font-size:18px;padding:4px}
 body.phone-controls .topbar .hud{grid-column:2;grid-row:1;height:48px;grid-template-columns:minmax(80px,1fr) minmax(100px,1.2fr) 76px 32px 26px;padding:4px;gap:6px}
 body.phone-controls .topbar .home-link{grid-column:3;grid-row:1}
 body.phone-controls .topbar #settings-open{grid-column:4;grid-row:1;width:28px;height:30px}
 body.phone-controls .topbar .hud #pause{width:26px;height:30px}
 body.phone-controls .topbar .hud .score-block strong{font-size:20px}
 body.phone-controls .topbar .hud #crowd-hud{grid-column:2;grid-row:1;grid-template-columns:1fr 1.3fr}
}
@media(max-width:760px){
 body:not(.phone-controls) .topbar .hud{grid-template-columns:minmax(0,1fr) 72px 30px 26px;height:54px;gap:3px 6px;padding:3px 5px}
 body:not(.phone-controls) .topbar .hud-song{grid-column:1;grid-row:1;gap:2px}
 body:not(.phone-controls) .topbar .hud-song strong{font-size:8px}
 body:not(.phone-controls) .topbar .score-block{grid-column:2;grid-row:1;padding:3px}
 body:not(.phone-controls) .topbar .combo-block{grid-column:3;grid-row:1}
 body:not(.phone-controls) .topbar #pause{grid-column:4;grid-row:1;width:26px;height:28px}
 body:not(.phone-controls) .topbar #crowd-hud{grid-column:1/-1;grid-row:2;grid-template-columns:1fr 1.5fr;padding:1px 4px}
 body:not(.phone-controls) .topbar #perfect-counts,body:not(.phone-controls) .topbar #crowd-label{display:none}
 body:not(.phone-controls) .topbar #crowd-hud meter{height:3px;margin-top:1px}
}
.topbar .hud .score-block{gap:2px}
.topbar .hud .combo-block strong{line-height:1}

#song-select{min-width:0;flex:1;width:100%;max-width:calc(100% - 50px)}

/* Song administration shares the existing modal and button design. */
#admin-tools,#song-upload{width:min(680px,calc(100vw - 24px));max-height:90dvh;overflow:auto;box-sizing:border-box}#song-upload h2{font-size:clamp(24px,5vw,36px)}.song-file-field{display:flex;flex-direction:column;gap:7px;margin:15px 0;padding:14px;background:#ffffff08;border:1px solid #ffffff25;border-radius:6px}.song-file-field small{color:#bac5b8;overflow-wrap:anywhere}.song-file-field input{max-width:100%;font-size:14px}#song-file-name{min-width:0;width:60%}#song-upload-progress{width:100%;margin-top:15px;accent-color:#b8ef51}#song-save-status,#chart-cloud-status,#studio-cloud-status{white-space:normal;overflow-wrap:anywhere;line-height:1.5}#admin-song-select{min-width:0;width:100%}#song-upload .setting input[type=number],#admin-bpm,#record-bpm{width:120px}#song-upload button:disabled{opacity:.5}#song-upload .setting{gap:12px}@media(max-width:540px){#admin-tools .button-pair{display:flex;flex-wrap:wrap}#admin-tools .button-pair>*{flex:1 1 200px}#song-file-name{width:100%}#song-upload .setting{flex-wrap:wrap}}

.backdrop img.song-cover{object-fit:contain;object-position:center;background:#080d0b;filter:var(--video-filter,none)}

#recording-seek{margin:15px 0;padding:14px}#recording-seek label{display:block;font:11px monospace;margin-bottom:8px}#record-resume-time{width:100%;padding:10px;background:#152016;color:#e8e8db;border:1px solid #879b7660}#record-resume-at{width:100%}#pause-panel{max-height:92dvh;overflow:auto}

.resume-bars{display:flex;gap:12px}.resume-bars label{flex:1}.resume-bars input{width:100%;padding:9px;background:#152016;border:1px solid #879b7660;color:#e8e8db}#bar-display{font:9px monospace;color:var(--acid)}#admin-bar-origin,#record-bar-origin{width:120px}#record-seek-status{white-space:normal}

.hud-clock{display:flex;gap:8px;align-items:center;white-space:nowrap;line-height:1.1}.hud-clock #bar-display{font-size:8px}
