/* =========================================================
   HELIOS · 太阳系动态星图
   A quiet, cinematic orrery in deep space.
   ========================================================= */

:root {
  --bg: #04060c;
  --bg-raised: #080c15;
  --panel: rgba(8, 12, 21, 0.76);
  --panel-solid: #0a0f19;
  --ink: #f0ede5;
  --ink-soft: #c8c8c4;
  --muted: #8992a2;
  --dim: #5d6574;
  --faint: rgba(255, 255, 255, 0.055);
  --line: rgba(209, 221, 240, 0.12);
  --line-strong: rgba(224, 233, 248, 0.22);
  --gold: #e6c58d;
  --gold-bright: #ffe2ad;
  --gold-deep: #b78347;
  --cyan: #8ad7f6;
  --cyan-soft: rgba(138, 215, 246, 0.16);
  --danger: #f0987d;
  --serif: "STSong", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --topbar-h: 76px;
  --footer-h: 45px;
  --catalog-w: 318px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { background: var(--bg); }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 1px solid rgba(230, 197, 141, 0.72); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { background: rgba(230, 197, 141, 0.28); color: #fff; }

.app { position: relative; width: 100vw; height: 100vh; overflow: hidden; }

/* ---------- cosmic backdrop ---------- */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 62% at 72% 46%, rgba(17, 29, 51, 0.6), transparent 72%),
    radial-gradient(ellipse 80% 70% at 30% 100%, rgba(28, 20, 16, 0.48), transparent 68%),
    linear-gradient(155deg, #05070e 0%, #04060c 50%, #070910 100%);
}
#orrery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#orrery.is-dragging { cursor: grabbing; }
#orrery.is-hovering { cursor: pointer; }
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: screen;
}
.nebula-one {
  width: 52vw; height: 45vw;
  right: -13vw; top: 2vh;
  background: radial-gradient(circle at 50% 50%, rgba(29, 65, 99, 0.28), transparent 66%);
  animation: nebulaDrift 28s ease-in-out infinite alternate;
}
.nebula-two {
  width: 48vw; height: 36vw;
  left: -15vw; bottom: -11vw;
  background: radial-gradient(circle at 50% 50%, rgba(105, 69, 38, 0.17), transparent 68%);
  animation: nebulaDrift 36s ease-in-out infinite alternate-reverse;
}
@keyframes nebulaDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2vw, -1.5vh, 0) scale(1.08); }
}
.star-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 32% 26% at 58% 48%, rgba(194, 219, 255, 0.035), transparent 72%),
    radial-gradient(circle at 78% 17%, rgba(255, 239, 203, 0.06) 0 1px, transparent 2px),
    radial-gradient(circle at 19% 31%, rgba(173, 219, 255, 0.08) 0 1px, transparent 2px);
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 5, 10, 0.62) 0%, transparent 17%, transparent 82%, rgba(3, 5, 10, 0.44) 100%),
    radial-gradient(ellipse 85% 80% at 55% 45%, transparent 47%, rgba(2, 3, 7, 0.6) 100%),
    linear-gradient(180deg, rgba(2, 4, 8, 0.46), transparent 15%, transparent 83%, rgba(2, 4, 8, 0.5));
}
.film-grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  animation: grainShift 0.45s steps(2) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.4%); }
  50% { transform: translate(1.2%, -1.8%); }
  75% { transform: translate(-1.6%, -0.8%); }
  100% { transform: translate(0, 0); }
}

/* ---------- shared small elements ---------- */
.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: #90dca9;
  box-shadow: 0 0 8px rgba(144, 220, 169, 0.8);
  vertical-align: 1px;
  animation: livePulse 2.6s ease-in-out infinite;
}
.live-dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #a5ddb4;
  box-shadow: 0 0 0 4px rgba(143, 215, 165, 0.07), 0 0 12px rgba(143, 215, 165, 0.7);
  animation: livePulse 2.8s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 0.55; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1); }
}
.panel-close {
  display: grid;
  place-items: center;
  width: 29px; height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: 0.25s var(--ease);
}
.panel-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; }
.panel-close:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255,255,255,0.045); }

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 24px 0 26px;
  border-bottom: 1px solid rgba(221, 230, 245, 0.08);
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.9), rgba(4, 7, 13, 0.64));
  backdrop-filter: blur(18px) saturate(1.1);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 26px; right: 26px; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 197, 141, 0.24) 20%, rgba(174, 213, 255, 0.1) 66%, transparent);
  pointer-events: none;
}
.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 168px;
  outline: none;
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(230, 197, 141, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle at 37% 29%, rgba(230, 197, 141, 0.12), transparent 65%);
  box-shadow: inset 0 0 20px rgba(230, 197, 141, 0.035);
}
.brand-mark svg { width: 31px; height: 31px; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--ink);
}
.brand-copy small {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.32em;
  color: var(--gold-deep);
}
.main-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 2px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 13px 0;
  color: #858e9e;
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color 0.28s ease;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: -1px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: 0.35s var(--ease);
}
.nav-item svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}
.nav-item svg .fill { fill: currentColor; stroke: none; }
.nav-item:hover { color: #d8dbdf; }
.nav-item.is-active { color: var(--ink); }
.nav-item.is-active::after { opacity: 1; transform: scaleX(1); }
.nav-item.is-active svg { color: var(--gold); }
.nav-deep.is-active { color: var(--gold-bright); }
.nav-deep.is-active svg { filter: drop-shadow(0 0 7px rgba(230, 197, 141, 0.4)); }
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}
.ephemeris-status {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.ephemeris-status div { display: flex; flex-direction: column; gap: 2px; }
.meta-label {
  font-family: var(--mono);
  font-size: 6.8px;
  letter-spacing: 0.15em;
  color: var(--dim);
}
.ephemeris-status strong {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 450;
  letter-spacing: 0.08em;
  color: #c9cbd0;
  font-variant-numeric: tabular-nums;
}
.ephemeris-status em { font-style: normal; color: var(--gold); }
.icon-button {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: 0.25s var(--ease);
}
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.icon-button:hover { color: var(--ink); border-color: var(--line-strong); }
.mobile-menu { display: none; }

/* ---------- catalog ---------- */
.catalog {
  position: fixed;
  z-index: 60;
  left: 18px;
  top: calc(var(--topbar-h) + 12px);
  bottom: calc(var(--footer-h) + 12px);
  width: var(--catalog-w);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(215, 228, 248, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(13, 18, 30, 0.88) 0%, rgba(7, 11, 19, 0.76) 65%, rgba(7, 10, 17, 0.68) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(22px) saturate(1.15);
  overflow: hidden;
  transition: transform 0.65s var(--ease), opacity 0.4s ease;
  animation: catalogIn 0.9s var(--ease) both 0.15s;
}
@keyframes catalogIn {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: translateX(0); }
}
.app.catalog-closed .catalog {
  transform: translateX(calc(-100% - 32px));
  opacity: 0;
  pointer-events: none;
  animation: none;
}
.catalog::before {
  content: "";
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 197, 141, 0.35), transparent);
}
.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 21px 18px 14px 20px;
}
.catalog-head h2 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 16px 12px;
  height: 37px;
  padding: 0 10px;
  border: 1px solid rgba(216, 228, 247, 0.105);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  transition: 0.25s ease;
}
.search-box:focus-within {
  border-color: rgba(230, 197, 141, 0.36);
  background: rgba(255, 255, 255, 0.038);
  box-shadow: 0 0 0 3px rgba(230, 197, 141, 0.035);
}
.search-box svg {
  width: 15px; height: 15px;
  flex: 0 0 auto;
  margin-right: 8px;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.3;
  stroke-linecap: round;
}
.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.search-box input::placeholder { color: #5f6878; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box kbd {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--dim);
}
.filter-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 0 16px 14px;
}
.filter-chips button {
  min-width: 0;
  padding: 5px 5px 6px;
  border: 1px solid rgba(214, 227, 247, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  color: #7f8898;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: 0.22s ease;
}
.filter-chips button span {
  margin-left: 2px;
  font-family: var(--mono);
  font-size: 7.5px;
  color: #5e6675;
}
.filter-chips button:hover { color: var(--ink-soft); border-color: var(--line); }
.filter-chips button.is-active {
  color: var(--gold-bright);
  border-color: rgba(230, 197, 141, 0.31);
  background: linear-gradient(180deg, rgba(230, 197, 141, 0.12), rgba(230, 197, 141, 0.045));
}
.filter-chips button.is-active span { color: rgba(255, 226, 173, 0.62); }

.catalog-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 9px 12px 11px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.13) transparent;
}
.catalog-scroll::-webkit-scrollbar { width: 4px; }
.catalog-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 10px; }
.catalog-scroll::-webkit-scrollbar-track { background: transparent; }
.catalog-group { border-top: 1px solid rgba(255, 255, 255, 0.055); }
.catalog-group:first-child { border-top: 0; }
.group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 9px 9px;
  text-align: left;
  color: #949daa;
}
.group-toggle:hover { color: #d6dae2; }
.group-chevron {
  width: 12px; height: 12px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #505967;
  transform: rotate(90deg);
  transition: transform 0.3s var(--ease);
}
.catalog-group.is-collapsed .group-chevron { transform: rotate(0deg); }
.catalog-group.is-collapsed .group-body { display: none; }
.group-index {
  font-family: var(--mono);
  font-size: 7.5px;
  color: #596170;
  letter-spacing: 0.06em;
  min-width: 14px;
}
.group-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
}
.group-count {
  min-width: 16px;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 7px;
  color: #646d7c;
  text-align: center;
}
.group-body { padding: 0 0 7px; }
.object-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6.5px 8px 6.5px 26px;
  border-radius: 7px;
  text-align: left;
  color: #a2a9b4;
  transition: background 0.2s ease, color 0.2s ease;
}
.object-row::before {
  content: "";
  position: absolute;
  left: 33px; top: 50%;
  width: 1px; height: 11px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
}
.object-row:hover { color: var(--ink); background: rgba(255, 255, 255, 0.035); }
.object-row.is-selected {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(230, 197, 141, 0.1), rgba(230, 197, 141, 0.026));
  box-shadow: inset 1.5px 0 0 var(--gold);
}
.object-row.is-dimmed { opacity: 0.35; }
.catalog.is-searching .group-body { display: block !important; }
.detail-status {
  margin-left: auto;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  color: #6f7a88;
}
.detail-status::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #8fd7a7;
  box-shadow: 0 0 6px rgba(143, 215, 167, .6);
}
.catalog.is-searching .group-chevron { transform: rotate(90deg); }
.search-box.has-value kbd { display: none; }
.object-orb {
  position: relative;
  z-index: 1;
  width: 8px; height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orb-color, #aeb7c4);
  box-shadow: 0 0 7px color-mix(in srgb, var(--orb-color, #aeb7c4) 55%, transparent);
}
.object-orb::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 0.5px solid color-mix(in srgb, var(--orb-color, #aeb7c4) 32%, transparent);
  border-radius: 50%;
}
.object-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
}
.object-name {
  font-size: 11.5px;
  letter-spacing: 0.025em;
  white-space: nowrap;
}
.object-en {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.07em;
  color: #566070;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.object-type {
  opacity: 0;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  transition: opacity 0.2s ease;
}
.object-row:hover .object-type, .object-row.is-selected .object-type { opacity: 1; }
.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 20px;
  color: var(--dim);
}
.catalog-empty span { font-family: var(--serif); font-size: 28px; color: #4b5361; }
.catalog-empty p { margin: 8px 0 14px; font-size: 11px; }
.catalog-empty button { color: var(--gold); font-size: 10.5px; border-bottom: 1px solid rgba(230, 197, 141, 0.32); }
.catalog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  flex: 0 0 auto;
  padding: 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: #56606f;
}
.catalog-foot .status-dot { width: 4px; height: 4px; }

/* ---------- hero ---------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.stage button, .stage .deep-dock { pointer-events: auto; }
.hero {
  position: absolute;
  left: calc(var(--catalog-w) + 60px);
  top: calc(var(--topbar-h) + 58px);
  width: min(540px, 42vw);
  pointer-events: none;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
  animation: heroIn 1.2s var(--ease) both 0.08s;
  transition: opacity 0.5s ease, transform 0.7s var(--ease);
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: #a5abb4;
}
.hero-eyebrow .hairline {
  width: 29px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero-eyebrow b {
  margin-left: 2px;
  padding: 3px 5px;
  border: 1px solid rgba(230, 197, 141, 0.22);
  border-radius: 3px;
  font-weight: 400;
  font-size: 7px;
  letter-spacing: 0.13em;
  color: var(--gold);
}
.hero h1 {
  margin: 15px 0 0;
  font-family: var(--serif);
  font-size: clamp(48px, 4.55vw, 67px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.015em;
  color: #f7f3e9;
}
.hero h1 span {
  position: relative;
  margin-left: 0.04em;
  color: transparent;
  background: linear-gradient(112deg, #fff5df 0%, #e8c68e 48%, #b8874d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(230, 197, 141, 0.12));
}
.hero-sub {
  margin: 15px 0 0;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #c3c5c8;
}
.hero-sub i { margin: 0 5px; font-style: normal; color: var(--gold-deep); }
.hero-note {
  margin: 9px 0 0;
  max-width: 460px;
  font-size: 10.5px;
  line-height: 1.9;
  letter-spacing: 0.045em;
  color: #747d8b;
}
.hero-stats {
  display: flex;
  align-items: center;
  margin-top: 27px;
  width: fit-content;
  border-top: 1px solid rgba(255, 255, 255, 0.095);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-stats div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 17px 10px 0;
  margin-right: 17px;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
}
.hero-stats div:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.hero-stats strong {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.hero-stats span { font-size: 8.5px; letter-spacing: 0.08em; color: #757e8c; }
.hero-coordinate {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.11em;
  color: #4d5664;
}
.hero-coordinate span { color: #68717f; }
.app.panel-open .hero { opacity: 0.24 !important; transform: translateX(-9px); }
.app.deep-mode .hero { opacity: 0.18 !important; }

/* ---------- map utilities ---------- */
.map-tools {
  position: absolute;
  right: 26px;
  top: calc(var(--topbar-h) + 24px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(7, 11, 18, 0.54);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  animation: fadeInSoft 1s ease both 0.5s;
}
.map-tools button {
  display: grid;
  place-items: center;
  width: 33px; height: 32px;
  color: #747e8d;
  transition: 0.22s ease;
}
.map-tools button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.map-tools svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; }
.tool-divider { height: 1px; margin: 2px 8px; background: var(--line); }
@keyframes fadeInSoft { from { opacity: 0; } to { opacity: 1; } }

.orbit-axis {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: rotate(-34deg);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.23;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.14em;
  color: #98a5b8;
  pointer-events: none;
}
.axis-line { width: 54px; height: 1px; background: linear-gradient(90deg, transparent, #d6e3f5); }

.scale-indicator {
  position: absolute;
  left: calc(var(--catalog-w) + 60px);
  bottom: calc(var(--footer-h) + 22px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.13em;
  color: #576171;
  pointer-events: none;
}
.scale-indicator i { width: 52px; height: 1px; background: #4c5665; position: relative; }
.scale-indicator i::before, .scale-indicator i::after {
  content: ""; position: absolute; top: -2.5px; width: 1px; height: 6px; background: #5f6a7a;
}
.scale-indicator i::before { left: 0; }
.scale-indicator i::after { right: 0; }
.scale-indicator b { color: #7f8998; font-weight: 400; }

/* ---------- bottom controls ---------- */
.map-bottom {
  position: absolute;
  left: 50%;
  bottom: calc(var(--footer-h) + 17px);
  transform: translateX(-50%);
  width: min(880px, calc(100vw - 760px));
  min-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
.interaction-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border: 1px solid rgba(208, 225, 248, 0.085);
  border-radius: 20px;
  background: rgba(6, 10, 18, 0.5);
  backdrop-filter: blur(8px);
  font-size: 8.5px;
  letter-spacing: 0.055em;
  color: #7a8494;
  white-space: nowrap;
}
.interaction-hint i { font-style: normal; color: #4f5867; }
.mouse-icon { display: grid; place-items: center; width: 16px; height: 16px; color: #677281; }
.mouse-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; }
.quick-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(210, 226, 248, 0.095);
  border-radius: 10px;
  background: rgba(7, 11, 19, 0.65);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}
.quick-controls button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 10px;
  border-radius: 6px;
  color: #788291;
  font-size: 9px;
  letter-spacing: 0.035em;
  white-space: nowrap;
  transition: 0.22s ease;
}
.quick-controls button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.045); }
.quick-controls button.is-active { color: #d9cfb9; background: rgba(230, 197, 141, 0.07); }
.quick-controls svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.quick-controls svg .fill { fill: currentColor; stroke: none; }
.quick-controls .play-glyph { display: none; }
.quick-controls button.is-paused .pause-glyph { display: none; }
.quick-controls button.is-paused .play-glyph { display: block; }
.app.deep-mode .map-bottom .interaction-hint { opacity: 0; }

/* ---------- hover & selection ---------- */
.hover-card {
  position: fixed;
  z-index: 55;
  min-width: 132px;
  max-width: 230px;
  padding: 9px 12px 10px;
  border: 1px solid rgba(226, 235, 249, 0.14);
  border-radius: 8px;
  background: rgba(7, 11, 19, 0.92);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  pointer-events: none;
  transform: translate(14px, 16px);
}
.hover-type {
  display: block;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.hover-name { display: block; margin-top: 3px; font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: 0.05em; }
.hover-data { display: block; margin-top: 2px; font-size: 8px; letter-spacing: 0.03em; color: #727c8b; }
.selection-badge {
  position: absolute;
  left: calc(var(--catalog-w) + 60px);
  bottom: calc(var(--footer-h) + 73px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 7px 11px;
  border: 1px solid rgba(230, 197, 141, 0.18);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.selection-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 9px rgba(230, 197, 141, 0.7);
}
.selection-badge div { display: flex; flex-direction: column; gap: 1px; }
.selection-badge small { font-family: var(--mono); font-size: 6px; letter-spacing: 0.08em; color: #626d7c; }
.selection-badge strong { font-size: 9.5px; font-weight: 400; letter-spacing: 0.04em; color: #d6d4ce; }
.selection-badge button {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  color: #697382;
  font-size: 13px;
  line-height: 1;
}
.selection-badge button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.055); }

/* ---------- detail panel ---------- */
.detail-panel {
  position: fixed;
  z-index: 75;
  top: calc(var(--topbar-h) + 12px);
  right: 16px;
  bottom: calc(var(--footer-h) + 12px);
  width: 424px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(219, 231, 250, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 120% 35% at 50% 0%, rgba(68, 65, 58, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(13, 17, 27, 0.95), rgba(7, 10, 17, 0.92));
  box-shadow: -25px 30px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(28px) saturate(1.1);
  overflow: hidden;
  transform: translateX(calc(100% + 34px));
  opacity: 0;
  visibility: hidden;
  transition: transform 0.62s var(--ease), opacity 0.4s ease, visibility 0s linear 0.62s;
}
.app.panel-open .detail-panel {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.62s var(--ease), opacity 0.4s ease;
}
.detail-progress {
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.detail-progress span { display: block; width: 38%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.13) transparent;
}
.detail-scroll::-webkit-scrollbar { width: 4px; }
.detail-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }
.detail-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(6, 9, 15, 0.55);
}
.primary-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 37px;
  border: 1px solid rgba(230, 197, 141, 0.28);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(230, 197, 141, 0.13), rgba(230, 197, 141, 0.055));
  color: var(--gold-bright);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  transition: 0.25s ease;
}
.primary-action svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.primary-action:hover { background: linear-gradient(180deg, rgba(230, 197, 141, 0.2), rgba(230, 197, 141, 0.085)); border-color: rgba(230, 197, 141, 0.45); }
.secondary-action {
  width: 104px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: #8c96a5;
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: 0.25s ease;
}
.secondary-action:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.035); }

/* detail content */
.detail-hero {
  position: relative;
  min-height: 286px;
  padding: 20px 24px 22px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.detail-hero::before {
  content: "";
  position: absolute;
  width: 330px; height: 330px;
  right: -135px; top: -85px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--detail-color, #e6c58d) 20%, transparent), transparent 65%);
  opacity: 0.38;
  filter: blur(8px);
  pointer-events: none;
}
.detail-topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-index {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: #697383;
}
.detail-close {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #7c8695;
  transition: 0.22s ease;
}
.detail-close svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.detail-close:hover { color: var(--ink); border-color: var(--line-strong); }
.detail-visual {
  position: absolute;
  z-index: 1;
  top: 36px;
  right: 26px;
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
}
.detail-visual .visual-glow {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--detail-color, #e6c58d) 22%, transparent), transparent 67%);
  filter: blur(3px);
  opacity: 0.8;
}
.detail-visual .visual-orbit {
  position: absolute;
  width: 128px; height: 52px;
  border: 1px solid color-mix(in srgb, var(--detail-color, #e6c58d) 24%, transparent);
  border-radius: 50%;
  transform: rotate(-28deg);
}
.detail-visual .visual-orbit::after {
  content: "";
  position: absolute;
  right: 15px; top: 3px;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--detail-color, #e6c58d);
  box-shadow: 0 0 5px var(--detail-color, #e6c58d);
}
.detail-visual .visual-body {
  position: relative;
  z-index: 2;
  width: var(--orb-size, 56px);
  height: var(--orb-size, 56px);
  border-radius: 50%;
  background: var(--orb-gradient, radial-gradient(circle at 32% 28%, #f5d9a8, #b17d45 60%, #342312));
  box-shadow:
    inset -12px -9px 20px rgba(0, 0, 0, 0.5),
    0 0 28px color-mix(in srgb, var(--detail-color, #e6c58d) 22%, transparent);
}
.detail-visual .visual-body::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.2), transparent 42%);
  mix-blend-mode: screen;
}
.detail-visual .visual-ring {
  position: absolute;
  z-index: 3;
  width: calc(var(--orb-size, 56px) * 2.25);
  height: calc(var(--orb-size, 56px) * 0.56);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ring-color, #d7c49f) 48%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring-color, #d7c49f) 8%, transparent);
  transform: rotate(-20deg);
}
.detail-visual.is-sun .visual-body { box-shadow: 0 0 34px rgba(255, 199, 102, 0.55), inset -8px -7px 18px rgba(111, 52, 6, 0.35); }
.detail-visual.is-probe .visual-body {
  width: 1px; height: 1px;
  background: transparent;
  box-shadow: none;
}
.detail-visual.is-probe .visual-body::before {
  content: "✦";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 38px;
  color: var(--detail-color, #8ad7f6);
  text-shadow: 0 0 22px currentColor;
}
.detail-visual.is-probe .visual-body::after { display: none; }
.detail-visual.is-meteor .visual-body {
  width: calc(var(--orb-size, 56px) * 0.9);
  height: calc(var(--orb-size, 56px) * 0.82);
  border-radius: 47% 53% 56% 44% / 60% 44% 56% 40%;
  transform: rotate(-13deg);
  box-shadow:
    inset -12px -9px 20px rgba(0, 0, 0, 0.5),
    0 0 30px color-mix(in srgb, var(--detail-color, #c09a74) 22%, transparent);
}
.detail-visual.is-meteor .visual-body::before {
  content: "";
  position: absolute;
  left: 27%; top: 26%;
  width: 25%; height: 19%;
  border-radius: 50%;
  background: rgba(22, 18, 14, 0.37);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.13), 19px 17px 0 -2px rgba(22, 18, 14, 0.28);
}
.detail-visual.is-meteor .visual-orbit {
  width: 104px; height: 104px;
  border-style: dashed;
  border-color: rgba(197, 168, 130, 0.24);
  transform: none;
}
.detail-visual.is-meteor .visual-orbit::after { display: none; }
.detail-visual.is-comet .visual-body {
  box-shadow: 0 0 28px rgba(148, 222, 229, 0.52), inset -10px -8px 18px rgba(10, 30, 35, 0.6);
}
.detail-visual.is-comet::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 118px; height: 25px;
  left: -31px; top: 62px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(92, 167, 190, 0.12) 50%, rgba(160, 231, 237, 0.48) 100%);
  filter: blur(6px);
  transform: rotate(-14deg);
}
.detail-title-wrap {
  position: relative;
  z-index: 2;
  width: calc(100% - 102px);
  margin-top: 43px;
}
.detail-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.detail-category::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.detail-title {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.035em;
  color: #f5f1e8;
}
.detail-title em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0.045em;
  color: #b4ac9d;
}
.detail-en {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.21em;
  color: #5d6675;
}
.detail-desc {
  position: relative;
  z-index: 2;
  clear: both;
  margin: 32px 0 0;
  max-width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  font-size: 10px;
  line-height: 1.95;
  letter-spacing: 0.025em;
  color: #8d96a4;
}
.detail-tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.detail-tag {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  font-size: 8px;
  letter-spacing: 0.03em;
  color: #818b9a;
  background: rgba(255, 255, 255, 0.018);
}

.detail-section { padding: 21px 24px 23px; border-bottom: 1px solid rgba(255, 255, 255, 0.065); }
.section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}
.section-number {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}
.section-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: #d7d4cc;
}
.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 8px; overflow: hidden; }
.stat-cell { padding: 10px 11px 11px; background: rgba(8, 12, 20, 0.66); }
.stat-cell span { display: block; font-size: 8px; letter-spacing: 0.055em; color: #656f7e; }
.stat-cell strong { display: block; margin-top: 4px; font-family: var(--mono); font-size: 10.5px; font-weight: 450; letter-spacing: 0.02em; color: #d4d2cc; }
.stat-cell small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 6.5px; color: #4e5765; }

.orbit-figure {
  position: relative;
  margin-bottom: 12px;
  padding: 6px 8px 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background:
    radial-gradient(circle at 56% 50%, rgba(230, 197, 141, 0.055), transparent 38%),
    rgba(255, 255, 255, 0.014);
  overflow: hidden;
}
.orbit-figure svg { display: block; width: 100%; height: 121px; }
.orbit-figure .fig-label {
  position: absolute;
  top: 7px; left: 9px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  color: #525c6b;
}
.orbit-figure .fig-legend {
  position: absolute;
  right: 9px; bottom: 7px;
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.05em;
  color: #5f6978;
}
.fig-legend i { display: inline-block; width: 10px; height: 1px; margin-right: 3px; vertical-align: 2px; background: var(--gold); }
.orbit-params { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 7px; overflow: hidden; background: rgba(255, 255, 255, 0.07); }
.orbit-params div { padding: 9px 9px 10px; background: rgba(8, 12, 20, 0.66); }
.orbit-params span { display: block; font-size: 7.5px; color: #626c7b; letter-spacing: 0.04em; white-space: nowrap; }
.orbit-params strong { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9px; font-weight: 450; color: #c7c7c3; white-space: nowrap; }
.orbit-note { margin: 9px 0 0; font-size: 8.5px; line-height: 1.65; color: #626c7b; }

.structure-intro { margin: 0 0 13px; font-size: 10px; line-height: 1.85; letter-spacing: 0.02em; color: #8d96a4; }
.layer-bar { display: flex; height: 8px; margin: 2px 0 9px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,.06); }
.layer-bar span { height: 100%; }
.layer-labels { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 14px; }
.layer-labels span { display: flex; align-items: center; gap: 5px; font-size: 8px; color: #737d8b; }
.layer-labels i { width: 5px; height: 5px; border-radius: 1px; }
.feature-list { display: flex; flex-direction: column; gap: 9px; }
.feature-item { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.055); }
.feature-item:first-child { padding-top: 0; border-top: 0; }
.feature-item span { font-size: 8.5px; letter-spacing: 0.04em; color: #6d7785; }
.feature-item p { margin: 0; font-size: 9.5px; line-height: 1.75; color: #a2a8b1; }
.related-moons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.related-moons span { font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.08em; color: #5b6574; margin-right: 3px; align-self: center; }
.moon-chip {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: #8b95a4;
  font-size: 8px;
  transition: 0.2s ease;
}
.moon-chip:hover { color: var(--gold); border-color: rgba(230, 197, 141, 0.3); }

.timeline { position: relative; margin-top: 2px; padding-left: 42px; }
.timeline::before { content: ""; position: absolute; left: 36px; top: 5px; bottom: 5px; width: 1px; background: linear-gradient(180deg, rgba(230, 197, 141, 0.42), rgba(255, 255, 255, 0.06)); }
.timeline-item { position: relative; padding-bottom: 15px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item time {
  position: absolute;
  left: -42px; top: 0;
  font-family: var(--mono);
  font-size: 7.5px;
  color: #7a684e;
  letter-spacing: 0.03em;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px; top: 3px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #0b1019;
  border: 1px solid var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(230, 197, 141, 0.04);
}
.timeline-item strong { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: 0.02em; color: #bfc0bd; }
.timeline-item p { margin: 4px 0 0; font-size: 8.5px; line-height: 1.75; color: #747e8c; }
.detail-footnote { margin: 16px 0 4px; padding: 10px 11px; border-left: 1px solid rgba(230, 197, 141, 0.28); background: rgba(230, 197, 141, 0.025); font-size: 8px; line-height: 1.7; color: #687280; }

/* ---------- popovers ---------- */
.control-popover {
  position: fixed;
  z-index: 90;
  top: calc(var(--topbar-h) + 8px);
  left: 50%;
  width: 344px;
  border: 1px solid rgba(219, 231, 250, 0.14);
  border-radius: 13px;
  background:
    radial-gradient(ellipse 90% 70% at 30% 0%, rgba(230, 197, 141, 0.055), transparent 70%),
    rgba(8, 12, 20, 0.94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(26px) saturate(1.15);
  overflow: hidden;
  animation: popIn 0.3s var(--ease);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(-7px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.control-popover::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 197, 141, 0.38), transparent);
}
.popover-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 17px 13px 19px; border-bottom: 1px solid rgba(255, 255, 255, 0.065); }
.popover-head h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: 0.09em; color: #e8e4db; }
.switch-list { padding: 4px 17px 5px 19px; }
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.switch-row:last-child { border-bottom: 0; }
.switch-copy { display: flex; flex-direction: column; gap: 2px; }
.switch-copy b { font-size: 10px; font-weight: 400; letter-spacing: 0.065em; color: #b5b8bb; }
.switch-copy small { font-size: 8px; letter-spacing: 0.02em; color: #616b7a; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui {
  position: relative;
  flex: 0 0 auto;
  width: 31px; height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  transition: 0.25s var(--ease);
}
.switch-ui::after {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #737d8c;
  transition: 0.25s var(--ease);
}
.switch-row input:checked + .switch-ui { border-color: rgba(230, 197, 141, 0.38); background: rgba(230, 197, 141, 0.13); }
.switch-row input:checked + .switch-ui::after { transform: translateX(14px); background: var(--gold); box-shadow: 0 0 8px rgba(230, 197, 141, 0.5); }
.switch-row input:focus-visible + .switch-ui { outline: 1px solid var(--gold); outline-offset: 2px; }
.popover-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 19px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  color: #596372;
}
.popover-foot button { color: var(--gold-deep); font-family: var(--sans); font-size: 8.5px; letter-spacing: 0.04em; }
.popover-foot button:hover { color: var(--gold); }

.time-popover { width: 358px; }
.time-readout { padding: 17px 20px 13px; }
.time-readout > span { font-family: var(--mono); font-size: 6.8px; letter-spacing: 0.14em; color: #596372; }
.time-readout strong { display: block; margin-top: 5px; font-family: var(--mono); font-size: 30px; font-weight: 300; letter-spacing: 0.04em; color: #f0e7d7; font-variant-numeric: tabular-nums; }
.time-readout em { display: block; margin-top: 2px; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: #8b7b62; }
.time-readout em i { font-style: normal; color: #665c4d; font-size: 7px; margin-left: 4px; }
.speed-block { padding: 4px 20px 15px; }
.speed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font-size: 9px; letter-spacing: 0.04em; color: #7c8695; }
.speed-head strong { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--gold); }
input[type="range"]#speedRange {
  width: 100%;
  height: 16px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
#speedRange::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(230, 197, 141, 0.7) var(--range-progress, 20%), rgba(255, 255, 255, 0.1) var(--range-progress, 20%));
}
#speedRange::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
#speedRange::-webkit-slider-thumb {
  appearance: none;
  width: 11px; height: 11px;
  margin-top: -4.5px;
  border: 1px solid #f1d49f;
  border-radius: 50%;
  background: #0b1018;
  box-shadow: 0 0 0 3px rgba(230, 197, 141, 0.09), 0 0 9px rgba(230, 197, 141, 0.4);
}
#speedRange::-moz-range-thumb { width: 10px; height: 10px; border: 1px solid #f1d49f; border-radius: 50%; background: #0b1018; }
.speed-ticks { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--mono); font-size: 6.5px; color: #505a68; }
.speed-note { margin: 9px 0 0; font-family: var(--mono); font-size: 7px; letter-spacing: 0.05em; color: #605b53; }
.time-actions { display: flex; gap: 5px; padding: 0 20px 17px; }
.time-actions button {
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #8892a0;
  font-size: 8.5px;
  letter-spacing: 0.035em;
  transition: 0.22s ease;
}
.time-actions button:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.035); }
.time-actions .time-main {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: rgba(230, 197, 141, 0.28);
  background: rgba(230, 197, 141, 0.075);
  color: var(--gold-bright);
}
.time-actions .time-main svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.time-actions .time-main .play-glyph { display: none; }
.time-actions .time-main.is-paused .pause-glyph { display: none; }
.time-actions .time-main.is-paused .play-glyph { display: block; }
#stepDay { flex: 0 0 76px; }
#resetNow { flex: 1; }
.time-quote {
  padding: 10px 20px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #5c5a54;
  text-align: center;
}

/* ---------- deep-space dock ---------- */
.deep-dock {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(var(--footer-h) + 15px);
  width: min(800px, calc(100vw - var(--catalog-w) - 96px));
  padding: 14px 16px 12px;
  border: 1px solid rgba(201, 222, 244, 0.14);
  border-radius: 13px;
  background:
    radial-gradient(ellipse 75% 150% at 50% 120%, rgba(84, 139, 172, 0.13), transparent 65%),
    rgba(7, 11, 19, 0.82);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(20px) saturate(1.2);
  transform: translateX(-50%);
  animation: dockIn 0.55s var(--ease);
}
@keyframes dockIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.deep-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 12px; }
.deep-head h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: 0.1em; color: #e7e2d8; white-space: nowrap; }
.deep-head p { flex: 1; margin: 8px 0 0; font-size: 8px; line-height: 1.65; letter-spacing: 0.025em; color: #687383; }
.deep-head .panel-close { flex: 0 0 auto; width: 24px; height: 24px; }
.mission-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mission-card {
  position: relative;
  min-width: 0;
  padding: 9px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  text-align: left;
  transition: 0.25s var(--ease);
}
.mission-card::before {
  content: "";
  position: absolute;
  top: 0; left: 10px; right: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138, 215, 246, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mission-card:hover, .mission-card.is-selected {
  border-color: rgba(138, 215, 246, 0.28);
  background: rgba(138, 215, 246, 0.055);
  transform: translateY(-1px);
}
.mission-card:hover::before, .mission-card.is-selected::before { opacity: 1; }
.mission-card .mission-year { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.08em; color: #597185; }
.mission-card .mission-year i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px rgba(138, 215, 246, 0.6); }
.mission-card strong { display: block; margin-top: 5px; overflow: hidden; font-family: var(--serif); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: #cfd6d9; text-overflow: ellipsis; white-space: nowrap; }
.mission-card small { display: block; margin-top: 3px; overflow: hidden; font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.03em; color: #637181; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- footer & toast ---------- */
.site-footer {
  position: fixed;
  z-index: 50;
  left: 0; right: 0; bottom: 0;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 26px;
  border-top: 1px solid rgba(219, 231, 250, 0.075);
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.56), rgba(4, 7, 12, 0.91));
  backdrop-filter: blur(16px);
}
.site-footer p {
  flex: 1;
  margin: 0;
  overflow: hidden;
  font-size: 8.5px;
  letter-spacing: 0.035em;
  line-height: 1.4;
  color: #596271;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer-mark, .footer-meta { font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.1em; color: #4a5361; white-space: nowrap; }
.footer-mark { color: #68717a; }
.footer-mark .status-dot { width: 4px; height: 4px; margin-right: 5px; }
.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(var(--footer-h) + 22px);
  padding: 8px 14px;
  border: 1px solid rgba(230, 197, 141, 0.25);
  border-radius: 20px;
  background: rgba(9, 13, 21, 0.94);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  color: #d9d3c7;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: 0.35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  :root { --catalog-w: 296px; }
  .hero { left: calc(var(--catalog-w) + 46px); width: min(500px, 40vw); }
  .topbar { gap: 22px; padding-left: 20px; padding-right: 20px; }
  .brand { min-width: 148px; }
  .nav-item { padding-left: 10px; padding-right: 10px; font-size: 11.5px; }
  .nav-item::after { left: 10px; right: 10px; }
  .detail-panel { width: 404px; }
  .scale-indicator, .selection-badge { left: calc(var(--catalog-w) + 46px); }
  .map-bottom { width: min(760px, calc(100vw - 690px)); }
}

@media (max-width: 1150px) {
  .catalog {
    transform: translateX(calc(-100% - 32px));
    opacity: 0;
    pointer-events: none;
    animation: none;
    box-shadow: 30px 30px 100px rgba(0, 0, 0, 0.55);
  }
  .app.catalog-open .catalog {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hero { left: 42px; width: min(520px, 48vw); }
  .scale-indicator, .selection-badge { left: 42px; }
  .map-bottom { width: min(780px, calc(100vw - 240px)); min-width: 470px; }
  .topbar { gap: 14px; }
  .brand { min-width: 140px; }
  .nav-item { padding-left: 9px; padding-right: 9px; }
  .nav-item::after { left: 9px; right: 9px; }
  .ephemeris-status { padding-left: 12px; }
  .deep-dock { width: min(780px, calc(100vw - 80px)); }
}

@media (max-width: 980px) {
  .topbar { gap: 8px; }
  .brand { min-width: 110px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 10.5px; }
  .nav-item span { font-size: 10.5px; }
  .nav-item svg { width: 14px; height: 14px; }
  .ephemeris-status { display: none; }
  .hero h1 { font-size: clamp(42px, 5.6vw, 58px); }
  .detail-panel { width: 390px; }
  .interaction-hint { font-size: 8px; }
  .quick-controls button { padding: 0 8px; font-size: 8.5px; }
}

@media (max-width: 800px) {
  :root { --topbar-h: 64px; --footer-h: 40px; }
  .topbar { padding: 0 14px; gap: 6px; }
  .brand { min-width: 84px; gap: 8px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .brand-copy strong { font-size: 9px; letter-spacing: 0.24em; }
  .brand-copy small { display: none; }
  .main-nav { flex: 1; justify-content: center; }
  .nav-item { padding: 0 8px; }
  .nav-item span { display: none; }
  .nav-item svg { width: 18px; height: 18px; }
  .nav-item::after { left: 8px; right: 8px; }
  .topbar-meta { margin-left: 0; }
  .mobile-menu { display: grid; }
  .hero { left: 24px; top: calc(var(--topbar-h) + 36px); width: calc(100vw - 48px); }
  .hero h1 { margin-top: 12px; font-size: clamp(38px, 8.8vw, 54px); }
  .hero-sub { font-size: 10.5px; }
  .hero-note { max-width: 88%; font-size: 9.5px; }
  .hero-stats { margin-top: 20px; }
  .hero-stats div { padding-right: 12px; margin-right: 12px; }
  .hero-coordinate { display: none; }
  .catalog { left: 10px; right: 10px; top: calc(var(--topbar-h) + 8px); bottom: calc(var(--footer-h) + 8px); width: auto; z-index: 95; }
  .detail-panel { left: 10px; right: 10px; top: calc(var(--topbar-h) + 8px); bottom: calc(var(--footer-h) + 8px); width: auto; z-index: 96; }
  .detail-scroll { overscroll-behavior: contain; }
  .map-tools { right: 14px; top: calc(var(--topbar-h) + 14px); }
  .map-tools button { width: 30px; height: 30px; }
  .map-bottom { width: calc(100vw - 28px); min-width: 0; bottom: calc(var(--footer-h) + 10px); }
  .quick-controls { width: 100%; justify-content: center; }
  .quick-controls button { flex: 1; justify-content: center; }
  .interaction-hint { display: none; }
  .scale-indicator { left: 24px; bottom: calc(var(--footer-h) + 70px); font-size: 6px; }
  .selection-badge { left: 24px; bottom: calc(var(--footer-h) + 116px); }
  .site-footer { padding: 0 14px; gap: 10px; }
  .site-footer p { font-size: 7.5px; }
  .footer-meta { display: none; }
  .footer-mark { display: none; }
  .deep-dock { width: calc(100vw - 28px); bottom: calc(var(--footer-h) + 54px); padding: 12px; }
  .deep-head p { display: none; }
  .deep-head h3 { font-size: 17px; }
  .mission-track { grid-template-columns: repeat(2, 1fr); }
  .control-popover { left: 50% !important; transform: translateX(-50%); width: calc(100vw - 24px); max-width: 370px; }
  .orbit-axis { display: none; }
}

@media (max-width: 560px) {
  .hero { top: calc(var(--topbar-h) + 26px); }
  .hero-eyebrow { font-size: 6.5px; letter-spacing: 0.16em; }
  .hero h1 { font-size: clamp(34px, 9.8vw, 46px); }
  .hero-sub { margin-top: 10px; font-size: 9px; letter-spacing: 0.03em; }
  .hero-sub i { margin: 0 2px; }
  .hero-note { font-size: 8.5px; line-height: 1.7; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; border: 0; width: 100%; max-width: 250px; margin-top: 16px; gap: 0; }
  .hero-stats div { padding: 5px 0; margin: 0; border: 0; }
  .hero-stats div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.07); }
  .hero-stats strong { font-size: 12px; }
  .hero-stats span { font-size: 7.5px; }
  .scale-indicator { display: none; }
  .quick-controls button span { font-size: 8px; }
  .detail-title { font-size: 25px; }
  .detail-title em { font-size: 14px; }
  .detail-visual { width: 105px; height: 105px; right: 14px; }
  .detail-hero { padding-left: 19px; padding-right: 19px; }
  .detail-section { padding-left: 19px; padding-right: 19px; }
  .detail-title-wrap { width: calc(100% - 76px); }
  .deep-dock {
    display: block;
    width: calc(100vw - 20px);
    bottom: calc(var(--footer-h) + 56px);
    padding: 9px 10px 10px;
  }
  .deep-head { margin-bottom: 7px; align-items: center; }
  .deep-head .kicker { display: none; }
  .deep-head h3 { margin: 0; font-size: 15px; }
  .deep-head p { display: none; }
  .deep-head .panel-close { width: 22px; height: 22px; }
  .mission-track {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .mission-track::-webkit-scrollbar { display: none; }
  .mission-card { flex: 0 0 142px; min-width: 142px; padding: 7px 8px 8px; }
  .mission-card strong { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
