*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#030712;color:#e2f4ff;font:13px system-ui,-apple-system,sans-serif;touch-action:none}canvas{display:block;width:100vw;height:100dvh;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:none}input,textarea{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}button{background:linear-gradient(145deg,#18334b,#0a1829);border:1px solid #39728b;color:#e6f9ff;border-radius:10px;padding:10px 12px;font-weight:750;letter-spacing:.07em;box-shadow:inset 0 1px #ffffff15,0 3px 12px #0006}button:active{background:#28617c;transform:scale(.97)}.hud{position:absolute;top:max(10px,env(safe-area-inset-top));left:12px;right:12px;display:flex;gap:7px;align-items:center;flex-wrap:wrap;pointer-events:none}.hud>*{pointer-events:auto}.pill{background:#061524e8;border:1px solid #2c556e;border-radius:8px;padding:8px 10px;font-size:11px;letter-spacing:.035em;box-shadow:0 4px 18px #0008}.bottom{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));right:14px;display:flex;gap:8px;align-items:end}.actions{display:grid;grid-template-columns:repeat(4,minmax(65px,1fr));gap:8px}.actions button{min-height:48px;font-size:10px;padding:6px 7px}.actions #mine{border-color:#39a88d;color:#7af5cf}.actions #shoot{border-color:#a95466;color:#ff9ca9}.actions #auto{color:#a7d7ff}.actions #dock{color:#f5dba1}.actions #dock:disabled{opacity:.4;filter:grayscale(.6)}.stick{position:absolute;left:22px;bottom:max(26px,env(safe-area-inset-bottom));width:116px;height:116px;border-radius:100%;border:1px solid #5b9ab6;background:radial-gradient(circle,#214e6466,#0a263b55 60%,#0a263b22);box-shadow:inset 0 0 20px #0008,0 0 0 7px #0b203055;touch-action:none}.stick:before,.stick:after{content:'';position:absolute;background:#5f9eb033}.stick:before{width:1px;height:90%;left:50%;top:5%}.stick:after{height:1px;width:90%;top:50%;left:5%}.nub{position:absolute;left:40px;top:40px;width:36px;height:36px;background:radial-gradient(circle at 35% 30%,#b5e9ff,#3987a7);border:1px solid #b0edff;border-radius:100%;box-shadow:0 0 16px #2cbed866}.panel{position:absolute;top:68px;right:12px;width:min(375px,92vw);max-height:calc(100dvh - 135px);overflow:auto;background:linear-gradient(155deg,#10283af8,#071322fa);border:1px solid #4383a0;border-radius:14px;padding:18px;display:none;box-shadow:0 18px 70px #000c;backdrop-filter:blur(12px)}.panel.open{display:block}.panel h3{margin:3px 0 13px;color:#b9edff;letter-spacing:.09em;text-transform:uppercase}.panel p{color:#abc6d7;line-height:1.55}.panel button{margin:4px}.close{float:right}.log{display:none!important;position:absolute;bottom:155px;left:16px;max-width:53vw;font-size:12px;color:#b8eff7;text-shadow:0 1px 5px #000;background:#071a2dbd;padding:8px 11px;border-left:2px solid #4fcbbd;border-radius:3px}.small{font-size:12px;color:#9bb9cf}.brand{position:absolute;left:15px;top:62px;pointer-events:none;font-size:10px;letter-spacing:.28em;color:#8baec2;text-shadow:0 2px 8px #000}.brand b{display:block;color:#d8f6ff;font-size:17px;letter-spacing:.22em;font-weight:800}.reticle{position:absolute;left:50%;top:50%;width:78px;height:78px;transform:translate(-50%,-50%);border:1px solid #5bc2df24;border-radius:50%;pointer-events:none}.reticle:before,.reticle:after{content:'';position:absolute;background:#5bc2df44}.reticle:before{width:12px;height:1px;left:-6px;top:50%;box-shadow:78px 0 #5bc2df44}.reticle:after{width:1px;height:12px;top:-6px;left:50%;box-shadow:0 78px #5bc2df44}@media(max-width:750px){.hud{right:7px;left:7px;gap:4px}.pill{padding:5px 6px;font-size:9px}.hud button{padding:6px 7px;font-size:10px}.actions{grid-template-columns:repeat(2,72px);gap:6px}.actions button{min-height:48px;padding:7px 4px;font-size:10px}.stick{width:100px;height:100px;left:14px}.nub{left:32px;top:32px}.bottom{right:8px;bottom:12px}.log{bottom:120px;max-width:45vw;font-size:10px}.brand{top:86px;font-size:8px}.brand b{font-size:13px}.panel{top:86px;max-height:calc(100dvh - 110px)}} .receipt{position:absolute;z-index:30;left:50%;top:50%;transform:translate(-50%,-50%);width:min(340px,88vw);background:linear-gradient(160deg,#153449,#071521);border:1px solid #66d6d5;border-radius:14px;padding:20px;box-shadow:0 18px 70px #000d,0 0 28px #39b5b533;display:none;text-align:center}.receipt.open{display:block}.receipt h3{margin:0 0 10px;color:#a4fff0;letter-spacing:.12em}.receipt p{line-height:1.6;margin:8px 0;color:#d7edf6}.receipt .sum{font-size:20px;font-weight:800;color:#a4fff0}.receipt button{margin-top:12px;min-width:110px}  .panel{z-index:55}.receipt{z-index:60} .modeScreen{position:absolute;inset:0;z-index:40;background:radial-gradient(ellipse at 55% 30%,#142b44,#040912 75%);color:#d8f4ff;display:none;overflow:auto;padding:max(24px,env(safe-area-inset-top)) 20px max(30px,env(safe-area-inset-bottom));text-align:center}.modeScreen.open{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.modeScreen h1{font-size:clamp(22px,6vw,34px);letter-spacing:.15em;margin:0}.modeScreen p{max-width:430px;line-height:1.6;color:#a8c6d9}.modeScreen button{width:min(330px,90vw);min-height:49px}.modeScreen .menuCard{border:1px solid #32667e;background:#0a1d2ccc;padding:18px;border-radius:14px;width:min(410px,92vw)}.modeScreen .menuCard button{margin:5px 0}.modeScreen .muted{color:#88a6ba;font-size:12px}.waypoint{position:absolute;pointer-events:none;z-index:4;width:24px;height:24px;border:2px solid #77d8ff;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 18px #46bdf688;display:none}.waypoint:after{content:'';position:absolute;inset:7px;border:1px solid #a5ecff;border-radius:50%}body.docked .hud,body.docked .bottom,body.docked .brand,body.docked .reticle,body.docked .log{display:none}body.docked #game{visibility:hidden}body.docked .stick{display:none} .hud #mapBtn{color:#e9c889}.quest{position:absolute;z-index:8;top:145px;left:12px;max-width:225px;background:#071b2cdb;border:1px solid #3e8d9c;border-radius:10px;padding:9px 12px;color:#d5f6ff;font-size:11px;pointer-events:none}body.docked .quest{display:none}.dialog{position:absolute;inset:0;z-index:80;background:#020710dc;display:none;align-items:center;justify-content:center;padding:18px}.dialog.open{display:flex}.dialogCard{max-width:440px;width:100%;background:linear-gradient(155deg,#142e43,#071322);border:1px solid #66b9d1;border-radius:16px;padding:22px;box-shadow:0 18px 80px #000d}.dialogCard h2{color:#a8e8ff;letter-spacing:.08em}.dialogCard p{line-height:1.65;color:#d1e6f3}.dialogCard button{margin:5px}.volume{width:100%;accent-color:#6cceea} #throttleUI{position:absolute;z-index:12;right:7px;top:32%;height:36%;min-height:180px;width:70px;background:#061524e8;border:1px solid #39728b;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 3px}#throttleUI small{font-size:9px;text-align:center}#throttleLever{writing-mode:vertical-lr;direction:rtl;appearance:slider-vertical;flex:1;width:25px;min-height:70px;accent-color:#55d8f1;touch-action:none}#throttleUI button{padding:5px;font-size:10px}body #throttleUI{display:none!important}#warpScreen{background:transparent;pointer-events:none}#warpScreen h1,#warpScreen p{display:none}body.hyperspace .hud,body.hyperspace .bottom,body.hyperspace .brand,body.hyperspace .reticle,body.hyperspace .log,body.hyperspace .quest,body.hyperspace #throttleUI,body.hyperspace .stick,body.hyperspace .panel,body.hyperspace .receipt{display:none!important}body.hyperspace #warpScreen{background:transparent}body.hyperspace #warpScreen *{display:none!important}#gameoverScreen h1{color:#ff8891;text-shadow:0 0 25px #f34545}#gameoverScreen button{margin:6px 0}@media (orientation:landscape){.hud{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));top:max(6px,env(safe-area-inset-top));gap:5px}.hud button{padding:7px 9px;font-size:10px}.pill{padding:6px 8px}.bottom{right:max(14px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom))}.actions{grid-template-columns:repeat(3,minmax(75px,88px));gap:5px}.actions button{min-height:39px}.brand{pointer-events:none}.modeScreen{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}}#rotatePrompt{display:none;position:fixed;inset:0;z-index:9999;background:#030a16;color:#d9f4ff;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:28px;font-size:16px;gap:16px}#rotatePrompt strong{font-size:24px;letter-spacing:.1em}#rotatePrompt .rotateIcon{font-size:58px;line-height:1}@media (orientation:portrait) and (pointer:coarse){#rotatePrompt{display:flex}}html,body{overscroll-behavior:none}canvas{height:100dvh}.vossCard{display:flex;align-items:stretch;gap:16px;max-width:min(700px,94vw);max-height:85dvh;overflow:auto}.vossPortrait{width:35%;min-width:110px;max-width:230px;object-fit:cover;border:1px solid #51839c;border-radius:9px}.vossWords{flex:1;min-width:0}.systemMap{display:flex;gap:14px;align-items:center;width:min(1100px,96vw);max-height:75dvh;background:#061321e8;border:1px solid #315a74;border-radius:16px;padding:12px}.systemChart{width:65%;max-height:68dvh;min-width:0}.mapControls{flex:1;min-width:170px;display:flex;flex-direction:column;gap:9px}.mapControls button{width:100%}.installScreen:not([hidden]){position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;background:#030914f7;padding:24px}.installCard{width:min(540px,90vw);padding:25px;border:1px solid #42849e;border-radius:16px;background:#0b1c30;text-align:center}.installCard button{margin:6px}.installCard p{line-height:1.6}@media(max-height:450px){.vossCard{max-height:86dvh}.vossPortrait{max-width:170px}.systemMap{max-height:77dvh}.mapControls{gap:4px}.mapControls button{padding:7px}.modeScreen h1{margin:2px}}@media(max-width:680px){.systemMap{gap:6px;padding:7px}.systemChart{width:58%}.mapControls{min-width:130px}.mapControls button{font-size:10px;padding:6px}.vossCard{gap:8px;padding:10px}}#stationScreen.open{justify-content:flex-start;gap:8px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom))}#stationScreen h1{font-size:clamp(18px,3.6vw,27px)}#stationScreen>p{margin:0}#stationScreen .menuCard{width:min(480px,92vw);padding:12px;display:flex;flex-direction:column;align-items:stretch;gap:6px;flex-shrink:0}#stationScreen .menuCard>button{width:100%;margin:0;min-height:39px;padding:8px 10px;flex-shrink:0}#stationScreen .stationSound{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:8px 12px;text-align:left;padding:5px 4px}#stationScreen .stationSound label{font-size:12px}#stationScreen .stationSound input{width:100%;min-width:0;margin:0;touch-action:pan-x}@media(max-height:550px){#stationScreen.open{gap:5px}#stationScreen .menuCard{gap:4px;padding:8px}#stationScreen .menuCard>button{min-height:32px;padding:5px 8px;font-size:11px}#stationScreen .stationSound{gap:4px 8px;padding:0 4px}} /* Unified landscape-friendly menus */.modeScreen.open{justify-content:flex-start;gap:10px;padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom))}.modeScreen:not(#mapScreen):not(#stationScreen)>.menuCard{width:min(480px,92vw);padding:12px;display:flex;flex-direction:column;align-items:stretch;gap:6px;flex-shrink:0}.modeScreen:not(#mapScreen):not(#stationScreen)>.menuCard>button{width:100%;min-height:39px;margin:0;padding:8px 10px;flex-shrink:0}.modeScreen:not(#mapScreen):not(#stationScreen)>.menuCard>p{margin:5px auto}.modeScreen h1{font-size:clamp(18px,3.6vw,27px)}#saveScreen .dialogCard{width:min(480px,92vw);max-width:none;max-height:85dvh;overflow-y:auto;padding:12px}#saveScreen #saveSlots{display:flex;flex-direction:column;gap:6px}#saveScreen #saveSlots button,#saveScreen #saveCancel{width:100%!important;margin:0!important;min-height:39px;padding:8px 10px}#saveScreen .dialogCard h2{margin:4px 0 12px}@media(max-height:550px){.modeScreen.open{gap:5px}.modeScreen:not(#mapScreen):not(#stationScreen)>.menuCard{gap:4px;padding:8px}.modeScreen:not(#mapScreen):not(#stationScreen)>.menuCard>button{min-height:32px;padding:5px 8px;font-size:11px}#saveScreen #saveSlots button,#saveScreen #saveCancel{min-height:32px;padding:5px 8px}} #weaponDock{flex-direction:column;width:min(342px,calc(100vw - 24px));box-sizing:border-box;display:none;position:absolute;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:8;align-items:center;gap:7px;padding:6px 9px;border:1px solid #3d7e9b88;border-radius:13px;background:#071727c9;box-shadow:0 3px 18px #0009;backdrop-filter:blur(7px)}#weaponDock button{padding:9px 15px;font-size:12px;min-width:72px}#weaponDock .weaponTag{font-size:10px;color:#91cce8;font-weight:700;white-space:nowrap}#weaponDock.active{display:flex}#weaponDock>.weaponTag{width:100%;box-sizing:border-box}#weaponDock>#autoFire{width:100%}#missileControls{width:100%;min-width:0;flex-direction:column;gap:8px;padding-top:9px;border-top:1px solid #34556b}#missileControls .missileHeader{display:flex;justify-content:space-between;align-items:center;gap:6px;min-width:0}#missileControls .weaponTag{font-size:9px;overflow:hidden;text-overflow:ellipsis;min-width:0}#missileAmmoCount{white-space:nowrap;color:#ffca8d;font-size:11px;font-weight:800}#missileControls #fireMissile{width:100%;border-color:#b67a4c;background:#34241fe6;color:#ffd4a9}#laserRangeWarning{width:100%}#skillsDock{display:none;position:absolute;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:9;width:min(440px,55vw);padding:10px;border:1px solid #478bb0a8;border-radius:14px;background:#071827e8;box-shadow:0 6px 28px #000b;backdrop-filter:blur(10px);gap:8px;flex-direction:column}#skillsDock.active{display:flex}#skillsDock .skillHead{display:flex;justify-content:space-between;align-items:center;color:#b9e6fb;font-size:11px;font-weight:800;letter-spacing:.1em}#skillsDock .skillHead button{padding:2px 8px;font-size:12px}#skillsDock .skillCard{width:100%;padding:8px 10px;background:#10283bcc;border:1px solid #376782;border-radius:9px;text-align:left;display:block}#skillsDock .skillCard:disabled{opacity:.65;transform:none}#skillsDock .skillRow{display:flex;align-items:center;justify-content:space-between;gap:9px}#skillsDock .skillName{font-size:12px;font-weight:800;color:#e2f6ff}#skillsDock .skillInfo{font-size:10px;color:#a6c0d2;margin-top:2px}#skillsDock .skillTime{font-size:12px;color:#a8f2ff;font-weight:800;font-variant-numeric:tabular-nums}#skillsDock .skillBar{height:4px;margin-top:7px;background:#30495a;border-radius:5px;overflow:hidden}#skillsDock .skillFill{height:100%;width:100%;background:#69d8ff;transition:width .2s linear}#skillsDock #hullFill{background:#ffb47b}@media(max-height:440px){#skillsDock{padding:6px;gap:5px}#skillsDock .skillCard{padding:5px 8px}}#skillsDock{left:auto;right:12px;bottom:calc(max(22px,env(safe-area-inset-bottom)) + 48px + 18px);transform:none;width:auto;min-width:0;max-width:240px;padding:7px;gap:6px}#skillsDock .skillHead{font-size:9px}#skillsDock .skillIcons{display:flex;gap:6px}#skillsDock .skillIcon{position:relative;width:56px;height:52px;display:grid;place-items:center;padding:0;background:linear-gradient(145deg,#153e57,#091b2e);border:1px solid #5297ba;border-radius:9px;overflow:hidden;touch-action:none}#skillsDock .skillGlyph{font-size:27px;line-height:1;color:#8cdeff}#skillsDock #useHull .skillGlyph{color:#ffc08b}#skillsDock #useAfterburner .skillGlyph{color:#ffa55f}#skillsDock .skillOverlay{position:absolute;inset:0;display:none;align-items:center;justify-content:center;background:#061321b8;font-size:13px;font-weight:800;color:#fff;font-variant-numeric:tabular-nums}#skillsDock .skillIcon.cooling .skillOverlay{display:flex}#skillsDock .skillIcon.cooling{border-color:#425e70}#skillDetail{display:none;position:absolute;right:12px;bottom:calc(max(16px,env(safe-area-inset-bottom)) + 145px);z-index:15;width:min(260px,70vw);padding:12px;background:#081a2af5;border:1px solid #65a7c8;border-radius:12px;box-shadow:0 8px 32px #000c}#skillDetail.active{display:block}#skillDetailBody{line-height:1.6;color:#c8e9fa}#skillDetail button{margin-top:8px;padding:7px 12px}@media(max-width:780px){.actions{gap:5px;grid-template-columns:repeat(4,minmax(60px,1fr))}.actions button{font-size:9px;padding:5px}} #questTracker.quest{position:absolute!important;left:auto!important;right:max(12px,env(safe-area-inset-right))!important;top:calc(max(10px,env(safe-area-inset-top)) + 64px)!important;bottom:auto!important;max-width:min(360px,52vw);width:max-content;text-align:right;z-index:8}@media(max-height:480px){#questTracker.quest{top:calc(max(8px,env(safe-area-inset-top)) + 56px)!important}}#laserRangeWarning{display:none;font-size:9px;font-weight:800;color:#ffac82;text-align:center;white-space:nowrap;letter-spacing:.02em;text-shadow:0 0 7px #a33}#laserRangeWarning.visible{display:block;animation:laserRangeBlink 1s ease-in-out infinite}@keyframes laserRangeBlink{0%,100%{opacity:1}50%{opacity:.25}}@media(prefers-reduced-motion:reduce){#laserRangeWarning.visible{animation:none}}#flightSticks{position:fixed;inset:0;pointer-events:none;z-index:15;display:none}body.flight-mode #flightSticks{display:block}.flightStick{position:absolute;bottom:16px;width:116px;height:116px;border:2px solid #6bb9d477;border-radius:50%;background:#071b2c99;pointer-events:auto;touch-action:none;user-select:none}.flightStick.left{left:15px}.flightStick.right{right:15px}.flightStick:after{content:'';position:absolute;left:calc(50% - 19px);top:calc(50% - 19px);width:38px;height:38px;border-radius:50%;background:#4aa9c0aa;border:2px solid #9feeff;transform:translate(var(--jx,0px),var(--jy,0px))}#weaponDock{z-index:17}#autoFire{touch-action:none;min-height:46px}#heatReadout{font-size:11px;color:#f2bd77;margin:0 5px}@media(min-width:900px){.flightStick{width:135px;height:135px}}/* v0.13.1 mobile combat cockpit */
body.flight-mode .bottom{right:max(12px,env(safe-area-inset-right));bottom:auto;top:84px;z-index:16;align-items:flex-start}
body.flight-mode .bottom .actions{display:flex;flex-direction:row;gap:7px}
body.flight-mode .bottom .actions button{min-width:68px;padding:9px 10px;font-size:11px;border-radius:9px;background:linear-gradient(160deg,#153d54,#071a2d);box-shadow:inset 0 1px #7dc4e544,0 3px 12px #0008}
body.flight-mode #skillsDock{position:fixed;right:max(12px,env(safe-area-inset-right));top:128px;bottom:auto;z-index:25}
body.flight-mode #weaponDock{position:fixed;left:clamp(108px,15vw,185px);bottom:max(123px,env(safe-area-inset-bottom) + 119px);transform:none;width:auto;min-width:0;max-width:110px;padding:0;border:0;background:transparent;box-shadow:none;backdrop-filter:none;gap:3px;z-index:21}
body.flight-mode #weaponDock>.weaponTag{display:none}
body.flight-mode #autoFire{width:76px;height:76px;min-width:76px;border-radius:50%;padding:0;font-size:13px;font-weight:900;letter-spacing:.08em;background:radial-gradient(circle at 40% 28%,#287a9a,#09283e 75%);border:3px solid #7ee6ff;box-shadow:0 0 0 5px #12485c77,0 0 22px #39d5ff88,inset 0 0 16px #60cfff33;touch-action:none}
body.flight-mode #autoFire.firing{background:radial-gradient(circle,#4ebbd5,#07527c);box-shadow:0 0 22px #72f4ff,0 0 0 5px #185f6a88}
body.flight-mode #autoFire.overheated{border-color:#ff835e;box-shadow:0 0 18px #ff5b44}
body.flight-mode #heatReadout{font-size:10px;color:#ffca7b;text-align:center;white-space:nowrap}
body.flight-mode #missileControls{position:absolute;left:-82px;top:0;width:70px;min-width:0;padding:0;border:0;display:flex;align-items:center}
body.flight-mode #missileControls .missileHeader{display:none}
body.flight-mode #fireMissile{width:58px;height:58px;min-width:58px;padding:3px;border-radius:50%;font-size:9px;font-weight:800;background:radial-gradient(circle,#87572b,#302017);border:2px solid #ffbc6c;box-shadow:0 0 13px #ffa34a55}
body.flight-mode #flightSticks .flightStick{bottom:max(12px,env(safe-area-inset-bottom));width:clamp(100px,15vw,136px);height:clamp(100px,15vw,136px);background:radial-gradient(circle,#10324677,#071a2c99);box-shadow:inset 0 0 22px #42a4c022,0 0 20px #07192788}
body.flight-mode #aimStick{border-color:#52d6bd;left:max(14px,env(safe-area-inset-left))}
body.flight-mode #thrustStick{border-color:#61b7ff;right:max(14px,env(safe-area-inset-right))}
body.flight-mode #aimStick:after{background:#2a9c8a;border-color:#b1ffe6}
body.flight-mode #thrustStick:after{background:#367ac3;border-color:#d0eaff}
body.flight-mode #flightSticks{z-index:18}
@media(max-height:440px){body.flight-mode .bottom{top:67px}body.flight-mode #weaponDock{bottom:max(108px,env(safe-area-inset-bottom) + 104px)}body.flight-mode #autoFire{width:62px;height:62px;min-width:62px}body.flight-mode #fireMissile{width:48px;height:48px;min-width:48px}body.flight-mode #flightSticks .flightStick{width:100px;height:100px}}
body.flight-mode .bottom{position:fixed!important;left:max(15px,env(safe-area-inset-left))!important;right:auto!important;top:82px!important;bottom:auto!important;width:auto!important;z-index:19!important;pointer-events:none}body.flight-mode .bottom .actions{display:flex!important;gap:9px!important;pointer-events:auto}body.flight-mode .bottom .actions button{width:60px!important;height:60px!important;min-width:60px!important;padding:2px!important;border-radius:50%!important;font-size:0!important;border:2px solid #7bdfff!important;background:radial-gradient(circle,#225574,#091b2c)!important;box-shadow:0 0 16px #3ba7dd55!important}body.flight-mode #auto:before{content:'⚡';font-size:25px}body.flight-mode #auto:after{content:'SKILLS';display:block;font-size:8px}body.flight-mode #dock{border-color:#ffcc83!important;background:radial-gradient(circle,#654c2a,#1c1a18)!important}body.flight-mode #dock:before{content:'✦';font-size:25px}body.flight-mode #dock:after{content:'WARP';display:block;font-size:8px}body.flight-mode #skillsDock{position:fixed!important;left:max(15px,env(safe-area-inset-left))!important;right:auto!important;top:151px!important;bottom:auto!important;z-index:30!important;pointer-events:auto}body.flight-mode #weaponDock{left:clamp(140px,17vw,235px)!important}body.flight-mode #switchPrimary{position:absolute;left:91px;top:-4px;min-width:77px;width:77px;height:48px;padding:3px;border-radius:23px;border:2px solid #66d5ed;background:radial-gradient(circle,#1b5c79,#071a2c);color:#c5faff;font-size:10px;font-weight:bold;box-shadow:0 0 12px #45b4e866} @media(max-height:440px){body.flight-mode .bottom{top:68px!important}body.flight-mode .bottom .actions button{width:50px!important;height:50px!important;min-width:50px!important}body.flight-mode #skillsDock{top:124px!important}body.flight-mode #switchPrimary{left:75px;width:65px;min-width:65px;height:42px}}body.flight-mode #weaponDock:has(#switchPrimary.miningMode) #heatReadout{visibility:hidden}#allStopBtn{display:none;position:fixed;left:max(32px,env(safe-area-inset-left) + 18px);bottom:143px;z-index:20;border:1px solid #80e5ff;background:#092e42e8;color:#d8faff;border-radius:18px;padding:10px 13px;font-weight:800;font-size:11px;letter-spacing:.07em;touch-action:manipulation;box-shadow:0 0 14px #39c6ff44}body.flight-mode #allStopBtn{display:none}body.flight-mode #allStopBtn.braking{background:#19516a;border-color:#b6f6ff;box-shadow:0 0 22px #58dfffaa}@media(max-height:440px){#allStopBtn{bottom:122px;left:max(24px,env(safe-area-inset-left) + 12px);padding:8px 10px}}/* v0.13.8 unified cockpit: permanently equipped, future-swappable ability slots */
body.flight-mode .bottom{left:auto!important;right:max(12px,env(safe-area-inset-right))!important;top:74px!important}
body.flight-mode .bottom .actions{display:flex!important}
body.flight-mode #auto{display:none!important}
body.flight-mode #dock{width:58px!important;height:58px!important;min-width:58px!important;border:3px solid #7ee6ff!important;background:radial-gradient(circle at 40% 28%,#287a9a,#09283e 75%)!important;box-shadow:0 0 0 4px #12485c77,0 0 16px #39d5ff88,inset 0 0 12px #60cfff33!important}
body.flight-mode #dock:before{content:'✦';font-size:21px}
body.flight-mode #dock:after{content:'WARP';font-size:8px}
body.flight-mode #skillsDock{display:flex!important;position:fixed!important;left:auto!important;right:max(12px,env(safe-area-inset-right))!important;top:145px!important;bottom:auto!important;width:auto!important;max-width:none!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;z-index:20!important}
body.flight-mode #skillsDock .skillHead{display:none!important}
body.flight-mode #skillsDock .skillIcons{display:flex!important;flex-direction:column!important;gap:8px!important}
body.flight-mode #skillsDock .skillIcon{width:58px!important;height:58px!important;min-width:58px!important;border-radius:50%!important;border:3px solid #7ee6ff!important;background:radial-gradient(circle at 40% 28%,#287a9a,#09283e 75%)!important;box-shadow:0 0 0 4px #12485c77,0 0 16px #39d5ff88,inset 0 0 12px #60cfff33!important;overflow:hidden}
body.flight-mode #skillsDock .skillGlyph{font-size:22px!important;color:#d6f9ff!important}
body.flight-mode #skillsDock .skillIcon.cooling{opacity:.75}
body.flight-mode #skillsDock .skillOverlay{font-size:12px!important;background:#061321d9!important}
body.flight-mode #skillDetail{position:fixed;right:84px;top:145px;bottom:auto;z-index:24}
body.flight-mode #questTracker.quest{right:max(90px,env(safe-area-inset-right) + 80px)!important;top:75px!important;max-width:min(280px,34vw)!important}
body.flight-mode #allStopBtn{border:3px solid #7ee6ff;background:radial-gradient(circle at 40% 28%,#287a9a,#09283e 75%);box-shadow:0 0 0 4px #12485c77,0 0 16px #39d5ff88,inset 0 0 12px #60cfff33;border-radius:24px}
body.flight-mode #switchPrimary,body.flight-mode #fireMissile{border-color:#7ee6ff!important;background:radial-gradient(circle at 40% 28%,#287a9a,#09283e 75%)!important;box-shadow:0 0 0 3px #12485c77,0 0 14px #39d5ff88!important}
@media(max-height:440px){
body.flight-mode .bottom{top:58px!important}
body.flight-mode #dock{width:45px!important;height:45px!important;min-width:45px!important}
body.flight-mode #skillsDock{top:112px!important}
body.flight-mode #skillsDock .skillIcons{gap:5px!important}
body.flight-mode #skillsDock .skillIcon{width:45px!important;height:45px!important;min-width:45px!important}
body.flight-mode #skillsDock .skillGlyph{font-size:18px!important}
body.flight-mode #questTracker.quest{top:58px!important}
}
/* v0.13.9 aligned cockpit */
body.flight-mode #weaponDock{position:fixed!important;left:max(112px,env(safe-area-inset-left) + 100px)!important;bottom:max(152px,env(safe-area-inset-bottom) + 142px)!important;top:auto!important;display:block!important;width:140px!important;height:140px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;transform:none!important;pointer-events:none;z-index:22!important}
body.flight-mode #autoFire,body.flight-mode #switchPrimary,body.flight-mode #fireMissile,body.flight-mode #allStopBtn,body.flight-mode #dock,body.flight-mode #skillsDock .skillIcon{box-sizing:border-box!important;width:62px!important;height:62px!important;min-width:62px!important;max-width:62px!important;min-height:62px!important;max-height:62px!important;border-radius:50%!important;border:3px solid #7ee6ff!important;background:radial-gradient(circle at 40% 28%,#287a9a,#09283e 75%)!important;box-shadow:0 0 0 3px #12485c77,0 0 15px #39d5ff88,inset 0 0 12px #60cfff33!important;color:#d8f8ff!important;font-size:10px!important;font-weight:850!important;text-align:center!important;padding:3px!important;letter-spacing:.02em!important;pointer-events:auto}
body.flight-mode #autoFire{position:absolute!important;left:0!important;top:0!important;font-size:12px!important}
body.flight-mode #switchPrimary{position:absolute!important;left:72px!important;top:0!important}
body.flight-mode #missileControls{position:absolute!important;left:0!important;top:72px!important;width:62px!important;min-width:62px!important;height:62px!important;padding:0!important;border:0!important;pointer-events:auto}
body.flight-mode #missileControls[style*="none"]{display:none!important}
body.flight-mode #fireMissile{position:static!important}
body.flight-mode #heatReadout{position:absolute!important;left:0;top:137px;width:62px;text-align:center;font-size:9px!important}
body.flight-mode #allStopBtn{position:fixed!important;left:max(184px,env(safe-area-inset-left) + 172px)!important;bottom:max(152px,env(safe-area-inset-bottom) + 142px)!important;top:auto!important;z-index:23!important;font-size:9px!important}
body.flight-mode .bottom{left:auto!important;right:max(12px,env(safe-area-inset-right))!important;top:74px!important;bottom:auto!important}
body.flight-mode #dock{font-size:0!important}
body.flight-mode #dock:before{content:'✦';font-size:20px!important}
body.flight-mode #dock:after{content:'WARP';font-size:8px!important}
body.flight-mode #skillsDock{left:auto!important;right:max(12px,env(safe-area-inset-right))!important;top:146px!important;bottom:auto!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
body.flight-mode #skillsDock .skillIcons{flex-direction:column!important;gap:10px!important}
body.flight-mode #skillsDock .skillIcon{display:grid!important;place-items:center!important;overflow:hidden!important}
body.flight-mode #skillsDock .skillGlyph{font-size:23px!important;color:#d8f8ff!important}
body.flight-mode #questTracker.quest{right:max(92px,env(safe-area-inset-right) + 80px)!important}
#preflightWarning{display:none;position:fixed;inset:0;z-index:110;align-items:center;justify-content:center;background:#020915df;padding:18px}.preflightCard{width:min(480px,90vw);padding:20px;border:2px solid #7ee6ff;border-radius:16px;background:#0a2032;color:#e4f8ff}.preflightCard h2{color:#ffce83}.preflightActions{display:flex;gap:10px}.preflightActions button{flex:1}
@media(max-height:440px){body.flight-mode #weaponDock{left:max(106px,env(safe-area-inset-left) + 98px)!important;bottom:max(116px,env(safe-area-inset-bottom) + 108px)!important;width:114px!important;height:114px!important}body.flight-mode #autoFire,body.flight-mode #switchPrimary,body.flight-mode #fireMissile,body.flight-mode #allStopBtn,body.flight-mode #dock,body.flight-mode #skillsDock .skillIcon{width:50px!important;height:50px!important;min-width:50px!important;max-width:50px!important;min-height:50px!important;max-height:50px!important;font-size:9px!important}body.flight-mode #switchPrimary{left:60px!important}body.flight-mode #missileControls{top:60px!important;width:50px!important;min-width:50px!important;height:50px!important}body.flight-mode #allStopBtn{left:max(166px,env(safe-area-inset-left) + 158px)!important;bottom:max(116px,env(safe-area-inset-bottom) + 108px)!important}body.flight-mode .bottom{top:58px!important}body.flight-mode #skillsDock{top:116px!important}body.flight-mode #skillsDock .skillIcons{gap:6px!important}body.flight-mode #heatReadout{top:112px!important}}
body.flight-mode #locationLabel{position:fixed!important;left:50%!important;right:auto!important;bottom:max(9px,env(safe-area-inset-bottom) + 4px)!important;top:auto!important;transform:translateX(-50%)!important;width:max-content!important;max-width:45vw!important;text-align:center!important;pointer-events:none;z-index:10}body.flight-mode #heatReadout{display:none!important}body.flight-mode #switchPrimary.heat-active{background:linear-gradient(to top,#df3238 0%,#df3238 var(--heat-fill,0%),transparent var(--heat-fill,0%),transparent 100%),radial-gradient(circle at 40% 28%,#287a9a,#09283e 75%)!important}body.flight-mode #switchPrimary.heat-overheated{border-color:#ff625d!important;box-shadow:0 0 20px #ff4444aa!important}body.flight-mode #aimStick{left:max(14px,env(safe-area-inset-left))!important;right:auto!important}body.flight-mode #thrustStick{right:max(14px,env(safe-area-inset-right))!important;left:auto!important}/* v0.13.11: left movement, right aim, comfortable left-hand actions */
body.flight-mode #weaponDock{left:max(96px,env(safe-area-inset-left) + 84px)!important;bottom:max(124px,env(safe-area-inset-bottom) + 114px)!important}
body.flight-mode #allStopBtn{left:max(168px,env(safe-area-inset-left) + 156px)!important;bottom:max(124px,env(safe-area-inset-bottom) + 114px)!important}
body.flight-mode #dock{font-size:0!important;line-height:1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}
body.flight-mode #dock:before{content:'✦'!important;display:block!important;font-size:20px!important;line-height:1!important}
body.flight-mode #dock:after{content:'WARP'!important;display:block!important;font-size:9px!important;line-height:1.2!important}
@media(max-height:440px){body.flight-mode #weaponDock{left:max(92px,env(safe-area-inset-left) + 80px)!important;bottom:max(112px,env(safe-area-inset-bottom) + 102px)!important}body.flight-mode #allStopBtn{left:max(152px,env(safe-area-inset-left) + 140px)!important;bottom:max(112px,env(safe-area-inset-bottom) + 102px)!important}}
/* v0.13.12 aligned missile and separate ammo readout */
body.flight-mode #weaponDock #missileControls{position:absolute!important;left:0!important;top:72px!important;display:flex;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;margin:0!important;padding:0!important;border:0!important;min-width:62px!important;max-width:62px!important;width:62px!important;height:62px!important;box-shadow:none!important;background:none!important}
body.flight-mode #weaponDock #missileControls[style*="none"]{display:none!important}
body.flight-mode #weaponDock #missileControls .missileHeader{display:none!important}
body.flight-mode #weaponDock #fireMissile{display:flex!important;align-items:center!important;justify-content:center!important;position:absolute!important;inset:0!important;margin:0!important;min-width:62px!important;max-width:62px!important;min-height:62px!important;max-height:62px!important;width:62px!important;height:62px!important;line-height:1.1!important}
body.flight-mode #fireMissile:disabled{opacity:.7!important}
body.flight-mode #ammoHud{position:absolute!important;display:none;flex-direction:column;align-items:center;justify-content:center;left:-94px;top:75px;width:86px;min-height:40px;color:#ffcf93;font-size:10px;font-weight:800;letter-spacing:.07em;text-shadow:0 0 8px #000;pointer-events:none}
body.flight-mode #ammoHudCount{font-size:16px;color:#fff1d3}
@media(max-height:440px){body.flight-mode #weaponDock #missileControls{top:60px!important;width:50px!important;min-width:50px!important;max-width:50px!important;height:50px!important}body.flight-mode #weaponDock #fireMissile{width:50px!important;height:50px!important;min-width:50px!important;max-width:50px!important;min-height:50px!important;max-height:50px!important}body.flight-mode #ammoHud{left:-86px;top:59px;width:80px}}
/* v0.13.13 shared two-column cockpit grid coordinates */
body.flight-mode #weaponDock{--cockpit-cell:62px;--cockpit-gap:10px;--cockpit-step:72px}
body.flight-mode #weaponDock #autoFire{left:0!important;top:0!important;margin:0!important}
body.flight-mode #weaponDock #switchPrimary{left:var(--cockpit-step)!important;top:0!important;margin:0!important}
body.flight-mode #weaponDock #missileControls{left:0!important;top:var(--cockpit-step)!important;margin:0!important}
body.flight-mode #weaponDock #fireMissile{left:0!important;top:0!important;margin:0!important;touch-action:none!important}
body.flight-mode #allStopBtn{left:max(168px,env(safe-area-inset-left) + 156px)!important;bottom:max(124px,env(safe-area-inset-bottom) + 114px)!important;margin:0!important}
@media(max-height:440px){body.flight-mode #weaponDock{--cockpit-cell:50px;--cockpit-gap:10px;--cockpit-step:60px}body.flight-mode #allStopBtn{left:max(152px,env(safe-area-inset-left) + 140px)!important;bottom:max(112px,env(safe-area-inset-bottom) + 102px)!important}}
/* v0.13.14: one shared geometry for symmetric four-button columns */
body.flight-mode{--flight-edge: max(12px,env(safe-area-inset-left));--flight-edge-right:max(12px,env(safe-area-inset-right));--flight-size:62px;--flight-step:82px;--flight-top:94px}
body.flight-mode #weaponDock{position:fixed!important;left:var(--flight-edge)!important;top:var(--flight-top)!important;right:auto!important;bottom:auto!important;width:var(--flight-size)!important;height:calc(var(--flight-step)*4)!important;min-width:0!important;max-width:none!important;min-height:0!important;padding:0!important;margin:0!important;display:block!important;transform:none!important;overflow:visible!important;background:none!important;border:0!important;box-shadow:none!important;pointer-events:none!important}
body.flight-mode #weaponDock #switchPrimary,body.flight-mode #weaponDock #autoFire,body.flight-mode #weaponDock #missileControls,body.flight-mode #allStopBtn{position:absolute!important;left:0!important;right:auto!important;bottom:auto!important;margin:0!important;transform:none!important}
body.flight-mode #weaponDock #switchPrimary{top:0!important}
body.flight-mode #weaponDock #missileControls{top:calc(var(--flight-step)*2)!important;left:0!important;width:var(--flight-size)!important;height:var(--flight-size)!important;min-width:var(--flight-size)!important;max-width:var(--flight-size)!important;pointer-events:auto!important}
body.flight-mode #weaponDock #autoFire{top:calc(var(--flight-step)*3)!important}
body.flight-mode #allStopBtn{position:fixed!important;top:calc(var(--flight-top) + var(--flight-step))!important;left:var(--flight-edge)!important;bottom:auto!important}
body.flight-mode #weaponDock #autoFire,body.flight-mode #weaponDock #switchPrimary,body.flight-mode #weaponDock #fireMissile,body.flight-mode #allStopBtn,body.flight-mode #dock,body.flight-mode #skillsDock .skillIcon{box-sizing:border-box!important;width:var(--flight-size)!important;height:var(--flight-size)!important;min-width:var(--flight-size)!important;min-height:var(--flight-size)!important;max-width:var(--flight-size)!important;max-height:var(--flight-size)!important;border-radius:50%!important}
body.flight-mode .bottom{position:fixed!important;top:var(--flight-top)!important;right:var(--flight-edge-right)!important;left:auto!important;bottom:auto!important}
body.flight-mode #dock{position:relative!important;top:0!important;left:auto!important;margin:0!important}
body.flight-mode #skillsDock{position:fixed!important;top:calc(var(--flight-top) + var(--flight-step))!important;right:var(--flight-edge-right)!important;left:auto!important;bottom:auto!important;margin:0!important}
body.flight-mode #skillsDock .skillIcons{display:flex!important;flex-direction:column!important;gap:calc(var(--flight-step) - var(--flight-size))!important}
body.flight-mode #weaponDock #ammoHud{position:absolute!important;top:calc(var(--flight-step)*2 + 10px)!important;left:calc(var(--flight-size) + 8px)!important;right:auto!important;width:84px!important}
body.flight-mode #weaponDock #heatReadout{display:none!important}
@media(max-height:440px){body.flight-mode{--flight-size:50px;--flight-step:60px;--flight-top:74px}}
/* v0.13.16 isolated ship selection grid: never inherit menu button widths */
#shipSelect.open{justify-content:center;gap:8px;padding:12px max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));box-sizing:border-box}
#shipSelect h1{font-size:clamp(20px,4vh,34px);letter-spacing:.12em;line-height:1.1}
#shipSelect .shipSelectIntro{margin:0;font-size:clamp(11px,2.3vh,16px);line-height:1.25}
#shipSelect .shipSelection{width:min(850px,96%);max-width:100%;min-width:0;display:flex;flex-direction:column;gap:8px;align-items:center;box-sizing:border-box}
#shipSelect .shipChoices{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;width:100%;min-width:0;box-sizing:border-box}
#shipSelect .shipChoice{min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 12px;border:1px solid #347b99;border-radius:13px;background:linear-gradient(155deg,#142c40,#071523);box-sizing:border-box}
#shipSelect .shipPreview{height:clamp(62px,17vh,126px);width:100%;display:flex;align-items:center;justify-content:center}
#shipSelect .shipPreview svg{width:100%;height:100%;max-width:230px;filter:drop-shadow(0 0 10px #53b7db44)}
#shipSelect .shipChoice h2{font-size:clamp(13px,2.8vh,21px);line-height:1.15;margin:0;white-space:normal}
#shipSelect .shipChoice p{margin:0;line-height:1.25;font-size:clamp(10px,2.1vh,14px)}
#shipSelect .shipChoice .shipLoadout{margin:auto 0 0;color:#bfeaff;font-size:clamp(10px,2vh,13px);letter-spacing:.03em}
#shipSelect .shipChoice button{display:block;flex-shrink:0;box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;min-height:38px!important;height:clamp(38px,8vh,52px);margin:0!important;padding:5px 8px;font-size:clamp(10px,2vh,14px)}
#shipSelect #shipSelectBack{display:block;box-sizing:border-box;width:min(220px,50%)!important;max-width:100%!important;min-width:0!important;min-height:34px!important;height:clamp(34px,7vh,44px);margin:0!important;font-size:12px}
@media(max-height:400px){#shipSelect.open{gap:5px}#shipSelect .shipChoice{gap:4px;padding:6px 9px}#shipSelect .shipPreview{height:clamp(46px,14vh,70px)}#shipSelect .shipChoice p{font-size:10px}#shipSelect .shipChoice button{height:36px;min-height:36px!important}#shipSelect #shipSelectBack{height:32px;min-height:32px!important}}
/* v0.13.18 profession selection shares the ship-select visual language */
#professionSelect.open{justify-content:center;gap:8px;padding:12px max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));box-sizing:border-box}
#professionSelect h1{font-size:clamp(20px,4vh,34px);line-height:1.1;margin:0}
#professionSelect .professionIntro{margin:0;font-size:clamp(11px,2.3vh,16px)}
#professionSelect .professionGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(950px,96%);max-width:100%;box-sizing:border-box}
#professionSelect .professionCard{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;box-sizing:border-box;border:1px solid #35758f;border-radius:12px;background:linear-gradient(155deg,#142c40,#071523);padding:12px}
#professionSelect .professionArt{font-size:clamp(30px,8vh,56px);line-height:1.1}
#professionSelect .professionCard h2{font-size:clamp(13px,2.8vh,20px);margin:0}
#professionSelect .professionCard p{font-size:clamp(10px,2vh,13px);line-height:1.3;margin:0;flex:1}
#professionSelect .professionCard button{width:100%!important;max-width:100%!important;min-width:0!important;min-height:36px!important;height:clamp(36px,8vh,48px);margin:0!important;padding:4px 6px;font-size:clamp(10px,2vh,13px)}
#professionSelect .professionCard button:disabled{opacity:.55;filter:grayscale(.7);cursor:default}
#professionSelect #professionBack{width:min(220px,50%)!important;min-width:0!important;max-width:100%!important;min-height:34px!important;height:clamp(34px,7vh,44px);margin:0!important}
@media(max-height:400px){#professionSelect.open{gap:5px}#professionSelect .professionCard{gap:4px;padding:7px}#professionSelect .professionArt{font-size:30px}#professionSelect .professionCard button{height:34px;min-height:34px!important}}
#stationScreen{justify-content:flex-start;overflow-y:auto;padding:clamp(8px,2vh,16px) max(14px,env(safe-area-inset-right)) clamp(8px,2vh,16px) max(14px,env(safe-area-inset-left));gap:3px}#stationScreen h1{font-size:clamp(18px,4vh,30px);margin:0;color:#d9edf9}.stationSubtitle{font-size:clamp(9px,1.8vh,12px);letter-spacing:.16em;color:#86a9c1;margin:0 0 4px}.stationGrid{width:min(850px,100%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr)) auto;gap:clamp(5px,1.3vh,10px);flex:1;min-height:0;max-height:650px}.stationTile{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;text-align:left;padding:clamp(5px,1.3vh,12px) clamp(9px,2vw,18px);background:#142c40!important;border:1px solid #36566d!important;border-radius:10px!important;color:#eef6ff!important;box-shadow:none!important}.stationTile .stationIcon{color:#78c9ef;font-size:clamp(14px,3.1vh,24px);line-height:1}.stationTile strong{font-size:clamp(10px,2.4vh,16px);letter-spacing:.03em}.stationTile small{color:#a7c2d4;font-size:clamp(9px,1.8vh,12px)}.stationUndock{grid-column:1/-1;min-height:clamp(36px,7vh,52px);background:#24516b!important;border:1px solid #4a8cad!important;border-radius:9px!important;color:white!important;font-weight:700}.stationBadge{position:absolute;top:7px;right:9px;border-radius:999px;padding:2px 7px;background:#287c51;color:white;font-weight:900;font-size:12px}.stationBadge.ready{background:#a87b23}.stationBadge.active{background:#506779}.stationBadge[hidden]{display:none!important}@media(max-height:420px){#stationScreen{padding-top:5px;padding-bottom:5px}.stationGrid{gap:4px}.stationTile{gap:0}.stationTile .stationIcon{font-size:14px}.stationTile strong{font-size:11px}.stationTile small{font-size:9px}}/* v0.13.21: centered station cards and centered departure action */
#stationScreen .stationGrid{margin-left:auto!important;margin-right:auto!important;align-self:center!important;flex:none!important;width:min(850px,calc(100% - 20px))!important;min-height:0;height:calc(100% - 74px);max-height:650px}
/* Explicitly override the generic screen button width, including its inherited 330px cap. */
#stationScreen .stationGrid{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;column-gap:clamp(8px,1.4vw,16px)!important;row-gap:clamp(5px,1.3vh,10px)!important;width:min(1100px,calc(100% - 32px))!important;margin-inline:auto!important;align-self:center!important}
#stationScreen .stationGrid>.stationTile{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;justify-self:stretch!important;align-items:center!important;text-align:center!important}
#stationScreen .stationGrid>.stationUndock{box-sizing:border-box!important;width:min(100%,440px)!important;max-width:440px!important;grid-column:1/-1!important;justify-self:center!important;margin-inline:auto!important;text-align:center!important}
#stationScreen .stationTile{align-items:center!important;text-align:center!important}
#stationScreen .stationTile strong,#stationScreen .stationTile small,#stationScreen .stationTile .stationIcon{text-align:center}
#stationScreen .stationUndock{grid-column:1/-1!important;justify-self:center!important;width:calc((100% - clamp(5px,1.3vh,10px))/2)!important;max-width:420px;text-align:center!important}
/* Distant sky is a separate, fixed canvas; game objects and moving stars are above it. */
#nebulaBackground,#game{position:absolute;inset:0;width:100vw;height:100dvh}
#nebulaBackground{z-index:0;pointer-events:none}
#game{z-index:1;background:transparent}
/* v0.15 balanced dogfight cockpit */body.flight-mode #flightSticks .flightStick{width:clamp(100px,15vw,132px)!important;height:clamp(100px,15vw,132px)!important;bottom:max(12px,env(safe-area-inset-bottom))!important}body.flight-mode #aimStick{left:max(18px,env(safe-area-inset-left))!important;border-color:#61b7ff!important}body.flight-mode #thrustStick{right:max(18px,env(safe-area-inset-right))!important;border-color:#52d6bd!important}body.flight-mode #weaponDock{left:auto!important;right:clamp(142px,19vw,218px)!important;bottom:max(112px,env(safe-area-inset-bottom) + 106px)!important;align-items:center!important}body.flight-mode #weaponDock #autoFire{width:64px!important;height:64px!important;min-width:64px!important}body.flight-mode #weaponDock #switchPrimary{display:none!important}body.flight-mode #missileControls{left:-68px!important;top:5px!important}body.flight-mode .bottom{right:max(14px,env(safe-area-inset-right))!important;left:auto!important;top:72px!important}body.flight-mode #skillsDock{right:max(14px,env(safe-area-inset-right))!important;left:auto!important;top:134px!important}body.flight-mode #allStopBtn{display:none!important}#flightSticks:before,#flightSticks:after{position:absolute;bottom:max(154px,env(safe-area-inset-bottom) + 142px);font-size:10px;letter-spacing:.08em;color:#b7d7e9;font-weight:800}#flightSticks:before{content:'MOVE / STRAFE';left:max(18px,env(safe-area-inset-left))}#flightSticks:after{content:'AIM / ROTATE';right:max(18px,env(safe-area-inset-right))}@media(max-height:440px){body.flight-mode #weaponDock{bottom:max(104px,env(safe-area-inset-bottom) + 98px)!important}body.flight-mode #skillsDock{top:115px!important}#flightSticks:before,#flightSticks:after{bottom:118px}}
/* v0.15.1: mirrored joystick positions; four equal combat controls in a precise 2x2 grid */
body.flight-mode{--combat-button:clamp(42px,7.5vh,54px);--combat-gap:9px;--combat-top:88px;--combat-right:max(14px,env(safe-area-inset-right))}body.flight-mode #weaponDock{pointer-events:none!important;width:0!important;height:0!important;left:auto!important;right:0!important;top:0!important}body.flight-mode #weaponDock #autoFire,body.flight-mode #weaponDock #switchPrimary,body.flight-mode #weaponDock #ammoHud,body.flight-mode #weaponDock #heatReadout,body.flight-mode #weaponDock #laserRangeWarning{display:none!important}body.flight-mode #weaponDock #missileControls{display:flex!important;position:fixed!important;left:auto!important;right:calc(var(--combat-right) + var(--combat-button) + var(--combat-gap))!important;top:var(--combat-top)!important;width:var(--combat-button)!important;height:var(--combat-button)!important;min-width:0!important;max-width:none!important;padding:0!important;border:0!important;pointer-events:auto!important}body.flight-mode #weaponDock #missileControls[style*='none']{display:none!important}body.flight-mode #weaponDock #fireMissile,body.flight-mode #skillsDock .skillIcon{width:var(--combat-button)!important;height:var(--combat-button)!important;min-width:var(--combat-button)!important;min-height:var(--combat-button)!important;max-width:var(--combat-button)!important;max-height:var(--combat-button)!important;border-radius:50%!important;margin:0!important;padding:3px!important;box-sizing:border-box!important;font-size:9px!important;line-height:1.1!important}body.flight-mode #skillsDock{position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:0!important;height:0!important;margin:0!important;padding:0!important;pointer-events:none!important}body.flight-mode #skillsDock .skillIcons{display:contents!important}body.flight-mode #skillsDock .skillIcon{position:fixed!important;pointer-events:auto!important;top:var(--combat-top)!important;right:var(--combat-right)!important}body.flight-mode #skillsDock #useHull{top:calc(var(--combat-top) + var(--combat-button) + var(--combat-gap))!important;right:calc(var(--combat-right) + var(--combat-button) + var(--combat-gap))!important}body.flight-mode #skillsDock #useAfterburner{top:calc(var(--combat-top) + var(--combat-button) + var(--combat-gap))!important;right:var(--combat-right)!important}body.flight-mode #skillsDock .skillHead{display:none!important}body.flight-mode #flightSticks .flightStick{bottom:max(12px,env(safe-area-inset-bottom))!important}body.flight-mode #aimStick{left:max(18px,env(safe-area-inset-left))!important}body.flight-mode #thrustStick{right:max(18px,env(safe-area-inset-right))!important}body.flight-mode #flightSticks:before{content:'THRUST / STRAFE'}body.flight-mode #flightSticks:after{content:'AIM / ROTATE'}@media(max-height:420px){body.flight-mode{--combat-top:68px;--combat-button:42px;--combat-gap:7px}}
/* v0.15.3 navigation and fire control */
#autoFireToggle{display:none}
body.flight-mode #autoFireToggle{display:block;position:fixed;left:max(14px,env(safe-area-inset-left));top:184px;z-index:35;min-width:125px;padding:10px 12px;border:2px solid #708b9f;background:#142332;color:#d7e9f5;font-size:11px;letter-spacing:.05em}
body.flight-mode #autoFireToggle.enabled{border-color:#69dfbd;background:#145043;color:#dcfff5}
body.flight-mode .bottom{left:max(14px,env(safe-area-inset-left))!important;right:auto!important;top:121px!important;z-index:35!important}
body.flight-mode #dock{width:54px!important;height:54px!important;min-width:54px!important}
body.flight-mode #questTracker.quest{top:76px!important;right:calc(max(14px,env(safe-area-inset-right)) + 132px)!important;max-width:min(280px,32vw)!important}
@media(max-height:430px){body.flight-mode #autoFireToggle{top:156px;padding:7px}body.flight-mode .bottom{top:103px!important}}
/* v0.15.5: centered joystick labels */
body.flight-mode #flightSticks:before,body.flight-mode #flightSticks:after{position:fixed!important;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 175px)!important;width:210px!important;text-align:center!important;left:auto!important;right:auto!important;transform:translateX(-50%)!important;pointer-events:none!important;white-space:nowrap}
body.flight-mode #flightSticks:before{content:'MOVE / STRAFE'!important;left:calc(max(18px,env(safe-area-inset-left)) + 105px)!important}
body.flight-mode #flightSticks:after{content:'AIM / ROTATE'!important;left:calc(100% - max(18px,env(safe-area-inset-right)) - 105px)!important}
@media(max-height:440px){body.flight-mode #flightSticks:before,body.flight-mode #flightSticks:after{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 117px)!important;width:100px!important}body.flight-mode #flightSticks:before{left:calc(max(18px,env(safe-area-inset-left)) + 50px)!important}body.flight-mode #flightSticks:after{left:calc(100% - max(18px,env(safe-area-inset-right)) - 50px)!important}}
/* v0.15.7 manual primary fire, independent of auto-fire; circular beam heat meter */
body.flight-mode #weaponDock #autoFire{display:flex!important;position:fixed!important;left:calc(max(14px,env(safe-area-inset-left)) + 220px)!important;right:auto!important;top:clamp(145px,31vh,222px)!important;width:64px!important;height:64px!important;min-width:64px!important;border-radius:50%!important;align-items:center!important;justify-content:center!important;z-index:42!important;pointer-events:auto!important;background:radial-gradient(circle at 45% 32%,#2c6c8c,#10293c 78%)!important;box-shadow:0 0 12px #36bde777!important;overflow:hidden!important;isolation:isolate}
body.flight-mode #weaponDock #autoFire:before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(to top,#f04136 var(--fire-heat,0%),transparent var(--fire-heat,0%));opacity:.85;pointer-events:none}
body.flight-mode #weaponDock #autoFire.overheated{border-color:#ff5d51!important}
@media(max-height:430px){body.flight-mode #weaponDock #autoFire{top:135px!important;left:calc(max(14px,env(safe-area-inset-left)) + 205px)!important;width:56px!important;height:56px!important;min-width:56px!important}}
/* v0.15.8: fire aligned with warp; matching circular dimensions */
body.flight-mode #weaponDock #autoFire{left:max(14px,env(safe-area-inset-left))!important;right:auto!important;top:auto!important;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 235px)!important;width:84px!important;height:84px!important;min-width:84px!important;max-width:84px!important;border-radius:50%!important;font-size:12px!important}
@media(max-height:440px){body.flight-mode #weaponDock #autoFire{left:max(14px,env(safe-area-inset-left))!important;top:auto!important;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 190px)!important;width:72px!important;height:72px!important;min-width:72px!important;max-width:72px!important}}
/* v0.15.9 unified edge-aligned flight controls */
body.flight-mode{--hud-edge:max(16px,env(safe-area-inset-left));--hud-right:max(16px,env(safe-area-inset-right));--hud-circle:clamp(42px,7.1vh,52px);--hud-gap:7px;--hud-top:clamp(90px,15vh,112px)}
body.flight-mode .bottom{position:fixed!important;inset:0!important;width:0!important;height:0!important;pointer-events:none!important}
body.flight-mode .bottom .actions{position:fixed!important;left:var(--hud-edge)!important;top:var(--hud-top)!important;width:var(--hud-circle)!important;height:var(--hud-circle)!important;pointer-events:none!important}
body.flight-mode #dock{position:fixed!important;left:var(--hud-edge)!important;top:var(--hud-top)!important;right:auto!important;bottom:auto!important;width:var(--hud-circle)!important;height:var(--hud-circle)!important;min-width:var(--hud-circle)!important;max-width:var(--hud-circle)!important;border-radius:50%!important;pointer-events:auto!important}
body.flight-mode #weaponDock #autoFire{display:flex!important;position:fixed!important;left:var(--hud-edge)!important;top:calc(var(--hud-top) + var(--hud-circle) + var(--hud-gap))!important;right:auto!important;bottom:auto!important;width:var(--hud-circle)!important;height:var(--hud-circle)!important;min-width:var(--hud-circle)!important;max-width:var(--hud-circle)!important;min-height:var(--hud-circle)!important;max-height:var(--hud-circle)!important;box-sizing:border-box!important;font-size:10px!important;pointer-events:auto!important}
body.flight-mode #autoFireToggle{display:block!important;position:fixed!important;left:var(--hud-edge)!important;top:calc(var(--hud-top) + 2 * (var(--hud-circle) + var(--hud-gap)))!important;right:auto!important;bottom:auto!important;width:clamp(98px,11vw,126px)!important;min-width:0!important;box-sizing:border-box!important;padding:8px 5px!important;font-size:10px!important;z-index:43!important}
body.flight-mode #weaponDock #missileControls{display:flex!important;position:fixed!important;left:auto!important;right:var(--hud-right)!important;top:var(--hud-top)!important;width:var(--hud-circle)!important;height:var(--hud-circle)!important;min-width:var(--hud-circle)!important;max-width:var(--hud-circle)!important;pointer-events:auto!important}
body.flight-mode #weaponDock #missileControls[style*='none']{display:none!important}
body.flight-mode #weaponDock #fireMissile,body.flight-mode #skillsDock .skillIcon{width:var(--hud-circle)!important;height:var(--hud-circle)!important;min-width:var(--hud-circle)!important;min-height:var(--hud-circle)!important;max-width:var(--hud-circle)!important;max-height:var(--hud-circle)!important;border-radius:50%!important;box-sizing:border-box!important}
body.flight-mode #skillsDock .skillIcon{position:fixed!important;left:auto!important;right:var(--hud-right)!important;pointer-events:auto!important}
body.flight-mode #skillsDock #useShield{top:calc(var(--hud-top) + var(--hud-circle) + var(--hud-gap))!important}
body.flight-mode #skillsDock #useHull{top:calc(var(--hud-top) + 2 * (var(--hud-circle) + var(--hud-gap)))!important}
body.flight-mode #skillsDock #useAfterburner{top:calc(var(--hud-top) + 3 * (var(--hud-circle) + var(--hud-gap)))!important}
body.flight-mode #skillsDock .skillGlyph{font-size:18px!important}
body.flight-mode #flightSticks:before,body.flight-mode #flightSticks:after{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 218px)!important;width:210px!important;font-size:10px!important}
body.flight-mode #flightSticks:before{left:calc(max(18px,env(safe-area-inset-left)) + 105px)!important}
body.flight-mode #flightSticks:after{left:calc(100% - max(18px,env(safe-area-inset-right)) - 105px)!important}
@media(max-height:440px){body.flight-mode{--hud-top:76px;--hud-circle:42px;--hud-gap:5px}body.flight-mode #flightSticks:before,body.flight-mode #flightSticks:after{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 132px)!important;width:100px!important}body.flight-mode #flightSticks:before{left:calc(max(18px,env(safe-area-inset-left)) + 50px)!important}body.flight-mode #flightSticks:after{left:calc(100% - max(18px,env(safe-area-inset-right)) - 50px)!important}}
/* v0.15.10 single-source flight HUD geometry */
body.flight-mode{--hud-circle:52px;--hud-gap:8px;--hud-top:clamp(95px,16vh,118px)}
body.flight-mode #dock,body.flight-mode #weaponDock #autoFire,body.flight-mode #weaponDock #fireMissile,body.flight-mode #skillsDock .skillIcon{width:var(--hud-circle)!important;height:var(--hud-circle)!important;min-width:var(--hud-circle)!important;min-height:var(--hud-circle)!important;max-width:var(--hud-circle)!important;max-height:var(--hud-circle)!important;aspect-ratio:1 / 1!important;flex:0 0 var(--hud-circle)!important;box-sizing:border-box!important;border-radius:50%!important;padding:0!important;line-height:1!important}
body.flight-mode #dock{display:flex!important;align-items:center!important;justify-content:center!important;transform:none!important;overflow:hidden!important}
body.flight-mode #skillsDock .skillIcon{display:flex!important;align-items:center!important;justify-content:center!important;position:fixed!important;left:auto!important;right:var(--hud-right)!important;margin:0!important;transform:none!important}
body.flight-mode #skillsDock #useShield{right:var(--hud-right)!important;top:calc(var(--hud-top) + var(--hud-circle) + var(--hud-gap))!important}
body.flight-mode #skillsDock #useHull{right:var(--hud-right)!important;top:calc(var(--hud-top) + 2 * (var(--hud-circle) + var(--hud-gap)))!important}
body.flight-mode #skillsDock #useAfterburner{right:var(--hud-right)!important;top:calc(var(--hud-top) + 3 * (var(--hud-circle) + var(--hud-gap)))!important}
body.flight-mode #skillsDock .skillGlyph{font-size:9px!important;letter-spacing:-.03em!important;white-space:nowrap!important;line-height:1!important}
body.flight-mode #skillsDock .skillOverlay{font-size:8px!important}
body.flight-mode #weaponDock #missileControls{right:var(--hud-right)!important;top:var(--hud-top)!important}
body.flight-mode #weaponDock #fireMissile{font-size:9px!important;white-space:nowrap!important}
@media(max-height:440px){body.flight-mode{--hud-circle:42px;--hud-gap:5px;--hud-top:76px}body.flight-mode #skillsDock .skillGlyph{font-size:8px!important}body.flight-mode #weaponDock #fireMissile{font-size:8px!important}}
/* v0.15.11 joystick-proximate combat columns */
body.flight-mode{--hud-top:clamp(112px,23vh,138px);--hud-circle:clamp(40px,10vh,48px);--hud-gap:6px}
body.flight-mode #autoFireToggle{left:var(--hud-edge)!important;top:var(--hud-top)!important;min-height:30px!important;height:30px!important;width:100px!important;padding:3px!important}
body.flight-mode #dock{left:var(--hud-edge)!important;top:calc(var(--hud-top) + 30px + var(--hud-gap))!important}
body.flight-mode #weaponDock #missileControls{left:var(--hud-edge)!important;right:auto!important;top:calc(var(--hud-top) + 30px + var(--hud-gap) + var(--hud-circle) + var(--hud-gap))!important}
body.flight-mode #weaponDock #autoFire{left:var(--hud-edge)!important;top:calc(var(--hud-top) + 30px + var(--hud-gap) + 2 * (var(--hud-circle) + var(--hud-gap)))!important}
body.flight-mode #skillsDock #useShield{top:var(--hud-top)!important;right:var(--hud-right)!important}
body.flight-mode #skillsDock #useHull{top:calc(var(--hud-top) + var(--hud-circle) + var(--hud-gap))!important;right:var(--hud-right)!important}
body.flight-mode #skillsDock #useAfterburner{top:calc(var(--hud-top) + 2 * (var(--hud-circle) + var(--hud-gap)))!important;right:var(--hud-right)!important}
@media(max-height:440px){body.flight-mode{--hud-top:clamp(80px,21vh,110px);--hud-circle:clamp(36px,10vh,42px);--hud-gap:5px}}
/* v0.15.12 symmetric orbit HUD, joystick-centered */
body.flight-mode{--orbit-stick:116px;--orbit-edge:max(18px,env(safe-area-inset-left));--orbit-edge-r:max(18px,env(safe-area-inset-right));--orbit-bottom:max(12px,env(safe-area-inset-bottom));--orbit-radius:var(--hud-circle);--orbit-spread:55px;--orbit-side-rise:25px;--orbit-top-rise:65px}
@media(min-width:900px){body.flight-mode{--orbit-stick:135px}}
body.flight-mode #dock,body.flight-mode #weaponDock #autoFire,body.flight-mode #weaponDock #missileControls,body.flight-mode #skillsDock #useShield,body.flight-mode #skillsDock #useHull,body.flight-mode #skillsDock #useAfterburner{top:auto!important;right:auto!important;transform:none!important}
body.flight-mode #dock,body.flight-mode #weaponDock #autoFire,body.flight-mode #weaponDock #missileControls{left:calc(var(--orbit-edge) + var(--orbit-stick)/2 - var(--orbit-radius)/2)!important}
body.flight-mode #dock{left:calc(var(--orbit-edge) + var(--orbit-stick)/2 - var(--orbit-spread) - var(--orbit-radius)/2)!important;bottom:calc(var(--orbit-bottom) + var(--orbit-stick) + var(--orbit-side-rise))!important}
body.flight-mode #weaponDock #missileControls{bottom:calc(var(--orbit-bottom) + var(--orbit-stick) + var(--orbit-top-rise))!important}
body.flight-mode #weaponDock #autoFire{left:calc(var(--orbit-edge) + var(--orbit-stick)/2 + var(--orbit-spread) - var(--orbit-radius)/2)!important;bottom:calc(var(--orbit-bottom) + var(--orbit-stick) + var(--orbit-side-rise))!important}
body.flight-mode #autoFireToggle{top:auto!important;left:calc(var(--orbit-edge) + var(--orbit-stick)/2 - 50px)!important;bottom:calc(var(--orbit-bottom) + var(--orbit-stick) + var(--orbit-top-rise) + var(--orbit-radius) + 8px)!important}
body.flight-mode #skillsDock #useShield,body.flight-mode #skillsDock #useHull,body.flight-mode #skillsDock #useAfterburner{left:auto!important}
body.flight-mode #skillsDock #useShield{right:calc(var(--orbit-edge-r) + var(--orbit-stick)/2 + var(--orbit-spread) - var(--orbit-radius)/2)!important;bottom:calc(var(--orbit-bottom) + var(--orbit-stick) + var(--orbit-side-rise))!important}
body.flight-mode #skillsDock #useHull{right:calc(var(--orbit-edge-r) + var(--orbit-stick)/2 - var(--orbit-radius)/2)!important;bottom:calc(var(--orbit-bottom) + var(--orbit-stick) + var(--orbit-top-rise))!important}
body.flight-mode #skillsDock #useAfterburner{right:calc(var(--orbit-edge-r) + var(--orbit-stick)/2 - var(--orbit-spread) - var(--orbit-radius)/2)!important;bottom:calc(var(--orbit-bottom) + var(--orbit-stick) + var(--orbit-side-rise))!important}
body.flight-mode #weaponDock #missileControls{width:var(--orbit-radius)!important;height:var(--orbit-radius)!important}

/* v0.15.13 minimalist tactical cockpit */
#tacticalStatus,#flightMenuBtn,#flightToast{display:none}
body.flight-mode .hud>*:not(#autoFireToggle){display:none!important}
body.flight-mode .hud{background:transparent!important;border:0!important;box-shadow:none!important;pointer-events:none!important}
body.flight-mode #tacticalStatus{display:block;position:fixed;top:max(10px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));width:clamp(195px,25vw,285px);z-index:36;pointer-events:none;box-sizing:border-box;padding:9px 11px;background:linear-gradient(145deg,#102b3bea,#071421ee);border:1px solid #39748b;clip-path:polygon(0 0,94% 0,100% 12%,100% 100%,6% 100%,0 87%);color:#c7ecf5;box-shadow:0 4px 18px #0008;font:10px system-ui,sans-serif}
.telemetryHead{display:flex;justify-content:space-between;gap:8px;letter-spacing:1.1px;font-size:9px;color:#74d9f2;font-weight:800;border-bottom:1px solid #31576a;padding-bottom:5px}.telemetryHead span{color:#799aaf;font-size:8px}
.telemetryGrid{display:grid;grid-template-columns:62px 1fr;gap:9px;align-items:center;padding:7px 0}.telemetryShipIcon{border:1px solid #37647b;border-radius:50%;height:56px;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:28px;color:#b5d7e9}.telemetryShipIcon small{font-size:6px;color:#7bacc2;letter-spacing:.2px}
.telemetryVitals{min-width:0}.telemetryVitals label{display:flex;justify-content:space-between;font-size:8px;color:#94c9d9;margin-bottom:3px}.telemetryVitals label b{color:#e0faff}.telemetrySegments{display:flex;gap:2px;margin-bottom:7px}.telemetrySegments i{height:8px;flex:1;background:#213c4c;transform:skew(-12deg)}.telemetrySegments i.filled{background:#39b9ed;box-shadow:0 0 4px #39b9ed66}.telemetrySegments.hull i.filled{background:#4bc5a0}.telemetrySegments i.critical{background:#e9784b!important}
.telemetryWeapons{border-top:1px solid #31576a;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:7px}.telemetryWeapons>div{display:flex;flex-direction:column;gap:2px;background:#0e2a3b;padding:5px;min-width:0}.telemetryWeapons small{font-size:7px;color:#8baec4}.telemetryWeapons strong{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.telemetryWeapons em{font-style:normal;font-size:9px;color:#74d9f2}
body.flight-mode #flightMenuBtn{display:flex;position:fixed;right:max(14px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));z-index:50;align-items:center;gap:6px;padding:9px 12px;background:#102b3b;color:#b8e8f5;border:1px solid #548ba7;border-radius:5px;font-size:12px;font-weight:700;pointer-events:auto}
 #flightToast{display:block;position:fixed;top:10px;left:50%;transform:translate(-50%,-15px);max-width:42vw;z-index:90;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;background:#0d3440ed;color:#c7fff1;border:1px solid #5ac8b4;border-radius:5px;padding:9px 14px;text-align:center;font:700 11px system-ui;letter-spacing:.4px}
 #flightToast.visible{opacity:1;transform:translate(-50%,0)} #flightToast.warning{background:#3c221dee;border-color:#e69b64;color:#ffe0c6}
@media(max-height:440px){body.flight-mode #tacticalStatus{width:210px;padding:6px 8px}.telemetryGrid{padding:4px 0}.telemetryShipIcon{height:43px;font-size:20px}.telemetryHead{padding-bottom:3px}.telemetrySegments{margin-bottom:4px}.telemetryWeapons{padding-top:4px}}
/* v0.15.14 flight HUD positioning and accurate telemetry */
body.flight-mode #locationLabel{position:fixed!important;left:50%!important;right:auto!important;top:max(16px,env(safe-area-inset-top))!important;bottom:auto!important;transform:translateX(-50%)!important;text-align:center!important;max-width:42vw!important;z-index:38!important;font-size:clamp(9px,1vw,12px)!important;letter-spacing:.12em!important;pointer-events:none!important}
body.flight-mode #autoFireToggle{position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:max(12px,env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;width:clamp(110px,12vw,145px)!important;min-height:34px!important;height:34px!important;z-index:48!important;pointer-events:auto!important}
.telemetrySegments i.critical:not(.filled){background:#213c4c!important}
.telemetrySegments i.critical.filled{background:#e9784b!important}
.telemetrySegments.hull i.critical.filled{background:#e9784b!important}
.telemetryShipIcon{font-size:0!important}
.telemetryShipIcon::before{content:' ';width:34px;height:35px;display:block;background:#94d5ef;clip-path:polygon(50% 0,65% 34%,91% 67%,74% 81%,60% 66%,50% 89%,40% 66%,26% 81%,9% 67%,35% 34%);filter:drop-shadow(0 0 4px #6ac8ee)}
body.flight-mode:has(#telemetryShip) .telemetryShipIcon small{font-size:6px}

/* v0.15.16 system-wide rotating tactical radar */
#flightScannerBtn,#scannerPanel{display:none}
body.flight-mode #flightScannerBtn{display:flex;position:fixed;right:calc(max(14px,env(safe-area-inset-right)) + 105px);top:max(10px,env(safe-area-inset-top));z-index:50;align-items:center;gap:6px;padding:9px 12px;background:#102b3b;color:#b8e8f5;border:1px solid #548ba7;border-radius:5px;font-size:12px;font-weight:700;pointer-events:auto}
body.flight-mode #scannerPanel.open{display:flex;flex-direction:column;align-items:center;position:fixed;left:50%;right:auto;top:50%;transform:translate(-50%,-50%);z-index:49;width:min(310px,60vw,75vh);max-height:85vh;box-sizing:border-box;padding:10px;background:#071b27ef;border:1px solid #548ba7;border-radius:7px;box-shadow:0 8px 24px #0009;pointer-events:none;color:#a6e7db}
#scannerCanvas{display:block;width:min(260px,100%,60vh);height:auto;aspect-ratio:1;flex:none;object-fit:contain}
.scannerTitle{font:700 10px system-ui;letter-spacing:.06em;text-align:center;margin-bottom:5px}.scannerLegend{display:flex;justify-content:space-around;font:700 8px system-ui}.scannerLegend span:first-child{color:#65d7ff}.scannerLegend span:nth-child(2){color:#ff786c}.scannerLegend span:last-child{color:#ffe6a0}
@media(max-height:440px){body.flight-mode #scannerPanel.open{top:50%;width:min(255px,55vw,82vh);padding:6px}#scannerCanvas{width:min(205px,52vh)}body.flight-mode #flightScannerBtn{padding:7px 9px}}

/* v0.15.18 matching scanner/menu controls */
body.flight-mode #flightMenuBtn,body.flight-mode #flightScannerBtn{box-sizing:border-box!important;width:132px!important;height:42px!important;min-height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:0 9px!important;font:700 12px system-ui,sans-serif!important;letter-spacing:.06em!important;border:1px solid #548ba7!important;border-radius:5px!important;top:max(10px,env(safe-area-inset-top))!important;transform:none!important}
body.flight-mode #flightMenuBtn{right:max(14px,env(safe-area-inset-right))!important}
body.flight-mode #flightScannerBtn{right:calc(max(14px,env(safe-area-inset-right)) + 144px)!important}
@media(max-width:650px){body.flight-mode #flightMenuBtn,body.flight-mode #flightScannerBtn{width:96px!important;height:36px!important;min-height:36px!important;font-size:10px!important}body.flight-mode #flightScannerBtn{right:calc(max(14px,env(safe-area-inset-right)) + 104px)!important}}
body #skillsBtn{display:none!important}

/* Keep tactical telemetry from expanding when ammunition values change. */
#telemetryAmmo,#telemetryMissiles{white-space:nowrap;overflow:hidden;text-overflow:clip;min-width:0;font-variant-numeric:tabular-nums}

body.flight-mode #tacticalStatus{height:148px;max-height:148px;overflow:hidden}
body.flight-mode #telemetryAmmo,body.flight-mode #telemetryMissiles{display:block;max-width:100%;white-space:nowrap;overflow:hidden;font-size:10px;letter-spacing:0}

/* Station menu controls stay visible while the contents scroll. */
#panel{position:absolute;overflow:auto;scrollbar-gutter:stable;padding-top:54px}
#panel>.close{position:sticky;top:0;float:none;display:flex;align-items:center;justify-content:center;margin:-43px 0 10px auto!important;z-index:30;width:36px;min-height:36px;background:#102b40;border:1px solid #66a7c5;border-radius:8px;color:#e3f6ff;box-shadow:0 3px 12px #0008}
#vossEquipmentReminder{display:none;position:fixed;inset:0;z-index:1000;align-items:center;justify-content:center;background:#020a13cf;padding:16px}
#vossEquipmentReminder .preflightCard{max-width:440px;width:min(100%,440px)}

/* Flight-only translucent cockpit surfaces — isolated for easy rollback. */
body.flight-mode #tacticalStatus{background:linear-gradient(145deg,rgba(16,43,59,.66),rgba(7,20,33,.68))!important;border-color:rgba(100,190,218,.65)!important}
body.flight-mode .telemetryWeapons>div{background:rgba(14,42,59,.48)!important}
body.flight-mode .telemetrySegments i:not(.filled){background:rgba(33,60,76,.46)!important}
body.flight-mode #flightMenuBtn,body.flight-mode #flightScannerBtn{background:rgba(16,43,59,.64)!important;border-color:rgba(84,139,167,.82)!important;color:#e3f8ff!important}
body.flight-mode #scannerPanel.open{background:rgba(7,27,39,.65)!important;border-color:rgba(84,139,167,.85)!important}
body.flight-mode #weaponDock,body.flight-mode #skillsDock{background-color:transparent!important}
body.flight-mode #weaponDock button,body.flight-mode #skillsDock button,body.flight-mode #autoFireToggle,body.flight-mode #allStopBtn{background-color:rgba(12,36,53,.66)!important;color:#e6f8ff!important}
body.flight-mode #weaponDock .weaponTag,body.flight-mode #weaponDock #missileControls,body.flight-mode #ammoHud,body.flight-mode #heatReadout{background-color:rgba(10,32,47,.56)!important;color:#e6f8ff!important}
body.flight-mode #flightToast{background:rgba(13,52,64,.68)}

/* Center the active mission directly beneath the centered sector location. */
body.flight-mode #questTracker.quest{position:fixed!important;left:50%!important;right:auto!important;top:calc(max(16px,env(safe-area-inset-top)) + 34px)!important;bottom:auto!important;transform:translateX(-50%)!important;text-align:center!important;width:max-content!important;max-width:min(440px,48vw)!important;box-sizing:border-box;z-index:38!important;white-space:normal}
