:root{font-family:ui-rounded,'SF Pro Rounded',system-ui,sans-serif;color:#f2f7ff;background:#080f23;color-scheme:dark;font-size:16px}*{box-sizing:border-box}html,body{margin:0;overscroll-behavior:none}body{background:radial-gradient(ellipse at 15% 0,#253d67,transparent 60%),#080f23;display:flex;justify-content:center}main{width:min(100%,470px);padding:env(safe-area-inset-top) 12px env(safe-area-inset-bottom)}header{height:60px;display:flex;align-items:center;justify-content:space-between}header>div{display:flex;gap:8px}.wordmark{font-weight:950;letter-spacing:-1px;font-size:23px;text-decoration:none;color:#fff}.wordmark span{color:#ffc88d}.wordmark small{display:block;font-size:9px;letter-spacing:2.5px;color:#a7bfd9;margin-top:2px}button,select,input{font:inherit}button{color:inherit;border:1px solid #59718b66;background:#1a304c;cursor:pointer;touch-action:manipulation;border-radius:12px;padding:10px 12px;min-height:42px}button:hover{background:#294562}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #ffdc96;outline-offset:3px}header button{width:42px;padding:5px;font-size:22px}#arena{position:relative;width:auto;aspect-ratio:420/740;max-height:calc(100dvh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:hidden;border-radius:22px;border:1px solid #627e9470;background:#153755;margin:auto;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 15px 70px #0006}canvas{width:100%;height:100%;display:block}.hud{position:absolute;inset:18px 18px auto;display:flex;justify-content:space-between;pointer-events:none;text-shadow:0 2px 9px #06172d}.hud small{display:block;font-size:10px;letter-spacing:1.6px;font-weight:900;color:#e2f3ff}.hud strong{font-size:38px;line-height:1.25;letter-spacing:-1px}.hud strong small{display:inline;font-size:16px;margin-left:3px}.right{text-align:right;display:flex;flex-direction:column;gap:5px}.right b{font-size:17px;color:#ffdfa7}.right span{color:#e3bdff;font-size:16px;font-weight:800}.progress{position:absolute;top:95px;left:18px;right:18px;height:3px;background:#ffffff26;border-radius:4px}#zonefill{height:100%;background:linear-gradient(90deg,#ffcf88,#affff1);transition:width .2s}#powerbar{position:absolute;top:108px;left:12px;right:12px;display:flex;justify-content:center;flex-wrap:wrap;gap:4px;pointer-events:none}#powerbar span{font-size:12px;border:1px solid #b0d5f488;border-radius:12px;background:#0a223bd9;padding:4px 7px}#powerbar .expiring{border-color:#ffd798;color:#ffe4ac}#toast{position:absolute;top:25%;left:12px;right:12px;text-align:center;font-size:24px;line-height:1.1;font-weight:950;pointer-events:none;opacity:0;text-shadow:0 3px 10px #081d3d;transition:opacity .2s}#toast.rocket,#toast.comet,#toast.dash{font-family:Impact,'Arial Black',sans-serif;font-style:italic;color:#ffd293;letter-spacing:2px}#toast.gravity,#toast.slow{font-family:'Courier New',monospace;color:#d7ccff;letter-spacing:2px}#toast.boots{font-family:'Arial Rounded MT Bold',ui-rounded,sans-serif;color:#ffe991;transform:rotate(-4deg)}#toast.explosion{font-family:Impact,'Arial Black',sans-serif;font-style:italic;color:#ffd27c;font-size:32px;text-shadow:2px 3px #9c3820;transform:rotate(-5deg)}#toast.checkpoint{font-family:Georgia,serif;color:#fff0ca;letter-spacing:2px}#toast.shield,#toast.bubble{color:#b9ffff}#hint{position:absolute;bottom:22px;left:20px;right:20px;text-align:center;background:#0d2740c9;border-radius:12px;padding:9px;font-size:13px;pointer-events:none;opacity:0}#ability{position:absolute;bottom:58px;left:50%;transform:translateX(-50%);background:#ffdda4;color:#30251e;font-size:14px;font-weight:900;box-shadow:0 3px 0 #95744f;white-space:nowrap}#overlay{position:absolute;inset:0;background:linear-gradient(#09203738,#0a193aca 42%,#0c193aef);display:flex;align-items:center;justify-content:center;padding:20px;overflow-y:auto}.card{width:100%;text-align:center;margin:auto 0}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:900;color:#c1d8eb}h1{font-size:clamp(36px,11vw,54px);line-height:1.02;letter-spacing:-2px;margin:16px 0}h1 em{font-style:normal;color:#ffcf92}.card p{font-size:15px;line-height:1.55;color:#d0dfee;margin:12px 0}button.primary{display:block;width:100%;background:#ffcf92;color:#30261e;font-weight:900;font-size:17px;box-shadow:0 4px 0 #ad7954;border:0;margin:14px 0 8px;padding:14px}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #ad7954}.mode-label{display:block;font-size:12px;text-align:left;color:#bed3e9;margin:16px 0 6px}select{width:100%;padding:11px;border:1px solid #6583a1;background:#152e4a;border-radius:10px;color:#eaf4ff;font-size:14px}.navgrid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:14px}.navgrid button{font-size:13px;padding:8px;min-height:42px;background:#213552a8}.card p.micro{font-size:12px;line-height:1.45;color:#adc6dd;margin:12px 0}#rewards{font-size:14px;color:#ffdba9;line-height:1.7}.textbutton{background:none;border:0;font-size:13px;color:#adcae3}.scene p{font-family:Georgia,serif;font-size:19px;line-height:1.65;color:#fff2dc}.scene h1{font-family:Georgia,serif;font-size:36px;letter-spacing:-1px}.scene{animation:scene-in .8s ease-out}@keyframes scene-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}#countdown{position:absolute;inset:0;display:grid;place-items:center;font-size:80px;font-weight:950;background:#10284280;text-shadow:0 5px 0 #123}#replay-controls{position:absolute;bottom:15px;left:12px;right:12px;display:flex;gap:6px;justify-content:center}#replay-controls button{font-size:12px}footer{display:flex;justify-content:space-between;align-items:center;height:35px;font-size:10px;color:#a6bdd4;gap:8px}footer button{font-size:11px;border:0;background:none;padding:0;min-height:28px;color:#cce4f9}dialog{width:min(94vw,450px);max-height:88dvh;padding:20px;background:#10233b;color:#eaf4ff;border:1px solid #58738f;border-radius:22px;box-shadow:0 25px 100px #0009}dialog::backdrop{background:#020c1ecc;backdrop-filter:blur(7px)}.panelhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:10px}h2{font-size:23px;margin:0}.panelhead button{font-size:23px;padding:0;width:40px;min-width:40px}.setting{display:block;margin:18px 0;font-size:14px;line-height:1.6}.setting input[type=range]{width:100%;accent-color:#ffcd8c}.setting input[type=checkbox]{accent-color:#ffcd8c;width:20px;height:20px;vertical-align:middle;margin-right:8px}.panel-note{font-size:13px;color:#aec8df;line-height:1.6}.panelrow{padding:13px 0;border-bottom:1px solid #647c953a;font-size:14px;line-height:1.6}.panelrow strong{display:block;color:#ffdaa6}.panelrow.locked{opacity:.58}.panelrow button{font-size:13px;margin-top:8px}.chapter{display:flex;gap:12px;align-items:center;margin-bottom:9px;padding:10px;background:#20354b;border-radius:12px}.chapter i{font-style:normal;color:#ffe0a7;border:1px solid #7389a3;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;flex-shrink:0}.chapter span{font-size:14px}.outfits{display:grid;grid-template-columns:1fr 1fr;gap:10px}.outfit{padding:10px;text-align:center;border:1px solid #6d86a155;border-radius:14px;font-size:14px}.outfit img{width:100%;height:110px;object-fit:contain}.outfit button{font-size:12px;width:100%;padding:6px;margin-top:8px}.pill{background:#2b425a;border-radius:9px;padding:3px 7px;font-size:12px}.panel-link{color:#ffdda8;display:inline-block;padding:10px 0}#friendcode{width:100%;border:1px solid #668097;background:#0b1a2f;color:#fff;border-radius:9px;padding:10px;margin:8px 0}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(max-height:750px){header{height:48px}#arena{max-height:calc(100dvh - 87px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}h1{font-size:36px;margin:10px 0}.card p{font-size:13px;margin:8px 0}.eyebrow{font-size:9px}.mode-label{margin-top:9px}button.primary{padding:11px;margin-top:10px}.navgrid{margin-top:10px}.navgrid button{font-size:12px;min-height:37px}.card p.micro{font-size:11px;margin:8px 0}.scene p{font-size:17px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}body.calm .scene{animation:none}

.mode-tabs{display:flex;gap:6px;margin:16px 0 12px}.mode-tabs button{flex:1;font-size:14px;background:#0c2037;border:1px solid #7795b266}.mode-tabs button[aria-pressed=true]{background:#d8fff0;color:#123e39;border-color:#baffdd;font-weight:850}.levelselect{display:flex;justify-content:center;gap:10px;margin:12px 0}.levelselect button{min-width:42px;padding:8px;border-radius:50%;font-weight:850;background:#162b45}.levelselect button[aria-pressed=true]{border:2px solid #ffd49b;color:#ffe2b5;box-shadow:0 0 18px #ffce8430}.levelselect button:disabled{opacity:.3}.hud small{font-size:11px;letter-spacing:1px}.wordmark small{font-size:10px}#overlay{background:linear-gradient(#05142b14,#07182dc9 38%,#071527ef)}.card p{max-width:32ch;margin:12px auto}.card h1{font-weight:950;text-shadow:0 5px 35px #05152a}.navgrid button{font-size:14px}.card .micro{font-size:13px!important}@media(max-height:750px){.levelselect{margin:7px 0}.mode-tabs{margin:8px 0}.levelselect button{min-height:36px;min-width:36px;padding:5px}.card h1{font-size:34px}.navgrid button{font-size:12px}}

#arena.cinematic .hud,#arena.cinematic .progress,#arena.cinematic #powerbar,#arena.cinematic #toast{visibility:hidden}

#arena{box-shadow:0 0 0 1px #80f5d133,0 0 35px #7562ff33,0 20px 65px #0008}body:not(.calm) .wordmark{background:linear-gradient(110deg,#fff 15%,#8affe5 35%,#fff 50%,#ffdb91 65%,#fff 85%);background-size:250% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:arcade-shine 6s linear infinite}body:not(.calm) .primary{animation:button-glow 3s ease-in-out infinite}#powerbar span{font-size:12px;font-weight:750;background:#081b32eb}#toast.multiplier{font-family:Impact,'Arial Black',sans-serif;font-size:33px;color:#ffe597;text-shadow:0 3px #704579,0 0 22px #e1b76a66;letter-spacing:1px}body.calm #arena{box-shadow:0 15px 70px #0006}@keyframes arcade-shine{to{background-position:250% 0}}@keyframes button-glow{50%{box-shadow:0 4px 0 #ad7954,0 0 22px #ffce8455}}
@font-face{font-family:SkyArcade;src:url('arcade-display.woff') format('woff');font-display:swap;font-style:normal;font-weight:700 950}
#arena.menu-visible .hud,#arena.menu-visible .progress,#arena.menu-visible #powerbar,#arena.menu-visible #toast{visibility:hidden}
#overlay{padding:16px;background:linear-gradient(145deg,#092b5080,#101638d9 55%,#06182bf2);backdrop-filter:blur(3px)}
#home,#results{position:relative}.launch-banner{position:relative;height:172px;text-align:left;margin:0 0 8px;isolation:isolate}.launch-banner .eyebrow{position:relative;z-index:2;font:700 10px SkyArcade,sans-serif;letter-spacing:1.6px;color:#a6fff0}.launch-banner h1{position:absolute;left:5px;top:24px;margin:0!important;font:900 clamp(43px,13vw,61px)/.90 SkyArcade,sans-serif;letter-spacing:-3px;transform:rotate(-7deg) skew(-5deg);color:#edfff8;text-shadow:0 3px #356483,0 6px #15364b,3px 9px 0 #020d29;-webkit-text-stroke:1px #d2fff280}.launch-banner h1 em{color:#ffcc66;font-style:normal;text-shadow:0 3px #dd8745,0 6px #96507c,3px 9px #020d29}.menu-crew{position:absolute;right:-2px;top:10px;width:49%;height:155px;object-fit:contain;filter:drop-shadow(0 10px 15px #040b29aa);z-index:1}.launch-stamp{position:absolute;bottom:0;left:10px;border:1px solid #74eadf99;border-radius:6px;padding:5px 9px;transform:rotate(-3deg);background:#073146;color:#adfff0;font:700 10px SkyArcade,sans-serif;letter-spacing:.8px}#home #chaptercopy{font-size:14px;line-height:1.45;margin:10px auto;max-width:34ch}#home .mode-tabs{margin:10px 0 8px}#home .levelselect{margin:8px 0}#home .primary,#results .primary{font-family:SkyArcade,sans-serif;font-size:15px;letter-spacing:-.4px;background:linear-gradient(135deg,#ffe5a2,#ffba68);border:1px solid #ffe9ad;border-radius:12px;box-shadow:0 4px #a35a58,0 7px #04122f}#home .navgrid,#results .navgrid{gap:7px;margin-top:10px}#home .navgrid button,#results .navgrid button{background:linear-gradient(135deg,#274262e0,#152c4ee0);border-color:#7099b74d;font-size:12px}#home .micro{margin:10px auto;font-size:12px!important}
#results>.eyebrow{display:inline-block;color:#aaffdf;background:#134d4866;border:1px solid #69cfaf66;padding:5px 10px;border-radius:6px;font:700 10px SkyArcade,sans-serif;letter-spacing:1px}.result-banner{height:105px;position:relative;text-align:left;margin-top:8px}.result-crew{position:absolute;left:0;top:0;width:101px;height:101px;background:url('/crew-courier.webp?v=30') 66.6667% 100%/400% 200% no-repeat;transform:rotate(-12deg);filter:drop-shadow(0 7px 8px #0006)}#resulttitle{position:absolute;left:101px;right:0;top:20px;font:900 clamp(23px,7vw,32px)/1.05 SkyArcade,sans-serif;letter-spacing:-1.5px;transform:rotate(-4deg);color:#ffc3a6;text-shadow:0 3px #954464,0 6px #0c1332}.result-stamp{position:absolute;left:103px;top:76px;right:0;font:700 8px SkyArcade,sans-serif;letter-spacing:.6px;color:#cfdfef}.flight-score{padding:10px 14px 12px;border:1px solid #87d7ed80;border-radius:17px;background:linear-gradient(135deg,#133854e6,#162b49e6);box-shadow:inset 0 1px #c1eeff40,0 7px 0 #041a31;transform:rotate(1deg);margin:0 4px 13px}.score-caption{font:700 10px SkyArcade,sans-serif;letter-spacing:3px;color:#b8eaff}#resultscore{margin:5px 0 0;font:900 clamp(36px,11vw,53px)/1 SkyArcade,sans-serif;letter-spacing:-2px;color:#fff4ce;text-shadow:0 3px #aa7360}#resultscore em{display:block;font:700 11px SkyArcade,sans-serif;letter-spacing:4px;margin-top:8px;color:#a7dee7;text-shadow:none;text-transform:uppercase}#results #reason{font-size:13px;line-height:1.4;max-width:33ch;margin:10px auto}#results #rewards{font-size:13px;color:#ffdfa0}#results #save-status{font-size:11px!important;margin:7px auto}#results.victorious .result-crew{background-position:33.3333% 100%}#results.victorious #resulttitle{color:#b0ffdb;text-shadow:0 3px #306c71,0 6px #0c1332}
body:not(.calm) .menu-crew{animation:crew-hover 3.5s ease-in-out infinite}body:not(.calm) #results:not([hidden]) .result-banner{animation:result-land .45s ease-out both}body:not(.calm) #results:not([hidden]) .flight-score{animation:score-arrive .55s .1s ease-out both}@keyframes crew-hover{50%{transform:translateY(-8px) rotate(4deg)}}@keyframes result-land{from{opacity:0;transform:translateY(-12px) rotate(-3deg)}to{opacity:1;transform:none}}@keyframes score-arrive{from{opacity:0;transform:translateY(12px) scale(.94)}to{opacity:1;transform:translateY(0) rotate(1deg)}}
@media(max-height:750px){#overlay{padding:12px 16px}.launch-banner{height:132px}.launch-banner h1{font-size:44px;top:22px}.menu-crew{height:123px;top:2px}.launch-stamp{font-size:8px;padding:4px 7px}.launch-banner .eyebrow{font-size:8px}#home #chaptercopy{font-size:12px;margin:8px auto}#home .primary,#results .primary{font-size:13px;padding:10px}#home .navgrid button,#results .navgrid button{min-height:36px;font-size:11px}.result-banner{height:82px}.result-crew{width:82px;height:82px}#resulttitle{left:85px;top:16px;font-size:24px}.result-stamp{left:87px;top:65px;font-size:7px}.flight-score{padding:8px 12px;margin-bottom:10px}#resultscore{font-size:38px}#results #reason{font-size:12px}#results #rewards{font-size:12px}}
/* Brindle Bounce: copper pressure gauges, a working launchpad, and a returning crew. */
:root{background:#05151d}body{background:radial-gradient(ellipse at 50% 0,#194859,transparent 68%),#05151d}.wordmark{font-family:SkyArcade,system-ui;font-size:20px;letter-spacing:-1px}.wordmark span{color:#ffc078}.wordmark small{font:700 10px system-ui;letter-spacing:2px}.menu-visible #overlay{background:linear-gradient(#061c2870,#07151edb 46%,#07151ef5),url('/workshop.webp') center/cover;backdrop-filter:none}.launch-banner{height:187px}.launch-banner h1{top:37px;font-size:clamp(32px,9vw,44px);line-height:1.13;letter-spacing:-2px;transform:rotate(-5deg);z-index:2}.launch-banner h1 em{font-size:1.6em;letter-spacing:-3px}.launch-banner .eyebrow{font-size:12px;letter-spacing:1px}.menu-crew{width:96px;height:192px;right:4px;top:-2px;background:url('/crew-courier.webp?v=30') 0 0/400% 200% no-repeat;filter:drop-shadow(0 10px 15px #0008)}.launch-stamp{font:800 10px system-ui;left:4px;bottom:-4px;color:#c3ffef;background:#083b3edb}.card .crew-status{font:800 14px SkyArcade,system-ui;color:#ffe09a;margin:8px auto!important}#home #chaptercopy{font-size:14px;line-height:1.4;margin:8px auto}.result-crew{width:70px;height:140px;left:15px;top:-15px;background-image:url('/crew-courier.webp?v=30');background-position:66.6667% 100%;transform:rotate(0)}.result-banner{height:112px}#resulttitle{left:105px;top:18px;font-size:clamp(23px,6vw,29px);letter-spacing:-1px;color:#b0ffe4;text-shadow:0 3px #267478,0 6px #081926}.result-stamp{font:700 10px system-ui;left:106px;top:83px}.flight-score{border-radius:7px;border:2px solid #bc956d;box-shadow:inset 0 0 0 4px #082a35,0 7px 0 #09131f;background:repeating-linear-gradient(0deg,#10313c 0,#10313c 3px,#123540 4px);transform:none}#resultscore{font-variant-numeric:tabular-nums;color:#fff2b7}#run-feedback{font-size:14px!important;color:#bbffde!important}#results #reason{font-size:14px;line-height:1.4}#home .navgrid button,#results .navgrid button{font-size:14px;min-height:42px;background:#123540e8}.crew-wallet{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px;background:#183d49;border:1px solid #b6916466;border-radius:12px}.crew-wallet strong{color:#ffdc90;font-size:22px}.crew-wallet span{font-size:14px}.crew-list{display:grid;gap:12px}.crew-card{display:grid;grid-template-columns:80px 1fr;gap:12px;padding:14px;background:linear-gradient(130deg,#17444c,#102333);border:1px solid #416e78;border-radius:14px}.crew-card.selected{border-color:var(--crew);box-shadow:inset 3px 0 var(--crew)}.crew-portrait{width:80px;height:160px;background-size:400% 200%;background-position:0 0;background-repeat:no-repeat;align-self:center}.crew-info small{font-size:12px;color:#aacbd1}.crew-info h3{font-family:SkyArcade,system-ui;font-size:18px;color:var(--crew);margin:5px 0 9px}.crew-info b{font-size:14px}.crew-info p,.upgrade-row p{font-size:14px;color:#c2d6da;line-height:1.5;margin:7px 0}.crew-info button{width:100%;font-size:14px;background:#31535b;border-color:var(--crew)}.upgrade-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #496776;padding:12px 0}.upgrade-row strong{font-size:15px;color:#ffdb9b}.upgrade-row button{white-space:nowrap;min-width:84px}.legacy-collection{margin-top:22px;font-size:14px;color:#b7cfd6}.legacy-collection summary{padding:12px 0;cursor:pointer}#ability{left:auto;right:12px;transform:none;max-width:36%;white-space:normal;font-size:12px;min-height:43px}.menu-visible #talent,.cinematic #toast.surge{font-family:SkyArcade,system-ui;color:#81ffc3;text-shadow:0 3px #185d50,0 0 14px #3fa}#toast.overdrive{font-family:SkyArcade,system-ui;color:#b9e8ff;text-shadow:0 3px #374584,0 0 18px #4bf}#toast.comet,#toast.talent{font-family:SkyArcade,system-ui;color:#fff0b7;font-style:normal}#powerbar span{font-size:12px}#home .primary,#results .primary{font-size:16px}dialog{background:#0b2632;border-color:#73928e}.panel-note{font-size:14px}.hud small{font-size:12px;letter-spacing:.5px}.calm .menu-crew{animation:none}
@media(max-height:750px){.launch-banner{height:142px}.launch-banner h1{font-size:30px;top:29px}.menu-crew{width:73px;height:146px;right:12px;top:0}.launch-banner .eyebrow{font-size:10px}.launch-stamp{font-size:9px}.result-crew{width:54px;height:108px;top:-6px;left:15px}.result-banner{height:91px}#resulttitle{font-size:23px;left:88px}.result-stamp{left:90px;top:74px;font-size:9px}#home .navgrid button,#results .navgrid button{font-size:13px;min-height:40px}#home .primary,#results .primary{font-size:14px}#results #reason{font-size:13px}}

.lore-intro{padding:20px;border:1px solid #66cce166;border-radius:14px;background:linear-gradient(145deg,#173e57,#111c32);text-align:left}.lore-kicker{font:700 12px SkyArcade,system-ui;letter-spacing:1px;color:#8af5e5}.lore-intro h3{font:700 25px/1.2 SkyArcade,system-ui;color:#ffdfa1;margin:14px 0}.lore-intro p,.lore-body p{font:400 16px/1.6 system-ui;color:#d8e7f1}.lore-heading{margin:26px 0 12px!important}.lore-file{margin:10px 0;border:1px solid #58748b;border-left:3px solid var(--crew,#75d8e8);border-radius:10px;background:#101e31;text-align:left;overflow:hidden}.lore-file summary{cursor:pointer;padding:17px 14px;color:#fff1d2;font:700 17px/1.4 system-ui}.lore-file summary span{display:block;margin-top:4px;font:500 12px/1.4 system-ui;letter-spacing:1px;text-transform:uppercase;color:var(--crew,#a7dce5)}.lore-file summary:focus-visible{outline:3px solid #80f6e8;outline-offset:-4px}.lore-body{padding:0 16px 16px}.lore-body:after{content:'';display:block;clear:both}.lore-body blockquote{font:italic 18px/1.5 system-ui;color:var(--crew,#a9f7ef);margin:12px 0 20px}.lore-portrait{float:right;width:70px!important;height:130px!important;margin:0 0 12px 12px}.lore-talent{padding-top:12px;border-top:1px solid #53647a}.lore-footer{text-align:center;font:500 14px/1.5 system-ui;color:#9cc5d4;padding:15px 0}#lore{grid-column:1/-1}

/* Launch screen: identity, play controls, then a balanced four-item navigation. */
#home{max-width:350px;margin:auto}#home .launch-banner{height:146px;margin:0 0 12px}#home .launch-banner h1{top:22px;font-size:34px;line-height:1.08}#home .menu-crew{width:74px;height:148px;right:12px;top:-2px}#home .launch-stamp{display:none}#home .launch-banner .eyebrow{font:700 10px system-ui;letter-spacing:2px}#home .crew-status{padding:8px 10px;border-top:1px solid #84afaf40;border-bottom:1px solid #84afaf40;font:700 14px system-ui;margin:0 auto 10px!important}#home #chaptercopy{font-size:14px;line-height:1.4;margin:8px auto 12px;max-width:31ch}#home .mode-tabs{gap:0;padding:4px;border:1px solid #60898a70;border-radius:12px;background:#081e29;margin:8px 0}#home .mode-tabs button{border:0;border-radius:8px;min-height:42px;font-size:15px}#home .primary{margin:12px 0 9px;min-height:48px}#home .navgrid{grid-template-columns:1fr 1fr;gap:8px;padding-top:14px;margin-top:12px;border-top:1px solid #84afaf40}#home .navgrid button{min-height:48px;font:600 14px/1.3 system-ui;padding:10px 8px;border-radius:10px;background:#163945;border:1px solid #628d9266}#home #lore{grid-column:auto}.menu-help{margin:10px 0 0}.menu-help button{font:500 14px system-ui;color:#b9d3dc;background:none;border:0;min-height:36px;padding:5px 18px}#home .micro{margin:8px auto!important;font:400 12px/1.4 system-ui!important;max-width:32ch}@media(max-height:750px){#home .launch-banner{height:115px;margin-bottom:8px}#home .launch-banner h1{font-size:28px;top:20px}#home .menu-crew{width:58px;height:116px;right:20px}#home #chaptercopy{margin:6px auto;font-size:13px}#home .crew-status{padding:6px}#home .navgrid{padding-top:10px;margin-top:8px;gap:6px}#home .navgrid button{min-height:44px}.menu-help{margin-top:5px}}

#skipcinema{position:absolute;z-index:20;right:14px;top:18px;min-height:44px;padding:10px 16px;border:1px solid #bbdacf88;border-radius:12px;background:#071e30e8;color:#e9fff5;font:600 14px system-ui}.cinematic .hud,.cinematic .progress,.cinematic #powerbar,.cinematic #toast,.cinematic #hint{visibility:hidden}

#voicecaption{position:absolute;z-index:21;bottom:100px;left:20px;right:20px;pointer-events:none;padding:9px 13px;text-align:center;font:600 14px/1.4 system-ui;color:#effff8;background:#041a2eee;border:1px solid #96d6c277;border-radius:10px}.cinematic #voicecaption{bottom:160px}.narration-controls{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.narration-controls button,.lore-listen{min-height:44px;font:600 14px system-ui}.lore-listen{margin:8px 0;background:#245364}.lore-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.lore-actions button{font-size:14px;min-height:44px}
.crew-discovery{border-left:2px solid var(--crew,#8effd9);padding-left:12px;line-height:1.6}.restored .launch-banner{background-image:linear-gradient(0deg,#082331a8,#123b4333),url('/cinema-space-atlas.webp');background-size:300% auto;background-position:right center}.restored .launch-stamp{color:#b3ffe4}.lore-body h4{font-size:16px;color:#f8dfae;margin:20px 0 8px}
.workshop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.workshop-item{padding:14px;border:1px solid #ffffff25;border-radius:14px;background:#102536}.workshop-item h4{color:var(--crew);font-size:16px;margin:8px 0}.workshop-item p{font-size:14px;line-height:1.45;min-height:62px}.workshop-item button{width:100%;font-size:14px}.workshop-swatch{font-size:30px;color:var(--crew)}
.difficulty-picker{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px;margin:12px 0 4px}.difficulty-picker select{font:inherit;color:#e6fff8;background:#123044;border:1px solid #8ee5d766;border-radius:9px;padding:9px 14px}#storycard{position:absolute;z-index:12;left:12px;right:12px;bottom:22px;padding:18px;background:#061d2ff5;border:1px solid #b7e9d877;border-radius:18px;box-shadow:0 10px 35px #0008;text-align:left}#storycard h2{font-family:SkyArcade,system-ui;font-size:22px;color:#ffe0a5;margin:0 0 10px}#storycard p{font-size:16px;line-height:1.5;color:#e4f5f1;margin:0 0 14px}#storycard button{font-size:16px;width:100%;min-height:44px}#storycard[hidden]{display:none}#skipcinema{z-index:14}

#titlemusic{min-height:40px;font-size:14px;color:#ffe3a1;border:1px solid #b88e57;border-radius:8px;background:#173b46;padding:8px 12px}#titlemusic[aria-pressed=true]{color:#b8ffe3;border-color:#63baa0}.menu-help{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}

/* Keep the longer Bounce title clear of Brindle's portrait on small phones. */
.launch-banner h1{right:98px;font-size:clamp(25px,7.2vw,34px);letter-spacing:-1px;transform:rotate(-3deg)}.launch-banner h1 em{font-size:1.08em;letter-spacing:-1px}.launch-stamp{font-size:14px!important;line-height:1.35;letter-spacing:0;left:0;right:0;bottom:0;padding:6px 8px;text-align:center;transform:none}.wordmark{font-size:clamp(14px,4.3vw,20px);letter-spacing:-.6px}.wordmark small{font-size:10px}

/* Keep the rescue action visible above the single reading panel. */
#storycard{padding:14px}#storycard h2{font-size:20px;margin-bottom:8px}#storycard p{line-height:1.35;margin-bottom:10px}

/* Wider atlas cells retain spread limbs without shrinking the standing crew. */
#home .menu-crew,.result-crew,.crew-portrait{background-size:600% 200%;background-position:5% 0}
.result-crew{background-position:65% 100%}
#results.victorious .result-crew{background-position:35% 100%}

@font-face{font-family:GameText;src:url('baloo2.ttf') format('truetype');font-weight:400 800;font-style:normal;font-display:swap}
body,body *{font-family:GameText,system-ui,sans-serif!important}
.card p,.panel-note,.crew-info p{font-size:16px;line-height:1.45}
.archive-member{display:flex;align-items:center;width:100%;text-align:left;margin:12px 0;padding:8px 20px 8px 4px;border:1px solid var(--crew);background:linear-gradient(110deg,#234657,#102132);border-radius:20px;gap:16px}
.archive-member .crew-portrait{height:120px;width:60px;flex-shrink:0}
.archive-member strong{display:block;font-size:27px;color:var(--crew);line-height:1.2}.archive-member small{display:block;font-size:16px;color:#c8dce7}.archive-member em{display:block;font-size:16px;color:#fff;margin-top:10px;font-style:normal}
.bio-page{--crew:#ffd08d}.bio-back{border:0;background:transparent;font-size:16px;color:#d3e7ed;padding-left:0}.bio-hero{text-align:center;padding:12px 18px 24px;border-radius:24px;background:radial-gradient(ellipse at 50% 30%,#386373,#0a2335 70%);border-bottom:3px solid var(--crew);margin:14px 0 26px}.bio-hero .crew-portrait{width:120px;height:240px;margin:0 auto}.bio-role{color:var(--crew);font-size:17px}.bio-hero h3{font-size:42px;margin:0;line-height:1.1}.bio-hero blockquote{margin:14px 0 0;font-size:20px;line-height:1.4;color:#fff0ce}.bio-page section{margin:22px 0}.bio-page h4{font-size:22px;color:var(--crew);margin:0 0 8px}.bio-page p{font-size:18px;line-height:1.6;margin:8px 0;color:#dbeaf3}.bio-mission{border-left:3px solid var(--crew);padding:12px 16px;background:#ffffff08;border-radius:0 14px 14px 0}.lore-intro p,.lore-body p{font-size:18px;line-height:1.55}

.power-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.power-guide button{display:flex;flex-direction:column;align-items:center;min-width:0;gap:8px;padding:14px 8px;border-color:var(--crew);background:#112d40}.power-guide strong{font-size:18px;line-height:1.2}.power-guide small{font-size:14px;color:#ccdee8}.guide-icon{display:block;width:86px;height:86px;background-image:url('/power-atlas.webp');background-size:400% 400%;border-radius:16px}.power-detail{padding:20px 8px;text-align:center}.power-detail .guide-icon{width:144px;height:144px;margin:auto}.power-detail h3{font-size:30px;color:var(--crew);margin:14px 0}.power-detail p{font-size:18px;line-height:1.6}.power-detail>strong{font-size:18px;color:#ffe2a8}.preview-tile{position:relative;width:100%;padding:0!important;overflow:hidden;border:1px solid #476776;border-radius:16px;background:#0c2335}.preview-tile canvas{display:block;width:100%;height:auto;aspect-ratio:8/5}.preview-tile span{position:absolute;bottom:5px;right:8px;font-size:14px;color:#fff;background:#071827b0;padding:0 6px;border-radius:5px}.cosmetic-detail{width:100%;height:auto;aspect-ratio:8/5;border-radius:20px;margin:18px 0}.owned-label{display:block;font-size:14px;color:#bcd5df;margin:8px 0}.workshop-item h4{font-size:20px}.workshop-item p{font-size:16px;line-height:1.4}#again{min-height:56px;font-size:24px;width:100%}

/* A short, noninteractive launch reveal; replay attempts remain immediate. */
#arena.launch-presentation #game{transform-origin:50% 94%;animation:launch-camera 3.2s cubic-bezier(.2,.7,.3,1) both}
#countdown.launch-card{z-index:18;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:24% 18px 0;background:linear-gradient(#03101be8 0%,#071b3280 40%,transparent 68%);text-align:center;text-shadow:0 3px 16px #000;font-family:GameText;pointer-events:none}
.launch-card::before,.launch-card::after{content:'';position:absolute;left:0;right:0;height:9%;background:#020710;animation:launch-bars 3.2s ease both}
.launch-card::before{top:0}.launch-card::after{bottom:0}
#countdown.launch-card small{font-size:14px;letter-spacing:3px;color:#9ef9e2;animation:launch-type 3.2s both}
#countdown.launch-card strong{font-size:clamp(25px,8vw,38px);line-height:1.1;max-width:12ch;margin:14px 0;color:#fff2c5;animation:launch-type 3.2s .12s both}
#countdown.launch-card span{font-size:17px;color:#d1e8f7;animation:launch-type 3.2s .2s both}
#countdown.launch-card .launch-call{font-size:18px;letter-spacing:2px;margin-top:26px;color:#ffcf83;animation:launch-call 3.2s both}
@keyframes launch-camera{0%{transform:scale(1.55);filter:brightness(.5)}45%{filter:brightness(1)}100%{transform:scale(1);filter:brightness(1)}}
@keyframes launch-bars{0%,65%{transform:scaleY(1)}100%{transform:scaleY(0)}}
@keyframes launch-type{0%{opacity:0;transform:translateY(12px)}18%,70%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-8px)}}
@keyframes launch-call{0%,52%{opacity:0;transform:scale(.94)}68%,87%{opacity:1;transform:scale(1)}100%{opacity:0}}
.calm #arena.launch-presentation #game{animation:none}.calm .launch-card::before,.calm .launch-card::after{animation:none}.calm #countdown.launch-card small,.calm #countdown.launch-card strong,.calm #countdown.launch-card span,.calm #countdown.launch-card .launch-call{animation:none}

/* Pre-flight crew selection: every hero visible, no interruption once airborne. */
#characterselect{--hero:#ffc078;width:100%;padding:20px 16px;background:radial-gradient(ellipse at 15% 28%,#284e63,transparent 65%),#0b2432;border:2px solid var(--hero);border-radius:24px;box-shadow:0 12px 50px #0009;text-align:left;transform:none}
#characterselect h2{font-family:SkyArcade,system-ui;font-size:21px;margin:10px 0;color:#fff1c1;text-align:center}#select-destination{display:block;text-align:center;font-size:11px;letter-spacing:1px}
.select-hero{display:grid;grid-template-columns:44% 1fr;align-items:center;gap:8px;min-height:180px}.select-hero canvas{width:100%;height:auto}.select-hero h3{font-family:SkyArcade,system-ui;font-size:23px;color:var(--hero);margin:8px 0 12px}.select-hero small{color:#b9d5de}.select-hero strong{font-size:15px;color:var(--hero)}#select-description{font-size:14px;line-height:1.4;margin:8px 0}
.select-roster{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.select-roster button{padding:4px 1px 8px;min-width:0;background:#102f40;border:1px solid #456776;display:flex;flex-direction:column;align-items:center}.select-roster button[aria-pressed=true]{border-color:var(--hero);background:#315568;box-shadow:0 0 0 1px var(--hero)}.select-roster .crew-portrait{width:48px;height:64px;background-size:400% 200%;margin:auto}.select-roster b{font-size:12px}.select-roster small{font-size:10px;color:#b5cad4}
#select-status{font-size:12px;line-height:1.4;min-height:36px;margin:12px 0;color:#c6dce6}#select-launch,#select-back{width:100%}#select-launch{font-size:16px}#select-back{margin-top:6px;font-size:13px}#characterselect button:focus-visible{outline:3px solid #fff;outline-offset:2px}


/* Brief cold-launch signature; the full story cinematic remains in Story mode. */
#launch-intro{position:fixed;inset:0;z-index:1000;width:100%;height:100%;border:0;border-radius:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;color:#f1fff9;background:radial-gradient(ellipse at 50% 45%,#174552 0%,#101a36 48%,#080e20 100%);animation:opening-exit .3s 1.7s ease-in both;touch-action:manipulation}
#launch-intro[hidden]{display:none}
.opening-hero{display:block;width:110px;height:220px;background:url('crew-courier.webp') 5% 0/600% 200% no-repeat;filter:drop-shadow(0 12px 12px #0008);animation:opening-bounce .8s cubic-bezier(.2,.7,.3,1) both}
.opening-title{font:900 clamp(34px,10vw,52px)/1.05 SkyArcade,system-ui;letter-spacing:2px;text-align:center;text-shadow:0 4px #07101f;animation:opening-title .45s .35s ease-out both}
.opening-title em{font-style:normal;color:#9cffda}.opening-tagline{font:600 14px system-ui;color:#c6e9ec;animation:opening-title .4s .55s ease-out both}.opening-skip{position:absolute;bottom:max(28px,env(safe-area-inset-bottom));font:500 13px system-ui;color:#c6e9ec}
@keyframes opening-bounce{0%{opacity:0;transform:translateY(100px) scale(.85)}50%{opacity:1;transform:translateY(-22px) scale(1.03)}75%{transform:translateY(6px) scale(.98)}100%{transform:translateY(0) scale(1)}}
@keyframes opening-title{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes opening-exit{to{opacity:0}}
@media(prefers-reduced-motion:reduce){#launch-intro,.opening-hero,.opening-title,.opening-tagline{animation:none}}

/* Expansion: generous touch targets and modest, static surfaces. */
.creator-credit{display:block;font:600 14px GameText,sans-serif;letter-spacing:.03em;margin-top:12px;color:#d7efff}
.shop-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#baffdf;font-weight:800}
.shop-tabs{display:flex;gap:7px;overflow:auto;padding:12px 0}.shop-tabs button{min-width:66px;min-height:44px}.shop-tabs button[aria-pressed=true]{background:#baffdf;color:#092734}
#shop-preview{display:block;width:100%;max-width:420px;height:auto;border:1px solid #426178;border-radius:20px;margin:12px auto}
.shop-card{background:linear-gradient(145deg,#243449,#111d31);border:1px solid #456076;border-radius:16px;padding:16px;margin:12px 0}.shop-card h3{margin:5px 0 8px}.shop-card p{font-size:14px;line-height:1.5;color:#d6e5ee}.shop-card button{min-height:44px;margin:4px;white-space:normal}.shop-tier{font-size:11px;letter-spacing:.12em;color:#abdecf;font-weight:800}
#starting-boost{text-align:left;background:#102135;border:1px solid #426778;border-radius:12px;padding:10px;margin:8px 0}#starting-boost label{display:grid;gap:6px}#boost-tier{min-height:44px;width:100%;background:#172d43;color:white;border:1px solid #6996ac;border-radius:8px;padding:6px;font:inherit}#starting-boost p{margin:6px 0 0}
#characterselect{max-height:100%;overflow-y:auto}#shop-message{color:#baffdf;line-height:1.5}#double-crystals{margin:8px 0;min-height:48px;background:#254b52;color:#c7ffdc}

#paid-boost{position:absolute;left:12px;bottom:145px;z-index:12;min-height:48px;padding:12px 18px;border:2px solid #ffe198;background:#593990;color:white;font-weight:900;touch-action:manipulation}
/* Skyway Exchange: compact phone departments, generous tap targets and an original host. */
.shop-shell{--shop-gold:#ebcf95;--shop-mint:#b7f1dd;color:#e8eef2;font-family:GameText,system-ui,sans-serif}.shop-head{font-size:16px;flex-wrap:wrap}.shop-head button{font-size:14px;min-height:44px}.merchant{position:relative;isolation:isolate;display:flex;align-items:center;min-height:210px;margin:16px 0 6px;border:1px solid #967c5066;border-radius:22px;overflow:hidden;background:radial-gradient(ellipse at 18% 70%,#335851 0,transparent 60%),linear-gradient(120deg,#1b343f,#152433)}.merchant img{position:relative;width:43%;height:auto;align-self:flex-end;z-index:1;filter:drop-shadow(0 7px 9px #00101988)}.merchant>div:last-child{padding:18px 16px 18px 0;flex:1;z-index:1}.merchant h3{font-size:24px;line-height:1.08;margin:9px 0;color:#f5dfb5}.merchant p{font-size:14px;line-height:1.45;margin:0;color:#d0e2df}.merchant .shop-tier{font-size:9px;letter-spacing:.1em}.merchant-orbit{position:absolute;inset:24px 45% 20px -20px;border:1px solid #bde0c73d;border-radius:50%;transform:rotate(-25deg)}.shop-sections{position:sticky;top:0;z-index:3;background:#102130;padding:10px 0;gap:5px;scrollbar-width:none}.shop-sections button{flex:1;font-size:14px;padding:10px 7px;min-width:0;border-radius:12px}.shop-card{box-shadow:0 8px 22px #00000012;background:linear-gradient(140deg,#203545,#142434);border-color:#536c794f;margin:0;padding:18px}.shop-card h3{font-size:23px;line-height:1.2;color:#f3ead7}.shop-card button{display:block;width:100%;margin:8px 0 0;font-size:16px}.shop-card .shop-buy{background:#b7efda;color:#153830;border-color:#b7efda;font-weight:800}.shop-card .gem-buy{background:#203e48;color:#c5f6e6;border-color:#7eb8ad66}.shop-card button:disabled{opacity:.55}.shop-saving{display:inline-block;padding:4px 9px;margin:4px 0;border-radius:7px;background:#234c41;color:#cbf4d4;font-size:13px}.platinum-card{position:relative;background:radial-gradient(ellipse at top right,#75694455,transparent 70%),linear-gradient(140deg,#273948,#172631);border:1px solid #c9ae76;padding:22px;margin-bottom:12px}.platinum-card h3{font-size:31px;color:#ffe7b5}.platinum-card .shop-buy{background:#f0d69e;border-color:#f0d69e;color:#302b21}.shop-product-grid,.outfit-grid{display:grid;grid-template-columns:1fr;gap:12px;margin:12px 0}.shop-fitting{text-align:center;padding:2px 0 16px}.shop-fitting h3{font-size:22px}.shop-fitting #shop-preview{margin-top:0}.outfit-grid .shop-card{border-left:3px solid var(--outfit)}.shop-footnote{font-size:12px;line-height:1.5;color:#b5c5d0;margin:22px 2px 8px}.shop-link{width:100%;min-height:48px}.gem-purpose{padding:18px 0}.gem-purpose h3{font-size:25px;line-height:1.2;color:#f5dfb5}.gem-purpose p{font-size:15px;line-height:1.5}.gem-purpose button{display:block;width:100%;min-height:46px;margin:8px 0}.shop-shell #shop-message:empty{display:none}.shop-shell #shop-message{font-size:14px;padding:10px;border-radius:10px;background:#234137}.shop-shell>.shop-card+.shop-card{margin-top:12px}@media(min-width:600px){.shop-product-grid,.outfit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.merchant img{width:180px}.merchant h3{font-size:30px}.merchant p{font-size:17px}}@media(prefers-reduced-motion:reduce){.shop-shell *{scroll-behavior:auto}}

/* Skyway Exchange: approved navy/brass panels with the real runtime artwork. */
dialog:has(.shop-shell){width:min(96vw,800px);max-height:94dvh;padding:16px;background:#081c2b;border:1px solid #b99756;border-radius:22px}dialog:has(.shop-shell) .panelhead{border-bottom:1px solid #ae89584d;padding-bottom:10px}dialog:has(.shop-shell) .panelhead h2{color:#f8dd9f;font-family:GameText,serif;font-size:25px}.shop-shell{--shop-gold:#ebcc89;--shop-mint:#a5f1db}.shop-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 12px;color:#c7f6ee}.shop-head button{background:transparent;border:1px solid #7d9b9e;color:#e5f4ef;font-size:12px;padding:7px 10px;min-height:40px}.shop-sprite{display:block;aspect-ratio:3/4;background-repeat:no-repeat;background-size:400% 200%;background-position:0 0;filter:drop-shadow(0 7px 5px #0006)}.merchant{display:flex;min-height:156px;margin:0;align-items:center;border:1px solid #b59761;border-radius:16px;isolation:isolate;background:linear-gradient(100deg,#11273c55,#123047c9),url('sky.jpg') center 35%/cover}.merchant::before{content:'';position:absolute;inset:0;border:8px solid #b28c4733;pointer-events:none}.merchant .merchant-portrait{width:140px;flex:0 0 140px;align-self:flex-end;margin:0 -10px -24px -4px;z-index:1}.merchant .merchant-copy{padding:14px 16px 27px 5px;z-index:2;min-width:0}.merchant h3{font-size:23px;margin:6px 0;color:#ffe2a4;text-shadow:0 2px 3px #0008}.merchant p{font-size:13px;line-height:1.4;color:#f4f0dd}.merchant .shop-tier{color:#e1c58d;font-size:9px}.merchant-counter{position:absolute;inset:auto 0 0;height:19px;background:linear-gradient(#cdad6f,#8d6b38 35%,#382d24 40%,#5c472d);border-top:2px solid #eccf8c;z-index:3}.merchant-featured{min-height:252px}.merchant-featured .merchant-portrait{width:190px;flex-basis:190px;margin-left:-10px}.merchant-featured .merchant-copy{padding-left:0}.merchant-featured h3{font-size:27px}.shop-sections{margin:0 0 12px;padding:12px 0;background:#081c2bf5;backdrop-filter:blur(8px);display:flex}.shop-sections button{border-radius:9px;border:1px solid #657d87;background:#0b2333;color:#f4e4c1;font-weight:700;min-height:45px;font-size:15px}.shop-sections button[aria-pressed=true]{background:linear-gradient(#fff0bf,#dfbe74);color:#241e17;border-color:#ffdda0;box-shadow:inset 0 0 0 2px #88673a60}.shop-crew-tabs{display:flex;gap:7px;overflow:auto;padding:3px 0 14px;scrollbar-width:thin}.shop-crew-tabs button{display:flex;flex-direction:column;align-items:center;flex:0 0 62px;padding:4px;border:1px solid transparent;border-radius:12px;background:transparent;font-size:12px;gap:4px}.shop-crew-tabs button[aria-pressed=true]{border-color:#e2c88c;background:#36514c}.shop-crew-tabs .shop-sprite{width:48px;height:64px;aspect-ratio:auto}.department-title,.department-heading h3,.gem-purpose h3{color:#f6daa0;font-size:25px;line-height:1.15}.department-heading{text-align:center;margin:8px 0 20px}.department-heading p{font-size:14px;color:#c4d8dc;margin:7px 0}.shop-card{padding:0;border:1px solid #b79c66;border-radius:15px;background:linear-gradient(130deg,#183c50,#0a2335 70%);overflow:hidden;box-shadow:inset 0 0 0 3px #d5b57510,0 6px 12px #0002}.shop-card-copy{padding:16px;min-width:0}.shop-card h3{font-size:23px;color:#ffe0a2;margin:5px 0 8px}.shop-card p{font-size:14px;line-height:1.45;color:#cedcdf;margin:8px 0}.shop-card .shop-tier{font-size:9px;letter-spacing:.1em;color:#d2c5a0}.shop-card .shop-buy{background:linear-gradient(#fff0b5,#e3bd61);color:#28220f;border:1px solid #ffe6a0;box-shadow:inset 0 0 0 2px #886b3655;font-weight:800;min-height:46px}.shop-card .gem-buy{background:linear-gradient(#bcffeb,#48c6a4);color:#073e36;border:1px solid #a8ffe2;box-shadow:inset 0 0 0 2px #257c6155;font-weight:800;min-height:46px}.shop-card button:disabled{opacity:.62;box-shadow:none;cursor:default}.shop-card .preview-button{min-height:40px;font-size:13px;background:#091c2b7a;color:#d0f1ec;border:1px solid #77a9ad80}.product-art{position:relative;height:160px;display:flex;align-items:flex-end;justify-content:center;gap:0;background:radial-gradient(ellipse at bottom,#58b1c34d,transparent 65%),linear-gradient(#173a5155,#0c233bd9),url('sky.jpg') center/cover;overflow:hidden}.product-art .shop-sprite{width:112px;flex:0 0 112px}.duo-art .shop-sprite{width:105px;flex-basis:105px;margin:0 -6px}.platinum-art{height:228px;border-bottom:1px solid #b99756}.platinum-art .shop-sprite{width:142px;flex:0 1 142px;min-width:0;transform:translateY(12px)}.platinum-art .shop-sprite:nth-child(2){z-index:1;transform:scale(1.1) translateY(7px)}.platinum-seal{position:absolute;right:15px;top:14px;font-size:32px;color:#f9d57a;text-shadow:0 0 20px #ffbd36}.platinum-card{padding:0;margin-bottom:16px;border:2px solid #ddbd79}.platinum-card h3{font-size:32px}.platinum-card .shop-card-copy{padding:18px 20px}.shop-saving{background:#315443;color:#daf8da;border:1px solid #9fbf7055}.shop-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 24px}.shop-shortcuts button{position:relative;display:flex;align-items:center;flex-direction:column;padding:12px 8px;border:1px solid #bca069;border-radius:14px;min-width:0;background:linear-gradient(#28495e,#0b2234);color:#f7dea8}.shop-shortcuts .shop-sprite{width:100px}.shop-shortcuts b{font-size:17px;line-height:1.2}.outfit-grid,.ability-grid{display:grid;grid-template-columns:1fr;gap:13px;margin:12px 0}.outfit-card{display:grid;grid-template-columns:36% 1fr;align-items:center;border-left:1px solid #b79c66}.outfit-card>.shop-sprite{width:100%;align-self:center;margin-top:0;background-color:#17374740}.outfit-card .shop-card-copy{padding:15px 12px}.outfit-card h3{font-size:21px}.outfit-card p{font-size:13px}.shop-fitting{border:1px solid #d9b978;border-radius:15px;margin-bottom:18px;background:radial-gradient(ellipse at center,#2f5964,#0a2234);padding:10px;scroll-margin-top:80px}.shop-fitting[hidden]{display:none}.shop-fitting canvas{width:100%;max-width:420px;height:auto}.shop-fitting h3{color:#ffe3a8}.ability-card{display:grid;grid-template-columns:38% 1fr;align-items:center}.ability-preview{width:100%;height:auto;background:radial-gradient(ellipse,#3454675c,transparent)}.ability-card .shop-card-copy{padding:15px 12px}.ability-card h3{font-size:21px}.ability-card .cooldown-label{color:#f0d498;font-size:12px}.shop-goals{display:grid;grid-template-columns:1fr 1fr;gap:8px}.gem-purpose button{font-size:14px;background:#1b3b49;border-color:#587c80;color:#d5f6ea}.gem-grid{grid-template-columns:1fr 1fr}.gem-grid .shop-card-copy{padding:13px 10px}.gem-grid h3{font-size:20px}.gem-grid p{font-size:12px}.gem-illustration{height:138px;position:relative;overflow:hidden;background:radial-gradient(ellipse at bottom,#328d99,transparent 70%)}.gem-illustration i{position:absolute;left:25%;bottom:24px;width:29px;height:47px;clip-path:polygon(50% 0,100% 30%,85% 75%,50% 100%,15% 75%,0 30%);background:linear-gradient(100deg,#dcffff 0 25%,#55dae4 26% 51%,#138caa 52% 75%,#a2ffff 76%);transform:rotate(var(--tilt));filter:drop-shadow(0 0 4px #aeffef)}.gem-tray{position:absolute;inset:auto 12% 12px;height:27px;border:2px solid #d5af6a;border-radius:4px 4px 15px 15px;background:linear-gradient(#be9552,#483c28)}.ad-illustration{align-items:center}.ad-illustration>span{font-size:60px;line-height:1;color:#9bbeca;border:2px solid #b4dadf;border-radius:14px;padding:3px 22px}.ad-illustration>b{font-size:30px;color:#aefbce;position:absolute;left:60%;top:45%}.ad-illustration small{position:absolute;bottom:12px;font-size:9px;letter-spacing:.12em;color:#d6e7e4}.shop-footnote{border-top:1px solid #d3b27344;padding-top:18px;color:#a9c0c9;font-size:11px;line-height:1.6}.shop-card button:focus-visible,.shop-sections button:focus-visible{outline:3px solid #a2fff1;outline-offset:2px}@media(min-width:600px){.outfit-grid,.ability-grid{grid-template-columns:1fr 1fr}.merchant-featured{min-height:260px}.merchant-featured .merchant-portrait{width:210px;flex-basis:210px;margin-left:70px}.merchant-featured h3{font-size:36px}.merchant .merchant-copy{max-width:350px}.gem-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:370px){dialog:has(.shop-shell){padding:10px}.merchant-featured .merchant-portrait{width:145px;flex-basis:145px}.merchant-featured h3{font-size:23px}.shop-card h3{font-size:19px}.shop-sections button{font-size:13px;padding:8px 4px}}
.shop-shell .merchant>.merchant-counter{padding:0;flex:none;z-index:3}.shop-fitting #shop-preview{height:auto;margin:0 auto}.gem-illustration i{left:25%;bottom:24px}

/* Simulator review: isolate canvas sizing from its backing resolution and keep controls readable. */
#game{position:absolute;inset:0;width:100%;height:100%}
#home button.primary,#results button.primary{appearance:none;-webkit-appearance:none;background-color:#ffdc99;background-image:linear-gradient(135deg,#ffe5a2,#ffba68);color:#30261e}
.shop-crew-tabs button[aria-pressed=true]{color:#fff0c9}

/* Presentation refresh: fixed modal chrome, a single scroll area, generous phone previews. */
:root{--panel-surface:#0b2632;--panel-border:#b99756;--copy-muted:#c4d8df}
button{min-height:44px}button:disabled{cursor:default}
dialog[open],dialog[open]:has(.shop-shell){display:flex;flex-direction:column;overflow:hidden;width:min(94vw,760px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);padding:0;border:1px solid var(--panel-border);border-radius:22px;background:var(--panel-surface)}
dialog .panelhead,dialog:has(.shop-shell) .panelhead{flex:none;margin:0;padding:14px 16px;border-bottom:1px solid #b9975644;background:#0b2632;gap:12px;z-index:5}
.panelhead h2,dialog:has(.shop-shell) .panelhead h2{font-size:22px;line-height:1.2;color:#ffe0a2;overflow-wrap:anywhere}.panelhead button{width:44px;min-width:44px;height:44px;background:#183c49;border:1px solid #6e8d92}
#panelbody{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px;scroll-padding-top:132px;-webkit-overflow-scrolling:touch}
#panelbody [hidden]{display:none!important}
.shop-head{position:sticky;top:-16px;z-index:4;background:#0b2632;margin:-16px -16px 0;padding:10px 16px;min-height:60px;flex-wrap:nowrap;border-bottom:1px solid #b9975633}.shop-head>span{font-size:14px;font-weight:800}.shop-head button{font-size:12px;min-height:40px}
.shop-sections{position:sticky;top:44px;z-index:4;margin:0 -16px 16px;padding:10px 16px;background:#0b2632;backdrop-filter:none;border-bottom:1px solid #b9975633}.shop-sections button{font-size:14px;min-height:44px}
.merchant-featured{min-height:190px}.merchant-featured .merchant-portrait{width:145px;flex-basis:145px}.merchant-featured h3{font-size:24px}
.ability-card{display:flex;flex-direction:column;align-items:stretch}.ability-preview{width:100%;height:240px;object-fit:contain;background:radial-gradient(ellipse at 50% 65%,#267c8c88,transparent 70%),#0c273a;border-bottom:1px solid #b9975644}.ability-card .shop-card-copy{padding:18px}.ability-card h3{font-size:24px}.ability-card p{font-size:15px;line-height:1.55}.ability-card .cooldown-label{font-size:14px}
.shop-fitting{scroll-margin-top:130px}.shop-card button,.shop-card .preview-button{min-height:46px}.shop-card-copy{overflow-wrap:break-word}.shop-card button:disabled{opacity:1;background:#24414b;color:#b5c9ce;border-color:#587078;box-shadow:none}
.section-tabs{display:flex;gap:8px;margin:16px 0}.section-tabs button{flex:1;padding:10px 8px;min-width:0;font-size:14px;background:#143b48}.section-tabs button[aria-pressed=true]{background:linear-gradient(#ffe9ad,#d6ad65);color:#282116;border-color:#ffdda0;font-weight:800}
.menu-section{padding:18px;border:1px solid #65838866;border-radius:16px;background:linear-gradient(135deg,#173c49,#0d2937);margin-bottom:16px;text-align:left}.menu-section h3{margin:0 0 12px;color:#ffe0a2;font-size:21px}.menu-section p{font-size:15px;line-height:1.55;color:var(--copy-muted)}
.setting{margin:16px 0}.setting>span{display:flex;justify-content:space-between;gap:12px}.setting output{color:#ffe0a2;font-variant-numeric:tabular-nums;white-space:nowrap}.setting input[type=range]{height:32px;margin-top:8px}.button-pair{display:flex;gap:10px;flex-wrap:wrap}.button-pair button{flex:1}
.selected-upgrade{display:flex;align-items:center;gap:16px;margin-bottom:16px}.selected-upgrade .crew-portrait{flex:none;width:96px;height:128px;background-size:400% 200%}.selected-upgrade h3{font-size:27px;margin:6px 0}.crew-wallet strong{font-size:21px}.crew-wallet span{font-size:13px}.upgrade-row{align-items:flex-start}.upgrade-row button{min-width:90px}.crew-card{grid-template-columns:90px minmax(0,1fr)}.crew-card .crew-portrait{width:90px;height:120px}.crew-info p{font-size:14px}.crew-info button{white-space:normal}
.workshop-grid{grid-template-columns:1fr;gap:16px}.workshop-item{padding:16px;border-radius:16px}.workshop-item h4{font-size:23px;margin:12px 0 8px}.workshop-item p{font-size:15px;line-height:1.5}.workshop-item>button{width:100%;min-height:46px}.preview-tile canvas{width:100%;height:auto;aspect-ratio:8/5}.preview-tile{width:100%}
.reward-card h3{font-size:28px;margin-top:8px}.reward-card progress{display:block;width:100%;height:16px;accent-color:#76efd5;margin:14px 0}.reward-card .primary{width:100%;margin-top:16px}.reward-card button:disabled{background:#24414b;color:#b5c9ce;box-shadow:none;opacity:1}
.mission-card,.record-card{border:1px solid #688d9055;border-radius:14px;background:#143644;padding:16px;margin:10px 0}.mission-card strong{font-size:18px;margin-top:8px}.record-card strong{font-size:32px;font-variant-numeric:tabular-nums;margin-top:6px}.panelrow.locked{opacity:1;color:#a5bcc5}.panelrow.locked strong{color:#b7c5c9}
.more-navigation{display:grid;gap:12px}.more-navigation button{display:grid;grid-template-columns:1fr auto;text-align:left;padding:18px;background:linear-gradient(125deg,#1c4554,#102d3d);border-color:#688d9077}.more-navigation strong{font-size:19px;color:#ffe0a2}.more-navigation span{grid-column:1;font-size:14px;color:#c4d8df;margin-top:6px}.more-navigation b{grid-column:2;grid-row:1/3;align-self:center;font-size:28px}
.lore-intro{margin-top:22px;padding:16px;border:1px solid #688d9066;border-radius:14px}.lore-intro summary{font-size:18px;font-weight:800;color:#ffe0a2;cursor:pointer}.lore-intro[open] summary{margin-bottom:16px}.bio-back{position:sticky;top:-16px;z-index:2;background:#0b2632;width:100%;text-align:left;margin-bottom:12px}.guide-row canvas{width:100%;max-width:160px;height:80px;margin:0 auto 10px}.guide-row{padding:18px;border:1px solid #688d9066;border-radius:14px;margin:12px 0}
#home .launch-banner{height:120px;margin:0 0 6px}#home .launch-banner h1{font-size:32px;top:15px;left:10px;margin:0}#home .launch-banner h1 em{font-size:1.45em}#home .menu-crew{height:120px;width:90px;top:0;right:8px;background-size:400% 200%}#home .launch-banner .eyebrow{font-size:9px}#home .launch-stamp{font-size:9px;bottom:0}
#home #chaptercopy{font-size:12px;line-height:1.35;margin:6px auto}#home .crew-status{font-size:13px;margin:6px 0!important}#home .difficulty-picker{margin:8px 0 0}#home #difficulty-note{font-size:11px;margin:4px 0;line-height:1.3}#home #modehelp{font-size:11px;line-height:1.3;margin:6px 0}#home .mode-tabs{margin:8px 0}#home .mode-tabs button{min-height:42px}#home .levelselect{margin:8px 0}#home #play{margin:10px 0 8px;padding:12px}#home .home-navigation{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}#home .home-navigation button{font-size:15px;min-height:46px;background:#163d4c;border:1px solid #658c9066}.home-extras{display:flex;gap:8px;justify-content:center}.home-extras button{font-size:11px;padding:6px 8px;background:transparent;border:0;min-height:40px}
#characterselect .select-hero{margin:10px 0}#characterselect #select-description{font-size:14px;line-height:1.45}#starting-boost label{display:block;text-align:left;font-size:14px}#starting-boost select{margin-top:6px}#select-status{font-size:14px;line-height:1.4}.select-roster button{min-height:44px}#results #rewards{padding:12px;background:#173e48;border-radius:12px;color:#b5ffe3}#results .navgrid{gap:8px}#results .navgrid button{min-height:46px}#results #reason{font-size:14px}
@media(min-width:600px){.workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ability-preview{height:250px}.merchant-featured .merchant-portrait{margin-left:40px}}
@media(max-height:740px){#home .launch-banner{height:96px}#home .menu-crew{height:96px;width:72px}#home .launch-banner h1{font-size:26px}#home #chaptercopy{display:none}}

#home #chaptercopy{display:none}#home .levelselect button{min-width:44px;min-height:44px}#home .launch-banner h1{font-size:30px;line-height:1.08}#home .launch-banner h1 em{font-size:1.25em}#overlay{align-items:safe center}

/* Keep wallet and tabs together when long balances or larger text wrap. */
.shop-navigation{position:sticky;top:-16px;z-index:4;margin:-16px -16px 16px;background:var(--panel-surface)}
.shop-navigation .shop-head{position:static;margin:0;padding:10px 16px;flex-wrap:wrap;gap:8px}
.shop-navigation .shop-sections{position:static;margin:0;padding:10px 16px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.shop-navigation .shop-sections button{min-width:0;white-space:normal;overflow-wrap:anywhere;padding:10px 4px}

/* Story ending: canonical character artwork, separate from Gallery replay. */
.story-ending{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(100%,560px);height:100dvh;max-width:100%;max-height:100dvh;border:0;border-radius:0;padding:0;color:#fff6da;background:radial-gradient(ellipse at 50% 40%,#534222 0,#151d31 45%,#050b18 85%);text-align:center;overflow:hidden}
.story-ending::backdrop{background:#030812}
.ending-scroll{height:100%;overflow-y:auto;box-sizing:border-box;padding:calc(64px + env(safe-area-inset-top)) 28px calc(30px + env(safe-area-inset-bottom))}
.ending-eyebrow{display:block;font-size:12px;font-weight:900;letter-spacing:.2em;color:#f8d582}
.story-ending h1{font-size:clamp(36px,10vw,58px);line-height:1;letter-spacing:.04em;margin:22px 0;color:#fff2bb;text-shadow:0 4px 0 #513724,0 0 30px #f4b64e55}
.story-ending h1 em{color:#ffc763;font-style:normal}
.ending-credit-list p{font-size:19px;line-height:1.6;margin:28px 0}
.ending-credit-list small{display:block;font-size:13px;color:#b9cadc;line-height:1.6;margin-bottom:6px}
.ending-copyright{font-size:11px;color:#bcc8d4;margin:32px 0}
.ending-skip{position:absolute;top:calc(12px + env(safe-area-inset-top));right:16px;min-height:44px;background:#081120e8;color:#fff1cc;border:1px solid #d7ab6166;border-radius:20px;padding:8px 16px}
.story-ending .primary{width:100%;max-width:320px;min-height:50px;background:linear-gradient(135deg,#ffe19a,#ecad43);color:#211809;border:1px solid #fff2b0;box-shadow:0 5px 24px #e7ad4033}
.ending-discovery-inner{box-sizing:border-box;height:100%;overflow-y:auto;display:flex;flex-direction:column;align-items:center;justify-content:safe center;padding:calc(32px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));background-image:radial-gradient(circle at 15% 22%,#ffdd9488 1px,transparent 3px),radial-gradient(circle at 83% 35%,#b4e9ff88 1px,transparent 3px),radial-gradient(circle at 23% 70%,#ffe5aa77 1px,transparent 3px)}
.marlow-medallion{flex-shrink:0;position:relative;width:240px;height:280px;margin:24px 0 0;isolation:isolate;animation:marlow-arrival 1.2s ease-out both}
.marlow-medallion::before{content:'';position:absolute;inset:30px 0 10px;border-radius:50%;border:3px solid #f9d888;background:radial-gradient(circle,#f8c66966,#87662555 55%,#091829 70%);box-shadow:0 0 0 8px #cd9b3833,0 0 70px #f1b54777;z-index:-1}
.marlow-canonical-art{position:absolute;width:210px;height:280px;left:15px;top:0;background-image:url('crew-marlow.webp');background-size:840px 560px;background-position:0 0;background-repeat:no-repeat;filter:drop-shadow(0 8px 9px #0008)}
.ending-discovery h1{margin:8px 0 12px}.ending-discovery p{font-size:16px;margin:8px 0}.ending-discovery .ending-store{color:#ffe0a0;font-weight:800;margin-bottom:26px}.ending-discovery .primary{flex-shrink:0}
.marlow-new{font-size:10px;letter-spacing:.08em;color:#1f1707;background:#ffe19a;border-radius:5px;padding:3px 6px;vertical-align:middle}
@keyframes marlow-arrival{from{opacity:0;transform:scale(.8) translateY(20px);filter:brightness(.15)}to{opacity:1;transform:scale(1) translateY(0);filter:brightness(1)}}
@media(prefers-reduced-motion:reduce){.marlow-medallion{animation:none}}

/* Dedicated launch-only ensemble title; reuses canonical 4 × 2 sprite atlases. */
#launch-intro{isolation:isolate;box-sizing:border-box;overflow:hidden;justify-content:space-between;gap:0;padding:calc(30px + env(safe-area-inset-top)) 10px calc(22px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 48% 46%,#43d4dc 0%,#196d9d 32%,#2e2c71 64%,#080f2c 100%);animation:none;opacity:1;cursor:pointer}
#launch-intro:disabled{opacity:1;cursor:wait}#launch-intro:focus-visible{outline:3px solid #ffe39b;outline-offset:-6px}
.title-atmosphere{position:absolute;inset:0;z-index:-2;background:radial-gradient(circle at 14% 17%,#fff7c8 1px,transparent 3px),radial-gradient(circle at 82% 34%,#fff8df 2px,transparent 4px),radial-gradient(circle at 23% 73%,#bafff5 1px,transparent 3px),radial-gradient(circle at 88% 82%,#f9d5ff 2px,transparent 4px),conic-gradient(from 15deg at 50% 48%,transparent 0deg,#b9ffff14 15deg,transparent 30deg,transparent 55deg,#cfb9ff26 70deg,transparent 90deg,transparent 140deg,#fff0a322 155deg,transparent 180deg,transparent 215deg,#b5fff429 230deg,transparent 250deg,transparent 300deg,#dca4ff22 325deg,transparent 340deg)}
.title-lockup{position:relative;z-index:8;display:block;flex-shrink:0;text-align:center;transform:rotate(-4deg)}
.title-kicker{display:block;color:#cefdf7;font:800 10px system-ui;letter-spacing:.24em;margin-bottom:12px}
#launch-intro .opening-title{display:block;font:900 clamp(43px,13vw,66px)/.91 SkyArcade,system-ui;letter-spacing:.035em;color:#fff0c4;text-shadow:0 3px 0 #b57136,0 6px 0 #173753,0 10px 20px #05142788;animation:none}
#launch-intro .opening-title em{color:#ffd166;font-style:normal;text-shadow:0 3px 0 #ce7731,0 6px 0 #133855,0 9px 18px #09132caa}
.title-ensemble{display:block;position:relative;width:min(100%,440px);height:min(58vh,490px);min-height:260px;flex:1;max-height:490px;margin:4px auto;pointer-events:none}
.title-orbit{position:absolute;inset:19% 8% 5%;border:2px solid #c6fff45c;border-radius:50%;transform:rotate(-24deg);box-shadow:0 0 50px #5be9dd66,inset 0 0 45px #8eeed055}
.title-character{position:absolute;display:block;aspect-ratio:3/4;background-size:400% 200%;background-repeat:no-repeat;background-position:33.333333% 0;filter:drop-shadow(0 12px 7px #06213988);animation:title-float 5s ease-in-out infinite;--tilt:0deg}
.title-brindle{width:48%;left:26%;bottom:2%;z-index:6;background-image:url('crew-courier.webp');--tilt:-7deg;animation-delay:-1s;filter:drop-shadow(0 14px 9px #061d3977) drop-shadow(0 0 6px #fff1a555);background-position:0 100%;}
.title-patch{width:33%;left:2%;top:6%;z-index:2;background-image:url('crew-unit.webp');--tilt:-18deg;animation-delay:-2s;background-position:0 100%;}
.title-veil{width:34%;right:0;top:4%;z-index:2;background-image:url('crew-veil.webp');--tilt:16deg;animation-delay:-3s;background-position:100% 100%;}
.title-marlow{width:27%;left:37%;top:0;z-index:1;background-image:url('crew-marlow.webp');--tilt:5deg;animation-delay:-4s}
.title-riff{width:35%;left:0;bottom:4%;z-index:4;background-image:url('crew-cat-v11.webp');--tilt:-18deg;animation-delay:-.4s;background-position:100% 0;}
.title-bramble{width:38%;right:-1%;bottom:3%;z-index:3;background-image:url('crew-monster.webp');--tilt:14deg;animation-delay:-2.5s;background-position:33.333333% 0;}
.title-entry{position:relative;z-index:8;display:flex;flex-direction:column;align-items:center;gap:12px;flex-shrink:0;width:100%;color:#e4fffa;font:600 14px system-ui}
.title-tagline{font-size:14px;letter-spacing:.04em}
#launch-intro .opening-skip{position:static;display:block;width:min(75vw,290px);box-sizing:border-box;padding:14px 24px;border:1px solid #b8fff499;border-radius:26px;background:#082843cc;box-shadow:0 4px 0 #052335,0 0 26px #64dfe430;color:#fff5cb;font:800 18px system-ui;letter-spacing:.025em;animation:title-prompt 3s ease-in-out infinite}
.opening-skip b{margin-left:14px;color:#ffe19a}.title-entry small{font-size:10px;font-weight:500;color:#aed5e1}
@keyframes title-float{0%,100%{transform:translateY(0) rotate(var(--tilt))}50%{transform:translateY(-7px) rotate(var(--tilt))}}
@keyframes title-prompt{0%,100%{border-color:#b8fff466}50%{border-color:#ffdf9a;box-shadow:0 4px 0 #052335,0 0 24px #78ffe855}}
@media(max-height:650px){#launch-intro{padding-top:16px;padding-bottom:14px}.title-kicker{margin-bottom:7px}.title-entry{gap:7px}#launch-intro .opening-title{font-size:42px}.title-ensemble{min-height:200px}.title-tagline{font-size:12px}#launch-intro .opening-skip{padding:10px 20px}}
@media(prefers-reduced-motion:reduce){.title-character,#launch-intro .opening-skip{animation:none}.title-character{transform:rotate(var(--tilt))}}

/* Brindle wardrobe only: show one complete 4 × 2 atlas cell, without adjacent poses. */
:is(#home,#results,#panel,#characterselect) :is(.menu-crew,.result-crew,.crew-portrait):is([style*="crew-courier.webp"],[style*="skin-sky-post.webp"],[style*="skin-cloud-corsair.webp"],[style*="skin-aurora-courier.webp"]){background-size:400% 200%;background-position:0 0}
#panel .archive-member .crew-portrait:is([style*="crew-courier.webp"],[style*="skin-sky-post.webp"],[style*="skin-cloud-corsair.webp"],[style*="skin-aurora-courier.webp"]){width:90px}
#panel .bio-hero .crew-portrait:is([style*="crew-courier.webp"],[style*="skin-sky-post.webp"],[style*="skin-cloud-corsair.webp"],[style*="skin-aurora-courier.webp"]){width:180px}
#results .result-crew:is([style*="crew-courier.webp"],[style*="skin-sky-post.webp"],[style*="skin-cloud-corsair.webp"],[style*="skin-aurora-courier.webp"]){height:auto;aspect-ratio:3/4;top:0;background-position:66.666667% 100%}
#results.victorious .result-crew:is([style*="crew-courier.webp"],[style*="skin-sky-post.webp"],[style*="skin-cloud-corsair.webp"],[style*="skin-aurora-courier.webp"]){background-position:33.333333% 100%}

/* Full-cell UI portraits use the actual 4 × 2 runtime atlas, with no crop offset. */
.select-roster .crew-portrait,.crew-card .crew-portrait,.selected-upgrade .crew-portrait{background-size:400% 200%;background-position:0 0}

/* Full viewport including safe areas; top-layer dialog covers other modal UI. */
#handoff-curtain{position:fixed;inset:0;margin:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;border:0;padding:0;background:#000;color:#fff;opacity:0;z-index:2147483647;pointer-events:auto;outline:0}
#handoff-curtain::backdrop{background:transparent}

/* Permanent Special: 64px visual, 88px touch area in the lower-right thumb pocket. */
#talent{--special-accent:#89f5ff;position:absolute;left:auto;right:max(16px,env(safe-area-inset-right));bottom:max(66px,calc(18px + env(safe-area-inset-bottom)));width:64px;height:64px;min-width:64px;min-height:64px;max-width:none;padding:0;border:0;border-radius:50%;background:#091928;color:#fff;box-shadow:0 3px 0 #031019,0 5px 12px #0007;touch-action:manipulation;isolation:isolate;overflow:visible;-webkit-tap-highlight-color:transparent;transition:transform 80ms ease}
#talent[hidden]{display:none}
#talent .special-hit-area{position:absolute;inset:-12px;border-radius:50%;background:transparent;pointer-events:auto}
#talent .special-ring{position:absolute;inset:0;width:64px;height:64px;fill:none;stroke-width:2.5;transform:rotate(-90deg);pointer-events:none}
#talent .special-track{stroke:#486071}
#special-charge{stroke:var(--special-accent);stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:0}
#talent .special-core{position:absolute;inset:6px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;background:linear-gradient(#274958,#102532);border:1px solid #ffffff65;box-shadow:inset 0 2px #ffffff24,inset 0 -3px #0006;pointer-events:none}
#special-symbol{font:850 24px/27px system-ui,sans-serif;color:var(--special-accent);font-variant-numeric:tabular-nums}
#special-status{font:800 10px/13px system-ui,sans-serif;letter-spacing:.15px;color:#f4fbff;white-space:nowrap}
#talent:disabled{opacity:1;cursor:default}
#talent.special-cooling .special-core{background:linear-gradient(#24151f,#100f1a);border-color:#a94653}
#talent.special-cooling #special-symbol{color:#fff0f1}
#talent.special-cooling #special-charge{stroke:#ff546b;stroke-width:4}
#talent.special-cooling .special-track{stroke:#512330}
#talent.special-cooling #special-status{font-size:8px;color:#ffb6c1}
#talent.special-ready .special-core{background:linear-gradient(145deg,#376278,#0b273c 65%);border:2px solid var(--special-accent);box-shadow:inset 0 2px #fff9,inset 0 -3px #0006}
#talent.special-ready #special-charge{stroke:var(--special-accent);stroke-width:4}
#talent.special-ready #special-symbol{color:#fff;text-shadow:0 1px var(--special-accent)}
#talent.special-target-ready::after{content:'';position:absolute;inset:1px;border:1px solid var(--special-accent);border-radius:50%;pointer-events:none;box-shadow:0 0 7px var(--special-accent);animation:special-breathe 2.8s ease-in-out infinite}
#talent.special-pressed{transform:translateY(2px) scale(.94);box-shadow:0 1px 0 #031019,0 0 0 2px var(--special-accent)}
#talent.special-pressed .special-core{background:#436579;border-color:#fff}
#talent.special-armed.special-target-ready .special-core{animation:special-arm .42s ease-out}
#talent:focus-visible{outline:3px solid #fff;outline-offset:3px}
@keyframes special-breathe{0%,100%{opacity:.45}50%{opacity:.9}}
@keyframes special-arm{0%{box-shadow:inset 0 0 0 3px #fff}100%{box-shadow:inset 0 0 0 0 transparent}}
.calm #talent::after,.calm #talent .special-core{animation:none}
@media(prefers-reduced-motion:reduce){#talent{transition:none}#talent::after,#talent .special-core{animation:none}}

/* Small, bounded SVG arcs: composited rotation/opacity, no particle emitter. */
.special-electric{position:absolute;inset:-8px;width:80px;height:80px;fill:none;stroke:var(--special-accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;display:none}
#talent.special-target-ready .special-electric{display:block;animation:special-orbit 6s linear infinite}
#talent.special-ready::before{content:'';position:absolute;inset:5px;border-radius:50%;border:1px solid #fff9;pointer-events:none}
#talent.special-armed.special-target-ready .special-electric{stroke:#fff;stroke-width:3}
#talent.special-spotlight{outline:3px solid #fff;outline-offset:5px}
@keyframes special-orbit{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#talent .special-electric{animation:none!important}}
/* Retired historical stored controls stay separate from the permanent special. */
#ability{right:12px;bottom:145px}
#onboarding{position:absolute;inset:0;z-index:30;background:linear-gradient(#03122128,#03122112 60%,#03122138);touch-action:none}
#onboarding-card{position:absolute;top:clamp(88px,17%,132px);left:14px;right:14px;max-width:340px;margin:0 auto;padding:19px 20px 14px;border:1px solid #8bd6e5;border-radius:20px;background:#081d30f5;box-shadow:0 6px 0 #04111dcc,0 12px 24px #0005;text-align:left;color:#fff}
#onboarding-kicker{display:block;font:850 10px/1.4 system-ui;letter-spacing:1.5px;color:#9ae8e5}
#onboarding-title{font:900 clamp(20px,5.6vw,25px)/1.08 GameText,system-ui;margin:9px 0;color:#fff6dc;letter-spacing:-.4px}
#onboarding-copy{font:550 15px/1.45 system-ui;margin:9px 0 16px;color:#d6e8f3}
#onboarding-continue{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:52px;padding:12px 17px;border:1px solid #d6fff4;border-radius:12px;background:#a4f4dc;color:#082d36;font:900 15px/1.2 system-ui;letter-spacing:.5px;touch-action:manipulation}
#onboarding-continue:focus-visible{outline:3px solid #fff;outline-offset:3px}
#onboarding-card small{display:block;text-align:center;font:600 10px/1.4 system-ui;color:#95b4ca;margin-top:10px}
#onboarding-tilt{display:block;width:135px;height:43px;margin:12px auto;fill:none;stroke:#affbea;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
#onboarding-tilt[hidden]{display:none}
#onboarding-focus{position:absolute;border:3px solid #fff4aa;border-radius:50%;box-shadow:0 0 0 5px #0a1b35a6;pointer-events:none;box-sizing:border-box}
#onboarding[data-lesson="special"] #onboarding-focus{border-color:#fff}
#onboarding[data-lesson="hazard"] #onboarding-card,#onboarding[data-lesson="power"] #onboarding-card{top:auto;bottom:clamp(155px,25%,220px)}
@media(max-height:650px){#onboarding-card{top:85px;padding:13px 16px 10px}#onboarding-copy{font-size:13px;margin:7px 0 12px}#onboarding-title{font-size:20px}#onboarding[data-lesson="hazard"] #onboarding-card,#onboarding[data-lesson="power"] #onboarding-card{bottom:135px}#onboarding-tilt{height:32px;margin:8px auto}}

/* Prevent browser gestures across canvas AND ability controls during play. */
.gameplay-no-zoom #arena,.gameplay-no-zoom #arena *{touch-action:none}
#talent,#ability,#paid-boost{touch-action:manipulation;-webkit-user-select:none;user-select:none}
.ending-credits-window{position:absolute;inset:max(56px,env(safe-area-inset-top)) 0 max(16px,env(safe-area-inset-bottom));overflow:clip;mask-image:linear-gradient(transparent,#000 6%,#000 94%,transparent)}
.ending-scroll{height:auto;overflow:visible;position:absolute;top:0;left:0;width:100%;padding:0 28px 40px;will-change:transform;transform:translateY(100dvh)}
.ending-credit-list p{margin:26px 0}
#marlow-announcement{position:relative;flex-shrink:0;min-height:98px;width:100%;display:grid;place-items:center}
.ending-discovery-inner{justify-content:flex-start;padding-top:max(16px,env(safe-area-inset-top))}

/* Approved five-character action poster. Single accessible title-only entry. */
#launch-intro{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);justify-content:center;background:#0b2645 url('earthrise.jpg') center/cover no-repeat}
#launch-intro::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#08213b77,#12385422,#06152bcc)}
.title-approved-poster{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 12px 24px #06132b88)}

.title-poster{display:block;width:100%;height:100%}

/* Active flight alone owns the fixed viewport, including pause/special header controls. */
body.gameplay-no-zoom,body.gameplay-no-zoom *{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}

/* The existing Pause control belongs to the flight HUD, not the menu header. */
#arena>#pause{position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:12;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #71dbff;border-radius:12px;background:#082744e8;box-shadow:inset 0 0 7px #1688b766;color:#edfbff;font:800 22px/1 system-ui;touch-action:manipulation}
#arena>#pause{top:max(60px,env(safe-area-inset-top))}
#arena:has(>#pause:not([hidden]))>.progress{top:112px}
#arena:has(>#pause:not([hidden]))>#powerbar{top:125px}

/* Approved credits master: contain preserves all text and the legal card on every aspect ratio. */
.ending-credits{background:#000}
.ending-authority-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.ending-video-message,.ending-video-resume,.ending-video-continue{position:absolute;left:10%;width:80%;z-index:1}
.ending-video-message{top:40%;background:#081120;padding:16px;box-sizing:border-box}
.ending-video-resume,.ending-video-continue{bottom:calc(32px + env(safe-area-inset-bottom))}
