:root{font-family:Arial,Helvetica,sans-serif;color:#f5f5f5;background:#171a20;font-synthesis:none;--mint:#f4f4f4;--muted:#afb3b9;--bad:#ff8c87;--accent:#e82127}*{box-sizing:border-box}body{margin:0;min-width:320px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;background:none;border:0}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible{outline:2px solid #fff;outline-offset:4px}a{color:inherit}.hidden{display:none!important}.console{width:100%;margin:0 auto}header{height:64px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 3.2%;background:#171a20}.brand{display:flex;gap:22px;align-items:center;text-decoration:none;font-size:22px;letter-spacing:3px;font-weight:600;white-space:nowrap}.brand span{font-size:10px;letter-spacing:2px;font-weight:400}.edition{font-size:9px;letter-spacing:1.7px;color:#c7c9cd}.utilities{display:flex;align-items:center;gap:20px}.utilities button{font-size:11px}.utilities #fullscreen{font-size:25px}.screen{position:relative;height:calc(100svh - 270px);min-height:530px;overflow:hidden;background:#27333d}#c{width:100%;height:100%;display:block}.shade{position:absolute;inset:0;background:linear-gradient(#1018228c 0%,transparent 38%,#10151abf 76%,#10151af0);pointer-events:none}.screen-meta,.screen-foot{position:absolute;left:3.2%;right:3.2%;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.3px;color:#e3e5e9}.screen-meta{top:18px}.screen-foot{bottom:14px}.screen-foot button{font-size:9px}.menu{position:absolute;inset:62px 5% 38px;display:flex;flex-direction:column;align-items:center;pointer-events:none;text-align:center;animation:enter .55s both}.menu-top{pointer-events:none}.eyebrow{font-size:11px;letter-spacing:3.2px}h1{font-size:clamp(35px,4vw,58px);font-weight:500;line-height:1.08;letter-spacing:-1.7px;margin:14px 0 10px}.menu-top p{font-size:13px;margin:0;color:#e0e4e8}.chapter-controls{margin-top:auto;pointer-events:auto;width:min(690px,100%)}.chapter-nav{display:flex;width:100%;border-bottom:1px solid #ffffff3b}.chapter-nav button{flex:1;position:relative;padding:12px 6px;color:#b7bdc3;transition:color .2s,background .2s}.chapter-nav button[aria-pressed=true]{color:white}.chapter-nav button[aria-pressed=true]:after{content:'';position:absolute;bottom:-1px;height:3px;background:var(--accent);left:15%;right:15%}.chapter-nav small{font-size:8px;letter-spacing:1.4px;display:block;margin-bottom:5px}.chapter-nav strong{font-size:18px;font-weight:500}.chart-list{display:flex;justify-content:center;gap:0;margin:12px 0 8px}.chart-list button{flex:1;max-width:225px;padding:7px 8px;font-size:10px;line-height:1.5;color:#bbc1c7;border-right:1px solid #ffffff26;transition:color .2s,background .2s}.chart-list button:last-child{border-right:0}.chart-list button strong{display:block;font-size:20px;font-weight:400;letter-spacing:1px}.chart-list button.selected{color:white;background:#ffffff0b}.chart-list button .stage-clear{font-size:9px;color:#d5e4e0;margin-left:6px}.chart-list button:disabled{cursor:pointer}.menu #challenge-brief{font-size:11px;color:#c7ccd0;line-height:1.5;min-height:17px;margin:8px 0 15px}.menu-actions{display:flex;justify-content:center;gap:14px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;min-width:220px;padding:12px 24px;border-radius:3px;font-size:12px;font-weight:600;letter-spacing:.2px;transition:background .2s,transform .2s}.primary{color:#171a20;background:#f5f5f5}.primary:hover{background:white;transform:translateY(-1px)}.secondary{border:1px solid #ffffff70;background:#171a2055;color:white}.secondary:hover{background:#ffffff17}.menu-links{display:flex;justify-content:center;gap:25px;margin-top:13px}.menu-links button{font-size:10px;color:#c1c7cc;min-height:24px;text-underline-offset:4px}.menu-links button:hover{text-decoration:underline}.play{position:absolute;inset:58px 3.2% 42px;pointer-events:none}.play-top{display:flex;gap:22px;align-items:center}.play-top>div:first-child{flex:1}.play small,.telemetry small{display:block;color:#d7dce1;font-size:8px;letter-spacing:1.5px}.play-top strong{display:block;margin-top:7px;font-size:14px;font-weight:500}.score{text-align:right}.score strong{font-size:30px;font-variant-numeric:tabular-nums;letter-spacing:1px}.play-top button{pointer-events:auto;font-size:18px;border:1px solid #ffffff70;border-radius:50%;height:42px;width:42px}.telemetry{position:absolute;bottom:32px;left:0;display:flex;gap:32px}.telemetry span{display:block;font-size:26px;margin-bottom:7px;font-weight:300}.telemetry>div:nth-child(2) span{font-size:12px;line-height:30px}.feedback{position:absolute;top:30%;left:0;right:0;text-align:center;font-size:29px;letter-spacing:3px;text-shadow:0 2px 20px #000;opacity:0;transform:translateY(8px);transition:opacity .12s,transform .12s}.feedback.visible{opacity:1;transform:translateY(0)}.feedback.bad{color:var(--bad)}.feedback small{font-size:9px;margin-top:8px;letter-spacing:1px}.cue-call{position:absolute;right:0;bottom:32px;display:flex;gap:12px;align-items:center}.cue-call>span{display:block;width:48px;height:48px}.cue-call strong{font-size:22px;font-weight:400;display:block;margin-top:5px}.cue-call small{max-width:160px}.flight-progress{position:absolute;bottom:0;left:0;right:0;height:2px;background:#ffffff30}.flight-progress i{height:2px;display:block;background:white;width:0}#checkpoint-status{position:absolute;left:0;bottom:14px;font-size:8px;letter-spacing:1px;color:#c5cdd3}.deck{padding:16px max(3.2%,calc((100vw - 1280px)/2));background:#171a20;height:168px}.rhythm{width:100%;min-width:0}.lane-head,.lane-legend{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:9px;letter-spacing:1px;color:#c1c6cc}.lane-head{margin-bottom:7px}#combo{color:#fff;font-variant-numeric:tabular-nums}.lane{height:60px;position:relative;background:#1d2127;border-block:1px solid #ffffff26;overflow:hidden}.beat-grid{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(25% - 1px),#ffffff0c calc(25% - 1px),#ffffff0c 25%)}.hit-line{position:absolute;left:18%;top:50%;width:50px;height:50px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;z-index:2;pointer-events:none;transition:border-color .12s,box-shadow .12s}.hit-line span{position:absolute;top:17px;left:-64px;font-size:7px;letter-spacing:1px;color:#c8cdd2;white-space:nowrap}.note{position:absolute;top:50%;width:38px;height:38px;transform:translate(-50%,-50%);border:1px solid #e2e6eb;border-radius:50%;background:#343b43;display:grid;place-items:center;color:#fff}.arrow-icon{width:100%;height:100%;display:block;fill:currentColor}.note .arrow-icon{width:27px;height:27px}.note.resolved{opacity:.22}.note.MISS{color:var(--bad);border-color:var(--bad)}#lane-help{position:absolute;inset:0;display:grid;place-items:center;font-size:8px;letter-spacing:1px;color:#77838f}.lane.hit .hit-line{box-shadow:0 0 0 6px #ffffff26;border-color:white}.lane.miss .hit-line{border-color:var(--bad)}#lane-judgement{position:absolute;left:27%;top:22px;font-size:11px;font-weight:600;opacity:0;pointer-events:none}.lane.hit #lane-judgement{opacity:1}.lane-legend{margin-top:6px;font-size:7px;color:#87919d}.dpad{display:flex;gap:9px;max-width:520px;margin:10px auto 0}.dpad button{flex:1;min-width:0;min-height:40px;display:flex;justify-content:center;align-items:center;gap:10px;border:1px solid #ffffff38;border-radius:3px;background:#232830;touch-action:none;user-select:none;transition:background .08s,transform .08s}.dpad b{width:23px;height:23px;display:block;font-weight:400}.dpad small{font-size:8px;letter-spacing:1px;color:#bbc3ca}.dpad button.lit{background:#3b434d;border-color:#c3ced6}.dpad button.pressed{transform:translateY(2px);background:white;color:#171a20}.dpad button.pressed small{color:#171a20}.results,.paused,.tutorial-done{position:absolute;inset:0;padding:6% max(6%,calc((100vw - 1200px)/2));background:linear-gradient(90deg,#12171cf5,#12171ce8 54%,#12171c70);animation:enter .3s both}.results>small,.paused>small,.tutorial-done>small{font-size:9px;letter-spacing:2px;color:#c0c9d1}h2{font-size:clamp(30px,3.8vw,48px);font-weight:500;letter-spacing:-1.5px;margin:18px 0 24px;line-height:1.06}.result-line{display:flex;gap:20px;align-items:center;margin-bottom:18px}.result-line>strong{font-size:44px;font-weight:300;font-variant-numeric:tabular-nums;letter-spacing:1px}.result-line>span{font-size:9px;line-height:1.8;color:#adb9c3;letter-spacing:.7px}.result-line b{font-weight:500;color:#fff}#result-detail{font-size:12px;line-height:1.65;color:#c6cdd3;max-width:510px}.result-cues{display:flex;gap:6px;margin:18px 0 25px;flex-wrap:wrap}.result-cues span{display:block;width:27px;height:32px;border-bottom:2px solid white;padding-bottom:5px}.result-cues span.miss{color:var(--bad);border-color:var(--bad)}.result-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap;max-width:720px}.result-actions .primary{min-width:160px}.result-actions button:not(.primary),.paused button:not(.primary),.tutorial-done button:not(.primary){font-size:11px;min-height:35px}#saved{display:block;margin-top:20px;font-size:8px;letter-spacing:.6px;color:#98a7b3}.paused{z-index:5;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:14px;background:#13181eef}.paused h2{margin:0}.paused p,.tutorial-done p{font-size:13px;line-height:1.7;color:#c4cdd4;max-width:470px}.tutorial-done{display:flex;flex-direction:column;justify-content:center}.tutorial-done h2{margin:16px 0}.tutorial-done>div{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin:12px 0 20px}.tutorial-coach{position:absolute;top:28%;left:50%;transform:translateX(-50%);text-align:center;width:min(440px,94%);padding:16px 20px;background:#131a21e8;border-radius:4px;pointer-events:auto}.tutorial-coach>small{font-size:8px;color:#c3cbd3;letter-spacing:1px}.tutorial-coach strong{display:block;font-size:20px;margin:10px 0}.tutorial-coach p{font-size:12px;line-height:1.6;margin:8px 0;color:#d0d8de}.tutorial-coach button{font-size:10px;padding:8px}.tutorial-active .feedback,.tutorial-active .cue-call{visibility:hidden}.loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#171a20f5;z-index:8;font-size:10px;letter-spacing:1.6px;text-align:center;padding:20px}.loading:before{content:'';width:28px;height:28px;border:1px solid #ffffff30;border-top-color:white;border-radius:50%;animation:spin 1s linear infinite}.loading span{font-size:9px;color:#a8b5c0}footer{height:38px;padding:0 3.2%;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:8px;letter-spacing:1px;color:#8d98a3}footer button{font-size:10px;color:#d2d8dd}dialog{border:1px solid #444c56;background:#171c23;color:#f4f4f4;border-radius:4px;max-width:640px;width:calc(100% - 30px);max-height:85svh;padding:35px;overflow:auto}dialog::backdrop{background:#080d14c9;backdrop-filter:blur(8px)}dialog>small{font-size:9px;letter-spacing:2px;color:#9eabb8}dialog p{font-size:12px;line-height:1.8;color:#c3ccd4}dialog button:not(.primary){font-size:11px}dialog .dialog-close{position:absolute;top:14px;right:18px;font-size:25px;min-width:35px;min-height:35px}#board-rows{padding:0;list-style:none;margin:25px 0}#board-rows li{display:flex;gap:20px;align-items:center;border-bottom:1px solid #ffffff25;padding:13px 0;font-size:12px}#board-rows li strong{margin-left:auto;font-weight:400;font-size:20px;font-variant-numeric:tabular-nums}#board-rows li small{color:#99a7b4}#board-rows .empty{display:block;color:#c2ccd5;line-height:1.8}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1000px){.screen{height:calc(100svh - 270px)}.deck{height:168px}.menu-top{margin-top:0}.chapter-controls{margin-bottom:0}}
@media(max-width:700px){header{height:56px;padding:0 18px}.brand{gap:12px;font-size:21px}.brand span{font-size:8px;letter-spacing:1.3px}.edition{display:none}.utilities{gap:12px}.utilities button{font-size:10px}.screen{height:calc(100svh - 265px);min-height:462px}.screen-meta{left:18px;right:18px;top:13px;font-size:6px;letter-spacing:1px}#backend{font-size:6px}.screen-foot{left:18px;right:18px;font-size:6px;bottom:12px}.screen-foot button{font-size:8px}.menu{inset:48px 18px 31px}.eyebrow{font-size:8px;letter-spacing:2px}h1{font-size:36px;letter-spacing:-1.3px;margin:11px 0 7px}.menu-top p{font-size:11px}.chapter-nav button{padding:8px 2px}.chapter-nav small{font-size:6px;letter-spacing:1px}.chapter-nav strong{font-size:14px}.chart-list{margin:9px 0 5px}.chart-list button{font-size:8px;padding:5px 3px}.chart-list button strong{font-size:18px}.menu #challenge-brief{font-size:10px;margin:6px 0 10px;min-height:15px}.menu-actions{gap:9px}.primary,.secondary{min-width:0;min-height:43px;padding:11px 15px;font-size:11px}.menu-actions>button{flex:1}.menu-links{margin-top:7px;gap:20px}.menu-links button{font-size:9px;min-height:28px}.deck{height:176px;padding:14px 16px 8px}.lane-head{font-size:7px;letter-spacing:.3px}.lane{height:58px}.hit-line{width:48px;height:48px}.hit-line span{display:none}.note{width:36px;height:36px}.note .arrow-icon{width:26px;height:26px}.lane-legend{font-size:6px;letter-spacing:.2px}.lane-legend>span:last-child{display:none}#lane-judgement{left:29%;font-size:9px}.dpad{margin-top:11px;gap:8px}.dpad button{min-height:49px;gap:7px}.dpad b{width:23px;height:23px}.dpad small{font-size:7px}.play{inset:44px 18px 35px}.play-top{gap:10px}.play-top strong{font-size:10px;max-width:210px}.play small{font-size:7px;letter-spacing:.6px}.score strong{font-size:24px}.play-top button{width:36px;height:36px;flex-shrink:0}.telemetry{bottom:35px;gap:22px}.telemetry span{font-size:22px}.telemetry>div:nth-child(2) span{font-size:10px;line-height:26px}.telemetry small{font-size:6px}.cue-call{bottom:34px;gap:7px}.cue-call>span{width:32px;height:32px}.cue-call strong{font-size:15px}.cue-call small{max-width:90px;font-size:6px}#checkpoint-status{font-size:7px}.results,.paused,.tutorial-done{padding:30px 23px}.results h2{font-size:34px;margin:14px 0 18px}.result-line{gap:15px;margin-bottom:15px}.result-line>strong{font-size:35px}#result-detail{font-size:11px}.result-cues{margin:15px 0 18px;gap:5px}.result-cues span{width:24px;height:29px}.result-actions{gap:12px}.result-actions .primary{min-width:140px}.result-actions button:not(.primary){font-size:10px}.result-actions #garage{min-width:65px}#saved{font-size:7px;line-height:1.6;margin-top:14px}.tutorial-coach{top:27%;padding:13px 15px}.tutorial-coach strong{font-size:16px}.tutorial-coach p{font-size:11px}.tutorial-done h2{font-size:33px}.tutorial-done p{font-size:12px}.tutorial-done>div{gap:10px}.tutorial-done>small{font-size:8px}footer{height:33px;font-size:6px;letter-spacing:.5px;padding:0 16px}footer>span:nth-child(2){display:none}footer button{font-size:9px}dialog{padding:30px 24px}dialog h2{font-size:34px}}
@media(max-height:500px) and (min-width:650px){header{height:40px}.brand{font-size:17px}.brand span{font-size:8px}.edition{display:none}.screen{height:calc(100svh - 155px);min-height:210px}.screen-meta{top:8px;font-size:6px}.screen-foot{bottom:6px;font-size:6px}.screen-foot button{font-size:7px}.menu{inset:25px 4% 22px}.menu-top{position:absolute;left:0;top:5px;text-align:left;width:40%}.eyebrow{font-size:7px}h1{font-size:30px;margin:10px 0}.menu-top p{font-size:10px}.chapter-controls{margin:0 0 0 auto;width:55%;height:100%;display:flex;flex-direction:column;justify-content:center}.chapter-nav button{padding:4px 1px}.chapter-nav small{font-size:5px}.chapter-nav strong{font-size:12px}.chart-list{margin:3px 0}.chart-list button{font-size:7px;padding:2px}.chart-list button strong{font-size:14px}.menu #challenge-brief{font-size:8px;margin:3px 0 6px}.menu-actions{gap:8px}.menu-actions button{min-height:30px;font-size:9px;padding:6px 12px;min-width:0;flex:1}.menu-links{margin:0;gap:12px}.menu-links button{min-height:22px;font-size:8px}.deck{height:115px;padding:8px 4%;display:flex;gap:20px;align-items:center}.rhythm{flex:1}.lane-head{font-size:7px;margin-bottom:5px}.lane{height:55px}.lane-legend{font-size:6px}.dpad{width:240px;flex-shrink:0;gap:6px;margin:0}.dpad button{min-height:48px;flex-direction:column;gap:1px}.dpad small{font-size:6px}footer{display:none}.play{inset:26px 25px 24px}.play-top strong{font-size:10px}.score strong{font-size:21px}.play small{font-size:6px}.play-top button{width:31px;height:31px}.telemetry{bottom:22px}.telemetry span{font-size:18px;margin-bottom:2px}.telemetry small{font-size:6px}.cue-call{bottom:20px}.cue-call>span{height:30px;width:30px}.cue-call strong{font-size:15px}#checkpoint-status{font-size:6px;bottom:9px}.results,.paused,.tutorial-done{padding:18px 4%}.results h2{font-size:26px;margin:8px 0}.result-line{position:absolute;top:25px;right:5%;gap:12px}.result-line>strong{font-size:30px}#result-detail{font-size:10px;max-width:60%;line-height:1.5}.result-cues{margin:8px 0}.result-cues span{width:22px;height:25px}.result-actions{gap:14px}.result-actions .primary{min-height:32px;min-width:120px;font-size:10px}.result-actions button:not(.primary){font-size:9px;min-height:28px}#saved{margin-top:6px;font-size:6px}.paused{gap:8px}.paused h2{font-size:28px}.paused p{margin:0}.paused .primary{min-height:34px}.tutorial-coach{left:50%;top:26%;width:380px;padding:9px 14px}.tutorial-coach strong{font-size:15px;margin:6px}.tutorial-coach p{font-size:10px;margin:5px}.tutorial-coach>small{font-size:6px}.tutorial-coach button{font-size:8px;padding:3px}.tutorial-done h2{font-size:26px;margin:5px 0}.tutorial-done p{font-size:10px;margin:3px 0;max-width:470px}.tutorial-done>div{margin:7px 0;gap:18px}.tutorial-done .primary{min-height:32px}.tutorial-done>small{font-size:6px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:360px){.brand span{white-space:normal;max-width:85px;font-size:7px;line-height:1.5}.brand{gap:10px}header{gap:8px}.utilities{gap:8px}.menu-links{gap:12px}.menu-links button{font-size:8px}.dpad button{gap:4px}.dpad small{font-size:6px}.menu #challenge-brief{font-size:9px}.chapter-nav strong{font-size:13px}}
/* Approved mobile concept: one falling-note lane, ring, then a spatial D-pad. */
.mobile-controls{--pad-size:clamp(56px,16vw,66px)}
.mobile-controls .screen{height:calc(100svh - 56px);min-height:0}
.mobile-controls .console{position:relative;min-height:100svh}
.mobile-controls header{height:56px}
.mobile-controls footer{display:none}
.mobile-controls .deck{position:absolute;z-index:3;top:calc(56px + 34svh);bottom:calc(14px + env(safe-area-inset-bottom));left:0;right:0;height:auto;padding:0;display:flex;flex-direction:column;align-items:center;gap:16px;background:none;pointer-events:none}
.mobile-controls:not(.running) .deck,.mobile-controls.panel-open .deck{display:none}
.mobile-controls .rhythm{position:relative;flex:1;width:76px;min-height:130px;max-width:none}
.mobile-controls .lane{height:100%;width:76px;border-block:0;border-inline:1px solid #ffffff16;background:#171c2360;overflow:hidden}
.mobile-controls .beat-grid{background:linear-gradient(90deg,transparent 49%,#ffffff30 50%,transparent 51%)}
.mobile-controls .hit-line{left:50%;top:84%;width:58px;height:58px;border-width:2px}
.mobile-controls .hit-line span{display:block;top:21px;left:calc(100% + 12px);font-size:7px;letter-spacing:.5px;white-space:nowrap}
.mobile-controls .note{width:40px;height:40px;left:50%;top:0;box-shadow:0 0 12px #ffffff0b}
.mobile-controls .note .arrow-icon{width:29px;height:29px}
.mobile-controls .lane-head{position:absolute;left:calc(100% + 20px);bottom:34%;width:95px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:8px;line-height:1.6;letter-spacing:.3px}
.mobile-controls #lane-title{display:none}
.mobile-controls .lane-legend{position:absolute;left:calc(100% + 20px);bottom:18%;width:90px;display:block;font-size:7px;line-height:1.7;letter-spacing:.2px}
.mobile-controls .lane-legend>span{display:none}
.mobile-controls .lane-legend>span:first-child{display:block}
.mobile-controls #lane-help{align-content:start;top:10px;font-size:7px;letter-spacing:.3px;white-space:nowrap;color:#d2d8df}
.mobile-controls #lane-judgement{left:auto;right:calc(100% + 20px);top:auto;bottom:15%;font-size:10px;white-space:nowrap}
.mobile-controls .dpad{width:calc(var(--pad-size)*3 + 14px);height:calc(var(--pad-size)*3 + 14px);margin:0;display:grid;grid-template-columns:repeat(3,var(--pad-size));grid-template-rows:repeat(3,var(--pad-size));gap:7px;flex:none}
.mobile-controls .dpad button{min-height:0;min-width:0;display:flex;flex-direction:column;gap:3px;border-radius:7px;background:#222a34d9;border-color:#ffffff48;pointer-events:auto}
.mobile-controls .dpad button[data-dir=up]{grid-area:1/2}
.mobile-controls .dpad button[data-dir=left]{grid-area:2/1}
.mobile-controls .dpad button[data-dir=right]{grid-area:2/3}
.mobile-controls .dpad button[data-dir=down]{grid-area:3/2}
.mobile-controls .dpad b{width:29px;height:29px}
.mobile-controls .dpad small{font-size:7px;letter-spacing:.5px}
.mobile-controls .dpad button.lit{background:#4b5867dd;border-color:#e7eef5}
.mobile-controls .dpad button.pressed{background:#fff;color:#171a20}
.mobile-controls .cue-call,.mobile-controls .flight-progress{display:none}
.mobile-controls .play{inset:44px 18px 24px}
.mobile-controls .telemetry{bottom:calc(var(--pad-size)*3 + 65px);left:0;display:flex;flex-direction:column;gap:10px}
.mobile-controls .telemetry span{font-size:23px;margin-bottom:3px}
.mobile-controls .telemetry>div:nth-child(2) span{font-size:10px;line-height:1.3}
.mobile-controls .telemetry small{font-size:6px;letter-spacing:.5px}
.mobile-controls #checkpoint-status{bottom:calc(var(--pad-size)*3 + 26px);max-width:105px;line-height:1.5;font-size:7px;letter-spacing:.3px}
.mobile-controls .feedback{top:23%;font-size:25px;letter-spacing:2px}
.mobile-controls .feedback small{font-size:8px}
.mobile-controls.running .screen-foot{display:none}
.mobile-controls .menu{bottom:38px}
.mobile-controls .tutorial-coach{top:14%;width:min(350px,96%)}
.mobile-controls .results,.mobile-controls .paused,.mobile-controls .tutorial-done{z-index:5}
@media(max-height:740px) and (orientation:portrait){.mobile-controls .deck{top:calc(56px + 31svh);gap:10px;bottom:10px}.mobile-controls .rhythm{min-height:125px}.mobile-controls .hit-line{width:54px;height:54px}.mobile-controls .hit-line span{top:19px;font-size:6px}.mobile-controls .telemetry{bottom:calc(var(--pad-size)*3 + 54px)}.mobile-controls .note{width:36px;height:36px}.mobile-controls .note .arrow-icon{width:26px;height:26px}.mobile-controls .tutorial-coach{top:12%;padding:10px 12px}.mobile-controls .tutorial-coach strong{font-size:14px;margin:6px}.mobile-controls .tutorial-coach p{font-size:10px}.mobile-controls .tutorial-coach>small{font-size:6px}}
@media(max-height:500px) and (orientation:landscape){.mobile-controls{--pad-size:46px}.mobile-controls header{height:40px}.mobile-controls .screen{height:calc(100svh - 40px);min-height:0}.mobile-controls .deck{top:64px;bottom:12px;left:auto;right:4%;width:43%;display:grid;grid-template-columns:68px 1fr;align-items:end;justify-items:center;gap:23px}.mobile-controls .rhythm{width:68px;min-height:0;height:100%}.mobile-controls .lane{width:68px}.mobile-controls .hit-line{width:52px;height:52px}.mobile-controls .hit-line span{display:none}.mobile-controls .lane-head,.mobile-controls .lane-legend{display:none}.mobile-controls .dpad{gap:5px;width:148px;height:148px;grid-template-columns:repeat(3,46px);grid-template-rows:repeat(3,46px)}.mobile-controls .dpad b{width:24px;height:24px}.mobile-controls .dpad small{font-size:6px}.mobile-controls .play{inset:28px 51% 22px 25px}.mobile-controls .play-top{gap:8px}.mobile-controls .play-top strong{font-size:9px}.mobile-controls .play-top small{font-size:6px}.mobile-controls .score strong{font-size:19px}.mobile-controls .telemetry{bottom:26px;flex-direction:row;gap:20px}.mobile-controls .telemetry span{font-size:18px}.mobile-controls #checkpoint-status{bottom:6px;max-width:100%;font-size:6px}.mobile-controls .feedback{top:30%;font-size:20px}.mobile-controls .tutorial-coach{top:27%;left:51%;width:100%;padding:9px}.mobile-controls .tutorial-coach p{font-size:9px}.mobile-controls .tutorial-coach strong{font-size:13px}.mobile-controls .screen-meta{font-size:6px}.mobile-controls #backend{display:none}}

.chart-list.legacy-list{display:grid;grid-template-columns:repeat(4,1fr)}.chart-list.legacy-list button{max-width:none;font-size:8px}.chart-list.legacy-list button:nth-child(4n){border-right:0}

.mobile-controls .rhythm:before{content:'NOTES FALL ↓';position:absolute;left:50%;top:-18px;transform:translateX(-50%);font-size:7px;letter-spacing:.5px;color:#d2d8df;white-space:nowrap}.mobile-controls .rhythm:after{content:'TAP HERE';position:absolute;left:calc(100% + 12px);top:84%;transform:translateY(-50%);font-size:7px;letter-spacing:.5px;color:#f5f5f5;white-space:nowrap}@media(max-height:500px) and (orientation:landscape){.mobile-controls .rhythm:after{display:none}}

.mobile-controls .menu-links{gap:4px 14px;flex-wrap:wrap}.menu-links button:disabled{cursor:default}

/* The approved vertical interface scales to wide keyboard displays too. */
@media(min-width:900px) and (min-height:501px){
 .mobile-controls{--pad-size:64px}
 .mobile-controls .rhythm,.mobile-controls .lane{width:84px}
 .mobile-controls .note{width:44px;height:44px}
 .mobile-controls .note .arrow-icon{width:32px;height:32px}
 .mobile-controls .hit-line{width:62px;height:62px}
 .mobile-controls .lane-head,.mobile-controls .lane-legend{width:120px;font-size:9px}
 .mobile-controls .lane-legend>span:last-child{display:block;margin-top:9px;color:#cbd2d9}
 .mobile-controls .telemetry{left:3%;bottom:calc(var(--pad-size)*3 + 72px)}
 .mobile-controls #checkpoint-status{left:3%;max-width:220px;font-size:9px}
 .mobile-controls .play{inset:44px 3.2% 24px}
}

/* The menu remains usable while the original 3D scene prepares. */
.screen{background:#20262c}.booting #c{opacity:0}body:not(.booting) #c{opacity:1}#c{transition:opacity .25s ease}.boot-status{min-height:15px;margin:4px 0 12px;font-size:10px;line-height:1.5;color:#bfc8d0}.booting .menu{animation:none}.booting .menu-actions button:disabled{cursor:wait}.booting .screen-meta #backend{color:#a8b5c0}@media(prefers-reduced-motion:reduce){#c{transition:none}}

#menu-freeze{position:absolute;inset:0;width:100%;height:100%;display:none;pointer-events:none}.background-preparing #menu-freeze{display:block}

/* Each section appears when its controller/data is usable, without timed holds. */
.booting:not(.menu-ready) .menu-top{visibility:hidden}.booting:not(.levels-ready) .chapter-nav,.booting:not(.levels-ready) .chart-list,.booting:not(.levels-ready) #challenge-brief{visibility:hidden;pointer-events:none}.menu-top,.chapter-nav,.chart-list{transition:opacity .12s ease}.booting:not(.menu-ready) .menu-top,.booting:not(.levels-ready) .chapter-nav,.booting:not(.levels-ready) .chart-list{opacity:0}@media(prefers-reduced-motion:reduce){.menu-top,.chapter-nav,.chart-list{transition:none}}

/* Stage04 alone trades the note lane for open sightlines and held controls. */
.pillar-flight.mobile-controls .rhythm{height:45px;min-height:45px;width:min(310px,84vw)}
.pillar-flight.mobile-controls .rhythm:before,.pillar-flight.mobile-controls .rhythm:after,.pillar-flight .beat-grid,.pillar-flight .hit-line,.pillar-flight #notes,.pillar-flight .lane-legend{display:none}
.pillar-flight.mobile-controls .lane{height:0;width:100%;overflow:visible}
.pillar-flight.mobile-controls .lane-head{position:static;width:100%;align-items:center;font-size:10px;letter-spacing:1px}
.pillar-flight.mobile-controls #lane-help{display:block!important;position:static;text-align:center;font-size:9px;padding-top:10px;color:#e4e7eb}
.pillar-flight.mobile-controls .deck{top:auto;bottom:18px;gap:10px;align-items:center}
.pillar-flight.mobile-controls .telemetry{bottom:calc(var(--pad-size)*3 + 115px)}
.pillar-flight.mobile-controls #checkpoint-status{bottom:calc(var(--pad-size)*3 + 78px);max-width:220px;font-size:9px}
.pillar-flight .dpad button{touch-action:none;user-select:none}
.pillar-flight.failed #screen{box-shadow:inset 0 0 70px #ff6b5544}
@media(max-height:500px) and (orientation:landscape){.pillar-flight.mobile-controls .deck{right:2%;width:37%;display:flex;flex-direction:column;bottom:10px}.pillar-flight.mobile-controls .telemetry{bottom:50px}.pillar-flight.mobile-controls #checkpoint-status{bottom:20px}.pillar-flight.mobile-controls .rhythm{width:180px}}

body.pillar-flight #feedback.visible{animation:flight-award .3s ease-out both}body.pillar-flight #combo{letter-spacing:1px}@keyframes flight-award{from{transform:translateY(3px);opacity:.4}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){body.pillar-flight #feedback.visible{animation:none}}
