:root {
  --bg: #03040c;
  --bg2: #0a0d1f;
  --panel: rgba(10, 14, 34, 0.72);
  --line: rgba(140, 170, 255, 0.18);
  --text: #e8ecff;
  --muted: #a8b1d6;
  --accent: #8f7bff;
  --accent2: #39d6ff;
  --aurora: #6bffb0;
  --radius: 14px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "PingFang SC", "PingFang TC", "Microsoft YaHei", "Microsoft JhengHei", "Noto Sans SC", "Noto Sans TC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; }
a { color: var(--accent2); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
button { font-family: inherit; }

/* ------------------------------------------------------------ top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 58px;
  display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background: linear-gradient(to bottom, rgba(3,4,12,.85), rgba(3,4,12,.45));
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.brand-icon { font-size: 1.3em; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .92rem; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { background: transparent; color: var(--muted); border: 0; padding: 6px 12px; cursor: pointer; font-size: .9rem; }
.lang button.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; font-size: 1.1rem; padding: 4px 10px; cursor: pointer; }

/* ------------------------------------------------------------- viewer */
.viewer { position: relative; height: 100vh; min-height: 560px; max-height: 1200px; overflow: hidden; background: #02030a; }
.stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.stage canvas { display: block; width: 100% !important; height: 100% !important; }
.label-layer { position: absolute; inset: 0; pointer-events: none; }
.scene-label {
  font-size: 12px; color: #dfe6ff; padding: 2px 7px; border-radius: 6px; white-space: nowrap;
  background: rgba(5, 8, 25, .55); border: 1px solid rgba(160,190,255,.25); text-shadow: 0 0 6px #000;
}
.scene-label.mp { color: #8fd8ff; border-color: rgba(80,180,255,.5); }
.scene-label.bs { color: #ffbd8a; border-color: rgba(255,150,80,.5); }
.scene-label.wind { color: #ffe9a8; border-color: rgba(255,220,120,.4); }
.scene-label.tail { color: #b8c4ff; }
.scene-label.torus { color: #ffb58a; }
.scene-label.moon { font-size: 11px; background: rgba(5,8,25,.35); }

.hero {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(620px, 100%);
  display: flex; flex-direction: column; justify-content: center; padding: 90px 48px 48px;
  background: linear-gradient(90deg, rgba(3,4,12,.88) 0%, rgba(3,4,12,.55) 70%, rgba(3,4,12,0) 100%);
  transition: opacity .6s, transform .6s; z-index: 5;
}
.kicker { color: var(--aurora); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; margin: 0 0 12px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; margin-bottom: .35em;
  background: linear-gradient(120deg, #fff 10%, #b9a8ff 45%, #5ff2c2 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.1rem; color: #cfd6f5; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.hint { color: var(--muted); font-size: .85rem; }
body.exploring .hero { opacity: 0; transform: translateX(-40px); pointer-events: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none;
  border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 1rem; border: 1px solid transparent; color: #fff;
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 6px 24px rgba(120, 110, 255, .35); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.small { padding: 7px 14px; font-size: .88rem; }
.btn:disabled { opacity: .4; cursor: default; }

.ui { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.ui > * { pointer-events: auto; }
.ui .panel, .ui .planet-tabs { opacity: 0; transition: opacity .6s; pointer-events: none; }
body.exploring .ui .panel, body.exploring .ui .planet-tabs { opacity: 1; pointer-events: auto; }

.planet-tabs {
  position: absolute; top: 72px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.planet-tabs button { background: transparent; color: var(--muted); border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: .95rem; font-weight: 600; }
.planet-tabs button:hover { color: var(--text); }
.planet-tabs button.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }

.panel {
  position: absolute; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); padding: 16px 18px; font-size: .9rem;
}
.panel h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 0 8px; }
.panel h3:first-child { margin-top: 0; }
.panel.left { top: 130px; left: 16px; width: 250px; max-height: calc(100% - 150px); overflow: auto; }
.panel.right { top: 130px; right: 16px; width: 330px; max-height: calc(100% - 150px); overflow: auto; }
.panel label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; user-select: none; }
.panel input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.sw { width: 18px; height: 4px; border-radius: 2px; flex: none; }
.sw-field { background: #7fb6ff; } .sw-wind { background: #ffe39a; } .sw-mp { background: linear-gradient(90deg, #4fb5ff, #ff9a50); }
.sw-aurora { background: linear-gradient(90deg, #5fffa0, #c27bff); } .sw-torus { background: #ff8a4a; } .sw-moons { background: #ffd25a; } .sw-labels { background: #ccc; }
.panel input[type=range] { width: 100%; accent-color: var(--accent2); }
/* hide-all-menus toggle */
.ui-toggle {
  position: absolute; top: 72px; right: 16px; z-index: 7; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(8,11,30,.78); color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px 7px 11px; font-size: .82rem; cursor: pointer; backdrop-filter: blur(10px);
}
.ui-toggle:hover { background: rgba(30,36,80,.9); }
.ui-ico { width: 16px; height: 12px; position: relative; flex: none; }
.ui-ico::before, .ui-ico::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 1px; background: currentColor; transition: transform .3s, top .3s; }
.ui-ico::before { top: 2px; } .ui-ico::after { top: 8px; }
body.ui-min .ui-toggle { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; }
body.ui-min .ui-ico::before { top: 5px; transform: rotate(45deg); }
body.ui-min .ui-ico::after { top: 5px; transform: rotate(-45deg); }
body.ui-min .ui-ico::before, body.ui-min .ui-ico::after { width: 10px; left: 3px; }
body:not(.ui-min) .ui-ico::before, body:not(.ui-min) .ui-ico::after { box-shadow: 0 3px 0 currentColor; }
body.ui-min .hero, body.ui-min .wind-card,
body.ui-min.exploring .ui .panel, body.ui-min.exploring .ui .planet-tabs { opacity: 0 !important; pointer-events: none !important; }
body.ui-min .hero { transform: translateX(-40px); }
/* floating solar wind control: visible on the front page and while exploring */
.wind-card {
  position: absolute; right: 24px; bottom: 24px; z-index: 6; width: 330px;
  background: rgba(8,11,30,.78); border: 1px solid rgba(255,190,110,.28); border-radius: 16px;
  backdrop-filter: blur(12px); padding: 12px 16px 12px; font-size: .85rem; box-shadow: 0 8px 30px rgba(0,0,0,.4);
  transition: opacity .4s, border-color .4s, box-shadow .4s, left .6s, right .6s, transform .6s;
}
body.exploring .wind-card { right: auto; left: 50%; bottom: 16px; transform: translateX(-50%); width: 320px; }
body.touring .wind-card { opacity: 0; pointer-events: none; }
.wind-card.storming, .wind-card.impact { border-color: rgba(255,100,70,.7); box-shadow: 0 0 26px rgba(255,90,50,.35); }
.wind-card.impact { animation: impactPulse .9s ease-in-out infinite; }
@keyframes impactPulse { 50% { box-shadow: 0 0 40px rgba(255,90,50,.7); } }
.wind-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.wind-title { font-weight: 700; color: #ffd9a0; font-size: .9rem; }
.wind-val { font-weight: 700; color: #ffe39a; white-space: nowrap; font-size: .8rem; }
.wind-val[data-level=calm] { color: #9fc4ff; }
.wind-val[data-level=strong] { color: #ffb15a; }
.wind-val[data-level=storm] { color: #ff6b5a; }
.wind-row { display: flex; align-items: center; gap: 8px; }
.wind-end { color: var(--muted); font-size: .72rem; white-space: nowrap; }
#windSlider { flex: 1; min-width: 0; height: 22px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
#windSlider::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #7fb2ff, #ffe39a 25%, #ffb15a 55%, #ff4a4a); }
#windSlider::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #7fb2ff, #ffe39a 25%, #ffb15a 55%, #ff4a4a); }
#windSlider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -6px; border-radius: 50%; background: #fff; border: 3px solid #ff9a40; box-shadow: 0 0 10px rgba(255,170,80,.9); }
#windSlider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #ff9a40; box-shadow: 0 0 10px rgba(255,170,80,.9); }
.wind-meters { display: grid; gap: 4px; margin: 8px 0 2px; }
.wind-meters div { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; font-size: .75rem; color: var(--muted); }
.wind-meters b { color: var(--text); font-weight: 600; }
.wind-meters i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 2px; }
.wind-meters em { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, #4fb5ff, #8fd0ff); transition: width .2s; }
.wind-meters em.au { background: linear-gradient(90deg, #5fffa0, #c27bff); }
.wind-btns { display: grid; grid-template-columns: auto 1fr; gap: 6px; margin-top: 8px; }
.wind-btns button { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-size: .8rem; }
.wind-btns button:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.wind-btns .storm { background: linear-gradient(90deg, rgba(255,120,60,.3), rgba(255,60,90,.3)); border-color: rgba(255,120,80,.55); font-weight: 600; }
.wind-btns button:disabled { opacity: .5; cursor: default; }
.wind-hint { color: var(--muted); font-size: .72rem; margin: 8px 0 0; line-height: 1.4; }.views { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.views button { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 6px; cursor: pointer; font-size: .8rem; }
.views button:hover { background: rgba(255,255,255,.12); }
.panel .note { color: var(--muted); font-size: .78rem; margin: 12px 0 0; }
.panel .tag { color: var(--aurora); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 4px; }
.panel.right h2 { font-size: 1.7rem; margin-bottom: .3em; }
.panel.right p { color: #d4dbf7; margin: 0 0 6px; }
.panel dl { margin: 0; display: grid; gap: 2px 0; }
.panel dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }
.panel dd { margin: 0; }

.tour {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(660px, 94vw);
  background: rgba(10, 12, 32, .86); border: 1px solid rgba(160, 140, 255, .45); border-radius: var(--radius);
  padding: 16px 20px; backdrop-filter: blur(12px); box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.tour[hidden] { display: none; }
.tour-step { color: var(--aurora); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.tour h3 { font-size: 1.25rem; margin: 4px 0 6px; }
.tour p { margin: 0 0 12px; color: #d6dcf6; font-size: .95rem; }
.tour-actions { display: flex; gap: 8px; justify-content: flex-end; }
body.touring .panel.right { opacity: .0; pointer-events: none; }

.noscript { color: var(--muted); padding: 120px 24px; text-align: center; }

/* ---------------------------------------------------------- sections */
.section { padding: 90px max(5vw, 20px); max-width: 1280px; margin: 0 auto; }
.section.dark { max-width: none; background: radial-gradient(1200px 500px at 50% 0%, rgba(110, 80, 255, .12), transparent), var(--bg2); }
.section.dark > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.lead { color: var(--muted); max-width: 820px; font-size: 1.05rem; margin-bottom: 36px; }
.section h3 { font-size: 1.15rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.step-card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column;
}
.step-card p { color: #c9d1f2; flex: 1; }
.step-card .btn { align-self: flex-start; }
.step-num { display: flex; align-items: center; gap: 10px; font-size: 1.8rem; margin-bottom: 8px; }
.step-num span { font-size: .85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }

.aurora-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.au-card { margin: 0; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.au-canvas { position: relative; aspect-ratio: 1; background: #02030a; }
.au-canvas canvas { width: 100%; height: 100%; display: block; }
.badge { position: absolute; top: 10px; right: 10px; font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: rgba(150, 110, 255, .25); border: 1px solid rgba(170, 140, 255, .5); color: #e5dcff; }
.badge.vis { background: rgba(80, 255, 160, .15); border-color: rgba(80, 255, 160, .5); color: #c9ffe2; }
.au-card figcaption { padding: 16px 18px 20px; }
.au-card figcaption p { color: #c9d1f2; margin: 0; font-size: .95rem; }
.info-card { padding: 22px; justify-content: flex-start; }
.info-card p { color: #c9d1f2; }
.spectrum { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin: 6px 0 22px; font-size: .75rem; font-weight: 700; }
.spectrum span { display: flex; align-items: center; justify-content: center; }
.spectrum .uv { width: 25%; background: linear-gradient(90deg, #1b0b3a, #5a2bd9); color: #e6dcff; }
.spectrum .vis-band { flex: 1; background: linear-gradient(90deg, #7b2cff, #2b6bff, #20d0ff, #2fff8c, #f8ff3a, #ff9a2a, #ff2a2a); }
.spectrum .ir { width: 25%; background: linear-gradient(90deg, #8a0f0f, #2a0606); color: #ffd0d0; }

.bars { display: grid; gap: 12px; margin-bottom: 26px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 160px; align-items: center; gap: 14px; }
.bar-name { font-weight: 600; }
.bar-track { height: 18px; background: rgba(255,255,255,.04); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar { height: 100%; width: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 40%, transparent), var(--c)); border-radius: 999px; transition: width 1.6s cubic-bezier(.2,.7,.2,1); box-shadow: 0 0 14px var(--c); }
.bars.grow .bar { width: var(--w); }
.bar-row.sun .bar { background: repeating-linear-gradient(90deg, var(--c) 0 10px, rgba(255,204,85,.5) 10px 16px); }
.bar-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.callout { border-left: 3px solid var(--aurora); padding: 10px 16px; background: rgba(80,255,160,.05); border-radius: 0 10px 10px 0; color: #d6f7e6; max-width: 900px; margin-bottom: 40px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 760px; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: rgba(255,255,255,.05); color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
tbody th { color: var(--text); white-space: nowrap; }
tbody td { color: #c9d1f2; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.why-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(143,123,255,.1), rgba(57,214,255,.04)); }
.why-card p { color: #c9d1f2; margin: 0; }
.why-icon { font-size: 2rem; margin-bottom: 8px; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 132px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent2), var(--aurora)); opacity: .6; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 34px; padding: 12px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 127px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent2); }
.tl-year { text-align: right; color: var(--aurora); font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl-body h3 { margin: 0 0 2px; font-size: 1.05rem; }
.tl-body p { margin: 0; color: #c9d1f2; }

.quiz { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; }
.q { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: rgba(255,255,255,.03); }
.q-text { font-weight: 600; margin: 0 0 12px; }
.q-text span { color: var(--accent2); }
.q-opts { display: grid; gap: 8px; }
.q-opts button { text-align: left; background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-size: .93rem; }
.q-opts button:hover:not(:disabled) { background: rgba(143,123,255,.15); border-color: var(--accent); }
.q-opts button.right { background: rgba(80,255,160,.15); border-color: #4dffa0; }
.q-opts button.wrong { background: rgba(255,80,100,.15); border-color: #ff5a6e; }
.q-opts button:disabled { cursor: default; }
.q-explain { margin: 12px 0 0; color: #c9d1f2; font-size: .92rem; }
.quiz-footer { display: flex; align-items: center; gap: 16px; margin-top: 22px; font-weight: 600; }

.mop { max-width: none; background: radial-gradient(800px 400px at 80% 50%, rgba(57,214,255,.15), transparent), radial-gradient(700px 400px at 10% 30%, rgba(107,255,176,.12), transparent), #050818; }
.mop-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.mop-inner p { color: #d0d7f5; font-size: 1.05rem; }
.mop-date { color: var(--aurora) !important; font-weight: 600; margin-bottom: 24px; }

.footer { padding: 36px max(5vw, 20px); border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; text-align: center; }
.footer p { margin: 6px 0; }
.footer .credit { color: var(--text); font-size: 1rem; font-weight: 600; margin-bottom: 12px; }

/* news */
.news-pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #d8defa; text-decoration: none; font-size: .85rem; }
.news-pill:hover { background: rgba(255,255,255,.12); }
.np-tag { background: linear-gradient(135deg, #ff9a50, #ff5a8a); color: #fff; font-weight: 700; font-size: .72rem; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.news-card { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 28px; background: var(--card, rgba(255,255,255,.03)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.news-art svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.news-date { color: var(--aurora); font-weight: 600; font-size: .85rem; margin: 0 0 6px; }
.news-body h3 { font-size: 1.35rem; margin: 0 0 10px; }
.news-body p, .news-body li { color: #d0d7f5; }
.news-body ul { padding-left: 1.2em; margin: 10px 0 14px; }
.news-body li { margin: 5px 0; }
.news-why { border-left: 3px solid var(--aurora); background: rgba(95,242,194,.06); padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 0 0 16px; }
.news-why p { margin: 4px 0 0; }

/* references */
.refs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.refs h3 { margin: 0 0 10px; color: var(--aurora); font-size: 1rem; }
.refs h3:not(:first-child) { margin-top: 22px; }
.refs ol, .refs ul { padding-left: 1.4em; margin: 0; }
.refs li { color: #c9d1f2; font-size: .86rem; line-height: 1.5; margin: 0 0 8px; }
.refs a { color: #9fc4ff; }
.ref-note { color: var(--muted); }
@media (max-width: 960px) {
  .news-card { grid-template-columns: 1fr; padding: 16px; }
  .refs-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ mobile */
@media (max-width: 1340px) {
  .nav a { padding: 6px 7px; font-size: .85rem; }
}
/* the full menu no longer fits: switch to the ☰ drop-down earlier than the rest of the mobile layout */
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; background: rgba(5,7,20,.97); padding: 10px; border-bottom: 1px solid var(--line); z-index: 30; }
  body.menu-open .nav { display: flex; }
  .lang { margin-left: auto; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; background: rgba(5,7,20,.97); padding: 10px; border-bottom: 1px solid var(--line); }
  body.menu-open .nav { display: flex; }
  .lang { margin-left: auto; }
  .viewer { height: auto; min-height: 0; overflow: visible; }
  .stage { position: relative; height: 68vh; min-height: 380px; }
  .hero { position: relative; width: 100%; padding: 26px 20px 30px; background: var(--bg); }
  body.exploring .hero { display: none; }
  .wind-card, body.exploring .wind-card { position: relative; left: auto; right: auto; bottom: auto; transform: none; width: auto; margin: 12px; }
  .ui-toggle { display: none; }
  .ui { position: static; }
  .ui .panel, .ui .planet-tabs { display: none; }
  body.exploring .ui .panel, body.exploring .ui .planet-tabs { display: flex; }
  .planet-tabs { position: absolute; top: 66px; max-width: 96vw; overflow-x: auto; }
  .planet-tabs button { padding: 7px 11px; font-size: .85rem; white-space: nowrap; flex: none; }
  .topbar { gap: 10px; padding: 0 12px; }
  .lang button { padding: 6px 9px; }
  .panel { position: static !important; width: auto !important; max-height: none !important; margin: 12px; flex-direction: column; }
  .tour { position: absolute; bottom: auto; top: calc(68vh - 10px); transform: translate(-50%, -100%); }
  body.touring .panel.right { display: none; }
  .bar-row { grid-template-columns: 90px 1fr; }
  .bar-val { grid-column: 2; font-size: .85rem; margin-top: -8px; }
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .timeline li::before { left: 3px; }
  .tl-year { text-align: left; }
  .quiz { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand span:last-child { display: none; }
}

/* ------------------------------------------------------------- moons */
.moon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.moon-card { display: flex; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); }
.moon-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.moon-body .tag { color: var(--aurora); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; }
.moon-body h3 { margin-bottom: 6px; }
.moon-body p { color: #c9d1f2; font-size: .93rem; margin: 0 0 10px; }
.moon-body .btn { align-self: flex-start; margin-top: auto; }
.moon-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 12px; font-size: .82rem; }
.moon-facts dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.moon-facts dd { margin: 0; }
.globe {
  flex: none; width: 110px; height: 110px; border-radius: 50%;
  background-size: 220px 110px; background-repeat: repeat-x;
  box-shadow: inset -28px -10px 36px rgba(0,0,0,.9), inset 6px 4px 16px rgba(255,255,255,.12), 0 0 30px rgba(120,140,255,.15);
  animation: globe-spin 24s linear infinite;
}
@keyframes globe-spin { from { background-position-x: 0; } to { background-position-x: -220px; } }
.moon-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.moon-chips button {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text); font-size: .82rem;
}
.moon-chips button:hover { background: rgba(143,123,255,.18); border-color: var(--accent); }
.chip-globe { width: 22px; height: 22px; border-radius: 50%; background-size: 44px 22px; box-shadow: inset -5px -2px 6px rgba(0,0,0,.85); }
.moon-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 960px) {
  .moon-grid { grid-template-columns: 1fr; }
  .moon-card { flex-direction: column; align-items: center; text-align: left; }
}

/* -------------------------------------------------------- spacecraft */
.themes h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-chips button, .theme-badges button {
  background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; font-size: .86rem;
}
.theme-chips button b { color: var(--aurora); margin-right: 4px; }
.theme-chips button:hover, .theme-badges button:hover { border-color: var(--accent); background: rgba(143,123,255,.14); }
.theme-chips button.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; }
.theme-chips button.active b { color: #fff; }
.theme-desc { color: #cfd6f5; min-height: 1.6em; margin: 12px 0 20px; max-width: 900px; }
.craft-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 18px; }
.craft-picker button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--text);
  transition: opacity .3s, border-color .2s, background .2s;
}
.craft-picker button:hover { border-color: var(--accent); }
.craft-picker button.active { border-color: var(--accent2); background: rgba(57,214,255,.12); box-shadow: 0 0 0 1px var(--accent2) inset; }
.craft-picker button.dim { opacity: .35; }
.cp-name { font-weight: 700; font-size: .95rem; }
.cp-years { color: var(--muted); font-size: .75rem; }
.craft-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 18px; }
.craft-stage { position: relative; height: 620px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #03040c; }
.craft-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.craft-note { position: absolute; left: 12px; bottom: 8px; z-index: 2; margin: 0; font-size: .78rem; color: var(--muted); pointer-events: none; }
.hotspot {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; pointer-events: auto;
  background: rgba(57,214,255,.85); color: #001018; font-weight: 800; font-size: .8rem; box-shadow: 0 0 12px rgba(57,214,255,.8);
}
.hotspot:hover, .hotspot.active { background: #ffd25a; box-shadow: 0 0 18px rgba(255,210,90,.95); transform: scale(1.15); }
.craft-stage .label-layer { z-index: 1; }
.craft-info { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: rgba(255,255,255,.03); max-height: 620px; overflow: auto; }
.craft-info .tag { color: var(--aurora); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.craft-name { font-size: 1.6rem !important; margin: 2px 0 8px; }
.craft-info p { color: #cfd6f5; }
.craft-info h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 8px; }
.craft-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.craft-facts dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.craft-facts dd { margin: 0; font-size: .88rem; }
.theme-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.theme-badges button { font-size: .78rem; padding: 5px 10px; }
.inst-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.inst-list li { border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.inst-list li.open { border-color: #ffd25a; background: rgba(255,210,90,.06); }
.inst-list button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 8px 10px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.inst-list .num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(57,214,255,.85); color: #001018; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.inst-list li.open .num { background: #ffd25a; }
.inst-list p { margin: 0; padding: 0 12px 10px 42px; font-size: .9rem; }
.saw-list { margin: 0; padding-left: 20px; color: #cfd6f5; font-size: .92rem; }
.saw-list li { margin-bottom: 4px; }
.future-card { margin-top: 18px; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed rgba(107,255,176,.45); background: rgba(107,255,176,.05); }
.future-card p { margin: 0; color: #d6f7e6; }
@media (max-width: 960px) {
  .craft-layout { grid-template-columns: 1fr; }
  .craft-stage { height: 420px; }
  .craft-info { max-height: none; }
  .craft-facts { grid-template-columns: 1fr 1fr; }
}

/* moon effect labels and chips */
.scene-label.fx { font-size: 11px; color: #ffe6a8; border-color: rgba(255,200,120,.45); background: rgba(20,12,4,.55); }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.fx-chips span { font-size: .78rem; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255,200,120,.4); background: rgba(255,200,120,.08); color: #ffe6c0; }
.moon-status { margin: 10px 0 6px; padding: 6px 10px; border-radius: 8px; font-size: .82rem; background: rgba(255,210,120,.1); border: 1px solid rgba(255,210,120,.35); color: #ffe0a0; }
.moon-status.tail { background: rgba(90,255,190,.1); border-color: rgba(90,255,190,.4); color: #9fffd8; }
#moonTail { width: 100%; margin-bottom: 8px; }
