:root {
  color-scheme: dark;
  --cyan: #28c9ff;
  --cyan-soft: #80e4ff;
  --panel: rgba(5, 13, 20, 0.78);
  --line: rgba(130, 210, 239, 0.24);
  --muted: rgba(226, 240, 247, 0.58);
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-right: max(22px, env(safe-area-inset-right));
  --safe-bottom: max(16px, env(safe-area-inset-bottom));
  --safe-left: max(22px, env(safe-area-inset-left));
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #020507; }
body { font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif; user-select: none; -webkit-user-select: none; }
button { font: inherit; }

#game, #space-canvas { position: fixed; inset: 0; width: 100%; height: 100%; }
#game { overflow: hidden; background: radial-gradient(circle at 50% 30%, #08131d, #020507 68%); }
#space-canvas { display: block; touch-action: none; cursor: default; }

.glass {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(9, 20, 29, 0.90), var(--panel));
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 16px 55px rgba(0,0,0,.28);
  backdrop-filter: blur(15px) saturate(1.15);
  -webkit-backdrop-filter: blur(15px) saturate(1.15);
}

.loading { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; text-align: center; background: #02070b; transition: opacity .7s ease, visibility .7s; }
.loading.ready { opacity: 0; visibility: hidden; }
.loading-mark { color: var(--cyan); font-size: 74px; filter: drop-shadow(0 0 24px var(--cyan)); animation: pulse 1.7s infinite; }
.loading h1 { margin: 14px 0 5px; letter-spacing: .22em; font-size: clamp(22px, 3vw, 38px); }
.loading p { color: var(--muted); letter-spacing: .12em; font: 700 12px ui-monospace, monospace; }
.loading-track { width: min(360px, 70vw); height: 5px; margin: 20px auto; border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.1); }
.loading-track span { display: block; width: 2%; height: 100%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); transition: width .25s; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.94); } }

.landing[hidden] { display: none; }
.landing {
  position: fixed;
  inset: 0;
  z-index: 90;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 48%, rgba(35, 124, 164, .18), transparent 28%),
    linear-gradient(90deg, rgba(1, 5, 9, .97) 0%, rgba(1, 7, 12, .90) 42%, rgba(1, 8, 13, .42) 72%, rgba(1, 4, 7, .78) 100%);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.76,.22,1), filter .7s ease;
}
.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 2, 5, .62) 100%);
  pointer-events: none;
}
.landing::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(transparent 8%, var(--cyan) 48%, transparent 92%);
  box-shadow: 0 0 32px rgba(40,201,255,.5);
}
.landing.departing { opacity: 0; transform: scale(1.035); filter: blur(8px); pointer-events: none; }
body.landing-active .labels,
body.landing-active .telemetry,
body.landing-active .help-pill,
body.landing-active .worlds-button,
body.landing-active .primary-action,
body.landing-active .toast { opacity: 0; pointer-events: none; }

.landing-header {
  position: absolute;
  z-index: 3;
  top: max(32px, env(safe-area-inset-top));
  left: clamp(24px, 5.5vw, 88px);
  right: clamp(24px, 5.5vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 850 11px ui-monospace, monospace;
  letter-spacing: .18em;
}
.landing-brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.landing-brand-mark { position: relative; width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid rgba(124,221,255,.28); border-radius: 50%; }
.landing-brand-mark::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffd267; box-shadow: 0 0 15px #ffb63c; }
.landing-brand-mark::after { content: ""; position: absolute; width: 38px; height: 12px; border: 1px solid rgba(89,210,255,.75); border-radius: 50%; transform: rotate(-18deg); }
.landing-live { display: flex; align-items: center; gap: 9px; color: rgba(218,238,247,.6); }
.landing-live i { width: 6px; height: 6px; border-radius: 50%; background: #4df6b3; box-shadow: 0 0 10px #4df6b3; animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .38; transform: scale(.72); } }

.landing-content {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 7vw, 112px);
  top: 50%;
  width: min(760px, 56vw);
  transform: translateY(-47%);
}
.landing-kicker { margin: 0 0 22px; color: #7ae2ff; font: 850 clamp(9px, .83vw, 13px) ui-monospace, monospace; letter-spacing: .18em; }
.landing h1 { margin: 0; font-size: clamp(58px, 8.2vw, 132px); line-height: .82; letter-spacing: -.055em; text-transform: uppercase; }
.landing h1 span, .landing h1 strong { display: block; }
.landing h1 span { font-weight: 900; color: #f7fbfd; text-shadow: 0 5px 40px rgba(0,0,0,.48); }
.landing h1 strong { margin-top: .11em; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px rgba(151,225,249,.72); text-shadow: 0 0 38px rgba(40,201,255,.12); }
.landing-copy { max-width: 660px; margin: 30px 0 0; color: rgba(226,239,246,.72); font: 520 clamp(14px, 1.18vw, 18px)/1.65 ui-rounded, system-ui; letter-spacing: .01em; }
.landing-actions { display: flex; align-items: center; gap: 13px; margin-top: 34px; }
.landing-actions button { min-height: 54px; border-radius: 4px; cursor: pointer; font: 900 11px ui-monospace, monospace; letter-spacing: .12em; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.landing-launch { display: flex; align-items: center; gap: 34px; padding: 0 11px 0 22px; border: 1px solid rgba(97,220,255,.78); color: #041118; background: linear-gradient(105deg, #8be9ff, #2bc7f9); box-shadow: 0 8px 34px rgba(22,176,226,.22); }
.landing-launch i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 2px; color: white; background: rgba(0,28,40,.85); font: normal 20px system-ui; }
.landing-destinations { padding: 0 22px; border: 1px solid rgba(164,211,230,.26); color: rgba(239,248,251,.78); background: rgba(6,19,27,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.landing-actions button:hover, .landing-actions button:focus-visible { outline: 0; transform: translateY(-2px); border-color: #a6ecff; box-shadow: 0 12px 38px rgba(28,194,245,.28); }
.landing-facts { display: flex; gap: clamp(28px, 4vw, 64px); margin: 38px 0 0; }
.landing-facts div { display: grid; gap: 4px; padding-left: 12px; border-left: 1px solid rgba(92,207,244,.35); }
.landing-facts dt { color: #eefaff; font: 850 20px ui-monospace, monospace; }
.landing-facts dd { margin: 0; color: rgba(207,228,237,.48); font: 800 9px ui-monospace, monospace; letter-spacing: .12em; }

.landing-orbits { position: absolute; z-index: 0; top: 50%; right: -10vw; width: min(71vw, 1080px); aspect-ratio: 1; transform: translateY(-50%) rotate(-12deg) scaleY(.48); opacity: .64; }
.landing-orbits::before { content: ""; position: absolute; inset: 5%; border-radius: 50%; background: radial-gradient(circle, rgba(255,194,82,.16), transparent 16%, rgba(31,153,197,.05) 46%, transparent 66%); filter: blur(8px); }
.landing-orbits b { position: absolute; z-index: 2; left: 50%; top: 50%; width: 32px; height: 32px; transform: translate(-50%,-50%) scaleY(2.08); border-radius: 50%; background: #ffd15a; box-shadow: 0 0 24px #ffb628, 0 0 100px rgba(255,149,29,.58); }
.landing-orbits i { position: absolute; left: 50%; top: 50%; width: var(--orbit); aspect-ratio: 1; transform: translate(-50%,-50%); border: 1px solid rgba(111,207,239,.23); border-radius: 50%; animation: orbitSpin var(--speed) linear infinite; }
.landing-orbits i::after { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--planet); box-shadow: 0 0 12px var(--planet); transform: scaleY(2.08); }
@keyframes orbitSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.landing-footer { position: absolute; z-index: 3; left: clamp(24px, 5.5vw, 88px); right: clamp(24px, 5.5vw, 88px); bottom: max(28px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; color: rgba(212,231,239,.42); font: 800 9px ui-monospace, monospace; letter-spacing: .16em; }
.landing-footer span:last-child { display: flex; align-items: center; gap: 10px; }
.landing-footer i { width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

.mission-card { display: none !important; position: fixed; z-index: 8; top: var(--safe-top); left: 50%; transform: translateX(-50%); padding: 13px 30px 11px; min-width: 260px; text-align: center; pointer-events: none; }
.mission-card strong { display: block; font-size: clamp(18px, 2vw, 28px); letter-spacing: .10em; }
.mission-card span { display: block; margin-top: 4px; color: var(--muted); font: 800 10px ui-monospace, monospace; letter-spacing: .16em; }

.minimap { position: fixed; z-index: 8; top: var(--safe-top); left: var(--safe-left); width: min(36vw, 520px); min-width: 340px; overflow: hidden; pointer-events: none; }
.minimap header { display: flex; justify-content: space-between; padding: 14px 16px 0; font: 900 14px ui-monospace, monospace; letter-spacing: .09em; }
.minimap header span { color: var(--cyan); }
#map-canvas { width: 100%; height: 235px; display: block; }
.minimap footer { margin: 0 12px 12px; border: 1px solid rgba(40,201,255,.45); border-radius: 9px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.minimap footer i { width: 13px; height: 13px; border: 2px solid white; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.minimap footer span { display: grid; font: 800 12px ui-monospace, monospace; letter-spacing: .08em; }
.minimap footer strong { color: var(--cyan); }
.minimap footer small { margin-top: 2px; color: var(--muted); }

.telemetry {
  --telemetry-label-size: 9px;
  --telemetry-value-size: clamp(12px, 1.3vw, 18px);
  position: fixed;
  z-index: 8;
  top: var(--safe-top);
  right: var(--safe-right);
  width: min(29vw, 390px);
  padding: 10px 15px;
  pointer-events: none;
}
.reading { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.10); }
.reading:last-child { border-bottom: 0; }
.reading span { display: block; color: var(--muted); font: 900 var(--telemetry-label-size) ui-monospace, monospace; letter-spacing: .08em; }
.reading strong { display: block; margin-top: 2px; font: 850 var(--telemetry-value-size)/1.25 ui-monospace, monospace; }
.reading small { display: block; margin-top: 3px; color: rgba(255,255,255,.72); font: 750 var(--telemetry-value-size)/1.25 ui-monospace, monospace; }
.reading.accent strong { color: var(--cyan); }
#moons { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .35em; pointer-events: auto; }
.moon-link { border: 0; margin: 0; padding: 0; color: rgba(255,255,255,.82); background: none; cursor: pointer; font: inherit; line-height: inherit; text-decoration: underline; text-decoration-color: rgba(40,201,255,.38); text-underline-offset: .18em; transition: color .15s, text-decoration-color .15s, text-shadow .15s; }
.moon-link:hover, .moon-link:focus-visible { outline: none; color: var(--cyan); text-decoration-color: var(--cyan); text-shadow: 0 0 10px rgba(40,201,255,.35); }
.moon-link:active { transform: translateY(1px); }
.moon-separator, .moon-name { color: rgba(255,255,255,.58); }
.reading #moons .other-moons-label { flex: 0 0 100%; margin-top: .45em; color: var(--muted); font-size: var(--telemetry-label-size); }
.world-heading { padding: 9px 0 11px; }
.world-heading strong { margin-top: 3px; font: 900 var(--telemetry-value-size)/1.25 ui-rounded, "SF Pro Rounded", system-ui, sans-serif; letter-spacing: .10em; }
.world-heading small { color: var(--muted); font-size: var(--telemetry-value-size); letter-spacing: .06em; }
.reading-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.10); }
.reading-grid .reading { border: 0; }

.labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.sky-label { position: absolute; transform: translate(-50%, -100%); padding: 5px 8px; border-radius: 6px; border: 0; color: #73ddff; background: rgba(0,8,12,.45); text-shadow: 0 0 9px #001a24, 0 0 16px #001a24; font: 850 clamp(12px, 1.4vw, 22px) ui-rounded, system-ui; letter-spacing: .04em; white-space: nowrap; pointer-events: auto; cursor: pointer; transition: color .15s, opacity .15s, transform .15s; }
.sky-label:hover, .sky-label.targeted { color: white; background: rgba(0,116,158,.65); transform: translate(-50%, -100%) scale(1.09); }
.sky-label.star { color: #ffd55d; font-size: clamp(15px, 1.7vw, 26px); }
.sky-label.moon { font-size: clamp(10px, 1.05vw, 16px); color: #b9ecff; }

.reticle { position: fixed; z-index: 7; left: 50%; top: 50%; width: 100px; height: 100px; transform: translate(-50%,-50%); border: 3px dashed rgba(72,210,255,.86); border-radius: 50%; filter: drop-shadow(0 0 6px rgba(40,201,255,.45)); pointer-events: none; }
.reticle span { position: absolute; background: var(--cyan); }
.reticle span:nth-child(1) { width: 16px; height: 2px; left: 40px; top: 48px; }
.reticle span:nth-child(2) { width: 2px; height: 16px; left: 47px; top: 41px; }
.reticle b { position: absolute; inset: 43px; border-radius: 50%; background: white; box-shadow: 0 0 10px var(--cyan); }
.target-readout { position: fixed; z-index: 8; left: 50%; top: calc(50% + 60px); transform: translateX(-50%); color: var(--cyan); background: rgba(0,5,8,.72); padding: 6px 14px; border-radius: 8px; font: 900 11px ui-monospace, monospace; letter-spacing: .08em; pointer-events: none; }

.drive { position: fixed; z-index: 8; right: var(--safe-right); bottom: calc(var(--safe-bottom) + 56px); display: flex; gap: 12px; padding: 14px; height: 190px; pointer-events: none; }
.drive-track { position: relative; width: 34px; height: 100%; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,.12); }
.drive-track span { position: absolute; inset: auto 0 0; height: 100%; border-radius: 18px; background: linear-gradient(#46d8ff,#109ce6); box-shadow: 0 0 16px #10aeea; transition: height .3s; }
.drive > div:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.drive small { color: var(--muted); font: 900 10px/1.2 ui-monospace, monospace; white-space: pre-line; }
.drive strong { margin-top: 8px; font-size: 26px; }
.drive em { margin-top: auto; color: var(--cyan); font: normal 900 9px ui-monospace, monospace; }
.drive, .reticle, .target-readout { display: none !important; }

.help-pill { position: fixed; z-index: 8; left: 50%; bottom: var(--safe-bottom); transform: translateX(-50%); padding: 8px 19px; border: 1px solid rgba(255,255,255,.16); border-radius: 30px; background: rgba(0,5,8,.72); color: rgba(255,255,255,.72); font: 800 10px ui-monospace, monospace; letter-spacing: .06em; white-space: nowrap; pointer-events: none; }
.help-pill b { color: var(--cyan); }
.touch-help { display: none; }
.worlds-button, .primary-action { position: fixed; z-index: 10; border: 1px solid rgba(40,201,255,.45); color: white; background: rgba(4,23,32,.84); cursor: pointer; font: 900 11px ui-monospace, monospace; letter-spacing: .09em; }
.worlds-button { left: var(--safe-left); bottom: var(--safe-bottom); border-radius: 22px; padding: 11px 17px; }
.primary-action { left: 50%; top: calc(50% + 105px); transform: translateX(-50%); padding: 9px 14px; display: none; }
.worlds-button:hover, .primary-action:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(40,201,255,.25); }

.system-map[hidden] { display: none; }
.system-map { position: fixed; inset: 0; z-index: 70; overflow: hidden; background: radial-gradient(circle at 50% 52%, #07131d 0, #02070b 62%, #010305 100%); }
#system-map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.system-map-header { position: absolute; z-index: 2; top: var(--safe-top); left: var(--safe-left); right: var(--safe-right); display: grid; grid-template-columns: 1fr auto 52px; align-items: center; gap: 24px; padding: 14px 16px 13px 20px; }
.system-map-header span { color: var(--cyan); font: 900 13px ui-monospace, monospace; letter-spacing: .13em; }
.system-map-header h2 { margin: 3px 0 0; font-size: clamp(22px, 2.5vw, 36px); letter-spacing: .08em; }
.system-map-time { display: grid; justify-items: end; }
.system-map-time strong { font: 850 17px ui-monospace, monospace; }
.system-map-time small { margin-top: 3px; color: var(--muted); font: 800 11px ui-monospace, monospace; letter-spacing: .10em; }
#close-system-map { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: white; background: rgba(255,255,255,.06); font-size: 30px; cursor: pointer; }
#close-system-map:hover { border-color: var(--cyan); background: rgba(40,201,255,.16); }
.system-map-legend { position: absolute; z-index: 2; left: var(--safe-left); bottom: calc(var(--safe-bottom) + 55px); width: 390px; display: grid; gap: 10px; padding: 15px 17px; color: var(--muted); font: 800 12px ui-monospace, monospace; letter-spacing: .06em; pointer-events: none; }
.system-map-legend span { display: flex; align-items: center; gap: 9px; }
.system-map-legend i { width: 18px; height: 8px; display: inline-block; flex: none; }
.orbit-key { border-top: 1px solid rgba(100,205,245,.75); }
.world-key { width: 9px !important; height: 9px !important; border-radius: 50%; background: #ffc34b; box-shadow: 0 0 7px #ffc34b; }
.viewpoint-key { width: 10px !important; height: 10px !important; border: 2px solid white; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.system-map-legend strong { margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); color: var(--cyan); }
.system-map-help { position: absolute; z-index: 2; left: 50%; bottom: var(--safe-bottom); transform: translateX(-50%); padding: 9px 18px; color: rgba(255,255,255,.76); font: 850 12px ui-monospace, monospace; letter-spacing: .06em; pointer-events: none; white-space: nowrap; }
.map-zoom-controls { position: absolute; z-index: 3; top: 105px; right: var(--safe-right); display: grid; grid-template-columns: 48px 72px 48px; overflow: hidden; }
.map-zoom-controls button { min-height: 46px; border: 0; border-right: 1px solid var(--line); color: white; background: rgba(4,18,27,.88); cursor: pointer; font: 900 20px ui-monospace, monospace; }
.map-zoom-controls button:last-child { border-right: 0; }
.map-zoom-controls button:hover, .map-zoom-controls button:focus-visible { outline: 0; color: var(--cyan); background: rgba(40,201,255,.15); }
#map-zoom-level { color: var(--cyan); font-size: 14px; }

.world-menu[hidden] { display: none; }
.world-menu { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.world-menu-backdrop { position: absolute; inset: 0; background: rgba(0,4,8,.80); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.world-menu-panel { position: relative; width: min(900px, 88vw); height: min(780px, 88vh); padding: 28px; display: flex; flex-direction: column; }
.world-menu-panel > header { display: flex; align-items: center; justify-content: space-between; }
.world-menu-panel header span { color: var(--cyan); font: 900 11px ui-monospace, monospace; letter-spacing: .14em; }
.world-menu-panel h2 { margin: 4px 0 0; font-size: clamp(26px,4vw,48px); letter-spacing: .04em; }
#close-menu { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); color: white; background: rgba(255,255,255,.06); font-size: 30px; cursor: pointer; }
.world-menu-panel > p { margin: 13px 0 18px; color: var(--muted); max-width: 760px; }
.world-list { overflow: auto; padding: 2px 8px 16px 2px; scrollbar-color: var(--cyan) rgba(255,255,255,.08); }
.world-row { width: 100%; min-height: 82px; margin: 7px 0; padding: 10px 14px; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: white; background: rgba(255,255,255,.035); text-align: left; cursor: pointer; }
.world-row.moon { width: calc(100% - 36px); margin-left: 36px; }
.world-row:not(.selected):hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.035); }
.world-row:not(.selected):hover strong { color: var(--cyan-soft); }
.world-row:focus { outline: none; }
.world-row:focus-visible { outline: 1px dashed rgba(213,242,252,.66); outline-offset: 2px; }
.world-row.selected, .world-row.selected:hover { border-color: var(--cyan); background: rgba(20,167,217,.18); box-shadow: inset 4px 0 var(--cyan); }
.world-row img { width: 62px; height: 62px; object-fit: cover; border-radius: 50%; box-shadow: inset -10px -4px 15px black, 0 0 15px rgba(255,255,255,.12); }
.world-row div { display: grid; }
.world-row strong { font-size: 19px; letter-spacing: .03em; }
.world-row small { margin-top: 3px; color: var(--muted); font: 750 10px ui-monospace, monospace; }
.world-row em { color: var(--cyan); font: normal 900 10px ui-monospace, monospace; }
.world-menu-panel > footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.10); color: var(--muted); font: 800 9px ui-monospace, monospace; }

.toast { position: fixed; z-index: 60; left: 50%; top: 21%; transform: translate(-50%,-12px); opacity: 0; padding: 11px 18px; border: 1px solid var(--line); border-radius: 9px; background: rgba(3,15,22,.9); color: var(--cyan); font: 900 12px ui-monospace, monospace; letter-spacing: .06em; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 900px) {
  .landing-content { width: min(680px, calc(100vw - 48px)); left: 24px; }
  .landing-orbits { right: -42vw; width: 120vw; opacity: .34; }
  .landing h1 { font-size: clamp(58px, 13vw, 110px); }
  .minimap { width: 320px; min-width: 0; }
  #map-canvas { height: 165px; }
  .telemetry { width: 260px; }
  .telemetry .reading-grid, #moons-reading { display: none; }
  .mission-card { top: auto; bottom: 58px; }
  .help-pill { display: none; }
  .drive { height: 150px; bottom: var(--safe-bottom); }
  .system-map-time { display: none; }
  .system-map-header { grid-template-columns: 1fr 46px; }
}

@media (max-width: 620px) {
  .landing-header { top: 22px; left: 20px; right: 20px; }
  .landing-live { display: none; }
  .landing-content { top: 48%; left: 20px; width: calc(100vw - 40px); transform: translateY(-50%); }
  .landing-kicker { margin-bottom: 17px; line-height: 1.5; }
  .landing h1 { font-size: clamp(49px, 17vw, 76px); line-height: .86; }
  .landing-copy { margin-top: 24px; font-size: 14px; line-height: 1.55; }
  .landing-actions { align-items: stretch; flex-direction: column; margin-top: 27px; }
  .landing-actions button { width: 100%; }
  .landing-launch { justify-content: space-between; }
  .landing-facts { gap: 18px; justify-content: space-between; margin-top: 26px; }
  .landing-facts div { padding-left: 8px; }
  .landing-facts dt { font-size: 16px; }
  .landing-facts dd { max-width: 76px; font-size: 7px; line-height: 1.35; }
  .landing-footer { left: 20px; right: 20px; bottom: 18px; }
  .landing-footer span:last-child { display: none; }
  .landing-orbits { right: -72vw; width: 172vw; }
  .minimap { width: 220px; }
  .minimap header { padding: 10px 10px 0; font-size: 10px; }
  #map-canvas { height: 112px; }
  .minimap footer { display: none; }
  .telemetry { --telemetry-label-size: 6px; --telemetry-value-size: 10px; width: 180px; padding: 6px 10px; }
  .reading { padding: 4px 0; }
  .world-heading { padding: 6px 0 8px; }
  .drive { right: 10px; height: 116px; padding: 9px; }
  .drive-track { width: 22px; }
  .drive strong { font-size: 18px; }
  .drive small, .drive em { font-size: 7px; }
  .reticle { top: 52%; width: 72px; height: 72px; }
  .reticle span:nth-child(1) { left: 27px; top: 33px; }
  .reticle span:nth-child(2) { left: 34px; top: 26px; }
  .reticle b { inset: 30px; }
  .target-readout { top: calc(52% + 44px); font-size: 8px; }
  .mission-card { min-width: 220px; padding: 9px 14px; }
  .mission-card strong { font-size: 15px; }
  .desktop-help { display: none; }
  .touch-help { display: inline; }
  .world-menu-panel { width: 94vw; height: 92vh; padding: 18px; }
  .world-menu-panel > p, .world-menu-panel > footer { display: none; }
  .world-row { min-height: 64px; grid-template-columns: 46px 1fr; }
  .world-row img { width: 46px; height: 46px; }
  .world-row em { display: none; }
  .system-map-legend { width: calc(100% - 24px); left: 12px; bottom: 52px; grid-template-columns: 1fr 1fr; }
  .system-map-legend span:first-child { display: none; }
  .system-map-header { left: 12px; right: 12px; }
  .system-map-header h2 { font-size: 18px; }
  .map-zoom-controls { top: 92px; right: 12px; grid-template-columns: 42px 62px 42px; }
  .system-map-help { font-size: 9px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
}

@media (pointer: coarse) { .desktop-help { display: none; } .touch-help { display: inline; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
