/* The Zero Gravity reference HUD. Persistent controls stay at the edges. */
body.referenceHUD{--glass:linear-gradient(140deg,#6fcaff80,#1375b69c);--rim:2px solid #e4f7ff;--sky:#38b8ff;font-weight:500}
body.referenceHUD button,body.referenceHUD input,body.referenceHUD select{font-weight:500;letter-spacing:0}
body.referenceHUD #gameTop{position:fixed!important;inset:12px 14px auto!important;height:0!important;padding:0!important;background:none!important;border:0!important;z-index:22;pointer-events:none;display:flex;justify-content:space-between}
body.referenceHUD #brand{pointer-events:auto;background:#101820df;border-radius:25px;padding:8px 14px;gap:10px;display:flex;align-items:center;height:48px;font-size:12px!important;color:white;text-shadow:0 2px #183f5a}
body.referenceHUD #brand>b{font-size:23px;color:white;letter-spacing:-2px}body.referenceHUD #brand>span{font-size:12px!important;letter-spacing:0!important;line-height:1.15}body.referenceHUD #brand small{font-size:8px!important;display:block!important;margin-top:3px;letter-spacing:2px}
body.referenceHUD #gameTop nav{pointer-events:auto;padding:5px;gap:6px;border:2px solid #32c0ff;border-radius:12px;background:#79c8ec65;display:flex;height:54px}
body.referenceHUD #gameTop nav button{display:flex!important;align-items:center;justify-content:center;width:42px;height:40px;padding:8px!important;border:2px solid #e4f7ffb0;background:#69bde55c;border-radius:6px;font-size:0!important}body.referenceHUD #gameTop nav button span,body.referenceHUD #gameTop nav kbd{display:none!important}body.referenceHUD #gameTop .uiIcon{width:25px;height:25px}
body.referenceHUD #wallet{position:fixed!important;top:10px!important;left:50%!important;right:auto!important;transform:translateX(-50%);display:flex;gap:20px;padding:6px 18px;border:2px solid #36bfff;border-radius:11px;background:linear-gradient(140deg,#7bd6ff75,#1c80d0b0);font-size:23px;box-shadow:0 0 0 2px #1976b633;z-index:23;height:47px}
body.referenceHUD #wallet strong{font-weight:600;color:white;text-shadow:0 2px 1px #194063}body.referenceHUD #wallet>span{display:flex;align-items:center;gap:7px}body.referenceHUD .coin{width:27px;height:27px;border-radius:50%;border:2px solid #eaca83;display:grid;place-items:center;font-style:normal;font-size:10px;font-weight:600;background:radial-gradient(circle at 30% 25%,#dca771,#885128);color:#ffe9bf;box-shadow:inset 0 0 0 2px #8a5727,0 1px 3px #173d60}.rcCoin .coin{background:radial-gradient(circle at 30% 25%,#ffe56f,#b48211);border-color:#ffdf50;color:#715116;box-shadow:inset 0 0 0 2px #b98724}
body.referenceHUD #tradeBtn,body.referenceHUD #shipPanel,body.referenceHUD #flightMode,body.referenceHUD #shipStatusPanel,body.referenceHUD #missionPanel{display:none!important}
body.referenceHUD #bodyReadout{position:fixed;z-index:12;left:50%;top:66px;transform:translateX(-50%);text-align:center;pointer-events:none;white-space:nowrap;text-shadow:0 2px 2px #142b3e;display:flex;flex-direction:column;gap:3px;font-size:18px;color:#73ccff;font-weight:600}#bodyReadout .uiIcon{width:23px;height:23px;vertical-align:middle}#bodyName{font-size:20px;font-weight:600;color:#fff}
body.referenceHUD #utilityMenu{position:fixed;right:14px;top:76px;z-index:25;width:255px;padding:10px;display:grid;grid-template-columns:repeat(2,1fr);gap:6px;background:#126593ec;border:var(--rim);border-radius:12px}body.referenceHUD #utilityMenu[hidden]{display:none!important}body.referenceHUD #utilityMenu button{font-size:12px;padding:9px;background:#81ceff33;border:1px solid #bcecff99}
body.referenceHUD #hudDock{position:static!important;inset:auto!important;transform:none!important;display:grid!important;grid-template-columns:repeat(4,1fr);grid-column:1/-1;background:none;border:0;padding:0;width:auto!important}body.referenceHUD #hudDock button{width:auto!important;height:47px;font-size:9px!important}
body.referenceHUD #vitals{position:fixed;z-index:12;left:20px;top:44%;display:flex;flex-direction:column;gap:8px;pointer-events:none;width:260px;text-shadow:0 1px 2px #253745}.vitalRow{display:flex;gap:8px;align-items:center;height:30px}.vitalRow>.uiIcon{width:28px;height:28px;filter:drop-shadow(0 1px 2px #154c7d)}.vitalRow>strong{border:var(--rim);border-radius:5px;background:#429dc899;padding:3px 7px;white-space:nowrap;font-size:15px}.tempTrack,.statusTrack,.altitudeTrack{border:var(--rim);border-radius:6px;background:#248ab4b0;height:27px;position:relative;overflow:hidden}.tempTrack{width:150px;background:linear-gradient(90deg,#2b59df 0 18%,#8be5ea 18% 35%,#65bb43 35% 53%,#b9bb45 53% 70%,#bb7640 70% 84%,#d22d41 84%)}#tempNeedle{position:absolute;height:100%;top:0;width:4px;background:white;box-shadow:0 0 4px #fff;transform:translateX(-50%)}.statusTrack{width:205px;text-align:center;padding:3px;font-size:12px;font-weight:600;background:#60bd2b90}.altitudeTrack{width:205px}.altitudeTrack>i,.flightSpeedTrack>i{position:absolute;inset:0 auto 0 0;background:#68d2f1aa;width:0}.altitudeTrack>strong,.flightSpeedTrack>strong{position:absolute;inset:0;display:grid;place-items:center;color:white;font-weight:500;font-size:12px}
body.referenceHUD #surfacePanel{position:fixed!important;inset:auto 18px 22px auto!important;transform:none!important;min-width:0!important;width:auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;z-index:17;overflow:visible;max-width:180px!important}body.referenceHUD #surfacePanel>span,body.referenceHUD #surfacePanel>strong,body.referenceHUD #surfacePanel>small{display:none!important}body.referenceHUD #surfacePanel>div{display:flex;flex-direction:column;align-items:flex-end;gap:10px}body.referenceHUD #surfacePanel button{background:var(--glass)!important;border:var(--rim)!important;border-radius:12px;font-size:12px;color:white!important;min-width:66px;min-height:48px;box-shadow:0 3px 0 #114b7480;text-shadow:0 1px #28485e}body.referenceHUD #surfacePanel button .uiIcon{width:27px;height:27px;display:block;margin:auto auto 3px}body.referenceHUD #surfaceLaunchBtn{width:85px;height:86px;border-color:#6bff44!important}body.referenceHUD #surfaceLaunchBtn .uiIcon{width:38px!important;height:38px!important}body.referenceHUD #surfacePanel button[hidden]{display:none!important}
body.referenceHUD.shipFlying #surfacePanel{bottom:214px!important;right:18px!important}body.referenceHUD.onFoot #surfacePanel{bottom:121px!important;right:22px!important}body.referenceHUD.onFoot #exitShipBtn{font-size:10px}
body.referenceHUD #flightGauge{position:fixed;z-index:17;bottom:16px;left:50%;transform:translateX(-50%);width:280px;text-align:center;pointer-events:auto}body.referenceHUD #flightGauge[hidden]{display:none!important}#engineState{font-size:11px;font-weight:600;text-shadow:0 2px 2px #152b3d}.speedRow{display:flex;align-items:center;gap:7px;margin-top:5px}.speedRow>.uiIcon{width:23px}.flightSpeedTrack{position:relative;flex:1;height:22px;border:2px solid white;border-radius:5px;background:#1473aaa8;overflow:hidden}body.referenceHUD #boostBtn{width:31px;height:30px;min-width:0;padding:3px;border:2px solid #d5f1ff;border-radius:6px;background:#4298c9aa;font-size:0}body.referenceHUD #boostBtn>.uiIcon{width:21px;height:21px}body.referenceHUD #boostBtn.active{background:#74cf2e;border-color:#ceff84;box-shadow:0 0 14px #8cff5c88}
body.referenceHUD #flightPad{position:fixed;z-index:16;left:20px;bottom:20px;display:grid;grid-template-columns:repeat(3,60px);gap:8px}body.referenceHUD #flightPad[hidden],body.referenceHUD #flightRight[hidden]{display:none!important}body.referenceHUD #flightPad button,body.referenceHUD #flightRight button{touch-action:none;width:60px;height:60px;border:var(--rim);border-radius:12px;background:linear-gradient(130deg,#277b9fb3,#045278b3);padding:10px;box-shadow:inset 0 0 12px #9eeaff22,0 3px 0 #132c3b66}body.referenceHUD #flightPad .uiIcon{width:36px;height:36px}body.referenceHUD #flightRight{position:fixed;z-index:16;right:20px;bottom:20px;width:137px;display:grid;grid-template-columns:60px 69px;gap:8px;justify-items:end}body.referenceHUD #flightRight .uiIcon{width:32px;height:32px}body.referenceHUD #forwardPad{grid-column:2;width:75px!important;height:75px!important;grid-row:2/4}#forwardPad span,#reversePad span{font-size:48px;font-weight:600;line-height:.7}body.referenceHUD #reversePad{height:44px!important;width:60px!important;grid-column:2}body.referenceHUD #brakePad{grid-column:1;grid-row:3;width:47px!important;height:47px!important;border-radius:50%!important;padding:6px!important}
body.referenceHUD #touchControls{position:fixed!important;inset:auto auto 20px 22px!important;display:block!important;z-index:15}body.referenceHUD:not(.onFoot) #touchControls,body.referenceHUD #lookStick,body.referenceHUD .touchActions{display:none!important}body.referenceHUD #moveStick{width:91px!important;height:91px!important;border:3px solid #2489e7;background:#152d4a55;border-radius:50%;position:relative!important;inset:auto!important}body.referenceHUD #moveStick>div{background:#09a9ef;width:35px!important;height:35px!important;left:25px!important;top:25px!important;box-shadow:0 2px 6px #174873}body.referenceHUD #moveStick>span{display:none}body.referenceHUD #walkTouch{position:fixed;right:22px!important;bottom:20px!important;display:none;gap:8px}body.referenceHUD.onFoot #walkTouch{display:flex!important}body.referenceHUD #walkJump{width:76px;height:76px;border:3px solid #308be4;border-radius:50%;font-size:0;padding:17px;background:#142b445e}body.referenceHUD #walkJump>.uiIcon{width:39px;height:39px}body.referenceHUD #walkRun{align-self:flex-end;font-size:10px;padding:8px;border:1px solid white;border-radius:20px;background:#1689b88c}
body.referenceHUD #gearBar{position:fixed!important;left:50%!important;bottom:12px!important;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:5px;max-width:calc(100vw - 230px)!important;padding:0;background:none;border:0;z-index:19}body.referenceHUD:not(.onFoot) #gearBar,body.referenceHUD #gearBar[hidden]{display:none!important}body.referenceHUD #equippedName{display:none}body.referenceHUD #inventoryBtn{display:block!important;font-size:13px;font-weight:600;border:2px solid white;border-radius:5px;background:#2b8eba99;padding:4px 13px;text-shadow:0 1px #1c5271}body.referenceHUD #hotbar{display:flex;gap:6px;max-width:100%;overflow:auto}body.referenceHUD .hotbarSlot{width:65px;height:65px;flex:0 0 65px;border:2px solid #edfaff;border-radius:6px;background:linear-gradient(#4caee8a0,#2388a08a);box-shadow:inset 0 0 0 3px #9bd7ff66;padding:6px;position:relative}body.referenceHUD .hotbarSlot.active{border-color:#b0ff8d;box-shadow:inset 0 0 0 3px #8fd7ff,0 0 10px #83e4ff80}body.referenceHUD .hotbarSlot small{position:absolute;bottom:4px;left:3px;right:3px;font-size:9px;font-weight:600;color:white;line-height:1.05}body.referenceHUD .hotbarSlot kbd{position:absolute;top:2px;left:5px;background:none;font-size:12px;font-weight:600}body.referenceHUD .hotbarSlot>.uiIcon{width:32px;height:32px;margin-top:-9px}body.referenceHUD #mineBtn{position:fixed;left:100%;bottom:0;margin-left:9px;width:53px;height:53px;border:2px solid #d9f8ff;border-radius:50%;font-size:0;padding:12px;background:#338dbaa8}body.referenceHUD #mineBtn .uiIcon{width:25px;height:25px}
body.referenceHUD #inventoryDialog{position:fixed;inset:0;margin:auto;width:min(600px,calc(100vw - 140px));max-width:600px;max-height:58dvh;height:380px;padding:12px 15px 14px;background:linear-gradient(140deg,#71c7ed85,#1580d284);border:3px solid white;border-radius:15px;box-shadow:0 8px 45px #05223e33;color:#fff;backdrop-filter:blur(3px);overflow:auto}body.referenceHUD #inventoryDialog::backdrop{background:#00344d0b;backdrop-filter:none}body.referenceHUD #inventoryDialog .dialogHead{margin-bottom:6px;align-items:center;gap:6px}body.referenceHUD #inventoryDialog h2{font-size:19px;font-weight:600;margin:0}body.referenceHUD #inventoryDialog .dialogHead small{display:none}body.referenceHUD #closeInventory{border:0;background:none;padding:2px}body.referenceHUD #closeInventory .uiIcon{width:29px;height:29px}body.referenceHUD #inventoryCount{position:absolute;right:57px;top:10px;margin:0;font-size:10px}body.referenceHUD #inventoryDialog .inventoryHelp,body.referenceHUD #inventoryDialog>.muted{display:none}body.referenceHUD .inventoryTools{gap:5px;display:flex;margin:6px 0 10px;flex-wrap:nowrap}body.referenceHUD .inventoryTools input{min-width:50px;flex:1;background:#376bbb88;border:2px solid #bceaff;border-radius:5px;color:white;padding:7px;font-size:12px}body.referenceHUD .inventoryTools select{max-width:85px;background:#1273a4b0;border:1px solid white;padding:5px;font-size:10px}body.referenceHUD .inventoryTools button{font-size:10px;padding:4px 6px;border:1px solid #d4efff;border-radius:5px;background:#237bb57a}body.referenceHUD #inventoryGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;min-height:150px;max-height:none;overflow:visible}body.referenceHUD #inventoryEmpty{background:none;color:white;text-align:center;font-size:13px;padding:25px 30px;margin:0;opacity:.85}body.referenceHUD .itemCard{border:2px solid #ddf7ff;border-radius:7px;background:#398ccf55;position:relative;overflow:hidden}body.referenceHUD .itemCard.equipped{border-color:#a5ff77}body.referenceHUD .itemEquip{padding:9px 4px;width:100%;border:0;background:none;display:flex;flex-direction:column;align-items:center;min-height:85px;gap:2px}body.referenceHUD .itemEquip strong{font-size:11px;color:white}body.referenceHUD .itemEquip small{font-size:8px;color:#edfbff}body.referenceHUD .stackQty{position:absolute;right:4px;top:3px;font-size:11px}body.referenceHUD .saleCheck{font-size:8px;padding:4px;width:100%;border:0;border-top:1px solid #c7f1ff88;border-radius:0;background:#2989ad88}body.referenceHUD .itemCard.selected{box-shadow:inset 0 0 0 2px #acf581}.saleCheck[aria-pressed=true]{background:#64c54b88!important}body.referenceHUD .saleFooter{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:8px 0 0;border-top:1px solid #d4f6ff66;margin-top:10px}body.referenceHUD .saleFooter p{font-size:10px;margin:0}body.referenceHUD #tradeStatus{width:100%;opacity:.8}body.referenceHUD .saleFooter button{padding:5px 9px;font-size:10px;border:1px solid white;background:#1d8e9ca0;color:white}body.referenceHUD .mineralIcon{width:25px;height:28px;margin:0 0 4px;display:block;background:var(--ore-color,#9de0ef);clip-path:polygon(50% 0,85% 20%,100% 72%,50% 100%,0 72%,15% 20%)}
body.referenceHUD #objectLabels .objectLabel{transform:translate(-50%,-100%);font-size:14px;font-weight:600;line-height:1.15;background:none!important;border:0!important;border-radius:0;box-shadow:none!important;text-shadow:0 2px 3px #000,0 0 2px #000;padding:3px 5px;white-space:pre;text-align:center;color:white!important}body.referenceHUD #objectLabels .objectLabel.selected{color:#9edfff!important;font-size:15px}body.referenceHUD #objectLabels .objectLabel:active{transform:translate(-50%,-100%)}
body.referenceHUD .traderBillboard{background:#2678a7ae;border:2px solid #edfbff;border-radius:8px;color:white;font-size:12px;font-weight:600;padding:7px 12px;box-shadow:0 2px 12px #003f5577;transform:translate(-50%,-100%)}body.referenceHUD .mineralBillboard{font-size:10px!important;padding:5px 8px;min-width:85px;border-color:#d4efff;background:#15658ac2}body.referenceHUD #toast{top:126px!important;left:50%!important;bottom:auto!important;transform:translateX(-50%);max-width:45vw!important;text-align:center;background:#15486eb0;border:1px solid #9cdfff66;border-radius:8px;font-size:11px;pointer-events:none}body.referenceHUD #shade{background:linear-gradient(#0000000a,transparent 65%,#00101c2b)}body.referenceHUD #crosshair{opacity:.5}
@media(max-height:550px){body.referenceHUD #gameTop{inset:8px 10px auto!important}body.referenceHUD #brand{height:37px;padding:6px 10px}body.referenceHUD #brand>span{font-size:10px!important}body.referenceHUD #brand small{font-size:6px!important}body.referenceHUD #gameTop nav{height:43px;padding:3px}body.referenceHUD #gameTop nav button{height:33px;width:34px;padding:5px!important}body.referenceHUD #wallet{top:6px!important;height:38px;font-size:19px;padding:4px 12px;gap:14px}body.referenceHUD .coin{width:24px;height:24px}body.referenceHUD #bodyReadout{top:49px;font-size:14px;gap:1px}body.referenceHUD #bodyName{font-size:17px}body.referenceHUD #vitals{left:14px;top:41%;width:225px;gap:5px}.vitalRow{height:24px;gap:5px}.vitalRow>.uiIcon{width:23px;height:23px}.tempTrack{width:116px;height:23px}.statusTrack,.altitudeTrack{width:170px;height:23px}.vitalRow>strong{font-size:12px}.statusTrack,.altitudeTrack strong{font-size:10px}body.referenceHUD #flightPad{left:14px;bottom:14px;grid-template-columns:repeat(3,46px);gap:6px}body.referenceHUD #flightPad button{width:46px;height:46px;padding:7px;border-radius:10px}body.referenceHUD #flightPad .uiIcon{width:28px;height:28px}body.referenceHUD #flightRight{right:14px;bottom:14px;grid-template-columns:46px 56px;width:108px;gap:6px}body.referenceHUD #flightRight button{width:46px;height:46px;padding:7px}body.referenceHUD #forwardPad{width:58px!important;height:58px!important}body.referenceHUD #reversePad{width:46px!important;height:32px!important}body.referenceHUD #brakePad{width:36px!important;height:36px!important}#forwardPad span,#reversePad span{font-size:38px}body.referenceHUD #flightRight .uiIcon{width:26px;height:26px}body.referenceHUD #flightGauge{bottom:12px;width:235px}body.referenceHUD #surfacePanel{right:14px!important;bottom:14px!important}body.referenceHUD.shipFlying #surfacePanel{bottom:168px!important}body.referenceHUD #surfaceLaunchBtn{height:69px;width:69px}body.referenceHUD #surfacePanel button{font-size:10px;min-height:39px;min-width:54px;padding:6px}body.referenceHUD #surfacePanel button .uiIcon{width:23px;height:23px}body.referenceHUD #surfaceLaunchBtn .uiIcon{width:29px!important;height:29px!important}body.referenceHUD #moveStick{width:75px!important;height:75px!important}body.referenceHUD #moveStick>div{left:20px!important;top:20px!important;width:29px!important;height:29px!important}body.referenceHUD #walkJump{width:64px;height:64px;padding:13px}body.referenceHUD #walkJump>.uiIcon{width:32px;height:32px}body.referenceHUD .hotbarSlot{width:57px;height:57px;flex-basis:57px}body.referenceHUD #inventoryBtn{font-size:12px;padding:2px 10px}body.referenceHUD #mineBtn{width:46px;height:46px;padding:10px}body.referenceHUD #gearBar{bottom:8px!important}body.referenceHUD.onFoot #surfacePanel{bottom:94px!important}body.referenceHUD #inventoryDialog{height:260px;max-height:67dvh;width:min(550px,calc(100vw - 170px));padding:8px 12px}body.referenceHUD #inventoryGrid{min-height:75px}body.referenceHUD #toast{top:94px!important;font-size:10px}body.referenceHUD #utilityMenu{top:58px}}
@media(max-width:550px) and (orientation:portrait){body.referenceHUD #brand>span{display:none}body.referenceHUD #wallet{font-size:17px;gap:12px;padding:7px 10px;left:47%!important}body.referenceHUD #gameTop nav{gap:3px;padding:4px}body.referenceHUD #gameTop nav button{width:30px;height:34px;padding:5px!important}body.referenceHUD #gameTop nav{height:46px}body.referenceHUD #inventoryDialog{width:calc(100vw - 24px);height:48dvh}body.referenceHUD #vitals{top:29%;width:210px}body.referenceHUD .hotbarSlot{width:54px;flex-basis:54px;height:58px}body.referenceHUD #flightGauge{width:180px;bottom:160px}body.referenceHUD #bodyReadout{font-size:14px}body.referenceHUD #bodyName{font-size:18px}}
body.referenceHUD #gameTop{align-items:flex-start!important}body.referenceHUD #wallet strong{font-size:23px!important}body.referenceHUD .rcCoin .coin{background:radial-gradient(circle at 30% 25%,#ffe56f,#b48211);border-color:#ffdf50;color:#715116;box-shadow:inset 0 0 0 2px #b98724}body.referenceHUD .uiIcon{filter:brightness(0) invert(1) drop-shadow(0 1px 1px #20425b55)}
@media(max-height:550px){body.referenceHUD #wallet strong{font-size:19px!important}}

body.referenceHUD .hotbarSlot>.itemThumb{width:45px;height:46px;object-fit:contain;position:absolute;left:8px;top:0;filter:drop-shadow(0 1px 1px #20425b55)}

body.referenceHUD #gearBar{overflow:visible!important}body.referenceHUD #hotbar{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}body.referenceHUD #hotbar::-webkit-scrollbar{display:none}body.referenceHUD #inventoryEmpty{position:absolute;top:47%;left:18px;right:18px;transform:translateY(-50%);padding:15px;pointer-events:none;font-size:12px}body.referenceHUD #inventoryGrid{min-height:135px;max-height:185px;overflow-y:auto}body.referenceHUD #inventoryDialog .saleFooter{position:relative;margin-top:6px}body.referenceHUD #inventorySearch::placeholder{color:#d0efff;opacity:.9}
@media(max-height:550px){body.referenceHUD #inventoryGrid{min-height:68px;max-height:80px}body.referenceHUD #inventoryDialog{height:260px}}

body.referenceHUD #moveStick>div{position:absolute!important;border-radius:50%!important}body.referenceHUD:has(#inventoryDialog[open]) #mineralLabels{display:none}body.referenceHUD #inventoryDialog .saleFooter{min-height:50px}

body.referenceHUD #inventoryDialog[open]{display:flex;flex-direction:column}body.referenceHUD #inventoryDialog .dialogHead,body.referenceHUD #inventoryDialog .inventoryTools,body.referenceHUD #inventoryDialog .saleFooter{flex-shrink:0}body.referenceHUD #inventoryDialog #inventoryGrid{flex:1;min-height:0!important;max-height:none!important;overflow:auto}body.referenceHUD #inventoryDialog .saleFooter[hidden]{display:none!important}body.referenceHUD #inventoryEmpty{top:60%}body.referenceHUD #walkJump{min-width:0!important;width:76px!important;height:76px!important}body.referenceHUD #mineBtn{min-width:0!important;min-height:0!important}body.referenceHUD #inventoryDialog{overflow:hidden}
@media(max-height:550px){body.referenceHUD #inventoryDialog{width:48vw;height:200px;max-height:54dvh}body.referenceHUD #inventoryDialog .dialogHead{margin-bottom:1px}body.referenceHUD #inventoryDialog h2{font-size:16px}body.referenceHUD .inventoryTools input{padding:5px;font-size:10px}body.referenceHUD .inventoryTools select{max-width:65px;font-size:9px;padding:3px}body.referenceHUD .inventoryTools button{font-size:8px;padding:3px}body.referenceHUD #inventoryDialog .inventoryTools{gap:4px;margin-bottom:5px}body.referenceHUD #inventoryEmpty{font-size:10px;line-height:1.4;padding:8px}body.referenceHUD #walkJump{width:64px!important;height:64px!important}body.referenceHUD #inventoryDialog .saleFooter{min-height:0;padding-top:3px;gap:4px}body.referenceHUD #inventoryDialog .saleFooter button{font-size:9px;padding:3px 6px}body.referenceHUD #inventoryDialog .saleFooter p{font-size:8px}}

body.referenceHUD .uiIcon{filter:drop-shadow(0 1px 1px #20425b55)!important}

body.referenceHUD #reversePad{grid-row:2!important}body.referenceHUD #forwardPad{grid-row:3!important}body.referenceHUD #brakePad{grid-row:3!important}
/* v15: one blue-glass interface, with independently scrollable cargo. */
body.referenceHUD{--muted:#d6f1ff;--line:#c5eeff70;--jump-size:76px;--stick-size:91px}
body.referenceHUD dialog,body.referenceHUD .glass,body.referenceHUD #utilityMenu,body.referenceHUD #exploreControls,body.referenceHUD #exploreRail{color:#fff;background:linear-gradient(140deg,#3b9edeea,#146799ed);border:2px solid #e3f7ff;border-radius:14px;box-shadow:0 10px 40px #032e5566}
body.referenceHUD dialog::backdrop,body.referenceHUD #settingsShield{background:#06436766}
body.referenceHUD dialog :is(p,small,dt,dd,legend,label,.muted,.eyebrow,.settingNotice,.footnote){color:#e4f6ff}
body.referenceHUD dialog :is(button,input,select),body.referenceHUD .glass button,body.referenceHUD #exploreControls :is(button,select,input){background:#196b9db0;border-color:#d0f0ff;color:white}
body.referenceHUD dialog :is(button:hover,button.active){background:#58b5e899;border-color:white}
body.referenceHUD dialog :is(input::placeholder){color:#d2efff}
body.referenceHUD dialog :is(input[type=range],input[type=checkbox]){accent-color:#a5edff}
body.referenceHUD dialog fieldset{border-color:#b9e9ff99}
body.referenceHUD #atlasCanvas{background:radial-gradient(ellipse at center,#196898,#0c395c)}
body.referenceHUD .atlas{background:#105680;border-color:#b9e9ff99}
body.referenceHUD #selection{background:#1974a5e8;border-color:#c3f0ff99}
body.referenceHUD #search,body.referenceHUD #systemFilter,body.referenceHUD #objectFilter{background:#196b9db0;color:#fff;border-color:#d0f0ff88}
body.referenceHUD #catalog small,body.referenceHUD .atlasCaption,body.referenceHUD .atlasCaption small{color:#d6efff}
body.referenceHUD #inventoryDialog[open]{display:flex;flex-direction:column;overflow:hidden;height:380px;max-height:58dvh;touch-action:pan-y}
body.referenceHUD #inventoryDialog #inventoryGrid{flex:1 1 0%;height:0;min-height:0!important;max-height:none!important;overflow-x:hidden;overflow-y:auto;align-content:start;grid-auto-rows:minmax(120px,max-content);overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#d4f4ff #196b9d55;padding:3px 6px 6px 3px}
body.referenceHUD #inventoryGrid :is(button,.itemCard){touch-action:pan-y}
body.referenceHUD #inventoryGrid::-webkit-scrollbar{width:7px}
body.referenceHUD #inventoryGrid::-webkit-scrollbar-thumb{background:#d4f4ff;border-radius:8px}
body.referenceHUD #gearBar{width:max-content;max-width:calc(100vw - 240px)!important;align-items:center!important}
body.referenceHUD #inventoryBtn{position:static!important;inset:auto!important;transform:none!important;align-self:center;margin:0 auto;flex:none}
body.referenceHUD #hotbar{justify-content:flex-start;min-width:0;max-width:100%;touch-action:pan-x;overscroll-behavior:contain}
body.referenceHUD #walkTouch{bottom:max(20px,env(safe-area-inset-bottom))!important;right:22px!important;z-index:21;align-items:flex-end;gap:10px;height:auto!important;transform:none}
body.referenceHUD #walkTouch #walkRun{position:static!important;align-self:center;width:48px;height:48px!important;min-width:0;border:2px solid #ddf7ff;border-radius:50%;font-size:11px;padding:5px;touch-action:none}
body.referenceHUD #walkTouch #walkJump{width:var(--jump-size)!important;height:var(--jump-size)!important;min-width:0;min-height:0;padding:12px;touch-action:none;display:grid;place-items:center}
body.referenceHUD #walkJump>.uiIcon{width:55%;height:55%;min-width:24px;min-height:24px}
body.referenceHUD #moveStick{width:var(--stick-size)!important;height:var(--stick-size)!important}
body.referenceHUD #moveStick>div{width:38%!important;height:38%!important;left:31%!important;top:31%!important}
body.referenceHUD #surfaceLaunchBtn{position:fixed;left:50%;bottom:72px;transform:translateX(-50%);width:76px;height:76px}
body.referenceHUD #surfaceLaunchBtn:active{transform:translateX(-50%) scale(.97)}
body.referenceHUD.onFoot #exitShipBtn{position:fixed;left:14px;top:55%;right:auto;bottom:auto;transform:translateY(-50%);max-width:130px}
body.referenceHUD #launchCountdown{inset:50% auto auto 50%!important;transform:translate(-50%,-50%);color:#8bff88;text-shadow:0 3px 24px #061d42;z-index:24}
body.referenceHUD #launchCountdown[data-stage=yellow]{color:#ffe36b}
body.referenceHUD #launchCountdown[data-stage=red]{color:#ff6565}
body.referenceHUD #launchCountdown>span,body.referenceHUD #launchCountdown>small{display:none}
body.referenceHUD #countdownNumber{font-size:100px;line-height:1;font-weight:600}
body.referenceHUD .mineralBillboard,body.referenceHUD .traderBillboard{transition:none!important;animation:none!important;will-change:left,top}
body.referenceHUD .mineralBillboard:active{transform:translate(-50%,-100%)}
@media(max-height:550px){body.referenceHUD #inventoryDialog[open]{height:220px;max-height:57dvh}body.referenceHUD #inventoryGrid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr))}body.referenceHUD #inventoryDialog .dialogHead{margin-bottom:2px}body.referenceHUD .inventoryTools{margin:3px 0 5px}body.referenceHUD #surfaceLaunchBtn{width:62px;height:62px;bottom:59px}body.referenceHUD #countdownNumber{font-size:82px}}
@media(max-width:550px) and (orientation:portrait){body.referenceHUD #gearBar{max-width:calc(100vw - 140px)!important}body.referenceHUD #inventoryDialog[open]{max-height:48dvh;height:380px}}

body.referenceHUD.onFoot #vitals{top:30%}body.referenceHUD.onFoot #exitShipBtn{top:60%}
body.referenceHUD #boot,body.referenceHUD #rotatePrompt,body.referenceHUD #warpOverlay{background:radial-gradient(ellipse at center,#218ac9ed,#124f7df5);color:white}
body.referenceHUD #boot :is(p,small),body.referenceHUD #rotatePrompt p,body.referenceHUD #warpOverlay p{color:#def4ff}
/* v16: larger held-speed controls, consistent menus, and a perspective atlas. */
body.referenceHUD #gameTop #brand{color:white;text-align:left;cursor:pointer;letter-spacing:0;min-width:0}
body.referenceHUD #gameTop nav button{display:flex;align-items:center;justify-content:center;gap:5px}
body.referenceHUD #utilityMenu{width:240px;max-height:calc(100dvh - 80px);overflow-y:auto;display:flex;flex-direction:column;gap:4px;padding:10px;z-index:34}
body.referenceHUD #utilityMenu[hidden]{display:none!important}
body.referenceHUD #utilityMenu .moreHeading{padding:6px 10px;font-size:18px;font-weight:600;border-bottom:1px solid #d8f4ff77}
body.referenceHUD #utilityMenu #hudDock{display:flex!important;flex-direction:column;width:100%!important;gap:4px}
body.referenceHUD #utilityMenu button,body.referenceHUD #utilityMenu #hudDock button{display:flex!important;justify-content:flex-start;align-items:center;gap:12px;text-align:left;width:100%!important;min-height:39px;height:auto;padding:8px 12px!important;font-size:13px!important;background:#2585b999;border:1px solid #bfedff77;border-radius:7px}
body.referenceHUD #utilityMenu button>.uiIcon{width:23px;height:23px;margin:0}
body.referenceHUD :is(#exploreControls,#exploreRail,#placesDialog,#routeDialog,#tourDialog,#hudDialog,#helpDialog,#targetPanel,#shipPanel,#shipStatusPanel,#flightMode){background:linear-gradient(135deg,#3b9edeea,#146799ed)!important;color:white!important;border-color:#d3f3ff!important}
body.referenceHUD :is(#exploreControls,#exploreRail,dialog,.glass) :is(button,input,select){color:white;background-color:#237bb0a6;border-color:#b9edff99}
body.referenceHUD :is(#exploreControls,#exploreRail,dialog,.glass) :is(p,small,label,kbd,strong,span){color:inherit}
body.referenceHUD :is(.placeRow,.routeRow,.tourCard,#placesList,#routeList,#tourList){color:white;background-color:#237bb044;border-color:#b9edff88}
body.referenceHUD #settingsDialog{width:min(680px,94vw);padding:20px;max-height:90dvh}
body.referenceHUD #settingsDialog .dialogHead h2{font-size:27px}
body.referenceHUD #settingsDialog .sessionActions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0 5px}
body.referenceHUD .sessionActions button{min-height:44px;display:grid;place-items:center;font-size:15px;letter-spacing:0}
body.referenceHUD #resumeGame{background:#58acd2;color:white}
body.referenceHUD #creatorLinks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body.referenceHUD #creatorLinks a{border:1px solid #ddf7ff88;border-radius:6px;padding:10px;background:#2182b088;color:white;text-decoration:none;text-align:center}
body.referenceHUD #graphicsValue{min-width:55px;display:inline-block;text-align:right}
body.referenceHUD #flightRight{width:168px;right:18px;bottom:18px;display:grid;grid-template-columns:60px 96px;grid-template-rows:56px 48px 112px;gap:9px;align-items:stretch}
body.referenceHUD #flightRight button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;padding:7px!important;border-radius:11px!important;text-align:center;line-height:1.1}
body.referenceHUD #flightRight button>.uiIcon{display:block;margin:0;width:30px;height:30px}
body.referenceHUD #flightRight button>span{font-size:43px;line-height:.9;display:block;margin:0;font-weight:500}
body.referenceHUD #flightRight button>small{display:block;font-size:11px;line-height:1.1;color:white;margin:1px 0 0}
body.referenceHUD #flightCamera{grid-area:1/1}
body.referenceHUD #flightAtlas{grid-area:1/2}
body.referenceHUD #reversePad{grid-area:2/2!important}
body.referenceHUD #forwardPad{grid-area:3/2!important}
body.referenceHUD #brakePad{grid-area:3/1!important;align-self:end;height:64px!important}
body.referenceHUD #brakePad>span{font-size:27px}
body.referenceHUD #reversePad>span{font-size:24px}
body.referenceHUD #forwardPad{border-color:#b7ffaf;background:linear-gradient(#319bc5cc,#10597edb)}
body.referenceHUD.shipFlying #surfacePanel{bottom:268px!important}
body.referenceHUD.freeCamera #touchControls{display:block!important}
body.referenceHUD.freeCamera :is(#flightPad,#flightRight,#flightGauge,#surfacePanel,#vitals,#gearBar,#cockpitFrame){display:none!important}
body.referenceHUD #freeCameraSpeed{position:fixed;z-index:19;left:20px;top:41%;width:230px;padding:12px;border:2px solid #e0f7ff;border-radius:10px;background:#247faaa6;display:flex;flex-direction:column;gap:8px;text-align:center}
body.referenceHUD #freeCameraSpeed[hidden]{display:none!important}
body.referenceHUD #freeCameraSpeed label{font-size:15px}
body.referenceHUD #freeCameraSpeed output{font-size:18px}
body.referenceHUD #freeCameraSpeed input{width:100%;accent-color:#b2efff}
body.referenceHUD #freeCameraSpeed small{font-size:10px}
body.referenceHUD #mapDialog{width:min(1180px,96vw);max-width:96vw;height:min(760px,92dvh);max-height:92dvh;padding:18px;overflow:hidden}
body.referenceHUD #mapDialog[open]{display:flex;flex-direction:column}
body.referenceHUD #mapDialog .dialogHead{flex:none;margin-bottom:12px}
body.referenceHUD #mapDialog h1{font-size:26px;margin:3px 0;letter-spacing:0}
body.referenceHUD .mapLayout{min-height:0;height:auto;flex:1;display:flex;gap:14px}
body.referenceHUD .mapLayout>aside{width:245px;min-width:180px;display:flex;flex-direction:column;min-height:0}
body.referenceHUD .mapLayout>aside #catalog{min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
body.referenceHUD #catalog button{text-align:left;min-height:44px}
body.referenceHUD #catalog b{font-size:13px}
body.referenceHUD .atlas{flex:1;min-width:0;min-height:180px;background:radial-gradient(ellipse,#124a71,#051b35);border:2px solid #b7e9ff;border-radius:10px}
body.referenceHUD #atlasCanvas{display:block;width:100%;height:100%;background:none;touch-action:none}
body.referenceHUD .atlasCaption{top:12px;left:12px;pointer-events:none;color:#e3f7ff;font-size:10px;letter-spacing:1px}
body.referenceHUD .atlasCaption small{font-size:9px;letter-spacing:0;line-height:1.4}
body.referenceHUD #atlasToolbar{position:absolute;right:10px;top:10px;display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:62%}
body.referenceHUD #atlasToolbar button{padding:7px 9px;min-height:32px;font-size:11px;background:#216e9be8;border-color:#bcefff}
body.referenceHUD #atlasPan[aria-pressed=true]{background:#5dab74}
body.referenceHUD #selection{left:10px;right:10px;bottom:10px;padding:10px;border:1px solid #d5f6ff99;border-radius:8px;background:#1a6894d9;display:grid;grid-template-columns:1fr auto;gap:5px 10px;max-height:38%;overflow:auto}
body.referenceHUD #selection h2{font-size:19px}
body.referenceHUD #selection p{grid-column:1;grid-row:2;font-size:10px;line-height:1.4;margin:0;max-height:42px;overflow:auto}
body.referenceHUD #selection button{grid-column:2;width:auto;font-size:10px;min-height:30px;padding:7px;letter-spacing:0}
body.referenceHUD #selection #selectTarget{grid-row:1}
body.referenceHUD #selection #addStop{grid-row:2}
#stellarGlare{position:fixed;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;mix-blend-mode:screen}
body.referenceHUD #boot{display:flex;position:fixed;inset:0;z-index:60;background:#090b10;color:white;overflow:hidden;padding:20px}
body.referenceHUD #boot.hidden{display:none}
.bootPattern{position:absolute;inset:-70%;opacity:.035;background:url('icons/rocket_launch.svg') repeat;background-size:145px;transform:rotate(-24deg);pointer-events:none}
.bootCard{position:relative;width:min(850px,88vw);display:flex;align-items:center;flex-direction:column;gap:14px;text-align:center}
.bootPoster{width:150px;height:150px;border:3px solid #d4f4ff;border-radius:9px;box-shadow:-3px 0 0 #02b4ff,3px 0 0 #fa4359,0 0 35px #219ee62b;position:relative}
.bootPoster img{width:100%;height:100%;object-fit:cover;border-radius:6px}
.bootPoster span{position:absolute;bottom:0;left:0;right:0;padding:5px;font-size:9px;background:#07162b99;text-align:left}
body.referenceHUD #boot h1{font-size:clamp(23px,3vw,39px);letter-spacing:0;font-weight:600;margin:8px 0 14px}
.bootProgressRow{display:flex;gap:15px;align-items:center;width:100%}
.loadSpinner{width:37px;height:37px;flex:none;border:5px solid #ffffff33;border-top-color:white;border-radius:50%;animation:loadingSpin 1s linear infinite}
@keyframes loadingSpin{to{transform:rotate(360deg)}}
.bootProgressTrack{position:relative;height:34px;flex:1;border:3px solid white;border-radius:7px;background:#ffffff22;overflow:hidden;box-shadow:0 0 0 2px #ffffff22}
#sourceProgress{position:absolute;inset:0 auto 0 0;width:0;background:#52b0db88;transition:width .15s linear}
#sourcePercent{position:absolute;inset:0;display:grid;place-items:center;font-size:15px;line-height:1;color:white}
body.referenceHUD #boot #bootStatus{color:white;font-size:18px;margin:8px 0 0;font-weight:500;line-height:1.3;max-width:95%;overflow-wrap:anywhere}
body.referenceHUD #boot #sourceDetail{font-size:11px;color:#c4d0dc;margin:0}
body.referenceHUD #boot #rendererNote{margin:0;font-size:10px;color:#a9b9c9}
body.referenceHUD #boot #launchBtn{min-width:180px;padding:11px;min-height:40px;font-size:14px;letter-spacing:0;background:#247dae;color:white;border:2px solid #c1ecff}
@media(max-height:550px){body.referenceHUD #flightRight{grid-template-columns:52px 80px;grid-template-rows:43px 36px 82px;gap:7px;width:139px;right:14px;bottom:14px}body.referenceHUD #flightRight button>small{font-size:10px}body.referenceHUD #flightRight button>.uiIcon{width:26px;height:26px}body.referenceHUD #brakePad{height:53px!important}body.referenceHUD.shipFlying #surfacePanel{bottom:199px!important}body.referenceHUD #freeCameraSpeed{width:200px;top:34%;left:14px;padding:8px;gap:5px}body.referenceHUD #mapDialog{padding:10px;height:94dvh;max-height:94dvh}body.referenceHUD #mapDialog .dialogHead{margin-bottom:6px}body.referenceHUD #mapDialog h1{font-size:21px}body.referenceHUD .mapLayout{gap:9px}body.referenceHUD .mapLayout>aside{width:210px;min-width:180px}body.referenceHUD #tabs{margin:5px 0}body.referenceHUD #tabs button{padding:5px;font-size:9px}body.referenceHUD #search{padding:7px}body.referenceHUD #catalog button{padding:8px 5px}body.referenceHUD #selection h2{font-size:15px}body.referenceHUD #atlasToolbar{max-width:55%;gap:3px}body.referenceHUD #atlasToolbar button{font-size:9px;padding:5px;min-height:27px}.bootCard{gap:7px}.bootPoster{width:92px;height:92px}body.referenceHUD #boot h1{font-size:27px;margin:6px 0 10px}.bootProgressTrack{height:28px}body.referenceHUD #boot #bootStatus{font-size:16px;margin:7px 0 0}body.referenceHUD #boot #launchBtn{min-height:32px;padding:7px}}
@media(max-width:550px) and (orientation:portrait){body.referenceHUD #mapDialog{height:94dvh;padding:10px}body.referenceHUD .mapLayout{flex-direction:column}body.referenceHUD .mapLayout>aside{width:100%;max-height:31%;min-height:145px}body.referenceHUD #catalog{max-height:110px}body.referenceHUD #tabs{display:none}body.referenceHUD .atlas{min-height:280px}body.referenceHUD #freeCameraSpeed{width:165px;left:12px;top:35%}body.referenceHUD #flightRight{width:139px;grid-template-columns:52px 80px;grid-template-rows:43px 36px 82px}.bootPoster{width:125px;height:125px}}
body.referenceHUD #utilityMenu #exploreRail{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:column;gap:4px;width:100%!important;background:none!important;border:0!important;border-radius:0;padding:0;box-shadow:none!important}
body.referenceHUD #utilityMenu #exploreRail button{font-size:14px!important;gap:14px;justify-content:flex-start}
body.referenceHUD #utilityMenu #exploreRail button small{font-size:11px;letter-spacing:0;display:inline}
body.referenceHUD #utilityMenu button[hidden]{display:none!important}
body.referenceHUD #search::placeholder{color:#dbf4ff;opacity:.85}
body.referenceHUD #flightRight #brakePad{height:64px!important;align-self:end}
body.referenceHUD #flightRight #reversePad{padding:3px!important;gap:0}
body.referenceHUD #flightRight #reversePad>span{font-size:20px;line-height:1}
body.referenceHUD #flightRight #reversePad>small{font-size:10px;line-height:1;margin:0}
@media(max-height:550px){body.referenceHUD #flightRight{grid-template-rows:44px 44px 96px}body.referenceHUD #flightRight #brakePad{height:58px!important}body.referenceHUD.shipFlying #surfacePanel{bottom:220px!important}}
body.referenceHUD #fatal:not([hidden]){background:linear-gradient(#3b9edeee,#146799f5);color:white;border:2px solid #d8f4ff}

#boot.ready .loadSpinner{animation:none;border-color:#b9f6d2}
/* v17: shared HUD styling and centered loading / inventory content. */
body.referenceHUD #gameTop #brand{background:linear-gradient(135deg,#53b7e9a8,#196da7c9)!important;border:2px solid #a6eaff!important;border-radius:10px!important;box-shadow:inset 0 0 0 2px #d5f4ff30,0 0 12px #27bbff38;display:flex;align-items:center;justify-content:center;text-align:center;gap:9px;color:white;padding:8px 12px}
body.referenceHUD #gameTop #brand b{color:white;font-weight:600}
body.referenceHUD #gameTop #brand span{color:white;letter-spacing:0}
body.referenceHUD .bootProgressRow{position:relative;width:100%;display:block;padding:0}
body.referenceHUD .bootProgressTrack{width:100%;margin:0 auto;flex:none}
body.referenceHUD .loadSpinner{position:absolute;left:-52px;top:50%;transform:translateY(-50%);animation:loadingSpinCentered 1s linear infinite}
@keyframes loadingSpinCentered{to{transform:translateY(-50%) rotate(360deg)}}
body.referenceHUD #boot.ready .loadSpinner{display:none!important}
body.referenceHUD .hotbarSlot{display:flex;align-items:center;justify-content:center}
body.referenceHUD .hotbarSlot>.itemThumb{position:absolute!important;left:50%!important;top:44%!important;transform:translate(-50%,-50%);width:70%;height:70%;object-fit:contain;margin:0!important}
body.referenceHUD .hotbarSlot>.mineralIcon,body.referenceHUD .hotbarSlot>.uiIcon{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);margin:0!important}
body.referenceHUD .itemEquip>.mineralIcon{align-self:center;flex-shrink:0;margin:0 auto 5px}
@media(max-height:550px){body.referenceHUD .loadSpinner{width:27px;height:27px;left:-37px;border-width:4px}body.referenceHUD #gameTop #brand{padding:5px 9px}}
@media(max-width:550px) and (orientation:portrait){body.referenceHUD .bootProgressRow{width:86%}body.referenceHUD .loadSpinner{width:25px;height:25px;left:-33px;border-width:4px}}
/* v18: compact actions, clear menus, and stable map paint. */
body.referenceHUD #flightRight{grid-template-rows:56px 44px 78px}
body.referenceHUD #flightRight :is(#forwardPad,#reversePad)>span{font-size:21px;letter-spacing:-3px;line-height:1.1}
body.referenceHUD #surfaceLaunchBtn{position:static;left:auto;bottom:auto;transform:none;order:0;width:70px;height:70px}
body.referenceHUD #surfaceLaunchBtn:active{transform:scale(.97)}
body.referenceHUD #surfacePanel>div{display:flex;flex-direction:column;align-items:center;gap:9px}
body.referenceHUD #exitShipBtn{order:1}
body.referenceHUD #surfaceLandBtn{order:2}
body.referenceHUD #surfaceAbortBtn{order:3}
body.referenceHUD #utilityMenu [data-menu-label]::after{content:attr(data-menu-label);font-size:12px;display:inline;margin-left:8px;white-space:nowrap}
body.referenceHUD #utilityMenu :is(button small,button span){display:inline!important}
body.referenceHUD #mapDialog{background:#073556!important;color:#eefbff;color-scheme:dark}
body.referenceHUD #atlasCanvas{background:#06243c}
body.referenceHUD #warpConfirmDialog{width:min(420px,90vw);background:linear-gradient(140deg,#086a9ce8,#073d63f5);color:white;border:2px solid #9de8ff;border-radius:16px;padding:22px}
body.referenceHUD #warpConfirmDialog h1{font-size:25px;margin:0}
body.referenceHUD #warpPrice{display:block;font-size:23px;color:#adf4c4;margin:18px 0}
.warpActions{display:flex;gap:12px;justify-content:flex-end;margin-top:22px}
body.referenceHUD dialog::backdrop{background:#010b17a6;backdrop-filter:blur(5px)}
body.referenceHUD #orbitZoom{position:fixed;right:18px;top:39%;z-index:22;display:flex;gap:6px}
body.referenceHUD #orbitZoom[hidden]{display:none}
body.referenceHUD #orbitZoom button{width:43px;height:40px;font-size:24px;padding:0}
#space.gradedScene{filter:saturate(1.08) contrast(1.035)}
@media(max-height:550px){body.referenceHUD #flightRight{grid-template-rows:44px 38px 64px}body.referenceHUD #surfaceLaunchBtn{width:56px;height:56px}body.referenceHUD.shipFlying #surfacePanel{bottom:184px!important}body.referenceHUD #flightRight :is(#forwardPad,#reversePad)>span{font-size:18px}}

body.referenceHUD #surfaceLaunchBtn{padding:5px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1.1}body.referenceHUD #surfaceLaunchBtn .uiIcon{width:29px!important;height:29px!important;margin:0!important}
body.referenceHUD #warpConfirmDialog button{min-height:40px;padding:8px 14px}

body.referenceHUD.insideBody #shade{background:none}

#earthWeatherFX{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}#earthWeatherFX[hidden]{display:none}body.referenceHUD #earthWeather{position:fixed;top:119px;left:50%;transform:translateX(-50%);padding:4px 11px;background:#12537d9e;border:1px solid #8dd9f966;border-radius:9px;font-size:12px;color:#effcff;pointer-events:none;z-index:10;white-space:nowrap}body.referenceHUD #earthWeather[hidden]{display:none}body.referenceHUD #earthEnvironmentSettings{display:grid;gap:12px;padding:14px;border:1px solid #a4e3ff66;border-radius:10px;margin:16px 0}body.referenceHUD #earthEnvironmentSettings label{display:flex;align-items:center;gap:9px;flex-wrap:wrap}body.referenceHUD #earthTime{flex:1;min-width:120px}body.referenceHUD #earthWeatherMode{margin-left:auto}@media(max-height:550px){body.referenceHUD #earthWeather{top:88px;font-size:10px;padding:3px 9px}}

body.referenceHUD #earthWeather{top:140px}@media(max-height:550px){body.referenceHUD #earthWeather{top:106px}}.speedRange{display:flex;justify-content:space-between;margin:3px 36px 0 30px;font-size:10px;color:#effaff;text-shadow:0 1px 2px #123}#boostTimerTrack{position:relative;height:17px;margin:6px 36px 0 30px;border:1px solid #c4edff;border-radius:5px;overflow:hidden;background:#123f60}#boostTimerFill{position:absolute;left:0;top:0;bottom:0;width:100%;background:#48a1c8}#boostTimerTrack[data-state=active] #boostTimerFill{background:#61ad38}#boostTimerTrack[data-state=cooldown] #boostTimerFill{background:#b47a35}#boostTimerText{position:relative;display:block;font-size:9px;line-height:15px;font-weight:500;color:white;text-shadow:0 1px 2px #134}body.referenceHUD #earthDayMinutes{width:80px;margin-left:auto}#shipSpeedSettings{border:1px solid #a4e3ff66;border-radius:10px;padding:14px}#shipSpeedSettings label{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#shipSpeedSettings input{flex:1;min-width:130px}

body.referenceHUD.insideBody #toast{top:173px!important}@media(max-height:550px){body.referenceHUD.insideBody #toast{top:138px!important}}
/* Shared inventory, crafting and trading windows. */
body.referenceHUD :is(#inventoryDialog,#craftingDialog,#tradeDialog){position:fixed;inset:0;margin:auto;width:min(650px,calc(100vw - 110px));height:min(440px,69dvh);max-width:650px;max-height:75dvh;box-sizing:border-box;padding:14px;overflow:hidden;background:linear-gradient(135deg,#338cc8df,#136c9cdd);border:3px solid #e4f8ff;border-radius:15px;color:#f4fcff;box-shadow:0 10px 40px #05254155;backdrop-filter:blur(5px);font-family:Fredoka,sans-serif}
body.referenceHUD .cargoDialog[open]{display:flex!important;flex-direction:column;gap:10px}
body.referenceHUD .cargoDialog .dialogHead{display:flex;align-items:center;justify-content:space-between;margin:0;flex-shrink:0;padding:0;gap:12px}body.referenceHUD .cargoDialog .dialogHead h2{font-size:21px;margin:0;color:white}body.referenceHUD .cargoDialog .dialogHead button{width:32px;height:32px;min-height:32px;display:grid;place-items:center;border:0;background:none;font-size:28px;padding:0;color:white}
body.referenceHUD .cargoToolbar{display:flex;align-items:center;gap:10px;flex-shrink:0;min-width:0}body.referenceHUD .cargoToolbar input{flex:1;min-width:70px;border:2px solid #b8e8ff;border-radius:6px;background:#285fa59c;color:white;padding:8px 10px;font-size:13px}body.referenceHUD .cargoToolbar input::placeholder{color:#e4f7ff;opacity:.9}body.referenceHUD .cargoToolbar select{max-width:135px;padding:7px;border:1px solid #c6eeff;border-radius:5px;background:#246f9e;color:white;font-size:12px}
body.referenceHUD #inventoryCount{position:static;margin:0;font-size:12px;white-space:nowrap}body.referenceHUD .cargoGrid,body.referenceHUD #inventoryGrid{flex:1;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));grid-auto-rows:max-content;align-content:start;gap:9px;padding:3px 5px 9px;scrollbar-color:#c9f1ff #2277ac55;scrollbar-width:thin}
body.referenceHUD .itemCard{background:linear-gradient(150deg,#62b8df66,#2b89bc66);border:2px solid #bfefff;border-radius:8px;box-shadow:inset 0 0 0 2px #c7eeff20;margin:0}body.referenceHUD .itemCard.equipped,body.referenceHUD .itemCard.selected{border-color:#b6ff91;box-shadow:inset 0 0 0 2px #b2ff8033}body.referenceHUD .itemEquip{position:relative;min-height:118px;padding:8px 5px;justify-content:flex-end;gap:5px;color:white}body.referenceHUD .itemEquip>.itemThumb{display:block;width:72px;height:72px;object-fit:contain;position:static;transform:none;margin:auto}body.referenceHUD .itemEquip strong{font-size:12px;line-height:1.15;text-align:center;max-width:100%;font-weight:500}body.referenceHUD .stackQty{position:absolute;right:5px;top:4px;font-size:12px;text-shadow:0 1px 3px #16435c}body.referenceHUD #inventoryEmpty{margin:0;padding:0;text-align:center;font-size:13px;flex-shrink:0}
body.referenceHUD .craftCard{display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 6px;min-height:185px;text-align:center}body.referenceHUD .craftCard>.itemThumb{width:65px;height:65px;object-fit:contain;margin:0 auto}body.referenceHUD .craftCard h3{font-size:13px;font-weight:500;margin:0}body.referenceHUD .craftCard span{font-size:10px;margin:0;line-height:1.2}body.referenceHUD .craftCard .missing{color:#ffb2b2}body.referenceHUD .craftCard .enough{color:#bcffc9}body.referenceHUD .craftCard button{width:100%;padding:5px 3px;min-height:28px;font-size:11px;border:1px solid #d9f6ff;border-radius:5px;background:#2587bba8;color:white;margin:0}body.referenceHUD .craftCard button:disabled{opacity:.45}
body.referenceHUD .tradeItem{min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px;color:white}body.referenceHUD .tradeItem strong{font-size:12px}body.referenceHUD .tradeItem small{font-size:10px}body.referenceHUD .tradeFooter{flex-shrink:0;border-top:1px solid #bceaff88;padding-top:7px}body.referenceHUD .tradeFooter p{font-size:11px;margin:2px 0 5px}.tradeActions{display:flex;gap:5px;flex-wrap:wrap}.tradeActions button{flex:1;white-space:nowrap;padding:7px;border:1px solid #c9f3ff;border-radius:5px;background:#338cbac0;color:white;font-size:11px}
body.referenceHUD .proximityPrompt{position:fixed;transform:translate(-50%,-50%);z-index:17;display:flex;align-items:center;gap:7px;padding:5px 8px;background:#153b52cc;border:1px solid #c5f2ffbd;border-radius:7px;color:white;text-shadow:none;min-height:38px;font-size:11px;box-shadow:0 3px 12px #05253944;max-width:160px;white-space:nowrap}body.referenceHUD .proximityPrompt[hidden]{display:none!important}body.referenceHUD .proximityPrompt kbd{display:grid;place-items:center;font-size:13px;width:26px;height:26px;border:1px solid #bceaff;border-radius:5px;background:#3c86ad;color:white;flex-shrink:0}body.referenceHUD .proximityPrompt span{display:flex;flex-direction:column;text-align:left;gap:2px}body.referenceHUD .proximityPrompt small{font-size:9px;opacity:.8}body.referenceHUD .proximityPrompt b{font-size:11px;font-weight:500}
#terrainSettings{border:1px solid #a4e3ff66;border-radius:10px;padding:14px;margin:14px 0}#terrainSettings label{display:flex;align-items:center;flex-wrap:wrap;gap:10px}#terrainSettings input{flex:1;min-width:130px}#terrainSettings output{font-size:12px}#terrainSettings p{font-size:11px;margin-bottom:0}
@media(max-height:550px){body.referenceHUD :is(#inventoryDialog,#craftingDialog,#tradeDialog){height:67dvh;width:min(650px,calc(100vw - 125px));padding:9px 12px;gap:6px}body.referenceHUD .cargoDialog .dialogHead h2{font-size:17px}body.referenceHUD .cargoToolbar input{padding:5px 7px;font-size:12px}body.referenceHUD .itemEquip{min-height:96px}body.referenceHUD .itemEquip>.itemThumb{width:58px;height:58px}body.referenceHUD .cargoGrid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}body.referenceHUD .craftCard{min-height:170px}body.referenceHUD .tradeItem{min-height:104px}}

body.referenceHUD .craftCard h3{min-height:30px;display:flex;align-items:center;justify-content:center}body.referenceHUD .craftCard span{min-height:14px}

@media(pointer:coarse),(max-width:900px){body.referenceHUD :is(#inventoryDialog,#craftingDialog,#tradeDialog){width:min(430px,76vw);max-width:76vw;height:min(450px,78dvh);max-height:80dvh}body.referenceHUD .cargoGrid,body.referenceHUD #inventoryGrid{grid-template-columns:repeat(auto-fill,minmax(94px,1fr))}body.referenceHUD .cargoToolbar{flex-wrap:wrap;gap:5px}body.referenceHUD #inventoryCount{font-size:10px}body.referenceHUD .craftCard{min-height:170px}}

body[data-graphics="low"] canvas.gradedScene{filter:none}body[data-graphics="medium"] canvas.gradedScene{filter:brightness(1.06) saturate(1.03)}body[data-graphics="high"] canvas.gradedScene{filter:brightness(1.08) saturate(1.08) contrast(1.02)}

body.referenceHUD #warpOverlay,body.referenceHUD #warpFlash{display:none!important}#jumpStatus{position:fixed;left:50%;top:38%;transform:translate(-50%,-50%);text-align:center;z-index:25;pointer-events:none;max-width:80vw;text-shadow:0 2px 5px #091c35,0 0 20px #70c6f9}#jumpStatus[hidden],#warpTimerTrack[hidden]{display:none!important}#jumpTitle{font-size:clamp(25px,5vw,44px);margin:0;font-weight:600;color:white}#jumpSubtitle{font-size:clamp(12px,2vw,18px);margin:7px 0;color:#def4ff}#warpTimerTrack{position:relative;height:18px;margin:0 38px 6px;border:1px solid #dbf4ff;border-radius:5px;background:#123f60;overflow:hidden}#warpTimerFill{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,#63b9e5,#d1f4ff);transition:width .1s linear}#warpTimerText{position:relative;display:block;font-size:10px;line-height:16px;color:white;text-shadow:0 1px 2px #17384d}body.referenceHUD #gaugeWarpBtn{width:31px;height:30px;min-width:31px;padding:3px;display:grid;place-items:center;border:2px solid #d5f1ff;border-radius:6px;background:#4298c9aa}body.referenceHUD #gaugeWarpBtn[hidden]{display:none!important}body.referenceHUD #gaugeWarpBtn .uiIcon{width:21px;height:21px}.sessionActions{flex-wrap:wrap}body.referenceHUD.warping #shade{background:none;animation:none}body.referenceHUD.warping #navInfo{display:none!important}@media(max-height:480px){#jumpStatus{top:34%}#jumpTitle{font-size:27px}#jumpSubtitle{font-size:13px}}

#jumpCancel{pointer-events:auto;font-size:11px;padding:5px 12px;background:#17638499;border:1px solid #c8edff;border-radius:6px;margin-top:8px}body.referenceHUD #boostTimerTrack{margin-left:38px;margin-right:38px}.speedRange{margin-left:38px;margin-right:38px}

body.referenceHUD #settingsDialog #refreshGame{grid-column:1/-1}
#bodyTransition{position:fixed;inset:0;z-index:95;background:#06101c;opacity:0;pointer-events:none}@keyframes bodyFadeA{0%,12%{opacity:1}100%{opacity:0}}@keyframes bodyFadeB{0%,12%{opacity:1}100%{opacity:0}}

#boostBtn[hidden],#boostTimerTrack[hidden],#brakePad[hidden]{display:none!important}

body.referenceHUD #boostTimerTrack{width:140px;max-width:50vw;height:14px;margin:5px auto 0}#boostTimerText{font-size:8px;line-height:12px}

/* Scale each control group independently; retain its bottom/side anchor and drag position. */
body.referenceHUD #flightPad{transform-origin:bottom left;scale:var(--ship-left-scale,1)}
body.referenceHUD #flightRight{transform-origin:bottom right;scale:var(--ship-right-scale,1)}

#terrainTransitionFade{position:fixed;inset:0;z-index:96;background:#000;opacity:0;pointer-events:none}

body.referenceHUD #warpFlash{display:block!important;background:#fff;z-index:50}
