@charset "UTF-8";

:root {
  color-scheme: dark;
  --space: #070a13;
  --ink: #eeeee8;
  --muted: #8f9bab;
  --faint: #657186;
  --ice: #a6dce2;
  --amber: #dfbd85;
  --line: rgba(173, 195, 217, 0.16);
  --mono: Consolas, "SFMono-Regular", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--space); }
body { color: var(--ink); font-family: var(--sans); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--ice); outline-offset: 5px; }
button { touch-action: manipulation; }
button:disabled { cursor: default; opacity: 0.4; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.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; }

#universe { position: fixed; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
#universe:focus-visible { outline: 1px solid rgba(166, 220, 226, 0.35); outline-offset: -6px; }
.vignette { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7, 10, 19, 0.6), transparent 24%, transparent 64%, rgba(7, 10, 19, 0.8)), radial-gradient(ellipse at center, transparent 48%, rgba(7, 10, 19, 0.24) 100%); }
.eyebrow { font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: 0.18em; line-height: 1.5; }
.masthead { position: absolute; z-index: 2; top: 34px; left: 35px; right: 36px; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.identity { display: flex; align-items: flex-start; gap: 20px; }
.home-link { width: 24px; height: 27px; display: grid; place-items: center; margin-top: 26px; color: var(--muted); pointer-events: auto; transition: color 150ms; }
.home-link:hover { color: var(--ink); }
.home-link svg { width: 22px; height: 22px; }
.byline { color: var(--muted); margin: 0 0 7px; font-size: 8px; letter-spacing: 0.2em; }
.byline span { color: #495469; margin: 0 8px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: 37px; line-height: 1.1; font-weight: 400; letter-spacing: -0.045em; margin: 0; }
.title-period { color: var(--amber); }
.subtitle { color: var(--muted); font-size: 11px; font-weight: 300; letter-spacing: 0.025em; margin: 8px 0 0; }
.header-actions { display: flex; gap: 12px; align-items: center; pointer-events: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: rgba(7, 10, 19, 0.35); border: 1px solid var(--line); border-radius: 4px; padding: 10px 13px; font-size: 11px; letter-spacing: 0.025em; color: #c1cad5; transition: background 160ms, color 160ms, border-color 160ms; }
.button:hover { background: rgba(166, 220, 226, 0.08); border-color: rgba(166, 220, 226, 0.32); color: var(--ink); }
.button-quiet svg { width: 17px; height: 17px; color: var(--ice); }
.help-toggle { width: 36px; height: 38px; padding: 0; font-family: Georgia, serif; font-size: 16px; }

.instruments { position: absolute; z-index: 2; top: 118px; right: 36px; width: 236px; padding: 17px 0 0 18px; border-left: 1px solid var(--line); background: linear-gradient(90deg, rgba(7, 10, 19, 0.35), rgba(7, 10, 19, 0.02)); }
.destination-control > label { color: var(--faint); display: block; margin-bottom: 11px; font-size: 8px; }
.select-wrap { position: relative; display: flex; align-items: center; }
.destination-symbol { position: absolute; left: 0; width: 15px; height: 15px; color: var(--amber); pointer-events: none; }
#destination { appearance: none; -webkit-appearance: none; width: 100%; color: #d0d4dc; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 6px 20px 11px 24px; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; border-radius: 0; }
#destination option { background: #111623; color: var(--ink); }
.select-chevron { position: absolute; right: 0; top: 6px; width: 13px; height: 13px; color: var(--muted); pointer-events: none; }
.view-controls { margin-top: 18px; }
.lens-row { display: flex; align-items: center; gap: 12px; }
.toggle { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 4px 0; color: var(--muted); font-size: 10px; letter-spacing: 0.01em; transition: color 150ms; white-space: nowrap; }
.toggle:hover, .toggle[aria-pressed="true"] { color: #c0cbd7; }
.toggle-light { width: 4px; height: 4px; background: #515c6d; border-radius: 50%; flex: 0 0 auto; }
.toggle[aria-pressed="true"] .toggle-light { background: var(--ice); box-shadow: 0 0 7px rgba(166, 220, 226, 0.3); }
#lens-strength { appearance: none; -webkit-appearance: none; height: 16px; margin: 0; width: 89px; background: transparent; cursor: ew-resize; flex: 1 1 auto; min-width: 25px; }
#lens-strength::-webkit-slider-runnable-track { height: 2px; background: #37404e; }
#lens-strength::-moz-range-track { height: 2px; background: #37404e; }
#lens-strength::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 6px; height: 10px; border: 0; border-radius: 1px; background: var(--ice); margin-top: -4px; }
#lens-strength::-moz-range-thumb { width: 6px; height: 10px; border: 0; border-radius: 1px; background: var(--ice); }
#lens-value { width: 28px; text-align: right; color: var(--faint); font-family: var(--mono); font-size: 9px; font-variant-numeric: tabular-nums; }
.display-toggles { display: flex; gap: 22px; margin-top: 10px; }

.current-panel { position: absolute; z-index: 2; left: 79px; bottom: 79px; width: min(400px, 40vw); pointer-events: none; text-shadow: 0 2px 20px var(--space); }
.system-marker { position: absolute; left: -42px; top: 3px; display: flex; align-items: center; gap: 7px; }
.system-marker span { width: 8px; height: 8px; border: 1px solid var(--amber); border-radius: 50%; box-shadow: 0 0 12px rgba(223, 189, 133, 0.14); }
.system-marker i { width: 14px; height: 1px; background: rgba(223, 189, 133, 0.4); }
#status { color: var(--amber); margin: 0 0 12px; font-size: 8px; }
#current-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(23px, 2.25vw, 33px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
#current-meta { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; letter-spacing: 0.015em; max-width: 365px; }
.paper-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ice); text-decoration: none; font-size: 11px; letter-spacing: 0.025em; margin-top: 18px; pointer-events: auto; }
.paper-link:hover { color: #ddf7fa; }
.paper-link svg { width: 13px; height: 13px; }
#journey-status { color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: 0.01em; line-height: 1.5; margin: 16px 0 0; }
#journey-status:empty { display: none; }
#flight-progress { appearance: none; -webkit-appearance: none; display: block; width: 160px; height: 2px; margin-top: 12px; background: rgba(166, 220, 226, 0.12); border: none; color: var(--ice); border-radius: 0; }
#flight-progress::-webkit-progress-bar { background: rgba(166, 220, 226, 0.12); }
#flight-progress::-webkit-progress-value { background: var(--ice); }
#flight-progress::-moz-progress-bar { background: var(--ice); }

.sector { position: absolute; z-index: 2; right: 36px; bottom: 78px; width: 164px; border-top: 1px solid var(--line); padding-top: 11px; pointer-events: none; }
.sector-heading { display: flex; align-items: center; justify-content: space-between; color: var(--faint); }
.sector-heading .eyebrow { font-size: 8px; }
.sector-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ice); }
#minimap { display: block; width: 160px; height: 100px; margin-top: 7px; }
.sector-footer { display: flex; align-items: center; gap: 8px; color: #59677c; font-family: var(--mono); font-size: 7px; letter-spacing: 0.13em; }
.sector-footer > span:last-child { color: var(--amber); }
.position-line { display: inline-block; width: 12px; height: 1px; background: var(--amber); margin-left: auto; }
.zoom-controls { position: absolute; z-index: 2; right: 36px; bottom: 280px; display: flex; border: 1px solid var(--line); border-radius: 3px; background: rgba(7, 10, 19, 0.42); }
.zoom-controls button { border: none; background: transparent; width: 31px; height: 32px; font-size: 18px; font-weight: 300; line-height: 1; color: var(--muted); }
.zoom-controls button + button { border-left: 1px solid var(--line); }
.zoom-controls button:hover { color: var(--ice); background: rgba(166, 220, 226, 0.07); }
.mouse-hint { position: absolute; z-index: 2; left: 25px; right: 25px; bottom: 24px; text-align: center; color: #637083; font-size: 9px; letter-spacing: 0.025em; margin: 0; pointer-events: none; }
.hint-point { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--amber); vertical-align: middle; margin-right: 7px; }
.hint-divider { margin: 0 11px; color: #384356; }
.touch-hint { display: none; }

.hover-tip { position: fixed; z-index: 5; width: 255px; max-width: calc(100vw - 24px); padding: 16px 17px 12px; border: 1px solid rgba(166, 220, 226, 0.19); border-radius: 3px; background: rgba(10, 15, 25, 0.96); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15); pointer-events: none; }
.hover-tip > .eyebrow { display: block; color: var(--amber); font-size: 7px; margin-bottom: 9px; }
#hover-title { display: block; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 17px; line-height: 1.25; }
#hover-meta { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 8px; }
.hover-action { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 13px; padding-top: 9px; font-family: var(--mono); font-size: 8px; color: var(--ice); }

.help-panel { position: fixed; z-index: 10; inset: 0; background: rgba(2, 5, 12, 0.64); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; }
.help-content { position: relative; width: 435px; max-width: 100%; padding: 38px 37px 30px; background: #0c1220; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 20px 100px rgba(0, 0, 0, 0.3); }
.help-close { position: absolute; top: 17px; right: 17px; width: 30px; height: 30px; padding: 5px; border-color: transparent; background: transparent; }
.help-content > .eyebrow { color: var(--amber); font-size: 8px; margin: 0 0 18px; }
.help-content h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 34px; line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 15px; }
.help-intro { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0 0 23px; }
.control-list { margin: 0; border-top: 1px solid var(--line); }
.control-list > div { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(173, 195, 217, 0.08); }
.control-list dt { color: #abb7c7; font-size: 11px; }
.control-list dd { margin: 0; color: #cdd6e1; font-size: 10px; text-align: right; }
kbd { display: inline-flex; justify-content: center; align-items: center; min-width: 19px; padding: 2px 4px; border: 1px solid #303b4d; border-radius: 3px; font-family: var(--mono); font-size: 9px; line-height: 1.35; }
.or { color: var(--faint); font-size: 9px; padding: 0 2px; }
.touch-note { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 21px 0 0; }
.touch-note .eyebrow { display: block; color: var(--faint); font-size: 7px; margin-bottom: 6px; }

@media (max-width: 900px) {
  .masthead { top: 25px; left: 24px; right: 24px; }
  .identity { gap: 12px; }
  h1 { font-size: 32px; }
  .byline { font-size: 7px; }
  .instruments { top: 108px; right: 24px; width: 205px; padding-left: 13px; }
  .current-panel { left: 61px; bottom: 76px; width: 43vw; }
  .system-marker { left: -35px; }
  .sector { right: 24px; }
  .zoom-controls { right: 24px; }
  .mouse-hint { font-size: 8px; }
}

@media (max-width: 620px) {
  .masthead { top: max(21px, env(safe-area-inset-top)); left: 18px; right: 18px; }
  .identity { gap: 9px; }
  .home-link { width: 18px; margin-top: 24px; }
  .home-link svg { width: 18px; }
  .byline { font-size: 6px; letter-spacing: 0.14em; margin-bottom: 8px; }
  .byline span { margin: 0 4px; }
  h1 { font-size: 30px; }
  .subtitle { font-size: 10px; margin-top: 6px; }
  .header-actions { gap: 7px; padding-top: 21px; }
  .button-quiet { padding: 7px; width: 32px; height: 33px; }
  .button-quiet span { display: none; }
  .help-toggle { width: 29px; height: 33px; font-size: 14px; }
  .instruments { top: 124px; left: 46px; right: 18px; width: auto; padding: 0; border-left: 0; background: transparent; }
  .destination-control > label { display: none; }
  .select-wrap { max-width: 250px; }
  #destination { font-size: 10px; padding-top: 5px; padding-bottom: 9px; background: rgba(7, 10, 19, 0.2); }
  .destination-symbol { width: 13px; height: 13px; }
  .view-controls { display: flex; gap: 14px; align-items: center; margin-top: 10px; max-width: 355px; }
  .lens-row { gap: 7px; flex: 1 1 auto; max-width: 140px; }
  .toggle { font-size: 9px; gap: 5px; min-height: 26px; }
  .toggle-light { width: 3px; height: 3px; }
  #lens-strength { width: 45px; }
  #lens-value { width: 24px; font-size: 8px; }
  .display-toggles { gap: 14px; margin: 0; }
  .current-panel { left: 46px; bottom: max(78px, calc(env(safe-area-inset-bottom) + 58px)); width: calc(100vw - 116px); max-width: 390px; }
  .system-marker { left: -27px; gap: 5px; }
  .system-marker span { width: 6px; height: 6px; }
  .system-marker i { width: 9px; }
  #status { font-size: 7px; letter-spacing: 0.15em; margin-bottom: 10px; }
  #current-title { font-size: 24px; max-height: 112px; overflow-y: auto; pointer-events: auto; }
  #current-meta { font-size: 10px; line-height: 1.55; max-height: 65px; overflow-y: auto; pointer-events: auto; }
  .paper-link { font-size: 10px; margin-top: 12px; }
  #journey-status { font-size: 8px; margin-top: 10px; }
  .sector { display: none; }
  .zoom-controls { right: 18px; bottom: max(86px, calc(env(safe-area-inset-bottom) + 66px)); flex-direction: column; }
  .zoom-controls button { width: 30px; height: 35px; }
  .zoom-controls button + button { border-left: 0; border-top: 1px solid var(--line); }
  .mouse-hint { left: 18px; right: 18px; bottom: max(24px, calc(env(safe-area-inset-bottom) + 14px)); font-size: 8px; line-height: 1.6; }
  .hint-divider { margin: 0 6px; }
  .desktop-hint { display: none; }
  .touch-hint { display: inline; }
  .help-panel { padding: 16px; align-items: safe center; }
  .help-content { padding: 31px 24px 24px; }
  .help-content h2 { font-size: 31px; }
  .control-list > div { gap: 10px; padding: 9px 0; }
  .control-list dt { font-size: 10px; }
  .control-list dd { font-size: 9px; }
}

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

@media (max-height: 550px) and (min-width: 621px) {
  .masthead { top: 18px; }
  .subtitle { display: none; }
  .instruments { top: 91px; }
  .current-panel { bottom: 52px; width: 40vw; }
  #current-title { font-size: 23px; }
  .sector { bottom: 50px; }
  .zoom-controls { bottom: 220px; }
  .mouse-hint { bottom: 15px; }
  .help-panel { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
