/* ───────────────────────── CU-29 “THE PENNY” ─────────────────────────
   Patina Aeronautical — copper, bokeh, and bad financial decisions.   */

:root {
  --bg: #0b0705;
  --ink: #f5e9dc;
  --ink-dim: #b89f88;
  --cu-hot: #ffe2b0;
  --cu-1: #f6c177;
  --cu-2: #d98e4a;
  --cu-3: #b87333;
  --cu-4: #7a4419;
  --cu-5: #3a1f0c;
  --line: rgba(230, 160, 90, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: auto;
  /* must live on the root to actually stop viewport rubber-banding */
  overscroll-behavior: none;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cu-hot);
  outline-offset: 3px;
  border-radius: 2px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  overflow-x: hidden;
  overscroll-behavior: none;
}

body:not(.booted) { overflow: hidden; }

::selection { background: var(--cu-3); color: #140a04; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

#spacer { height: 2800vh; }

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ───────────────────────── ui chrome ───────────────────────── */

.ui {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease 0.35s;
}
body.booted .ui { opacity: 1; }

#progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255, 226, 176, 0.08);
}
#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cu-4), var(--cu-1), var(--cu-hot));
  box-shadow: 0 0 12px rgba(255, 180, 90, 0.7);
}

.hud-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 38px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  pointer-events: auto;
}
.logo-mark {
  font-family: "Unbounded", sans-serif;
  font-weight: 900;
  font-size: 17px;
  color: #140a04;
  background: linear-gradient(135deg, var(--cu-hot), var(--cu-3) 60%, var(--cu-4));
  border-radius: 6px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 14px rgba(255, 160, 70, 0.35);
}
.logo-text {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.28em;
  line-height: 1.5;
  color: var(--ink-dim);
}

.nav { display: flex; gap: 28px; align-items: center; }
.navlink {
  pointer-events: auto;
  color: var(--ink-dim);
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.navlink:hover { color: var(--cu-hot); border-color: var(--cu-3); }

/* cinematic auto-play — pill at the bottom, voyage only */
.ctl {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 30; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px 0 13px;
  border-radius: 19px; border: 1px solid var(--line);
  background: rgba(10, 7, 5, 0.42);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  color: var(--ink);
  transition: border-color 0.3s, color 0.3s, transform 0.3s, opacity 0.4s;
}
.ctl:hover { border-color: var(--cu-1); color: var(--cu-hot); transform: translateX(-50%) translateY(-2px); }
.ctl svg { width: 17px; height: 17px; display: block; }
.ctl-label { font-size: 9.5px; letter-spacing: 0.3em; }
#cine-toggle .ic-pause { display: none; }
#cine-toggle.playing { border-color: var(--cu-2); color: var(--cu-hot); }
#cine-toggle.playing .ic-play { display: none; }
#cine-toggle.playing .ic-pause { display: block; }
/* the cinematic pill fades away while it's playing so it doesn't sit on the shot */
#cine-toggle.playing { opacity: 0; }
#cine-toggle.playing:hover { opacity: 1; }

/* viewfinder */
.vf { position: absolute; inset: 18px; pointer-events: none; }
.corner { position: absolute; width: 26px; height: 26px; border: 1px solid rgba(245, 222, 190, 0.4); }
.corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.rec {
  position: absolute;
  top: 8px; right: 40px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.rec i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff4830;
  box-shadow: 0 0 10px #ff4830;
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

.hud-bl, .hud-br {
  position: absolute;
  bottom: 30px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  line-height: 2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.hud-bl { left: 40px; }
.hud-br { right: 40px; text-align: right; }
#hud-lens, #hud-shot { color: var(--cu-1); }

/* ── the manifest — live wireframe schematic nav ── */
#manifest {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  opacity: 0;
  transition: opacity 1.1s ease 0.3s;
}
#manifest.show { opacity: 1; }
#manifest-canvas {
  width: 160px;
  height: 380px;
  display: block;
  pointer-events: auto;
  cursor: pointer;
}
#manifest:focus-visible {
  outline: 1px solid var(--cu-3);
  outline-offset: 8px;
  border-radius: 10px;
}
#manifest-label {
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--cu-1);
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}
/* keep right-anchored copy clear of the schematic on desktop */
@media (min-width: 761px) {
  .pos-right { padding-right: max(8vw, 196px); }
}

/* ───────────────────────── panels ───────────────────────── */

.panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 8vw;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}
.pos-left   { justify-content: flex-start; }
.pos-right  { justify-content: flex-end; }
.pos-center { justify-content: center; text-align: center; }

.panel-inner {
  max-width: 640px;
  position: relative;
  padding: 20px 0;
}
.pos-center .panel-inner { max-width: 760px; }

.panel-inner::before {
  content: "";
  position: absolute;
  inset: -90px -120px;
  background: radial-gradient(closest-side, rgba(8, 4, 2, 0.82), rgba(8, 4, 2, 0.5) 55%, transparent 80%);
  z-index: -1;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--cu-2);
  margin-bottom: 22px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95), 0 0 24px rgba(0, 0, 0, 0.7);
}

.display-xl {
  font-family: "Unbounded", sans-serif;
  font-weight: 900;
  font-size: clamp(84px, 16vw, 218px);
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.display-l {
  font-family: "Unbounded", sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 68px);
  line-height: 1.04;
  margin-bottom: 26px;
}

.metal {
  background: linear-gradient(103deg,
    #5a2d12 0%, #b87333 16%, #ffe2b0 34%, #f6c177 46%,
    #8a4a1c 60%, #e8a45e 76%, #ffdca6 88%, #4a2410 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s linear infinite;
  filter: drop-shadow(0 3px 8px rgba(10, 5, 2, 0.9)) drop-shadow(0 4px 26px rgba(255, 150, 60, 0.22));
}
@keyframes sheen { to { background-position: -220% 0; } }

.sub {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.9vw, 26px);
  letter-spacing: 0.52em;
  color: var(--cu-1);
  margin: 18px 0 24px;
}

.body {
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.65;
  color: var(--ink);
  max-width: 56ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}
.pos-right .body { margin-left: auto; }
.pos-center .body { margin: 0 auto; }
.body em { color: var(--cu-1); font-style: italic; }

.hint {
  margin-top: 44px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ink-dim);
}
.hint .arrow { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.pos-right .chips { justify-content: flex-end; }
.chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--cu-1);
  border: 1px solid var(--line);
  background: rgba(20, 10, 4, 0.55);
  padding: 9px 14px;
  border-radius: 3px;
}

.bodylink {
  pointer-events: auto;
  color: var(--cu-1);
  text-decoration: underline;
  text-decoration-color: rgba(246, 193, 119, 0.4);
  text-underline-offset: 3px;
  transition: color 0.25s, text-decoration-color 0.25s;
}
.bodylink:hover { color: var(--cu-hot); text-decoration-color: var(--cu-hot); }

a.chip-link {
  pointer-events: auto;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
}
a.chip-link:hover {
  color: var(--cu-hot);
  border-color: var(--cu-1);
  box-shadow: 0 0 18px rgba(255, 170, 80, 0.25);
  transform: translateY(-2px);
}

.specrow {
  margin-top: 30px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

/* showcase whisper — no scrim, no copy, ship gets the final bow */
.whisper-panel { align-items: flex-end; padding-bottom: 13vh; }
.whisper-panel .panel-inner::before { display: none; }
.whisper-panel .eyebrow { margin-bottom: 0; opacity: 0.85; }

/* marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-block;
  animation: marquee 16s linear infinite;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--cu-2);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* cta */
.cta {
  pointer-events: auto;
  cursor: pointer;
  margin-top: 36px;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: #140a04;
  background: linear-gradient(120deg, var(--cu-hot), var(--cu-2) 55%, var(--cu-3));
  background-size: 180% 100%;
  border: none;
  border-radius: 4px;
  padding: 20px 42px;
  box-shadow: 0 6px 38px rgba(255, 150, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.25s cubic-bezier(0.2, 1.6, 0.4, 1), box-shadow 0.25s, background-position 0.5s;
}
.cta:hover {
  transform: translateY(-3px) scale(1.03);
  background-position: 100% 0;
  box-shadow: 0 12px 54px rgba(255, 170, 80, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.cta:active { transform: translateY(0) scale(0.99); }
.cta.done {
  background: #1c1009;
  color: var(--cu-1);
  border: 1px solid var(--line);
  box-shadow: none;
}
.cta-arrow { display: inline-block; transition: transform 0.25s; }
.cta:hover .cta-arrow { transform: translateX(6px); }

.fine {
  margin-top: 26px;
  font-size: 11px;
  color: var(--ink-dim);
  opacity: 0.75;
  letter-spacing: 0.04em;
}

/* toast */
#toast {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 30px);
  background: rgba(18, 9, 3, 0.92);
  border: 1px solid var(--line);
  color: var(--cu-hot);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  padding: 16px 26px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
  max-width: 84vw;
  text-align: center;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* penny rain */
#penny-layer { position: absolute; inset: 0; overflow: hidden; }
.penny {
  position: absolute;
  top: -8vh;
  font-size: 26px;
  color: var(--cu-1);
  text-shadow: 0 0 14px rgba(255, 170, 80, 0.8);
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(120vh) rotate(680deg); opacity: 0.2; }
}

/* ───────────────────────── cursor ───────────────────────── */

#cursor {
  position: fixed;
  z-index: 60;
  left: 0; top: 0;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 210, 150, 0.85);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, margin 0.2s;
}
#cursor i {
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #ffd9a0;
}
#cursor.big {
  width: 58px; height: 58px;
  margin: -29px 0 0 -29px;
}
@media (pointer: coarse) { #cursor { display: none; } }

/* ───────────────────────── loader ───────────────────────── */

#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(120, 60, 20, 0.25), transparent 60%),
    var(--bg);
  display: grid;
  place-items: center;
  transition: transform 1s cubic-bezier(0.8, 0, 0.2, 1), opacity 0.6s ease 0.5s;
}
body.booted #loader {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 1s cubic-bezier(0.8, 0, 0.2, 1), opacity 0.6s ease 0.5s, visibility 0s 1.2s;
}
.loader-inner { text-align: center; width: min(560px, 84vw); }
.loader-top {
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.loader-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 900;
  font-size: clamp(70px, 14vw, 150px);
  line-height: 1;
}
.loader-bar {
  height: 2px;
  background: rgba(255, 226, 176, 0.1);
  margin: 34px 0 14px;
}
#load-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cu-4), var(--cu-1), var(--cu-hot));
  box-shadow: 0 0 14px rgba(255, 180, 90, 0.8);
  transition: width 0.2s ease;
}
.loader-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}
#load-pct { color: var(--cu-1); }

/* ──────────────── HANGAR 29 — the 3D fleet landing ──────────────── */

#hangar-stage {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 9vh 5vw 5vh;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s 0.8s;
}
body.hangar #hangar-stage {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease 0.15s;
}
.hg-head { text-align: center; }
.hg-eyebrow {
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.hg-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 5.6vw, 78px);
  line-height: 1.02;
}
.hg-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2vw;
  width: min(1380px, 96vw);
}
.hg-ship {
  pointer-events: auto;
  cursor: pointer;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  padding: 18px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition: transform 0.3s, border-color 0.3s;
}
.hg-ship:hover, .hg-ship.hot {
  transform: translateY(-5px);
  border-top-color: var(--cu-1);
}
.hg-serial {
  font-family: "Unbounded", sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1;
}
.hg-nick { font-size: 11px; letter-spacing: 0.3em; color: var(--ink); }
.hg-role { font-size: 9px; letter-spacing: 0.22em; color: var(--ink-dim); }
.hg-board {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--cu-1);
  margin-top: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.hg-ship:hover .hg-board, .hg-ship.hot .hg-board, .hg-ship:focus-visible .hg-board {
  opacity: 1;
  transform: translateY(0);
}
.hg-hint {
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--ink-dim);
  opacity: 0.75;
}

/* hangar mode hides the voyage chrome and locks scroll */
body.hangar { overflow: hidden; }
body.hangar .panel,
body.hangar #manifest,
body.hangar .hud-bl,
body.hangar .hud-br,
body.hangar #progress { display: none; }
/* PROVENANCE & SHOP belong to a boarded voyage — no ship in the hangar, no links */
body.hangar .voyage-only { display: none; }

/* loader re-activation for mid-session boarding */
#loader.active {
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: opacity 0.3s ease !important;
}

/* ───────────────────────── ship themes ─────────────────────────
   The boarded ship recolors the whole interface.                  */

body[data-ship="ingot"] {
  --cu-hot: #ffd2a8;
  --cu-1: #f0a468;
  --cu-2: #cd7a3a;
  --cu-3: #a85a24;
  --cu-4: #6b3614;
  --cu-5: #2e1608;
  --line: rgba(230, 140, 70, 0.3);
}
body[data-ship="ingot"] .metal {
  background-image: linear-gradient(103deg,
    #4a1f08 0%, #a8521e 16%, #ffd9ae 34%, #e89a58 46%,
    #73340e 60%, #d77f3c 76%, #ffc890 88%, #3a1604 100%);
}
body[data-ship="zephyr"] {
  --cu-hot: #eaf4ff;
  --cu-1: #aacdf2;
  --cu-2: #7fa9d8;
  --cu-3: #4d7cb0;
  --cu-4: #2c4a70;
  --cu-5: #101e30;
  --line: rgba(140, 180, 230, 0.32);
}
body[data-ship="zephyr"] .metal {
  background-image: linear-gradient(103deg,
    #16293f 0%, #3d6a9c 14%, #dbeaff 32%, #f6d490 46%,
    #2e4f78 60%, #9cc0e8 76%, #ffeccb 88%, #122438 100%);
}
body[data-ship="halo"] {
  --cu-hot: #ffffff;
  --cu-1: #dfe7f2;
  --cu-2: #b6c2d4;
  --cu-3: #8794a8;
  --cu-4: #515c6e;
  --cu-5: #161a22;
  --line: rgba(210, 222, 240, 0.32);
}
body[data-ship="halo"] .metal {
  background-image: linear-gradient(103deg,
    #4a505e 0%, #aab5c6 14%, #ffffff 32%, #dfe7f2 46%,
    #6f7a8c 60%, #c8d2e0 76%, #ffffff 88%, #3a3f4b 100%);
}
body[data-ship="zephyr"] .logo-mark {
  background: linear-gradient(135deg, #eaf4ff, #7fa9d8 60%, #2c4a70);
}
body[data-ship="ingot"] .logo-mark {
  background: linear-gradient(135deg, #ffd2a8, #cd7a3a 60%, #6b3614);
}
body[data-ship="halo"] .logo-mark {
  background: linear-gradient(135deg, #ffffff, #b6c2d4 60%, #515c6e);
}

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width: 760px) {
  .navlink:not(:first-child) { display: none; } /* keep FLEET — it returns to the hangar */
  .hg-row { grid-template-columns: 1fr; gap: 9px; width: 92vw; }
  /* glass chips so the manifest stays legible over the floating fleet behind it */
  .hg-ship {
    flex-direction: row; justify-content: space-between; align-items: center;
    gap: 10px; padding: 11px 15px;
    background: rgba(10, 7, 5, 0.5);
    border: 1px solid var(--line);
    border-radius: 13px;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }
  .hg-ship:hover, .hg-ship.hot { transform: none; border-color: var(--cu-1); }
  .hg-ship .hg-role { display: none; }
  .hg-board { display: none; }
  .hg-serial { font-size: 22px; }
  .hg-nick { font-size: 10px; letter-spacing: 0.24em; }
  .hg-title { filter: drop-shadow(0 2px 11px rgba(0, 0, 0, 0.6)); }
  .hg-eyebrow, .hg-hint { text-shadow: 0 1px 7px rgba(0, 0, 0, 0.75); }
  #hangar-stage { padding: 8.5vh 4vw 3.5vh; }
  #manifest { right: 2px; width: 104px; }
  #manifest-canvas { width: 104px; height: 247px; }
  #manifest-label { font-size: 8.5px; }
  .hud-top { padding: 20px 22px; }
  .hud-bl { left: 24px; bottom: 22px; font-size: 9.5px; }
  .hud-br { right: 24px; bottom: 22px; font-size: 9.5px; }
  .panel { padding: 0 7vw; }
  .display-xl { font-size: clamp(64px, 21vw, 110px); }
  .display-l { font-size: clamp(26px, 7.4vw, 42px); }
  .vf { inset: 10px; }
  .rec { right: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .metal, .marquee-track, .hint .arrow, .rec i, .penny { animation: none; }
}

/* phone landscape / short viewports — keep fixed panels inside the frame */
@media (max-height: 500px) {
  .display-xl { font-size: clamp(44px, 13vh, 90px); }
  .display-l { font-size: clamp(20px, 7vh, 38px); margin-bottom: 14px; }
  .sub { margin: 10px 0 12px; }
  .body { font-size: 13px; line-height: 1.5; }
  .eyebrow { margin-bottom: 10px; }
  .hint { margin-top: 18px; }
  .chips { margin-top: 14px; }
  .hud-bl, .hud-br { display: none; }
}
