/* ============================================================
   Voyage (voyage.html) page styles: a full-screen, sky-viewer-style
   immersive stage that hosts the WebGL2 flight engine, plus the
   scroll-below content. Page-scoped: nothing here touches the shared
   style.css, so no site-wide cache bump is needed.
   ============================================================ */

/* ---- chrome tokens: the stage is always dark; night mode goes red ---- */
:root {
  --voy-ink: #e6eafc;
  --voy-muted: #a7b0d4;
  --voy-panel: rgba(12, 16, 34, 0.72);
  --voy-border: rgba(150, 162, 215, 0.24);
  --voy-accent: #8b93ff;
}
:root[data-theme="night"] {
  --voy-ink: #f47171;
  --voy-muted: #b56060;
  --voy-panel: rgba(23, 6, 6, 0.82);
  --voy-border: rgba(66, 17, 17, 0.9);
  --voy-accent: #e04747;
}

/* ---- tuck the site header away; a pull-down tab reveals it (like the sky map) ---- */
body.voy-immersive .site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transform: translateY(-105%);
  transition: transform 0.28s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
body.voy-immersive.voy-header-open .site-header { transform: none; }
body.voy-immersive .site-header:focus-within { transform: none; }
body.voy-immersive .ad-slot { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  body.voy-immersive .site-header { transition: none; }
}

/* ---- the fixed full-viewport stage ---- */
.voy-stage {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  background: #05060d;
  overflow: hidden;
  overscroll-behavior: none;
}
.voy-stage [hidden] { display: none !important; }
:root[data-theme="night"] .voy-stage { background: #0b0303; }

.voy-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.voy-canvas:active { cursor: grabbing; }
body.voy-flying .voy-canvas { cursor: none; }
.voy-canvas:focus-visible { outline: 3px solid var(--voy-accent); outline-offset: -3px; }

/* the provenance watermark is drawn inside the GL canvas (screenshot-safe), not in the DOM */

/* cockpit view: an in-cabin flight deck, shown only in the cockpit point of view.
   The center of the windshield stays clear so you fly looking out through the glass;
   the instruments use the Voyage accent token so they redden in night mode. */
.voy-canopy { display: none; position: absolute; inset: 0; z-index: 5; pointer-events: none; }
body.voy-flying.voy-cockpit .voy-canopy { display: block; }

/* windshield glass: a vignette and a faint inner rim so you feel enclosed */
.voy-canopy::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(125% 100% at 50% 38%, transparent 46%, rgba(4, 7, 16, 0.88) 100%);
  box-shadow: inset 0 0 0 2px rgba(139, 147, 255, 0.16), inset 0 0 90px rgba(0, 0, 0, 0.5);
}
/* canopy pillars framing the top corners */
.voy-cp-pillar { position: absolute; top: 0; width: clamp(80px, 18vw, 220px); height: clamp(120px, 40vh, 360px); background: linear-gradient(160deg, rgba(15, 19, 40, 0.96), rgba(9, 12, 26, 0.28)); }
.voy-cp-pillar-l { left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.voy-cp-pillar-r { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }

/* the flight deck across the bottom */
.voy-cp-dash {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(174px, 30vh, 300px);
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 3vw, 44px);
  padding: 0 clamp(14px, 3.5vw, 48px) clamp(10px, 2vh, 24px);
  background: linear-gradient(to top, #04060d 0%, #0a0e1c 48%, rgba(11, 15, 30, 0.72) 84%, transparent 100%);
  border-top: 2px solid var(--voy-accent);
  border-radius: 46px 46px 0 0;
  box-shadow: 0 -14px 46px rgba(0, 0, 0, 0.5);
}
.voy-cp-cluster { display: flex; flex-direction: column; align-items: center; gap: clamp(6px, 1.4vh, 12px); }
.voy-cp-center { flex: 0 0 auto; }

/* round gauges with an arc scale and a needle */
.voy-cp-gauge { width: clamp(46px, 7.5vw, 84px); aspect-ratio: 1; border-radius: 50%; position: relative; background: radial-gradient(circle at 50% 42%, #141931, #06090f 72%); border: 2px solid var(--voy-border); box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.65); }
.voy-cp-gauge-sm { width: clamp(38px, 5.5vw, 62px); }
.voy-cp-gauge::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: conic-gradient(from 145deg, var(--voy-accent) 0deg 170deg, transparent 170deg); -webkit-mask: radial-gradient(transparent 56%, #000 59%); mask: radial-gradient(transparent 56%, #000 59%); opacity: .6; }
.voy-cp-gauge::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13%; height: 13%; border-radius: 50%; background: var(--voy-muted); transform: translate(-50%, -50%); }
.voy-cp-needle { position: absolute; left: 50%; top: 50%; width: 2px; height: 38%; background: var(--voy-accent); border-radius: 2px; transform-origin: bottom center; transform: translate(-50%, -100%) rotate(42deg); box-shadow: 0 0 5px var(--voy-accent); }
.voy-cp-gauge-sm .voy-cp-needle { transform: translate(-50%, -100%) rotate(-24deg); }

/* control knobs */
.voy-cp-knobrow { display: flex; gap: clamp(6px, 1vw, 13px); }
.voy-cp-knob { width: clamp(15px, 2.1vw, 24px); aspect-ratio: 1; border-radius: 50%; position: relative; background: radial-gradient(circle at 38% 32%, #2b3154, #0b0f20 76%); border: 1px solid var(--voy-border); box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.09); }
.voy-cp-knob::after { content: ""; position: absolute; left: 50%; top: 14%; width: 2px; height: 32%; background: var(--voy-muted); border-radius: 2px; transform: translateX(-50%); }

/* multi-function screens: an attitude display and a nav scope */
.voy-cp-screens { display: flex; gap: clamp(8px, 1.5vw, 18px); }
.voy-cp-screen { width: clamp(90px, 15vw, 196px); height: clamp(56px, 9.5vh, 108px); border-radius: 7px; border: 1px solid var(--voy-border); background: #05080f; position: relative; overflow: hidden; box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.7); }
/* the attitude/horizon display: sky-over-ground and a horizon line that shift with
   pitch and tilt with roll, both driven live from the flight state (--cp-pitch/--cp-roll) */
.voy-cp-mfd::before { content: ""; position: absolute; inset: -30%; background: linear-gradient(to bottom, rgba(139, 147, 255, 0.22) 0 50%, rgba(40, 48, 96, 0.16) 50% 100%); transform: translateY(var(--cp-pitch, 0px)) rotate(var(--cp-roll, 0deg)); }
.voy-cp-mfd::after { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: 2px; background: var(--voy-accent); box-shadow: 0 0 7px var(--voy-accent); transform-origin: center; transform: translateY(var(--cp-pitch, 0px)) rotate(var(--cp-roll, 0deg)); }
.voy-cp-nav::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, transparent 0 26%, var(--voy-accent) 26% 29%, transparent 29% 56%, var(--voy-accent) 56% 59%, transparent 59%); opacity: .5; }
.voy-cp-nav::after { content: ""; position: absolute; left: 50%; top: 50%; width: 38%; height: 2px; background: linear-gradient(90deg, var(--voy-accent), transparent); transform-origin: left center; transform: translateY(-50%) rotate(var(--cp-head, -32deg)); }

/* lit button panel */
.voy-cp-btnrow { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(5px, .9vw, 10px); max-width: 92%; }
.voy-cp-btnrow i { width: clamp(13px, 1.9vw, 22px); height: clamp(9px, 1.4vh, 15px); border-radius: 3px; background: #131a30; border: 1px solid var(--voy-border); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.5); }
.voy-cp-btnrow i:nth-child(3n) { background: rgba(240, 180, 90, 0.55); }
.voy-cp-btnrow i:nth-child(4n) { background: rgba(120, 220, 150, 0.5); }
.voy-cp-btnrow i:nth-child(5n) { background: rgba(139, 147, 255, 0.5); }

/* throttle levers, set at different positions */
.voy-cp-throttles { display: flex; align-items: flex-end; gap: clamp(8px, 1.2vw, 15px); }
.voy-cp-throttle { width: clamp(13px, 1.9vw, 20px); height: clamp(48px, 8.5vh, 92px); border-radius: 9px; background: linear-gradient(to right, #04070e, #12172c, #04070e); border: 1px solid var(--voy-border); position: relative; }
.voy-cp-throttle b { position: absolute; left: -34%; right: -34%; height: 15%; border-radius: 4px; background: linear-gradient(#3a4166, #191e38); border: 1px solid var(--voy-border); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6); }
.voy-cp-throttle:first-child b { top: 20%; }
.voy-cp-throttle:last-child b { top: 42%; }

@media (max-width: 560px) {
  .voy-cp-knobrow, .voy-cp-gauge-sm { display: none; }
  .voy-cp-dash { height: clamp(150px, 26vh, 220px); }
  .voy-cp-screen { width: clamp(78px, 26vw, 132px); }
}

/* ---- header pull-down tab ---- */
.voy-headertab {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 41;
  min-height: 30px; min-width: 128px;
  padding: calc(env(safe-area-inset-top, 0px) + 4px) 18px 6px;
  border: 1px solid var(--voy-border); border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--voy-panel);
  color: var(--voy-ink);
  font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
body.voy-header-open .voy-headertab { display: none; }

/* ---- title (top-left) ---- */
.voy-title {
  position: absolute;
  top: 18px; left: 20px;
  z-index: 5;
  pointer-events: none;
}
.voy-title h1 {
  margin: 0;
  color: var(--voy-ink);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -.03em; line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.voy-title .voy-sub {
  margin: .2rem 0 0;
  color: var(--voy-muted);
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
}

/* ---- intro card (center-bottom); hidden while flying ---- */
.voy-intro {
  position: absolute;
  left: 50%; bottom: 12%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(92vw, 440px);
  text-align: center;
  background: var(--voy-panel);
  border: 1px solid var(--voy-border);
  border-radius: 16px;
  padding: 18px 20px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px rgba(3, 5, 16, .5);
}
body.voy-flying .voy-intro { display: none; }
.voy-lead { margin: 0 0 .8rem; color: var(--voy-ink); font-size: 1.02rem; }
.voy-fly-btn {
  display: inline-block;
  background: var(--voy-accent); color: #0a0c1a;
  font: inherit; font-weight: 800; font-size: 1rem;
  border: 0; border-radius: 999px;
  padding: 11px 22px; cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.voy-fly-btn:hover { filter: brightness(1.08); }
.voy-fly-btn:active { transform: translateY(1px); }
.voy-fly-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
:root[data-theme="night"] .voy-fly-btn { color: #1a0505; }
.voy-intro-note { margin: .7rem 0 0; color: var(--voy-muted); font-size: .78rem; }

/* ---- controls hint (bottom-center); shown while flying ---- */
.voy-hint {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  z-index: 6;
  max-width: 94vw;
  text-align: center;
  color: var(--voy-muted);
  background: var(--voy-panel);
  border: 1px solid var(--voy-border);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .82rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .8s ease;
}
.voy-hint.is-dim { opacity: .32; }
.voy-hint:hover { opacity: 1; }
.voy-hint:empty { display: none; }

/* ---- diagnostics readout (bottom-left) ---- */
.voy-diag {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 5;
  font-family: var(--mono);
  font-size: .74rem; letter-spacing: .01em;
  color: rgba(214, 221, 250, .72);
  background: rgba(8, 11, 26, .55);
  border: 1px solid rgba(150, 162, 215, .18);
  border-radius: 999px;
  padding: 4px 11px;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
:root[data-theme="night"] .voy-diag { color: rgba(244, 113, 113, .82); background: rgba(23, 6, 6, .6); border-color: rgba(66, 17, 17, .8); }

/* ---- speed-linked comfort vignette (also a sense of velocity) ---- */
.voy-vignette {
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none; opacity: 0;
  background: radial-gradient(125% 125% at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.6) 100%);
  transition: opacity 0.25s ease;
}
@media (prefers-reduced-motion: reduce) { .voy-vignette { display: none; } }

/* ---- flight HUD (shown only while flying) ---- */
.voy-hud { display: none; }
body.voy-flying .voy-hud { display: block; }
.voy-cross {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--voy-accent);
  pointer-events: none; opacity: 0.85; z-index: 5;
  filter: drop-shadow(0 0 3px rgba(139, 147, 255, 0.5));
}
:root[data-theme="night"] .voy-cross { filter: drop-shadow(0 0 3px rgba(224, 71, 71, 0.5)); }
.voy-hud-panel {
  position: absolute; z-index: 5;
  background: rgba(8, 12, 26, 0.5);
  border: 1px solid var(--voy-border);
  border-radius: 10px;
  padding: 8px 12px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
:root[data-theme="night"] .voy-hud-panel { background: rgba(23, 6, 6, 0.55); }
.voy-hud-speed { left: 14px; bottom: 44px; min-width: 150px; }
.voy-hud-nav { right: 14px; bottom: 14px; min-width: 200px; text-align: right; }
.voy-hud-k { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--voy-muted); }
.voy-hud-v { font-family: var(--mono); font-size: 1.05rem; color: var(--voy-ink); font-weight: 600; margin-top: 1px; }
.voy-hud-sub { font-size: 0.78rem; color: var(--voy-muted); margin-top: 2px; }
.voy-hud-lt { color: var(--voy-accent); }
.voy-thr { height: 5px; background: rgba(150, 162, 215, 0.18); border-radius: 3px; overflow: hidden; margin: 5px 0 3px; }
.voy-thr-fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--voy-accent), #bfe3ff); transition: width 0.12s ease; }
:root[data-theme="night"] .voy-thr-fill { background: linear-gradient(90deg, var(--voy-accent), #ffb0b0); }

@media (max-width: 720px) {
  .voy-hud-speed { bottom: 96px; min-width: 0; max-width: 40vw; }
  .voy-hud-nav { bottom: 62px; min-width: 0; max-width: 46vw; }
  .voy-hud-v { font-size: 0.94rem; }
  .voy-hud-sub { font-size: 0.72rem; }
}

/* ---- live date, under the title ---- */
.voy-date { margin: 0.35rem 0 0; color: var(--voy-muted); font-size: 0.74rem; }
.voy-date:empty { display: none; }

/* ---- 3D world labels (click to fly there) ---- */
.voy-labels { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.voy-label {
  position: absolute; top: 0; left: 0; transform: translate(-50%, -50%);
  white-space: nowrap; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--voy-ink); padding: 2px 8px; border-radius: 999px;
  background: rgba(8, 12, 26, 0.42); border: 1px solid var(--voy-border);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  pointer-events: auto; cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); will-change: transform;
}
.voy-label:hover { border-color: var(--voy-accent); color: #fff; }
.voy-label:focus-visible { outline: 2px solid var(--voy-accent); outline-offset: 1px; }
.voy-label[hidden] { display: none; }
:root[data-theme="night"] .voy-label { background: rgba(23, 6, 6, 0.5); }

/* ---- object info card ---- */
.voy-card {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  z-index: 8; width: min(88vw, 320px);
  max-height: calc(100dvh - 28px); overflow-y: auto;
  background: var(--voy-panel); border: 1px solid var(--voy-border);
  border-radius: 16px; padding: 16px 18px 18px; color: var(--voy-ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(3, 5, 16, 0.6);
}
.voy-card[hidden] { display: none; }
.voy-card-close { position: absolute; top: 8px; right: 10px; background: transparent; border: 0; color: var(--voy-muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.voy-card-close:hover { color: var(--voy-ink); }
.voy-card-name { margin: 0 0 0.2rem; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--voy-ink); }
.voy-card-blurb { margin: 0 0 0.8rem; font-size: 0.92rem; color: var(--voy-muted); }
.voy-card-facts { margin: 0 0 0.9rem; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 0.84rem; }
.voy-card-facts dt { color: var(--voy-muted); }
.voy-card-facts dd { margin: 0; color: var(--voy-ink); font-variant-numeric: tabular-nums; text-align: right; }
.voy-card-links { display: flex; flex-direction: column; gap: 5px; }
.voy-card-links a { font-size: 0.84rem; color: var(--voy-accent); text-decoration: none; }
.voy-card-links a:hover { text-decoration: underline; }
.voy-card-links a::before { content: "\2192\00a0"; opacity: 0.7; }

/* ---- fly-to menu ---- */
.voy-jump {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 20; width: min(92vw, 380px);
  max-height: calc(100dvh - 28px); overflow-y: auto;
  background: var(--voy-panel); border: 1px solid var(--voy-border);
  border-radius: 16px; padding: 16px 18px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(3, 5, 16, 0.6);
}
.voy-jump[hidden] { display: none; }
.voy-jump-head { display: flex; align-items: center; justify-content: space-between; color: var(--voy-ink); font-weight: 700; margin-bottom: 0.6rem; }
.voy-jump-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.voy-jump-grid button { font: inherit; font-size: 0.84rem; color: var(--voy-ink); background: rgba(150, 162, 215, 0.1); border: 1px solid var(--voy-border); border-radius: 8px; padding: 8px 6px; cursor: pointer; }
.voy-jump-grid button:hover { border-color: var(--voy-accent); background: rgba(139, 147, 255, 0.16); }
.voy-jump-sub { grid-column: 1 / -1; color: var(--voy-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0.5rem 0 -0.1rem; }
.voy-jump-sub:first-child { margin-top: 0; }

/* ---- HUD caption + orientation readout ---- */
.voy-hud-cap { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--voy-muted); opacity: 0.75; margin-top: 4px; }

/* visually-hidden live region for screen-reader flight-state announcements */
.voy-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }

/* ---- on-screen touch flight controls (shown only on touch devices, in flight) ---- */
.voy-touch { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 12; display: none; flex-direction: column; gap: 9px; width: 116px; }
body.voy-is-touch.voy-flying .voy-touch { display: flex; }
body.voy-is-touch.voy-flying.voy-card-open .voy-touch { display: none; }   /* the open card owns the screen; controls return when it closes */
.voy-touch-btn {
  font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--voy-ink);
  background: rgba(12, 16, 32, 0.62); border: 1px solid var(--voy-border);
  border-radius: 12px; padding: 14px 10px; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  touch-action: none; -webkit-user-select: none; user-select: none;
}
.voy-touch-thrust { background: var(--voy-accent); color: #0a0c1a; border-color: transparent; padding: 20px 10px; font-size: 1rem; }
.voy-touch-btn:active { filter: brightness(1.25); }
:root[data-theme="night"] .voy-touch-thrust { color: #1a0505; }

/* ---- toolbar (top-right) ---- */
.voy-toolbar {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  display: flex; gap: 8px; align-items: center;
}
.voy-tool {
  font: inherit; font-size: .82rem; font-weight: 600;
  color: var(--voy-ink);
  background: var(--voy-panel);
  border: 1px solid var(--voy-border);
  border-radius: 999px;
  padding: 6px 13px; cursor: pointer; text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.voy-tool:hover { border-color: var(--voy-accent); text-decoration: none; }
.voy-tool:focus-visible { outline: 2px solid var(--voy-accent); outline-offset: 2px; }

/* ---- "How real is this?" panel ---- */
.voy-about {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: min(92vw, 480px);
  max-height: calc(100dvh - 28px); overflow-y: auto;
  background: var(--voy-panel);
  border: 1px solid var(--voy-border);
  border-radius: 16px;
  padding: 18px 20px 20px;
  color: var(--voy-ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(3, 5, 16, .6);
}
.voy-about-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.voy-about-title { font-weight: 700; font-size: 1.05rem; }
.voy-about-close {
  background: transparent; border: 0; color: var(--voy-muted);
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px;
}
.voy-about-close:hover { color: var(--voy-ink); }
.voy-about p { margin: 0 0 .7rem; color: var(--voy-muted); font-size: .95rem; }
.voy-about p:last-child { margin-bottom: 0; }
.voy-about a { color: var(--voy-accent); }

/* ---- no-WebGL2 / renderer-failure fallback ---- */
.voy-fallback {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .8rem; text-align: center;
  padding: 2rem clamp(1rem, 5vw, 3rem);
  z-index: 30;
  color: #dbe0f5;
  background: radial-gradient(120% 120% at 50% 30%, #10142c 0%, #05060d 70%);
}
.voy-fallback h2 { color: #f2f4ff; margin: 0; font-size: 1.3rem; }
.voy-fallback p { max-width: 46ch; color: #aeb6dd; margin: 0; }
.voy-fallback a {
  color: #05060d; background: #c7ccf7; font-weight: 700;
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
}
.voy-fallback a:hover { background: #dfe2ff; }

/* ==================== below the fold ==================== */
.voy-below {
  position: relative;
  z-index: 2;
  margin-top: 100vh;
  margin-top: 100dvh;
  background: var(--bg);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  padding-top: 1.2rem;
}
.voy-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.voy-article { padding: .5rem 0 2rem; }
.voy-article p { max-width: 66ch; }
.voy-links { list-style: none; margin: .6rem 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 22px; }
.voy-links li { display: flex; flex-direction: column; gap: 1px; }
.voy-links a { font-weight: 600; }
.voy-links span { color: var(--muted); font-size: .88rem; }
.voy-noads { color: var(--muted); font-size: .95rem; }

@media (max-width: 720px) {
  .voy-title { top: 12px; left: 14px; }
  .voy-title .voy-sub { display: none; }
  .voy-date { display: none; }   /* reclaim the top band on phones so the wrapped toolbar never grazes it */
  .voy-toolbar { top: 44px; bottom: auto; right: 8px; left: 8px; justify-content: center; flex-wrap: wrap; gap: 5px; }
  .voy-tool { font-size: .76rem; padding: 5px 10px; }
  .voy-intro { bottom: 38px; width: min(94vw, 420px); }
  .voy-diag { font-size: .68rem; }
  .voy-hint { bottom: 200px; font-size: .76rem; }   /* clear the HUD panels stacked at the foot of the screen */
  .voy-touch { width: 104px; }
}
