:root{color-scheme:dark;--ink:#edf8ff;--muted:#a2bad2;--cyan:#66f4e6;--amber:#ffbd63;--edge:#24465c;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:#020715;color:var(--ink)}
*{box-sizing:border-box}body{margin:0;display:flex;justify-content:center;align-items:center;min-height:100dvh;overflow:hidden;background:radial-gradient(ellipse at 15% 30%,#072333 0,transparent 43%),radial-gradient(ellipse at 85% 75%,#171231 0,transparent 48%),#020715}button,input,select{font:inherit}button{cursor:pointer;color:inherit;touch-action:manipulation;border:0;-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid var(--amber);outline-offset:3px}button:disabled{cursor:wait;opacity:.55}b,strong,kbd,.label{font-variant-numeric:tabular-nums}h1,h2,p{margin:0}[hidden]{display:none!important}
#app{width:min(100%,480px);height:100dvh;height:var(--app-height,100dvh);padding-top:max(var(--safe-top),var(--tg-top,0px));padding-bottom:max(var(--safe-bottom),var(--tg-bottom,0px));position:relative;display:grid;grid-template-rows:101px minmax(0,1fr) 34px 72px;isolation:isolate;background:#040d20;box-shadow:0 0 100px #0008;overflow:hidden}.hud{padding:7px 10px 5px;z-index:2;background:#061225;border-bottom:1px solid var(--edge)}.hud-main{height:45px;display:flex;align-items:center;gap:10px}.hud-title{display:flex;align-items:center;gap:7px;font:800 10px/1.05 monospace;letter-spacing:1px;color:#aed8f5;min-width:80px}.hud-title b{font-size:13px;color:#ffb879}.brand-mark{display:inline-grid;place-items:center;width:24px;height:30px;flex:none;background:#ff8c22;color:#071322;clip-path:polygon(0 13%,22% 13%,22% 0,42% 0,42% 10%,61% 10%,61% 0,77% 0,77% 15%,93% 24%,100% 44%,86% 52%,100% 62%,100% 83%,79% 94%,44% 94%,44% 100%,23% 100%,23% 91%,0 91%);font:900 26px monospace}.label{font:700 10px monospace;letter-spacing:.08em;color:var(--muted)}.score-block{display:flex;flex:1;flex-direction:column;min-width:0}.score-block strong{font:800 25px/1.05 monospace;color:#fff4bf;letter-spacing:-1px}.clock-block{display:flex;flex-direction:column;text-align:right}.clock-block b{font:700 17px monospace;color:#b4ecff}.clock-block .label{font-size:9px}.icon-button{width:44px;height:44px;flex:none;display:grid;place-items:center;border:1px solid #31516b;background:#0b1b30;color:#a9eaff;font:800 23px monospace;border-radius:4px}.wallets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:5px}.wallet{display:grid;grid-template-columns:22px 1fr;grid-template-rows:13px 19px;align-items:center;column-gap:5px;min-width:0;padding:3px 4px;background:#07192b;border:1px solid #224155;transition:background .18s}.wallet img{width:22px;height:22px;grid-row:1/3}.wallet .label{font-size:10px}.wallet b{font:700 15px monospace;white-space:nowrap;letter-spacing:-.5px}.wallet[data-coin=doge] b{color:#ffde86}.wallet[data-coin=sol] b{color:#9cffe4}.wallet[data-coin=eth] b{color:#d1d6ff}.wallet[data-coin=btc] b{color:#ffd0a0}.wallet.collected{background:#16423f}
.stage{position:relative;min-height:0;overflow:hidden;display:grid;place-items:center;background:#020b1b}#game{display:block;height:100%;width:100%;object-fit:contain;image-rendering:pixelated;touch-action:none;outline-offset:-3px}.stage-top{position:absolute;top:8px;left:10px;right:10px;display:flex;justify-content:space-between;gap:10px;font:700 9px monospace;letter-spacing:.06em;color:#9dbed3;pointer-events:none}.stage-top span:last-child{color:#79cbbf}.toast{position:absolute;top:var(--toast-top,24%);left:8%;width:84%;padding:8px;background:#061725e8;border:1px solid #34766b;text-align:center;color:#a4ffde;font:700 12px/1.4 monospace;pointer-events:none;opacity:0;transition:opacity .15s}.toast.visible{opacity:1}.delivery-progress{position:absolute;bottom:12px;left:12px;color:#ffdb92;background:#08192ceb;border:1px solid #86643b;padding:6px 8px;font:700 11px monospace;pointer-events:none}.power-meter{position:absolute;bottom:12px;right:12px;display:flex;flex-direction:column;gap:3px;font:700 10px monospace;color:#9dffee;pointer-events:none}.power-meter progress{width:100px;height:4px;accent-color:#6affd8}.flight-status{display:flex;align-items:center;justify-content:space-between;padding:0 10px;gap:6px;background:#07182a;border-top:1px solid #284860;font:700 10px monospace;color:#acc6dc}.flight-status>b{font-size:13px;color:#d6f2ff}.flight-status span>b{font-size:13px;color:#77f8df}#health{display:flex;gap:3px}#health i{display:block;width:9px;height:12px;background:#52e3e6}#health i.empty{background:#17374a}.touch-pad{display:flex;align-items:center;justify-content:center;gap:32px;touch-action:none;user-select:none;background:linear-gradient(#07152a,#040c1d);color:#93cce5;border-top:1px solid #172b44}.touch-pad>span:nth-child(2){text-align:center}.touch-pad b{display:block;font:700 11px monospace;letter-spacing:2px}.touch-pad small{display:block;margin-top:5px;font-size:10px;color:#8caac4}.touch-arrow{font:400 45px/1 monospace;color:#8bd2e9}
.screen{position:absolute;inset:0;z-index:5;background:linear-gradient(160deg,#092337f5,#050e23 48%,#100f27);padding:0;overflow:hidden}.menu{display:flex;flex-direction:column}.menu-scroll{padding:18px 20px 8px;flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin}.menu-heading{display:flex;align-items:flex-start;justify-content:space-between}.eyebrow{font:700 10px monospace;letter-spacing:.17em;color:#83b5cf}.menu-heading h1{font:900 36px/.94 monospace;letter-spacing:1px;margin-top:7px;color:#c7efff;text-shadow:2px 2px #195580,3px 4px #031326}.menu-heading h1>span{color:#ff8761;text-shadow:2px 2px #7e2930,3px 4px #200d1d}.menu-heading h1 small{font:700 12px monospace;letter-spacing:3px;display:inline-block;color:#ffdb86;margin-left:10px;vertical-align:middle;text-shadow:none}.hero{display:flex;align-items:center;min-height:113px;position:relative;margin:2px -5px 2px 0}.hero>div{position:relative;z-index:1;min-width:45%;padding-top:8px}.signal{font-size:8px;letter-spacing:.12em;color:#7fead7}.hero p{font-size:13px;line-height:1.6;color:#a5c4d8;margin-top:6px}.hero p b{color:#f1fbff;font-weight:600}.hero img{position:absolute;width:64%;height:auto;right:-8px;top:50%;transform:translateY(-50%);image-rendering:pixelated;opacity:.96;pointer-events:none}.section-title{display:flex;align-items:center;justify-content:space-between;margin:7px 0 9px}.section-title h2{font:700 10px monospace;letter-spacing:.12em;color:#6fa0ba}.section-title h2>span{color:#c1d9e7;margin-left:8px}.section-title>span{font:10px monospace;color:#9ab2c7}.pilot-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.pilot-card{display:flex;flex-direction:column;align-items:center;border:1px solid #284058;position:relative;padding:10px 5px;background:#091b31;color:#a3bacf;min-height:158px;border-radius:3px}.pilot-card.selected{border-color:var(--pilot-color);background:linear-gradient(#13313d,#0a1b30);box-shadow:inset 0 2px var(--pilot-color)}.pilot-card .ship-thumbnail{height:35px;width:35px;object-fit:contain;image-rendering:pixelated;margin-bottom:5px}.pilot-card>strong{font:800 14px monospace;letter-spacing:1px;color:#e5f5ff}.pilot-card.selected>strong{color:var(--pilot-color)}.pilot-stat{display:flex;justify-content:space-between;gap:4px;width:100%;font-size:9px;line-height:1.85}.pilot-stat b{font:700 12px/1.5 monospace;color:#d4e7f5}.pilot-card>.pilot-role{font-size:8px;min-height:16px;margin:3px -1px 4px;white-space:nowrap;color:#a5bed2}.collection-example{font-size:10px;line-height:1.5;color:#a2bccd;margin:7px 0 12px}.collection-example b{color:#81f3d8}.mode-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.mode-cards button{background:#0b1b31;border:1px solid #293e55;padding:9px 3px;border-radius:3px}.mode-cards button.selected{border-color:#e0b871;background:#322c29;color:#ffdc9f}.mode-cards b{display:block;font:700 10px monospace;letter-spacing:.03em}.mode-cards small{display:block;font:8px monospace;color:#a6bdd0;margin-top:5px}.mode-description{font-size:11px;line-height:1.5;color:#a6bfd2;min-height:33px;margin:8px 0 0}.training-options{margin:7px 0;display:flex;gap:10px;align-items:center;font:10px monospace}.training-options select{width:100%;background:#0a2237;color:white;border:1px solid #456079;padding:7px;font-size:11px}.hangar-line{display:flex;align-items:center;gap:12px;margin:7px 0 0;border-top:1px solid #23384d;padding-top:8px}.hangar-line canvas{width:30px;height:40px;image-rendering:pixelated;flex:none}.hangar-line>div{display:grid;gap:3px}.hangar-line b{font-size:10px;font-weight:600;color:#c0d5e1}.hangar-line small{font:9px monospace;color:#88abbd}.hangar-line span{font:10px monospace;color:#d9c99a}.launch-bar{flex:none;padding:10px 20px max(12px,var(--safe-bottom));background:#051125f5;border-top:1px solid #254359;z-index:1}.primary{width:100%;display:flex;align-items:center;justify-content:center;gap:20px;min-height:48px;padding:12px 18px;background:#ffd080;color:#18222c;font:800 17px monospace;letter-spacing:2px;box-shadow:inset 0 -3px #b7803a;border-radius:3px}.primary:hover{background:#ffe0a5}.primary:active{transform:translateY(1px)}.primary span{font-size:24px;line-height:.8}.launch-meta{display:flex;justify-content:space-between;gap:7px;margin-top:8px;font:8px monospace;color:#8aa4ba}.build-label{letter-spacing:-.2px}
.modal-screen{display:grid;place-items:center;background:#040c1ef5;backdrop-filter:blur(5px);padding:24px}.modal-content{width:100%;max-height:100%;overflow:auto;max-width:360px}.modal-content h2,.results-screen h2{font:800 28px monospace;letter-spacing:1px;margin-top:10px}.modal-content>p{font-size:13px;line-height:1.6;color:#b3cadc;margin:12px 0}.settings{display:grid;gap:15px;margin:24px 0}.settings label{display:flex;gap:10px;align-items:center;font-size:13px}.settings label input[type=range]{flex:1;min-width:0;accent-color:#68e5d6}.settings label output{width:34px;text-align:right;font:12px monospace}.settings small{font-size:10px;color:#9fb5cd;margin-top:-9px}.settings .check{font-size:12px}.settings input[type=checkbox]{accent-color:#5dd7ca;width:18px;height:18px}.secondary{width:100%;background:#0b2237;color:#b8d6e7;border:1px solid #34556b;border-radius:3px;padding:13px;margin-top:10px;font-size:13px;min-height:44px}.detail-wallets{font:12px/1.8 monospace;color:#bcd7e9}.detail-wallets>div{display:flex;justify-content:space-between;gap:16px}.detail-wallets b{color:#f2e9c9;overflow-wrap:anywhere}.small-note{font-size:10px!important;line-height:1.6!important;color:#99afc6!important;margin:14px 0!important}.results-screen{display:flex;flex-direction:column}.results-scroll{overflow:auto;min-height:0;flex:1;padding:26px 24px 12px}.results-scroll>p{font-size:12px;line-height:1.6;color:#b1c9d9;margin:10px 0 20px}.result-score{text-align:center;padding:19px 8px;margin:12px 0;border:1px solid #34596a;background:linear-gradient(135deg,#14313e,#0b152a)}.result-score>span{display:block;font:10px monospace;letter-spacing:3px;color:#b9d4e3}.result-score>strong{display:block;font:800 46px/1.3 monospace;color:#ffdc91;letter-spacing:-2px}.result-score>b{font:11px monospace;color:#7cf8d7}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.result-stats>div{text-align:center;background:#0c2035;padding:10px 3px}.result-stats b{display:block;font:700 17px monospace;color:#c8ecff}.result-stats small{display:block;font:9px monospace;color:#9bb9ce;margin-top:6px}.result-cargo{display:flex;gap:20px;align-items:center;border-top:1px solid #29445b;border-bottom:1px solid #29445b;padding:15px 0}.result-cargo canvas{width:48px;height:64px;image-rendering:pixelated}.result-cargo .detail-wallets{flex:1}.score-breakdown{font:11px/1.7 monospace;color:#acc7d9;margin-top:14px}.badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.badge{font:9px monospace;letter-spacing:.05em;padding:7px;border:1px solid #6e613b;color:#ead393;background:#27271e}.result-actions{display:flex;justify-content:space-between;margin-top:4px}.text-button{padding:10px 0;background:none;color:#accde1;font-size:11px;min-height:40px}.results-screen details{font-size:11px;color:#afc4d7}.results-screen ol{padding-left:20px;font:11px/1.9 monospace}.loading{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;background:#061225;font:12px monospace;letter-spacing:2px}.loading .brand-mark{width:42px;height:52px;font-size:42px}.error-screen{z-index:12;display:flex;flex-direction:column;justify-content:center;padding:30px;gap:20px}.error-screen p{font-size:14px;line-height:1.6;color:#c3d3e0}.sector-card{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#061426e8;gap:13px;text-align:center;padding:24px}.sector-card canvas{width:48px;height:64px;image-rendering:pixelated}.sector-card h2{font:800 22px monospace;color:#c1f7ec}.sector-card p{font-size:12px;color:#b2c7dc}.sector-card b{font:700 23px monospace;color:#ffdc96}
.desktop-note,.desktop-right{display:none;position:fixed;top:32%;max-width:250px}.desktop-note{right:calc(50% + 290px)}.desktop-right{left:calc(50% + 290px)}.desktop-note h2{font:800 40px/1.15 monospace;color:#d5edf9;margin:15px 0 20px;letter-spacing:-2px}.desktop-note p,.desktop-right p{font-size:12px;line-height:1.8;color:#a2bdcc}.desktop-note small,.desktop-right small{display:block;font-size:10px;line-height:1.8;color:#89a5bd;margin-top:16px}.key-hint{display:flex;align-items:center;gap:7px;font-size:11px;color:#b6cddd;margin-top:28px}kbd{border:1px solid #294858;background:#102639;padding:5px 7px;border-radius:3px}.coin-guide{display:flex;gap:14px;margin:20px 0}.coin-guide img{width:30px;height:30px}
@media(min-width:1100px){.desktop-note,.desktop-right{display:block}}
@media(max-height:760px){.menu-scroll{padding-top:12px}.menu-heading h1{font-size:30px}.hero{min-height:86px}.hero img{width:55%}.pilot-card{min-height:145px;padding-top:7px}.pilot-card .ship-thumbnail{height:28px;width:28px}.hangar-line{display:none}.menu .section-title{margin:5px 0 7px}.collection-example{margin-bottom:9px}.launch-bar{padding-top:8px;padding-bottom:8px}.menu .primary{min-height:44px}}
@media(max-width:360px){.menu-scroll{padding-left:14px;padding-right:14px}.launch-bar{padding-left:14px;padding-right:14px}.hud{padding-left:7px;padding-right:7px}.hud-main{gap:7px}.hud-title{min-width:73px;font-size:9px;gap:4px}.hud-title b{font-size:11px}.score-block strong{font-size:22px}.clock-block b{font-size:15px}.wallet{column-gap:3px;padding-left:3px;padding-right:2px;grid-template-columns:18px 1fr}.wallet img{width:18px;height:18px}.wallet b{font-size:15px;letter-spacing:-1px}.wallet .label{font-size:9px}.hero p{font-size:11px}.pilot-card>.pilot-role{font-size:7px}.pilot-stat{font-size:8px}.pilot-stat b{font-size:11px}.pilot-card>strong{font-size:12px}.mode-cards b{font-size:9px}.mode-cards small{font-size:7px}.flight-status{padding:0 7px;font-size:9px;gap:4px}.flight-status>b{font-size:11px}.flight-status span>b{font-size:11px}#health{gap:2px}#health i{width:7px;height:10px}.touch-pad{gap:24px}.collection-example{font-size:9px}}
@media(max-height:640px){#app{grid-template-rows:101px minmax(0,1fr) 32px 54px}.hero{display:none}.menu-heading{margin-bottom:10px}.menu-heading h1{font-size:26px}.pilot-card{min-height:130px}.mode-description{font-size:10px}.touch-pad small{display:none}.launch-meta{font-size:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Keep preparation opaque and the keyboard focus cue separate from the artwork. */
.screen{background:linear-gradient(160deg,#092337,#050e23 48%,#100f27)}
.modal-screen{background:#040c1ef5}
#game:focus-visible{outline:1px solid #31586d;outline-offset:-1px}
/* Keep intrinsic canvas dimensions out of grid sizing on short Telegram windows. */
#game{position:absolute;inset:0;min-width:0;min-height:0}
.hero img{width:60%}
@media(min-height:761px){.hero{min-height:128px}}
@media(max-height:760px) and (min-height:581px){.hangar-line{display:flex}}
@media(max-height:640px) and (min-height:581px){.hero{display:flex;min-height:78px}.hero img{width:50%}.hero p{font-size:10px}.hero .eyebrow{font-size:7px}.hangar-line{padding-top:5px;margin-top:4px}.hangar-line canvas{height:33px;width:25px}.hangar-line b{font-size:9px}.hangar-line small{font-size:8px}}
.settings select,.feedback select,.feedback textarea{min-width:0;flex:1;max-width:100%;background:#0b2236;color:#e6f7ff;border:1px solid #456078;border-radius:3px;padding:8px;font-size:12px}.feedback{margin-top:14px;border-top:1px solid #2b415a;padding-top:14px}.feedback label{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:12px}.feedback label:has(textarea){display:grid}.feedback textarea{resize:vertical;width:100%;min-height:60px}.feedback p{font-size:10px;color:#a8c3d5;line-height:1.6;margin:10px 0}.feedback-check input{width:18px;height:18px;accent-color:#64dfce}.feedback summary{line-height:1.6}
/* Numbers stay independent of the pixel scene; do not shrink the complete interface. */
#app{grid-template-rows:105px minmax(0,1fr) 34px 72px}
.wallet .label{font-size:12px;letter-spacing:0}.wallet{grid-template-rows:14px 19px}
.clock-block .label{font-size:10px}.stage-top{font-size:10px}
.pilot-stat{font-size:10px}.pilot-card>.pilot-role{font-size:9px}
.mode-cards b{font-size:11px}.mode-cards small{font-size:9px}.collection-example{font-size:11px}
@media(max-width:360px){.pilot-stat{font-size:9px}.pilot-card>.pilot-role{font-size:8px}.mode-cards b{font-size:10px}.mode-cards small{font-size:8px}.collection-example{font-size:10px}.stage-top{font-size:9px}}
@media(max-height:640px){#app{grid-template-rows:105px minmax(0,1fr) 32px 54px}}
.rotate-prompt{z-index:11;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px;gap:14px}.rotate-prompt h2{font:800 21px monospace;color:#d9f4ff}.rotate-prompt p{font-size:13px;color:#b0c9da;line-height:1.6;max-width:30em}.rotate-icon{font-size:45px;color:#ffd080;line-height:1}
.screen{padding-top:max(var(--safe-top),var(--tg-top,0px))}
.launch-bar{padding-bottom:max(12px,var(--safe-bottom),var(--tg-bottom,0px))}
.modal-screen{padding-top:max(24px,var(--safe-top),var(--tg-top,0px));padding-bottom:max(24px,var(--safe-bottom),var(--tg-bottom,0px))}

.music-enable{position:fixed;top:calc(8px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:150;padding:8px 14px;border:1px solid #65f4e6;border-radius:6px;background:#071d30;color:#b5fff0;font:600 13px system-ui;cursor:pointer}


.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* Animated hangar illustration keeps the existing layout and keyboard targets. */
.hero .hangar-art{position:absolute;width:60%;aspect-ratio:3/2;right:-8px;top:auto;bottom:2px;transform:none;margin:0;pointer-events:none}
.hero .hangar-art img,.hero .hangar-art canvas{position:absolute;inset:0;width:100%;height:100%;top:0;right:0;transform:none;image-rendering:pixelated;pointer-events:none}
.hero .hangar-art canvas{display:none}
.hero .hangar-art.is-animated canvas{display:block}
.hero .hangar-art.is-animated img{opacity:0}
@media(max-height:760px){.hero .hangar-art{width:min(60%,220px)}}
@media(max-height:640px) and (min-height:581px){.hero .hangar-art{width:50%}}
@media(max-height:580px){.hero{display:flex;min-height:66px}.hero .hangar-art{width:46%}.hero p{font-size:10px}.hero .signal{font-size:7px}}

/* Sector progress lives in the HUD, clear of Santa's flight lane. */
#app{grid-template-rows:132px minmax(0,1fr) 34px 72px}
.sector-progress{margin-top:5px;--route-color:#7cead5}
.sector-route{display:flex;justify-content:space-between;gap:8px;align-items:center;font:700 11px monospace;color:#a8c8d9;line-height:15px}
.sector-route b{color:#d8f5ed}.sector-route span{color:var(--route-color);white-space:nowrap}
.sector-progress progress{display:block;width:100%;height:4px;margin-top:3px;border:0;background:#163044;appearance:none;border-radius:2px;overflow:hidden}
.sector-progress progress::-webkit-progress-bar{background:#163044}.sector-progress progress::-webkit-progress-value{background:var(--route-color)}.sector-progress progress::-moz-progress-bar{background:var(--route-color)}
.sector-progress.is-ending{--route-color:#ffce86}.sector-progress.is-ending .sector-route span{color:#ffdc9f}
.sector-warning{position:absolute;top:var(--toast-top,24%);left:12%;width:76%;padding:10px 12px;display:grid;grid-template-columns:1fr auto;gap:4px 10px;background:#102333f5;border:2px solid #ffce86;box-shadow:0 0 18px #ffbd6318;color:#ffdfac;pointer-events:none}
.sector-warning b{font:800 13px monospace;align-self:end}.sector-warning strong{grid-column:2;grid-row:1/3;font:900 34px/1 monospace;align-self:center;color:#fff0ce}.sector-warning span{font:11px/1.4 system-ui;color:#c5e7eb}.stage.route-countdown .toast{opacity:0}
@media(max-height:640px){#app{grid-template-rows:132px minmax(0,1fr) 32px 54px}}
@media(max-width:360px){.sector-route{font-size:10px}.sector-warning b{font-size:12px}}

/* Discoveries live in scrollable preparation/results, never over combat. */
.fleet-gallery{margin:16px 0 4px;border:1px solid #31516a;border-radius:6px;background:#08182a;padding:11px 12px}
.fleet-gallery>summary{cursor:pointer;font:700 12px monospace;color:#d2edf4;min-height:24px;line-height:24px}
.fleet-gallery>summary span{float:right;color:#ffdc96}
.fleet-note{font-size:10px;line-height:1.6;color:#a8bfce;margin:9px 0}
.fleet-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:9px}
.fleet-card{min-width:0;min-height:112px;border:1px solid #34516b;border-radius:4px;background:#0c2135;padding:4px;display:flex;align-items:center;flex-direction:column}
.fleet-card canvas{display:block;width:78px;max-width:100%;height:68px;object-fit:contain;image-rendering:pixelated}
.fleet-card b{font:700 12px monospace;color:#dce8ed}
.fleet-card span{font:8px monospace;color:#a8c2d2;margin:5px 0}
.fleet-card.is-locked canvas{filter:grayscale(1);opacity:.5}
.fleet-card.selected{border-color:#ffcf88;background:#1d2a36;box-shadow:inset 0 0 0 1px #ffcf8844}
.fleet-preview{display:flex;gap:10px;align-items:center;border-top:1px solid #2b465d;margin-top:12px;padding-top:8px}
.fleet-preview canvas{width:100px;height:88px;flex:none;image-rendering:pixelated}
.fleet-preview b{font:700 12px monospace;color:#ffdda8}
.fleet-preview p{font-size:10px;line-height:1.6;color:#b1c9d7;margin-top:7px}
.fleet-result{display:flex;gap:12px;align-items:center;margin:14px 0;padding:11px 10px;border:1px solid #53634d;background:#13282a;border-radius:5px}
.fleet-result canvas{width:80px;height:76px;image-rendering:pixelated;flex:none}
.fleet-result b{font:700 12px monospace;color:#ffe1ab}
.fleet-result p{font-size:10px;line-height:1.6;color:#c0d7dc;margin-top:5px}
#fleet-new-unlocks{color:#9dffe0}
.stage-top{gap:5px;font-size:9px}.stage-top span:first-child{min-width:0;max-width:70%}.stage-top span:last-child{text-align:right;max-width:42%}
@media(max-width:360px){.fleet-gallery{padding:8px}.fleet-cards{gap:5px}.stage-top{font-size:8px}}
/* Compact launch flow: details are available on request, the launch stays visible. */
.menu-scroll{padding:16px 20px 12px}.menu-heading{align-items:center;gap:10px}.brand-title{display:flex;align-items:center;gap:10px;min-width:0}.brand-title canvas{width:28px;height:38px;image-rendering:pixelated;flex:none}.brand-title .eyebrow{font-size:8px;letter-spacing:.12em}.menu-heading h1{font-size:23px;line-height:1.15;letter-spacing:0;margin-top:3px;white-space:nowrap}.menu-heading h1 small{display:block;font-size:9px;letter-spacing:3px;margin:3px 0 0}.menu-heading .icon-button{font-family:system-ui;font-size:23px}
.menu .hero{min-height:115px;margin:3px 0 0}.hero>div{padding-top:0;max-width:53%}.hero p{font-size:12px}.hero>div>small{display:block;font:8px/1.6 monospace;color:#829fb5;margin-top:6px}.hero .hangar-art{width:58%;max-width:220px;bottom:0;right:-7px}.hangar-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #24445b;margin-bottom:13px}.hangar-tools .text-button{padding:3px 0;min-height:36px;color:#a4e8e0;font-size:11px}
.selection-label{font:700 9px/1.5 monospace;letter-spacing:.14em;color:#8eb3c8;margin-bottom:6px}.selection-card{display:flex;align-items:center;gap:10px;border:1px solid #2e5267;background:linear-gradient(115deg,#102b3d,#0a192e);padding:10px 12px;border-radius:5px;min-height:66px;margin-bottom:14px}.selection-card>div{display:grid;gap:5px;flex:1;min-width:0}.selection-card b{font:800 15px monospace;letter-spacing:.03em;color:#ffe0a3}.selection-card span{font-size:11px;color:#b6cedb}.selection-card small{font:10px monospace;color:#88aaba}.selection-card .text-button{min-height:44px;font-size:11px;color:#b9f3eb;padding:8px 2px;flex:none}.pilot-selection{gap:4px;padding:4px 10px 4px 3px;min-height:87px}.pilot-selection canvas{width:80px;height:68px;flex:none;image-rendering:pixelated}.pilot-card{min-height:122px;padding:11px 6px}.pilot-card>.pilot-role{font-size:8px;white-space:normal;text-align:center;min-height:22px;margin:5px 0}.pilot-card>strong{font-size:12px}.pilot-stat{font-size:8px}.pilot-stat b{font-size:11px}.pilot-card.selected{background:#112b39}.pilot-cards{gap:5px}.mode-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.mode-cards button{min-height:56px}.mode-cards b{font-size:11px}.mode-cards small{font-size:9px}.mode-description{min-height:0;font-size:11px;line-height:1.6;margin:0 0 10px}.personal-record{font:10px/1.6 monospace;color:#d5c293;margin:6px 0 0}.collection-example{font-size:10px;margin:7px 0 0}#pilot-options,#mode-options{padding:0 0 8px;margin-top:-5px}.start-instruction{font-size:10px;line-height:1.5;text-align:center;color:#b4cbd9;margin:0 0 8px}.launch-meta{justify-content:center;font-size:8px;line-height:1.4}.menu .primary{font-size:16px;letter-spacing:1px;min-height:48px}.text-button:focus-visible{outline-offset:0}
.fleet-screen{display:flex;flex-direction:column;z-index:8}.fleet-scroll{flex:1;min-height:0;overflow-y:auto;padding:24px 20px 14px}.fleet-screen h2{font:800 25px monospace;color:#e1f8ff;margin:12px 0}.fleet-screen h2 span{font-size:16px;color:#ffdc96}.fleet-screen .secondary{margin-top:0}.fleet-card{min-height:114px}.fleet-card.is-locked canvas{filter:none;opacity:.68}.fleet-result.is-compact{padding:0;border:0;background:none;border-radius:0;margin:10px 0;display:block}.fleet-result.is-compact p{font-size:10px;line-height:1.5;color:#9bb9c9;margin:0}.fleet-result:not(.is-compact){gap:7px;padding:7px}.fleet-result:not(.is-compact) canvas{width:65px;height:64px}.fleet-result .text-button{min-width:44px;font-size:10px}.fleet-result b{font-size:10px}.fleet-result p{font-size:10px}
.results-scroll{padding:20px 20px 12px}.results-screen h2{font-size:24px;margin-top:7px}.results-scroll>p{margin:6px 0 12px;font-size:11px;line-height:1.5}.results-scroll>p.result-context{font:10px/1.6 monospace;color:#a6d9e5;margin-bottom:7px}.result-score{padding:13px 8px;margin:10px 0}.result-score>strong{font-size:43px}.result-score>b{font-size:10px;display:block;line-height:1.5}.result-stats{gap:6px;margin:10px 0}.result-stats>div{padding:9px 2px}.result-stats b{font-size:16px}.result-stats small{font-size:8px;line-height:1.4;letter-spacing:0;min-height:12px;margin-top:5px}.result-cargo{padding:10px 0;gap:12px}.result-cargo canvas{width:27px;height:36px;flex:none}.result-cargo>div{min-width:0}.result-cargo p{font:11px/1.6 monospace;color:#e3d9b6;overflow-wrap:anywhere}.result-cargo .selection-label{font-size:8px}.badges{margin:8px 0}.badge{font-size:8px;padding:6px}.results-screen details{margin-top:12px}.results-screen summary{cursor:pointer;min-height:44px;line-height:1.5;padding:12px 0;color:#a8d1e2;font-size:11px}.results-screen h3{font:700 11px monospace;color:#c1e4ed;margin:15px 0 6px}.results-screen .detail-wallets{font-size:11px}.results-screen #previous-badges{font-size:10px;line-height:1.7;color:#a5bfcf}.results-screen .primary{font-size:14px;letter-spacing:.5px;min-height:48px}.result-actions{gap:12px}.result-actions .text-button{font-size:11px;min-height:42px}.test-tools{border-top:1px solid #2a4359}.test-tools .text-button{display:block}.results-screen #share-status{font-size:11px;line-height:1.6;margin:8px 0;color:#a9ded4}
#feedback-screen{z-index:9}.modal-content.feedback{border:0;margin:0;padding:0}.feedback .primary{font-size:14px;letter-spacing:0;margin-top:16px}.feedback label{font-size:12px}.feedback>p{font-size:12px;color:#b5d0dc}.copy-output{display:block;width:100%;min-height:150px;resize:vertical;background:#06182a;border:1px solid #6bc9bd;color:#dff7ef;font:12px/1.6 monospace;padding:10px;border-radius:4px;margin:8px 0}.feedback select{font-size:12px}.feedback textarea{max-width:100%;min-width:0}.settings .text-button{font-size:12px}
@media(max-height:640px){.menu-scroll{padding-top:12px}.menu .hero{min-height:88px}.hero .hangar-art{width:50%;max-width:180px}.hero p{font-size:11px}.hero .signal{font-size:7px}.hangar-tools{margin-bottom:10px}.selection-card{margin-bottom:10px;min-height:62px}.pilot-selection{min-height:78px}.start-instruction{font-size:9px;margin-bottom:6px}.menu .primary{min-height:44px}.results-scroll{padding-top:15px}.result-score{padding:10px 5px}.result-score>strong{font-size:37px}}
@media(max-width:380px){.menu-scroll,.results-scroll{padding-left:14px;padding-right:14px}.menu-heading h1{font-size:20px}.brand-title{gap:8px}.brand-title canvas{width:24px;height:32px}.selection-card b{font-size:14px}.pilot-selection canvas{width:67px;height:62px}.selection-card small{font-size:9px}.selection-card .text-button{font-size:10px}.hero>div>small{font-size:7px}.result-actions .text-button{font-size:10px}}

/* Combat progression, safe reward choices and campaign checkpoints. */
.sector-progress.is-boss progress{accent-color:#ff7193}
.sector-route{gap:8px}.sector-route span{font-size:10px;text-align:right}
.reward-screen{background:rgba(3,12,27,.87);backdrop-filter:blur(3px)}
.reward-screen .modal-content{border:1px solid #526b79;border-radius:16px;padding:22px;background:#0b1b2d;max-height:94%;overflow-y:auto}

/* Keep longer translations within the mobile panel. */
.settings{grid-template-columns:minmax(0,1fr)}
.analytics-choice{min-width:0;max-width:100%;width:100%;margin:0;overflow-wrap:anywhere}
.analytics-choice legend{max-width:100%;white-space:normal;overflow-wrap:anywhere}
#language-quick{display:flex;align-items:center;gap:5px;font-size:10px;color:#b9f3eb}
#language-quick select{max-width:96px;min-height:36px;padding:3px 5px;border:1px solid #2e5267;border-radius:4px;background:#10263a;color:#dff7ef;font-size:11px}

/* At narrow widths the side panels are placed at the end of the hangar. */
.menu-scroll .desktop-note,.menu-scroll .desktop-right{display:block;position:static;max-width:none;margin:24px 0 0;padding:18px 0 2px;border-top:1px solid #24445b}
.menu-scroll .desktop-note h2{font-size:24px;letter-spacing:-1px;line-height:1.2;margin:10px 0}
.menu-scroll .desktop-note p,.menu-scroll .desktop-right p{font-size:11px;line-height:1.6}
.menu-scroll .desktop-note small,.menu-scroll .desktop-right small{margin-top:10px}
.menu-scroll .key-hint{margin-top:14px}
.menu-scroll .coin-guide{margin:12px 0;gap:12px}

#mode-options #campaign-route{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:12px}
#mode-options .mode-description{margin:12px 0;font-size:12px}
#music-enable{display:none!important}
#pause-screen .hangar-tools{flex-wrap:wrap;justify-content:flex-start;gap:12px 24px;margin:18px 0 10px}
#pause-screen .launch-meta{justify-content:flex-start;font:11px/1.5 system-ui;margin:12px 0}
#settings-info>.desktop-note,#settings-info>.desktop-right{display:block;position:static;max-width:none;margin:24px 0;padding:18px 0;border-top:1px solid #24445b}
#settings-info .desktop-note h2{font:650 23px/1.25 system-ui;letter-spacing:0}
#settings-info .key-hint{margin-top:14px}

/* Desktop follows the phone layout: HUD above the arena, flight status below. */
.menu-heading .brand-title{margin-right:auto}
#game{image-rendering:auto}
@media(min-width:1100px) and (min-height:700px) and (pointer:fine){
  :root{--desktop-shell-width:min(960px,calc(100vw - 64px),max(390px,calc((100dvh - 224px)*.6964286)))}
  #app{width:var(--desktop-shell-width);height:calc(100dvh - 40px);grid-template-columns:minmax(0,1fr);grid-template-rows:148px minmax(0,1fr) 34px;border:1px solid #29485d;border-radius:8px}
  #hud{padding:8px 12px}
  .hud-main{height:56px}
  .score-block strong{font-size:30px}
  #touch-pad{display:none}
  .stage-top{font-size:11px;line-height:1.5}
  #menu .menu-scroll,#results-screen .results-scroll{width:100%;max-width:720px;margin-inline:auto;padding:24px 30px 18px}
  #menu .launch-bar,#results-screen .launch-bar{padding-inline:max(30px,calc((100% - 660px)/2))}
  .menu-heading h1{font-size:30px}.menu .hero{min-height:150px}.hero .hangar-art{max-width:300px}
  .selection-card{min-height:78px}.selection-card span,.mode-description{font-size:13px;line-height:1.7}
  .hero p{font-size:14px}.menu .primary{font-size:18px}
  body>.desktop-note{right:calc(50% + var(--desktop-shell-width)/2 + 28px);max-width:220px}
  body>.desktop-right{left:calc(50% + var(--desktop-shell-width)/2 + 28px);max-width:220px}
}
.reward-screen h2{font-size:25px;color:#ffdc8e}.reward-screen p{line-height:1.5}
#upgrade-choices p{font-size:13px;color:#a6bacb;margin:8px 0 20px}
.power-meter{align-items:flex-end;max-width:48%;text-align:right;background:#061725d9;border-radius:4px;padding:4px 6px}
.power-meter small{font:9px/1.3 monospace;color:#bdcedc}
#shield-status{color:#9dffee}
.cloud-status{font-size:10px!important;line-height:1.45!important;color:#9ad8d1!important;margin:5px 0 10px!important}
#cloud-screen{z-index:8;padding:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}
.cloud-scroll{flex:1;min-height:0;overflow-y:auto;padding:24px}.cloud-actions{display:flex;gap:12px}.cloud-actions button{flex:1}
#cloud-screen h2{font-size:23px}#cloud-screen h3{font:700 13px monospace;margin:18px 0 8px}
#cloud-screen li{font:12px/1.6 monospace;margin:8px 0;color:#c3dfec;overflow-wrap:anywhere}
#cloud-screen .small-note{font-size:11px;line-height:1.5}
#feedback-screen.is-sent label,#feedback-screen.is-sent .feedback>p:not([role="status"]),#feedback-screen.is-sent #save-feedback{display:none}
#feedback-screen.is-sent .feedback{width:100%}#feedback-screen.is-sent #feedback-status{font-size:14px;line-height:1.7;margin:24px 0}
#feedback-screen.is-sent #close-feedback{min-height:52px;background:#ffd586;color:#102334;font-weight:700}
#campaign-route{display:block;font-size:13px;color:#a6bacb;margin-top:10px}
#campaign-route[hidden]{display:none}#campaign-sector{width:100%;margin-top:6px;background:#0d243b;color:#e5f6ff;padding:10px;border:1px solid #36546a;border-radius:8px}

/* Hangar: one visual block, two typefaces (logo + interface), three UI sizes. */
#menu{justify-content:center}
#menu .menu-scroll{flex:0 1 auto;width:100%;max-width:none;max-height:100%;padding:20px;overflow-y:auto;display:block}
#menu .menu-heading{align-items:center;margin:0 0 20px;gap:12px}
#menu .brand-title{gap:10px}
#menu .brand-title canvas{width:43px;height:56px;flex:none}
#menu .menu-heading h1{font-size:23px;margin:0;line-height:1.15;letter-spacing:-.5px}
#menu .menu-heading h1 small{font-size:10px;letter-spacing:2px}
#menu .hangar-content{display:grid;gap:20px}
#menu .hangar-choices{min-width:0}
#menu .hero{display:flex;flex-direction:column-reverse;align-items:center;min-height:0;margin:0;gap:8px}
#menu .hero>div{max-width:100%;min-width:0;padding:0;text-align:center}
#menu .hero p,#menu .hero p b{font:400 16px/1.5 system-ui;margin:0;color:#d4e6ef}
#menu .hero .hangar-art{position:relative;width:100%;max-width:240px;aspect-ratio:3/2;inset:auto;transform:none;margin:0}
#menu .selection-card{min-height:76px;margin:0 0 12px;padding:12px;gap:12px;border:1px solid #315064;background:#0b2031;box-shadow:none;border-radius:8px}
#menu .selection-card>div{gap:4px}
#menu .selection-label{font:400 14px/1.4 system-ui;letter-spacing:0;text-transform:lowercase;color:#a1bbc9;margin:0}
#menu .selection-label::first-letter{text-transform:uppercase}
#menu .selection-card b{font:700 16px/1.4 system-ui;letter-spacing:0;color:#edf8ff}
#menu .pilot-selection canvas{width:48px;height:42px;flex:none}
#menu .text-button{font:400 14px/1.4 system-ui;letter-spacing:0;min-height:44px;padding:8px 0}
#menu .selection-card .text-button{max-width:34%;text-align:right;flex:none;color:#b8d9df}
#menu .launch-bar{display:flex;flex-direction:column;gap:12px;padding:4px 0 0;border:0;background:none}
#menu .primary{font:700 16px/1.4 system-ui;letter-spacing:0;min-height:52px;border-radius:8px;gap:12px}
#menu .primary span{font:400 24px/1 system-ui}
#menu .start-instruction{order:2;font:400 14px/1.5 system-ui;color:#9cb7c7;text-align:center;margin:0}
#menu #pilot-options,#menu #mode-options{margin:0 0 12px;padding:8px 0}
#menu .pilot-card{padding:12px 6px;min-height:160px;gap:4px}
#menu .pilot-card>strong,#menu .pilot-stat b{font:700 14px/1.4 system-ui;letter-spacing:0}
#menu .pilot-card>.pilot-role,#menu .pilot-stat,#menu .mode-cards small,#menu .mode-description,#menu .collection-example,#menu .personal-record,#menu #campaign-route{font:400 14px/1.5 system-ui;letter-spacing:0}
#menu .pilot-stat{flex-wrap:wrap;justify-content:center;gap:4px 8px}
#menu .pilot-card>.pilot-role{margin:0;min-height:42px}
#menu .mode-cards b{font:700 14px/1.4 system-ui;letter-spacing:0;overflow-wrap:anywhere}
#menu #campaign-route{flex-direction:column;align-items:flex-start}
#menu #campaign-sector{font:400 14px/1.4 system-ui;margin-top:0}
#settings-info{margin:20px 0;border-top:1px solid #29485d;padding-top:12px}
#settings-info>summary{font:700 16px/1.5 system-ui;cursor:pointer;padding:10px 0;color:#d4e6ef}
#settings-info .eyebrow,#settings-info p,#settings-info small,#settings-info .key-hint{font:400 14px/1.5 system-ui;letter-spacing:0}
#settings-info .desktop-note h2{font:700 24px/1.3 system-ui}
.atm-mark{width:30px;height:40px;flex:none;image-rendering:pixelated}
.loading .atm-mark{width:67px;height:88px}
#menu .menu-heading{flex-wrap:wrap}
#menu #menu-music{display:flex;order:3;justify-content:flex-end;flex-basis:100%;min-height:44px;padding:8px 0;color:#b8d9df;margin-top:-12px}
#menu #menu-music[data-playing=true]{display:none}
/* Spend only the unused score-row space on decoration; text always has priority. */
.score-block{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:12px}
.score-block>.label,.score-block>strong{grid-column:1}
.hud-ornament-slot{grid-column:2;grid-row:1/3;align-self:stretch;container-type:inline-size;display:grid;place-items:center;pointer-events:none}
.hud-ornament{display:none;width:120px;height:44px;image-rendering:pixelated}
@container(min-width:128px){.hud-ornament{display:block}}
@media(max-width:360px){
 #menu .menu-scroll{padding:16px}#menu .menu-heading{gap:8px}
 #menu .brand-title{gap:6px}#menu .menu-heading h1{font-size:20px;letter-spacing:-.6px}
 #menu .menu-heading .icon-button{width:40px;height:44px}
}
@media(max-height:700px){
 #menu .menu-scroll{padding-top:12px;padding-bottom:12px}
 #menu .hero .hangar-art{max-width:180px}
 #menu .menu-heading{margin-bottom:12px}#menu .hangar-content{gap:16px}
}
@media(min-width:1100px) and (min-height:700px) and (pointer:fine){
 #app:has(#menu:not([hidden])){display:block;width:min(960px,calc(100vw - 64px));height:auto;max-height:calc(100dvh - 48px);padding:0}
 #app:has(#menu:not([hidden]))>#hud,#app:has(#menu:not([hidden]))>#stage,#app:has(#menu:not([hidden]))>.flight-status{display:none}
 #menu{position:relative;inset:auto}
 #menu .menu-scroll{padding:32px;max-height:calc(100dvh - 50px);margin:0}
 #menu .menu-heading{margin-bottom:32px}
 #menu #menu-music,#menu #menu-music[data-playing=true]{display:inline-flex;order:0;align-items:center;justify-content:center;flex:none;min-height:44px;margin:0 8px 0 0;padding:8px 12px;border:1px solid #315064;border-radius:4px;color:#b8d9df;background:#0b2031;font:400 14px/1.4 system-ui}
 #menu #menu-music:hover{background:#13364a;color:#e1fbff}
 #menu #menu-music[data-playing=true]{color:#7cead5}
 #menu .brand-title canvas{width:49px;height:64px}
 #menu .menu-heading h1{font-size:30px}
 #menu .hangar-content{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:40px}
 #menu .hero .hangar-art{max-width:330px}
 #menu .hero p,#menu .hero p b{font-size:24px}
 #menu .selection-card{min-height:84px;padding:14px 16px;margin-bottom:16px}
 #menu .launch-bar{padding:0}
 .hud-title .atm-mark{width:43px;height:56px}
}
