:root {
  --bg: #11161b;
  --panel: rgba(13, 18, 23, 0.8);
  --panel-solid: #141a20;
  --line: rgba(255, 255, 255, 0.1);
  --ink: #ece8dd;
  --muted: #9aa5ac;
  --amber: #ffa648;
  --amber-soft: rgba(255, 166, 72, 0.16);
  --cyan: #86e6ff;
  --radius: 12px;
  --gutter: 18px;
  --bar-h: 36px;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
#viewer { position: fixed; inset: var(--bar-h) 0 0; overflow: hidden; }
#scene { position: absolute; inset: 0; touch-action: none; }
#scene canvas { display: block; width: 100%; height: 100%; outline: none; }
#scene.dragging { cursor: grabbing; }
#viewer.walking #scene { cursor: grab; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 75% at 50% 48%, transparent 55%, rgba(6, 9, 12, 0.55)); }

/* Identity */
.identity { position: absolute; top: var(--gutter); left: var(--gutter); pointer-events: none; max-width: min(360px, 70vw); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 11px/1 var(--sans); letter-spacing: 0.18em; color: var(--amber); }
.eyebrow .rule { width: 22px; height: 1px; background: currentColor; }
.identity h1 { margin: 10px 0 4px; font: 600 30px/1.05 var(--sans); letter-spacing: -0.01em; }
.identity .sub { margin: 0; font-size: 13px; color: var(--muted); }

/* Mission clock */
.mission-clock { position: absolute; top: var(--gutter); left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 14px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.clock-row { display: flex; align-items: baseline; gap: 10px; }
.clock-label { font: 600 11px var(--mono); letter-spacing: 0.12em; color: rgba(255, 166, 72, 0.7); }
.clock-digits { font: 600 26px/1 var(--mono); color: var(--amber); text-shadow: 0 0 14px rgba(255, 140, 40, 0.55); font-variant-numeric: tabular-nums; }
.clock-note { font-size: 12px; color: var(--muted); }
.moment-switch { display: flex; padding: 3px; gap: 2px; background: rgba(255, 255, 255, 0.05); border-radius: 999px; }
.moment-switch button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.moment-switch button.active { background: var(--amber); color: #1a1208; }
.moment-switch button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Tour stops */
.station-panel { position: absolute; top: var(--gutter); right: var(--gutter); width: 258px; max-height: calc(100% - 140px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 14px 10px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.panel-heading svg { width: 18px; height: 18px; transition: rotate 0.25s; color: var(--muted); }
.station-panel.closed .panel-heading svg { rotate: -90deg; }
.kicker { display: block; font: 600 10px var(--sans); letter-spacing: 0.16em; color: var(--amber); }
.panel-title { display: block; margin-top: 4px; font: 600 16px var(--sans); }
.station-list { display: flex; flex-direction: column; gap: 2px; padding: 0 8px 6px; overflow-y: auto; }
.station-panel.closed .station-list, .station-panel.closed .panel-footer { display: none; }
.station-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; font-size: 14px; }
.station-button:hover { background: rgba(255, 255, 255, 0.06); }
.station-button.active { background: var(--amber-soft); }
.station-button:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.station-number { font: 600 11px var(--mono); color: var(--amber); min-width: 18px; }
.station-call { margin-left: auto; font: 600 10px var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.panel-footer { margin: 0; padding: 8px 16px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* Call-sign markers */
#call-labels { position: absolute; inset: 0; pointer-events: none; }
.call-marker { position: absolute; translate: -50% -100%; padding: 4px 7px; border: 1px solid rgba(134, 230, 255, 0.35); border-radius: 6px; background: rgba(8, 20, 28, 0.82); color: var(--cyan); font: 600 11px/1 var(--mono); letter-spacing: 0.04em; white-space: nowrap; cursor: pointer; pointer-events: auto; transition: opacity 0.2s, background 0.15s; }
.call-marker:hover, .call-marker.active { background: var(--amber); border-color: var(--amber); color: #1a1208; }
.call-marker.key { border-color: rgba(255, 166, 72, 0.7); color: #ffd29c; }

/* Info card */
.info-card { position: absolute; z-index: 7; right: var(--gutter); top: 140px; width: 340px; max-height: calc(100% - 250px); overflow-y: auto; padding: 16px 18px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.info-card[hidden] { display: none; }
.info-call { font: 700 11px var(--mono); color: var(--amber); letter-spacing: 0.1em; }
.info-card h2 { margin: 6px 30px 10px 0; font: 600 20px/1.2 var(--sans); }
.info-facts[hidden] { display: none; }
.info-facts div:nth-child(3):last-child { grid-column: 1 / -1; }
.info-seat { margin-top: 12px; }
.info-text { margin: 0; font-size: 14px; line-height: 1.5; color: #d2d4ce; }
.close-button { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.07); font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted); }
.close-button:hover { background: rgba(255, 255, 255, 0.14); color: var(--ink); }

/* Position and reticle */
.position-label { position: absolute; left: 50%; bottom: 84px; translate: -50% 0; padding: 6px 12px; border-radius: 999px; background: rgba(8, 12, 16, 0.6); font-size: 12px; color: var(--muted); pointer-events: none; opacity: 0; transition: opacity 0.3s; }
#viewer.walking .position-label { opacity: 1; }
.walk-reticle { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); pointer-events: none; opacity: 0; }
#viewer.walking .walk-reticle { opacity: 1; }

/* Controls */
.view-controls { position: absolute; left: 50%; bottom: var(--gutter); translate: -50% 0; display: flex; align-items: center; gap: 6px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mode-switch { display: flex; gap: 2px; padding: 2px; background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.mode-button, .tool-button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.mode-button svg, .tool-button svg { width: 18px; height: 18px; flex: none; }
.mode-button.active { background: var(--ink); color: #12171c; }
.tool-button:hover, .mode-button:not(.active):hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.tool-button.icon-only { width: 38px; padding: 0; justify-content: center; }
.tool-button.accent { color: #1a1208; background: var(--amber); }
.tool-button.accent:hover { background: #ffb869; color: #1a1208; }
.mode-button:focus-visible, .tool-button:focus-visible, .station-button:focus-visible, .call-marker:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.divider { width: 1px; height: 24px; background: var(--line); margin: 0 2px; }

.viewer-footer { position: absolute; left: var(--gutter); bottom: calc(var(--gutter) + 10px); display: flex; flex-direction: column; gap: 3px; max-width: calc(50% - 250px); font-size: 11px; color: var(--muted); pointer-events: none; }
.viewer-footer .credit { opacity: 0.75; }
#viewer:has(.info-card:not([hidden])) .viewer-footer { opacity: 0; }

/* Help */
.help-panel { position: absolute; left: 50%; bottom: 84px; translate: -50% 0; width: min(440px, calc(100% - 2 * var(--gutter))); padding: 16px 18px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.help-panel[hidden] { display: none; }
.help-heading h2 { margin: 0 0 10px; font-size: 16px; }
.help-panel dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13px; line-height: 1.45; }
.help-panel dt { font-weight: 600; color: var(--amber); }
.help-panel dd { margin: 0; color: #cfd2cd; }
kbd { display: inline-block; min-width: 20px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, 0.06); font: 600 11px var(--mono); text-align: center; }

/* Touch walking */
.walk-pad { position: absolute; right: var(--gutter); bottom: 84px; display: none; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(2, 52px); gap: 6px; }
.walk-pad button { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 20px; touch-action: none; user-select: none; -webkit-user-select: none; }
.walk-pad button.held { background: var(--amber); color: #1a1208; }
.walk-pad [data-move="forward"] { grid-column: 2; grid-row: 1; }
.walk-pad [data-move="left"] { grid-column: 1; grid-row: 2; }
.walk-pad [data-move="backward"] { grid-column: 2; grid-row: 2; }
.walk-pad [data-move="right"] { grid-column: 3; grid-row: 2; }
@media (pointer: coarse) { #viewer.walking .walk-pad { display: grid; } }

.toast { position: absolute; left: 50%; top: 120px; translate: -50% 0; padding: 9px 14px; border-radius: 10px; background: var(--panel-solid); border: 1px solid var(--line); font-size: 13px; }
.toast[hidden] { display: none; }

/* Plain loader (used when the drawing is off) */
.loading-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--bg); transition: opacity 0.7s ease; z-index: 20; }
.loading-screen.loaded { opacity: 0; pointer-events: none; }
.loading-title { margin: 0; font: 600 22px var(--sans); }
.loading-message { margin: 0; font-size: 13px; color: var(--muted); }
.loading-track { width: 180px; height: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; }
#loading-progress { width: 10%; height: 100%; background: var(--amber); transition: width 0.3s; }
.load-error { max-width: 360px; margin: 0; font-size: 13px; text-align: center; color: #ffb3a0; }
#reload-button { margin-top: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.06); cursor: pointer; }
.noscript { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); }

/* The tour's controls wait for the walls to rise, then settle in. */
#viewer .ui { transition: opacity 0.8s ease, translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
#viewer .station-panel { transition-delay: 0.12s; }
#viewer .view-controls { transition-delay: 0.24s; }
#viewer .mission-clock { transition-delay: 0.36s; }
#viewer.intro-hold .ui { opacity: 0; pointer-events: none; transition-delay: 0s; }
#viewer.intro-hold .identity, #viewer.intro-hold .station-panel, #viewer.intro-hold .viewer-footer { translate: 0 10px; }
#viewer.intro-hold .view-controls, #viewer.intro-hold .mission-clock { translate: -50% 10px; }

/* Landing replay */
.replay-start { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 6px 12px; border: 1px solid rgba(255, 166, 72, 0.45); border-radius: 999px; background: rgba(255, 166, 72, 0.12); color: #ffd3a2; font-size: 12px; font-weight: 600; cursor: pointer; }
.replay-start svg { width: 12px; height: 12px; }
.replay-start:hover { background: rgba(255, 166, 72, 0.22); }
#viewer.replaying .replay-start, #viewer.replaying .moment-switch { display: none; }
.replay-bar { position: absolute; left: 50%; bottom: 78px; translate: -50% 0; display: flex; align-items: center; gap: 10px; width: min(620px, calc(100% - 2 * var(--gutter))); padding: 8px 10px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.replay-bar[hidden] { display: none; }
.replay-play { min-width: 64px; height: 32px; border: 0; border-radius: 8px; background: var(--amber); color: #1a1208; font-weight: 700; font-size: 13px; cursor: pointer; }
.replay-get { font: 600 14px var(--mono); color: var(--amber); font-variant-numeric: tabular-nums; }
.replay-bar input[type=range] { flex: 1; accent-color: var(--amber); min-width: 60px; }
.replay-bar select { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #1b2229; color: var(--ink); font-size: 12px; padding: 0 6px; }
.replay-bar .close-button { position: static; flex: none; }
.caption { position: absolute; left: 50%; bottom: 132px; translate: -50% 0; width: min(720px, calc(100% - 2 * var(--gutter))); padding: 12px 16px; background: rgba(6, 9, 12, 0.86); border-left: 3px solid var(--cyan); border-radius: 8px; text-align: left; pointer-events: none; }
.caption[hidden] { display: none; }
.cap-who { display: block; font: 700 11px var(--mono); letter-spacing: 0.12em; color: var(--cyan); margin-bottom: 4px; }
.cap-who.narration { color: var(--amber); }
.cap-text { font-size: 17px; line-height: 1.4; color: #f3f1ea; }
.cap-text.narration { font-size: 15px; font-style: italic; color: #d8d4c8; }
#viewer.replaying .info-card, #viewer.replaying .position-label { display: none; }
.call-marker.speaking { background: var(--amber); border-color: var(--amber); color: #1a1208; box-shadow: 0 0 0 4px rgba(255, 166, 72, 0.3); }
.call-marker.exhibit-marker { border-color: rgba(255, 166, 72, 0.8); color: #1a1208; background: var(--amber); }

/* Saturn V prompt */
.exhibit-prompt { position: absolute; left: 50%; bottom: 150px; translate: -50% 0; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid rgba(255, 166, 72, 0.7); border-radius: 12px; background: rgba(20, 14, 6, 0.85); color: #ffd3a2; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); animation: prompt-in 0.35s ease; }
.exhibit-prompt[hidden] { display: none; }
.exhibit-prompt kbd { color: var(--ink); }
@keyframes prompt-in { from { opacity: 0; translate: -50% 8px; } }
#sound-toggle .off { display: none; }
#sound-toggle.muted .off { display: block; }
#sound-toggle.muted .on { display: none; }
#sound-toggle[hidden], #music-toggle[hidden] { display: none; }
#music-toggle.on { color: #ffd3a2; background: rgba(255, 166, 72, 0.14); }
#music-toggle.on svg { animation: music-bob 1.4s ease-in-out infinite; }
@keyframes music-bob { 50% { translate: 0 -1.5px; } }

/* In the exhibit the room's interface steps aside. */
#viewer.in-exhibit .ui, #viewer.in-exhibit .info-card, #viewer.in-exhibit .replay-bar, #viewer.in-exhibit .caption, #viewer.in-exhibit .position-label, #viewer.in-exhibit .walk-reticle, #viewer.in-exhibit .help-panel, #viewer.in-exhibit .exhibit-prompt { display: none !important; }

/* Saturn V exhibit */
.exhibit { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s ease; z-index: 5; }
.exhibit.shown { opacity: 1; }
.exhibit > * { pointer-events: auto; }
.ex-head { position: absolute; top: var(--gutter); left: var(--gutter); pointer-events: none; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.ex-eyebrow { display: flex; align-items: center; gap: 10px; font: 600 11px var(--sans); letter-spacing: 0.18em; color: var(--amber); }
.ex-eyebrow .rule { width: 22px; height: 1px; background: currentColor; }
.ex-head h2 { margin: 8px 0 4px; font: 600 28px/1.1 var(--sans); }
.ex-sub { margin: 0; font-size: 13px; color: var(--muted); }
.ex-close { position: absolute; top: var(--gutter); right: var(--gutter); height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; backdrop-filter: blur(10px); }
.ex-close:hover { background: rgba(255, 255, 255, 0.1); }
.ex-parts { position: absolute; left: var(--gutter); top: 118px; width: 210px; max-height: calc(100% - 220px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(10px); }
.ex-group { padding: 8px 8px 4px; font: 600 10px var(--sans); letter-spacing: 0.14em; color: var(--amber); text-transform: uppercase; }
.ex-part { padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: 13px; color: #d6d8d3; cursor: pointer; }
.ex-part:hover { background: rgba(255, 255, 255, 0.06); }
.ex-part.active { background: var(--amber-soft); color: #fff; }
.exhibit.flying .ex-parts, .exhibit.flying .ex-labels { display: none; }
.ex-card { position: absolute; right: var(--gutter); top: 70px; width: 340px; max-height: calc(100% - 170px); overflow-y: auto; padding: 16px 18px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.ex-kicker { font: 700 11px var(--mono); letter-spacing: 0.1em; color: var(--amber); }
.ex-card h3 { margin: 6px 0 10px; font: 600 20px/1.2 var(--sans); }
.ex-card h4 { margin: 14px 0 4px; font: 600 12px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.ex-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: #d2d4ce; }
.ex-card .ex-hint { font-size: 12px; color: var(--muted); }
.ex-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0 0 12px; }
.ex-facts div { padding: 7px 9px; background: rgba(255, 255, 255, 0.04); border-radius: 8px; }
.ex-facts dt { font: 600 10px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ex-facts dd { margin: 3px 0 0; font-size: 13px; color: #f1efe8; }
.ex-labels { position: absolute; inset: 0; pointer-events: none; }
.ex-lines { position: absolute; inset: 0; overflow: visible; }
.ex-lines circle { fill: var(--amber); }
.ex-lines path { stroke: rgba(255, 166, 72, 0.7); stroke-width: 1; fill: none; }
.ex-label { position: absolute; left: 0; top: 0; padding: 4px 8px; border: 1px solid rgba(255, 166, 72, 0.5); border-radius: 6px; background: rgba(12, 10, 6, 0.8); color: #ffe2bf; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; pointer-events: auto; transition: opacity 0.2s; }
.ex-label:hover, .ex-label.active { background: var(--amber); color: #1a1208; }
.ex-bar { position: absolute; left: 50%; bottom: var(--gutter); translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px); max-width: calc(100% - 2 * var(--gutter)); }
.ex-modes { display: flex; gap: 2px; padding: 2px; background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.ex-modes button { height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ex-modes button.active { background: var(--ink); color: #12171c; }
.ex-explore, .ex-flight { display: flex; align-items: center; gap: 10px; }
.ex-explore[hidden], .ex-flight[hidden] { display: none; }
.ex-slider { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ex-slider input { width: 200px; accent-color: var(--amber); }
.ex-toggle { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.ex-toggle.active { background: var(--amber-soft); border-color: rgba(255, 166, 72, 0.5); color: #ffd3a2; }
.ex-step-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; }
.ex-step { display: flex; flex-direction: column; min-width: 190px; }
.ex-step-get { font: 600 11px var(--mono); color: var(--amber); }
.ex-step-title { font-size: 14px; font-weight: 600; }
.ex-play { height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--amber); color: #1a1208; font-weight: 700; cursor: pointer; }
.ex-modes button:focus-visible, .ex-toggle:focus-visible, .ex-part:focus-visible, .ex-close:focus-visible, .ex-play:focus-visible, .ex-step-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Narrow screens */
@media (max-width: 900px) {
  .viewer-footer .credit { display: none; }
  .viewer-footer { max-width: 40%; }
}
@media (max-width: 700px) {
  :root { --gutter: 12px; }
  .identity h1 { font-size: 22px; margin: 6px 0 2px; }
  .identity .sub { display: none; }
  .mission-clock { top: auto; bottom: 72px; left: var(--gutter); translate: none; padding: 7px 10px; gap: 4px; align-items: flex-start; }
  #viewer.intro-hold .mission-clock { translate: 0 10px; }
  .clock-digits { font-size: 18px; }
  .clock-note { display: none; }
  .moment-switch button { padding: 5px 9px; font-size: 11px; }
  .station-panel { width: min(230px, 52vw); max-height: calc(100% - 190px); }
  .panel-title { font-size: 14px; }
  .view-controls { left: var(--gutter); right: var(--gutter); translate: none; justify-content: space-between; }
  #viewer.intro-hold .view-controls { translate: 0 10px; }
  .mode-button span, .tool-button span:not([aria-hidden]) { display: none; }
  .mode-button { padding: 0 11px; }
  .viewer-footer { display: none; }
  .eyebrow .date { display: none; }
  .info-card { top: 76px; left: var(--gutter); right: var(--gutter); width: auto; max-height: 46vh; padding: 12px 14px; }
  .info-facts { gap: 6px; margin-bottom: 10px; }
  .info-facts div { padding: 5px 8px; }
  .info-card h2 { font-size: 16px; }
  .info-text { font-size: 13px; line-height: 1.45; }
  #viewer:has(.info-card:not([hidden])) .position-label { opacity: 0; }
  #viewer:has(.info-card:not([hidden])) .mission-clock { opacity: 0; pointer-events: none; }
  .position-label { bottom: 128px; }
  .walk-pad { bottom: 140px; }
  .help-panel { bottom: 72px; }
  .replay-bar { bottom: 70px; gap: 6px; padding: 6px; }
  .replay-bar select { max-width: 92px; }
  .replay-get { display: none; }
  .caption { bottom: 122px; padding: 10px 12px; }
  .cap-text { font-size: 15px; }
  .cap-text.narration { font-size: 13px; }
  #viewer.replaying .mission-clock { top: 76px; bottom: auto; left: var(--gutter); }
  #tool-labels, #open-exhibit span { display: none; }
  .ex-head h2 { font-size: 20px; }
  .ex-sub { display: none; }
  .ex-parts { top: auto; bottom: 74px; left: var(--gutter); right: var(--gutter); width: auto; max-height: none; flex-direction: row; overflow-x: auto; padding: 6px; }
  .ex-group { display: none; }
  .ex-part { white-space: nowrap; flex: none; }
  .ex-card { top: auto; bottom: 128px; left: var(--gutter); right: var(--gutter); width: auto; max-height: 27vh; padding: 12px 14px; }
  .ex-card .ex-facts { display: none; }
  .ex-labels .ex-label { font-size: 10.5px; padding: 3px 6px; }
  .ex-facts { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ex-bar { left: var(--gutter); right: var(--gutter); translate: none; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .ex-slider span { display: none; }
  .ex-slider input { width: 130px; }
  .ex-step { min-width: 120px; }
  .exhibit.flying .ex-card { bottom: 74px; }
}
@media (prefers-reduced-motion: reduce) { #music-toggle.on svg { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  #viewer .ui { transition: opacity 0.3s ease; }
  #viewer.intro-hold .ui { translate: none; }
}
.ex-label.sub { border-color: rgba(134, 230, 255, 0.5); color: #c9f2ff; background: rgba(6, 16, 22, 0.82); font-weight: 500; font-size: 11.5px; }
.ex-label.sub:hover, .ex-label.sub.active { background: var(--cyan); color: #06141a; }

/* Tanukade: header link, corner button, pitch card */
.identity .edition { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; font-weight: 600; color: #ffd3a2; text-decoration: none; pointer-events: auto; border-bottom: 1px solid rgba(255, 166, 72, 0.35); padding-bottom: 1px; }
.identity .edition:hover { color: #fff; border-color: var(--amber); }
.tk-cta { position: absolute; left: var(--gutter); bottom: var(--gutter); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border: 1px solid rgba(255, 166, 72, 0.45); border-radius: 14px; background: rgba(20, 15, 8, 0.82); color: var(--ink); text-decoration: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); transition: opacity 0.6s ease, translate 0.6s ease, border-color 0.2s, background 0.2s; }
.tk-cta img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #1b1409; }
.tk-cta b { display: block; font-size: 14px; color: #ffe0b8; }
.tk-cta small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.tk-cta:hover { border-color: var(--amber); background: rgba(40, 26, 10, 0.92); }
.tk-cta:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
#viewer.intro-hold .tk-cta { opacity: 0; translate: 0 10px; pointer-events: none; }
.viewer-footer { bottom: 82px; }
.tk-pitch { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: var(--gutter); background: rgba(3, 5, 8, 0.55); opacity: 0; transition: opacity 0.25s ease; }
.tk-pitch[hidden] { display: none; }
.tk-pitch.shown { opacity: 1; }
.tk-box { position: relative; width: min(760px, 100%); max-height: calc(100% - 2 * var(--gutter)); overflow-y: auto; padding: 28px 30px 24px; background: linear-gradient(180deg, #1a140c, #0f1216 60%); border: 1px solid rgba(255, 166, 72, 0.4); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); text-align: center; translate: 0 14px; transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tk-pitch.shown .tk-box { translate: 0 0; }
.tk-mascot { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; margin: -4px auto 10px; display: block; box-shadow: 0 0 0 1px rgba(255, 166, 72, 0.4), 0 10px 30px rgba(255, 140, 40, 0.25); }
.tk-kicker { font: 700 11px var(--mono); letter-spacing: 0.16em; color: var(--amber); }
.tk-box h2 { margin: 10px 0 10px; font: 700 clamp(24px, 3.6vw, 34px)/1.12 var(--sans); letter-spacing: -0.015em; color: #fff4e6; }
.tk-body { margin: 0 auto 18px; max-width: 560px; font-size: 16px; line-height: 1.5; color: #d9d5cb; }
.tk-games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 20px; }
.tk-games a { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #0b0d10; border: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; transition: transform 0.2s, border-color 0.2s; }
.tk-games a:hover { transform: translateY(-2px); border-color: var(--amber); }
.tk-games video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-games span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12px; font-weight: 600; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); }
.tk-actions { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-go { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 26px; border-radius: 12px; background: var(--amber); color: #1a1208; font-size: 16px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(255, 140, 40, 0.35); }
.tk-go:hover { background: #ffb869; }
.tk-stay { height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.tk-stay:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.tk-go:focus-visible, .tk-stay:focus-visible, .tk-games a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
@media (max-width: 700px) {
  .tk-cta { top: 76px; bottom: auto; left: var(--gutter); padding: 5px 10px 5px 5px; gap: 7px; border-radius: 11px; }
  .tk-cta img { width: 28px; height: 28px; border-radius: 7px; }
  .tk-cta b { font-size: 12px; }
  .tk-cta small { display: none; }
  #viewer:has(.info-card:not([hidden])) .tk-cta { opacity: 0; pointer-events: none; }
  .identity .edition { display: none; }
  .tk-box { padding: 22px 16px 18px; }
  .tk-body { font-size: 14px; }
  .tk-games { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tk-mascot { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .tk-box { transition: none; translate: none; } }

/* Call-sign labels: what each position did, under the call sign where there is room (and on hover). */
.call-marker { display: grid; justify-items: center; gap: 2px; text-align: center; padding: 4px 6px; }
.call-marker b { font-weight: 600; }
.call-marker .role { max-width: 88px; font: 500 9.5px/1.15 var(--sans); letter-spacing: 0; color: rgba(222, 236, 242, 0.82); white-space: normal; text-wrap: balance; }
.call-marker.key .role { color: rgba(255, 226, 190, 0.88); }
.call-marker:hover .role, .call-marker.active .role, .call-marker.speaking .role, .call-marker.exhibit-marker .role { color: #1a1208; }
.call-marker.compact .role { display: none; }
.call-marker.compact:hover { z-index: 2; }
.call-marker.compact:hover .role { display: block; }
.call-marker.below { translate: -50% 6px; }

/* Top live bar (same as Mutuals Orbit and The Timeline 100): total visitors, live now, time spent. */
.live-stats { position: fixed; inset: 0 0 auto; height: var(--bar-h); z-index: 60; background: rgba(9, 13, 17, 0.94); border-bottom: 1px solid var(--line); font: 700 10px/1 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.live-stats-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 22px; }
.stats-edition { font-size: 10px; letter-spacing: 0.2em; color: var(--ink); }
.stats-edition span { color: var(--muted); margin-left: 8px; }
.stats-metrics { display: flex; align-items: center; gap: 22px; }
.stat-metric { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.stat-metric + .stat-metric { border-left: 1px solid var(--line); padding-left: 22px; }
.stat-metric strong { font: 800 13px/1 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--amber); min-width: 1ch; }
.stats-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.live-stats[data-state=live] .stats-dot { background: #6be36b; box-shadow: 0 0 10px #6be36baa; animation: stats-blink 1.6s ease-in-out infinite; }
@keyframes stats-blink { 50% { opacity: 0.35; } }
@media (max-width: 700px) {
  :root { --bar-h: 30px; }
  .stats-edition { display: none; }
  .live-stats-inner { padding: 0 12px; gap: 10px; justify-content: center; }
  .stats-metrics { gap: 10px; }
  .stat-metric + .stat-metric { padding-left: 10px; }
  .stat-metric > span:not(.stats-dot) { font-size: 8px; }
  .stat-metric strong { font-size: 12px; }
}
