@font-face{font-family:Jua;src:url('assets/fonts/Jua-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
:root{color-scheme:dark;--bg:#080f22;--panel:#12233c;--line:#355477;--muted:#aac0d7;--cyan:#67edff;--lime:#c7fa78;--pink:#ff89c9;--ink:#f4f9ff;--game-font:Jua,'Malgun Gothic','Apple SD Gothic Neo',sans-serif;--display:var(--game-font);--mono:var(--game-font)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:400 18px/1.45 var(--game-font);word-break:keep-all}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--lime);outline-offset:4px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}b,strong{font-weight:400}img{max-width:100%}
.starfield{position:fixed;inset:0;z-index:-1;background:linear-gradient(#080f22b8,#080f22ed),url('assets/kenney/starfield.png') repeat}
.starfield:before,.starfield:after{content:'';position:absolute;background-size:contain;background-repeat:no-repeat;pointer-events:none}
.starfield:before{width:640px;height:640px;right:-230px;top:-220px;background-image:url('assets/kenney/planet-cyan.png');opacity:.17}.starfield:after{width:360px;height:360px;left:-170px;bottom:-110px;background-image:url('assets/kenney/planet-purple.png');opacity:.15}
.site-header{max-width:1080px;margin:auto;padding:0 24px;height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px}.wordmark{display:flex;align-items:center;gap:10px;font-size:26px;letter-spacing:.2px}.wordmark img{width:34px;height:34px}.site-header nav{display:flex;gap:20px;font-size:16px}.site-header nav a{min-height:44px;display:flex;align-items:center}.site-header nav a:hover{color:var(--cyan)}
main{max-width:1080px;margin:auto;padding:0 24px}.intro{padding:18px 0 24px;text-align:center}.intro h1{font:400 46px/1 var(--game-font);margin:0 0 10px;letter-spacing:1px}.intro h1>span{color:var(--cyan)}.intro h1 sup{font-size:18px;letter-spacing:0;margin-left:14px;color:#c0d3e7}.tagline{font-size:18px;color:#c0d3e7;margin:0}.layout{display:grid;grid-template-columns:minmax(0,560px) minmax(240px,280px);justify-content:center;align-items:start;gap:24px}.right-panel{display:grid;gap:18px}.panel{padding:22px;border:2px solid #304d70;background:linear-gradient(145deg,#19314b,#101d33);border-radius:20px}.panel h2{font-size:24px;margin:0 0 14px}.panel p{font-size:16px;line-height:1.55;color:#bed1e5}.panel>p:last-child{margin-bottom:0}
.game-shell{border:2px solid #476d93;border-radius:24px;overflow:hidden;background:linear-gradient(160deg,#142b45,#0e1e35);box-shadow:0 8px 0 #040a17,0 0 35px #55edff0c;min-width:0}.game-shell.fever{border-color:#8fe8b1;box-shadow:0 8px 0 #040a17,0 0 28px #c5fb6722}.game-top{min-height:68px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#1a3552;border-bottom:2px solid #345577}.game-top>div:first-child{display:grid;gap:2px}.game-top #sector-label{font-size:22px;color:var(--ink)}.game-top #sector-name{font-size:16px;color:#bad3eb}.online-dot{display:none}.controls{display:flex;gap:7px}.controls button{width:44px;height:44px;border:2px solid #547599;border-radius:12px;background:linear-gradient(#355676,#1c3554);box-shadow:0 3px 0 #081528;font:24px Arial,sans-serif}.controls button:hover{filter:brightness(1.2)}
.arena{position:relative;padding:0 14px 14px;isolation:isolate}.survey-scene{height:138px;position:relative;display:flex;align-items:center;justify-content:space-between;margin:0 -14px;padding:0 18px 20px;overflow:hidden;border-bottom:2px solid #2a496b;background:radial-gradient(ellipse,#264c644a,transparent 65%),url('assets/kenney/starfield.png')}.survey-copy{display:grid;gap:1px;min-width:100px;z-index:1}.survey-copy>span{font-size:18px;color:#c9e8ff}.survey-copy>b{font-size:38px;line-height:1.1;color:var(--cyan);text-shadow:0 3px 0 #08203c}.survey-track{height:5px;margin-top:6px;width:92px;background:#35516e;border-radius:6px;overflow:hidden}.survey-track>i{display:block;height:100%;background:var(--cyan);transition:width .2s}
.survey-planet{width:83px;height:83px;position:absolute;left:50%;top:40%;transform:translate(-50%,-50%)}.survey-planet>img{width:100%;height:100%;object-fit:contain;filter:hue-rotate(var(--planet-hue,0deg)) drop-shadow(0 0 14px #67edff40)}.orbit-track{position:absolute;inset:-10px;border:1px dashed #77efff8a;border-radius:50%;transform:rotate(-25deg) scaleY(.6)}.orbit-track:after{content:'';position:absolute;top:9px;right:8px;width:6px;height:6px;border-radius:50%;background:var(--cyan);box-shadow:0 0 10px var(--cyan)}.planet-label{position:absolute;left:50%;top:91px;transform:translateX(-50%);white-space:nowrap;font-size:14px;color:#d7ecff}.survey-risk{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);font-size:14px;color:#ffd7a6;white-space:nowrap}.survey-chain{z-index:1;text-align:right;min-width:90px}.hull-readout{margin:0}.hull-readout>span{font-size:18px;color:#d6ebff}.hull-readout>strong{font-size:32px;line-height:1.2;display:block;color:var(--lime);text-shadow:0 3px 0 #102f24}.hull-pips{display:flex;justify-content:flex-end;gap:4px;margin-top:3px}.hull-pips>i{font-style:normal;font-size:13px;line-height:1;color:#42566f}.hull-pips>i.intact{color:var(--lime)}.planet-log{display:none}
.crew-line{display:flex;align-items:center;gap:10px;padding:10px;margin-top:14px;background:#0b1b30;border:2px solid #355474;border-radius:14px}.crew-label{display:grid;align-self:center;gap:1px;min-width:36px}.crew-label>span{font-size:16px;color:#bed7ee}.crew-label>b{font-size:22px;line-height:1.1}.crew{display:flex;flex-wrap:wrap;flex:1;gap:7px 6px;padding:3px 0;min-width:0}.explorer{position:relative;display:grid;place-items:center;width:24px;height:30px;flex:0 0 24px;background:var(--color);border:1px solid #ffffff80;border-radius:8px 8px 5px 5px;box-shadow:inset -3px -3px 0 #0004;color:#07182a}.explorer:before{content:'';position:absolute;top:4px;width:17px;height:10px;background:#0d2238;border:1px solid #ffffff80;border-radius:4px}.explorer>span{margin-top:14px;font:11px Arial,sans-serif}.explorer:first-child{outline:2px solid #e9ffff;outline-offset:2px}.queue-end{min-width:30px;font-size:16px;color:#aac2dc;text-align:right}.deployment-brief,.queue-forecast{display:none}
.dock-label,.hangar-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:18px;color:#d0e4f8;margin:12px 1px 8px;min-height:25px}.dock-label>span:last-child,.hangar-label>span:last-child{font-size:14px;color:#adc8e2}.hangar-label>span:first-child{display:flex;gap:8px}.hangar-label b{color:var(--cyan);font-size:20px}.docks{display:grid;grid-template-columns:repeat(var(--dock-count,3),minmax(0,1fr));gap:8px}.dock{height:66px;min-width:0;display:flex;align-items:center;justify-content:center;gap:7px;border:2px solid color-mix(in srgb,var(--color,#7c9cb8) 65%,#294566);border-radius:14px;background:linear-gradient(130deg,color-mix(in srgb,var(--color,#8bc3ef) 15%,#17304b),#102039);color:var(--color,#afc6de)}.dock.empty{border:2px dashed #496b8c;background:#19324c60;cursor:default}.dock.empty>span{font-size:18px;color:#9cb9d4}.dock .ship-art{width:40px;height:48px}.dock-info{display:grid;gap:5px}.dock-info b{font-size:18px;line-height:1}.pips{display:flex;gap:4px}.pips>i{width:7px;height:7px;border:1px solid var(--color);border-radius:50%}.pips>i.filled{background:var(--color);box-shadow:0 0 6px var(--color)}.docks:has(>.dock:nth-child(5)){gap:6px}.docks:has(>.dock:nth-child(5)) .dock{flex-direction:column;gap:2px;height:72px}.docks:has(>.dock:nth-child(5)) .dock .ship-art{width:31px;height:32px}.docks:has(>.dock:nth-child(5)) .dock-info{gap:3px}.docks:has(>.dock:nth-child(5)) .dock-info b{font-size:16px}.docks:has(>.dock:nth-child(5)) .pips{gap:3px}.docks:has(>.dock:nth-child(5)) .pips>i{width:5px;height:5px}.dock-warning{font-size:16px;line-height:1.4;margin:10px 0 0;padding:8px;border:2px solid #edb371;border-radius:10px;background:#56371f88;color:#ffe0ab;text-align:center}.docks.jammed .dock{border-color:#ff9c89;background:linear-gradient(125deg,#773c4966,#382438)}.docks.jammed .dock-info b{color:#ffb9a6}
.hangar{border:2px solid #41668a;border-radius:16px;padding:7px;background:linear-gradient(135deg,#25465b,#101f34);box-shadow:inset 0 0 16px #071322}.board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.cell{aspect-ratio:1;min-width:0;display:grid;place-items:center;border:1px solid #3c5a77;border-radius:10px;background:#142b44;position:relative;padding:0;touch-action:manipulation}.cell.blank{background:radial-gradient(circle,#6c8aaa80 1px,#17304a44 1.5px);border-color:#42607b55}.ship{--color:#55edff;border:2px solid color-mix(in srgb,var(--color) 62%,#314963);background:linear-gradient(145deg,color-mix(in srgb,var(--color) 19%,#162b44),#102239);box-shadow:inset 0 2px 0 #ffffff15,0 3px 0 #08182b;overflow:visible;transition:filter .12s}.ship:hover{filter:brightness(1.15)}.ship:before{content:'';position:absolute;width:60%;height:60%;background:var(--color);opacity:.1;filter:blur(8px);border-radius:50%}.ship .ship-art{width:88%;height:90%;transform:rotate(var(--angle));filter:drop-shadow(0 0 4px color-mix(in srgb,var(--color) 45%,transparent))}.ship-symbol{position:absolute;bottom:2px;left:3px;font:11px Arial,sans-serif;color:var(--color);background:#08172edb;border:1px solid color-mix(in srgb,var(--color) 50%,transparent);border-radius:3px;padding:1px}.ship-direction{position:absolute;right:3px;top:-1px;font:20px Arial,sans-serif;color:var(--color);text-shadow:0 0 4px #071526;line-height:1.1}
.fleet-cyan{--hull-filter:hue-rotate(-10deg) saturate(1.35) brightness(1.1);--flame-filter:hue-rotate(-10deg)}.fleet-pink{--hull-filter:hue-rotate(-45deg) saturate(1.4) brightness(1.14);--flame-filter:hue-rotate(105deg)}.fleet-lime{--hull-filter:hue-rotate(-12deg) saturate(1.25) brightness(1.08);--flame-filter:hue-rotate(-110deg)}.fleet-orange{--hull-filter:saturate(1.35) brightness(1.1);--flame-filter:none}.ship-art{display:block;position:relative;flex-shrink:0;pointer-events:none;isolation:isolate}.ship-sprite{position:absolute;width:94%;height:75%;left:3%;top:9%;object-fit:contain;filter:var(--hull-filter)}.engine-flame{position:absolute;left:50%;top:66%;width:18%;height:32%;object-fit:fill;transform:translateX(-50%) rotate(180deg);filter:var(--flame-filter);animation:engine-flicker .65s ease-in-out infinite alternate}.engine-aura{position:absolute;left:32%;top:60%;width:36%;height:40%;background:radial-gradient(ellipse,var(--color,#55edff),transparent 65%);opacity:.35}
.message{margin:0;padding:10px 14px;min-height:42px;background:#132c46;border-top:2px solid #365878;border-bottom:2px solid #365878;text-align:center;color:#e0efff;font-size:16px;line-height:1.4}.message.warning{color:#ffdbad;background:#493022}.game-bottom{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;padding:12px 14px 15px;background:#10243c}.game-bottom>div{display:flex;align-items:center;justify-content:center;gap:8px;color:#bad1e8;font-size:14px}.game-bottom b{font-size:20px;color:#f0f8ff}.game-bottom>button{min-height:48px;border:2px solid #73b3d2;border-radius:13px;background:linear-gradient(#395c7d,#284663);box-shadow:0 4px 0 #06172d;font-size:20px}.game-bottom #restart{border-color:#c990ad;background:linear-gradient(#63475f,#442f4d)}.game-bottom>button:disabled{opacity:.4;box-shadow:none}.game-bottom>button:hover:not(:disabled){filter:brightness(1.15)}
.telemetry-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #365472;font-size:16px;color:#c1d6ea}.telemetry-row b{font-size:20px;color:var(--cyan);text-align:right}.chain-note{font-size:14px!important;color:#9db8d2!important;text-align:right;margin:5px 0 8px}.new-run{min-height:48px;width:100%;margin-top:16px;border:2px solid #57799c;border-radius:12px;background:#243e5c;font-size:20px}.build-guide h2 b{color:var(--lime);margin-left:6px}.build-guide>p{margin:0 0 14px}.build-list{display:grid;gap:10px}.build-entry{display:flex;align-items:center;gap:12px;text-align:left;width:100%;min-height:72px;padding:12px 10px;border:2px solid color-mix(in srgb,var(--color) 50%,#365578);background:#12283f;border-radius:13px}.build-entry>i{display:grid;place-items:center;flex-shrink:0}.build-entry>span:nth-child(2){flex:1;min-width:0}.build-entry b{display:block;font-size:18px}.build-entry em{font-size:14px;color:var(--color);font-style:normal;white-space:nowrap}.build-entry small{display:block;font-size:16px;color:#bfd8eb;margin-top:3px}.build-entry>span:last-child{font:18px Arial,sans-serif;color:var(--color)}.upgrade-icon{display:block;width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--color,#55edff) 35%,transparent))}.empty-build{font-size:18px!important;margin:0;padding:20px 12px;text-align:center;border:2px dashed #406284;border-radius:12px;color:#c1d6ec!important}.build-footnote{font-size:14px!important;color:#a7bfd7!important;margin:14px 0 0!important}.record-panel summary{font-size:20px;cursor:pointer;min-height:44px;display:flex;align-items:center}.route{display:grid;gap:14px;padding:14px 0}.route-step{display:flex;align-items:center;gap:10px;color:#99b3cd}.route-step>i{font-style:normal;border:2px solid #4d6d8d;border-radius:50%;min-width:32px;height:32px;display:grid;place-items:center}.route-step b{font-size:18px}.route-step small{display:block;font-size:14px}.route-step.active{color:var(--lime)}.route-step.active>i{background:var(--lime);color:#14302e;border-color:var(--lime)}.mission-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #3b5979;padding-top:14px;font-size:16px}.mission-bottom strong{font-size:32px;color:var(--cyan)}.legacy-record{font-size:14px!important;margin:10px 0 0!important}
.upgrade-choice{padding:22px 0 6px;min-height:480px}.choice-heading{text-align:center;margin-bottom:20px}.choice-heading>span{font-size:16px;color:var(--lime)}.choice-heading>h2{font-size:30px;line-height:1.25;margin:8px 0 12px}.choice-heading>p{font-size:16px;color:#c9def0;line-height:1.55;margin:0}.upgrade-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;align-items:stretch}.upgrade-card{display:flex;flex-direction:column;align-items:center;gap:9px;padding:15px 9px;border:2px solid color-mix(in srgb,var(--color) 50%,#345574);border-radius:16px;background:linear-gradient(145deg,color-mix(in srgb,var(--color) 14%,#1a304b),#12253e);text-align:center;min-width:0;transition:filter .15s,box-shadow .15s}.upgrade-card:hover,.upgrade-card.selected{border-color:var(--color);box-shadow:0 0 14px color-mix(in srgb,var(--color) 24%,transparent);filter:brightness(1.1)}.upgrade-card.selected{outline:2px solid var(--color);outline-offset:2px}.upgrade-type{font-size:14px;color:var(--color)}.upgrade-card>i{margin:0;font-style:normal}.upgrade-card>b{font-size:20px;line-height:1.3}.upgrade-card>small{font-size:16px;color:#d0e0ef;flex:1}.upgrade-values{font-size:16px;color:#aac6df;border-top:1px solid #496580;padding-top:9px;width:100%}.upgrade-values>strong{display:block;color:var(--color)}.upgrade-detail{padding:20px 17px;margin-top:20px;border:2px solid #537a9d;border-radius:16px;background:linear-gradient(140deg,#22415b,#142b45);scroll-margin:16px}.detail-label{font-size:14px;color:var(--cyan)}.upgrade-detail h3{font-size:24px;margin:7px 0 12px;line-height:1.3}.upgrade-detail p{font-size:16px;line-height:1.6;color:#d0e2f2;margin:9px 0}.effect-comparison{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 12px;border-radius:12px;background:#0c2037;margin:16px 0}.effect-comparison>span{font-size:14px;flex:1;color:#b4cbe1}.effect-comparison b{display:block;font-size:20px;color:#e7f6ff;line-height:1.4}.effect-comparison>span:last-child b{color:var(--lime)}.effect-comparison>i{font-size:24px;color:var(--cyan);font-style:normal}.upgrade-detail .effect-example{font-size:16px;color:#d9f3ff}.upgrade-detail>small{display:block;font-size:14px;line-height:1.5;color:#acc9e1}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border-radius:13px;font-size:20px;padding:12px 18px;border:2px solid #b0f8ff;box-shadow:0 4px 0 #08778c}.primary{background:linear-gradient(#8bf2ff,#51dcef);color:#092c44}.secondary{background:#2a4765;color:#edf8ff;border-color:#6183a3;box-shadow:0 4px 0 #0b1c32}.confirm-upgrade{display:flex;width:100%;font-size:22px;margin-top:18px;min-height:52px}.confirm-upgrade:disabled{opacity:.45;box-shadow:none}.failure-choice{min-height:0;padding-top:20px}.failure-heading{padding:22px 10px;border:2px solid #e3928e;border-radius:16px;background:#63354566;margin:0}.failure-heading>span{color:#ffb8a7}.failure-heading h2{color:#ffe0cd;font-size:28px}.failure-heading p{color:#ffd5ca}.failure-heading p>b{font-size:24px}
footer{display:flex;justify-content:space-between;gap:16px;padding:28px 0;font-size:14px;color:#9ab5d1}footer a{min-height:44px;display:flex;align-items:center}dialog{position:fixed;max-width:520px;width:calc(100% - 28px);max-height:calc(100dvh - 28px);overflow:auto;border:2px solid #6e9abd;border-radius:22px;padding:24px;background:linear-gradient(145deg,#24445e,#13263f);color:var(--ink);box-shadow:0 12px 0 #040a1b;font:400 18px/1.55 var(--game-font)}dialog::backdrop{background:#030917c9;backdrop-filter:blur(4px)}dialog h2{font-size:28px;line-height:1.3;margin:10px 0 18px}dialog p,dialog li{font-size:16px;line-height:1.6;color:#d2e4f3}dialog ul{padding-left:22px}dialog li{margin:10px 0}.eyebrow{font-size:14px;color:var(--cyan);margin:0}.dialog-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.dialog-actions>button{flex:1;min-width:110px}.modal-close{float:right;width:44px;height:44px;border:1px solid #7398b8;background:#294b68;border-radius:12px;font:28px Arial,sans-serif}.note{font-size:14px!important;color:#b8d2e9!important}.paused .arena{filter:blur(3px)}.paused .engine-flame{animation-play-state:paused}
.fx{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:5}.departure-path{position:absolute;height:1px;border-top:2px dashed var(--color);transform-origin:0 50%;opacity:0;animation:departure-route .6s ease-out forwards}.survey-flight{position:absolute;width:45px;height:50px;margin:-25px -22px;animation:survey-flight .6s cubic-bezier(.45,.05,.4,1) forwards;filter:drop-shadow(0 0 9px var(--color))}.survey-flight .ship-art{width:100%;height:100%;transform:rotate(var(--heading))}.survey-ring{position:absolute;width:40px;height:40px;margin:-20px;border:2px solid var(--color);border-radius:50%;animation:survey-ring .7s ease-out forwards;box-shadow:0 0 12px var(--color),inset 0 0 10px var(--color)}.survey-spark{position:absolute;width:4px;height:4px;border-radius:50%;background:var(--color);box-shadow:0 0 8px var(--color);animation:survey-spark .7s ease-out forwards}.survey-pop{position:absolute;white-space:nowrap;font-size:20px;color:var(--color);text-shadow:0 2px 3px #07101f;animation:survey-pop .9s ease-out forwards}.hit-label{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;opacity:0;z-index:6;white-space:nowrap;font-size:28px;color:#ffe4ce;text-shadow:0 3px 0 #522632,0 0 22px #ff917d}.hit-label.show{animation:hit-label .7s ease-out}.scanning>img{animation:survey-glow .55s ease-out}.evacuating{animation:evacuation .6s steps(2)}.game-shell:has(.evacuating){border-color:#ff9c89;box-shadow:0 0 35px #ff716e55}.game-shell:has(.evacuating) .hull-readout>strong{color:#ff9c89}
@keyframes engine-flicker{from{opacity:.75;scale:1 .88}to{opacity:1;scale:1 1.08}}@keyframes departure-route{0%,100%{opacity:0}25%,70%{opacity:.4}}@keyframes survey-flight{0%{translate:0 0;scale:1;opacity:1}80%{opacity:1}100%{translate:var(--dx) var(--dy);scale:.25;opacity:0}}@keyframes survey-ring{0%{scale:.3;opacity:1}100%{scale:4;opacity:0}}@keyframes survey-spark{0%{translate:0 0;opacity:1}100%{translate:var(--dx) var(--dy);opacity:0}}@keyframes survey-pop{0%{translate:0 0;opacity:1}100%{translate:0 -30px;opacity:0}}@keyframes survey-glow{30%{filter:hue-rotate(var(--planet-hue,0deg)) brightness(1.5) drop-shadow(0 0 20px #55edff)}100%{filter:hue-rotate(var(--planet-hue,0deg)) brightness(1)}}@keyframes evacuation{0%,50%{translate:4px 0;background:#6a2834}25%,75%{translate:-4px 0}100%{translate:0 0}}@keyframes hit-label{0%{opacity:0;scale:.8}20%,70%{opacity:1;scale:1}100%{opacity:0;scale:1.1}}
@media(max-width:760px){.site-header{height:54px;padding:0 14px}.wordmark{font-size:22px;gap:7px}.wordmark img{width:28px;height:28px}.site-header nav{gap:16px;font-size:14px}main{padding:8px 10px 0}.intro{display:none}.layout{display:flex;flex-direction:column;max-width:560px;margin:auto;gap:20px}.game-shell{width:100%;border-radius:20px}.game-top{min-height:64px;padding:10px 12px}.game-top #sector-label{font-size:21px}.game-top #sector-name{display:none}.right-panel{width:100%;grid-template-columns:1fr;gap:16px}.build-guide{grid-row:1}.telemetry{grid-row:2}.record-panel{grid-row:3}.arena{padding:0 12px 12px}.survey-scene{height:124px;margin:0 -12px;padding:0 14px 21px}.survey-copy{min-width:90px}.survey-copy>b{font-size:34px}.survey-copy>span,.hull-readout>span{font-size:18px}.survey-planet{width:72px;height:72px;top:40%}.planet-label{top:80px;font-size:14px}.hull-readout>strong{font-size:30px}.hull-pips>i{font-size:11px}.survey-risk{font-size:14px;bottom:6px}.crew-line{margin-top:12px;padding:8px;gap:8px}.dock-label,.hangar-label{margin-top:10px;margin-bottom:6px;font-size:18px}.dock{height:62px;gap:5px}.dock .ship-art{width:33px;height:42px}.dock-info b{font-size:18px}.docks{gap:7px}.hangar{padding:6px}.board{gap:5px}.ship-direction{font-size:19px}.ship-symbol{font-size:10px;padding:0 1px}.message{font-size:16px;padding:9px 10px}.game-bottom{gap:8px 10px;padding:10px 12px 14px}.game-bottom>button{font-size:20px;min-height:48px}.game-bottom b{font-size:18px}.panel{padding:20px}.build-list{grid-template-columns:1fr 1fr}.build-entry{gap:8px;padding:12px 8px;flex-wrap:wrap;align-content:center}.build-entry b{font-size:18px}.build-entry small{font-size:16px}.build-entry>span:last-child{display:none}.build-entry .upgrade-icon{width:28px;height:30px}.build-entry>span:nth-child(2){flex-basis:90px}.build-list>.empty-build{grid-column:1/-1}.upgrade-choice{padding-top:20px;min-height:0}.upgrade-cards{grid-template-columns:1fr;gap:12px}.upgrade-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:2px 12px;text-align:left;padding:12px 16px;min-height:98px}.upgrade-card>i{grid-column:1;grid-row:1/4}.upgrade-type,.upgrade-card>b,.upgrade-card>small{grid-column:2}.upgrade-card>b{font-size:22px}.upgrade-card>small{font-size:16px}.upgrade-type{font-size:14px}.upgrade-values{display:none}.upgrade-icon{width:40px;height:40px}.choice-heading>h2{font-size:28px}.choice-heading>p{font-size:16px}.upgrade-detail{padding:20px 16px}.upgrade-detail h3{font-size:24px}.upgrade-detail p{font-size:16px}.effect-comparison b{font-size:20px}.confirm-upgrade{font-size:22px}.failure-heading h2{font-size:28px}footer{padding:20px 4px;font-size:14px}.starfield:before{width:420px;height:420px;right:-260px;top:-140px}.starfield:after{width:250px;height:250px;left:-170px}}
@media(max-width:350px){.site-header{padding:0 12px}.site-header nav{gap:12px}.wordmark{font-size:20px}.wordmark img{width:25px;height:25px}.game-top{gap:8px;padding:10px}.game-top #sector-label{font-size:20px}.controls{gap:5px}.survey-copy>b{font-size:30px}.survey-copy{min-width:82px}.survey-chain{min-width:76px}.hull-readout>strong{font-size:28px}.survey-planet{width:64px;height:64px}.hull-pips{gap:3px}.hull-pips>i{font-size:10px}.dock .ship-art{width:28px}.dock-info b{font-size:16px}.ship-direction{font-size:18px}.build-list{grid-template-columns:1fr}.game-bottom>button{font-size:18px}.survey-risk{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.fx{display:none}.hit-label.show{opacity:1}.evacuating{translate:none}}

@media(min-width:351px) and (max-width:760px){.crew-label{display:flex;align-items:center;gap:7px;min-width:74px}.crew-label>span{font-size:16px}.crew-label>b{font-size:22px}.crew-line{padding:8px}.crew{gap:7px 5px}}
@media(max-width:760px){.game-top{min-height:60px;padding-top:8px;padding-bottom:8px}.survey-scene{height:110px}.survey-planet{width:60px;height:60px;top:39%}.planet-label{top:71px;line-height:1.1}.survey-risk{line-height:1.1}.crew-line{margin-top:10px}.dock-label,.hangar-label{margin-top:8px}.dock{height:54px}.game-bottom{padding-top:8px;padding-bottom:12px}}
@media(max-width:350px){main{padding-left:0;padding-right:0}.game-shell{border-radius:16px}.arena{padding-left:8px;padding-right:8px}.survey-scene{margin-left:-8px;margin-right:-8px}.hangar{margin-left:-6px;margin-right:-6px;padding:4px}.board{gap:3px}.queue-end{display:none}.crew-label>span,.crew-label>b{line-height:1.1}.site-header{height:50px}.game-top{min-height:54px;padding-top:5px;padding-bottom:5px}.right-panel{padding:0 10px}}
.cost-preview{padding:14px;border:2px solid #a88692;border-radius:12px;background:#382a40}.cost-preview strong{font-size:28px;color:#ffd6bb}dialog li>b{font-size:20px;color:var(--cyan)}
/* Immersive game surface; document pages keep their normal scrolling layout. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.game-page{height:100vh;height:100dvh;overflow:hidden;overscroll-behavior:none}
.game-page .starfield:before,.game-page .starfield:after{display:none}
.game-app{height:100%;max-width:520px;margin:auto;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:flex;align-items:center}
.game-page .game-shell{width:100%;height:100%;max-height:900px;display:flex;flex-direction:column;min-height:0;min-width:0;border:2px solid #6686a4;border-bottom:5px solid #040c1a;border-radius:24px;overflow:hidden;background:linear-gradient(120deg,#294661,#14263e 70%);box-shadow:0 8px 0 #020914,0 18px 45px #0008,inset 2px 0 0 #c8edff20}
.game-page .game-top{flex-shrink:0;min-height:0;padding:9px 12px;background:linear-gradient(#355779,#203c5a);box-shadow:inset 0 2px #a8deff25}
.game-top h1{font:400 24px/1.1 var(--game-font);margin:0;text-shadow:0 3px #10243b}
.game-page .controls{gap:6px}.game-page .controls button{border-bottom:4px solid #0c2139;background:linear-gradient(#4a7095,#274462);box-shadow:inset 0 2px #c9efff25,0 2px #09172a}
.game-page .arena{display:flex;flex-direction:column;flex:1;min-height:0;padding:0 10px}
.game-page .survey-scene{flex-shrink:0;height:100px;padding:7px 9px 12px;margin:0 -10px;background:radial-gradient(ellipse at center,#38628077,#091b3188)}
.game-page .survey-planet{width:66px;height:66px;top:42%}.game-page .planet-label{top:auto;bottom:5px}.game-page .survey-copy>b{font-size:38px}.game-page .hull-readout>strong{font-size:34px}
.game-page #puzzle-area{display:flex;flex-direction:column;flex:1;min-height:0}
.game-page .crew-line{flex-shrink:0;gap:8px;margin:9px 0 7px;padding:7px 8px;border:2px solid #4b7293;border-top-color:#11263f;border-radius:12px;background:linear-gradient(#09182c,#132d45);box-shadow:inset 0 3px 5px #0005}
.game-page .crew-label{display:grid;gap:0;min-width:34px;line-height:1.1}
.game-page .crew{display:flex;flex:1;min-width:0;gap:6px;flex-wrap:nowrap;padding:0}
.game-page .crew.extended{display:grid;grid-auto-flow:row;grid-template-columns:repeat(8,21px);grid-template-rows:repeat(2,21px);gap:3px;justify-content:start}
.game-page .explorer{box-shadow:inset 2px 2px #fff4,inset -2px -3px #0004,0 2px #0008}
.game-page .extended .explorer{width:20px;height:20px;min-width:0;flex-basis:20px;border-radius:6px}.game-page .extended .explorer:before{width:14px;height:7px;top:2px}.game-page .extended .explorer span{margin-top:8px;font-size:9px}
.game-page .queue-end{display:block;font-size:14px;min-width:24px}
.dock-row{position:relative;flex-shrink:0;padding-top:10px}.dock-caption{position:absolute;top:-3px;left:9px;z-index:1;padding:0 6px;background:#203b55;color:#cfe7f9;font-size:16px;line-height:1}
.game-page .dock{height:66px;gap:7px;padding:3px;border-bottom:5px solid #08182b;background:linear-gradient(130deg,color-mix(in srgb,var(--color,#93b6d5) 22%,#24435c),#10243d);box-shadow:inset 0 2px #ffffff15,0 3px #091729}
.game-page .dock.empty{border:2px dashed #5d7b98;box-shadow:inset 0 3px 8px #0004;background:linear-gradient(#142a40,#1b3650)}
.game-page .dock .ship-art{width:32px;height:42px}.game-page .dock-info b{font-size:18px;white-space:nowrap}
.game-page .docks.expanded .dock{flex-direction:column;gap:2px}.game-page .docks.expanded .dock .ship-art{width:25px;height:27px}.game-page .docks.expanded .dock-info{gap:2px}.game-page .docks.expanded .dock-info b{font-size:16px}.game-page .docks.expanded .pips{display:none}
.game-page .docks.jammed .dock{border-color:#ffab98;background:linear-gradient(#794652,#3e2436)}
.game-page .hangar-label{flex-shrink:0;min-height:31px;margin:0;padding:5px 2px 2px}
.game-page .hangar{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;container-type:size;margin:1px 0 8px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.game-page .board{width:min(100cqw,120cqh);aspect-ratio:6/5;grid-template-rows:repeat(5,minmax(0,1fr));gap:5px;padding:7px;border:2px solid #456887;border-top:4px solid #0b1b2c;border-radius:15px;background:linear-gradient(135deg,#203e56,#0b1b2f);box-shadow:inset 2px 3px 7px #0008,0 2px #86bbd42a}
.game-page .cell{aspect-ratio:auto;min-height:0}
.game-page .cell.blank{box-shadow:inset 0 2px 4px #0003}
.game-page .ship{border:2px solid color-mix(in srgb,var(--color) 70%,#4b6481);border-bottom:6px solid color-mix(in srgb,var(--color) 25%,#07192b);background:linear-gradient(135deg,color-mix(in srgb,var(--color) 42%,#25465d),#1a344d 65%);box-shadow:inset 2px 2px #ffffff35,inset -2px -1px #0004,0 3px 2px #0009;transition:transform .1s,filter .1s}
.game-page .ship:active{transform:translateY(3px);border-bottom-width:3px;box-shadow:inset 0 1px #fff4,0 1px #0008}
.game-page .ship .ship-art{filter:drop-shadow(0 4px 2px #0008)}.game-page .ship-direction{font-size:22px;color:#efffff;text-shadow:0 1px 3px #071526,0 -1px #071526}.game-page .ship-symbol{font-size:12px}
.game-page .engine-flame{animation:none}
.game-page .message{flex-shrink:0;margin:0;padding:4px 8px;min-height:30px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-page .game-bottom{flex-shrink:0;padding:8px 12px 12px;background:linear-gradient(#213f5d,#142a42)}
.game-page .game-bottom>button{min-height:48px;border-bottom:5px solid #081c30;background:linear-gradient(#4b7397,#2c4b6b);box-shadow:inset 0 2px #ffffff25,0 2px #0005}
.game-page .game-bottom #restart{border-color:#ba91ba;border-bottom-color:#301d39;background:linear-gradient(#745777,#4c355b)}
.game-page .game-bottom button:active:not(:disabled),.game-page .controls button:active{transform:translateY(2px);box-shadow:none}
.game-page .upgrade-choice{position:absolute;inset:0;z-index:7;min-height:0;padding:18px 12px;overflow:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at 50% 0,#314967,#10243c 75%);scrollbar-width:thin}
.game-page .choice-heading{margin-bottom:14px}.game-page .choice-heading h2{font-size:30px;line-height:1.15;margin:5px 0 8px}.game-page .choice-heading p{font-size:16px;line-height:1.4}
.game-page .upgrade-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.game-page .upgrade-card{display:flex;flex-direction:column;gap:5px;text-align:center;padding:10px 5px;min-height:0;border-bottom:5px solid #071b30;background:linear-gradient(130deg,color-mix(in srgb,var(--color) 24%,#304963),#172d45);box-shadow:inset 1px 2px #ffffff25,0 3px #08172b}
.game-page .upgrade-card i,.game-page .upgrade-card b,.game-page .upgrade-card small{grid-column:auto;grid-row:auto}.game-page .upgrade-card b{font-size:20px;line-height:1.15}.game-page .upgrade-icon{width:32px;height:32px}.game-page .upgrade-card small{font-size:16px}.game-page .upgrade-values{display:none}
.game-page .upgrade-detail{padding:14px;margin-top:12px;border-bottom:5px solid #0a1d33}.game-page .upgrade-detail h3{font-size:24px;line-height:1.2;margin:4px 0 7px}.game-page .upgrade-detail p{font-size:16px;line-height:1.45;margin:6px 0}.game-page .effect-comparison{margin:10px 0;padding:9px}.game-page .effect-comparison b{font-size:20px;line-height:1.3}.game-page .confirm-upgrade{margin-top:12px}
.game-page .failure-choice{inset:auto 8px 8px;padding:10px;border:2px solid #e2a194;border-radius:16px;background:linear-gradient(#653b49f5,#35243cf8);box-shadow:0 5px 20px #0008}
.game-page .failure-heading{margin:0;padding:0;border:0;background:none}.game-page .failure-heading h2{font-size:26px;margin:2px 0}.game-page .failure-choice .confirm-upgrade{margin-top:8px}
.failure-peek{position:absolute;right:8px;top:8px;min-height:44px;min-width:44px;border:1px solid #be8e9e;border-radius:10px;background:#533348;font-size:16px}.arena.inspect-failure .failure-choice{display:none}
.game-page dialog{max-height:calc(100dvh - max(20px,env(safe-area-inset-top)) - max(20px,env(safe-area-inset-bottom)));overscroll-behavior:contain;box-shadow:0 12px 40px #000b}
.game-page .panel{padding:14px 0 0;margin-top:20px;border:0;border-top:1px solid #5e7c96;border-radius:0;background:none}.game-page .panel h2,.game-page .panel h3{font-size:22px;margin:0 0 12px}
.menu-actions{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}.menu-actions>button{flex:1;min-width:105px}
.game-page .telemetry{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.game-page .telemetry h3,.game-page .telemetry .new-run{grid-column:1/-1}.game-page .telemetry-row{font-size:16px;padding:9px 0;gap:7px}.game-page .telemetry-row b{font-size:18px}.game-page .chain-note{display:none}
.game-page .build-list{grid-template-columns:1fr}.game-page .build-entry{flex-wrap:nowrap}.game-page .build-entry>span:last-child{display:block}
.menu-links{display:flex;justify-content:space-between;gap:16px;margin-top:20px}.menu-links a{min-height:44px;display:flex;align-items:center;text-decoration:underline;color:var(--cyan);font-size:16px}
@media(max-height:740px){.game-page .game-top{padding:6px 10px}.game-top h1{font-size:22px}.game-page .survey-scene{height:74px;padding-top:3px;padding-bottom:6px}.game-page .survey-copy>b{font-size:32px}.game-page .hull-readout strong{font-size:30px}.game-page .survey-planet{width:50px;height:50px;top:40%}.game-page .planet-label{bottom:1px}.game-page .hull-pips{display:none}.game-page .crew-line{margin:6px 0 4px;padding:5px 7px}.game-page .dock{height:54px}.game-page .hangar-label{min-height:26px;padding-top:3px}.game-page .game-bottom{padding:6px 10px 9px}.game-page .game-bottom button{min-height:46px}.game-page .message{padding:3px 7px;min-height:27px}.game-page .upgrade-choice{padding-top:10px}.game-page .choice-heading{margin-bottom:9px}.game-page .choice-heading p{display:none}.game-page .upgrade-card small{display:none}.game-page .upgrade-card{gap:3px;padding:7px 4px}.game-page .upgrade-detail{padding:10px;margin-top:9px}}
@media(max-width:350px){.game-page .game-app{padding-left:4px;padding-right:4px}.game-page .game-shell{border-radius:18px}.game-page .arena{padding-left:7px;padding-right:7px}.game-page .survey-scene{margin-left:-7px;margin-right:-7px}.game-page .game-top{padding-left:9px;padding-right:9px}.game-top h1{font-size:21px}.game-page .crew{gap:4px}.game-page .crew-label{min-width:30px}.game-page .crew-line{gap:6px}.game-page .crew.extended{grid-auto-columns:20px;gap:2px}.game-page .dock{gap:3px}.game-page .dock .ship-art{width:25px;height:35px}.game-page .dock-info b{font-size:16px}.game-page .board{padding:4px;gap:3px}.game-page .ship-direction{font-size:20px}.game-page .game-bottom button{font-size:18px}.game-page .upgrade-card b{font-size:18px}.game-page .telemetry{grid-template-columns:1fr}}
@media(max-height:600px){.game-app{padding-top:max(3px,env(safe-area-inset-top));padding-bottom:max(3px,env(safe-area-inset-bottom))}.game-page .game-top{padding-top:3px;padding-bottom:3px}.game-page .survey-scene{height:62px}.game-page .survey-copy>b,.game-page .hull-readout strong{font-size:28px}.game-page .survey-track,.game-page .planet-label{display:none}.game-page .survey-planet{width:46px;height:46px;top:50%}.game-page .crew-line{margin-top:4px;padding-top:4px;padding-bottom:4px}.game-page .crew-label{display:flex;align-items:center;gap:5px}.game-page .crew-label b{font-size:20px}.game-page .explorer{height:25px}.dock-row{padding-top:8px}.game-page .dock{height:48px}.game-page .dock .ship-art{height:30px}.game-page .docks.expanded .dock .ship-art{height:22px}.game-page .hangar-label{min-height:24px}.game-page .hangar{margin-bottom:5px}.game-page .board{padding:4px;gap:3px}.game-page .game-bottom{padding-top:5px;padding-bottom:6px}.game-page .message{min-height:24px}}
@media(max-height:600px) and (orientation:portrait){.game-page .game-top{padding-top:0;padding-bottom:0}.game-page .survey-scene{height:52px;padding-top:0;padding-bottom:0}.game-page .survey-copy>span,.game-page .hull-readout>span{line-height:1}.game-page .crew-line{padding-top:1px;padding-bottom:1px;margin-bottom:2px}.game-page .dock-row{padding-top:6px}.game-page .dock{height:44px}.game-page .hangar-label{line-height:1.1;padding-top:2px;padding-bottom:0;min-height:23px}.game-page .message{padding-top:1px;padding-bottom:1px;line-height:20px;min-height:24px}.game-page .game-bottom{padding-top:4px;padding-bottom:4px}.game-page .game-bottom button{min-height:44px}}
@media(orientation:landscape) and (max-height:540px){.game-page .game-app{max-width:920px}.game-page .arena{display:grid;grid-template-columns:180px minmax(0,1fr);gap:0 12px}.game-page .survey-scene{height:100%;margin:0;grid-column:1;padding:12px;align-items:start}.game-page .survey-planet{top:52%;width:85px;height:85px}.game-page .survey-chain{align-self:end;margin-left:auto}.game-page .survey-copy>b,.game-page .hull-readout strong{font-size:30px}.game-page #puzzle-area{grid-column:2;grid-row:1}.game-page .crew-line{margin:3px 0}.game-page .crew-label{display:flex;align-items:center;gap:5px}.game-page .dock-row{padding-top:5px}.dock-caption{display:none}.game-page .dock{height:44px}.game-page .hangar-label{min-height:22px}.game-page .game-top{padding-top:3px;padding-bottom:3px}.game-page .game-bottom{padding:4px 25% 6px}.game-page .message{min-height:24px}.game-page .upgrade-choice{grid-column:1/-1}.game-page .failure-choice{left:200px}}
.game-page .board{border-top-width:2px}
.game-page .upgrade-choice>.confirm-upgrade{position:sticky;bottom:0;z-index:2;box-shadow:0 4px 0 #08778c,0 -8px 14px #10243cc9}
.game-page .failure-heading p{display:block}
@media(max-width:350px){.game-page .crew.extended{grid-template-columns:repeat(8,20px)}}
@media(max-height:600px) and (orientation:portrait){.game-page .long-queue .survey-scene{height:33px}.game-page .long-queue .survey-copy,.game-page .long-queue .hull-readout{display:flex;gap:6px;align-items:center}.game-page .long-queue .survey-planet{width:26px;height:26px;top:50%}}
@media(orientation:landscape) and (max-height:540px){
.game-page .game-shell{position:relative}.game-page .arena{grid-template-columns:180px minmax(0,1fr);grid-template-rows:84px 48px 76px minmax(0,1fr);gap:0 12px}
.game-page .survey-scene{grid-column:1;grid-row:1;height:84px;padding:3px 5px;align-items:center}.game-page .survey-planet{width:24px;height:24px;top:50%}.game-page .survey-copy{min-width:0}.game-page .survey-copy>b,.game-page .hull-readout strong{font-size:28px}.game-page .survey-chain{align-self:center}.game-page .survey-track,.game-page .planet-label{display:none}
.game-page #puzzle-area{display:contents}.game-page .crew-line{grid-column:1;grid-row:2;min-width:0;padding:4px;gap:4px;align-self:center}.game-page .crew-label{min-width:24px;display:grid}.game-page .crew-label>span{font-size:14px}.game-page .crew-label b{font-size:18px}.game-page .crew{gap:3px}.game-page .explorer{width:18px;height:25px;flex-basis:18px}.game-page .explorer:before{width:13px}.game-page .queue-end{display:none}.game-page .crew.extended{grid-template-columns:repeat(8,14px);grid-template-rows:repeat(2,18px);gap:2px}.game-page .extended .explorer{width:14px;height:18px}.game-page .extended .explorer:before{width:10px;height:6px}
.game-page .dock-row{grid-column:1;grid-row:3;padding-top:4px;align-self:start}.game-page .dock{height:60px;flex-direction:column;gap:2px}.game-page .dock .ship-art{width:23px;height:26px}.game-page .dock-info b{font-size:16px}.game-page .pips{display:none}.game-page .dock.empty>span{font-size:16px}.game-page .docks{gap:5px}.game-page .hangar-label{display:none}
.game-page .hangar{grid-column:2;grid-row:1/-1;margin:3px 0 7px}.game-page .board{gap:3px;padding:4px}
.game-page .message{position:absolute;left:12px;bottom:62px;width:180px;padding:3px;font-size:14px;line-height:1.3;border:0;background:transparent;white-space:normal}
.game-page .game-bottom{position:absolute;left:0;bottom:0;width:204px;gap:6px;padding:5px 10px 9px;border:0;background:none}.game-page .game-bottom>button{min-height:44px;font-size:18px;padding:2px}
.game-page .failure-choice{left:200px}.game-page .upgrade-choice:not(.failure-choice){left:0}
}
