*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#101b20;color:#e9f0e4;font:14px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,select,a{-webkit-tap-highlight-color:transparent}button,select{font:inherit;color:inherit;border:1px solid #3b4d48;background:#203036;border-radius:8px;cursor:pointer}button{padding:10px 15px}button:disabled{opacity:.36;cursor:wait}button:hover:not(:disabled){border-color:#bbd6a7}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #c8e5ae;outline-offset:4px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.app{max-width:1600px;margin:auto;padding:0 32px}header{height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #2a3b3d}.brand{display:flex;gap:8px;align-items:center;font-size:20px;font-weight:650;letter-spacing:-.07em}.brand span{color:#c6e3aa;font-size:34px;margin-right:5px}.brand b{font-weight:400;color:#9fb79d}.edition{font-size:9px;letter-spacing:.16em;color:#809888}nav{display:flex;align-items:center;gap:8px}nav a{font-size:12px;color:#9eb59f;margin-right:10px}nav button{font-size:12px;padding:8px 11px;background:transparent}.hud{height:76px;display:flex;justify-content:space-between;align-items:center}.hud small{display:block;font-size:9px;letter-spacing:.15em;color:#819888;margin-bottom:2px}.hud strong{font-size:31px;letter-spacing:-.05em;font-weight:500}.hud #multiplier{font-size:13px;margin-left:12px;color:#c4dda8}.clock{text-align:right}.clock strong span{font-size:12px;margin-left:5px;color:#93a68d}.beat-box{display:flex;gap:7px;align-items:center}.beat-box>span{width:7px;height:7px;border-radius:50%;background:#30473d}.beat-box>span.on{background:#cbeaa7;box-shadow:0 0 15px #b6dd7d50}.beat-box small{margin:0 0 0 10px}.arena{position:relative;height:clamp(340px,calc(100dvh - 340px),690px);min-height:340px;border:1px solid #31443f;border-radius:18px;overflow:hidden;background:#13232a}.arena canvas{display:block;width:100%;height:100%;touch-action:pan-y}.arena-top{position:absolute;top:19px;left:23px;right:23px;display:flex;justify-content:space-between;gap:16px;font-size:9px;letter-spacing:.1em;color:#98b49e;pointer-events:none}.arena-top i{display:inline-block;width:5px;height:5px;background:#bfdda2;border-radius:50%;margin-right:8px}.arena-top #phase{font-size:13px;letter-spacing:0;color:#d2e2cf}.flow-line{position:absolute;bottom:16px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;gap:10px;pointer-events:none}#intent{font-size:11px;color:#b7ccb5;text-shadow:0 1px 5px #000}#trail{display:flex;gap:6px}.trail-chip{padding:5px 8px;border-radius:20px;background:#162d2be6;color:#b7cdb5;font-size:9px}.trail-chip b{color:#d5ecb9;margin-right:5px}#feedback{position:absolute;top:50px;left:23px;color:#d4edb9;font-size:20px;font-weight:550;letter-spacing:-.03em;pointer-events:none;transition:opacity .25s}#feedback[data-kind=mission]{color:#f4d2ae}#countdown{position:absolute;inset:0;display:grid;place-items:center;font-size:115px;font-weight:550;color:#e2f6ce;text-shadow:0 4px 80px #182926;pointer-events:none}aside{position:absolute;left:23px;top:105px;width:170px;background:#14272bd9;border:1px solid #32483f;border-radius:13px;padding:15px;backdrop-filter:blur(7px)}aside small{font-size:8px;letter-spacing:.11em;color:#87a387}aside h2{font-size:17px;font-weight:500;margin:9px 0 12px;letter-spacing:-.03em}.mission-step{display:flex;align-items:center;gap:9px;font-size:10px;color:#7f998b;margin:10px 0}.mission-step i{font-size:18px;font-style:normal;width:23px}.mission-step.done{color:#d0e9b3}.mission-step.next{color:#edf3df}.mission-step.next i{background:#c8e1aa;color:#213527;border-radius:5px;text-align:center}.target{border-top:1px solid #34473d;margin-top:14px;padding-top:12px;font-size:9px;color:#88a089}.target>div{height:3px;border-radius:3px;background:#2b433b;margin-top:8px;overflow:hidden}.target i{display:block;height:100%;width:0;background:#bad499}.deck{padding:17px 0 0}.deck-heading{display:flex;justify-content:space-between;margin-bottom:11px;color:#829988;letter-spacing:.09em;font-size:9px}.deck-heading i{display:inline-block;width:5px;height:5px;border-radius:50%}.green{background:#c7e6a5}.blue{background:#aacfe4}.peach{background:#edc2a7}.pads{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.pad{position:relative;text-align:left;height:101px;padding:13px 12px 10px;background:#1b2c30;transition:background .1s,border-color .1s,transform .1s;touch-action:none;user-select:none;-webkit-user-select:none}.pad .symbol{font-size:25px;line-height:24px;color:var(--color)}.pad kbd{position:absolute;right:11px;top:12px;font:10px inherit;color:#80998c;border:1px solid #394e45;border-radius:4px;padding:3px 5px;min-width:18px;text-align:center}.pad strong{display:block;font-size:12px;letter-spacing:-.02em;margin:7px 0 3px;font-weight:550}.pad small{font-size:9px;color:#7f9a88}.pad[data-active=true]{border-color:var(--color);box-shadow:inset 0 -3px var(--color);background:#2b4039}.pad[aria-pressed=true]{background:#3b503e;transform:translateY(-2px);border-color:#dbefc8}.pad[data-queued=true]:after{content:'ДАЛЬШЕ';position:absolute;top:-7px;right:8px;font-size:7px;padding:3px 5px;border-radius:4px;background:#c9dfae;color:#253d2e}.deck-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 0;font-size:10px;color:#859d8a}.deck-footer button{font-size:10px;padding:6px 10px;background:transparent}.deck-footer button span{margin-left:8px}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #2b3d39;padding:14px 0 18px;color:#607a6a;font-size:9px;letter-spacing:.05em}.screen{position:absolute;inset:0;z-index:3}.home{background:linear-gradient(90deg,#101b20fa 0%,#101b20ed 20%,#101b2080 42%,transparent 70%)}.home-copy{padding:30px 0 25px 32px;width:390px}.eyebrow{color:#aac998;font-size:9px;letter-spacing:.18em}h1{font-size:55px;line-height:1.0;letter-spacing:-.065em;font-weight:500;margin:15px 0}h1 em{font-style:normal;color:#c6e0af}.home-copy p{font-size:12px;line-height:1.7;color:#91ab97;margin:0 0 18px}.mission-label{font-size:9px;letter-spacing:.1em;display:block;color:#829b89;margin-bottom:6px}.home select{width:270px;padding:8px;font-size:11px;background:#1d3030}.home-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 10px}.primary{background:#c6dfac;color:#203725;border-color:#c6dfac;font-weight:550;padding:12px 17px}.primary span{margin-left:18px}.secondary{background:#20352f;color:#c8d9be;padding:12px 15px}.home .primary,.home .secondary{font-size:11px}.home-caption{position:absolute;right:24px;bottom:24px;font-size:8px;letter-spacing:.1em;color:#8caa91}.muted{color:#799883;font-size:10px}.modal{background:#101d23e6;backdrop-filter:blur(14px);display:grid;place-items:center;text-align:center;padding:20px}.modal>div{width:min(510px,100%)}.modal h2{font-weight:500;font-size:40px;letter-spacing:-.055em;margin:12px 0}.modal p{font-size:12px;line-height:1.6;color:#9eb49f;margin:10px 0 18px}.modal .home-actions{justify-content:center}.modal button{margin:3px}.text-button{display:block;margin:12px auto 0!important;border:0;background:transparent;color:#9fb196;font-size:11px}.modal ol{text-align:left;line-height:1.7;font-size:12px;color:#9db599;padding-left:20px;max-width:330px;margin:14px auto}.modal li{padding:4px 0}.modal li b{color:#d3e9c1}.result-score{font-size:62px;letter-spacing:-.06em;font-weight:500;color:#cfe8b4}.result-stats{display:flex;justify-content:center;gap:22px;margin:8px 0 12px}.result-stats span{font-size:9px;color:#90aa8f}.result-stats b{display:block;font-size:20px;font-weight:500;color:#d5e4ca;margin-bottom:4px}.loading{background:#122027;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;font-size:15px}.loading small{color:#839d88;font-size:11px}.spinner{border:2px solid #364c40;border-top-color:#c9e8ae;width:26px;height:26px;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-height:870px){.home-copy{padding-top:60px}h1{font-size:70px}.home-copy p{font-size:14px}.home select{padding:11px}.home .primary,.home .secondary{font-size:12px}.home-actions{margin-top:23px}}
@media(max-width:1000px){.app{padding:0 18px}.edition{display:none}.arena{height:440px}.pads{grid-template-columns:repeat(4,1fr)}.pad{height:85px}.pad .symbol{font-size:21px}.pad strong{margin-top:5px}.home-copy{width:340px;padding-left:24px}h1{font-size:48px}.home{background:linear-gradient(90deg,#101b20f5,#101b20c0 40%,transparent)}aside{width:145px;left:15px;padding:12px}.mission-step{font-size:9px}.home-caption{display:none}#trail{max-width:40%;overflow:hidden}}
@media(max-width:600px){.app{padding:0 12px}header{height:57px}.brand{font-size:17px}.brand span{font-size:27px}nav{gap:5px}nav a{margin-right:3px;font-size:10px}nav button{font-size:11px;padding:7px 8px}.hud{height:62px}.hud strong{font-size:26px}.hud small{font-size:8px}.beat-box{gap:5px}.beat-box small{font-size:8px;margin-left:4px}.arena{height:420px;border-radius:13px}.arena-top{left:14px;right:14px;top:14px;font-size:7px}.arena-top #phase{font-size:10px}.home{background:linear-gradient(90deg,#101b20ea,#101b20a0 70%,#101b2030)}.home-copy{width:100%;padding:38px 20px 20px}.home-copy h1{font-size:48px}.home-copy p{font-size:11px}.home select{width:230px}.home-actions{margin-top:15px}.home .secondary{background:#243d37ed}.home .primary,.home .secondary{font-size:10px;padding:11px}.deck-heading{font-size:7px;gap:10px}.pads{gap:6px}.pad{height:84px;padding:9px}.pad strong{font-size:10px}.pad small{font-size:8px}.pad kbd{font-size:8px;right:7px;top:8px}.deck-footer{font-size:9px;align-items:flex-start;line-height:1.5}.deck-footer button{white-space:nowrap}.flow-line{left:14px;right:14px;bottom:13px}#intent{font-size:9px;max-width:75%}#trail{display:none}aside{top:auto;left:10px;right:10px;bottom:38px;width:auto;padding:8px 10px;background:#14272bbf}aside>small{font-size:7px}aside h2{display:none}#missionSteps{display:flex;justify-content:space-between;gap:4px}.mission-step{display:flex;gap:4px;margin:5px 0;font-size:8px}.mission-step i{font-size:15px;width:17px}.target{padding-top:5px;margin-top:0;font-size:8px;display:flex;align-items:center;gap:12px}.target>div{flex:1;margin:0}#feedback{top:45px;left:14px;font-size:16px}.modal h2{font-size:31px}.modal p,.modal ol{font-size:11px}.modal .primary,.modal .secondary{font-size:11px}.result-score{font-size:53px}footer span:nth-child(2){display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.click-mode{display:flex;justify-content:center;align-items:center;gap:8px;font-size:12px;color:#c9dfb8}.click-mode input{accent-color:#bad29f}

.modal{position:fixed;inset:0;z-index:20;overflow-y:auto;display:flex;align-items:flex-start;justify-content:center}.modal>div{margin:auto}

/* Small comic panels stay beside the dancer; no screen flashes or camera shake. */
.comic{--ink:#162434;--paper:#eeda77;position:absolute;right:27px;top:64px;width:245px;z-index:2;pointer-events:none;padding:16px 17px 12px;color:var(--ink);background:radial-gradient(#17273322 .8px,transparent 1px) 0 0/5px 5px,var(--paper);border:3px solid var(--ink);box-shadow:5px 6px 0 #080e16;transform:rotate(3deg);border-radius:3px 14px 3px 3px;line-height:1.1;isolation:isolate}
.comic:before{content:'';position:absolute;width:22px;height:22px;bottom:-14px;left:23px;background:var(--paper);border-right:3px solid var(--ink);border-bottom:3px solid var(--ink);transform:skewY(-25deg) rotate(35deg);z-index:-1}
.comic-kicker{display:block;font-size:10px;font-weight:900;letter-spacing:.15em;margin-bottom:5px}.comic-title{display:block;font-size:27px;font-weight:950;letter-spacing:-.055em;font-style:italic;line-height:.99}.comic-route{display:block;font-size:10px;font-weight:650;margin-top:8px}.comic-points{display:inline-block;margin:8px 0 6px;font-size:30px;font-weight:950;letter-spacing:-.06em;color:#fff;text-shadow:2px 2px 0 var(--ink),-1px -1px 0 var(--ink),1px -1px 0 var(--ink),-1px 1px 0 var(--ink)}.comic-bonuses{display:block;font-size:9px;font-weight:650;line-height:1.35}.comic-rhythm{display:block;position:absolute;bottom:-21px;right:-8px;background:#223850;color:#fff;border:2px solid #111f30;padding:6px 9px;font-size:11px;font-weight:900;transform:rotate(-7deg);box-shadow:2px 3px 0 #080e16}.comic[data-kind=perfect]{--paper:#b2e9f1}.comic[data-kind=complete]{--paper:#ffb180}.comic[data-kind=complete] .comic-kicker{font-size:20px;letter-spacing:-.04em}.comic.pop{animation:comic-pop .27s cubic-bezier(.2,1.5,.4,1) both}@keyframes comic-pop{from{opacity:0;transform:scale(.65) rotate(-6deg)}to{opacity:1;transform:scale(1) rotate(3deg)}}body[data-screen=paused] .comic,body[data-screen=help] .comic{animation-play-state:paused}
@media(max-width:1000px){.comic{right:15px;width:210px;padding:13px}.comic-title{font-size:24px}}
@media(max-width:600px){.comic{right:14px;top:75px;width:164px;padding:11px 10px 9px;box-shadow:3px 4px 0 #080e16}.comic-title{font-size:20px}.comic-route{font-size:8px}.comic-kicker{font-size:8px}.comic-points{font-size:25px;margin:5px 0}.comic-bonuses{font-size:8px}.comic-rhythm{font-size:9px;padding:4px 7px;right:-4px;bottom:-18px}.comic[data-kind=complete] .comic-kicker{font-size:16px}}

@media(max-width:600px){.comic{top:44px}.comic-title{font-size:18px}.comic-route{margin-top:5px}.comic-kicker{margin-bottom:3px}.comic-points{font-size:23px}}

/* Four physical keyboard rows. Each row is a dance family. */
header{height:50px}.hud{height:54px}.arena{min-height:260px;height:clamp(260px,calc(100dvh - 460px),480px)}body[data-screen=home] .arena{min-height:340px}
.keyboard{display:grid;gap:5px}.key-row{display:flex;gap:12px;align-items:center}.row-label{width:88px;flex-shrink:0;color:var(--row-color)}.row-label strong{display:block;font-size:9px;letter-spacing:.12em}.row-label small{display:block;font-size:8px;color:#7f988b;margin-top:4px}.row-pads{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;flex:1;min-width:0}.keyboard .pad{height:43px;padding:6px 5px 5px 7px;border-radius:6px;overflow:visible}.keyboard .pad kbd{position:static;display:inline-block;padding:0;border:0;font-size:10px;text-align:left;min-width:0;color:var(--color);line-height:12px}.keyboard .pad strong{font-size:10px;font-weight:500;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.03em}.keyboard .pad[data-queued=true]:after{font-size:6px;top:-5px;right:4px;padding:2px 3px}.link-badge{display:none;position:absolute;right:6px;top:5px;color:#d4f6b3;font-size:12px}.pad[data-link=true]{border-color:#718f63}.pad[data-link=true] .link-badge{display:block}.pad[data-suggested=true]{outline:2px solid #d0e8b2;outline-offset:1px;background:#324636}.pad[aria-pressed=true]{transform:none;background:#415b46}.pad[data-suggested=true] kbd{font-weight:900;color:#fff}.deck{padding-top:9px}.deck-heading{margin-bottom:7px;font-size:8px}.deck-legend i{display:inline-block;width:8px;height:8px;border:1px solid #b8d69b;border-radius:2px;margin-right:5px}.deck-legend b{color:#bbd99f;margin-left:5px}.deck-footer{padding:7px 0}.deck-footer button{padding:4px 8px}footer{padding:10px 0;font-size:8px}
.coach{display:flex;align-items:center;gap:24px;justify-content:space-between;margin:8px 0 0;padding:10px 16px;min-height:64px;background:#1c2d30;border:1px solid #354d41;border-radius:9px}.coach-copy{min-width:0}.coach-copy small{display:block;color:#829c87;letter-spacing:.13em;font-size:7px;margin-bottom:3px}.coach-copy strong{font-size:17px;letter-spacing:-.025em;font-weight:600;color:#e4ecd6;display:block}.coach-copy>span{display:block;font-size:9px;color:#90a590;margin-top:3px}.cue-rail{width:240px;flex-shrink:0}.cue-track{position:relative;height:11px;background:#34493e;border-radius:5px}.cue-track:after{content:'';position:absolute;right:0;top:0;bottom:0;width:var(--window,25%);background:#cee5a5;border-radius:0 5px 5px 0}.cue-track>span{position:absolute;right:3px;top:1px;font-size:7px;color:#243d29;z-index:1;letter-spacing:.03em;font-weight:800}.cue-track>i{position:absolute;top:-4px;bottom:-4px;width:3px;border-radius:3px;background:white;box-shadow:0 0 9px #fffffa88;z-index:2;transform:translateX(-50%)}.cue-labels{display:flex;justify-content:space-between;font-size:8px;color:#8fa58a;margin-top:8px}.cue-labels b{color:#cce6ad;font-size:12px;letter-spacing:.09em}.coach[data-kind=open]{border-color:#d2eeae;background:#304934;box-shadow:inset 4px 0 #d3edb0}.coach[data-kind=open] .coach-copy strong{color:#e8ffc8}.coach[data-kind=queued]{border-color:#a6cdda}.coach[data-kind=queued] .coach-copy strong{color:#bde5f2}.coach[data-kind=travel] .cue-rail,.coach[data-kind=idle] .cue-rail{opacity:.32}.practice-button{background:transparent;border:0;padding:3px 0;margin:3px 0 7px;display:block;font-size:11px;color:#d2e1bc;text-align:left}.practice-button span{font-size:9px;margin-left:5px;color:#8ca889}.home-copy{padding:17px 0 12px 25px;width:385px}.home-copy h1{font-size:43px;margin:10px 0}.home-copy p{font-size:11px;line-height:1.5;margin-bottom:10px}.home-actions{margin-top:10px;margin-bottom:5px}.home select{padding:6px;font-size:10px}.home .primary,.home .secondary{padding:9px 11px;font-size:10px}.home-caption{font-size:8px}.homeRecord{font-size:9px}aside{top:77px;width:160px;padding:12px}aside h2{font-size:15px;margin:6px 0 9px}.mission-step{margin:7px 0}.mission-step i{font-size:16px}.target{margin-top:9px;padding-top:9px}.help-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:14px 0;font-size:9px;color:#acc29e}.help-keys b{display:block;font-size:16px;color:#e0ebcf;margin-bottom:4px}
@media(min-width:1001px) and (max-height:780px){.comic{top:55px;width:220px;padding:12px 14px 10px}.comic-title{font-size:23px}.comic-points{font-size:25px;margin:6px 0}.arena-top{top:16px}.home-copy{padding-top:14px}.home-caption{bottom:15px}.home-copy h1{font-size:38px}.home-copy .eyebrow{font-size:8px}.flow-line{bottom:12px}}
@media(max-width:1000px){.key-row{gap:8px}.row-label{width:75px}.row-label small{font-size:7px}.keyboard .pad strong{font-size:8px}.keyboard .pad{padding-left:5px}.row-pads{gap:4px}.cue-rail{width:170px}.coach-copy strong{font-size:15px}.arena{height:340px}.home-copy{width:340px}.home-caption{display:none}}
@media(max-width:600px){header{height:50px}.hud{height:54px}.arena{height:380px}.home-copy{padding:35px 18px 16px;width:100%}.home-copy h1{font-size:46px}.home-copy p{font-size:11px}.home-actions{margin:14px 0 6px}.practice-button{font-size:11px;padding:5px 0;margin-top:9px}.row-label{width:auto;display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.row-label small{margin:0;font-size:7px}.row-label strong{font-size:8px}.key-row{display:block}.keyboard{gap:8px}.row-pads{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.keyboard .pad{height:36px;padding:4px 5px}.keyboard .pad strong{font-size:8px;margin-top:1px}.keyboard .pad kbd{font-size:9px}.link-badge{font-size:10px}.coach{gap:10px;padding:9px 10px;flex-wrap:wrap}.coach-copy{width:100%}.coach-copy strong{font-size:16px}.coach-copy>span{font-size:9px;line-height:1.4}.cue-rail{width:100%;padding-top:3px}.cue-labels{margin-top:6px}.deck-legend{font-size:7px}.deck-footer{font-size:8px}aside{top:auto;bottom:33px;width:auto;padding:7px 9px}.target{margin-top:0;padding-top:4px}.mission-step{margin:4px 0}.mission-step i{font-size:13px}.comic{top:45px;width:155px;padding:9px}.comic-title{font-size:17px}.comic-bonuses{font-size:7px}.comic-route{font-size:7px}}

@media(min-width:1001px) and (max-height:780px){aside{top:58px}.target{display:none}}

.key-row[data-group=acrobatics] .row-pads{grid-template-columns:minmax(130px,1fr) 9fr}.keyboard .key-row[data-group=acrobatics] .pad{height:32px}.keyboard .key-row[data-group=acrobatics] .pad strong{display:inline;margin-left:10px}
