:root {
  color-scheme: dark;
  --atlas-bg: #050a12;
  --ink: #edf2ed;
  --muted: #a6b7bc;
  --dim: #718994;
  --line: rgba(177, 204, 217, .16);
  --accent: #c5e6a1;
  --accent-soft: rgba(197, 230, 161, .12);
  --panel-bg: rgba(9, 19, 29, .92);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-display: Georgia, "Times New Roman", serif;
  --edge: 34px;
  --footer-h: 148px;
  --panel-w: 360px;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--atlas-bg); color: var(--ink); font: 14px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
body { overscroll-behavior: none; }
button, input, select { font: inherit; }
button { color: inherit; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .52; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, a, input { touch-action: manipulation; }
a { color: var(--accent); text-underline-offset: 3px; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.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; }
.is-hidden, [hidden] { display: none !important; }
#universe { position: fixed; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.scene-vignette { position: fixed; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(2,7,14,.4), transparent 19%, transparent 67%, rgba(2,7,14,.65) 81%, rgba(2,7,14,.98)); }
.scene-grain { position: fixed; z-index: 1; inset: 0; pointer-events: none; opacity: .04; background: repeating-linear-gradient(0deg,transparent 0,transparent 2px,#c7dfec 3px,transparent 4px); }
.atlas-header { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 25px var(--edge); padding-top: max(25px, env(safe-area-inset-top)); background: linear-gradient(180deg,rgba(4,9,16,.7),transparent); }
.atlas-brand { display: inline-flex; align-items: center; gap: 14px; padding: 0; background: transparent; text-align: left; flex-shrink: 0; }
.brand-orbit { display: block; position: relative; width: 31px; height: 31px; margin: 0 5px; border: 1px solid #a4b8bf; border-radius: 50%; transform: rotate(-32deg); }
.brand-orbit:before { content: ""; position: absolute; inset: 9px -9px; border: 1px solid var(--accent); border-radius: 50%; }
.brand-orbit span { position: absolute; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; top: 13px; left: -8px; box-shadow: 0 0 10px #c5e6a150; }
.brand-wordmark strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: 3.3px; line-height: 1.4; }
.brand-wordmark small { display: block; margin-top: 3px; font: 8px/1.2 var(--font-mono); letter-spacing: 2.7px; color: #8299a2; }
.system-selector { display: flex; align-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 30px; background: rgba(7,17,26,.73); backdrop-filter: blur(15px); box-shadow: 0 3px 25px #0002; }
.system-selector button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; border: 1px solid transparent; background: transparent; color: #97abb3; border-radius: 24px; padding: 8px 13px; font-size: 11px; line-height: 1.3; transition: color .2s, background .2s, border-color .2s; }
.system-selector button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: rgba(197,230,161,.2); }
.system-selector button:hover { color: #e5f0e4; }
.system-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px #c5e6a149; }
.fiction-marker { font: 6px var(--font-mono); letter-spacing: 1px; color: #8d9ca8; padding-top: 1px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-shrink: 0; }
.btn-ghost, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: rgba(13,24,34,.44); border: 1px solid var(--line); border-radius: 28px; padding: 9px 15px; font-size: 11px; line-height: 1.3; transition: border-color .2s, background .2s, color .2s; backdrop-filter: blur(12px); }
.btn-ghost:hover, .icon-button:hover { border-color: #c5e6a175; background: #c5e6a10e; color: #d6ecbe; }
.btn-ghost[aria-pressed="true"], .btn-ghost.is-active, .icon-button.is-active { background: var(--accent-soft); border-color: #c5e6a156; color: var(--accent); }
.icon-button { width: 36px; height: 36px; padding: 0; }
.icon-button svg { width: 17px; height: 17px; }
.tour-action svg { width: 12px; height: 12px; fill: currentColor; stroke-width: .7; }
.atlas-hero { position: fixed; z-index: 3; top: clamp(150px, 24.3vh, 280px); left: 7.1vw; width: min(575px, 52vw); pointer-events: none; transition: opacity .5s, transform .5s; }
.eyebrow { font: 9px/1.65 var(--font-mono); letter-spacing: 2.05px; text-transform: uppercase; color: var(--accent); }
#heroEyebrow { display: flex; align-items: center; gap: 13px; }
.eyebrow-line { display: inline-block; width: 27px; height: 1px; background: var(--accent); opacity: .7; }
.atlas-hero h1 { font-size: clamp(43px, 4.8vw, 76px); font-weight: 400; letter-spacing: -3px; line-height: 1.085; margin: 22px 0 21px; }
.atlas-hero h1 em { font-family: var(--font-display); font-weight: 400; color: var(--accent); }
.atlas-hero p { max-width: 325px; font-size: 13px; line-height: 1.85; color: #a9bdc4; margin: 0; text-wrap: pretty; }
.btn-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 33px; border: 1px solid transparent; border-radius: 4px; background: var(--accent); color: #17251a; padding: 13px 20px; font-size: 11px; font-weight: 650; letter-spacing: .2px; line-height: 1.4; transition: transform .2s, background .2s; }
.btn-primary svg { width: 15px; height: 15px; stroke-width: 1.4; }
.btn-primary:hover:not(:disabled) { background: #d3f0b4; transform: translateY(-1px); }
.atlas-hero .btn-primary { margin-top: 26px; pointer-events: auto; }
.hero-subline { max-width: 350px; font: 8px/1.8 var(--font-mono); letter-spacing: 1.25px; color: #6f8793; margin-top: 18px; }
.scene-status { position: fixed; z-index: 2; left: var(--edge); top: 112px; display: flex; align-items: center; gap: 9px; font: 8px/1.5 var(--font-mono); letter-spacing: 1.2px; color: #7c959e; pointer-events: none; }
.status-indicator { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .8; box-shadow: 0 0 9px #c5e6a14c; flex-shrink: 0; }
.detail-panel { position: fixed; z-index: 5; top: 112px; bottom: calc(var(--footer-h) + 21px + env(safe-area-inset-bottom)); right: var(--edge); width: var(--panel-w); padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg, rgba(13,25,36,.94), rgba(6,14,23,.94)); backdrop-filter: blur(22px); overflow: auto; scrollbar-width: thin; scrollbar-color: #405962 transparent; opacity: 0; transform: translateX(calc(100% + 50px)); pointer-events: none; transition: opacity .35s, transform .4s; overscroll-behavior: contain; }
.detail-panel.is-open { opacity: 1; transform: translate(0); pointer-events: auto; }
.detail-panel::-webkit-scrollbar { width: 4px; }
.detail-panel::-webkit-scrollbar-thumb { background: #405962; border-radius: 2px; }
.panel-kicker { padding-right: 29px; font: 8px/1.6 var(--font-mono); letter-spacing: 1.75px; text-transform: uppercase; color: var(--accent); }
.panel-title { font: 45px/1.15 var(--font-display); font-weight: 400; letter-spacing: -1.3px; margin: 15px 0 5px; overflow-wrap: anywhere; }
.panel-type { font: 8px/1.7 var(--font-mono); letter-spacing: 1.4px; text-transform: uppercase; color: #819aa5; margin-bottom: 20px; }
.panel-close { position: absolute; right: 18px; top: 17px; display: grid; place-items: center; background: transparent; color: #8ba1ac; width: 30px; height: 30px; padding: 3px; border-radius: 50%; font-size: 24px; font-weight: 300; line-height: 1; }
.panel-close:hover { background: #ffffff0d; color: var(--ink); }
.panel-close svg { width: 17px; height: 17px; }
.panel-hero-line { margin: 13px 0 21px; color: #c6d7d4; font: italic 15px/1.6 var(--font-display); }
.metric-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px 16px; padding: 19px 0; margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { min-width: 0; }
.metric > span { display: block; color: #79919d; font: 7px/1.6 var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.metric > strong { display: block; margin-top: 5px; font: 18px/1.3 var(--font-sans); font-weight: 400; letter-spacing: -.3px; color: #e4ece6; overflow-wrap: anywhere; }
.metric > small { display: block; margin-top: 4px; font: 8px/1.5 var(--font-mono); color: #79919d; }
.metric strong small { font-size: 10px; color: #8da3ac; }
.panel-description { font-size: 12px; color: #abbec5; line-height: 1.9; margin: 19px 0; }
.panel-section-title { margin: 22px 0 12px; font: 8px/1.6 var(--font-mono); letter-spacing: 1.8px; color: var(--accent); text-transform: uppercase; }
.fact-list { margin: 0; padding-left: 15px; list-style: none; color: #a9bac1; font-size: 11px; line-height: 1.8; }
.fact-list li { position: relative; margin: 10px 0; }
.fact-list li:before { content: ""; position: absolute; width: 3px; height: 3px; top: .75em; left: -14px; border-radius: 50%; background: #a9c88d; }
.moon-list { display: flex; flex-wrap: wrap; gap: 7px; }
.moon-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #aac9d02b; background: #d1e2ef05; color: #bdcbd0; border-radius: 20px; padding: 7px 12px; font-size: 10px; line-height: 1.3; }
.moon-chip:hover, .moon-chip.is-active { background: #c5e6a112; border-color: #c5e6a166; color: var(--accent); }
.moon-chip small { font: 8px var(--font-mono); opacity: .65; }
.scan-button { width: 100%; margin-top: 20px; min-height: 43px; }
.scan-button:disabled { color: #aec39b; background: rgba(197,230,161,.08); border-color: rgba(197,230,161,.2); opacity: 1; }
.scan-progress { width: 100%; height: 2px; margin-top: 9px; background: #20323b; overflow: hidden; }
.scan-progress > span, .scan-progress > div { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
.discovery-box { margin: 21px 0 9px; border-left: 2px solid #b8d99a; padding: 2px 0 2px 13px; }
.discovery-box h3, .discovery-box strong { color: var(--accent); font: 8px/1.8 var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 7px; }
.discovery-box p { margin: 0; color: #acbfc6; font-size: 11px; line-height: 1.85; }
.panel-footer { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: #6c8793; font: 8px/1.8 var(--font-mono); }
.panel-footer a { color: #9eb39f; }
.panel-nav { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 19px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel-nav button { background: none; padding: 5px 0; color: #9cafb9; font-size: 10px; }
.panel-nav button:hover { color: var(--accent); }
.atlas-footer { position: fixed; z-index: 7; left: var(--edge); right: var(--edge); bottom: max(16px, env(safe-area-inset-bottom)); padding-top: 22px; }
.control-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 14px; }
.scene-hint { display: flex; align-items: center; gap: 9px; color: #6e8794; font: 8px/1.5 var(--font-mono); letter-spacing: .4px; }
.scene-hint svg { width: 13px; height: 13px; color: #77929d; opacity: .8; }
.hint-mobile { display: none; }
.simulation-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.mini-button { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; padding: 4px; color: #6c8691; background: transparent; border-radius: 4px; }
.mini-button svg { width: 16px; height: 16px; stroke-width: 1.35; }
.mini-button:hover { background: #e3f6fa08; color: #c4d3d6; }
.mini-button.is-active, .mini-button[aria-pressed="true"] { color: #bacfbd; }
.speed-slider { display: flex; align-items: center; gap: 12px; font: 8px var(--font-mono); letter-spacing: .4px; color: #9eb2b9; }
.speed-slider input { display: block; width: 95px; height: 3px; margin: 0; cursor: pointer; accent-color: var(--accent); }
#timeSpeedLabel { display: inline-block; min-width: 49px; white-space: nowrap; }
.control-divider { height: 15px; width: 1px; background: var(--line); margin: 0 2px; }
.planet-nav-wrapper { position: relative; border-top: 1px solid rgba(171,199,211,.2); }
.planet-list { display: flex; gap: 3px; align-items: stretch; overflow-x: auto; overflow-y: hidden; padding: 12px 0 4px; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x proximity; }
.planet-list::-webkit-scrollbar { display: none; }
.planet-chip { display: flex; align-items: center; gap: 10px; position: relative; flex: 1 0 91px; padding: 10px 12px; text-align: left; color: #c8d5d7; background: transparent; border-radius: 5px; min-width: 0; scroll-snap-align: center; transition: background .2s; }
.planet-chip:hover { background: #dbe8eb08; }
.planet-chip.is-active, .planet-chip[aria-pressed="true"] { color: #edf5e9; background: #e5f5f00a; }
.planet-chip.is-active:before, .planet-chip[aria-pressed="true"]:before { content: ""; height: 2px; position: absolute; left: 0; right: 0; top: 0; background: var(--accent); }
.planet-icon { flex-shrink: 0; position: relative; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 28% 28%,var(--planet-color, var(--c, #b8c8c8)), #08121e 90%); box-shadow: inset -4px -2px 7px #0007, 0 0 15px #ffffff03; }
.planet-icon.has-rings:after, .planet-chip[data-id="saturn"] .planet-icon:after, .planet-chip[data-id="vespera"] .planet-icon:after { content: ""; position: absolute; inset: 8px -7px; border: 2px solid #c7b7a98f; border-radius: 50%; transform: rotate(-30deg); }
.planet-chip-name { display: block; white-space: nowrap; font-size: 11px; font-weight: 400; letter-spacing: .35px; }
.planet-chip-meta { display: block; margin-top: 3px; white-space: nowrap; font: 7px/1.3 var(--font-mono); letter-spacing: .85px; color: #657e8a; }
.planet-chip.is-scanned .planet-chip-name:after { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 0 2px 5px; border-radius: 50%; background: var(--accent); }
.nav-fade { display: none; position: absolute; top: 0; bottom: 0; right: -1px; width: 25px; background: linear-gradient(90deg,transparent,#040a12); pointer-events: none; }
.footer-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; color: #4f6a78; font: 7px/1.5 var(--font-mono); letter-spacing: .75px; }
.special-worlds { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.special-worlds button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; background: transparent; color: #8da3ac; font: 8px var(--font-mono); letter-spacing: .6px; }
.special-worlds button:hover { color: var(--accent); }
.sun-mini, .moon-mini { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #e7c281; box-shadow: 0 0 8px #f6b35740; }
.moon-mini { background: linear-gradient(110deg,#b7c9d1,#46515b); box-shadow: none; }
.meta-dot { color: #536d7a; }
.sources-button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; border: 0; background: transparent; color: #6d8895; font: 7px/1.5 var(--font-mono); letter-spacing: .3px; }
.sources-button svg { width: 10px; height: 10px; }
.sources-button:hover { color: #bad2b0; }
.atlas-toast { position: fixed; z-index: 20; left: 50%; bottom: calc(var(--footer-h) + 26px + env(safe-area-inset-bottom)); max-width: min(480px, calc(100vw - 36px)); width: max-content; padding: 12px 18px; border: 1px solid #bcd7a83d; border-radius: 6px; background: #15282ced; backdrop-filter: blur(15px); color: #d4e4d8; font-size: 11px; text-align: center; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.atlas-toast.is-visible, .atlas-toast.show { opacity: 1; transform: translate(-50%,0); }
#atlasDialog { position: fixed; inset: 0; width: min(690px, calc(100vw - 40px)); max-width: calc(100vw - 40px); max-height: min(84dvh, 900px); margin: auto; padding: 0; border: 1px solid #7d9caa40; border-radius: 10px; color: var(--ink); background: #0b1722; overflow: hidden; box-shadow: 0 30px 140px #000a; }
#atlasDialog::backdrop { background: #02070dbd; backdrop-filter: blur(13px); }
.dialog-shell { min-width: 0; max-height: inherit; display: flex; flex-direction: column; overflow: hidden; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px 30px 20px; border-bottom: 1px solid var(--line); background: #0d1a26; flex-shrink: 0; }
.dialog-header .eyebrow { font-size: 8px; letter-spacing: 1.65px; }
.dialog-header h2 { font: 33px/1.2 var(--font-display); font-weight: 400; letter-spacing: -.5px; margin: 11px 0 0; overflow-wrap: anywhere; }
.dialog-close { flex-shrink: 0; width: 31px; height: 31px; margin-top: -3px; }
.dialog-content { min-width: 0; min-height: 0; padding: 21px 30px 28px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #405a67 transparent; overflow-wrap: anywhere; }
.dialog-content > p { color: #a6bbc4; font-size: 12px; line-height: 1.9; margin: 0 0 19px; }
.dialog-content h3 { margin: 24px 0 12px; color: #b8d59f; font: 9px/1.8 var(--font-mono); letter-spacing: 1.3px; text-transform: uppercase; }
.dialog-content ul { padding-left: 20px; color: #a8bdc6; font-size: 12px; line-height: 1.9; }
.dialog-content .btn-primary, .dialog-content .btn-ghost { margin-top: 15px; }
.journal-entry { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 13px; padding: 17px 0; border-top: 1px solid var(--line); }
.journal-entry.is-locked { opacity: .43; }
.journal-entry .journal-index, .journal-entry .number { font: 9px/1.8 var(--font-mono); color: #80a58e; }
.journal-entry h3, .journal-entry strong { margin: 0; font: 17px/1.4 var(--font-display); color: #d9e4dd; text-transform: none; letter-spacing: 0; }
.journal-entry p { margin: 7px 0 0; color: #98afb9; font-size: 11px; line-height: 1.85; }
.journal-entry small { font: 7px var(--font-mono); color: #91b69b; letter-spacing: .9px; }
.source-entry { border-top: 1px solid var(--line); padding: 15px 0; color: #9aafb9; font-size: 11px; line-height: 1.8; }
.source-entry strong, .source-entry a { display: block; margin-bottom: 4px; color: #bdd5af; font-size: 12px; }
.source-entry p { margin: 6px 0 0; }
.source-entry small { display: block; color: #6f8c9a; font: 8px/1.6 var(--font-mono); }
.setting-row, .key-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); padding: 14px 0; color: #abbfc7; font-size: 12px; line-height: 1.6; }
.setting-row > span { min-width: 0; }
.setting-row small { display: block; color: #6e8b98; font-size: 10px; margin-top: 4px; }
.setting-row input[type="checkbox"] { accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; }
.setting-row select { max-width: 145px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #172b38; padding: 6px 8px; font-size: 11px; }
kbd { font: 10px/1.6 var(--font-mono); color: #c1dbab; text-align: right; white-space: normal; }
.dialog-note { padding: 12px 14px; border-left: 2px solid #80a17c; background: #c5e6a107; font-size: 11px; line-height: 1.9; color: #a0b8c1; margin: 20px 0 0; }
@media(min-width:1600px) { :root { --edge: 46px; --panel-w: 390px; } .atlas-header { padding-top: 32px; } .detail-panel { top: 130px; padding: 30px; } .panel-title { font-size: 51px; } .panel-description { font-size: 13px; } .atlas-hero { top: 26vh; } }
@media(max-width:1150px) { :root { --edge: 25px; --panel-w: 330px; } .atlas-header { gap: 14px; } .brand-wordmark strong { font-size: 11px; letter-spacing: 2.5px; } .brand-wordmark small { font-size: 7px; letter-spacing: 2.2px; } .atlas-brand { gap: 10px; } .header-actions { gap: 6px; } .header-actions .btn-ghost { padding: 9px 11px; font-size: 10px; } .system-selector button { padding: 8px 11px; font-size: 10px; } .atlas-hero { width: min(535px,54vw); } .atlas-hero h1 { font-size: 58px; letter-spacing: -2.5px; } .planet-chip { flex-basis: 87px; padding-left: 8px; padding-right: 8px; gap: 9px; } .planet-icon { width: 22px; height: 22px; } .planet-chip-name { font-size: 10px; } .planet-chip-meta { font-size: 6px; } }
@media(max-width:900px) { :root { --edge: 22px; --panel-w: 304px; } .desktop-action { display: none; } .atlas-brand { gap: 7px; } .brand-orbit { width: 27px; height: 27px; } .brand-orbit:before { inset: 8px -7px; } .brand-wordmark strong { font-size: 10px; letter-spacing: 2.3px; } .brand-wordmark small { font-size: 6px; letter-spacing: 2px; } .system-selector button { padding: 8px 10px; font-size: 10px; } .fiction-marker { display: none; } .atlas-hero { left: 6.2vw; width: 450px; top: 25vh; } .atlas-hero h1 { font-size: 54px; } .atlas-hero p { max-width: 280px; font-size: 12px; } .detail-panel { padding: 22px; } .panel-title { font-size: 40px; } .metric > strong { font-size: 17px; } #footerCaption { font-size: 6px; max-width: 240px; text-align: center; } .planet-list { padding-top: 11px; } .planet-chip { flex: 1 0 86px; padding: 9px 8px; } .nav-fade { display: block; } .scene-hint { font-size: 7px; } .simulation-controls { gap: 8px; } }
@media(max-width:680px) {
  :root { --edge: 18px; --footer-h: 154px; --panel-w: calc(100vw - 26px); }
  .atlas-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: max(18px, env(safe-area-inset-top)) var(--edge) 9px; gap: 16px 10px; background: linear-gradient(180deg,#050b13e3, #050b1340 70%, transparent); }
  .atlas-brand { grid-column: 1; grid-row: 1; gap: 8px; }
  .brand-wordmark strong { font-size: 10px; letter-spacing: 2.45px; }
  .brand-wordmark small { font-size: 6px; letter-spacing: 2.05px; margin-top: 4px; }
  .brand-orbit { width: 25px; height: 25px; margin-right: 4px; }
  .brand-orbit:before { inset: 7px -7px; }
  .brand-orbit span { top: 10px; width: 3px; height: 3px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 5px; }
  .icon-button { width: 32px; height: 32px; }
  .icon-button svg { width: 15px; height: 15px; }
  .tour-action { padding: 8px!important; width: 32px; height: 32px; }
  .tour-action span { display: none; }
  .tour-action svg { width: 11px; height: 11px; }
  .system-selector { grid-column: 1 / -1; grid-row: 2; justify-self: center; padding: 3px; }
  .system-selector button { padding: 7px 15px; font-size: 10px; gap: 7px; min-height: 29px; }
  .fiction-marker { display: inline; font-size: 6px; letter-spacing: .7px; }
  .system-dot { width: 4px; height: 4px; }
  .atlas-hero { top: max(153px, 18.5dvh); left: 25px; right: 25px; width: auto; }
  .atlas-hero h1 { font-size: clamp(39px,10.8vw,49px); letter-spacing: -2.05px; line-height: 1.07; margin: 16px 0 17px; max-width: 355px; }
  .atlas-hero .eyebrow { font-size: 7px; letter-spacing: 1.7px; }
  #heroEyebrow { gap: 9px; }
  .eyebrow-line { width: 18px; }
  .atlas-hero p { max-width: 260px; font-size: 11px; line-height: 1.8; }
  .atlas-hero .btn-primary { margin-top: 20px; padding: 12px 17px; font-size: 10px; gap: 25px; }
  .hero-subline { max-width: 250px; font-size: 6px; line-height: 1.9; letter-spacing: 1px; margin-top: 13px; }
  .scene-status { top: 127px; left: 25px; right: 25px; font-size: 6px; line-height: 1.6; letter-spacing: .8px; gap: 7px; }
  .status-indicator { width: 3px; height: 3px; }
  .detail-panel { top: auto; bottom: calc(var(--footer-h) + 7px + env(safe-area-inset-bottom)); left: 13px; right: 13px; width: auto; max-height: 45dvh; max-height: min(45dvh, 500px); padding: 20px; border-radius: 10px; transform: translateY(35px); }
  .detail-panel.is-open { transform: translate(0); }
  .panel-kicker { font-size: 7px; letter-spacing: 1.2px; padding-right: 29px; }
  .panel-title { font-size: 34px; margin: 8px 0 3px; letter-spacing: -.8px; }
  .panel-type { font-size: 7px; margin-bottom: 12px; letter-spacing: 1.2px; }
  .panel-close { top: 12px; right: 12px; }
  .panel-hero-line { font-size: 13px; margin: 10px 0 14px; }
  .metric-grid { gap: 14px 18px; padding: 15px 0; margin: 14px 0; }
  .metric > span { font-size: 7px; letter-spacing: .7px; }
  .metric > strong { font-size: 17px; margin-top: 4px; }
  .metric > small { font-size: 7px; }
  .panel-description { font-size: 11px; line-height: 1.85; margin: 15px 0; }
  .panel-section-title { margin: 20px 0 10px; font-size: 7px; letter-spacing: 1.3px; }
  .fact-list { font-size: 10px; }
  .fact-list li { margin: 8px 0; }
  .scan-button { margin-top: 17px; padding: 11px 15px; font-size: 10px; }
  .moon-chip { font-size: 10px; padding: 7px 11px; }
  .discovery-box p { font-size: 10px; }
  .panel-footer { font-size: 7px; }
  .panel-nav { margin-top: 16px; }
  .panel-nav button { font-size: 10px; }
  .atlas-footer { left: 18px; right: 18px; bottom: max(12px, env(safe-area-inset-bottom)); padding-top: 12px; }
  .control-row { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
  .scene-hint { justify-content: center; font-size: 6px; letter-spacing: .6px; opacity: .8; }
  .scene-hint svg { width: 10px; height: 10px; }
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
  .simulation-controls { width: 100%; justify-content: center; gap: 10px; }
  .mini-button { width: 26px; height: 25px; padding: 4px; }
  .mini-button svg { width: 15px; height: 15px; }
  .speed-slider { gap: 10px; font-size: 7px; }
  .speed-slider input { width: 94px; }
  #timeSpeedLabel { min-width: 42px; }
  .control-divider { height: 13px; margin: 0 2px; }
  .planet-list { gap: 3px; padding-top: 9px; padding-bottom: 2px; scroll-padding: 0 20px; }
  .planet-chip { flex: 0 0 82px; padding: 8px 6px; gap: 7px; }
  .planet-chip-name { font-size: 10px; letter-spacing: 0; }
  .planet-chip-meta { font-size: 6px; letter-spacing: .55px; }
  .planet-chip.is-active:before, .planet-chip[aria-pressed="true"]:before { top: 0; }
  .planet-icon { width: 20px; height: 20px; }
  .planet-icon.has-rings:after, .planet-chip[data-id="saturn"] .planet-icon:after, .planet-chip[data-id="vespera"] .planet-icon:after { inset: 7px -5px; border-width: 1.5px; }
  .nav-fade { width: 20px; }
  .footer-meta { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin-top: 10px; font-size: 6px; }
  .special-worlds { gap: 9px; grid-column: 1; grid-row: 1; }
  .special-worlds button { font-size: 7px; }
  .sun-mini, .moon-mini { width: 6px; height: 6px; }
  .sources-button { grid-column: 2; grid-row: 1; justify-self: end; font-size: 6px; gap: 4px; }
  .sources-button svg { width: 8px; height: 8px; }
  #footerCaption { grid-column: 1/-1; grid-row: 2; display: block; max-width: none; text-align: center; font-size: 5px; line-height: 1.4; letter-spacing: .55px; }
  .atlas-toast { bottom: calc(var(--footer-h) + 18px + env(safe-area-inset-bottom)); font-size: 10px; padding: 10px 15px; }
  #atlasDialog { width: calc(100vw - 26px); max-width: calc(100vw - 26px); max-height: 86dvh; border-radius: 9px; }
  .dialog-header { gap: 11px; padding: 21px 20px 17px; }
  .dialog-header .eyebrow { font-size: 6px; letter-spacing: 1.3px; }
  .dialog-header h2 { font-size: 28px; margin-top: 10px; }
  .dialog-close { width: 28px; height: 28px; margin-top: -3px; }
  .dialog-content { padding: 18px 20px 23px; }
  .dialog-content > p { font-size: 11px; line-height: 1.85; }
  .dialog-content h3 { font-size: 8px; margin-top: 22px; }
  .journal-entry { grid-template-columns: 26px minmax(0,1fr); gap: 10px; padding: 15px 0; }
  .journal-entry h3, .journal-entry strong { font-size: 17px; }
  .journal-entry p { font-size: 10px; }
  .journal-entry .journal-index, .journal-entry .number { font-size: 8px; }
  .source-entry { padding: 13px 0; font-size: 10px; }
  .source-entry strong, .source-entry a { font-size: 11px; }
  .source-entry small { font-size: 7px; }
  .setting-row, .key-row { font-size: 11px; padding: 13px 0; gap: 15px; }
  .setting-row small { font-size: 9px; }
  kbd { font-size: 9px; max-width: 130px; }
  .dialog-note { font-size: 10px; padding: 11px 12px; }
}
@media(max-width:370px) { :root { --edge: 14px; } .brand-wordmark strong { font-size: 9px; letter-spacing: 1.9px; } .brand-wordmark small { font-size: 5px; } .atlas-brand { gap: 5px; } .header-actions { gap: 4px; } .icon-button, .tour-action { width: 29px; height: 29px; } .atlas-hero { left: 22px; right: 22px; } .atlas-hero h1 { font-size: 39px; letter-spacing: -1.8px; } .system-selector button { padding-left: 13px; padding-right: 13px; } .scene-status { left: 22px; } .atlas-footer { left: 14px; right: 14px; } }
@media(max-height:680px) and (min-width:681px) { :root { --footer-h: 128px; } .atlas-header { padding-top: 17px; padding-bottom: 15px; } .detail-panel { top: 84px; bottom: 145px; } .scene-status { top: 82px; } .atlas-hero { top: 24vh; } .atlas-hero h1 { font-size: 49px; margin: 17px 0; } .atlas-hero p { font-size: 11px; max-width: 300px; } .atlas-hero .btn-primary { margin-top: 18px; padding-top: 11px; padding-bottom: 11px; } .hero-subline { margin-top: 11px; } .planet-list { padding-top: 9px; } .planet-chip { padding-top: 7px; padding-bottom: 7px; } .control-row { margin-bottom: 8px; } .footer-meta { margin-top: 8px; } }
@media(max-height:740px) and (max-width:680px) { .atlas-hero { top: 142px; } .atlas-hero h1 { font-size: 38px; margin: 13px 0; } .atlas-hero p { font-size: 10px; max-width: 245px; } .atlas-hero .btn-primary { margin-top: 15px; padding: 10px 15px; } .hero-subline { margin-top: 10px; font-size: 5px; } .detail-panel { max-height: 43dvh; } }
@media(prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto!important; transition: none!important; animation: none!important; } }

/* Detailed body information and expedition states. */
.panel-header {
  position: sticky;
  top: -26px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin: -26px -26px 0;
  padding: 27px 26px 15px;
  background: linear-gradient(135deg, rgba(13,25,36,.98), rgba(7,16,25,.98));
  border-bottom: 1px solid rgba(177,204,217,.12);
  backdrop-filter: blur(20px);
}
.panel-header > div { min-width: 0; }
.panel-header .panel-type { margin-bottom: 0; }
.panel-header .panel-close { top: 18px; right: 16px; }
.panel-body { position: relative; min-width: 0; padding-top: 2px; }
.metric:nth-child(2) > strong { font-size: 12px; line-height: 1.6; letter-spacing: 0; overflow-wrap: anywhere; }
.panel-mini-facts { display: grid; gap: 0; margin: 20px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.panel-mini-facts > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); align-items: baseline; gap: 15px; padding: 11px 0; border-top: 1px solid rgba(177,204,217,.08); }
.panel-mini-facts > div:first-child { border-top: 0; }
.panel-mini-facts span { color: #718c98; font: 7px/1.7 var(--font-mono); letter-spacing: .75px; }
.panel-mini-facts strong { color: #b8cad0; font: 11px/1.65 var(--font-sans); font-weight: 400; text-align: right; overflow-wrap: anywhere; }
.scan-section { margin-top: 25px; }
.scan-section .scan-button { margin-top: 2px; }
.scan-caption { margin: 8px 0 0; color: #6b8793; font: 7px/1.9 var(--font-mono); letter-spacing: .2px; }
.discovery-box .panel-kicker { padding-right: 0; margin-bottom: 8px; }
.mission-box { margin-top: 25px; padding: 17px; background: linear-gradient(135deg,#bcdca10a,#6ba8bf06); border: 1px solid #c5e6a126; border-radius: 5px; }
.mission-box .panel-kicker { padding-right: 0; font-size: 7px; line-height: 1.8; letter-spacing: 1px; }
.mission-box p { margin: 10px 0 0; color: #9eb6bf; font-size: 11px; line-height: 1.8; }
.mission-pips { display: flex; gap: 5px; margin: 15px 0; }
.mission-pips span { display: block; flex: 1; height: 3px; border-radius: 1px; background: #2b414b; }
.mission-pips .is-done { background: var(--accent); box-shadow: 0 0 11px #c5e6a11c; }
.mission-box .btn-ghost { padding: 7px 10px; font-size: 9px; color: #c0d9ac; }
.panel-body > .panel-footer .btn-ghost { font-size: 9px; padding: 8px 12px; color: #a9c99a; }
.parent-link { margin-top: 15px; }
.journal-number { color: #82a58f; font: 9px/1.8 var(--font-mono); padding-top: 3px; }
.journal-entry h3 span { display: inline-block; vertical-align: middle; margin-left: 7px; color: #9dbf91; background: #bddfa00a; border: 1px solid #bddfa024; border-radius: 3px; padding: 3px 5px; font: 6px/1.4 var(--font-mono); letter-spacing: .6px; }
.journal-entry .journal-visit { margin-top: 10px; padding: 7px 11px; font-size: 9px; }
.status-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px #c5e6a14c; opacity: .8; flex-shrink: 0; }
@media(min-width:1600px) { .panel-header { top: -30px; margin: -30px -30px 0; padding: 31px 30px 18px; } .panel-header .panel-close { right: 20px; top: 22px; } }
@media(max-width:900px) { .panel-header { top: -22px; margin: -22px -22px 0; padding: 23px 22px 14px; } .panel-header .panel-close { top: 15px; right: 13px; } .panel-mini-facts strong { font-size: 10px; } }
@media(max-width:680px) {
  .panel-header { top: -20px; margin: -20px -20px 0; padding: 21px 20px 13px; gap: 12px; }
  .panel-header .panel-close { top: 12px; right: 10px; }
  .panel-body { padding-top: 1px; }
  .metric:nth-child(2) > strong { font-size: 11px; line-height: 1.6; }
  .panel-mini-facts { margin: 17px 0 20px; }
  .panel-mini-facts > div { gap: 12px; padding: 10px 0; }
  .panel-mini-facts span { font-size: 6px; letter-spacing: .6px; }
  .panel-mini-facts strong { font-size: 10px; }
  .scan-section { margin-top: 21px; }
  .scan-caption { font-size: 6px; line-height: 1.8; }
  .mission-box { padding: 15px; margin-top: 20px; }
  .mission-box p { font-size: 10px; }
  .mission-box .panel-kicker { font-size: 6px; }
  .mission-box .btn-ghost { font-size: 9px; padding: 7px 10px; }
  .journal-number { font-size: 8px; }
  .journal-entry h3 span { margin-left: 5px; font-size: 5px; padding: 3px 4px; }
  .journal-entry .journal-visit { font-size: 8px; padding: 7px 10px; }
  .status-dot { width: 3px; height: 3px; }
}


/* V3: clear controls and device-aware presentation. */
.hidden { display: none !important; }
.brand-wordmark strong { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.version-badge { display: inline-block; border: 1px solid #b7d59e30; border-radius: 3px; background: #c5e6a108; padding: 3px 4px 2px; color: #a7c88c; font: 7px/1 var(--font-mono); letter-spacing: .5px; }
.load-status { position: fixed; z-index: 4; left: var(--edge); top: 132px; display: flex; align-items: center; gap: 7px; max-width: calc(100vw - 50px); padding: 0; color: #afc8c5; font: 8px/1.6 var(--font-mono); letter-spacing: .35px; pointer-events: none; }
.load-status:before { content: ""; display: block; flex-shrink: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px #c5e6a145; }
.scene-hint { font-size: 9px; color: #8da4af; }
.planet-chip-name { font-size: 12px; }
.planet-chip-meta { font-size: 8px; color: #8ba0aa; letter-spacing: .6px; }
.speed-slider { font-size: 9px; }
.speed-slider input { height: 28px; background: transparent; }
.sources-button { font-size: 8px; color: #8ba4b0; }
.special-worlds button { font-size: 9px; }
#footerCaption { color: #78939f; font-size: 8px; }
#modelNotice { display: block; }
.detail-panel { padding: 0; }
.panel-header { top: 0; margin: 0; padding: 24px 26px 17px; border-bottom-color: rgba(177,204,217,.15); }
.panel-header .panel-close { top: 15px; right: 14px; width: 36px; height: 36px; }
.panel-body { padding: 1px 26px 25px; }
.metric:nth-child(2) > strong { font-size: 12px; line-height: 1.65; overflow-wrap: normal; word-break: normal; hyphens: auto; text-wrap: pretty; }
.metric-grid { align-items: start; }
.panel-mini-facts strong { overflow-wrap: normal; word-break: normal; hyphens: auto; }
.panel-nav button { min-height: 36px; padding: 7px 0; }
.quality-select { width: min(190px, 100%); min-height: 40px; border: 1px solid #91adbd4a; border-radius: 5px; background: #142734; color: #e1ebe6; padding: 9px 12px; font: 12px/1.4 var(--font-sans); cursor: pointer; }
.setting-row select.quality-select { max-width: 190px; padding: 9px 12px; font-size: 12px; }
.quality-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.quality-note { margin: 11px 0 18px; color: #95aeb9; font-size: 11px; line-height: 1.85; }
.performance-info { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; padding: 12px 14px; border: 1px solid #9db7c51f; border-radius: 5px; background: #ffffff03; color: #839ea9; font: 9px/1.8 var(--font-mono); }
.performance-info strong { color: #b9d3b7; font-weight: 400; }
@media(min-width:1600px) { .panel-header { top: 0; margin: 0; padding: 28px 30px 19px; } .panel-body { padding: 1px 30px 29px; } .panel-header .panel-close { top: 19px; right: 18px; } }
@media(max-width:1150px) { .planet-chip-name { font-size: 11px; } .planet-chip-meta { font-size: 7px; } }
@media(max-width:900px) { .panel-header { top: 0; margin: 0; padding: 21px 22px 15px; } .panel-body { padding: 1px 22px 22px; } .panel-header .panel-close { top: 12px; right: 10px; } .scene-hint { font-size: 8px; } #footerCaption { font-size: 7px; } }
@media(max-width:680px) {
  :root { --footer-h: 174px; }
  .atlas-header { row-gap: 10px; padding-top: max(15px, env(safe-area-inset-top)); }
  .brand-wordmark strong { gap: 6px; }
  .version-badge { padding: 3px; font-size: 6px; letter-spacing: .2px; }
  .header-actions { gap: 3px; }
  .header-actions .icon-button, .header-actions .tour-action { width: 42px; height: 42px; }
  .header-actions .icon-button svg { width: 17px; height: 17px; }
  .header-actions .tour-action svg { width: 13px; height: 13px; }
  .system-selector button { min-height: 34px; font-size: 10px; padding: 8px 15px; }
  .scene-status { top: 127px; max-width: calc(50vw - 25px); font-size: 7px; line-height: 1.6; letter-spacing: .35px; }
  .load-status { top: 127px; left: auto; right: 25px; max-width: calc(50vw - 30px); font-size: 7px; line-height: 1.6; letter-spacing: 0; }
  .load-status:before { width: 3px; height: 3px; }
  .atlas-hero .eyebrow { font-size: 8px; letter-spacing: 1.45px; }
  .hero-subline { font-size: 7px; letter-spacing: .65px; }
  .detail-panel { padding: 0; bottom: calc(var(--footer-h) + 8px + env(safe-area-inset-bottom)); max-height: min(43dvh, 500px); }
  .panel-header { top: 0; margin: 0; padding: 18px 20px 13px; }
  .panel-header .panel-close { top: 9px; right: 8px; width: 38px; height: 38px; }
  .panel-body { padding: 1px 20px 20px; }
  .panel-kicker { font-size: 8px; letter-spacing: 1.1px; }
  .panel-type { font-size: 8px; }
  .metric > span { font-size: 8px; letter-spacing: .45px; }
  .metric:nth-child(2) > strong { font-size: 12px; line-height: 1.6; }
  .metric > small, .panel-mini-facts span { font-size: 8px; }
  .panel-mini-facts strong { font-size: 11px; }
  .panel-mini-facts > div { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); }
  .scan-caption { font-size: 8px; }
  .panel-footer { font-size: 8px; }
  .moon-chip { min-height: 36px; font-size: 11px; }
  .panel-nav button { min-height: 40px; font-size: 11px; }
  .atlas-footer { padding-top: 7px; }
  .control-row { row-gap: 2px; margin-bottom: 5px; }
  .scene-hint { font-size: 8px; letter-spacing: .15px; }
  .scene-hint svg { width: 12px; height: 12px; }
  .simulation-controls { gap: 7px; }
  .mini-button { width: 36px; height: 36px; padding: 8px; }
  .mini-button svg { width: 18px; height: 18px; }
  .speed-slider { font-size: 9px; gap: 9px; }
  .speed-slider input { width: 82px; height: 32px; }
  #timeSpeedLabel { min-width: 47px; }
  .control-divider { margin: 0; }
  .planet-list { padding-top: 6px; padding-bottom: 1px; }
  .planet-chip { flex: 0 0 93px; min-height: 44px; gap: 8px; padding: 6px; }
  .planet-chip-name { font-size: 11px; }
  .planet-chip-meta { font-size: 7.5px; letter-spacing: .4px; }
  .planet-icon { width: 22px; height: 22px; }
  .footer-meta { gap: 1px 9px; margin-top: 3px; }
  .special-worlds { gap: 7px; }
  .special-worlds button { min-height: 30px; font-size: 9px; padding: 7px 0; }
  .sources-button { min-height: 30px; font-size: 8px; line-height: 1.4; max-width: 145px; text-align: right; }
  .sources-button svg { width: 10px; height: 10px; }
  #footerCaption { font-size: 7px; line-height: 1.5; letter-spacing: .25px; }
  .dialog-close { width: 38px; height: 38px; }
  .dialog-header .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .setting-row, .key-row { font-size: 12px; }
  .setting-row small { font-size: 10px; }
  .setting-row input[type="checkbox"] { width: 22px; height: 22px; }
  .setting-row select.quality-select { max-width: 155px; min-height: 42px; font-size: 11px; }
  .quality-note { font-size: 11px; }
  .performance-info { gap: 6px 12px; font-size: 8px; padding: 11px 12px; }
}
@media(max-width:370px) { .version-badge { font-size: 6px; } .header-actions .icon-button, .header-actions .tour-action { width: 39px; height: 40px; } .scene-status { left: 22px; } .load-status { right: 22px; font-size: 6.5px; } .speed-slider input { width: 74px; } .simulation-controls { gap: 6px; } .sources-button { max-width: 130px; font-size: 7.5px; } }
@media(max-width:1100px) and (max-height:740px) and (min-width:681px) {
  .atlas-hero { top: 23vh; }
  .atlas-hero h1 { font-size: clamp(43px,4.6vw,56px); }
  .detail-panel { top: 96px; bottom: calc(var(--footer-h) + 20px); }
  .scene-status { top: 93px; }
  .load-status { top: 109px; }
}
@media(orientation:landscape) and (max-height:540px) and (max-width:1100px) {
  :root { --edge: 18px; --footer-h: 108px; }
  .atlas-header { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: max(9px, env(safe-area-inset-top)) var(--edge) 8px; }
  .atlas-brand { grid-column: 1; grid-row: 1; gap: 6px; }
  .brand-wordmark strong { font-size: 9px; letter-spacing: 1.8px; }
  .brand-wordmark small { font-size: 6px; }
  .brand-orbit { width: 23px; height: 23px; }
  .brand-orbit:before { inset: 7px -6px; }
  .system-selector { grid-column: 2; grid-row: 1; padding: 3px; }
  .system-selector button { min-height: 30px; padding: 6px 10px; font-size: 9px; }
  .fiction-marker { font-size: 5px; }
  .header-actions { grid-column: 3; grid-row: 1; }
  .desktop-action { display: none; }
  .header-actions .icon-button, .header-actions .tour-action { width: 34px; height: 34px; }
  .header-actions .tour-action { padding: 8px!important; }
  .header-actions .tour-action span { display: none; }
  .scene-status { top: 65px; left: var(--edge); max-width: 44vw; font-size: 7px; }
  .load-status { top: 65px; left: auto; right: var(--edge); max-width: 42vw; font-size: 7px; }
  .atlas-hero { top: 88px; left: 4.5vw; width: 43vw; right: auto; }
  .atlas-hero .eyebrow { font-size: 7px; }
  .atlas-hero h1 { font-size: clamp(28px,4.1vw,38px); line-height: 1.05; margin: 12px 0; letter-spacing: -1.4px; }
  .atlas-hero p, .hero-subline { display: none; }
  .atlas-hero .btn-primary { min-height: 34px; margin-top: 3px; padding: 8px 13px; font-size: 9px; }
  .detail-panel { top: 77px; bottom: calc(var(--footer-h) + 9px + env(safe-area-inset-bottom)); left: auto; right: var(--edge); width: min(320px,43vw); max-height: none; padding: 0; }
  .panel-header { top: 0; margin: 0; padding: 14px 18px 11px; }
  .panel-header .panel-close { top: 7px; right: 5px; width: 32px; height: 32px; }
  .panel-title { font-size: 29px; margin: 6px 0 3px; }
  .panel-kicker, .panel-type { font-size: 7px; }
  .panel-body { padding: 1px 18px 18px; }
  .atlas-footer { left: var(--edge); right: var(--edge); bottom: max(7px, env(safe-area-inset-bottom)); padding-top: 3px; }
  .control-row { display: flex; justify-content: flex-end; margin-bottom: 3px; }
  .scene-hint { display: none; }
  .simulation-controls { width: auto; gap: 7px; }
  .mini-button { width: 28px; height: 28px; padding: 6px; }
  .mini-button svg { width: 16px; height: 16px; }
  .speed-slider { font-size: 8px; }
  .speed-slider input { width: 86px; height: 27px; }
  .planet-list { padding: 4px 0 0; }
  .planet-chip { flex: 1 0 80px; min-height: 38px; padding: 5px 6px; gap: 7px; }
  .planet-icon { width: 19px; height: 19px; }
  .planet-chip-name { font-size: 10px; }
  .planet-chip-meta { font-size: 6.5px; }
  .footer-meta { display: flex; align-items: center; gap: 12px; margin-top: 1px; }
  .special-worlds button, .sources-button { min-height: 24px; padding: 3px 0; font-size: 8px; }
  #footerCaption { display: none; }
  #atlasDialog { max-height: 90dvh; }
  .dialog-header { padding: 17px 22px 13px; }
  .dialog-header h2 { font-size: 25px; margin-top: 6px; }
  .dialog-content { padding: 16px 22px 20px; }
}

#footerCaption{display:flex;flex-direction:column;align-items:center;gap:4px}.body-count{font-size:8px;color:#859aa4}#modelNotice{font-size:7px;letter-spacing:.3px}.scene-grain{opacity:.012}.loading-screen{position:fixed;inset:0;z-index:80;display:grid;place-items:center;background:#050a12;transition:opacity .3s}.loading-screen strong{font:20px Georgia,serif;letter-spacing:5px;color:#c5e6a1}.loading-screen small{display:block;text-align:center;font:9px monospace;color:#8aa1aa;margin-top:14px}.loading-screen.is-loaded{opacity:0;pointer-events:none}.startup-error{position:fixed;inset:15%;z-index:100;background:#142633;padding:32px;border:1px solid #779399;border-radius:8px}.source-entry{display:block;padding:16px 0;border-top:1px solid #ffffff19;text-decoration:none}.source-entry>span{display:block;font-size:12px;line-height:1.7;color:#cadfc2}.source-entry>small{display:block;font:9px/1.8 monospace;color:#7b9dab;margin-top:5px}.source-entry>.source-credit,.source-entry>.source-notice{font:10px/1.8 var(--font-sans);color:#8da6b1}.model-note{padding:16px;border:1px solid #ffffff20;border-radius:6px;color:#b4c5cc;margin:19px 0}.model-note p{font-size:11px;line-height:1.85}.model-note strong{font:17px Georgia,serif;color:#cdddca}.dialog-content blockquote{font:21px/1.8 Georgia,serif;margin:20px 0;color:#c5e6a1}.detail-panel[aria-hidden="true"]{visibility:hidden}.detail-panel.is-open{visibility:visible}.atlas-hero.is-hidden{display:none!important}.special-worlds button.is-active{color:#c5e6a1}.scan-section .scan-button{margin-top:0}.quality-select{max-width:155px}.performance-info{font-variant-numeric:tabular-nums}.hero-subline{max-width:380px}.speed-slider input{height:18px}.tour-action{white-space:nowrap}@media(max-width:680px){.atlas-hero h1{font-size:clamp(37px,10.4vw,47px)}.body-count{font-size:7px}#modelNotice{font-size:6.5px}.source-entry>small{font-size:8px}.source-entry>.source-credit,.source-entry>.source-notice{font-size:10px}.quality-select{max-width:135px}}@media(max-height:800px) and (min-width:681px){.atlas-hero{top:clamp(112px,20vh,155px)}.atlas-hero h1{font-size:clamp(42px,4.25vw,60px);line-height:1.07;margin:18px 0}.atlas-hero p{font-size:12px}.atlas-hero .btn-primary{margin-top:18px}.hero-subline{margin-top:12px}}
