/* Orbital 007 planetary surveys. Native CSS; target Chromium 152. */
:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #dce3e6; background: #000; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #000; }
#c { display: block; width: 100%; height: 100%; touch-action: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .35; cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #9fbdd0; outline-offset: 4px; }
header { position: fixed; top: 0; inset-inline: 0; padding: 34px 42px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; z-index: 3; }
header a, header button { pointer-events: auto; }
.identity { display: flex; gap: 26px; align-items: center; }
.wordmark { font-size: 17px; font-weight: 550; letter-spacing: .28em; color: #f0f2f2; }
.orbit-mark { margin-left: 13px; color: #99a5ae; font-size: 24px; vertical-align: -2px; }
.edition, .eyebrow, .hint, .version-label, #progress-label, .panel-heading { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 9px; letter-spacing: .15em; }
.edition { color: #6a747d; border-left: 1px solid #283039; padding-left: 25px; }
nav { display: flex; gap: 30px; align-items: center; font-size: 11px; color: #929ba4; }
nav button { background: transparent; border: 0; padding: 7px 0; color: inherit; }
nav span { margin-left: 7px; }
nav a:hover, nav button:hover { color: #fff; }
footer { position: fixed; inset-inline: 0; bottom: 0; padding: 0 42px 34px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; pointer-events: none; z-index: 2; }
footer button, footer a { pointer-events: auto; }
.eyebrow { color: #6a747d; font-size: 8px; }
.world-name { display: flex; gap: 16px; align-items: baseline; margin-top: 8px; font-weight: 350; font-size: 29px; letter-spacing: -.02em; }
.world-name span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10px; color: #87949d; letter-spacing: .14em; }
#new-world { background: none; border: 0; font-size: 10px; color: #87929b; padding: 10px 0 0; }
#new-world span { padding-left: 8px; }
#new-world:hover { color: white; }
.observation-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#view-switcher { display: flex; padding: 5px; border: 1px solid #2c414b; border-radius: 9px; background: #0a1218e6; backdrop-filter: blur(18px); }
#view-switcher button { border: 0; border-radius: 5px; background: transparent; padding: 12px 14px; color: #8c9fa9; font-size: 10px; transition: background .2s, color .2s; }
#view-switcher button[aria-pressed="true"] { color: #e3f5f2; background: #28413f; box-shadow: inset 0 0 0 1px #44635e; }
#view-switcher button:hover { color: white; }
#spectrum-switcher { display: flex; align-items: center; gap: 3px; padding: 3px 8px; background: #0a1218b8; border: 1px solid #20313c; border-radius: 6px; backdrop-filter: blur(18px); }
#spectrum-switcher > span { font: 7px ui-monospace, monospace; letter-spacing: .12em; color: #647c8a; padding-right: 8px; }
#spectrum-switcher button { border: 0; background: transparent; border-radius: 3px; padding: 7px 10px; font-size: 9px; color: #7f959e; }
#spectrum-switcher button[aria-pressed="true"] { color: #dfebe5; background: #243431; }
#spectrum-switcher button:hover { color: white; }
#survey-caption { position: fixed; left: 42px; top: 120px; max-width: 255px; pointer-events: none; z-index: 2; }
#survey-caption h1 { color: #c2d8d6; font-size: 18px; font-weight: 350; letter-spacing: -.01em; margin: 10px 0; }
#survey-caption p { color: #718a92; font-size: 10px; line-height: 1.8; margin: 0; }
.elevation-ramp { height: 4px; background: linear-gradient(90deg,#091b37,#1b6570 36%,#7ea896 53%,#b6ad83 76%,#f2eee0); margin-top: 20px; border-radius: 2px; }
.dry-world .elevation-ramp { background: linear-gradient(90deg,#7ea896,#b6ad83 55%,#f2eee0); }
.thermal-ramp { height: 4px; background: linear-gradient(90deg,#14183e,#443a8b,#a23e61,#e57543,#ffe0a0); margin-top: 20px; border-radius: 2px; }
.scale-labels { display: flex; justify-content: space-between; font: 6px ui-monospace, monospace; letter-spacing: .07em; color: #7c959b; margin-top: 8px; }
#plate-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; font: 9px ui-monospace, monospace; color: #9cb3b5; }
#plate-legend span::before { content: ''; display: inline-block; width: 12px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--boundary); }
.convergent { --boundary: #f08363; } .divergent { --boundary: #55d8df; } .transform { --boundary: #efbc68; }
#plate-legend small { width: 100%; font: 9px/1.6 -apple-system, BlinkMacSystemFont, sans-serif; color: #718a92; }
.light-presets { display: flex; padding: 5px; border: 1px solid #25292e; background: #101317a8; backdrop-filter: blur(18px); border-radius: 30px; }
.light-presets button { background: transparent; border: 0; border-radius: 24px; padding: 11px 20px; font-size: 11px; color: #88929b; transition: background .2s, color .2s; }
.light-presets button[aria-pressed="true"] { background: #293038; color: #eaf0f3; }
.light-presets button:hover { color: white; }
.hint { font-size: 8px; color: #647079; letter-spacing: .11em; }
.hint span { padding: 0 10px; }
.version-label { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: #87929b; font-size: 9px; }
.version-label span { font-size: 8px; color: #515c65; letter-spacing: .09em; }
#settings { position: fixed; right: 42px; top: 96px; width: 318px; background: #0b121af2; border: 1px solid #293b49; border-radius: 14px; padding: 22px; z-index: 4; backdrop-filter: blur(24px); max-height: calc(100dvh - 126px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #344551 transparent; overscroll-behavior: contain; box-shadow: 0 18px 60px #0008; }
[hidden] { display: none !important; }
#arrival-panel { position: fixed; top: 126px; left: 42px; z-index: 3; width: 205px; padding: 16px 18px; border: 1px solid #31434d; border-radius: 9px; background: #0a1218d9; backdrop-filter: blur(14px); }
#arrival-label { color: #a8c6c6; }
.arrival-reading { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; }
#arrival-distance { font: 300 25px ui-monospace, monospace; color: #e0ece7; }
.arrival-reading span { font: 7px ui-monospace, monospace; letter-spacing: .1em; color: #748d97; }
#arrival-progress { appearance: none; display: block; border: 0; width: 100%; height: 2px; background: #263b42; margin-bottom: 12px; }
#arrival-progress::-webkit-progress-bar { background: #263b42; }
#arrival-progress::-webkit-progress-value { background: #a1c4bf; }
#skip-arrival { background: transparent; border: 0; font-size: 11px; color: #bed7d5; padding: 5px 0; }
#skip-arrival span { margin-left: 9px; }
#arrival-panel p { font-size: 9px; color: #718791; margin: 7px 0 0; }
@media (max-width: 600px) { #arrival-panel { left: 22px; top: 107px; width: 168px; padding: 12px 14px; } #arrival-distance { font-size: 20px; } }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: #c4d9e4; letter-spacing: .2em; }
.panel-subtitle { display: block; margin-top: 7px; font-size: 7px; color: #647d8b; letter-spacing: .08em; }
.panel-heading button { border: 0; background: transparent; font-size: 20px; line-height: 16px; color: #a7b1b9; }
#settings label { display: flex; justify-content: space-between; font-size: 11px; color: #a2afb9; }
#settings output { color: #e4e9ee; font-family: ui-monospace, monospace; font-size: 10px; }
#settings input[type="range"] { width: 100%; margin: 8px 0 14px; accent-color: #a6c7d8; height: 20px; cursor: pointer; }
#settings fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
#settings fieldset:disabled { opacity: .45; }
#settings input[type="text"] { width: 100%; padding: 10px 12px; margin: 9px 0 18px; color: #d9e9f0; background: #ffffff05; border: 1px solid #324651; border-radius: 5px; font: 12px ui-monospace, monospace; letter-spacing: .16em; }
#settings input[aria-invalid="true"] { border-color: #edaa8c; }
.field-hint { font: 8px ui-monospace, monospace; color: #698491; }
.deck-toolbar { display: flex; gap: 8px; margin-bottom: 16px; }
.deck-toolbar button, .world-presets button { border: 1px solid #2c414e; border-radius: 5px; color: #b8cad5; background: #a6d8e507; padding: 10px 8px; font-size: 10px; flex: 1; }
.deck-toolbar button[aria-pressed="true"] { border-color: #98b9c9; color: #edf7fc; }
.control-section { border-top: 1px solid #24333e; }
.control-section summary { cursor: pointer; list-style: none; padding: 16px 0; font-size: 11px; color: #b9cbd5; display: flex; align-items: center; gap: 8px; user-select: none; }
.control-section summary::-webkit-details-marker { display: none; }
.control-section summary::before { content: '＋'; font-size: 12px; color: #6f96a9; }
.control-section[open] summary::before { content: '−'; }
.section-badge { margin-left: auto; font: 7px ui-monospace, monospace; letter-spacing: .1em; color: #769eae; }
.world-section .section-badge { color: #b5a988; }
.section-fields { padding-top: 3px; }
#settings .section-note { margin: 0 0 16px; font-size: 10px; line-height: 1.65; color: #7f929f; }
.world-presets { display: flex; gap: 6px; margin: 0 0 19px; }
#settings .primary-action { width: 100%; padding: 12px; border: 1px solid #749db0; background: #a1cbd91a; border-radius: 5px; color: #d4e8ef; font-size: 11px; }
#settings #world-status { min-height: 16px; margin: 10px 0 17px; font-size: 9px; color: #b2baa8; }
.panel-actions { display: flex; gap: 8px; border-top: 1px solid #24333e; padding-top: 17px; }
.panel-actions button { font-size: 10px; border: 1px solid #3b4652; background: #ffffff06; border-radius: 5px; padding: 9px 10px; flex: 1; }
#settings p { font-size: 10px; line-height: 1.8; color: #70818f; margin: 20px 0 0; }
.share-action { border: 0; background: transparent; width: 100%; padding: 16px 0 0; color: #a6c6d4; font-size: 10px; }
#settings #settings-status { margin-top: 12px; font-size: 10px; color: #a0bdca; }
#settings #settings-status:empty { display: none; }
#settings .deck-help { font-size: 9px; color: #657f8f; }
#settings button:hover:not(:disabled) { color: #fff; border-color: #93b6c5; }
#loading { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #000; z-index: 1; }
.loading-orbit { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #18232b; border-top-color: #92afc2; animation: revolution 1.8s linear infinite; }
#loading p { font-size: 13px; font-weight: 300; color: #b3c1cb; margin: 26px 0 16px; }
.progress-track { width: 180px; height: 1px; background: #17222a; margin-bottom: 14px; }
#progress { height: 100%; width: 0; background: #9eb9cb; transition: width .15s; }
#progress-label { color: #526371; font-size: 8px; }
#world-class, #moon-type, #moon-layout, #moon-focus, #ring-type, #sky-mode, #minor-type { display: block; width: 100%; margin: 10px 0 14px; padding: 11px 10px; color: #e0edea; background: #101e25; border: 1px solid #65818c55; border-radius: 4px; font: inherit; color-scheme: dark; }
#settings .toggle-field { justify-content: flex-start; gap: 9px; margin: 0 0 18px; }
#ring-enabled, #orbit-paths { accent-color: #a5c8d7; width: 16px; height: 16px; }
#settings input[type="range"]:disabled { opacity: .4; cursor: not-allowed; }
#class-description { min-height: 3em; }
#class-defaults { margin: 0 0 16px; }
#loading.refining { inset: auto 32px 135px auto; width: 220px; padding: 16px; border: 1px solid #25343d; border-radius: 12px; background: #071016dc; pointer-events: none; align-items: flex-start; }
#loading.refining .loading-orbit { display: none; }
#loading.refining p { margin: 0 0 12px; }
@media (max-width: 600px) {
  #loading.refining { inset: 70px 18px auto; width: auto; padding: 7px 10px; border-radius: 7px; }
  #loading.refining p { font-size: 11px; margin: 0 0 4px; }
  #loading.refining .progress-track { width: 100%; margin: 0; }
  #loading.refining #progress-label { display: none; }
}
body.interface-hidden header, body.interface-hidden footer, body.interface-hidden #settings, body.interface-hidden #survey-caption, body.interface-hidden #arrival-panel { visibility: hidden; }
@keyframes revolution { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  header { padding: 26px; } .edition { display: none; } footer { padding: 0 26px 26px; }
  .version-label span { display: none; } .light-presets button { padding: 10px 14px; } #settings { right: 26px; }
  #view-switcher button { padding: 11px 9px; } #survey-caption { left: 26px; top: 106px; max-width: 210px; }
}
@media (max-width: 600px) {
  header { padding: 22px; align-items: start; } .wordmark { font-size: 13px; } .orbit-mark { font-size: 19px; margin-left: 8px; }
  nav { gap: 12px; font-size: 10px; flex-direction: column; align-items: end; } nav button { padding: 0; }
  footer { grid-template-columns: 1fr 1fr; padding: 0 18px max(18px, env(safe-area-inset-bottom)); gap: 16px; }
  .observation-controls { grid-column: 1 / -1; grid-row: 2; gap: 10px; width: 100%; min-width: 0; }
  #view-switcher { width: 100%; padding: 4px; } #view-switcher button { flex: 1; padding: 12px 3px; font-size: 8px; }
  #spectrum-switcher { width: 100%; justify-content: center; } #spectrum-switcher button { flex: 1; padding: 8px 4px; font-size: 8px; } #spectrum-switcher > span { font-size: 6px; padding-right: 4px; }
  #survey-caption { top: 106px; left: 22px; max-width: 230px; } #survey-caption h1 { font-size: 16px; margin: 7px 0; } #survey-caption p { font-size: 9px; }
  #plate-legend { gap: 9px; margin-top: 12px; font-size: 8px; } .elevation-ramp { margin-top: 12px; }
  .world-name { font-size: 23px; } .version-label { justify-self: end; }
  .light-presets { width: 100%; justify-content: center; } .light-presets button { flex: 1; padding: 12px 16px; }
  #settings { top: 92px; right: 14px; width: min(330px, calc(100vw - 28px)); max-height: calc(100dvh - 114px); padding: 20px; }
  .hint { font-size: 7px; } .eyebrow { font-size: 7px; }
}
@media (max-height: 580px) and (min-width: 601px) { header { padding-top: 18px; } footer { padding-bottom: 18px; } .hint { display: none; } .world-name { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
