:root {
  --bg-void: #020306;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #526178;
  --rail-bg: rgba(9, 13, 22, 0.78);
  --rail-border: rgba(255, 255, 255, 0.10);
  --rail-divider: rgba(255, 255, 255, 0.07);
  --gold: #fbbf24;
  --cyan: #38bdf8;
  --emerald: #34d399;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.hidden-icon {
  display: none !important;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── DESKTOP ARCHITECTURAL STUDIO GRID (2 Zones: Left Monolith + Right Open Cosmos) ─── */
.cosmos {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: grid;
  grid-template-columns: 404px minmax(0, 1fr);
  padding: 24px 28px;
  gap: 24px;
  background: radial-gradient(circle at 64% 50%, rgba(30, 43, 70, 0.24) 0%, rgba(8, 12, 22, 0.10) 38%, transparent 70%);
}

.mobile-topbar,
.mobile-dock {
  display: none;
}

/* ─── LEFT ZONE: Unified VisionOS Smoked-Glass Command Monolith ─── */
.studio-rail {
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--rail-bg);
  backdrop-filter: blur(32px) saturate(1.55);
  -webkit-backdrop-filter: blur(32px) saturate(1.55);
  border: 1px solid var(--rail-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.78);
  overflow-y: auto;
  scrollbar-width: none;
  z-index: 12;
}

.studio-rail::-webkit-scrollbar {
  display: none;
}

.rail-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rail-divider);
}

.rail-section:last-child {
  border-bottom: none;
}

/* 1. Header, Dual-Pole Switch & KPI Strip */
.pole-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3.5px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pole-switch .pole-btn {
  height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.pole-switch .pole-btn:hover {
  color: #e2e8f0;
}

.pole-switch .pole-btn.active {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.20);
  color: #ffffff;
}

.pole-mini-capsule .pole-btn {
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.pole-mini-capsule .pole-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.06;
  color: #ffffff;
  margin-bottom: 7px;
}

.subtitle {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.48;
  color: #8494ab;
  margin-bottom: 13px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.kpi-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding-right: 6px;
}

.kpi-cell:last-child {
  border-right: none;
  padding-right: 0;
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.kpi-lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 2. Orbital Lenses (2x2 Grid) & Sun Control */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sec-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sec-hint {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #64748b;
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.lens-btn {
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out);
  white-space: nowrap;
}

.lens-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.lens-btn.active {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.lens-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  opacity: 0.65;
  flex-shrink: 0;
}

.lens-btn.active .lens-dot {
  opacity: 1;
}

.dot-shadow { background: #f8fafc; box-shadow: 0 0 8px rgba(248, 250, 252, 0.7); }
.dot-light  { background: var(--gold); box-shadow: 0 0 8px rgba(251, 191, 36, 0.85); }
.dot-cold   { background: var(--cyan); box-shadow: 0 0 8px rgba(56, 189, 248, 0.85); }

/* Sun Azimuth Bar */
.sun-bar {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.065);
  display: flex;
  align-items: center;
  gap: 11px;
}

.orbit-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.30);
  background: rgba(251, 191, 36, 0.10);
  color: #fde68a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.orbit-play-btn:hover {
  background: rgba(251, 191, 36, 0.22);
  transform: scale(1.04);
}

.sun-slider-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sun-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
}

.sun-slider-top strong {
  color: #fde68a;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Crisp Custom Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  outline: none;
  cursor: pointer;
}

#rng-azimuth::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fde68a;
  border: 2px solid #0b0f19;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

/* 3. Landmark Story Explorer */
.rail-story {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.lm-tabs {
  display: inline-flex;
  gap: 4px;
}

.lm-tab {
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms var(--ease-out);
}

.lm-tab:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.18);
}

.lm-tab.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.30);
  color: #ffffff;
}

.story-arrows {
  display: flex;
  gap: 5px;
}

.step-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out);
}

.step-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.story-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cbd5e1;
  opacity: 0.8;
  margin-bottom: 5px;
}

.story-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 7px;
}

.story-desc {
  font-size: 12.5px;
  line-height: 1.50;
  color: var(--text-secondary);
  margin-bottom: 11px;
}

.story-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--rail-divider);
  border-bottom: 1px solid var(--rail-divider);
  margin-bottom: 8px;
}

.sm-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sm-lbl, .pg-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--text-muted);
}

.sm-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.story-coords {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* 4. Live Surface Probe Footer */
.rail-probe {
  margin-top: auto;
  padding: 12px 20px 14px;
  background: rgba(2, 4, 10, 0.36);
}

.probe-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.probe-coords {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.probe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pg-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

/* ─── RIGHT ZONE: Unobstructed Sculptural Lunar Stage ─── */
.lunar-viewport {
  position: relative;
  width: 100%;
  height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.utility-bar {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 15;
}

.ghost-pill {
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out), opacity 200ms var(--ease-out);
}

.ghost-pill.icon-only {
  width: 32px;
  padding: 0;
}

.ghost-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.lang-capsule {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.lang-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Sculptural Moon + 360° Sun Ring */
.orb-stage {
  --disc-size: min(73vh, calc((100vw - 520px) * 0.74), 700px);
  position: relative;
  width: calc(var(--disc-size) * 1.36);
  height: calc(var(--disc-size) * 1.30);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.sun-dial-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 6;
  pointer-events: none;
}

.dial-track {
  fill: none;
  stroke: rgba(226, 232, 240, 0.14);
  stroke-width: 1;
  pointer-events: stroke;
  cursor: grab;
}

.dial-tick {
  stroke: rgba(226, 232, 240, 0.16);
  stroke-width: 1;
}

.dial-tick.major {
  stroke: rgba(226, 232, 240, 0.36);
  stroke-width: 1.2;
}

.dial-cardinal {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  fill: rgba(148, 163, 184, 0.70);
}

.sun-handle {
  pointer-events: all;
  cursor: grab;
}

.sun-handle:active {
  cursor: grabbing;
}

.sun-az-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: #fde68a;
}

.moon-disc {
  position: relative;
  width: var(--disc-size);
  height: var(--disc-size);
  border-radius: 50%;
  overflow: hidden;
  background: #030408;
  box-shadow:
    0 0 0 1px rgba(226, 232, 240, 0.15),
    0 36px 104px rgba(0, 0, 0, 0.95),
    0 0 80px rgba(148, 163, 184, 0.06);
  z-index: 4;
  cursor: crosshair;
}

.moon-disc.dragging {
  cursor: grabbing;
}

#gl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.moon-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.crater-engraving {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  fill: rgba(226, 232, 240, 0.44);
  paint-order: stroke;
  stroke: rgba(2, 4, 9, 0.74);
  stroke-width: 3px;
  stroke-linejoin: round;
  text-anchor: middle;
}

.graticule-ring {
  fill: none;
  stroke: rgba(226, 232, 240, 0.11);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.pole-cross {
  stroke: rgba(226, 232, 240, 0.26);
  stroke-width: 1;
}

.lm-pin {
  pointer-events: all;
  cursor: pointer;
}

.lm-pin .pin-halo {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(248, 250, 252, 0.48);
  stroke-width: 1.2;
  transition: r 200ms var(--ease-out), stroke 200ms var(--ease-out), fill 200ms var(--ease-out);
}

.lm-pin .pin-core {
  fill: #f8fafc;
  transition: fill 200ms var(--ease-out), r 200ms var(--ease-out);
}

.lm-pin .pin-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  fill: #f8fafc;
  paint-order: stroke;
  stroke: rgba(2, 4, 9, 0.85);
  stroke-width: 3px;
}

.lm-pin:hover .pin-halo,
.lm-pin.active .pin-halo {
  r: 17;
  stroke: #ffffff;
  stroke-width: 1.6;
  fill: rgba(255, 255, 255, 0.15);
}

.lm-pin.active .pin-core {
  fill: #fde68a;
  r: 4.5;
}

/* Bottom-Right Cartographic Scale & Projection Stamp */
.carto-stamp {
  position: absolute;
  bottom: 4px;
  right: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.scale-bar-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.scale-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.scale-line {
  width: 84px;
  height: 5px;
  border-bottom: 1.5px solid rgba(226, 232, 240, 0.55);
  border-left: 1.5px solid rgba(226, 232, 240, 0.55);
  border-right: 1.5px solid rgba(226, 232, 240, 0.55);
  transition: width 150ms ease;
}

.crs-stamp {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ─── Compact Laptop Height Tuning (e.g., 1280x720 / Windows 150% DPI) ─── */
@media (min-width: 921px) and (max-height: 800px) {
  .cosmos {
    padding: 16px 20px;
    grid-template-columns: 382px minmax(0, 1fr);
    gap: 18px;
  }
  .studio-rail,
  .lunar-viewport {
    height: calc(100vh - 32px);
  }
  .rail-section {
    padding: 10px 18px;
  }
  .pole-switch {
    margin-bottom: 7px;
  }
  .pole-switch .pole-btn {
    height: 26px;
    font-size: 10px;
  }
  .title {
    font-size: 23px;
    margin-bottom: 4px;
  }
  .subtitle {
    font-size: 11.8px;
    margin-bottom: 9px;
    line-height: 1.42;
  }
  .kpi-strip {
    padding: 8px 10px;
  }
  .kpi-val {
    font-size: 14px;
  }
  .lens-btn {
    height: 32px;
    font-size: 12px;
  }
  .sun-bar {
    margin-top: 9px;
    padding: 8px 10px;
  }
  .story-title {
    font-size: 17px;
  }
  .story-desc {
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.46;
  }
  .story-metrics {
    padding: 8px 0;
    margin-bottom: 6px;
  }
  .rail-probe {
    padding: 10px 18px 12px;
  }
}

/* ─── Loading Veil ─── */
.loading-veil {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 100;
  transition: opacity 420ms var(--ease-out);
}

.loading-veil.done {
  opacity: 0;
  pointer-events: none;
}

.veil-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-top-color: #f8fafc;
  animation: spin 900ms linear infinite;
}

.veil-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-secondary);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── MOBILE LAYOUT (<= 920px: Preserves Great Touch-First Mobile Experience) ─── */
@media (max-width: 920px) {
  .cosmos {
    display: block;
    padding: 0;
  }

  .mobile-topbar {
    position: absolute;
    top: 16px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
  }

  .m-eyebrow {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
    margin-bottom: 2px;
  }

  .m-title {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #ffffff;
  }

  .m-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .utility-bar,
  .carto-stamp,
  .rail-header,
  .rail-controls,
  .rail-probe {
    display: none !important;
  }

  .lunar-viewport {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 49vh;
  }

  .orb-stage {
    --disc-size: min(40vh, 72vw, 350px);
  }

  .studio-rail {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 72px;
    height: auto;
    border-radius: 18px;
    overflow: visible;
  }

  .rail-story {
    padding: 14px 16px;
  }

  .story-desc {
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.45;
  }

  .story-coords {
    display: none;
  }

  .mobile-dock {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 20px);
    height: 44px;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(10, 14, 23, 0.84);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    z-index: 25;
  }

  .mobile-dock::-webkit-scrollbar {
    display: none;
  }

  .mobile-dock .lens-btn {
    height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-size: 11.5px;
  }

  .mobile-dock .lens-btn.active {
    background: rgba(255, 255, 255, 0.13);
  }

  .dock-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 2px;
    flex-shrink: 0;
  }
}

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