:root{color-scheme:dark;--navy:#101d35;--cream:#fff0d4;--lilac:#b59aef;--lime:#c4ef66;--line:#425574;font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;color:var(--cream);background:var(--navy);font-synthesis:none}
*{box-sizing:border-box;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
body{margin:0;overflow:hidden;overscroll-behavior:none}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,canvas:focus-visible{outline:3px solid var(--lime);outline-offset:5px}button:disabled{cursor:default}button:active:not(:disabled){transform:scale(.96)}[hidden]{display:none!important}
#game{position:relative;width:100%;height:100svh;min-height:320px;overflow:hidden;background:radial-gradient(ellipse at 48% 45%,#223952,#101d35 73%)}#world{display:block;width:100%;height:100%;touch-action:none;outline:none}.hud{position:absolute;top:max(20px,env(safe-area-inset-top));left:28px;right:24px;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none;gap:18px}.brand{font-size:clamp(20px,2.3vw,34px);font-weight:1000;letter-spacing:-1.4px;line-height:1.1;text-shadow:0 3px #0a1527}.brand span{color:var(--lilac)}.brand small{display:block;color:#8294b0;font-size:9px;font-weight:700;letter-spacing:2px;margin-top:9px}.stats{display:flex;gap:10px;position:absolute;left:50%;transform:translateX(-50%)}.stat{background:#102039e8;border:2px solid var(--line);border-radius:13px;text-align:center;min-width:116px;padding:8px 20px;box-shadow:0 4px 0 #0a172a40}.stat small{display:block;letter-spacing:1.6px;font-size:11px;color:#aab9d2;font-weight:800}.stat strong{font-size:28px;font-variant-numeric:tabular-nums;line-height:1.2;display:block}#score{color:#ffca69}.tools{display:flex;gap:8px;pointer-events:auto}.icon{border:2px solid var(--line);border-radius:12px;background:#15263fe8;color:var(--cream);width:44px;height:44px;font-size:24px;font-weight:bold}.objective{position:absolute;top:108px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;font-size:12px;white-space:nowrap;background:#101e34d9;border:1px solid #3a4e64;padding:9px 14px;border-radius:30px;color:#e4e8dc;pointer-events:none}.objective-dot{height:7px;width:7px;flex-shrink:0;background:var(--lime);border-radius:50%;box-shadow:0 0 12px #c4ef6650}.bottom-hint{position:absolute;bottom:max(30px,env(safe-area-inset-bottom));left:28px;display:flex;align-items:center;gap:12px;font-weight:800;font-size:15px;pointer-events:none;text-shadow:0 2px 3px #101d35}.bottom-hint small{display:block;font-size:11px;color:#91a4c0;font-weight:400;margin-top:5px}.pointer-symbol{font-size:30px;color:var(--lilac)}.dash-control{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));right:30px;display:flex;flex-direction:column;align-items:center;gap:7px;width:180px}.dash-control>span{font-size:9px;font-weight:800;letter-spacing:1px;color:#9eacc1;text-align:center}.dash-control>strong{font-size:17px;letter-spacing:1px}.dash-control strong span{font-size:13px;color:#90a0ba;margin-left:5px}.dash-control>small{font-size:10px;color:#8196b1}#dash{border:7px solid #425575;background:radial-gradient(circle,#203750,#142138);width:94px;height:94px;border-radius:50%;box-shadow:0 4px 0 #09172b,0 0 0 5px #0e1c304d;display:grid;place-items:center;transition:background .2s,border-color .2s,box-shadow .2s}#dash svg{width:52px;height:52px;fill:#7489aa}#dash.ready{border-color:var(--lime);background:#293d30;box-shadow:0 4px 0 #617e3c,0 0 35px #c4ef6638}#dash.ready svg{fill:var(--lime)}.dash-control:has(.ready)>span,.dash-control:has(.ready) strong span{color:var(--lime)}.panel{position:absolute;background:linear-gradient(145deg,#172c45f5,#101e35f5);border:2px solid #4c6080;border-radius:23px;padding:27px;box-shadow:0 14px 60px #060e2140}.welcome{left:32px;bottom:105px;width:352px}.eyebrow{font-size:9px;color:var(--lilac);font-weight:900;letter-spacing:1.8px}h1{font-size:32px;line-height:1.15;letter-spacing:-1px;margin:12px 0}h1 em{font-style:normal;color:var(--lime)}p{font-size:13px;line-height:1.65;color:#b6c5d8;margin:12px 0 19px}.primary,.secondary{width:100%;border-radius:13px;padding:13px 16px;font-weight:900;font-size:16px;display:flex;align-items:center;justify-content:space-between}.primary{border:0;background:var(--lime);color:#16283b;box-shadow:0 4px #7f9f45}.secondary{border:1px solid #61718b;color:var(--cream);background:transparent;margin-top:13px;justify-content:center;font-size:13px}.panel>small{display:block;font-size:9px;color:#8fa1ba;text-align:center;margin-top:17px}.compact{width:326px;left:32px;bottom:100px}.compact h2{font-size:24px;margin:12px 0 20px;letter-spacing:-.5px}#pause-panel{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);z-index:3}dl{margin:0 0 20px}dl>div{display:flex;justify-content:space-between;align-items:center;margin:9px 0}dt{font-size:14px;color:#c0ccdd}dd{font-size:24px;font-weight:900;color:#ffca69;margin:0}dl>div:last-child dd{font-size:17px;color:var(--cream)}.result-hint{text-align:center;font-size:11px;margin:15px 0 0}.chain{position:absolute;top:155px;left:50%;transform:translateX(-50%);text-align:center;color:var(--lime);pointer-events:none;text-shadow:0 3px 5px #08142a}.chain b{font-size:28px}.chain span{font-size:13px;font-weight:900;letter-spacing:2px;margin-left:7px}.chain i{display:block;width:100%;height:3px;background:var(--lime);transform-origin:left;margin-top:5px;border-radius:3px}#notice{position:absolute;left:50%;bottom:32px;transform:translateX(-50%);max-width:40vw;text-align:center;background:#14253fee;border:1px solid #58705e;border-radius:16px;padding:10px 18px;font-size:13px;color:var(--lime);opacity:0;transition:opacity .15s;pointer-events:none}#notice.show{opacity:1}#loading{position:absolute;inset:0;background:#101d35;display:grid;place-items:center;font-size:16px;z-index:10;color:var(--lilac)}#fatal{top:50%;left:50%;bottom:auto;transform:translate(-50%,-50%);z-index:11}.score-pop{position:absolute;pointer-events:none;font-weight:900;color:#ffdb87;font-size:21px;text-shadow:0 2px 3px #172039;animation:pop .85s ease-out forwards}.score-pop.station{color:var(--lime)}@keyframes pop{0%{opacity:0;transform:translate(-50%,0) scale(.6)}15%{opacity:1;transform:translate(-50%,-8px) scale(1.1)}100%{opacity:0;transform:translate(-50%,-60px) scale(1)}}
@media(max-width:700px){.hud{left:14px;right:14px;top:max(14px,env(safe-area-inset-top));gap:5px}.brand{font-size:21px;letter-spacing:-.7px}.brand small{font-size:7px;letter-spacing:1px;margin-top:6px}.stats{top:57px;gap:8px}.stat{min-width:105px;padding:5px 16px;border-radius:11px}.stat strong{font-size:24px}.stat small{font-size:9px}.icon{width:36px;height:36px;font-size:21px;border-radius:10px}.tools{gap:6px}.objective{top:140px;font-size:10px;padding:8px 11px;max-width:94%;white-space:normal;width:max-content;text-align:center}.chain{top:183px}.chain b{font-size:23px}.chain span{font-size:11px}.dash-control{right:10px;bottom:max(18px,env(safe-area-inset-bottom));width:145px;gap:5px}.dash-control>span{font-size:8px;letter-spacing:.4px}#dash{width:83px;height:83px;border-width:6px}#dash svg{width:46px;height:46px}.dash-control>small{font-size:8px}.bottom-hint{left:16px;bottom:34px;max-width:calc(100% - 170px);font-size:12px;gap:7px}.bottom-hint small{font-size:9px;line-height:1.5}.pointer-symbol{font-size:23px}.panel{padding:21px;border-radius:19px}.welcome{width:min(320px,calc(100% - 32px));left:16px;bottom:158px}h1{font-size:29px}.welcome p{font-size:12px}.compact{left:16px;bottom:155px;width:min(300px,calc(100% - 32px))}.compact h2{font-size:22px}#notice{max-width:calc(100% - 32px);bottom:180px;font-size:12px;width:max-content;padding:9px 13px}.score-pop{font-size:16px}}
@media(max-height:540px) and (min-width:600px){.hud{top:12px;left:18px;right:18px}.brand{font-size:23px}.brand small{display:none}.stat{padding:4px 14px;min-width:95px}.stat strong{font-size:23px}.objective{top:76px}.chain{top:113px}.welcome{width:295px;left:20px;bottom:65px;padding:20px}h1{font-size:25px;margin:8px 0}.welcome p{font-size:11px;margin:8px 0 12px}.welcome>small{margin-top:11px;font-size:8px}.eyebrow{font-size:8px}.dash-control{bottom:13px;right:14px;gap:4px}#dash{height:75px;width:75px}.bottom-hint{bottom:18px;font-size:12px}.compact{bottom:60px;width:290px;padding:20px}.compact h2{font-size:22px;margin:8px 0 12px}dd{font-size:21px}dl>div{margin:5px 0}#notice{bottom:18px;font-size:11px}.primary{padding:10px 14px}}
@media(max-width:700px){#results{bottom:max(18px,env(safe-area-inset-bottom));width:calc(100% - 32px);max-width:390px}#game[data-phase="ended"] .dash-control{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.score-pop{display:none}}

/* Interaction polish: short cues that respect pause and reduced motion. */
#city-count{font-size:11px;color:var(--lime);white-space:nowrap;padding-right:8px;border-right:1px solid #425574;font-variant-numeric:tabular-nums}
#game[data-phase="paused"] .score-pop{animation-play-state:paused}
#game[data-phase="ended"] .dash-control{display:none}
#dash.queued{border-color:var(--lilac);background:#34304a}
#dash.ready{animation:charged-breathe 2.4s ease-in-out infinite}
#time.urgent{animation:timer-beat 1s ease-in-out infinite}
@keyframes charged-breathe{50%{box-shadow:0 4px 0 #617e3c,0 0 23px #c4ef6620}}
@keyframes timer-beat{50%{opacity:.65}}
@media(max-width:700px){#city-count{font-size:10px} .objective{gap:7px}}
@media(prefers-reduced-motion:reduce){#dash.ready,#time.urgent{animation:none}}

@media(min-width:701px) and (min-height:541px){.objective{left:28px;transform:none;max-width:420px;white-space:normal;font-size:11px}}

/* Three-block rampage, reusable powers and visible replay targets. */
.missions{position:absolute;top:102px;right:26px;display:flex;flex-direction:column;gap:8px;pointer-events:none;background:#101e34da;border:1px solid #425574;border-radius:14px;padding:12px 15px;font-size:10px;color:#c0ccdd}
.missions>span{font-size:9px;letter-spacing:1px;color:#b59aef;margin-bottom:3px}.missions b{font-weight:600}.missions b.done{color:var(--lime)}.missions b.done:before{content:'✓ ';color:var(--lime)}
#game[data-phase="ready"] .missions{top:110px}#game[data-phase="ended"] .missions{display:none}
.stomp-control{position:absolute;right:220px;bottom:28px;width:100px;display:flex;align-items:center;flex-direction:column;gap:5px}.stomp-control button{width:74px;height:74px;border:4px solid #425574;border-radius:50%;background:#1c2d45;color:#8093ad;font-size:46px;line-height:1}.stomp-control button.ready{border-color:var(--lilac);color:var(--cream);background:#403456;box-shadow:0 0 20px #b59aef20}.stomp-control strong{font-size:12px;letter-spacing:1px}.stomp-control small{color:var(--lilac);font-size:11px;font-weight:bold}.stomp-control span{font-size:9px;color:#91a4c0}
#game[data-phase="ready"] .stomp-control,#game[data-phase="ended"] .stomp-control{display:none}.result-stars{font-size:32px;letter-spacing:5px;color:var(--lime);margin:-10px 0 7px}.record-label{font-size:11px;color:#ffca69;font-weight:bold;letter-spacing:1px}#result-breakdown{font-size:11px;margin:10px 0 15px}#city-smashed{font-size:12px}#results{max-height:calc(100svh - 115px);overflow-y:auto}#results h2{margin-bottom:20px}
@media(max-width:700px){.missions{top:182px;left:16px;right:16px;flex-direction:row;gap:8px;justify-content:space-between;padding:8px 10px;font-size:8px}.missions>span{display:none}.missions b{max-width:31%}#game[data-phase="ready"] .missions{top:140px}.chain{top:225px}.stomp-control{right:155px;bottom:25px;width:90px}.stomp-control button{width:68px;height:68px;font-size:42px}.stomp-control strong{font-size:11px}.bottom-hint{max-width:108px;font-size:10px;gap:5px;bottom:48px}.bottom-hint small{display:none}.pointer-symbol{font-size:18px}#results{max-height:calc(100svh - 145px)}.result-stars{font-size:26px}#city-smashed{font-size:10px}}
@media(max-height:540px) and (min-width:600px){.missions{top:74px;right:14px;font-size:8px;gap:4px;padding:8px 10px}.missions>span{font-size:7px}#game[data-phase="ready"] .missions{top:74px}.stomp-control{right:195px;bottom:15px;gap:3px}.stomp-control button{height:60px;width:60px;font-size:36px}.stomp-control span{display:none}#results{bottom:15px;max-height:calc(100svh - 85px)}#results h2{margin-bottom:15px}#result-breakdown{margin:5px 0}.result-stars{font-size:23px}.record-label{font-size:9px}.welcome p{font-size:10px}.welcome h1{font-size:24px}}

.missions b.done:before{content:none}
@media(max-width:700px){.missions{top:195px}.chain{top:235px}#city-count{font-size:9px}}
@media(max-height:540px) and (min-width:600px){.objective{left:18px;transform:none;max-width:270px;white-space:normal;font-size:9px}.missions{top:74px}}

#city-smashed{max-width:68%;text-align:right}.stat strong{letter-spacing:-.3px}
@media(max-height:540px) and (min-width:600px){.objective{max-width:270px;display:block;border-radius:15px;padding:7px 12px}.objective-dot{display:none}#city-count{display:block;border:0;padding:0 0 4px}#objective-text{display:block;line-height:1.4}}
/* Kiri campaign: hand-drawn sky, clear danger and original Japan-inspired districts. */
#game{--level-accent:#f9c1d3;background:radial-gradient(ellipse at 50% 50%,#465064,#202a43 75%)}#game[data-theme="neon"]{background:radial-gradient(ellipse at 50% 45%,#3f365e,#151e39 80%)}#game[data-theme="harbor"]{background:radial-gradient(ellipse at 50% 45%,#7b5559,#252a42 80%)}
#sky-art{position:absolute;inset:0;width:100%;height:100%;color:var(--level-accent);pointer-events:none}#world{position:relative;z-index:1}.hud,.objective,.missions,.chain,#notice,.bottom-hint,.dash-control,.stomp-control,.health-hud{z-index:3}.panel{z-index:5}.brand small{color:var(--level-accent);letter-spacing:1.3px}
.health-hud{position:absolute;left:25px;top:100px;display:flex;align-items:center;gap:9px;width:230px;padding:5px 9px 7px 2px;border:1px solid #7c849a50;background:#17283bd9;border-radius:17px;pointer-events:none}.health-hud svg{width:48px;height:48px;flex:none}.health-hud>div{flex:1}.health-hud span{font-size:10px;letter-spacing:1px;font-weight:900;display:flex;justify-content:space-between;gap:12px;color:#ddd8e9}.health-hud span b{letter-spacing:0;color:#bfe7b0}.health-hud small{display:block;font-size:7px;color:#a3adbf;margin-top:5px;letter-spacing:0}.health-track{height:8px;border:1px solid #203149;border-radius:8px;overflow:hidden;background:#192039;margin-top:5px}.health-track i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#7fc7b3,#d2eb8a);transform-origin:left;transition:transform .15s}.health-hud.low .health-track i{background:#ff9384}.health-hud.low span b{color:#ffab91}#game.hurt:after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;box-shadow:inset 0 0 85px #e6718860}
.objective{top:172px;max-width:345px!important;font-size:10px;line-height:1.5;border-radius:15px}.objective #city-count{font-size:9px}.missions{font-size:10px;max-width:230px}.missions>span{color:var(--level-accent)}.welcome{width:365px;bottom:75px}.welcome h1{font-size:35px}.welcome p{font-size:12px;margin-bottom:15px}.level-selection{display:flex;flex-direction:column;gap:5px;margin:0 0 17px}.level-selection button{padding:8px 10px;text-align:left;font-size:10px;border:1px solid #52637b;border-radius:7px;background:#1b2c45;color:#aebdce}.level-selection button.selected{border-color:var(--lilac);color:var(--cream);background:#3b3658}.level-selection button:disabled{opacity:.45}
.upgrade-panel{left:50%;top:50%;transform:translate(-50%,-50%);width:min(430px,calc(100% - 32px));max-height:calc(100svh - 40px);overflow-y:auto}.upgrade-panel h2{font-size:28px;letter-spacing:-.8px;margin:15px 0 25px}.upgrade-panel h3{font-size:19px;color:var(--lime);margin:16px 0 7px}.upgrade-panel p{font-size:12px}.upgrade-stats{color:var(--lilac);font-size:11px!important}.evolution-art{display:flex;justify-content:center;align-items:center;gap:19px;padding:13px 0;color:var(--level-accent)}.evolution-art span{font-size:30px;border:1px solid #5c687d;border-radius:14px;padding:6px 15px;background:#1c3048}.evolution-art span:last-child{font-size:42px;color:var(--lime)}.evolution-art i{font-style:normal;font-size:20px}.upgrade-panel>small{font-size:10px;line-height:1.5}
#game[data-phase="level-clear"] .stomp-control,#game[data-phase="level-clear"] .dash-control,#game[data-phase="level-clear"] .missions,#game[data-phase="level-clear"] .health-hud{display:none}#results.defeat #result-stars{font-size:11px;color:#ffab91;letter-spacing:1.5px;margin-top:0}#results .secondary{margin-top:12px}#results .result-hint{line-height:1.5}
@media(min-width:701px) and (min-height:541px){.objective{left:28px;transform:none}.chain{top:170px}}
@media(max-width:700px){.brand{font-size:20px}.brand small{font-size:7px}.health-hud{left:16px;top:130px;width:calc(100% - 32px);height:44px;padding:3px 12px 5px 4px}.health-hud svg{width:36px;height:36px}.health-hud small{display:none}.health-hud span{font-size:9px}.health-track{height:7px}.objective{top:182px;left:16px;width:calc(100% - 32px);max-width:calc(100% - 32px)!important;transform:none;padding:7px 10px;display:block;font-size:9px;line-height:1.45}.objective-dot{display:none}#city-count{display:block;border:0;padding:0 0 3px}#objective-text{display:block}.missions{top:252px;left:16px;right:16px;font-size:8px;gap:8px;max-width:none}.chain{top:302px}#game[data-phase="ready"] .missions{display:none}.welcome{bottom:90px;width:calc(100% - 32px);left:16px;max-height:calc(100svh - 280px);overflow-y:auto}.welcome h1{font-size:28px;margin:9px 0}.welcome p{font-size:11px;margin:9px 0 13px}.level-selection button{font-size:10px;padding:7px 9px}.level-selection{gap:4px;margin-bottom:13px}.welcome>small{font-size:8px;line-height:1.5}.stomp-control{right:155px}.upgrade-panel h2{font-size:24px}.evolution-art{padding:5px 0;gap:10px}.evolution-art span{font-size:25px}.evolution-art span:last-child{font-size:34px}#notice{bottom:180px}#results{max-height:calc(100svh - 145px)}#game[data-phase="ended"] .health-hud{display:none}}
@media(max-height:540px) and (min-width:600px){.health-hud{top:70px;left:18px;width:215px;height:44px}.health-hud svg{width:35px;height:35px}.health-hud small{display:none}.objective{top:122px;left:18px;max-width:230px!important;font-size:8px;line-height:1.35}.missions{top:75px;right:14px;max-width:170px;font-size:8px}.welcome{bottom:15px;left:18px;width:285px;max-height:calc(100svh - 130px);padding:17px;overflow-y:auto}.welcome h1{font-size:24px}.welcome p{font-size:10px;line-height:1.45}.level-selection button{padding:5px 8px;font-size:9px}.level-selection{margin-bottom:10px}.welcome>small{font-size:7px;margin-top:12px}.chain{top:126px}.upgrade-panel{max-height:calc(100svh - 30px);padding:20px}.upgrade-panel h2{font-size:22px;margin:9px 0 17px}.evolution-art{display:none}.upgrade-panel p{margin:9px 0;font-size:11px}.upgrade-panel h3{margin:8px 0}#results{max-height:calc(100svh - 80px)}}
@media(prefers-reduced-motion:reduce){.health-track i{transition:none}#game.hurt:after{display:none}}

@media(min-width:1000px) and (min-height:541px){#results.defeat{left:auto;right:28px}}
/* Scene flow and readable world exit. */
#screen-wipe{position:absolute;inset:0;z-index:30;background:repeating-linear-gradient(-12deg,#20263d 0 80px,#272d47 80px 84px);display:grid;place-items:center;pointer-events:auto;opacity:0}#screen-wipe span{font-size:clamp(20px,4vw,46px);color:var(--cream);font-weight:1000;text-transform:uppercase;letter-spacing:-1px;text-align:center;padding:20px}#screen-wipe[hidden],#entry-card[hidden],#exit-label[hidden],#exit-hint[hidden]{display:none}#entry-card{position:absolute;left:50%;top:35%;transform:translate(-50%,-50%);z-index:7;pointer-events:none;text-align:center;min-width:280px;padding:20px 30px;background:#18243beb;border:2px solid #b8a0df;border-radius:12px;box-shadow:5px 6px 0 #0f183270}#entry-card small,#entry-card span{display:block;color:#c4ef66;font-size:10px;letter-spacing:2px;font-weight:800}#entry-card strong{display:block;color:#fff0cf;font-size:clamp(23px,3vw,42px);line-height:1.1;margin:10px 0}#entry-card span{color:#baa2e8;font-size:8px}#exit-label{position:absolute;z-index:4;transform:translate(-50%,-100%);color:#c4ef66;background:#18243bed;border:1px solid #c4ef66;border-radius:6px;padding:4px 9px;font-weight:900;font-size:10px;pointer-events:none}#exit-hint{position:absolute;z-index:4;bottom:145px;left:50%;transform:translateX(-50%);border:2px solid #c4ef66;background:#18243bed;color:#c4ef66;border-radius:20px;padding:10px 18px;font-weight:900;font-size:12px;white-space:nowrap}.panel{animation:panel-reveal .24s ease-out both}@keyframes panel-reveal{from{opacity:0;filter:blur(3px)}to{opacity:1;filter:blur(0)}}@media(max-width:700px){#entry-card{top:44%;padding:15px 20px;min-width:260px}#exit-hint{bottom:190px;font-size:10px;padding:8px 12px}}@media(prefers-reduced-motion:reduce){.panel{animation:none}}
#boss-hud{position:absolute;z-index:4;top:102px;left:50%;transform:translateX(-50%);width:290px;border:2px solid #67758c;background:#19263bed;border-radius:12px;padding:9px 12px;color:#fff0ce}#boss-hud[hidden]{display:none}#boss-hud strong{font-size:10px;letter-spacing:1px}#boss-hud>b{float:right;font-size:10px}.boss-track{height:8px;background:#35415a;border-radius:5px;overflow:hidden;margin:7px 0}.boss-track i{display:block;height:100%;background:#efac78;transform-origin:left;transition:transform .15s}#boss-hud.open{border-color:#c4ef66}#boss-hud.open .boss-track i{background:#c4ef66}#boss-hud small{display:block;color:#bba7e0;font-size:9px;font-weight:900}#mutation-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}#mutation-options button{text-align:left;background:#25324b;color:#fff0ce;border:2px solid #5d6482;border-radius:10px;padding:12px;min-height:115px}#mutation-options button.selected{border-color:#c4ef66;background:#33433e}#mutation-options strong,#mutation-options span,#mutation-options small{display:block}#mutation-options strong{font-size:13px;color:#c4ef66}#mutation-options span{font-size:10px;line-height:1.45;margin:7px 0}#mutation-options small{font-size:9px;color:#d2b7ef}.upgrade-panel{max-height:calc(100svh - 30px);overflow-y:auto}.upgrade-panel .evolution-art{display:none}.primary:disabled{opacity:.45;cursor:default}@media(max-width:700px){#boss-hud{top:295px;width:230px;padding:7px 10px}#boss-hud strong{font-size:9px}#mutation-options button{padding:9px;min-height:108px}.upgrade-panel{max-height:calc(100svh - 30px)}}@media(max-height:540px) and (min-width:600px){#boss-hud{top:65px;width:220px;left:50%;font-size:8px}.upgrade-panel{max-height:calc(100svh - 20px)}#mutation-options button{min-height:90px;padding:8px}#mutation-options{margin:8px 0}}
.mission-pin{position:absolute;z-index:4;width:25px;height:25px;border:2px solid #ffe3a4;border-radius:50%;background:#75573ceb;color:#fff0c8;transform:translate(-50%,-100%);font-size:14px;font-weight:1000;line-height:18px;box-shadow:0 3px 0 #242c4866;padding:0}.mission-pin::after{content:'';position:absolute;bottom:-8px;left:7px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:6px solid #ffe3a4}.mission-pin[hidden]{display:none}.mission-pin:focus-visible{outline:3px solid #c4ef66}
button.mission-pin:active:not(:disabled){transform:translate(-50%,-100%) scale(.94)}
/* Keep projected controls anchored while pressed, with comfortable touch targets. */
button.mission-pin:active:not(:disabled){transform:translate(-50%,-100%)}
button#exit-hint:active:not(:disabled){transform:translateX(-50%) scale(.96)}
@media(pointer:coarse){.mission-pin{width:44px;height:44px;line-height:36px;font-size:17px}.mission-pin::after{left:16px}}
/* Three powers, one clear row. */
.beam-control{position:absolute;z-index:3;right:332px;bottom:28px;width:100px;display:flex;flex-direction:column;align-items:center;gap:5px}.beam-control button{width:74px;height:74px;border:4px solid #425574;border-radius:50%;background:#1c2d45;color:#7b9bb4;font-size:42px}.beam-control button.ready{border-color:#75e7df;background:#234751;color:#fff0d4;box-shadow:0 0 20px #75e7df30}.beam-control strong{font-size:12px;letter-spacing:1px}.beam-control small{font-size:11px;color:#75e7df;font-weight:900}.beam-control span{font-size:9px;color:#91a4c0}
#game[data-phase="ready"] .beam-control,#game[data-phase="ended"] .beam-control,#game[data-phase="level-clear"] .beam-control{display:none}
#mission-status{position:absolute;z-index:4;left:50%;transform:translateX(-50%);bottom:155px;font-size:11px;color:#ffe0a1;background:#17273eea;border:1px solid #6e8a8b;border-radius:12px;padding:9px 15px;text-align:center;max-width:90%;pointer-events:none}
#campaign-map{max-height:255px;overflow-y:auto;overscroll-behavior:contain}.district-chapter{border:1px solid #4c5e78;border-radius:9px;background:#1c2b42;padding:7px}.district-chapter summary{color:#e6d6b8;font-size:10px;font-weight:800;cursor:pointer;padding:4px 0}.district-chapter[open] summary{color:#c4ef66;margin-bottom:6px}.district-chapter button{display:block;width:100%;margin:4px 0;min-height:32px}.welcome{max-height:calc(100svh - 145px);overflow-y:auto}.welcome h1{font-size:30px}
#game[data-theme="snow"]{background:radial-gradient(ellipse at 48% 45%,#7d9ba8,#33465f 73%)}#game[data-theme="sunrise"]{background:radial-gradient(ellipse at 48% 45%,#bb928b,#423b5b 73%)}
@media(max-width:700px){.beam-control,.stomp-control,.dash-control{bottom:18px;width:88px;gap:4px}.beam-control{right:calc(50% + 52px)}.stomp-control{right:calc(50% - 44px)}.dash-control{right:calc(50% - 140px)}.beam-control button,.stomp-control button,#dash{width:68px;height:68px;border-width:4px}.beam-control strong,.stomp-control strong,.dash-control>strong{font-size:11px}.beam-control span,.stomp-control span,.dash-control>small{font-size:8px}.dash-control>span{position:absolute;top:-17px;white-space:nowrap;font-size:7px}.bottom-hint{bottom:151px;left:16px;max-width:none}#notice{bottom:165px}#mission-status{bottom:145px;font-size:9px;width:max-content}#exit-hint{bottom:145px}#game:has(#mission-status:not([hidden])) .bottom-hint{display:none}.welcome{max-height:calc(100svh - 230px);bottom:35px}#campaign-map{max-height:205px}.welcome h1{font-size:25px}#exit-label{font-size:8px}}
@media(max-height:540px) and (min-width:600px){.beam-control{right:280px;bottom:15px;width:75px;gap:3px}.beam-control button{width:60px;height:60px;font-size:34px}.beam-control span{display:none}#mission-status{bottom:18px;max-width:30%;font-size:9px}#campaign-map{max-height:130px}.welcome{max-height:calc(100svh - 115px)}.bottom-hint{max-width:190px}#exit-hint{bottom:125px;font-size:10px}}
#resume-campaign{color:#c4ef66;border-color:#7b9f75;margin:0 0 10px;font-size:11px;padding:9px}#campaign-map summary:focus-visible{outline:2px solid #c4ef66}
@media(max-width:700px){#notice{bottom:195px}}
@media(max-height:540px) and (min-width:600px){#mission-status{left:18px;transform:none;bottom:56px;max-width:230px}#notice{bottom:115px;max-width:32%}}
#exit-label{white-space:nowrap}
@media(max-width:700px){#exit-hint{bottom:165px}#exit-label{font-size:8px;padding:3px 6px}}

.mission-pin[data-optional="true"]{border-color:#e5bd78;color:#ffe1a3;background:#4b3f59e8}
@media(max-width:700px){#game:has(#mission-status:not([hidden])) #notice{bottom:205px;max-width:92%}#game:has(#mission-status:not([hidden])) .dash-control>span{display:none}}

.icon svg{width:23px;height:23px;vertical-align:middle}.mute-cross{display:none}.is-muted .sound-waves{display:none}.is-muted .mute-cross{display:block}#music.is-muted{opacity:.5}.credits-link{display:block;margin:10px auto 0;padding:5px 9px;border:0;border-radius:6px;background:transparent;color:#b5b0cd;font:inherit;font-size:10px;text-decoration:underline;cursor:pointer}#music-credits{max-width:min(430px,calc(100vw - 32px));max-height:80svh;overflow:auto;border:1px solid #8f79ac;border-radius:20px;padding:26px;background:#1b2239;color:#fff0d4;font:14px/1.6 system-ui,sans-serif}#music-credits::backdrop{background:#080e22bd}#music-credits h2{font-size:24px;line-height:1.2;margin:0 0 16px}#music-credits a{color:#c3a5eb}#music-credits .credit-detail{font-size:11px;color:#b0b7ca}#music-credits .primary{width:100%}

#audio-settings{box-sizing:border-box;width:min(430px,calc(100vw - 32px));max-height:85svh;overflow:auto;border:1px solid #8f79ac;border-radius:20px;padding:26px;background:#1b2239;color:#fff0d4;font:14px/1.6 system-ui,sans-serif}
#audio-settings::backdrop{background:#100e24ba;backdrop-filter:blur(5px)}
#audio-settings h2{font-size:25px;margin:0 0 8px}#audio-settings label{display:flex;justify-content:space-between;font-weight:700;margin-top:20px}#audio-settings output{color:#c4ef66;font-variant-numeric:tabular-nums}#audio-settings input[type=range]{display:block;width:100%;min-height:44px;margin:0 0 8px;accent-color:#c4ef66;cursor:pointer}#audio-settings button{width:100%;min-height:44px}#audio-settings .credit-detail{font-size:12px;color:#c7bddb}#audio-mute-status:empty{display:none}#audio-settings :focus-visible{outline:3px solid #c4ef66;outline-offset:3px}
/* Illustrated anime field guide and action UI. */
.guide-sprite{background-image:url('./assets/ui/tutorial-atlas-v1.webp?v=eeacd2442832');background-size:var(--atlas-size-x,400%) var(--atlas-size-y,400%);background-position:var(--tile-x,0%) var(--tile-y,0%);background-repeat:no-repeat}
#field-guide{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:92svh;overflow:auto;border:3px solid #282b49;border-radius:24px;padding:20px;background:linear-gradient(145deg,#fff3d9,#e6dcff);color:#282b49;box-shadow:0 8px 0 #282b49,0 20px 90px #12162c80;font-family:system-ui,sans-serif}
#field-guide::backdrop{background:#11182c9e;backdrop-filter:blur(3px)}.guide-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px}.guide-stamp{font-size:28px;color:#4e9b93;text-shadow:1px 2px #b9eac4}#field-guide h2{font-size:25px;line-height:1.1;letter-spacing:-.8px;margin:0;color:#2d2948}
#guide-art{aspect-ratio:1;width:100%;max-height:38svh;max-width:310px;margin:0 auto;border:3px solid #34314f;border-radius:18px;box-shadow:5px 5px 0 #a898c9}#guide-copy{font-size:15px;line-height:1.55;font-weight:600;color:#3e3a58;margin:18px 0 12px}#guide-action{display:block;padding:9px;border:2px dashed #8e76ad;border-radius:10px;text-align:center;font-size:11px;letter-spacing:.7px;background:#ffffff72;color:#425262}.guide-footer{display:flex;gap:8px;margin-top:16px}.guide-footer button{justify-content:center}.guide-footer .secondary{margin:0;width:auto;font-size:11px;padding:10px;color:#403453;border:2px solid #8e76ad}
#guide-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.guide-tile-button{border:2px solid #b4a2cb;padding:0;border-radius:12px;background:#fff7e6;color:#38304b;overflow:hidden;cursor:pointer}.guide-tile-button .guide-sprite{display:block;width:100%;aspect-ratio:1}.guide-tile-button b{display:block;font-size:10px;line-height:1.25;padding:7px 4px}.guide-focus{outline:4px solid #f9ce70!important;outline-offset:4px}.guide-launch{font-weight:900!important;color:#c4ef66!important}
.primary{position:relative;border:3px solid #293049;background:linear-gradient(120deg,#d5fa85,#90ddbd);color:#26304a;border-radius:12px 22px 12px 22px;box-shadow:0 5px 0 #293049;font-weight:1000;letter-spacing:1px;text-shadow:0 1px #f8ffcd;min-height:48px}.primary:hover{filter:brightness(1.06);box-shadow:0 7px 0 #293049}.secondary{border:2px solid #8e82aa;background:linear-gradient(120deg,#3b3655,#26324b);box-shadow:0 3px 0 #171c32}.panel .credits-link{padding:9px 6px;min-height:36px}
.welcome{overflow:hidden auto!important}.welcome-kiri{position:absolute;right:20px;top:22px;width:116px;height:116px;--tile-x:66.6667%;--tile-y:100%;border:3px solid #9d85c2;border-radius:50%;box-shadow:0 5px 0 #1e263e}.welcome h1{max-width:61%;font-size:35px!important;line-height:1.02}.welcome>p{max-width:65%;font-size:12px;line-height:1.4}.welcome>.eyebrow{font-size:8px;max-width:62%;display:block}.level-selection button{position:relative;padding-left:45px!important;min-height:42px!important;overflow:hidden}.level-selection button::before{content:'';position:absolute;left:3px;top:3px;width:32px;height:32px;border-radius:7px;background-image:url('./assets/ui/tutorial-atlas-v1.webp?v=eeacd2442832');background-size:var(--atlas-size-x,400%) var(--atlas-size-y,400%);background-position:var(--tile-x,0%) var(--tile-y,0%);border:1px solid #fff1cf70}.district-chapter summary{letter-spacing:.2px}
.ability-art{display:block;position:absolute;inset:3px;border-radius:50%;background-image:url('./assets/ui/tutorial-atlas-v1.webp?v=eeacd2442832');background-size:var(--atlas-size-x,400%) var(--atlas-size-y,400%);background-position:var(--tile-x,0%) var(--tile-y,0%)}#beam,#stomp,#dash{position:relative;overflow:visible;isolation:isolate;border-width:4px!important;box-shadow:0 5px 0 #19213b!important}#beam .ability-art{--tile-x:0%;--tile-y:33.3333%}#stomp .ability-art{--tile-x:100%;--tile-y:0%}#dash .ability-art{--tile-x:66.6667%;--tile-y:0%}#beam kbd,#stomp kbd,#dash kbd{position:absolute;right:-4px;bottom:-3px;background:#fff2d3;border:2px solid #2a2b49;border-radius:6px;font:bold 12px system-ui;padding:2px 6px;color:#272e49;z-index:1}#beam:disabled .ability-art,#stomp:disabled .ability-art,#dash:disabled .ability-art{filter:grayscale(.65);opacity:.55}.beam-control>span,.stomp-control>span,#dash-status,#dash-help,.bottom-hint,.health-hud small,#best-record{display:none!important}.beam-control strong,.stomp-control strong,.dash-control strong{text-shadow:1px 2px #17243a;letter-spacing:1px}
#missions{display:flex;gap:7px;align-items:center;max-width:none;min-width:0;padding:0;border:0;background:none;top:138px;right:28px}.goal-chip{border:2px solid #66758c;border-radius:10px;padding:4px;background:#192840e8;color:#fff0d4;min-width:64px;max-width:90px;font-size:11px;font-weight:900;line-height:1.3;box-shadow:0 3px #141c31;cursor:pointer}.goal-chip::before{content:'';display:block;width:38px;height:38px;margin:0 auto 4px;border-radius:7px;background-image:url('./assets/ui/tutorial-atlas-v1.webp?v=eeacd2442832');background-size:var(--atlas-size-x,400%) var(--atlas-size-y,400%);background-position:var(--tile-x,0%) var(--tile-y,0%)}.goal-chip.done{border-color:#b7e784;color:#c4ef66}.goal-chip:focus-visible,#field-guide button:focus-visible{outline:3px solid #efb84e;outline-offset:3px}#objective-text{max-width:290px;font-weight:700}#objective{white-space:normal}#level-clear>small{display:none}
@media(max-width:700px){#field-guide{padding:16px;border-radius:20px}#field-guide h2{font-size:22px}#guide-art{max-height:33svh;max-width:270px}#guide-copy{font-size:14px;margin:14px 0 10px}.guide-footer{margin-top:12px}.welcome-kiri{width:96px;height:96px;right:15px;top:20px}.welcome h1{font-size:30px!important}.welcome .credits-link{font-size:11px;padding:8px;min-height:32px}#missions{top:190px;right:16px;gap:4px}.goal-chip{min-width:47px;max-width:53px;font-size:9px;padding:3px}.goal-chip::before{width:28px;height:28px}#objective{top:190px;left:16px;max-width:calc(100% - 184px)!important;width:auto;font-size:9px;padding:8px}#city-count{display:none}#objective-text{max-width:none}.beam-control button,.stomp-control button,#dash{width:76px!important;height:76px!important}.beam-control,.stomp-control,.dash-control{gap:4px}.beam-control strong,.stomp-control strong,.dash-control strong{font-size:10px}}
@media(max-height:550px) and (min-width:600px){#field-guide{width:570px;max-width:95vw;padding:14px}#guide-detail{display:grid;grid-template-columns:190px 1fr;gap:8px 18px}#guide-art{grid-row:1/3;width:190px;max-height:none}#guide-copy{margin:0;font-size:13px}#guide-action{align-self:end;font-size:10px}.guide-footer{margin-top:9px}#guide-list{grid-template-columns:repeat(5,minmax(0,1fr))}.welcome-kiri{display:none}#missions{top:85px;right:15px}.goal-chip::before{width:25px;height:25px}}
@media(pointer:coarse){#beam kbd,#stomp kbd,#dash kbd{display:none}}
#mutation-options button{position:relative;padding-left:75px;min-height:82px}#mutation-options button>span{display:none}.mutation-sprite{position:absolute;left:8px;top:8px;width:56px;height:56px;border:2px solid #a190b4;border-radius:10px}#mutation-options button strong{font-size:14px}#mutation-options button small{font-size:11px}#mutation-options button.selected{outline:3px solid #c4ef66;outline-offset:2px}

#missions{flex-direction:row}#game[data-phase="ready"] #missions,#game[data-phase="ready"] .dash-control,#game[data-phase="ready"] .beam-control,#game[data-phase="ready"] .stomp-control{display:none}.mission-pin.guide-sprite{background-image:url('./assets/ui/tutorial-atlas-v1.webp?v=eeacd2442832');background-size:var(--atlas-size-x,400%) var(--atlas-size-y,400%);background-position:var(--tile-x,0%) var(--tile-y,0%);width:36px;height:36px;min-width:36px;border:2px solid #ffdd88;border-radius:10px;box-shadow:0 3px #34304d;font-size:0}.mission-pin.guide-sprite[data-optional]{border-color:#b3efdd}#exit-hint{font-size:12px;font-weight:1000;border:3px solid #67baad;border-radius:12px 20px 12px 20px;background:linear-gradient(120deg,#f7e5b7,#a7edce);color:#243b49;box-shadow:0 4px #26304a}#exit-hint::before{content:'↗';font-size:24px;vertical-align:middle;margin-right:8px}
#guide-sequence{display:flex;align-items:center;justify-content:center;gap:8px;margin:16px auto 0;padding:7px;border:2px dashed #a38ab7;border-radius:12px;background:#fff8e2b0}#guide-sequence i{display:block;width:45px;height:45px;flex:0 0 45px;border:1px solid #8d7eac;border-radius:8px}#guide-sequence>span{font-size:20px;color:#51446b;font-weight:900}@media(max-width:700px){#guide-art{max-height:30svh;max-width:250px}#guide-sequence{gap:6px;margin-top:13px}#guide-sequence i{width:40px;height:40px;flex-basis:40px}}
@media(max-height:550px) and (min-width:600px){#guide-art{grid-row:1/4}#guide-sequence{margin:0;padding:4px;grid-column:2}#guide-sequence i{width:30px;height:30px;flex-basis:30px}#guide-copy{grid-column:2}#guide-action{grid-column:2}}
#missions{left:auto;width:max-content}

#game[data-guide-open] *{animation-play-state:paused!important}.tools .icon{border:2px solid #74829e;box-shadow:0 3px #111a2c;background:linear-gradient(145deg,#2b3a54,#17263d)}
.guide-footer .secondary{background:#f5e9ff;color:#46385e;box-shadow:none}

/* Quick manga-card cuts. Individual transforms preserve each panel's placement. */
@media (prefers-reduced-motion:no-preference){
 .panel{animation:none;transition:opacity 140ms ease-out,translate 180ms cubic-bezier(.16,1,.3,1),scale 180ms cubic-bezier(.16,1,.3,1),display 180ms allow-discrete;opacity:1;translate:0 0;scale:1}
 .panel[hidden]{opacity:0;translate:0 8px;scale:.985;pointer-events:none}
 :is(#field-guide,#audio-settings,#music-credits){transition:opacity 120ms ease-out,translate 170ms cubic-bezier(.16,1,.3,1),scale 170ms cubic-bezier(.16,1,.3,1),display 170ms allow-discrete,overlay 170ms allow-discrete;opacity:0;translate:0 10px;scale:.975;pointer-events:none}
 :is(#field-guide,#audio-settings,#music-credits)[open]{opacity:1;translate:0 0;scale:1;pointer-events:auto}
 :is(#field-guide,#audio-settings,#music-credits)::backdrop{transition:opacity 140ms ease-out,display 170ms allow-discrete,overlay 170ms allow-discrete;opacity:0}
 :is(#field-guide,#audio-settings,#music-credits)[open]::backdrop{opacity:1}
 :is(#guide-list,#guide-detail){transition:opacity 110ms ease-out,translate 150ms cubic-bezier(.16,1,.3,1);opacity:1;translate:0 0}
 .guide-tile-button,.level-selection button,#mutation-options button{transition:translate 120ms ease-out,box-shadow 120ms ease-out,border-color 120ms ease-out}
 .guide-tile-button:active,.level-selection button:active,#mutation-options button:active{translate:0 2px}
 @starting-style{
  .panel:not([hidden]){opacity:0;translate:0 12px;scale:.975}
  :is(#field-guide,#audio-settings,#music-credits)[open]{opacity:0;translate:0 14px;scale:.965}
  :is(#field-guide,#audio-settings,#music-credits)[open]::backdrop{opacity:0}
  :is(#guide-list,#guide-detail):not([hidden]){opacity:0;translate:8px 0}
 }
}

/* A compact touch HUD keeps the city clear without shrinking touch targets. */
#fullscreen[aria-pressed=true]{border-color:#b7e784;color:#c4ef66}
.compact-view .hud{top:max(8px,env(safe-area-inset-top));left:12px;right:12px;gap:4px}
.compact-view .brand{font-size:15px;letter-spacing:-.5px;align-self:center}.compact-view .brand small{display:none}
.compact-view .tools{gap:3px}.compact-view .tools .icon{width:42px;height:42px;min-width:42px;border-radius:11px;font-size:21px}
.compact-view .stats{top:50px;left:0;transform:none;gap:5px}.compact-view .stat{min-width:58px;padding:3px 7px;border-radius:9px}.compact-view .stat small{font-size:7px;letter-spacing:.5px}.compact-view .stat strong{font-size:18px}
.compact-view .health-hud{top:calc(59px + env(safe-area-inset-top));left:153px;width:calc(100% - 165px);height:38px;padding:2px 6px 2px 0;border-radius:10px;box-sizing:border-box;gap:3px}.compact-view .health-hud svg{width:32px;height:32px}.compact-view .health-hud span{font-size:8px;gap:3px;letter-spacing:0}.compact-view .health-track{height:6px;margin-top:4px}
.compact-view #objective{top:calc(108px + env(safe-area-inset-top));left:12px;transform:none;max-width:calc(100% - 163px)!important;font-size:9px;padding:5px 8px;min-height:35px;box-sizing:border-box}
.compact-view #missions{top:calc(106px + env(safe-area-inset-top));right:12px;gap:4px}.compact-view .goal-chip{min-width:39px;max-width:43px;font-size:8px;padding:3px}.compact-view .goal-chip::before{display:inline-block;width:20px;height:20px;margin:0 2px 0 0;vertical-align:middle}
.compact-view #boss-hud{top:calc(159px + env(safe-area-inset-top));width:230px;padding:5px 9px}.compact-view #boss-hud small{font-size:8px}.compact-view .boss-track{height:6px;margin:4px 0}
.compact-view .chain{top:220px}.compact-view .chain b{font-size:20px}
.compact-view .beam-control,.compact-view .stomp-control,.compact-view .dash-control{bottom:max(12px,env(safe-area-inset-bottom));width:80px;gap:3px}
.compact-view .beam-control{right:calc(50% + 48px)}.compact-view .stomp-control{right:calc(50% - 40px)}.compact-view .dash-control{right:calc(50% - 128px)}
.compact-view .beam-control button,.compact-view .stomp-control button,.compact-view #dash{width:66px!important;height:66px!important}.compact-view .beam-control strong,.compact-view .stomp-control strong,.compact-view .dash-control strong{font-size:10px}.compact-view .beam-control small,.compact-view .stomp-control small{font-size:8px}
.compact-view #mission-status{bottom:118px;left:50%;transform:translateX(-50%);max-width:calc(100% - 28px);font-size:9px;padding:6px 10px}.compact-view #notice,.compact-view:has(#mission-status:not([hidden])) #notice{bottom:160px;max-width:calc(100% - 28px);font-size:11px}
.compact-view #exit-hint{bottom:119px;max-width:calc(100% - 24px);white-space:normal;font-size:10px;padding:6px 10px}.compact-view #exit-hint::before{font-size:18px}
.mission-pin.offscreen{border-color:#c4ef66}.mission-pin.offscreen::after{content:'➜';position:absolute;left:8px;top:28px;bottom:auto;width:20px;height:20px;border:0;background:#223149;color:#e4f5b5;border-radius:50%;font:900 15px/20px system-ui;transform:rotate(var(--direction));box-shadow:0 1px 3px #1118}
@media(max-height:600px) and (min-width:701px){
 .compact-view .brand{display:none}.compact-view .stats{top:0}.compact-view .tools{margin-left:auto}.compact-view .health-hud{top:60px;left:12px;width:135px}.compact-view #objective{top:105px;max-width:170px!important}.compact-view #missions{top:60px}.compact-view #boss-hud{top:58px;left:50%;width:220px}.compact-view .chain{top:110px}.compact-view #mission-status{bottom:18px;left:14px;transform:none;max-width:220px}.compact-view #notice{bottom:115px}.compact-view .beam-control{right:190px}.compact-view .stomp-control{right:102px}.compact-view .dash-control{right:14px}.compact-view #exit-hint{bottom:118px}
}
.compact-view .goal-chip::before{display:block;margin:0 auto 2px}.compact-view .goal-chip{white-space:nowrap}
.compact-view .ability-art{display:block}
#fullscreen-feedback{position:absolute;z-index:15;right:12px;top:60px;max-width:min(320px,calc(100% - 24px));padding:12px;border:2px solid #b7e784;border-radius:12px;background:#192840f5;color:#fff0d4;font-size:12px;line-height:1.5;pointer-events:none;box-shadow:0 5px 20px #10132488}
#game{height:100dvh;--safe-top:env(safe-area-inset-top,0px)}
#pinch-zoom{position:absolute;z-index:6;bottom:200px;left:50%;transform:translateX(-50%);padding:7px 14px;background:#18283dea;border:2px solid #b7e784;border-radius:20px;color:#e8ffd1;font-weight:900;font-size:14px;pointer-events:none}
.attract-shade{display:none;position:absolute;inset:0;z-index:4;pointer-events:none;background:linear-gradient(90deg,#101b36a8 0%,#101b3620 48%,#101b3600 78%)}
.attract-mode .attract-shade{display:block}.attract-mode .welcome,.attract-mode .hud{z-index:6}.attract-mode .stats,.attract-mode .health-hud,.attract-mode #boss-hud{display:none!important}
#demo-toggle{position:absolute;right:20px;bottom:15px;border:1px solid #b5a0dc80;border-radius:8px;padding:5px 8px;color:#d9c8f6;background:#1b2945d9;font-size:9px;letter-spacing:.8px;min-height:32px}
@media(max-width:700px){.attract-shade{background:linear-gradient(0deg,#101b3670 0%,#101b3620 68%,#101b3600 100%)}#demo-toggle{right:16px;bottom:12px}}
/* Keep the attract action visible above a compact mobile menu. */
.compact-view .welcome>#campaign-map{max-height:150px}
.compact-view .welcome>.credits-link{display:inline-flex;vertical-align:top;align-items:center;justify-content:center;width:25%;min-height:44px;margin:8px 0 0;padding:3px 2px!important;font-size:9px!important;text-align:center;line-height:1.2;white-space:normal}
.compact-view .welcome>#demo-toggle{position:static;width:calc(25% - 4px);margin-right:4px;border-radius:8px;text-decoration:none}
.attract-shade::before{content:'';position:absolute;inset:0;background:#101b36;opacity:var(--demo-fade,0)}
.compact-view .welcome>#demo-toggle{min-height:44px}

/* Studio opening and floating front-end cards. The city remains visible. */
#game[data-phase="ready"] .hud .brand,#game[data-phase="ready"] .hud .stats,#game[data-phase="ready"] #objective,#game[data-phase="ready"] .bottom-hint{display:none}
#game[data-phase="ready"] .hud{z-index:8;justify-content:flex-end}
#game .attract-shade{background:radial-gradient(ellipse at center,#14112626 0%,#1411260a 55%,#14112655 100%)}
#game #welcome{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(408px,calc(100% - 40px));max-height:calc(100svh - 100px);padding:23px 25px 14px;border:2px solid #c7b1e7;border-radius:25px;background:linear-gradient(150deg,#20243de8,#17233cde);box-shadow:0 9px 0 #11172aa0,0 22px 65px #10142645;overflow:auto!important;scrollbar-width:thin;scrollbar-color:#b59aef #1b2940}
#game #welcome .menu-heading{position:relative;min-height:116px}
#game #welcome .eyebrow{display:block;font-size:8px;letter-spacing:1.5px;max-width:100%;color:#edc589}
#game #welcome h1{font-size:48px!important;line-height:.91;letter-spacing:-2px;max-width:70%;margin:13px 0 16px;text-shadow:3px 4px 0 #141126;-webkit-text-stroke:1px #fff0d420;rotate:-3deg}
#game #welcome h1 em{color:#c4ef66}
#game #welcome .welcome-kiri{width:100px;height:100px;right:-5px;top:17px;rotate:8deg;border:3px solid #fff0d4;background-color:#8064aa;box-shadow:4px 5px 0 #10182e}
.menu-route{margin:4px 0 12px;padding:10px 12px;border-left:3px solid #c4ef66;background:#111d3266;border-radius:0 10px 10px 0}
.menu-route>span{display:block;font-size:7px;font-weight:900;letter-spacing:1.4px;color:#b9a5da}.menu-route strong{display:block;font-size:13px;margin:4px 0;color:#fff0d4}#game #welcome .menu-route p{font-size:10px;line-height:1.35;margin:3px 0 0;color:#bdcad8;max-width:none}
#mission-picker{margin-bottom:13px;border:1px solid #7e789b;border-radius:10px;background:#18243e66}#mission-picker>summary{list-style:none;min-height:42px;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;cursor:pointer;font-size:10px;font-weight:900;letter-spacing:.7px;color:#d5c4ec}#mission-picker>summary::-webkit-details-marker{display:none}#mission-picker>summary span{font-size:19px;transition:rotate .15s}#mission-picker[open]>summary span{rotate:180deg}#mission-picker #campaign-map{padding:0 7px 7px;max-height:190px;margin:0}#mission-picker .district-chapter{background:#20304be0}
#game #welcome #start{min-height:52px;font-size:19px;border:2px solid #e4fca3;border-radius:13px;background:linear-gradient(115deg,#c4ef66,#d7f99d);box-shadow:0 5px 0 #6e8a40;letter-spacing:.5px}#game #welcome #start span{font-size:27px}
#game #welcome #resume-campaign{margin:0 0 12px;min-height:42px;font-size:12px}
.menu-links{display:flex;justify-content:space-between;gap:4px;margin:11px -3px 2px}#game #welcome .menu-links button{position:static;min-height:44px;margin:0;padding:5px 7px;font-size:10px;width:auto;border:0;background:transparent;color:#d0c5dd}
.menu-signature{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #c7b1e733;padding-top:9px;margin-top:2px}.menu-signature>div{display:flex;align-items:center;gap:6px}.menu-signature img{object-fit:contain}#game #welcome #demo-toggle{position:static;width:auto;min-height:44px;margin:0;padding:6px;font-size:9px;white-space:nowrap}
#brand-intro{position:absolute;inset:0;z-index:35;display:grid;place-items:center;isolation:isolate;background:radial-gradient(ellipse at center,#141126a8,#14112620 70%);opacity:calc(1 - var(--intro-out,0));pointer-events:auto}
.intro-brand{display:flex;flex-direction:column;align-items:center;gap:17px;filter:drop-shadow(0 6px 10px #141126);animation:studio-arrive .6s cubic-bezier(.16,1,.3,1) both}.intro-mark{width:100px;height:110px;animation:studio-bounce .9s cubic-bezier(.16,1,.3,1) both}.intro-wordmark{width:min(300px,70vw);height:auto}.intro-brand>span{font-size:9px;font-weight:900;color:#fff0d4;letter-spacing:2px;text-align:center;margin-top:7px}.intro-orbit{position:absolute;width:300px;height:300px;border:1px solid #c4ef6655;border-radius:50%;rotate:-20deg;box-shadow:0 0 0 24px #b59aef0b,0 0 0 50px #fff0d405;animation:studio-ring 1.9s ease-out both}.intro-orbit::before,.intro-orbit::after{content:'✦';position:absolute;color:#c4ef66;font-size:28px;left:11px;top:30px}.intro-orbit::after{left:auto;top:auto;right:0;bottom:35px;color:#e9bb76;font-size:20px}
#skip-intro{position:absolute;right:24px;bottom:max(22px,env(safe-area-inset-bottom));min-width:90px;min-height:44px;border:1px solid #e1ccee88;border-radius:12px;color:#fff0d4;background:#17233cc9;font-size:10px;font-weight:900;letter-spacing:1px}#skip-intro span{margin-left:12px}
.opening #welcome{opacity:0!important;pointer-events:none;visibility:hidden}.opening .hud{visibility:hidden}
#game #screen-wipe{background:linear-gradient(115deg,#14112630,#222b4866,#14112625);backdrop-filter:none}#game #screen-wipe span{background:#1b2447d9;border:2px solid #c8afe6;box-shadow:8px 8px 0 #10162e88;border-radius:10px;max-width:calc(100% - 40px);font-size:clamp(19px,3vw,36px);padding:16px 24px;rotate:-3deg;translate:calc((.5 - var(--cut,.5))*35px) 0}
#game #results,#game #level-clear{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);max-height:calc(100svh - 40px);background:linear-gradient(145deg,#20243de8,#17233cde)}
@keyframes studio-arrive{from{opacity:0;translate:0 15px;scale:.9}to{opacity:1;translate:0 0;scale:1}}@keyframes studio-bounce{from{rotate:-14deg;translate:0 15px;scale:.75}55%{rotate:6deg;translate:0 -5px;scale:1.06}to{rotate:0deg;translate:0 0;scale:1}}@keyframes studio-ring{from{scale:.6;opacity:0}30%{opacity:1}to{scale:1.18;opacity:.6}}
@media(max-width:700px){#game #welcome{max-height:calc(100svh - 130px);padding:18px 19px 11px;width:min(370px,calc(100% - 34px))}#game #welcome h1{font-size:44px!important}#game #welcome .welcome-kiri{width:91px;height:91px;top:18px}#mission-picker #campaign-map{max-height:155px}.menu-signature>div img:last-child{width:113px}#game #welcome .menu-links button{font-size:9px}.intro-brand>span{font-size:8px;letter-spacing:1.3px}}
@media(max-height:540px) and (min-width:600px){#game #welcome{width:480px;max-height:calc(100svh - 28px);padding:12px 20px 9px}#game #welcome .menu-heading{min-height:65px}#game #welcome h1{font-size:32px!important;line-height:.85;margin:7px 0 10px}#game #welcome h1 br{display:none}#game #welcome .welcome-kiri{width:62px;height:62px;top:0;right:2px}.menu-route{padding:5px 10px;margin:2px 0 8px}.menu-route>span{display:none}#game #welcome .menu-route p{display:none}#mission-picker{margin-bottom:8px}#mission-picker>summary{min-height:34px}#game #welcome #start{min-height:44px;font-size:16px}#game #welcome .menu-links{margin:6px 0 0}.menu-signature{padding-top:2px;margin:0}.menu-signature>div img:first-child{width:22px;height:24px}.menu-signature>div img:last-child{width:105px}.menu-links button,#game #welcome #demo-toggle{min-height:36px!important}#mission-picker #campaign-map{max-height:100px}}
@media(prefers-reduced-motion:reduce){.intro-brand,.intro-mark,.intro-orbit{animation:none}#brand-intro{transition:none}#game #screen-wipe span{translate:0 0;rotate:0deg}}
#game[data-phase="ready"] #pause{display:none}#game #welcome .menu-links button{flex:1;border:1px solid #7b789e66;border-radius:9px;background:#b59aef09;text-decoration:none}#game #welcome .menu-links button:hover{border-color:#c4ef66;background:#c4ef6612;color:#f0ffda}#game #welcome #demo-toggle{text-decoration:none}
@media(max-height:540px) and (min-width:600px){#game #welcome h1 em{display:inline-block;margin-left:.14em}}
/* Outlined lettering is stored as real SVG images, with accessible button names. */
.lettering-image{display:block;max-width:100%;width:auto;height:23px;object-fit:contain;pointer-events:none}.illustrated-button{gap:7px}.illustrated-button>.lettering-image{margin:auto;max-width:100%}.primary.illustrated-button>.lettering-image{height:31px}.secondary.illustrated-button>.lettering-image{height:23px}
#game #welcome #start .lettering-image{height:37px}#game #welcome .menu-links .lettering-image{height:19px}#game #welcome #demo-toggle .lettering-image{height:15px;max-width:95px}.menu-signature{gap:7px}#skip-intro .lettering-image{height:18px}#skip-intro{display:flex;align-items:center;justify-content:center}
#mission-picker>summary .lettering-image{height:23px}.district-chapter>summary .lettering-image{height:22px}#campaign-map .illustrated-button{position:relative;display:flex;align-items:center;padding-right:6px!important}#campaign-map .illustrated-button>.lettering-image{height:24px;margin:0;max-width:100%}#campaign-map button[data-completed="true"]{border-color:#b7e784}#campaign-map button:disabled{opacity:.4;filter:saturate(.4)}
.guide-tile-button b .lettering-image{height:auto;max-height:32px;width:100%;margin-top:4px}.guide-tile-button{min-height:100px!important}#mutation-options strong .lettering-image{height:auto;max-height:32px;width:100%}.lettering-copy{display:block;width:100%;height:auto;max-height:78px;object-fit:contain;pointer-events:none}#mutation-options button{min-height:165px}#mutation-options small{color:#e4ecc9}
#exit-hint.illustrated-button{display:flex;align-items:center}#exit-hint .lettering-image{height:22px}#exit-hint::before{display:none}#exit-hint .art-value{font-weight:900;color:#243b49;font-size:13px}.goal-chip .lettering-image{height:14px;width:100%;margin:0}.credits-link.illustrated-button{display:inline-flex;justify-content:center;align-items:center;text-decoration:none;min-height:44px}.credits-link .lettering-image{height:21px}#pause-panel .credits-link{width:32%;padding:3px 2px}#pause-panel .credits-link .lettering-image{height:17px}
@media(max-width:700px){#game #welcome .menu-links .lettering-image{height:17px}#game #welcome #demo-toggle .lettering-image{height:13px;max-width:78px}#game #welcome #start .lettering-image{height:33px}#campaign-map .illustrated-button>.lettering-image{height:21px}.primary.illustrated-button>.lettering-image{height:28px}#pause-panel .credits-link .lettering-image{height:15px}.goal-chip .lettering-image{height:12px}}
@media(max-height:540px) and (min-width:600px){#game #welcome #start .lettering-image{height:28px}#game #welcome .menu-links .lettering-image{height:17px}#game #welcome #demo-toggle .lettering-image{height:13px}}
button kbd .lettering-image{height:11px;max-width:38px}#mission-picker>summary::after{content:'';width:8px;height:8px;border-right:2px solid #d2c2ec;border-bottom:2px solid #d2c2ec;rotate:45deg;translate:0 -3px;margin-right:3px}#mission-picker[open]>summary::after{rotate:225deg;translate:0 2px}
.lettering-stat{display:block;width:100%;height:auto;max-height:26px;object-fit:contain;pointer-events:none}#game #welcome #start .lettering-image{height:42px}#game #welcome #start{padding-top:8px;padding-bottom:8px}.primary:hover .lettering-image{filter:drop-shadow(0 1px 3px #fff9dc55)}
#campaign-map button:disabled::after{content:'';display:block;flex:0 0 13px;width:13px;height:15px;margin-left:auto;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Crect x='2' y='8' width='12' height='9' rx='2' fill='%23d5c4ec'/%3E%3Cpath d='M5 8V5a3 3 0 016 0v3' fill='none' stroke='%23d5c4ec' stroke-width='2'/%3E%3C/svg%3E")}
#mutation-options button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;padding:77px 10px 12px;min-height:238px}#mutation-options .mutation-sprite{left:50%;translate:-50% 0;width:60px;height:60px}#mutation-options button>strong,#mutation-options button>span,#mutation-options button>small{display:block;width:100%;margin:0}#mutation-options button>strong .lettering-image{height:31px;max-height:none}#mutation-options .lettering-copy{max-height:82px}#mutation-options button>small{margin-top:auto}
