/* ============================================================
   COSMOS ATLAS — design system
   Deep-space UI: near-black blues, cyan starlight accents,
   glass panels, generous letterspacing. No external fonts.
   ============================================================ */
:root {
  --bg: #04070f;
  --bg2: #070d1a;
  --ink: #e8f1fa;
  --ink-dim: #9db4c8;
  --ink-faint: #71889c;
  --accent: #7fd8ff;
  --accent2: #ffd27f;
  --accent-dim: rgba(127, 216, 255, .35);
  --glass: rgba(9, 15, 27, .78);
  --glass-light: rgba(20, 30, 48, .6);
  --line: rgba(127, 216, 255, .16);
  --line-strong: rgba(127, 216, 255, .38);
  --danger: #ff8f8f;
  --ok: #8fffc8;
  --shadow: 0 10px 40px rgba(0, 0, 0, .55);
  --r: 14px;
  --font: "Inter", "SF Pro Text", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Roboto Mono", monospace;
  --disp-ls: .18em;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--font); }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font-family: inherit; }
::selection { background: rgba(127, 216, 255, .3); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(127, 216, 255, .18); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(127, 216, 255, .35); }
::-webkit-scrollbar-track { background: transparent; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; cursor: grab; }
#scene:focus-visible { outline: 2px solid var(--accent-dim); outline-offset: -2px; }
#scene.dragging { cursor: grabbing; }
#scene.pointing { cursor: pointer; }

/* ---------- glass ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ---------- boot screen ---------- */
#boot-screen {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 38%, #0b1526 0%, var(--bg) 62%);
  transition: opacity .8s ease;
}
#boot-screen.done { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; padding: 24px; max-width: 480px; }
.boot-logo { animation: bob 4s ease-in-out infinite; margin-bottom: 18px; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
.boot-title { font-size: 30px; font-weight: 300; letter-spacing: var(--disp-ls); color: var(--ink); }
.boot-sub { margin-top: 8px; color: var(--ink-dim); font-size: 13px; letter-spacing: .08em; }
.boot-bar { margin: 26px auto 12px; width: 240px; height: 2px; background: rgba(127,216,255,.14); border-radius: 2px; overflow: hidden; }
#boot-progress { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #b9e8ff); transition: width .3s ease; box-shadow: 0 0 12px var(--accent); }
#boot-status { color: var(--ink-faint); font-size: 12px; font-family: var(--mono); min-height: 16px; }
.boot-error { color: var(--danger); margin-top: 16px; }

#webgl-fail { position: fixed; inset: 0; z-index: 99; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
#webgl-fail h2 { font-weight: 400; letter-spacing: .04em; margin-bottom: 10px; }
#webgl-fail p { color: var(--ink-dim); line-height: 1.6; max-width: 46ch; }
.panel-card { padding: 28px 30px; max-width: 520px; }

/* ---------- labels ---------- */
#labels { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.lbl {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -140%);
  pointer-events: auto; cursor: pointer; white-space: nowrap; user-select: none;
  font-size: 11px; letter-spacing: .14em; color: var(--ink-dim);
  text-shadow: 0 1px 6px rgba(0,0,0,.9); padding: 3px 6px;
  transition: color .15s ease; will-change: transform, opacity;
}
.lbl:hover, .lbl.hot { color: #fff; }
.lbl .tick { display: block; margin: 2px auto 0; width: 1px; height: 9px; background: linear-gradient(180deg, var(--accent-dim), transparent); }
.lbl.minor { font-size: 10px; color: var(--ink-faint); letter-spacing: .1em; }
.lbl.major { font-size: 12px; color: var(--ink); }
.lbl.sc { color: #ffd9a0; }      /* spacecraft */
.lbl.dso { color: #c9a9ff; }     /* deep sky */
.lbl.star-lbl { color: #ffe9c4; }
.lbl.dim { opacity: .35; }

/* ---------- HUD top ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; gap: 12px; pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud-left, .hud-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .15s, background .15s, transform .1s;
}
.icon-btn svg { width: 19px; height: 19px; fill: var(--ink-dim); transition: fill .15s; }
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn:hover svg { fill: var(--accent); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.small { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; color: var(--ink-faint); background: transparent; border-color: transparent; }
.icon-btn.small:hover { color: var(--ink); border-color: var(--line); }
.icon-btn.on { border-color: var(--line-strong); background: rgba(127,216,255,.1); }
.icon-btn.on svg { fill: var(--accent); }

#realm-switch {
  display: flex; gap: 2px; padding: 4px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.realm-btn {
  padding: 7px 13px; border-radius: 9px; font-size: 11px; letter-spacing: .12em;
  color: var(--ink-faint); transition: color .15s, background .15s; text-transform: uppercase;
}
.realm-btn:hover { color: var(--ink); }
.realm-btn.active { color: #fff; background: rgba(127, 216, 255, .14); box-shadow: inset 0 0 0 1px var(--line-strong); }

#search-wrap { position: relative; }
#search {
  width: 250px; padding: 10px 14px; border-radius: 11px; font-size: 13px;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  outline: none; transition: border-color .15s, width .25s ease; letter-spacing: .03em;
}
#search::placeholder { color: var(--ink-faint); }
#search:focus { border-color: var(--line-strong); width: 300px; }
#search-results {
  position: absolute; top: 46px; right: 0; width: 320px; max-height: 54vh; overflow-y: auto;
  padding: 6px; z-index: 20;
}
.sr-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.sr-item:hover, .sr-item.sel { background: rgba(127, 216, 255, .1); }
.sr-item .sr-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sr-item .sr-name { font-size: 13px; }
.sr-item .sr-kind { margin-left: auto; font-size: 10px; letter-spacing: .12em; color: var(--ink-faint); text-transform: uppercase; }
.sr-empty { padding: 14px; color: var(--ink-faint); font-size: 12px; text-align: center; }

/* ---------- time bar ---------- */
#time-bar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; align-items: center; gap: 4px; padding: 7px 10px;
}
.time-btn {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px; display: grid; place-items: center;
  color: var(--ink-dim); font-size: 11px; letter-spacing: .06em; transition: color .15s, background .15s;
}
.time-btn:hover { color: var(--accent); background: rgba(127,216,255,.08); }
.time-btn.text { font-size: 10px; letter-spacing: .16em; color: var(--ink-faint); }
.time-btn.text:hover { color: var(--accent); }
#time-readout { display: flex; flex-direction: column; align-items: center; padding: 0 14px; min-width: 170px; }
#time-date { font-family: var(--mono); font-size: 13px; color: var(--ink); letter-spacing: .04em; }
#time-speed { font-size: 10px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; margin-top: 2px; }
#time-speed.paused { color: var(--accent2); }
#time-speed.rev { color: #ffb3d9; }

#context-chip {
  position: fixed; bottom: 16px; left: 16px; z-index: 9; padding: 10px 14px;
  font-size: 11px; letter-spacing: .06em; color: var(--ink-dim); max-width: 320px; line-height: 1.55;
}
#context-chip b { color: var(--ink); font-weight: 500; }
#context-chip .dist { font-family: var(--mono); color: var(--accent); }

/* ---------- browser (atlas index) ---------- */
#browser {
  position: fixed; top: 70px; left: 16px; bottom: 84px; width: 268px; z-index: 8;
  display: flex; flex-direction: column; overflow: hidden;
}
#browser-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px 11px; font-size: 11px; letter-spacing: .22em; color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
}
#browser-body { overflow-y: auto; padding: 8px; flex: 1; }
.br-group { margin-bottom: 4px; }
.br-group-head {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 8px 9px; border-radius: 9px; font-size: 11px; letter-spacing: .16em;
  color: var(--ink-dim); text-transform: uppercase; transition: background .15s;
}
.br-group-head:hover { background: rgba(127,216,255,.07); }
.br-group-head .tw { transition: transform .2s; font-size: 9px; color: var(--ink-faint); }
.br-group.open .tw { transform: rotate(90deg); }
.br-items { display: none; padding-left: 6px; }
.br-group.open .br-items { display: block; }
.br-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 6px 9px; border-radius: 8px; font-size: 12.5px; color: var(--ink-dim);
  transition: background .12s, color .12s;
}
.br-item:hover { background: rgba(127,216,255,.09); color: var(--ink); }
.br-item.sel { background: rgba(127,216,255,.14); color: #fff; }
.br-item .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; box-shadow: 0 0 6px currentColor; }
.br-item .sub { margin-left: auto; font-size: 10px; color: var(--ink-faint); }
#browser-tab {
  position: fixed; top: 70px; left: 16px; z-index: 8; padding: 9px 13px;
  font-size: 10px; letter-spacing: .18em; color: var(--ink-dim);
}
#browser-tab:hover { color: var(--accent); border-color: var(--line-strong); }

/* ---------- info panel ---------- */
#info-panel {
  position: fixed; top: 70px; right: 16px; bottom: 84px; width: min(392px, calc(100vw - 32px)); z-index: 9;
  overflow: hidden; display: flex; flex-direction: column;
  animation: slideIn .35s cubic-bezier(.2, .9, .25, 1);
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0 } to { transform: none; opacity: 1 } }
#info-close { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(4,8,16,.5); }
#info-body { overflow-y: auto; flex: 1; }
.ip-hero { position: relative; height: 190px; overflow: hidden; background: radial-gradient(ellipse at center, #10203a, #060b16); flex: none; }
.ip-hero img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s ease; }
.ip-hero img.ld { opacity: 1; }
.ip-hero .ip-hero-grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(9,15,27,.92) 96%); }
.ip-hero .ip-credit { position: absolute; right: 9px; bottom: 7px; font-size: 9px; color: rgba(255,255,255,.5); letter-spacing: .04em; }
.ip-hero.noimg .ip-credit { display: none; }
.ip-hero.noimg { height: 96px; }
.ip-head { padding: 0 18px; margin-top: -34px; position: relative; }
.ip-kind { font-size: 10px; letter-spacing: .24em; color: var(--accent); text-transform: uppercase; }
.ip-name { font-size: 27px; font-weight: 300; letter-spacing: .1em; margin: 3px 0 2px; }
.ip-tagline { font-size: 12.5px; color: var(--ink-dim); font-style: italic; letter-spacing: .02em; }
.ip-actions { display: flex; gap: 8px; padding: 13px 18px 4px; }
.ip-btn {
  padding: 8px 13px; border-radius: 9px; font-size: 11px; letter-spacing: .14em;
  border: 1px solid var(--line); color: var(--ink-dim); text-transform: uppercase;
  transition: all .15s;
}
.ip-btn:hover { border-color: var(--line-strong); color: var(--accent); }
.ip-btn.primary { background: rgba(127,216,255,.12); border-color: var(--line-strong); color: var(--accent); }
.ip-sec { padding: 14px 18px 4px; }
.ip-sec h3 { font-size: 10px; letter-spacing: .22em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 9px; }
.ip-overview { font-size: 13.5px; line-height: 1.72; color: #cfdeeb; }
.ip-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ip-stat { background: var(--glass-light); border: 1px solid rgba(127,216,255,.09); border-radius: 10px; padding: 9px 11px; }
.ip-stat .v { font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
.ip-stat .v small { font-size: 10px; color: var(--ink-faint); }
.ip-stat .k { font-size: 9.5px; letter-spacing: .14em; color: var(--ink-faint); text-transform: uppercase; margin-top: 3px; }
.ip-stat.wide { grid-column: 1 / -1; }
.ip-hl { list-style: none; }
.ip-hl li {
  position: relative; padding: 7px 0 7px 20px; font-size: 12.8px; line-height: 1.55; color: #c4d5e4;
  border-bottom: 1px dashed rgba(127,216,255,.08);
}
.ip-hl li:last-child { border-bottom: none; }
.ip-hl li::before { content: "◆"; position: absolute; left: 2px; top: 8px; font-size: 8px; color: var(--accent-dim); }
.ip-feat { margin-bottom: 9px; }
.ip-feat b { font-size: 12.5px; color: var(--ink); font-weight: 500; }
.ip-feat p { font-size: 12px; color: var(--ink-dim); line-height: 1.55; margin-top: 2px; }
.ip-miss { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(127,216,255,.08); }
.ip-miss:last-child { border: none; }
.ip-miss .yr { font-family: var(--mono); font-size: 11px; color: var(--accent); flex: none; width: 74px; padding-top: 2px; }
.ip-miss .mn b { font-size: 12.5px; font-weight: 500; }
.ip-miss .mn span { display: block; font-size: 11.5px; color: var(--ink-dim); line-height: 1.5; margin-top: 1px; }
.ip-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ip-thumb {
  position: relative; border-radius: 9px; overflow: hidden; aspect-ratio: 16/10; cursor: pointer;
  background: var(--glass-light); border: 1px solid rgba(127,216,255,.08);
}
.ip-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .3s; }
.ip-thumb img.ld { opacity: 1; }
.ip-thumb:hover img { transform: scale(1.06); }
.ip-thumb .tt { position: absolute; left: 7px; right: 7px; bottom: 5px; font-size: 9.5px; color: #fff; text-shadow: 0 1px 4px #000; z-index: 2; }
.ip-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65)); }
.ip-more { grid-column: 1/-1; text-align: center; padding: 9px; font-size: 10.5px; letter-spacing: .16em; color: var(--ink-faint); border: 1px dashed var(--line); border-radius: 9px; cursor: pointer; text-transform: uppercase; }
.ip-more:hover { color: var(--accent); border-color: var(--line-strong); }
.ip-srcs { padding: 6px 18px 20px; }
.ip-srcs a { display: block; font-size: 10.5px; color: var(--ink-faint); text-decoration: none; padding: 2px 0; word-break: break-all; }
.ip-srcs a:hover { color: var(--accent); }
.ip-note { margin: 10px 18px 0; padding: 9px 12px; border-left: 2px solid var(--accent-dim); background: rgba(127,216,255,.05); font-size: 11.5px; color: var(--ink-dim); line-height: 1.55; border-radius: 0 8px 8px 0; }

/* ---------- tour bar ---------- */
#tour-bar {
  position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%); z-index: 11;
  width: min(620px, calc(100vw - 32px)); padding: 16px 18px 12px;
}
#tour-caption { font-size: 14px; line-height: 1.65; color: #d9e7f2; text-align: center; min-height: 44px; }
#tour-caption b { color: var(--accent); font-weight: 500; }
#tour-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
#tour-step { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); min-width: 52px; text-align: center; }

/* ---------- modal (gallery/settings/lightbox) ---------- */
#modal-root { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(2, 4, 9, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal { width: min(860px, 100%); max-height: calc(100vh - 60px); display: flex; flex-direction: column; overflow: hidden; animation: mUp .3s cubic-bezier(.2,.9,.25,1); }
@keyframes mUp { from { transform: translateY(18px); opacity: 0 } to { transform: none; opacity: 1 } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 13px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.modal-head .sp { flex: 1; }
.modal-body { overflow-y: auto; padding: 16px 18px; }
.nasa-search-row { display: flex; gap: 9px; margin-bottom: 14px; }
.nasa-search-row input {
  flex: 1; padding: 11px 14px; border-radius: 10px; background: var(--glass-light);
  border: 1px solid var(--line); color: var(--ink); font-size: 13px; outline: none;
}
.nasa-search-row input:focus { border-color: var(--line-strong); }
.nasa-search-row .ip-btn { flex: none; }
.nasa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.nasa-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--glass-light); border: 1px solid rgba(127,216,255,.07); }
.nasa-cell img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s; }
.nasa-cell img.ld { opacity: 1; }
.nasa-cell .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 9.5px; color: #eee; background: linear-gradient(transparent, rgba(0,0,0,.8)); z-index: 2; }
.nasa-note { text-align: center; color: var(--ink-faint); font-size: 12px; padding: 18px 10px; line-height: 1.6; }
.lightbox { width: min(1060px, 100%); }
.lightbox .lb-img { background: #000; display: grid; place-items: center; max-height: 62vh; overflow: hidden; }
.lightbox .lb-img img { max-width: 100%; max-height: 62vh; object-fit: contain; }
.lightbox .lb-meta { padding: 13px 18px 17px; }
.lightbox .lb-meta h3 { font-weight: 400; font-size: 15px; letter-spacing: .04em; }
.lightbox .lb-meta p { margin-top: 5px; font-size: 12.5px; line-height: 1.6; color: var(--ink-dim); }
.lightbox .lb-meta .cr { margin-top: 7px; font-size: 10.5px; color: var(--ink-faint); letter-spacing: .04em; }

/* settings */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-bottom: 1px dashed rgba(127,216,255,.08); }
.set-row:last-child { border: none; }
.set-row .sl { font-size: 13px; }
.set-row .sl small { display: block; color: var(--ink-faint); font-size: 11px; margin-top: 2px; line-height: 1.45; }
.seg { display: flex; gap: 2px; background: var(--glass-light); padding: 3px; border-radius: 9px; border: 1px solid var(--line); }
.seg button { padding: 6px 12px; border-radius: 7px; font-size: 11px; letter-spacing: .08em; color: var(--ink-faint); }
.seg button.on { background: rgba(127,216,255,.15); color: #fff; }
.tgl { position: relative; width: 42px; height: 24px; border-radius: 13px; background: var(--glass-light); border: 1px solid var(--line); transition: background .2s; flex: none; }
.tgl::after { content: ""; position: absolute; top: 2.5px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink-faint); transition: transform .2s, background .2s; }
.tgl.on { background: rgba(127,216,255,.22); }
.tgl.on::after { transform: translateX(18px); background: var(--accent); }

/* tours list */
.tour-card { width: 100%; font: inherit; color: inherit; display: flex; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; align-items: center; }
.tour-card:hover { border-color: var(--line-strong); background: rgba(127,216,255,.05); }
.tour-card .ti { font-size: 22px; flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--glass-light); border-radius: 11px; }
.tour-card b { font-size: 13.5px; font-weight: 500; letter-spacing: .04em; }
.tour-card p { font-size: 11.5px; color: var(--ink-dim); margin-top: 3px; line-height: 1.5; }
.tour-card .n { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-faint); flex: none; }

/* ---------- onboarding ---------- */
#onboarding { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 22px; background: radial-gradient(ellipse at 50% 30%, rgba(11,21,38,.5), rgba(4,7,15,.88)); }
.ob-card { max-width: 560px; padding: 40px 42px 30px; text-align: center; }
.ob-card h1 { font-size: 32px; font-weight: 200; letter-spacing: .24em; }
.ob-tag { margin-top: 10px; color: var(--accent); font-size: 14px; letter-spacing: .06em; font-style: italic; }
.ob-body { margin-top: 16px; color: var(--ink-dim); font-size: 13.5px; line-height: 1.75; }
.ob-hints { display: flex; justify-content: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.ob-hints span { font-size: 11.5px; color: var(--ink-faint); letter-spacing: .04em; }
.ob-hints b { color: var(--ink); font-weight: 500; }
#ob-start {
  margin-top: 26px; padding: 13px 34px; border-radius: 12px; font-size: 12px; letter-spacing: .26em;
  color: #06131f; background: linear-gradient(135deg, #8fdcff, #c5ecff); font-weight: 600;
  box-shadow: 0 0 34px rgba(127,216,255,.35); transition: transform .15s, box-shadow .2s;
}
#ob-start:hover { transform: translateY(-1px); box-shadow: 0 0 48px rgba(127,216,255,.5); }
.ob-credit { margin-top: 22px; font-size: 10px; color: var(--ink-faint); letter-spacing: .06em; line-height: 1.7; }

/* ---------- toasts ---------- */
#toast-root { position: fixed; top: 68px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 10px 18px; border-radius: 11px; font-size: 12.5px; color: var(--ink);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: tIn .3s ease; letter-spacing: .03em;
}
.toast.out { opacity: 0; transform: translateY(-8px); transition: all .4s; }
@keyframes tIn { from { opacity: 0; transform: translateY(-10px) } to { opacity: 1; transform: none } }

/* ---------- responsive ---------- */
@media (max-width: 600px) {
  #search { width: 92px; }
  #search:focus { width: 150px; }
  #btn-nasa { display: none; }
  .hud { gap: 6px; padding: 10px 8px; }
  .hud-left, .hud-right { gap: 6px; }
}
@media (max-width: 900px) {
  body.panel-open #time-bar { display: none; }
  body.panel-open #context-chip { display: none; }
  #browser { display: none !important; }
  #browser-tab { display: none !important; }
  #realm-switch { overflow-x: auto; max-width: calc(100vw - 120px); scrollbar-width: none; }
  #realm-switch::-webkit-scrollbar { display: none; }
  .realm-btn { padding: 7px 9px; font-size: 10px; letter-spacing: .06em; flex: none; }
  #search { width: 150px; }
  #search:focus { width: 190px; }
  #info-panel { top: auto; right: 0; left: 0; bottom: 0; width: 100%; max-height: 56vh; border-radius: 18px 18px 0 0; animation: upIn .3s ease; }
  @keyframes upIn { from { transform: translateY(40px); opacity: .4 } to { transform: none; opacity: 1 } }
  #time-bar { bottom: 10px; padding: 5px 6px; }
  #time-readout { min-width: 128px; padding: 0 8px; }
  #context-chip { display: none !important; }
  .hud { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01s !important; transition-duration: .05s !important; }
}
