.space-station{position:absolute;transform:translate(-50%,-50%);width:320px;padding:0;border:0;background:none;color:#e7faff;text-align:center;filter:drop-shadow(0 15px 10px #000b);z-index:1;touch-action:none}
.space-station svg{width:320px;height:210px;display:block;pointer-events:none}
.space-station .station-name{display:block;margin:-12px 15px 0;padding:9px 12px;border:1px solid #548da3;border-radius:7px;background:linear-gradient(#0d2d42,#03111e);font-size:20px;font-weight:700;letter-spacing:1px;box-shadow:0 0 16px #0a8baf33}
.space-station .station-name small{color:#ffc86f;margin-left:8px;font-size:15px;letter-spacing:0}
.space-station:hover svg,.space-station[aria-expanded=true] svg{filter:brightness(1.2) drop-shadow(0 0 15px #61d9f799)}
.space-station.station-tier-mid .station-name{border-color:#6fd6e8;box-shadow:0 0 22px #25b8d955}
.space-station.station-tier-high .station-name{border-color:#9be9ff;box-shadow:0 0 30px #46d5ff77}
.station-energy-ring{animation:station-ring-spin 40s linear infinite;transform-origin:180px 150px}
@keyframes station-ring-spin{to{transform:rotate(360deg)}}
.station-shield{animation:station-shield-pulse 4.5s ease-in-out infinite}
@keyframes station-shield-pulse{50%{stroke-opacity:.14}}
.station-beacon{animation:station-beacon-blink 2.2s ease-in-out infinite;transform-origin:180px 41px}
@keyframes station-beacon-blink{50%{opacity:.35}}
.upgrade-costs{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 4px}
.upgrade-costs span{border:1px solid #336c8c;border-radius:7px;background:#0b2b43;padding:6px 10px;color:#a9cddd;font-size:12px}
.upgrade-costs b{display:block;color:#ffe2a8;font-size:15px}
.station-action-content h4{color:#bcf0ff;font-size:13px;letter-spacing:2px;margin:18px 0 4px}
.station-action-content .upgrade{width:100%;padding:12px;border:1px solid #57cfe8;border-radius:9px;background:linear-gradient(#14577a,#0a2f4c);color:#d9f7ff;font-size:15px;font-weight:700;cursor:pointer}
.station-action-content .upgrade:hover:not([disabled]){background:linear-gradient(#1a6f97,#0e3d5f);border-color:#a5ecff}
.station-action-content .upgrade[disabled]{opacity:.55;cursor:not-allowed}
.station-action-content .station-tiers{font-size:12px;color:#7fa9bd;border-left:3px solid #4d8ba6;padding:7px 11px;background:#0a2436}
.station-radial{position:absolute;width:460px;height:460px;transform-origin:center;z-index:5;pointer-events:none}
/* The ring itself scales via transform (openMenu); these rules shrink text only. */
@media(max-width:700px){.station-radial button{min-height:64px;font-size:11px}}
@media(max-width:420px){.station-radial button{min-height:58px;font-size:10px}}
.station-radial[hidden]{display:none}
/* Scaled-down ring on small or landscape screens: icon-first buttons that stay tappable. */
.station-radial.station-radial-compact button{min-width:64px;padding:6px 4px;font-size:0}
.station-radial.station-radial-compact button span{font-size:24px;margin-bottom:2px}
.station-orbit{position:absolute;inset:50px;border:1px solid #71bce655;border-radius:50%;box-shadow:0 0 0 18px #2a94b808,0 0 0 48px #2a94b805,inset 0 0 28px #36bce610;background:radial-gradient(circle,transparent 49%,#173e5322 65%,transparent 70%)}
.station-orbit::after{content:'';position:absolute;inset:9px;border:1px dashed #61d9ff33;border-radius:50%}
.station-radial button{position:absolute;width:108px;min-height:60px;transform:translate(-50%,-50%);padding:7px 6px;border:1px solid #70c3e9;border-radius:13px;color:#def7ff;background:linear-gradient(145deg,#164f6aee,#061d35f5);box-shadow:0 5px 16px #0009,inset 0 1px #a7e9ff22;font:600 12px Segoe UI,Arial,sans-serif;text-align:center;pointer-events:auto;cursor:pointer}
.station-radial button span{display:block;font-size:22px;line-height:1.1;color:#77e2ff;margin-bottom:4px}
.station-radial button:hover,.station-radial button:focus-visible{background:linear-gradient(145deg,#197eaa,#12365c);border-color:#c1f5ff;box-shadow:0 0 20px #46d5ff77;outline:2px solid #a5ecff;outline-offset:2px}
.station-radial button[data-station-action=cancel]{border-color:#bf8a5d;color:#ffdbb0}
.station-radial button[data-station-action=cancel] span{color:#ffc27e}
.station-action-dialog{width:min(650px,94vw)}
.station-action-content{padding:25px;color:#a9cddd;line-height:1.7}
.station-action-content h3{font-size:20px;color:#bcf0ff;margin:0 0 15px}
.station-action-content .station-level{display:inline-block;border:1px solid #336c8c;background:#0b2b43;color:#ffcc84;padding:6px 13px;border-radius:7px;font-weight:700;margin-bottom:10px}
.station-action-content .station-placeholder{border-left:3px solid #d9a458;padding:10px 15px;background:#102c40;font-size:13px}
.station-dialog-footer{padding:0 25px 24px}
.station-dialog-footer button{background:#164b68}
@media(prefers-reduced-motion:reduce){.station-energy-ring,.station-shield,.station-beacon{animation:none}}
@media(prefers-reduced-motion:no-preference){.station-radial button{transition:background .15s,box-shadow .15s}}
