/* Existing Astraterris palette, refractive control surfaces; no changes to the left flight stick. */
#hud .hud-controls .hud-btn,#hud .corner-bottom-right .hud-btn,#hud .corner-bottom-right .primary-btn,#hud .sp-slot{color:#d5f6ff;background:linear-gradient(145deg,#e4faff1f 0%,#6bb6d312 28%,#0b2d4159 60%,#0318278c 100%);border:1px solid #b5ecff5c;box-shadow:inset 0 1px 1px #f1fcff4d,inset 0 -7px 16px #0d314236,0 5px 18px #020b163b;-webkit-backdrop-filter:blur(9px) saturate(140%);backdrop-filter:blur(9px) saturate(140%);text-shadow:0 1px 4px #00132199;transition:background .14s,border-color .14s,box-shadow .14s}
#hud .hud-controls .hud-btn:hover,#hud .corner-bottom-right .hud-btn:hover,#hud .corner-bottom-right .primary-btn:hover{border-color:#cff8ffa3;background:linear-gradient(145deg,#e4faff2c,#4ab7d81c 40%,#09263c80)}
#hud .corner-bottom-right .held,#hud .corner-bottom-right .active{border-color:#a8f2ff;box-shadow:inset 0 1px 2px #fff8,inset 0 0 18px #42d4ff33,0 0 18px #45d9ff30;background:linear-gradient(145deg,#b8efff3b,#258cbf45 50%,#0c2b4177)}
.roll-control{display:none}.roll-symbol.mirrored{transform:scaleX(-1)}
.touch-controls .corner-bottom-right{width:220px;height:246px;transform-origin:bottom right}
.touch-controls .mini-action-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px!important;min-height:0;font-size:8px;letter-spacing:.65px;border-radius:50%;overflow:hidden}
.touch-controls .mini-action-btn:before{content:'';position:absolute;inset:3px;border:1px solid #b2e9f221;border-bottom-color:#3c78983d;border-radius:inherit;pointer-events:none}
.touch-controls .mini-action-btn .icon{display:block;width:21px;height:21px;filter:drop-shadow(0 0 5px #4fcfff35)}
.touch-controls .mini-action-btn span{position:relative;line-height:1;font-weight:700}
.touch-controls #btn-fire-laser{left:70px;right:auto;top:110px;bottom:auto;width:80px;height:80px;border-width:1px;border-color:#b6f2ffb3;color:#e5fbff;background:radial-gradient(ellipse at 35% 12%,#e7fbff55,transparent 45%),linear-gradient(150deg,#7ddffb38,#166d9840 55%,#092a3b85);box-shadow:inset 0 1px 2px #fff9,inset 0 -12px 20px #12536c36,0 0 25px #49d6ff17;font-size:9px;gap:7px}
.touch-controls #btn-fire-laser:after{content:'';position:absolute;inset:7px;border:1px solid #84dff54d;border-radius:50%;pointer-events:none}
.touch-controls #btn-fire-laser .icon{width:28px;height:28px;color:#b0f5ff}
.touch-controls #btn-turbo-speed{left:12px;right:auto;top:190px;bottom:auto;width:56px;height:56px;color:#f4d798;border-color:#e9d2a85c;font-size:7.5px;gap:4px}
.touch-controls #btn-turbo-speed .icon{width:20px;height:20px;color:#ffe0a4}
.touch-controls #btn-brake{left:152px;right:auto;top:190px;bottom:auto;width:56px;height:56px;font-size:7.5px;gap:4px}
.touch-controls #btn-brake .icon{width:20px;height:20px}
.touch-controls .roll-control{display:flex;position:absolute;top:65px;bottom:auto;width:50px;height:50px;touch-action:none;font-size:7px;letter-spacing:.3px;pointer-events:auto}
.touch-controls #btn-roll-left{left:18px;right:auto}.touch-controls #btn-roll-right{left:152px;right:auto}
.touch-controls .roll-control .icon{width:22px;height:22px}
.touch-controls .mini-sp-dock{left:0;right:auto;top:0;bottom:auto;display:grid;grid-template-columns:repeat(3,1fr);width:220px;height:52px;gap:0;padding:0 3px;border:1px solid #b7ecff50;border-radius:17px;background:linear-gradient(150deg,#e1f8ff19,#0b2a3d55 45%,#041e3082);box-shadow:inset 0 1px 1px #f7fdff4d,0 6px 20px #020d1b26;-webkit-backdrop-filter:blur(10px) saturate(135%);backdrop-filter:blur(10px) saturate(135%);overflow:hidden}
#hud .mini-sp-dock .sp-slot{display:grid;grid-template-columns:24px 1fr;grid-template-rows:22px 12px;column-gap:4px;row-gap:1px;width:auto;height:50px;min-height:44px;padding:7px 6px;background:transparent;border:0;border-right:1px solid #bce8ff21;border-radius:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#hud .mini-sp-dock .sp-slot:last-child{border-right:0}
.touch-controls .sp-slot .sp-icon{grid-column:1;grid-row:1;line-height:1}.touch-controls .sp-icon>.icon{width:22px;height:22px}
.touch-controls .sp-slot .sp-charges{grid-column:2;grid-row:1;text-align:right;font-size:12px;font-variant-numeric:tabular-nums;color:#ecd299}
.touch-controls .sp-slot .sp-name{display:block;grid-column:1/-1;grid-row:2;text-align:left;font-size:7.5px;line-height:1;letter-spacing:.35px;color:#d3edf6}
#hud .mini-sp-dock .sp-slot.empty{opacity:.58}#hud .mini-sp-dock .sp-slot.ready{background:#78dfff12}#hud .mini-sp-dock .sp-slot.active-buff{background:#f5cc7230;box-shadow:inset 0 0 0 1px #f5d39199}
.touch-controls #btn-mobile-fullscreen{right:calc(max(12px,env(safe-area-inset-right)) + 100px);top:max(10px,env(safe-area-inset-top));background:linear-gradient(145deg,#e4faff1f,#0b2d4177);border-color:#b5ecff5c;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);box-shadow:inset 0 1px 1px #f1fcff4d}
.touch-controls #boss-hud{left:180px;transform:none;width:calc(100% - 440px);max-width:360px}
.chapter-thumb{height:84px;flex:0 0 84px;overflow:hidden;border:1px solid #76a6bc4d;border-radius:7px 7px 17px 7px;background:#061522}.chapter-thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 82%}.touch-controls .chapter-thumb{height:51px;flex-basis:51px;border-radius:5px 5px 12px 5px}
.station-guide.home-guide{display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:0;padding:0;box-shadow:none;transform:translate(-50%,-100%);color:#c8f2ff}
.home-pin{position:relative;width:40px;height:48px;background:#b5e6f2b3;clip-path:polygon(50% 0,81% 8%,100% 30%,94% 63%,50% 100%,6% 63%,0 30%,19% 8%)}.home-pin:before{content:'';position:absolute;inset:1px;background:linear-gradient(145deg,#45768ad9,#071e31e8 60%);clip-path:inherit}.home-pin img{position:absolute;width:34px;height:32px;left:3px;top:3px;object-fit:contain;filter:drop-shadow(0 0 4px #39c9ff55)}.home-guide-label{font:600 8px Rajdhani,sans-serif;letter-spacing:1px;white-space:nowrap;text-shadow:0 1px 5px #000,0 0 8px #000}.home-guide .station-guide-arrow{position:absolute;right:-12px;top:10px}.home-guide .station-guide-arrow svg{width:13px;height:13px;fill:currentColor}
@media(max-height:360px) and (orientation:landscape){.touch-controls .corner-bottom-right{transform:scale(.88)}.touch-controls .mission-flight-brief{left:176px;transform:none;width:calc(100% - 420px);min-width:0;max-width:none;padding:0;text-align:left}.touch-controls .mission-flight-brief strong{font-size:14px}.touch-controls .mission-flight-brief span{font-size:10px;-webkit-line-clamp:2}.touch-controls .mission-flight-brief:before{left:0;right:0}.touch-controls #boss-hud{top:81px}}
@media(prefers-reduced-motion:reduce){#hud .hud-btn,#hud .primary-btn,#hud .sp-slot{transition:none}}
.next-chapter-card{padding:10px 12px;border:1px solid #56788c;border-radius:5px;background:#112c3f80;color:#b9d9e5;font:600 12px Rajdhani,sans-serif;letter-spacing:1.3px}

.station-guide.home-guide.offscreen{transform:translate(-50%,-50%);gap:0}.home-guide.offscreen .home-pin{width:26px;height:31px}.home-guide.offscreen .home-pin img{width:22px;height:22px;left:2px;top:1px}.home-guide.offscreen .home-guide-label{display:none}.home-guide.offscreen .station-guide-arrow{top:7px;right:-12px}
.touch-controls #btn-turbo-speed,.touch-controls #btn-brake{font-size:8.5px}.touch-controls .roll-control{font-size:8px}.touch-controls .sp-slot .sp-name{font-size:8px}
