:root{color-scheme:dark;--navy:#101527;--panel:#1b2236;--line:#31384c;--white:#f4f4db;--yellow:#ffe34d;--muted:#999fb6;--pink:#fb7296}*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 50% 0,#262b46 0,#151a2d 50%,#101524 100%);color:var(--white);font-family:'Courier New',monospace}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #fff;outline-offset:5px}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}.arcade{max-width:1312px;margin:0 auto;padding:27px 40px 20px}.topbar{display:flex;justify-content:space-between;align-items:center;margin:0 2px 25px}.brand{color:var(--white);text-decoration:none;display:flex;gap:13px;align-items:center;font-size:14px;font-weight:900;letter-spacing:1px}.brand-mark{color:var(--navy);background:var(--yellow);padding:7px 5px;font-size:20px;font-weight:900;box-shadow:3px 3px 0 #ad7e24;transform:rotate(-5deg)}.brand-sub{display:block;color:#939ab1;font-size:10px;letter-spacing:1.9px;margin-top:5px}.top-right{display:flex;gap:25px;align-items:center}.edition{font-size:12px;letter-spacing:1px;color:var(--muted)}.icon-button{border:1px solid var(--line);background:#1c2235;color:var(--white);display:flex;align-items:center;gap:9px;padding:10px 12px;font-size:11px;font-weight:bold;letter-spacing:1px;box-shadow:0 2px 0 #080d19}.icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}.cabinet{padding:9px;background:#242b40;border:1px solid #45495f;border-bottom:5px solid #090e1c;box-shadow:0 18px 65px #0005,0 0 0 5px #12172a;border-radius:9px}.marquee{height:37px;display:flex;justify-content:space-between;align-items:center;padding:0 10px 7px;font-weight:bold;font-size:12px;letter-spacing:1.3px}.marquee>div{display:flex;align-items:center;gap:12px}.tiny-egg{color:var(--yellow);font-size:18px}.act{background:#343b51;color:#a9b2ce;padding:4px 7px;font-size:10px;letter-spacing:1px}.cabinet-actions button{background:none;border:0;color:#c8cddc;padding:5px;font-size:12px}.cabinet-actions #fullscreen{font-size:24px;line-height:20px}.screen{position:relative;aspect-ratio:16/9;overflow:hidden;background:#59b9cf;border:3px solid #0c1322;isolation:isolate}canvas{display:block;width:100%;height:100%;image-rendering:pixelated;outline:none;touch-action:none}.scanlines{z-index:4;pointer-events:none;position:absolute;inset:0;background:repeating-linear-gradient(0deg,#0000 0px,#0000 3px,#091e3420 4px);opacity:.38}.start-screen{position:absolute;inset:0;display:flex;align-items:center;padding:0 7%;background:linear-gradient(90deg,#4aaab644,#5dc7d800 70%)}.title-content{z-index:2;text-align:center;width:60%;margin-top:-25px}.eyebrow{font-size:clamp(8px,1vw,12px);letter-spacing:1.6px;font-weight:bold;color:#163954;margin-bottom:16px}.eyebrow span{color:#fff4bd}.title-content h1{margin:0;font-family:Impact,'Arial Black',sans-serif;font-style:italic;line-height:.92;letter-spacing:-3px;font-size:clamp(40px,6.8vw,87px);transform:rotate(-5deg);filter:drop-shadow(0 6px 0 #172947)}.title-content h1>span{display:block;color:#fff2a5;-webkit-text-stroke:2px #24324a;text-shadow:3px 0 #24324a,-3px 0 #24324a,0 -3px #24324a,0 3px #24324a}.title-content h1>span+span{font-size:1.02em;color:#ffe34d;text-shadow:3px 0 #24324a,-3px 0 #24324a,0 -3px #24324a,0 5px #fa6b64,0 9px #24324a}.bang{color:#ff8171}.tagline{font-weight:900;letter-spacing:3px;color:#18354c;font-size:clamp(10px,1.3vw,16px);margin:28px 0 25px}.start-button{background:var(--yellow);color:#242837;border:3px solid #293249;border-radius:2px;box-shadow:4px 4px 0 #1e3047;padding:16px 20px;font-size:clamp(11px,1.15vw,15px);font-weight:900;letter-spacing:1px;transition:transform .1s,box-shadow .1s}.start-button:hover{background:#fff290;transform:translateY(-2px);box-shadow:5px 6px 0 #1e3047}.start-button:active{transform:translate(3px,3px);box-shadow:1px 1px 0 #1e3047}.start-button span{padding-left:12px}.start-hint{font-size:10px;font-weight:900;letter-spacing:1.8px;color:#1f465b;margin-top:14px}.hero-wrap{position:absolute;width:28%;height:64%;right:8%;bottom:11%;display:flex;align-items:center;justify-content:center;flex-direction:column}.hero{width:100%;height:85%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(8px 9px 0 #14294430);animation:hero-bob 2.8s ease-in-out infinite}.hero-caption{font-weight:900;color:#18344e;text-align:center;font-size:clamp(8px,.9vw,11px);letter-spacing:1px;line-height:1.5;transform:rotate(-5deg);margin-top:-5px}.level-teaser{position:absolute;bottom:15px;left:20px;right:20px;display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px;font-weight:bold;color:#fff4c5;text-shadow:2px 2px #244239}.hud{position:absolute;left:25px;right:25px;top:20px;display:flex;justify-content:space-between;color:#fffbd9;pointer-events:none;text-shadow:2px 2px 0 #172943;z-index:2}.hud-stats{display:flex;gap:30px}.hud-label{display:block;font-size:12px;font-weight:bold;letter-spacing:1px;color:#ffeb77;margin-bottom:4px}.hud strong{font-size:25px;letter-spacing:1px}.egg-score{display:flex;align-items:center;gap:7px}.egg-score i{display:inline-block;width:13px;height:17px;background:#ffe76a;border:2px solid #bd791e;border-radius:55% 55% 45% 45%;box-shadow:inset 3px 0 #fff4b3}.hud-power{width:190px;font-size:10px;font-weight:bold;letter-spacing:.5px}.hud-power>div:first-child{display:flex;justify-content:space-between;margin-bottom:8px}.power-track{height:12px;padding:2px;background:#18334e;border:2px solid #fff0b1;box-shadow:2px 2px #172943;margin-bottom:6px}.power-track>div{height:100%;background:var(--yellow);width:0;transition:width .1s}.hud-power #power-hint{font-size:9px}.hud-power.ready .power-track>div{animation:power-pulse .6s steps(2) infinite}.cabinet-footer{display:flex;justify-content:space-between;align-items:center;padding:13px 12px 4px;letter-spacing:1px;color:#a2abc0;font-size:10px}.cabinet-footer>span:first-child{display:flex;gap:8px;align-items:center}.cabinet-footer i{width:5px;height:5px;background:#91cdae;display:inline-block}.cabinet-footer b{color:#ffdf66;margin-left:8px;font-size:12px}.controls{display:grid;grid-template-columns:1.3fr 1.25fr 1.1fr 1.2fr;padding:25px 8px 21px;gap:20px}.control+.control{border-left:1px solid #35394c;padding-left:25px}.key-group{height:32px;display:flex;align-items:center;gap:5px;margin-bottom:12px}kbd{font-family:inherit;font-size:12px;min-width:25px;height:26px;display:inline-flex;align-items:center;justify-content:center;background:#272e43;color:#d9def0;border:1px solid #50566b;border-bottom:3px solid #454c64;border-radius:3px;padding:3px 6px}.wide{padding-inline:10px}.or{color:#596278;font-size:12px;margin:0 3px}.control strong{font-size:10px;letter-spacing:.7px;color:#d2d6e4}.control strong span{color:#929bb3}.super-control strong{color:var(--yellow)}.super-control kbd{border-color:#837234;background:#3a3729;color:#ffe86e}.power-caption{font-size:8px;line-height:1.4;color:#9f9874;margin-left:5px}.footer{display:flex;justify-content:space-between;gap:15px;padding:14px 8px 0;border-top:1px solid #2b3044;color:#707a91;font-size:9px;letter-spacing:1px}.speaker-note{color:#a3adc4;font-size:14px;margin-left:5px}.modal-overlay{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:#101a32bb;backdrop-filter:blur(3px)}.modal-card{text-align:center;padding:30px 40px;background:#1b2740;border:3px solid #5a6c8d;box-shadow:7px 7px 0 #0d1525;max-width:90%}.modal-kicker{color:#ffdd63;font-size:11px;letter-spacing:2px}.modal-card h2{font:italic 900 clamp(24px,4vw,44px)/1.1 Impact,'Arial Black',sans-serif;color:#fff4b9;letter-spacing:1px;margin:15px 0}.modal-card p{color:#c2cddd;font-size:13px;line-height:1.6;margin:0 0 24px}.modal-card .start-button{display:block;margin:0 auto}.secondary-button{display:block;background:none;border:0;color:#a9b8d0;font-size:10px;letter-spacing:1px;margin:20px auto 0;text-decoration:underline;text-underline-offset:5px}.toast{position:absolute;z-index:3;left:50%;bottom:22%;transform:translate(-50%,12px);background:#15263dec;border:2px solid #fff29b;box-shadow:4px 4px 0 #172338;color:#ffef8d;padding:10px 15px;font-size:13px;font-weight:bold;text-align:center;white-space:nowrap;opacity:0;transition:opacity .15s,transform .15s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}.result-stats{display:flex;justify-content:center;gap:25px;font-size:13px;line-height:1.8;margin:0 0 20px;color:#fee586}.touch-controls{display:none;justify-content:space-between;gap:10px;padding:18px 2px 0;touch-action:none;user-select:none}.touch-controls>div{display:flex;gap:9px;align-items:center}.touch-controls button{height:52px;min-width:52px;background:#2b354f;border:2px solid #4d5a77;border-bottom:5px solid #0d1426;color:#d5e2f0;font-size:13px;font-weight:bold;border-radius:6px;touch-action:none}.touch-controls button.pressed{transform:translateY(3px);border-bottom-width:2px;background:#465574}.touch-controls .touch-jump{background:#ddbd47;color:#253043;border-color:#f3d664;min-width:65px}.touch-controls .touch-super{color:#ffdf64}.touch-controls small{font-size:8px}.screen:fullscreen{border:0;aspect-ratio:auto;display:flex;justify-content:center;align-items:center;background:#121728}.screen:fullscreen canvas{object-fit:contain}.screen:fullscreen .start-screen{padding:0 12%}.screen:fullscreen .touch-controls{position:absolute;bottom:20px;left:20px;right:20px}@keyframes hero-bob{50%{transform:translateY(-9px) rotate(2deg)}}@keyframes power-pulse{50%{background:#fff8c3}}@media(min-width:1500px){.arcade{padding-top:36px;max-width:1400px}}@media(max-width:850px){.arcade{padding:20px 20px}.edition{display:none}.topbar{margin-bottom:20px}.controls{gap:12px}.control+.control{padding-left:14px}.hud{left:15px;right:15px;top:12px}.hud-stats{gap:18px}.hud-label{font-size:10px}.hud strong{font-size:20px}.hud-power{width:150px}.control strong{font-size:9px}.power-caption{font-size:7px}.title-content h1{font-size:8vw}.tagline{margin:22px 0 18px}.start-button{padding:12px 15px}.eyebrow{letter-spacing:.8px}.footer{font-size:8px}}@media(pointer:coarse){.touch-controls{display:flex}.controls{padding-top:21px}}@media(max-width:600px){.arcade{padding:16px 10px}.brand{font-size:10px;gap:9px;letter-spacing:.5px}.brand-sub{font-size:7px;letter-spacing:1px}.brand-mark{font-size:16px}.top-right{gap:10px}.icon-button{padding:8px}.icon-button span{display:none}.cabinet{padding:5px;border-radius:5px}.marquee{height:29px;padding:0 5px 4px;font-size:9px;letter-spacing:.4px}.marquee>div{gap:6px}.act{font-size:8px}.cabinet-actions button span{display:none}.screen{border-width:2px}.title-content{margin-top:-5px;width:64%}.title-content h1{font-size:9vw;letter-spacing:-1px;-webkit-text-stroke:0}.title-content h1>span{-webkit-text-stroke:1px #24324a;text-shadow:1px 0 #24324a,-1px 0 #24324a,0 -1px #24324a,0 2px #24324a}.eyebrow{font-size:5.5px;letter-spacing:.25px;margin-bottom:8px}.tagline{font-size:7px;letter-spacing:1px;margin:15px 0 11px}.start-button{padding:9px 9px;font-size:8px;letter-spacing:.5px;border-width:2px}.start-hint{font-size:6px;letter-spacing:.6px;margin-top:9px}.hero-wrap{right:5%;width:29%;bottom:12%}.hero-caption{font-size:5.5px;letter-spacing:.1px;margin-top:0}.level-teaser{bottom:7px;left:8px;right:8px;font-size:5px;letter-spacing:.3px}.cabinet-footer{font-size:6px;letter-spacing:.3px;padding:10px 4px 3px}.cabinet-footer b{font-size:8px}.cabinet-footer i{width:4px;height:4px}.controls{grid-template-columns:1fr 1fr;gap:17px 5px;padding:20px 8px}.control+.control{padding-left:14px}.control:nth-child(3){padding-left:0;border:0}.key-group{margin-bottom:3px}.control strong{font-size:8px}.power-caption{font-size:7px}.footer{font-size:6px;padding-top:12px}.hud{left:9px;right:9px;top:9px}.hud-stats{gap:12px}.hud-label{font-size:6px;margin-bottom:1px}.hud strong{font-size:13px}.egg-score{gap:3px}.egg-score i{width:8px;height:11px;border-width:1px}.hud-power{width:95px;font-size:5.5px;letter-spacing:0}.hud-power>div:first-child{margin-bottom:3px}.power-track{height:8px;border-width:1px;padding:1px;margin-bottom:3px}.hud-power #power-hint{font-size:5px}.modal-card{padding:17px 20px}.modal-kicker{font-size:7px}.modal-card h2{font-size:23px;margin:8px 0}.modal-card p{font-size:8px;margin-bottom:13px}.secondary-button{font-size:7px;margin-top:12px}.toast{font-size:8px;padding:6px 9px;border-width:1px}.result-stats{font-size:8px;gap:15px;margin-bottom:12px}}@media(prefers-reduced-motion:reduce){.hero,.hud-power.ready .power-track>div{animation:none}.start-button,.toast{transition:none}}

.arcade:fullscreen{max-width:none;width:100vw;height:100dvh;padding:10px;display:flex;flex-direction:column;justify-content:center;background:#101527}.arcade:fullscreen .topbar,.arcade:fullscreen .controls,.arcade:fullscreen .footer,.arcade:fullscreen .marquee,.arcade:fullscreen .cabinet-footer{display:none}.arcade:fullscreen .cabinet{width:min(100%,calc((100dvh - 20px)*16/9));margin:auto;padding:0;border:0;box-shadow:none}.arcade:fullscreen .touch-controls{width:100%;max-width:1000px;margin:0 auto;padding-top:10px}@media(pointer:coarse){.arcade:fullscreen .cabinet{width:min(100%,calc((100dvh - 95px)*16/9))}}
/* Two-zone campaign and the entirely unnecessary victory close-up. */
.difficulty-pick{display:flex;justify-content:center;gap:7px;margin-top:12px}.difficulty-pick button{border:1px solid #31566a;background:#e4ebc3;color:#244158;font-size:10px;font-weight:bold;padding:6px 9px;box-shadow:2px 2px #294b61}.difficulty-pick button[aria-pressed=true]{background:#283c56;color:#fff0a3;border-color:#233447}.difficulty-description{font-size:9px;font-weight:bold;color:#24485b;margin:8px 0 0;line-height:1.5}.continue-button{display:block;margin:9px auto 0;border:0;background:#e7edccdc;color:#264056;padding:6px 9px;font-size:10px;font-weight:bold;text-decoration:underline;text-underline-offset:3px}.victory-overlay{position:absolute;inset:0;z-index:6;background:#15182d}.victory-overlay canvas{position:absolute;inset:0;width:100%;height:100%}.victory-content{position:absolute;left:55%;top:12%;right:5%;text-align:left}.victory-content h2{font:italic 900 clamp(30px,5.5vw,72px)/.9 Impact,'Arial Black',sans-serif;margin:15px 0 20px;color:#fff0a6;letter-spacing:1px;text-shadow:4px 5px #ae596f}.victory-content h2 span{color:#ff8f9f}.victory-rank{display:flex;align-items:center;gap:14px;margin-bottom:18px}.victory-rank>span{font:bold 44px/1 Impact,sans-serif;color:#ffde69;min-width:45px}.victory-rank>div{color:#ffdf69;font-size:12px;letter-spacing:1px}.victory-rank small{display:block;font-size:9px;color:#b4c8d4;line-height:1.5;margin-top:5px;letter-spacing:.5px}.victory-stats{display:flex;gap:22px;margin-bottom:24px;color:#9eb6c7;font-size:10px;letter-spacing:1px}.victory-stats b{display:block;color:#f4edc0;margin-top:6px;font-size:17px;letter-spacing:0}.victory-content .start-button{padding:13px 12px;font-size:12px;letter-spacing:0}.victory-content .secondary-button{margin:18px 0 0}.dance-caption{position:absolute;bottom:28px;left:3%;width:46%;text-align:center;font-size:12px;font-weight:bold;letter-spacing:1px;color:#fff0b4;text-shadow:2px 2px #19213d}.victory-content .modal-kicker{font-size:11px;line-height:1.5;display:block}.title-content{margin-top:-12px}.title-content h1{font-size:clamp(40px,6.1vw,80px)}.tagline{margin:25px 0 18px}.start-hint{margin-top:12px}
@media(max-width:850px){.victory-content{top:9%}.victory-content h2{margin:10px 0 14px}.victory-rank{margin-bottom:12px;gap:10px}.victory-rank>span{font-size:32px;min-width:32px}.victory-rank>div{font-size:10px}.victory-rank small{font-size:7px}.victory-stats{margin-bottom:15px;gap:15px;font-size:8px}.victory-stats b{font-size:13px}.victory-content .start-button{font-size:9px;padding:10px 9px}.dance-caption{font-size:9px;bottom:18px}.victory-content .modal-kicker{font-size:9px}.title-content h1{font-size:7vw}.difficulty-pick{margin-top:6px}.difficulty-pick button{font-size:8px;padding:4px 7px}.difficulty-description{font-size:7px;margin-top:5px}.continue-button{font-size:8px;margin-top:5px}.start-hint{margin:8px 0 0}}
@media(max-width:600px){.start-screen{padding:0 5%}.title-content{margin-top:-3px}.title-content h1{font-size:7.7vw}.eyebrow{margin-bottom:5px}.tagline{margin:12px 0 8px}.difficulty-pick{gap:5px;margin-top:6px}.difficulty-pick button{font-size:6px;padding:3px 5px}.difficulty-description{font-size:5px;letter-spacing:0;margin-top:4px}.continue-button{font-size:6px;padding:3px 6px;margin-top:4px}.start-hint{margin-top:6px;font-size:5px}.victory-content{top:7%;left:55%;right:3%}.victory-content .modal-kicker{font-size:5px;letter-spacing:.5px}.victory-content h2{font-size:30px;margin:7px 0 9px;text-shadow:2px 3px #ae596f}.victory-rank{gap:6px;margin-bottom:8px}.victory-rank>span{font-size:23px;min-width:22px}.victory-rank>div{font-size:6px;letter-spacing:.5px}.victory-rank small{font-size:4.5px;margin-top:2px;letter-spacing:0}.victory-stats{font-size:5px;gap:10px;margin-bottom:10px;letter-spacing:.5px}.victory-stats b{font-size:9px;margin-top:3px}.victory-content .start-button{font-size:6px;padding:6px 5px;border-width:1px;box-shadow:2px 2px #1e3047}.victory-content .secondary-button{font-size:5px;margin-top:10px}.dance-caption{font-size:6px;letter-spacing:.3px;bottom:11px}}
.new-level-button{font:inherit;font-size:11px;letter-spacing:.5px;font-weight:bold;padding:6px 9px;margin-top:-6px;color:#263c50;background:#ffe382;border:2px solid #30495b;box-shadow:2px 2px #263d4b}.new-level-button:hover{background:#fff0bd}.boss-hud{position:absolute;z-index:3;bottom:15px;left:20%;width:60%;background:#233246ee;padding:9px 12px;color:#fff0c0;border:2px solid #f2c183;box-shadow:3px 3px #203146}.boss-hud>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:12px;letter-spacing:1px}.boss-health-track{height:13px;background:#563d4f;margin:6px 0;border:1px solid #b7807b}.boss-health-track>div{height:100%;width:100%;background:repeating-linear-gradient(90deg,#f07d77 0,#f07d77 calc(12.5% - 3px),#874854 calc(12.5% - 3px),#874854 12.5%);transition:width .15s}.boss-hud>span{font-size:10px;font-weight:bold;letter-spacing:.4px;display:block;text-align:center}@media(max-width:850px){.boss-hud{padding:7px 9px;bottom:10px}.boss-hud>div:first-child{font-size:10px}.boss-hud>span{font-size:8px}.boss-health-track{height:10px;margin:4px 0}.new-level-button{font-size:9px;padding:5px 7px}}@media(max-width:600px){.new-level-button{font-size:6px;padding:3px 4px;border-width:1px;margin-top:-4px}.boss-hud{left:15%;width:70%;padding:4px 6px;bottom:6px;border-width:1px}.boss-hud>div:first-child{font-size:6px;letter-spacing:.5px}.boss-hud>span{font-size:5px;letter-spacing:0}.boss-health-track{height:7px;margin:3px 0}}
.toast{max-width:90%;white-space:normal;line-height:1.35}
.duel-hud{position:absolute;z-index:3;left:3%;right:3%;bottom:2.5%;padding:8px 12px;background:#1c203bef;border:2px solid #df8eae;color:#fff0c7;pointer-events:none}.duel-hud>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:12px;letter-spacing:.5px}.duel-hud b{color:#ffc3b6;white-space:nowrap}.duel-track{height:9px;background:#51334f;margin:6px 0}.duel-track>div{height:100%;background:#f195b1;transition:width .1s}.duel-hud>span{font-size:11px;font-weight:bold;display:block}.level-teaser{flex-wrap:wrap;justify-content:center}@media(max-width:600px){.duel-hud{padding:5px 7px;border-width:1px}.duel-hud>div:first-child{font-size:7px;letter-spacing:0}.duel-hud>span{font-size:6px}.duel-track{height:5px;margin:4px 0}}
.fryer-hud{position:absolute;z-index:3;left:3%;right:3%;bottom:3%;background:#20263eef;border:2px solid #f8c189;padding:9px 12px;pointer-events:none;color:#fff0c8}.fryer-hud>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;letter-spacing:.5px}.fryer-hud b{color:#a9e8d5;white-space:nowrap}.fryer-hud>span{display:block;font-size:10px;margin-top:6px;font-weight:bold}.touch-controls .touch-shoot{color:#acfff0;background:#295763;border-color:#7dd5c5}@media(max-width:600px){.fryer-hud{padding:5px 7px;border-width:1px}.fryer-hud>div{font-size:7px;letter-spacing:0}.fryer-hud>span{font-size:6px;margin-top:4px}.touch-controls{flex-wrap:wrap}.touch-controls>div:last-child{margin-left:auto}}
.mission-hud{position:absolute;z-index:3;bottom:2.5%;left:3%;right:3%;padding:8px 12px;border:2px solid #88e2d0;background:#161e39f2;color:#fff0c8;pointer-events:none}.mission-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;letter-spacing:.5px}.mission-heading b{color:#a5f9e2;white-space:nowrap}.mission-route{height:4px;background:#37405d;margin:6px 0}.mission-route>div{height:100%;background:#88e7d6}.mission-hud>span{font-size:10px;font-weight:bold;display:block}.mission-boss{height:10px;background:#4d354e;margin:6px 0}.mission-boss>div{height:100%;background:#f391b3;transition:width .1s}.level-teaser .new-level-button:last-child{color:#142440;background:#ffdf71;border-color:#273e57}.touch-controls>div{flex-wrap:wrap}@media(max-width:600px){.mission-hud{padding:5px 7px;border-width:1px}.mission-heading{font-size:7px;letter-spacing:0}.mission-hud>span{font-size:6px}.mission-route{margin:4px 0;height:3px}.mission-boss{height:6px;margin:4px 0}.touch-controls button{min-width:42px}.touch-controls>div{gap:4px}}

/* Cinematic captions stay in HTML for keyboard, touch and screen readers. */
.story-overlay{position:absolute;inset:0;z-index:4;pointer-events:none}.story-dialogue{position:absolute;bottom:7%;left:7%;right:7%;text-align:center;padding:10px 14px;background:#151b35ef;border:2px solid #adede3;box-shadow:4px 4px #251947}.story-dialogue span{font-size:clamp(8px,1vw,12px);font-weight:bold;letter-spacing:1.6px;color:#92fbe7}.story-dialogue p{font-size:clamp(12px,1.8vw,22px);line-height:1.25;color:#fff4c8;margin:8px 0 2px;font-weight:bold}.story-skip{position:absolute;right:2%;top:9%;pointer-events:auto;padding:8px 12px;color:#fff1c0;border:1px solid #93b8cf;background:#18243ce8;font-size:12px;font-weight:bold}.story-skip:hover{background:#493675}.level-teaser{align-items:center}.story-overlay~.modal-overlay{z-index:7}@media(max-width:600px){.story-dialogue{left:4%;right:4%;padding:5px 7px;border-width:1px}.story-dialogue span{font-size:6px;letter-spacing:.5px}.story-dialogue p{font-size:11px;margin:4px 0 1px}.story-skip{font-size:8px;padding:5px 7px}}

.chase-hud{position:absolute;left:2%;bottom:3%;z-index:3;background:#342737ef;border:2px solid #f4be89;padding:9px 12px;width:36%;color:#ffdfb0}.chase-hud strong{display:block;font-size:12px;letter-spacing:1px}.chase-hud span{font-size:9px;display:block}.chase-track{height:8px;background:#5f3748;margin:7px 0}.chase-track>div{height:100%;background:#ffdc81}.canyon-run .boss-hud{top:22%;bottom:auto;left:auto;right:2%;width:37%}.canyon-run .boss-hud>span{line-height:1.5}.canyon-run .boss-hud .boss-health-track>div{background:#f59a9f}@media(max-width:600px){.chase-hud{padding:4px 5px;border-width:1px;width:42%}.chase-hud strong{font-size:7px;letter-spacing:.3px}.chase-hud span{font-size:5px}.chase-track{height:5px;margin:3px 0}.canyon-run .boss-hud{width:40%}.level-teaser{gap:6px}}

.flight-hud{position:absolute;z-index:3;bottom:3%;left:3%;width:43%;padding:10px 12px;border:2px solid #d2f4de;background:#203151ed;color:#fff2c3}.flight-hud>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:11px;letter-spacing:.4px}.flight-hud b{color:#a5f1ef;white-space:nowrap}.altitude-track{height:8px;background:#3d4f74;margin:8px 0}.altitude-track>div{height:100%;background:#8be5d4}.flight-energy{display:flex;align-items:center;gap:8px;font-size:9px;white-space:nowrap}.flap-track{width:60px;height:5px;background:#485776}.flap-track>div{height:100%;background:#ffe29b}.level-teaser{gap:6px}.level-teaser .new-level-button{font-size:10px;padding:6px 7px}@media(max-width:850px){.level-teaser .new-level-button{font-size:8px;padding:5px}.flight-hud{width:48%;padding:7px 9px}.flight-hud>div:first-child{font-size:9px}.flight-energy{font-size:7px;gap:5px}}@media(max-width:600px){.level-teaser{gap:3px}.level-teaser .new-level-button{font-size:5px;padding:3px}.flight-hud{width:56%;padding:5px;border-width:1px}.flight-hud>div:first-child{font-size:6px;gap:5px}.flight-energy{font-size:5px;gap:4px}.flap-track{width:35px;height:4px}.altitude-track{height:5px;margin:5px 0}}

.chute-hud{position:absolute;z-index:3;left:3%;right:3%;bottom:2.5%;padding:8px 12px;border:2px solid #a7d9c6;background:#172a37f2;color:#ffe5b1;pointer-events:none}.chute-hud>div{display:flex;justify-content:space-between;gap:12px;font-size:12px;letter-spacing:.3px}.chute-hud .chute-track{height:5px;margin:6px 0;background:#405b69}.chute-track>div{height:100%;background:#a1e2c5}.chute-hud span{font-weight:bold}.chute-hud b{white-space:nowrap}@media(max-width:600px){.chute-hud{padding:5px 7px;border-width:1px}.chute-hud>div{font-size:7px;letter-spacing:0}.chute-hud .chute-track{height:3px;margin:4px 0}}

.city-hud{position:absolute;z-index:3;left:3%;right:3%;bottom:2.5%;padding:8px 11px;border:2px solid #accba2;background:#254b4bea;color:#fff0ba;pointer-events:none}.city-hud>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:11px;font-weight:bold}.city-track{height:4px;background:#537973;margin-top:6px}.city-track>div{height:100%;background:#f3cc7c}.city-hud span{color:#beddb6}@media(max-width:600px){.city-hud{padding:4px 6px;border-width:1px}.city-hud>div:first-child{font-size:6px;gap:5px}.city-track{height:3px;margin-top:4px}}
.board-hud{position:absolute;z-index:3;left:3%;right:3%;bottom:2.5%;padding:8px 11px;border:2px solid #8cf8e7;background:#2a2f55ed;color:#fff0ad;pointer-events:none}.board-hud>div{display:flex;justify-content:space-between;gap:12px;font-size:11px;font-weight:bold}.board-hud .board-track{height:4px;margin:6px 0;background:#675988;display:block}.board-track>div{height:100%;background:#fc89c2}.board-hud>div:last-child{font-size:9px;color:#b0ffe7}@media(max-width:600px){.board-hud{padding:4px 6px;border-width:1px}.board-hud>div{font-size:6px;gap:4px}.board-hud>div:last-child{font-size:5px}.board-hud .board-track{height:3px;margin:4px 0}}

.board-tricks{display:flex;justify-content:center;align-items:center;gap:22px;margin:18px 8px 0;padding:10px 12px;border:1px solid #61bfb6;background:#293652;color:#aaffde;font-size:12px;font-weight:bold}.board-tricks span{display:flex;align-items:center;gap:8px}.board-tricks strong{font-size:10px;color:#ffe6a1}.touch-controls>div{flex-wrap:wrap}@media(max-width:600px){.board-tricks{gap:8px;flex-wrap:wrap;margin-top:12px;font-size:10px}.board-tricks strong{font-size:9px;width:100%;text-align:center}.touch-controls button{min-width:43px;font-size:11px}.touch-controls>div{gap:5px}}

.stunt-replay .story-dialogue{width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;border:0;box-shadow:none}.stunt-replay .story-skip{top:13%;right:3%}

/* Keep the brawler’s lower street lane above its compact combat HUD. */
.screen.brawl-scene .board-hud{bottom:1%;padding:4px 10px}

/* Leave the bowed Shogun and manga arrow visible on the chapter end card. */
.palace-ending .victory-content{left:auto;right:2%;top:2%;width:28%;text-align:right}.palace-ending .victory-content h2,.palace-ending .victory-rank,.palace-ending .victory-stats,.palace-ending .modal-kicker{display:none}.palace-ending .victory-content .start-button{font-size:clamp(5px,.75vw,10px);padding:6px 8px}.palace-ending .victory-content .secondary-button{font-size:clamp(5px,.7vw,9px);margin:8px 0 0 auto;color:#fff0b4}.palace-ending .dance-caption{display:none}

/* A readable chapter drawer replaces the crowded title-screen shortcut strip. */
.cabinet-actions .menu-trigger{font-size:14px;font-weight:700;border:1px solid #586078;border-radius:4px;padding:6px 10px;background:#1b2236;color:#fff3b6;letter-spacing:0;white-space:nowrap}
.cabinet-actions .menu-trigger:hover{background:#38415b;border-color:#ffe34d}
.game-menu{width:min(820px,calc(100vw - 32px));max-height:90svh;margin:auto;padding:0;border:2px solid #777e99;border-radius:12px;background:#151d31;color:#f4f4db;box-shadow:0 25px 100px #000a;font-size:16px;overflow:auto;overscroll-behavior:contain}
.game-menu::backdrop{background:#070b19d9;backdrop-filter:blur(5px)}
.menu-top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 28px 16px;background:#202940}
.menu-eyebrow{font-size:13px;font-weight:bold;letter-spacing:2px;color:#ffe34d}.menu-top h2{font-size:clamp(18px,3vw,25px);line-height:1.3;margin:8px 0 0;letter-spacing:0}
#menu-close{width:44px;height:44px;flex-shrink:0;border:1px solid #7e86a0;border-radius:6px;background:#303b54;color:#fff;font-size:22px}
.menu-tabs{display:flex;gap:8px;padding:0 28px 16px;background:#202940}.menu-tabs button{padding:10px 20px;border:1px solid #64718b;border-radius:5px;color:#dce5f2;background:transparent;font-weight:bold;font-size:16px}.menu-tabs button[aria-pressed=true]{background:#ffe34d;color:#101527;border-color:#ffe34d}
#levels-panel,#controls-panel{padding:22px 28px 28px}.collection-summary{margin-bottom:20px;padding:15px 17px;border:1px solid #647589;border-left:4px solid #f88bc8;border-radius:4px;background:#263149}.collection-summary>div{display:flex;justify-content:space-between;gap:12px;font-size:14px}.collection-summary b{color:#ffe34d;white-space:nowrap}.collection-summary p{font:15px/1.5 Arial,sans-serif;color:#d0dbec;margin:8px 0 0}
.chapter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.chapter-button{display:flex;align-items:center;gap:14px;text-align:left;padding:15px 12px;border:1px solid #465773;border-radius:6px;color:#f8f6df;background:#222d44;min-height:104px}.chapter-button:hover{border-color:#ffe34d;background:#303d54}.chapter-number{font-size:25px;font-weight:bold;color:#9caec6}.chapter-info{flex:1;min-width:0}.chapter-info strong{display:block;font-size:14px;line-height:1.4}.chapter-info small{display:block;font-size:12px;color:#b4c6d8;line-height:1.4;margin-top:5px}.egg-state{display:block;color:#a9b4c9;font-size:12px;margin-top:9px;font-weight:bold}.egg-found{border-color:#ba77ad}.egg-found .egg-state{color:#ffa8da}.egg-found .chapter-number{color:#ffe34d}
.epilogue-note{font-size:14px;line-height:1.65;color:#ffe38f;border-top:1px solid #49546e;margin:22px 0 0;padding-top:18px}.epilogue-note span{font:15px/1.5 Arial,sans-serif;color:#b8c6da}
.controls-intro{font:16px/1.6 Arial,sans-serif;color:#d0dbec;margin:0 0 20px}.binding-list{border:1px solid #465773;border-radius:6px;overflow:hidden}.binding-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 14px;min-height:58px;border-bottom:1px solid #39465e;font-size:14px;line-height:1.4}.binding-row:last-child{border:0}.binding-row>div{display:flex;gap:7px}.binding-key{min-width:48px;min-height:36px;background:#34425d;color:#fff2b7;border:1px solid #7d8ba4;border-bottom-width:3px;border-radius:5px;padding:7px 10px;font-size:14px;font-weight:bold}.binding-key.listening{background:#ffe34d;color:#101527;border-color:#fff;outline:2px solid #f58fbf;outline-offset:2px}.binding-message{min-height:3em;font:15px/1.5 Arial,sans-serif;color:#ffdba7;margin:16px 0 6px}.game-menu .secondary-button{font-size:14px;padding:12px;margin:5px 0 0}.current-moves{margin-top:22px;border-top:1px solid #465773;padding-top:16px}.current-moves summary{cursor:pointer;font-size:15px;font-weight:bold}.current-moves #menu-moves{display:flex;gap:12px 18px;flex-wrap:wrap;padding-top:15px;font-size:14px}
.quick-controls{display:flex;justify-content:center;gap:10px 20px;flex-wrap:wrap;margin:22px 0 12px;font-size:14px;line-height:1.5}.quick-controls span,#menu-moves span{display:flex;align-items:center;gap:7px}.quick-controls kbd,#menu-moves kbd{min-width:30px;font-size:13px;padding:4px 7px;height:auto}.controls,.board-tricks{display:none!important}
@media(max-width:700px){.marquee{height:auto;min-height:40px;gap:8px;flex-wrap:wrap}.marquee>div{gap:6px}.cabinet-actions .menu-trigger{font-size:13px}.menu-top{padding:20px 18px 14px}.menu-tabs{padding:0 18px 14px}#levels-panel,#controls-panel{padding:18px}.chapter-grid{grid-template-columns:1fr}.chapter-button{min-height:94px}.binding-row{padding:10px;font-size:14px}.quick-controls{font-size:13px;gap:8px 12px}.edition{display:none}}
@media(prefers-reduced-motion:reduce){.game-menu::backdrop{backdrop-filter:none}}
.game-menu .menu-top{position:sticky;top:0;z-index:2}

/* Cluck Boy / Steam Peck: the same game screen, surrounded by real controls. */
.handheld{display:contents}.handheld-brand{display:none}.touch-controls{display:none}
.handheld-active{background:#162438;overscroll-behavior:none}
.handheld-active .arcade{max-width:1100px;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
.handheld-active .topbar,.handheld-active .footer,.handheld-active .quick-controls,.handheld-active .marquee,.handheld-active .cabinet-footer{display:none}
.handheld-active .handheld{--key:clamp(48px,12vw,72px);display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto 44px 1fr 44px;grid-template-areas:"brand brand" "screen screen" "shoulderL shoulderR" "pad faces" "utility utility";gap:14px 12px;min-height:calc(100svh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:16px 14px 18px;border:3px solid #9af4cf;border-bottom:8px solid #1b8e91;border-radius:24px 24px 48px 24px;background:linear-gradient(135deg,#64dfc7,#3dc1bd 52%,#279fae);box-shadow:inset 0 3px 0 #dcffe5,inset 0 -5px 0 #126880,0 12px 30px #08142088;color:#15364e;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.handheld-active .handheld-brand{grid-area:brand;display:flex;align-items:center;gap:10px;min-height:34px;padding:0 5px}
.handheld-brand strong{font:italic 900 clamp(20px,4.8vw,30px)/1 Impact,'Arial Black',sans-serif;letter-spacing:1.5px;text-shadow:1px 2px #bcffe0}
.handheld-brand small{display:block;font-size:8px;font-weight:900;letter-spacing:.6px;margin-top:5px}
.device-light{flex:0 0 7px;height:7px;border-radius:50%;background:#eeff76;box-shadow:0 0 0 3px #185b6c,0 0 9px #f5ff9e}
.device-edition{margin-left:auto;font-size:8px;font-weight:900;letter-spacing:.5px}
.handheld-active .cabinet{grid-area:screen;width:100%;padding:6px;margin:0 auto;align-self:center;background:#1c3451;border:2px solid #153149;border-bottom:4px solid #173949;border-radius:12px;box-shadow:0 3px 0 #b5ffe277;min-width:0}
.handheld-active .screen{container-type:inline-size;border:2px solid #0b1a2a;border-radius:5px;aspect-ratio:16/9}
.handheld-active .touch-controls{display:contents}
.handheld-active .touch-controls button{min-width:0;height:auto;padding:0;border:2px solid #20384c;border-bottom:5px solid #122637;box-shadow:0 2px 0 #dbfff14d;color:#fff8d7;background:#2b425c;touch-action:none;font-weight:900;user-select:none;-webkit-user-select:none}
.handheld-active .touch-controls button.pressed{transform:translateY(2px);border-bottom-width:3px;filter:brightness(1.15)}
.handheld-active .touch-controls button:disabled{opacity:.38;filter:saturate(.2)}
.handheld-active .touch-controls b{font-size:19px;line-height:1}
.handheld-active .touch-controls small{font-size:8px;line-height:1.1;display:block;margin-top:4px;letter-spacing:.2px}
.handheld-active .touch-controls .device-shoulder{display:flex;align-items:center;justify-content:center;gap:10px;height:44px;border-radius:18px 18px 8px 8px;padding:0 12px}
.handheld-active .touch-controls .device-shoulder b{font-size:12px}.handheld-active .touch-controls .device-shoulder small{font-size:10px;margin:0;letter-spacing:1px}
.handheld-active .shoulder-left{grid-area:shoulderL}.handheld-active .touch-controls .shoulder-right{grid-area:shoulderR;background:#ffe069;color:#423345;border-color:#8a633c;border-bottom-color:#644233}
.handheld-active .device-pad{grid-area:pad;align-self:center;justify-self:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.handheld-active .dpad{display:grid;grid-template-columns:repeat(3,var(--key));grid-template-rows:repeat(3,var(--key));touch-action:none;border-radius:50%;background:#19697f33;box-shadow:0 0 0 7px #227d8b33}
.handheld-active .dpad button{width:var(--key);height:var(--key);font-size:18px;border-radius:6px}
#touch-up{grid-area:1/2}#touch-left{grid-area:2/1}#touch-right{grid-area:2/3}#touch-down{grid-area:3/2}
.dpad-center{grid-area:2/2;display:grid;place-items:center;background:#2b425c;color:#57728c;font-size:28px;border:2px solid #20384c;border-radius:4px;pointer-events:none}
.device-caption{font-size:9px;font-weight:900;letter-spacing:2px;color:#155167}
.handheld-active .device-faces{grid-area:faces;align-self:center;justify-self:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.handheld-active .face-grid{display:grid;grid-template-columns:repeat(3,var(--key));grid-template-rows:repeat(3,var(--key));transform:rotate(-5deg)}
.handheld-active .face-grid button{width:var(--key);height:var(--key);border-radius:50%;transform:rotate(5deg);color:#18354c;box-shadow:0 3px 0 #154c6680}
.handheld-active .face-grid button.pressed{transform:rotate(5deg) translateY(2px)}
.handheld-active .face-a{grid-area:3/2;background:#ffe370!important}.handheld-active .face-b{grid-area:2/3;background:#ff827c!important}.handheld-active .face-x{grid-area:2/1;background:#96d9fb!important}.handheld-active .face-y{grid-area:1/2;background:#d9b1ff!important}
.handheld-active .touch-controls .device-trick{min-width:104px;min-height:44px;border-radius:20px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 10px;background:#23455c}.handheld-active .device-trick b{font-size:12px}.handheld-active .device-trick small{margin:0}
.handheld-active .device-utility{grid-area:utility;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:nowrap}
.handheld-active .device-utility button{flex:1;max-width:140px;min-height:44px;padding:6px 2px;border-radius:12px;font-size:9px;letter-spacing:.4px}
.handheld-active .start-screen .eyebrow,.handheld-active .tagline,.handheld-active .hero-caption,.handheld-active .start-hint,.handheld-active .difficulty-description{display:none}
.handheld-active .title-content{width:65%;margin:0}.handheld-active .title-content h1{font-size:10cqw;letter-spacing:-1px;line-height:.94;margin:0 0 12px}
.handheld-active .start-button{min-height:44px;padding:6px 8px;font-size:clamp(8px,2.1cqw,14px);border-width:2px}
.handheld-active .difficulty-pick{margin-top:7px;gap:6px}.handheld-active .difficulty-pick button{padding:5px 8px;min-height:30px;font-size:clamp(7px,1.6cqw,11px)}
.handheld-active .continue-button{font-size:clamp(7px,1.6cqw,11px);margin-top:5px;padding:5px;min-height:30px}
.handheld-active .hero-wrap{right:3%;bottom:9%;width:29%;height:78%}
.handheld-active .modal-card{max-height:95%;overflow-y:auto;touch-action:pan-y;padding:12px 18px}
.handheld-active .modal-card h2{font-size:clamp(20px,5cqw,42px);margin:6px 0}.handheld-active .modal-card p{font-size:clamp(8px,1.7cqw,13px);margin-bottom:8px;line-height:1.35}
.handheld-active .modal-card .secondary-button{min-height:32px;margin-top:4px}
.handheld-active .story-panel{padding:8px 12px}.handheld-active #story-skip{min-height:36px}
.handheld-active .game-menu{touch-action:pan-y;user-select:text;-webkit-user-select:text}
.handheld-active .menu-trigger,.handheld-active .chapter-button,.handheld-active .binding-key,.handheld-active .menu-close{min-height:44px}
.handheld-active .arcade:fullscreen{height:100dvh;display:block;padding:0;background:#162438}.handheld-active .arcade:fullscreen .cabinet{padding:6px;border:2px solid #153149}
@media(orientation:landscape){
 .handheld-active .arcade{max-width:none}
 .handheld-active .handheld{--key:clamp(44px,9dvh,62px);height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:290px;padding:10px 12px;gap:8px 12px;grid-template-columns:calc(var(--key)*3) minmax(0,1fr) calc(var(--key)*3);grid-template-rows:36px minmax(0,1fr) 44px;grid-template-areas:"shoulderL brand shoulderR" "pad screen faces" "utility utility utility";border-radius:46px;background:linear-gradient(140deg,#47567e,#283e61 55%,#183348);border-color:#8bc6cd;border-bottom-color:#112737;color:#cefff1}
 .handheld-active .handheld-brand{justify-content:center;padding:0;min-width:0;gap:9px}.handheld-active .handheld-brand strong{font-size:23px;text-shadow:1px 2px #10273f}.handheld-active .handheld-brand small{font-size:7px}.handheld-active .device-edition{display:none}
 .handheld-active .touch-controls .device-shoulder{height:36px;min-height:36px;border-radius:16px 16px 8px 8px}
 .handheld-active .cabinet,.handheld-active .arcade:fullscreen .cabinet{width:min(100%,calc((100dvh - 144px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))*16/9));padding:4px;max-height:100%;border-radius:9px}
 .handheld-active .device-caption{color:#a4c1cd;font-size:8px}.handheld-active .device-pad{gap:7px}.handheld-active .device-faces{gap:3px}.handheld-active .touch-controls small{font-size:7px}.handheld-active .touch-controls b{font-size:16px}
 .handheld-active .device-utility{gap:12px}.handheld-active .device-utility button{max-width:112px;min-height:40px;background:#263b56}
 .handheld-active .device-trick{position:absolute;bottom:12px;right:14px;min-width:94px!important;min-height:40px!important}
 .handheld-active .handheld{position:relative}.handheld-active .device-utility{padding:0 105px}
 .handheld-active .title-content h1{font-size:9cqw;margin-bottom:7px}.handheld-active .difficulty-pick{margin-top:4px}
}
@media(max-width:359px) and (orientation:portrait){.handheld-active .handheld{--key:44px;padding-inline:10px;gap:12px 8px}.device-edition{display:none}}

.handheld-active .title-content h1{font-size:8cqw;margin-bottom:6px}
.handheld-active .difficulty-pick{margin-top:4px}
.handheld-active .continue-button{min-height:32px;margin-top:4px}
@media(orientation:landscape) and (max-height:500px){
 .handheld-active .start-screen{padding:6px 5%}.handheld-active .title-content{width:100%;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:4px 12px}
 .handheld-active .title-content h1{grid-area:1/1/3/2;font-size:12cqw;margin:0}.handheld-active #start{grid-area:1/2}.handheld-active .difficulty-pick{grid-area:2/2;margin:0;justify-content:center}.handheld-active .continue-button{grid-area:3/1/4/3;justify-self:center;margin:0}.handheld-active .hero-wrap{display:none}
}

.handheld-active .hud{left:2.6cqw;right:2.6cqw;top:2cqw}.handheld-active .hud-stats{gap:3cqw}.handheld-active .hud-label{font-size:1.25cqw;margin-bottom:.4cqw}.handheld-active .hud strong{font-size:2.6cqw}.handheld-active .hud-power{width:20cqw;font-size:1cqw;letter-spacing:0}.handheld-active .hud-power>div:first-child{margin-bottom:.8cqw}.handheld-active .hud-power #power-hint{font-size:.94cqw}.handheld-active .power-track{height:1.25cqw;padding:.2cqw;border-width:.2cqw;margin-bottom:.6cqw}


/* Display-first fit: compact controls, safe-area shell and a taller play window. */
.handheld-active .arcade,.handheld-active .arcade:fullscreen{width:100%;max-width:none;height:auto;padding:0;display:block}
.handheld-active .handheld{min-height:0;height:var(--device-h,100dvh);border-width:2px;border-radius:16px;box-shadow:inset 0 2px #c7ffe5,inset 0 -3px #136b7e;padding:calc(4px + env(safe-area-inset-top,0px)) calc(4px + env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) calc(4px + env(safe-area-inset-left,0px));gap:4px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:24px var(--panel-h) 44px minmax(var(--controls-h),1fr) 44px}
.handheld-active .handheld-brand{height:24px;min-height:0;padding:0 5px;gap:8px}.handheld-active .handheld-brand strong{font-size:19px}.handheld-active .handheld-brand small{display:none}.handheld-active .device-edition{font-size:7px}
.handheld-active .cabinet,.handheld-active .arcade:fullscreen .cabinet{width:var(--panel-w);height:var(--panel-h);max-height:none;min-height:0;padding:0;border:2px solid #142c41;border-radius:7px;align-self:center;justify-self:center;margin:0;overflow:hidden;box-shadow:none}
.handheld-active .screen{width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:4px;background:#102436}
.handheld-active #game{width:100%;height:100%;object-fit:cover}.handheld-active [data-framing="full"] #game{object-fit:contain}
.handheld-active .device-pad{gap:0}.handheld-active .device-caption{display:none}
.handheld-active .dpad{grid-template-columns:repeat(3,var(--key));grid-template-rows:repeat(3,var(--key));box-shadow:none}
.handheld-active .face-grid{grid-template-columns:repeat(3,var(--face));grid-template-rows:repeat(3,var(--face));transform:none}.handheld-active .face-grid button{width:var(--face);height:var(--face);transform:none}.handheld-active .face-grid button.pressed{transform:translateY(2px)}
.handheld-active .device-faces{gap:4px}.handheld-active .touch-controls .device-shoulder{min-height:44px;height:44px;border-radius:10px;padding:0 8px}
.handheld-active .device-utility{gap:4px;padding:0}.handheld-active .device-utility button{min-height:44px;max-width:none;font-size:9px;border-radius:9px}
.handheld-active .device-trick{position:static;min-height:44px!important}
.handheld-active [data-layout="landscape"]{grid-template-columns:var(--side) minmax(0,1fr) var(--side);grid-template-rows:24px minmax(0,1fr) 44px;grid-template-areas:"shoulderL brand shoulderR" "pad screen faces" ". utility .";border-radius:24px}
.handheld-active [data-layout="landscape"] .handheld-brand{justify-content:center}.handheld-active [data-layout="landscape"] .device-shoulder{align-self:start;z-index:1}
.handheld-active [data-layout="landscape"] .face-grid{grid-template-columns:repeat(2,var(--face));grid-template-rows:repeat(2,var(--face));gap:4px}
.handheld-active [data-layout="landscape"] .face-y{grid-area:1/1}.handheld-active [data-layout="landscape"] .face-b{grid-area:1/2}.handheld-active [data-layout="landscape"] .face-x{grid-area:2/1}.handheld-active [data-layout="landscape"] .face-a{grid-area:2/2}
.handheld-active [data-layout="landscape"] .device-trick{position:absolute;bottom:calc(4px + env(safe-area-inset-bottom,0px));right:calc(4px + env(safe-area-inset-right,0px));width:var(--side);min-width:0!important}
.handheld-active [data-layout="landscape"] .device-faces{position:static}
.handheld-active .touch-controls .dpad button{border-bottom-width:3px;font-size:16px}
.handheld-active .face-grid small{font-size:8px;letter-spacing:0}.handheld-active .face-grid b{font-size:18px}
.handheld-active .toast{max-width:96%;white-space:normal;font-size:clamp(9px,1.5cqw,13px)}

@media(max-height:500px){.handheld-active [data-layout="landscape"] .device-pad,.handheld-active [data-layout="landscape"] .device-faces{padding-top:20px}}

/* Touch feedback changes paint only: stable hit areas, no press animation delay. */
.handheld-active .touch-controls button{transition:none;animation:none;-webkit-touch-callout:none}
.handheld-active .touch-controls button.pressed,.handheld-active .face-grid button.pressed{transform:none;filter:none;border-bottom-width:5px;border-top-color:#fff8cc;box-shadow:inset 0 0 0 2px #fff6bf,inset 0 3px 8px #10243666,0 0 0 2px #fff2a055}
.handheld-active .touch-controls .dpad button.pressed{border-bottom-width:3px;background:#52798e;color:#fff}
.handheld-active .device-utility button{touch-action:manipulation}
.handheld-active .dpad,.handheld-active .face-grid{contain:layout style}

/* The controller occupies the visual viewport, even after Safari zoom/rotation. */
.handheld-root{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
.handheld-active{position:fixed;inset:0;width:100%;height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}
.handheld-active .handheld{position:fixed;left:var(--viewport-left,0px);top:var(--viewport-top,0px);width:var(--device-w,100vw);height:var(--device-h,100dvh);max-width:none;margin:0;transform-origin:top left;transform:scale(var(--viewport-unzoom,1));overflow:hidden;grid-template-rows:24px var(--panel-h) var(--shoulder-h,44px) minmax(var(--controls-h),1fr) 44px}
.handheld-active [data-layout="portrait"]{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"brand brand" "screen screen" "shoulderL shoulderR" "pad faces" "utility utility";border-radius:16px;background:linear-gradient(135deg,#64dfc7,#3dc1bd 52%,#279fae)}
.handheld-active [data-layout="landscape"]{grid-template-columns:var(--side) minmax(0,1fr) var(--side);grid-template-rows:24px minmax(0,1fr) 44px;grid-template-areas:"shoulderL brand shoulderR" "pad screen faces" ". utility .";background:linear-gradient(140deg,#47567e,#283e61 55%,#183348)}
.handheld-active .face-y{background:#ffe069!important;color:#423345!important;border-color:#8a633c!important;border-bottom-color:#644233!important}
.handheld-active .touch-controls .shoulder-right{background:#2b425c;color:#fff8d7;border-color:#20384c;border-bottom-color:#122637}
.handheld-active .game-menu{touch-action:pan-y pinch-zoom}
.handheld-active #handheld-fullscreen{font-size:8px;letter-spacing:0}

/* One thumb layout in both orientations, with real neutral space between keys. */
.handheld-active .handheld{gap:6px}
.handheld-active [data-layout="landscape"]{grid-template-rows:44px minmax(0,1fr) 44px}
.handheld-active [data-layout="landscape"] .handheld-brand{align-self:center}
.handheld-active .face-grid,.handheld-active [data-layout="landscape"] .face-grid{grid-template-columns:repeat(2,var(--face));grid-template-rows:repeat(2,var(--face));gap:var(--face-gap,12px);transform:none}
.handheld-active .face-y,.handheld-active [data-layout="landscape"] .face-y{grid-area:1/1}
.handheld-active .face-b,.handheld-active [data-layout="landscape"] .face-b{grid-area:1/2}
.handheld-active .face-x,.handheld-active [data-layout="landscape"] .face-x{grid-area:2/1}
.handheld-active .face-a,.handheld-active [data-layout="landscape"] .face-a{grid-area:2/2}
.handheld-active .device-pad,.handheld-active .device-faces,.handheld-active [data-layout="landscape"] .device-pad,.handheld-active [data-layout="landscape"] .device-faces{padding:0;min-width:0}
.handheld-active [data-layout="portrait"] .device-pad{justify-self:start}
.handheld-active [data-layout="portrait"] .device-faces{justify-self:end}
.handheld-active .device-faces{gap:6px}
.handheld-active .face-grid button{border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;box-shadow:0 3px 0 #154c6680}
.handheld-active .face-grid b{font-size:clamp(22px,calc(var(--face)/2.5),30px);line-height:1}
.handheld-active .face-a{background:#adf3b0!important}
.handheld-active .face-grid small{font-size:12px;line-height:1.05;letter-spacing:0;margin:0;white-space:nowrap}
.handheld-active .touch-controls .device-shoulder{width:100%;height:44px;min-height:44px}
.handheld-active .touch-controls .device-shoulder small,.handheld-active .touch-controls .device-trick small{font-size:12px;letter-spacing:0}
.handheld-active .touch-controls .device-trick{gap:6px}
.handheld-active .device-utility button{font-size:10px;letter-spacing:0}
.handheld-active #handheld-fullscreen{font-size:10px}
.handheld-active .touch-controls .dpad button{font-size:20px}
.handheld-active .touch-controls .face-grid button.pressed{background-image:linear-gradient(#fff4,#fff0);border-bottom-width:5px}

.chapter-state{display:block;font:12px/1.5 Arial,sans-serif;color:#b1eccf;margin-top:5px}.chapter-button.chapter-locked{opacity:.58;background:#1a2235;cursor:not-allowed}.chapter-locked .chapter-state{color:#d0c7be}.chapter-button:disabled:hover{border-color:#465773}

/* Desktop fullscreen must override the embedded website's centered grid as well
   as the ordinary cabinet limits. The canvas and HTML HUD share one 16:9 box. */
html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen){width:100vw;height:100dvh;max-width:none;max-height:none;padding:0;margin:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;background:#101527}
html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen) .handheld{display:contents}
html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen) :is(.topbar,.marquee,.cabinet-footer,.footer,.quick-controls,.touch-controls){display:none!important}
html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen) .cabinet{width:min(100vw,calc(100dvh * 16 / 9));height:min(100dvh,calc(100vw * 9 / 16));max-width:none;max-height:none;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen) .screen{width:100%;height:100%;border:0;border-radius:0;aspect-ratio:16/9}
html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen) #game{width:100%;height:100%;object-fit:contain}
/* Keep the same fullscreen toggle available to leave the expanded view. */
html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen) .marquee{display:contents!important}
html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen) .marquee>div:first-child,html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen) .cabinet-actions button:not(#fullscreen){display:none}
html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen) .cabinet-actions{display:contents}
html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen) #fullscreen{position:fixed;top:8px;right:8px;z-index:8;display:grid;place-items:center;width:38px;height:38px;padding:4px;border:1px solid #71809a;border-radius:5px;background:#14243ddd;color:#fff4b9;opacity:.35}
html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen) #fullscreen:hover,html body:not(.handheld-active) .arcade:is(:fullscreen,:-webkit-full-screen,.is-fullscreen) #fullscreen:focus-visible{opacity:1}

.title-content h1>span{color:#fff5d5}.title-content h1>span+span{color:#ee685f}

/* Player meters: solid red health, with a golden aura only while powered. */
.hud-power .health-heading,.hud-power .power-heading{display:flex;justify-content:space-between;margin-bottom:4px;line-height:1.2}
.health-track{height:16px;padding:2px;background:#371821;border:2px solid #ffe9db;box-shadow:2px 2px #172943;margin-bottom:7px}
#health-fill{height:100%;width:100%;background:linear-gradient(#ff6464,#e82335);transition:width .12s}
.hud-power.super-active .power-track{border-color:#fff5a5;box-shadow:0 0 7px #ffe136,0 0 17px #ffc400b3,2px 2px #172943}
.hud-power.super-active .power-track>div{background:#ffe438;box-shadow:0 0 9px #fff176;animation:super-bar-glow 1s ease-in-out infinite alternate}
.hud-power.super-active #power-label{color:#fff39a;text-shadow:0 0 7px #ffc400,1px 1px #172943}
@keyframes super-bar-glow{to{background:#fff49a;box-shadow:0 0 13px #ffe438}}
@media(max-width:600px){.health-track{height:11px;padding:1px;border-width:1px;margin-bottom:4px}.hud-power .health-heading,.hud-power .power-heading{margin-bottom:3px}}
.handheld-active .health-track{height:1.7cqw;min-height:9px;padding:.2cqw;border-width:.2cqw;margin-bottom:.65cqw}
.handheld-active .hud-power .health-heading,.handheld-active .hud-power .power-heading{margin-bottom:.4cqw}
@media(prefers-reduced-motion:reduce){.hud-power.super-active .power-track>div{animation:none}#health-fill{transition:none}}

/* Clear play area: one compact player HUD and one red boss meter. */
.screen{container-type:inline-size}
.screen :is(.hud,.board-hud,.city-hud,.chute-hud,.duel-hud,.fryer-hud,.mission-hud,.flight-hud,.chase-hud,.boss-hud){display:none!important}
.game-focused :is(.topbar,.marquee,.cabinet-footer,.footer,.quick-controls,.controls,.board-tricks){display:none!important}
html body.game-focused:not(.handheld-active){height:100dvh;overflow:hidden;background:#101527}
html body.game-focused:not(.handheld-active) .arcade{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;margin:0;padding:0;display:grid;place-items:center;background:#101527}
html body.game-focused:not(.handheld-active) .handheld{display:contents}
html body.game-focused:not(.handheld-active) .cabinet{width:min(100vw,calc(100dvh * 16 / 9));height:min(100dvh,calc(100vw * 9 / 16));max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
html body.game-focused:not(.handheld-active) .screen{width:100%;height:100%;aspect-ratio:16/9;border:0;border-radius:0}
html body.game-focused:not(.handheld-active) #game{width:100%;height:100%;object-fit:contain}
.compact-hud,.compact-boss{position:absolute;z-index:3;color:#fff8dc;font-family:Arial,Helvetica,sans-serif;font-weight:700;pointer-events:none;background:#102039d9;border:1px solid #ffffff38;border-radius:6px;padding:8px 10px;text-shadow:0 1px #101527}
.compact-hud{left:1.5%;top:2%;width:clamp(190px,23cqw,320px);font-size:clamp(12px,1.25cqw,17px)}
.compact-heading,.compact-numbers,.compact-boss>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}
.compact-heading strong{font-size:clamp(12px,1.3cqw,18px);letter-spacing:.03em}
.compact-heading>span{font-size:12px;white-space:nowrap}
.compact-meter{overflow:hidden;background:#482733;height:8px;border-radius:2px;margin:5px 0}
.compact-meter>i{display:block;height:100%;width:100%;background:#f04450}
.compact-power-row{display:flex;align-items:center;gap:8px;font-size:clamp(11px,1.1cqw,15px);color:#ffdf77}
.compact-power-row>span{white-space:nowrap}.compact-meter.power{flex:1;background:#655330;height:5px}.compact-meter.power>i{background:#ffda53}
.compact-hud.powered .power{box-shadow:0 0 8px #ffda53}.compact-numbers{margin-top:3px;font-variant-numeric:tabular-nums}
#compact-status{font-size:clamp(11px,1.15cqw,16px);color:#b9eddf;margin-top:4px}#compact-status:empty{display:none}
.compact-boss{right:1.5%;bottom:2%;width:clamp(215px,29cqw,400px);font-size:clamp(12px,1.3cqw,18px)}
.compact-boss .compact-meter{height:9px;margin-bottom:0}.compact-boss span{font-size:12px;white-space:nowrap}
.play-actions{position:absolute;top:2%;right:1.5%;z-index:12;display:flex;gap:6px}
.play-actions button{min-width:44px;min-height:44px;border:1px solid #ffffff55;background:#102039d9;color:#fff5d5;border-radius:5px;padding:8px 12px;font:bold 14px Arial,sans-serif}
.play-actions #levels-menu,.play-actions #controls-menu{display:none}
html body:not(.handheld-active) .arcade .play-actions #fullscreen{position:static;opacity:1;min-width:44px;min-height:44px}
.handheld-active .play-actions{display:none}
.game-focused .toast{max-width:60%;left:50%;transform:translateX(-50%);top:23%;bottom:auto;font-size:clamp(13px,1.6cqw,22px);padding:8px 12px;line-height:1.35;white-space:normal}
.level-ready{position:absolute;inset:0;z-index:14;display:grid;place-items:center;background:#0b1526ed;padding:24px;overflow:auto;touch-action:pan-y}
.ready-card{width:min(100%,760px);margin:auto;text-align:center;font-family:Arial,Helvetica,sans-serif}
.help-kicker{font-size:clamp(14px,1.5cqw,20px);color:#9bdfcd;letter-spacing:.06em;line-height:1.4;margin:0 0 10px}
.ready-card h2{font:bold clamp(25px,4cqw,54px)/1.1 'Courier New',monospace;color:#ffe078;margin:0 0 14px}
#ready-goal,#pause-goal{font:600 clamp(17px,2cqw,27px)/1.4 Arial,sans-serif;margin:12px 0 20px;color:#fff8df}
.ready-moves,.pause-moves{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px;text-align:left}
.move-card{display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding:14px 16px;background:#26364b;border:1px solid #647689;border-radius:6px;min-width:0}
.move-card kbd{display:block;width:auto;max-width:100%;height:auto;min-width:0;white-space:normal;overflow-wrap:anywhere;border:0;box-shadow:none;background:none;padding:0;color:#ffe078;font:bold clamp(19px,2.3cqw,30px)/1.2 Arial,sans-serif;letter-spacing:0}
.move-card span{font:600 clamp(15px,1.65cqw,22px)/1.3 Arial,sans-serif;color:#fff8df}
.ready-card .start-button{font-size:clamp(18px,2.2cqw,27px);min-height:52px;padding:12px 28px}
#ready-pause{font:16px/1.4 Arial,sans-serif;color:#b5c7d6;margin:16px 0 8px}
.ready-card .secondary-button{font:700 14px Arial,sans-serif;min-height:44px;color:#c1e9ed}
body[data-play-mode="paused"] #modal{z-index:15;background:#0b1526f5;align-items:flex-start;overflow:auto;padding:24px;touch-action:pan-y}
body[data-play-mode="paused"] #modal .modal-card{width:min(100%,960px);max-width:960px;max-height:none;overflow:visible;margin:auto;padding:12px 0;background:none;border:0;box-shadow:none}
body[data-play-mode="paused"] #modal-title{font:bold clamp(24px,3.1cqw,42px)/1.2 'Courier New',monospace;margin:8px 0}
body[data-play-mode="paused"] #modal-kicker{font:700 14px/1.4 Arial,sans-serif;color:#9bdfcd;letter-spacing:.05em}
body[data-play-mode="paused"] #modal-copy{display:none}
.pause-moves{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.pause-moves .move-card{padding:12px 14px}.pause-moves .move-card kbd{font-size:clamp(18px,2cqw,26px)}
.pause-moves .move-card span{font-size:clamp(15px,1.5cqw,20px)}
.pause-links{display:flex;justify-content:center;gap:12px;margin:12px 0 20px;flex-wrap:wrap}
.pause-links button{font:700 14px Arial,sans-serif;min-height:44px;padding:10px 16px;background:#25374d;border:1px solid #7890a2;border-radius:4px;color:#fff5d5}
body[data-play-mode="paused"] #modal :is(.start-button,.secondary-button){font:700 16px Arial,sans-serif;min-height:44px;margin-top:10px}
body[data-play-mode="paused"] #resume{display:block;margin:10px auto}
body[data-play-mode="paused"] :is(#restart,#menu){display:inline-block;margin:10px 8px}
/* Touch help uses the whole viewport, leaving the controls unchanged during play. */
.handheld-active :is(.level-ready,#modal:not([hidden])){position:fixed;inset:0;z-index:30;max-height:100dvh}
.handheld-active .level-ready{padding:20px}.handheld-active .ready-card{max-width:680px}
.handheld-active .compact-hud{width:30cqw;min-width:0;padding:4px 6px;font-size:clamp(9px,1.6cqw,14px)}
.handheld-active .compact-heading strong,.handheld-active .compact-heading>span{font-size:clamp(9px,1.6cqw,14px)}
.handheld-active .compact-power-row,.handheld-active #compact-status{font-size:clamp(9px,1.5cqw,13px)}
.handheld-active .compact-meter{height:5px;margin:3px 0}.handheld-active .compact-meter.power{height:3px}
.handheld-active .compact-boss{min-width:0;width:31cqw;font-size:clamp(9px,1.6cqw,14px);padding:4px 6px}.handheld-active .compact-boss span{font-size:clamp(9px,1.4cqw,12px)}
@media(max-width:600px){.ready-moves,.pause-moves{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.level-ready{padding:16px}.move-card{padding:12px}.ready-card h2{font-size:26px}.pause-links{gap:8px}}
@media(max-height:520px){.level-ready,body[data-play-mode="paused"] #modal{padding:12px 24px}.ready-card h2{font-size:27px}.ready-moves{margin:12px 0}.move-card{padding:10px}#ready-goal{margin:8px 0}#ready-pause{margin:10px 0}}
#screen>.play-actions{display:flex}
html body:not(.handheld-active) .arcade #screen>.play-actions #pause{display:block}
.handheld-active #screen>.play-actions{display:none}
body[data-play-mode="title"] #screen>.play-actions #pause{display:none}
body[data-play-mode="story"] .story-skip{top:calc(2% + 52px);font-size:14px;min-height:44px}
.handheld-active[data-play-mode="story"] .story-skip{top:3%;min-height:32px;font-size:12px}
#level-ready,#modal{position:fixed;inset:0}
body[data-play-mode="title"] :is(#levels-menu,#controls-menu){display:block}

/* Active play is the picture, one player HUD and one boss meter. */
.compact-hud{top:0;left:0;border-top:0;border-left:0;border-radius:0 0 6px 0;padding:5px 8px}
body[data-play-mode="playing"] #screen>.play-actions,body[data-play-mode="playing"] .toast{display:none!important}

/* Mobile landscape: the game owns the display, controls float at the glass edges. */
.handheld-active .handheld{--inset-left:env(safe-area-inset-left,0px);--inset-right:env(safe-area-inset-right,0px);--inset-top:env(safe-area-inset-top,0px);--inset-bottom:env(safe-area-inset-bottom,0px)}
.handheld-active :is(#handheld-levels,#handheld-sound){display:none}
.handheld-active .device-utility :is(#handheld-pause,#handheld-fullscreen){font:700 24px/1 Arial,sans-serif;min-width:44px;min-height:44px;max-width:64px;touch-action:manipulation}
.handheld-active .device-utility svg{display:block;width:24px;height:24px;margin:auto;pointer-events:none}
.handheld-active .touch-controls button.tap-flash{box-shadow:inset 0 0 0 2px #fff4c9,0 0 9px #fff2a055}
.handheld-active .handheld[data-overlay="true"]{display:block;padding:0;border:0;border-radius:0;box-shadow:none;background:#101527}
.handheld-active [data-overlay="true"] .handheld-brand{display:none}
.handheld-active .handheld[data-overlay="true"] .cabinet{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;padding:0;margin:0;box-shadow:none}
.handheld-active [data-overlay="true"] .screen{border-radius:0}
.handheld-active [data-overlay="true"] .device-pad,.handheld-active [data-overlay="true"] .device-faces{position:absolute;z-index:10;bottom:var(--control-bottom);width:auto;height:var(--controls-h);justify-content:center;padding:0;gap:0}
.handheld-active [data-overlay="true"] .device-pad{left:calc(var(--safe-left) + 10px)}
.handheld-active [data-overlay="true"] .device-faces{right:calc(var(--safe-right) + 10px)}
.handheld-active [data-overlay="true"] .dpad{background:transparent;border-radius:0;box-shadow:none}
.handheld-active [data-overlay="true"] .touch-controls button,.handheld-active [data-overlay="true"] .dpad-center{border:1px solid #e4f4ff99;border-radius:12px;background:rgb(16 32 52 / .48);color:#f8fcff;box-shadow:0 1px 3px #0004;text-shadow:0 1px 2px #000;opacity:1}
.handheld-active [data-overlay="true"] .dpad-center{background:rgb(16 32 52 / .16);border-color:#d3ecff33;color:#d3ecff88;font-size:22px}
.handheld-active [data-overlay="true"] .face-grid button{border-radius:50%;border-color:var(--face-tint)!important;background:rgb(16 32 52 / .48)!important;color:#fff!important;gap:2px}
.handheld-active [data-overlay="true"] .face-a{--face-tint:#b5f7b9}
.handheld-active [data-overlay="true"] .face-b{--face-tint:#ffa297}
.handheld-active [data-overlay="true"] .face-x{--face-tint:#a5dfff}
.handheld-active [data-overlay="true"] .face-y{--face-tint:#ffe69b}
.handheld-active [data-overlay="true"] .face-grid b{color:var(--face-tint);font:900 clamp(22px,calc(var(--face)/2.5),30px)/1 Arial,sans-serif}
.handheld-active [data-overlay="true"] .face-grid small{font:bold 14px/1 Arial,sans-serif;letter-spacing:0}
.handheld-active [data-overlay="true"] .touch-controls button:is(.pressed,.tap-flash){background:rgb(52 82 108 / .72)!important;border-color:#fff9d8!important;border-width:1px;box-shadow:inset 0 0 0 2px #fff6c4,0 0 10px #fff2a066;transform:none;filter:none}
.handheld-active [data-overlay="true"] .touch-controls .device-shoulder{position:absolute;z-index:10;top:var(--shoulder-y);width:calc(var(--key)*3);height:44px;border-radius:12px}
.handheld-active [data-overlay="true"] .shoulder-left{left:calc(var(--safe-left) + 10px)}
.handheld-active [data-overlay="true"] .touch-controls .shoulder-right{right:calc(var(--safe-right) + 10px);width:calc(var(--face)*2 + var(--face-gap))}
.handheld-active [data-overlay="true"] .touch-controls .device-trick{position:absolute;top:-52px;bottom:auto;right:0;width:var(--face);height:44px;min-height:44px!important;min-width:0!important;border-radius:12px;flex-direction:column;gap:2px;padding:0}
.handheld-active [data-overlay="true"] .touch-controls .device-trick small{font-size:12px}
.handheld-active [data-overlay="true"][data-extra="true"] .shoulder-right{right:calc(var(--safe-right) + 10px + var(--face) + var(--face-gap));width:var(--face);flex-direction:column;gap:2px}
.handheld-active [data-overlay="true"] .device-utility{position:absolute;z-index:12;top:calc(var(--safe-top) + 6px);right:calc(var(--safe-right) + 10px);display:flex;padding:0;gap:8px;height:44px}
.handheld-active [data-overlay="true"] .device-utility :is(#handheld-pause,#handheld-fullscreen){width:44px;max-width:44px;padding:0;background:rgb(16 32 52 / .48)}
.handheld-active [data-overlay="true"] .compact-hud{left:var(--safe-left);top:var(--safe-top);width:clamp(160px,23cqw,250px);padding:4px 6px;background:rgb(16 32 52 / .65)}
.handheld-active [data-overlay="true"] .compact-heading strong,.handheld-active [data-overlay="true"] .compact-heading>span,.handheld-active [data-overlay="true"] .compact-numbers{font-size:12px}
.handheld-active [data-overlay="true"] .compact-power-row,.handheld-active [data-overlay="true"] #compact-status{font-size:11px}
.handheld-active [data-overlay="true"] .compact-boss{right:calc(var(--safe-right) + 10px);bottom:calc(var(--control-bottom) + var(--controls-h) + 58px);width:clamp(180px,25cqw,290px);font-size:12px;background:rgb(16 32 52 / .65)}
.handheld-active[data-play-mode="story"] [data-overlay="true"] .story-skip{right:calc(var(--safe-right) + 114px);top:calc(var(--safe-top) + 6px);min-height:44px}
.handheld-active:not([data-play-mode="playing"]) [data-overlay="true"] :is(.device-pad,.device-faces,.device-shoulder){visibility:hidden;pointer-events:none}
@media(orientation:portrait){.handheld-active [data-overlay="true"] .compact-hud{width:190px}.handheld-active [data-overlay="true"] .compact-boss{width:190px}}

/* Thumb joystick and circular diamond: landscape controls hug the lower corners. */
.handheld-active .dpad.joystick{position:relative;display:block;width:var(--stick);height:var(--stick);flex:none;grid-template:none;border-radius:50%;border:1px solid #d0ecff8c;background:radial-gradient(circle,transparent 0 35%,#d3edff17 36% 37%,transparent 38%),rgb(16 32 52 / .34);box-shadow:inset 0 0 0 8px #d2f0ff08;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;outline-offset:5px}
.handheld-active .joystick .stick-direction{position:absolute;display:grid;place-items:center;grid-area:auto;width:24px;height:24px;font:700 13px/1 Arial,sans-serif;color:#f1f9ffb0;pointer-events:none;transform:translate(-50%,-50%);text-shadow:0 1px 3px #0008}
.handheld-active .joystick #touch-up{left:50%;top:12%}.handheld-active .joystick #touch-down{left:50%;top:88%}.handheld-active .joystick #touch-left{left:12%;top:50%}.handheld-active .joystick #touch-right{left:88%;top:50%}
.handheld-active .joystick .stick-direction.pressed{color:#fff5bb;text-shadow:0 0 7px #fff1a288}
.handheld-active .stick-thumb{position:absolute;left:50%;top:50%;width:43%;height:43%;border-radius:50%;border:2px solid #e6f5ffbc;background:radial-gradient(circle at 35% 28%,#dff5ff42,transparent 65%),rgb(34 69 95 / .62);box-shadow:0 3px 9px #0004,inset 0 0 0 4px #e7faff12;transform:translate(calc(-50% + var(--stick-x,0px)),calc(-50% + var(--stick-y,0px)));pointer-events:none;transition:none}
.handheld-active .joystick.steering .stick-thumb{border-color:#fff5c6;background-color:rgb(52 91 115 / .72)}
.handheld-active .face-grid,.handheld-active [data-layout="landscape"] .face-grid{position:relative;display:block;width:var(--diamond);height:var(--diamond);grid-template:none;transform:none;flex:none}
.handheld-active .face-grid button{position:absolute;width:var(--face);height:var(--face);border-radius:50%;grid-area:auto!important;transform:none!important;clip-path:circle(50%);border-bottom-width:2px}
.handheld-active .face-grid .face-y{left:var(--face-step);top:0}.handheld-active .face-grid .face-x{left:0;top:var(--face-step)}.handheld-active .face-grid .face-b{left:calc(2*var(--face-step));top:var(--face-step)}.handheld-active .face-grid .face-a{left:var(--face-step);top:calc(2*var(--face-step))}
.handheld-active .face-grid button.pressed{border-bottom-width:2px!important}
.handheld-active [data-overlay="true"] .device-pad,.handheld-active [data-overlay="true"] .device-faces{top:auto;bottom:var(--control-bottom);height:var(--controls-h);transform:none}
.handheld-active [data-overlay="true"] .touch-controls .shoulder-left{width:var(--stick)}
.handheld-active [data-overlay="true"] .touch-controls .shoulder-right{width:var(--diamond)}
.handheld-active [data-overlay="true"] .touch-controls .device-trick{top:-52px;width:calc((var(--diamond) - var(--face-gap))/2)}
.handheld-active [data-overlay="true"][data-extra="true"] .touch-controls .shoulder-right{right:calc(var(--safe-right) + 10px + (var(--diamond) + var(--face-gap))/2);width:calc((var(--diamond) - var(--face-gap))/2)}
.handheld-active [data-overlay="true"] .compact-boss{bottom:calc(var(--safe-bottom) + 7px);right:calc(var(--safe-right) + var(--diamond) + 22px);width:clamp(160px,22cqw,250px)}
.handheld-active .face-grid small{font-size:clamp(10px,calc(var(--face)*.19),14px)}
.handheld-active [data-overlay="true"] .face-grid small{font-size:clamp(10px,calc(var(--face)*.22),14px)}
.handheld-active .face-grid button:focus-visible{box-shadow:inset 0 0 0 3px #fff4bf}

/* Voluntary support is confined to the pause/results card. */
.support-game-link{display:block;width:fit-content;max-width:100%;min-height:44px;margin:18px auto 0;padding:12px 16px;border:1px solid #ffe07870;border-radius:6px;color:#ffe078;text-decoration:none;font:700 14px/1.4 Arial,sans-serif;white-space:normal}.support-game-link:hover{background:#ffe07816}.support-game-link:focus-visible{outline:3px solid #ffe078;outline-offset:4px}

/* Porky's unhurried, post-intro lesson. Scrolling remains available on phones. */
#porky-preview{display:block;width:min(100%,620px);height:auto;aspect-ratio:72/25;margin:10px auto;border:2px solid #637b89;border-radius:6px;background:#263544}
.porky-guide .ready-card h2{font-size:clamp(24px,3cqw,38px)}
.porky-guide .ready-moves{margin:12px 0}.porky-guide .move-card span{font-size:clamp(16px,1.6cqw,20px)}
@media(max-width:600px){.porky-guide .ready-moves{grid-template-columns:1fr}.porky-guide .move-card{flex-direction:row;align-items:center;gap:14px}.porky-guide .move-card kbd{flex:0 0 80px;font-size:18px}.porky-guide .move-card span{font-size:16px}}
@media(max-height:520px) and (min-width:601px){.porky-guide .ready-card{max-width:760px}.porky-guide #porky-preview{max-width:420px}.porky-guide #ready-goal{font-size:17px}.porky-guide .ready-card h2{font-size:24px;margin-bottom:8px}}
