/* orbit.css — Zero-G Plushie ($ZEROG): inside a space station. Hachi Maru Pop for the soft titles, Major Mono
   Display for the stencilled labels, Livvic for reading. Mint is Floof; gold is the handrails. */
@font-face { font-family: "Hachi Maru Pop"; src: url("../assets/fonts/HachiMaru-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Major Mono Display"; src: url("../assets/fonts/MajorMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Livvic"; src: url("../assets/fonts/Livvic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Livvic"; src: url("../assets/fonts/Livvic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --space: #0B1026; --space2: #1A2350; --wall: #F4F6FA; --panel: #C9CFDA; --panel2: #DCE1EA; --ink: #20223A; --dim: #6A7090;
  --gold: #E7B442; --mint: #8FE3CF; --mint2: #5CC4AE; --lilac: #B9A6F2; --coral: #FF7A7A; --earth: #2F7FD8;
  --soft: "Hachi Maru Pop", "Livvic", system-ui, sans-serif; --stencil: "Major Mono Display", ui-monospace, monospace; --sans: "Livvic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #E8ECF3; color: var(--ink); font: 400 18px/1.62 var(--sans); overflow-x: hidden; }
[hidden] { display: none !important; }
a { color: #3A4FB8; }
b { font-weight: 600; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.chip { font: 600 17px/1 var(--sans); background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; box-shadow: 0 0 0 3px var(--mint) inset; }
.chip:hover { background: #343866; }
.chip.ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.chip.big { font-size: 20px; padding: 15px 26px; }
.chip:disabled { opacity: .5; cursor: wait; }
.lede { max-width: 860px; margin: 0 0 24px; }

/* ---------------------------------------------------------------- 1. the cupola */
.cupola { background: radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 30% 70%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 75% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90% 80%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 45% 90%, #fff 50%, transparent 51%), linear-gradient(180deg, var(--space), var(--space2)); background-size: 220px 220px, 300px 300px, 260px 260px, 340px 340px, 280px 280px, 240px 240px, 100% 100%; color: #fff; }
.cu-in { max-width: 1280px; margin: 0 auto; padding: 60px 28px 70px; display: grid; grid-template-columns: 1fr 380px 330px; gap: 30px; align-items: center; }
.cu-k { font: 400 15px/1 var(--stencil); color: var(--mint); margin: 0 0 14px; }
h1 { font: 400 clamp(56px, 7vw, 100px)/1.05 var(--soft); margin: 0 0 18px; }
h1 span { display: block; color: var(--mint); }
.cu-sub { max-width: 520px; font-size: 20px; margin: 0; color: #D7DCF0; }
.cu-sub b { color: #fff; }
.window { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #050816; box-shadow: 0 0 0 18px #8A90A6, 0 0 0 22px var(--ink), 0 0 0 30px #5A6078, 0 20px 50px rgba(0,0,0,.6); }
.window::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 40%); }
.earth { position: absolute; left: -30%; right: -30%; top: 58%; height: 140%; border-radius: 50%; background: radial-gradient(circle at 50% 20%, #6FC0F5, var(--earth) 30%, #18489A 60%); box-shadow: 0 -10px 40px rgba(111,192,245,.6); }
.earth::before { content: ""; position: absolute; left: 28%; top: 6%; width: 22%; height: 9%; border-radius: 50%; background: #5DAA5A; opacity: .8; box-shadow: 180px 30px 0 -6px #5DAA5A, 60px 60px 0 -10px rgba(255,255,255,.7); }
.floof { position: absolute; left: 24%; top: 12%; width: 52%; animation: bob 5s ease-in-out infinite; }
.floof svg { display: block; width: 100%; height: auto; }
@keyframes bob { 50% { transform: translate(8px, -12px) rotate(8deg); } }
.kneeboard { position: relative; background: #FBF8F0; color: var(--ink); border-radius: 10px; padding: 34px 18px 18px; box-shadow: 0 0 0 10px #4A5068, 0 16px 40px rgba(0,0,0,.5); }
.kneeboard::before { content: ""; position: absolute; left: -10px; right: -10px; top: 60px; height: 24px; background: repeating-linear-gradient(90deg, #2B2F4A 0 12px, #353A5C 12px 24px); opacity: .9; }
.kneeboard::after { content: ""; position: absolute; left: 50%; top: -6px; width: 90px; height: 20px; margin-left: -45px; background: #9AA0B5; border-radius: 4px; }
.kb-h { position: relative; z-index: 1; font: 400 18px/1 var(--stencil); margin: 0 0 40px; text-align: center; }
.kneeboard ol { list-style: none; margin: 0; padding: 0; }
.kneeboard a { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; padding: 9px 6px; border-bottom: 1px dashed #C2C6D6; font-weight: 600; font-size: 16px; line-height: 1.25; }
.kneeboard a b { font: 400 14px var(--stencil); color: var(--mint2); margin-right: 4px; }
.box { flex: none; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 4px; }
.kneeboard a:hover .box, .kneeboard a:focus-visible .box { background: var(--mint); box-shadow: inset 0 0 0 3px #FBF8F0; }
.kneeboard a:hover { background: #F0F7F4; }

/* ---------------------------------------------------------------- sections: station panels */
main > section { max-width: 1280px; margin: 0 auto; padding: 70px 28px 50px; }
main > section:nth-child(even) { background: none; }
.ph { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 20px; margin-bottom: 26px; }
.proc { grid-column: 1 / -1; margin: 0; font: 400 15px var(--stencil); color: var(--mint2); }
h2 { font: 400 clamp(34px, 4.6vw, 56px)/1.15 var(--soft); margin: 0; }
.home { font-weight: 600; white-space: nowrap; }
.home::before { content: "\2191  "; }

/* ---------------------------------------------------------------- 2. the indicator */
.ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.capsule { background: var(--wall); border: 3px solid var(--ink); border-radius: 40px 40px 24px 24px; padding: 18px 22px; box-shadow: 0 8px 0 var(--panel); }
.cp-t { display: flex; justify-content: space-between; font: 400 22px var(--stencil); margin: 0; }
.cp-t b { font-weight: 400; color: var(--coral); }
.cp-hang { height: 300px; display: flex; justify-content: center; align-items: flex-start; border-bottom: 2px dashed var(--panel); }
.cp-toy { width: 170px; transition: transform .35s; }
.cp-toy svg { display: block; width: 100%; height: auto; }
.cp-graph { display: block; width: 100%; height: auto; margin-top: 12px; }
.cp-graph .ax { stroke: var(--ink); stroke-width: 2; } .cp-graph .g1 { stroke: var(--panel); stroke-width: 2; stroke-dasharray: 4 4; }
.cp-graph .gl { font: 400 11px var(--stencil); fill: var(--dim); }
.cp-graph .curve { fill: none; stroke: var(--lilac); stroke-width: 4; stroke-linejoin: round; }
#lDot { fill: var(--coral); stroke: var(--ink); stroke-width: 2; }
.ind-l { display: block; font-weight: 600; margin-bottom: 8px; }
#lRange, #ffRange { width: 100%; accent-color: var(--mint2); height: 28px; }
.ind-ph { font: 400 28px/1.25 var(--soft); color: var(--ink); margin: 12px 0 6px; }
.ind-note { font-size: 14px; color: var(--dim); margin: 16px 0 0; }

/* ---------------------------------------------------------------- 3. the tour */
.tour-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
#tourMap { width: 100%; height: auto; }
#tourMap .mod { fill: var(--wall); stroke: var(--ink); stroke-width: 4; }
#tourMap .hatch { fill: var(--panel2); stroke: var(--ink); stroke-width: 4; }
#tourMap .modl { font: 400 22px var(--stencil); fill: var(--dim); text-anchor: middle; }
#tourMap .route { fill: none; stroke: var(--gold); stroke-width: 4; stroke-dasharray: 10 9; }
#tourMap .spot { cursor: pointer; }
#tourMap .spot circle { fill: #fff; stroke: var(--ink); stroke-width: 4; transition: fill .2s; }
#tourMap .spot.on circle, #tourMap .spot:hover circle { fill: var(--mint); }
#tourMap .spot:focus { outline: none; } #tourMap .spot:focus-visible circle { stroke: var(--coral); stroke-width: 6; }
#tourMap .ic { fill: var(--earth); } #tourMap .icl { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
#tourMap .sl { font: 400 15px var(--stencil); text-anchor: middle; fill: var(--ink); pointer-events: none; }
.tour-card { background: var(--wall); border: 3px solid var(--ink); border-radius: 22px; padding: 20px 22px; box-shadow: 8px 8px 0 var(--lilac); }
.tc-m { font: 400 14px var(--stencil); color: var(--mint2); margin: 0; }
.tc-t { font: 400 28px/1.25 var(--soft); margin: 4px 0 8px; }
.tc-facts { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 2px dashed var(--panel); font-size: 15px; }
.tc-facts li + li { margin-top: 6px; }
.tc-facts b { color: var(--coral); font-size: 20px; }

/* ---------------------------------------------------------------- 4. the locker */
.lk-grid { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 30px; align-items: start; }
.velcro { background: #6B7186 repeating-linear-gradient(45deg, rgba(0,0,0,.06) 0 3px, transparent 3px 7px); border: 4px solid var(--ink); border-radius: 18px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.patch { background: var(--wall); border-radius: 12px; padding: 14px 16px; box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px rgba(0,0,0,.25); margin: 0; }
.tag { background: var(--mint); }
.pt-k { font: 400 12px var(--stencil); color: var(--dim); margin: 0 0 6px; }
.tag .pt-k { color: var(--ink); }
.pt-t { font: 400 32px/1.1 var(--soft); margin: 0; }
.pt-n { margin: 4px 0 0; font-weight: 600; }
.ca { grid-column: 1 / -1; }
.ca code { display: block; font: 600 15px/1.45 var(--mono); background: #fff; border: 2px dashed var(--ink); border-radius: 8px; padding: 9px 11px; overflow-wrap: anywhere; }
.pt-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.pt-ok { font-weight: 600; color: var(--mint2); }
.specs p { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 4px 0; border-bottom: 1px dashed var(--panel); }
.specs span, .gauges span { font: 400 12px/1.8 var(--stencil); color: var(--dim); }
.gauges { list-style: none; background: #1B1F36; color: var(--mint); }
.gauges li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.gauges span { color: #9AA0C8; }
.gauges b { font: 600 15px var(--sans); }
.gauges b sub { font-size: .7em; }
.gauges .up { color: var(--mint); } .gauges .down { color: var(--coral); }
.at { grid-column: 1 / -1; font-size: 14px; color: var(--dim); padding: 8px 14px; }
.hatches { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hatches a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; background: var(--panel2); border: 3px solid var(--ink); border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px; }
.hatches img { width: 52px; height: 52px; border-radius: 50%; border: 4px solid #8A90A6; background: #fff; object-fit: cover; }
.hatches a:hover { background: var(--mint); }
.laptop { margin: 0; }
.lp-screen { position: relative; height: 460px; background: #fff; border: 14px solid #2B2F4A; border-radius: 14px 14px 4px 4px; overflow: hidden; }
.lp-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lp-wait { position: absolute; inset: 0; display: grid; place-items: center; background: #F4F6FA; font: 400 18px var(--stencil); color: var(--dim); transition: opacity .4s; }
.lp-wait.off { opacity: 0; pointer-events: none; }
.lp-base { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #3A3F5E; color: #D7DCF0; border-radius: 0 0 18px 18px; padding: 10px 18px; font: 400 13px var(--stencil); margin: 0 -10px; }
.lp-base a { color: var(--mint); font: 600 15px var(--sans); }

/* ---------------------------------------------------------------- 5. the game */
.console { background: #2B2F4A; border: 4px solid var(--ink); border-radius: 22px; padding: 16px; box-shadow: 0 10px 0 var(--ink); }
.cn-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cn-msg { margin: 0; color: #fff; font-weight: 600; flex: 1 1 380px; min-height: 1.6em; }
.lv { display: inline-flex; border: 2px solid var(--mint); border-radius: 999px; overflow: hidden; }
.lv button { font: 600 15px/1 var(--sans); background: transparent; color: #fff; border: 0; padding: 10px 14px; cursor: pointer; }
.lv button + button { border-left: 2px solid var(--mint); }
.lv button[aria-pressed="true"] { background: var(--mint); color: var(--ink); }
#float-cv { display: block; width: 100%; height: auto; border-radius: 12px; border: 3px solid var(--ink); background: var(--panel); touch-action: none; }
.cn-bot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.cn-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 0 auto; color: #fff; }
.cn-stats div { display: flex; flex-direction: column; }
.cn-stats dt { font: 400 11px var(--stencil); color: #9AA0C8; }
.cn-stats dd { margin: 0; font: 600 21px/1.2 var(--sans); color: var(--mint); }
.log { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.log div { background: var(--wall); border-radius: 999px; padding: 6px 16px; display: flex; gap: 10px; align-items: baseline; }
.log dt { font: 400 12px var(--stencil); color: var(--dim); }
.log dd { margin: 0; font: 400 20px/1 var(--soft); }

/* ---------------------------------------------------------------- 6. free fall */
.ff-grid { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: stretch; }
.ff-pre { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.ff-big { font: 400 72px/1 var(--soft); margin: 16px 0 8px; color: var(--coral); }
.ff-big small { display: block; font: 600 17px/1.4 var(--sans); color: var(--ink); margin-top: 8px; }
.ff-note { font-size: 15px; color: var(--dim); margin: 0 0 16px; }
.ff-msg { margin: 14px 0 0; font-weight: 600; min-height: 3em; }
.ff-shaft { position: relative; min-height: 520px; background: linear-gradient(180deg, var(--space2), #3A4570); border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; }
.ff-box { position: absolute; left: 50%; top: 10px; width: 150px; height: 150px; margin-left: -75px; background: rgba(244,246,250,.12); border: 4px solid var(--wall); border-radius: 14px; display: grid; place-items: center; }
.ff-box .toy { width: 90px; }
.ff-box .toy svg { display: block; width: 100%; height: auto; }
.ff-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--gold); }

/* ---------------------------------------------------------------- 7. debrief */
.debrief { background: var(--space); color: #D7DCF0; margin-top: 40px; }
.db-in { max-width: 1280px; margin: 0 auto; padding: 44px 28px; display: grid; grid-template-columns: 160px 1fr; gap: 30px; align-items: center; }
.patchround { width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, var(--earth) 0 30%, transparent 31%), var(--space2); border: 8px solid var(--gold); box-shadow: 0 0 0 4px var(--ink); display: grid; place-items: start center; padding-top: 18px; }
.patchround span { font: 400 12px var(--stencil); color: var(--mint); }
.db-t { font: 400 30px/1.2 var(--soft); color: #fff; margin: 0 0 14px; }
.db-t span:first-child { color: var(--mint); }
.db-links { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.db-links a { color: var(--mint); font-weight: 600; }
.db-small { font-size: 14px; color: #9AA0C8; margin: 0; max-width: 900px; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1100px) {
  .cu-in { grid-template-columns: 1fr 320px; }
  .kneeboard { grid-column: 1 / -1; max-width: 560px; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .cu-in { grid-template-columns: 1fr; padding: 40px 16px 50px; gap: 40px; }
  .window { max-width: 300px; margin: 0 auto; }
  main > section { padding: 50px 16px 36px; }
  .ph { grid-template-columns: 1fr; }
  .ind-grid, .tour-grid, .lk-grid, .ff-grid { grid-template-columns: 1fr; }
  .velcro { grid-template-columns: 1fr; }
  .hatches { grid-template-columns: repeat(2, 1fr); }
  .lp-screen { height: 400px; border-width: 8px; }
  .cn-stats { margin-left: 0; }
  .ff-shaft { min-height: 380px; }
  .db-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floof { animation: none; }
  .cp-toy, #tourMap .spot circle, .lp-wait { transition: none; }
}
