/* =====================================================================
   pool floatie — dashboard styles
   palette anchored to the local banner: deep purple-blue + mint waves
   ===================================================================== */

:root {
  --bg:           #14092e;
  --bg-2:         #0d061f;
  --bg-3:         #1f1244;
  --panel:        rgba(13, 6, 31, 0.78);

  --ink:          #05030d;
  --foam:         #d8fff1;
  --foam-dim:     #8eb0a8;

  --mint:         #7dffba;
  --water:        #35e9c5;
  --purple:       #9b62f2;
  --orange:       #ff8b64;
  --danger:       #ff5b6e;
  --warn:         #ffd14d;

  --hairline:     rgba(125, 255, 186, 0.22);
  --grid:         rgba(125, 255, 186, 0.08);

  --shadow-card:  6px 6px 0 var(--ink);
  --shadow-mint:  6px 6px 0 rgba(125, 255, 186, 0.85);
  --shadow-water: 6px 6px 0 rgba(53, 233, 197, 0.85);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg-2); }

body {
  font-family: "Share Tech Mono", "Courier New", ui-monospace, monospace;
  font-size: 15px; line-height: 1.55; color: var(--foam);
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(155, 98, 242, 0.18), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(53, 233, 197, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  text-transform: lowercase;
  overflow-x: hidden;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

img { max-width: 100%; display: block; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--water); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
code { font-family: "Share Tech Mono", monospace; }
::selection { background: var(--mint); color: var(--ink); }

/* ===== ATMOSPHERE ===== */
.fx-scanlines, .fx-flicker, .fx-vignette, .fx-bubbles { position: fixed; inset: 0; pointer-events: none; }
.fx-scanlines { z-index: 90; background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.16) 3px, rgba(0,0,0,0) 4px); mix-blend-mode: multiply; opacity: 0.5; }
.fx-flicker   { z-index: 91; background: rgba(125, 255, 186, 0.02); mix-blend-mode: screen; animation: flicker 8s infinite steps(1); }
@keyframes flicker { 0%,97%{opacity:0;} 97.4%{opacity:0.6;} 97.8%{opacity:0;} 98.4%{opacity:0.4;} 98.8%{opacity:0;} }
.fx-vignette  { z-index: 89; background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%); }
.fx-bubbles   { z-index: 1; overflow: hidden; }
.fx-bubbles .bubble {
  position: absolute; bottom: -20px;
  background: var(--mint); box-shadow: 0 0 8px var(--mint);
  border-radius: 2px; opacity: 0.4;
  animation: rise linear infinite;
}
@keyframes rise { to { transform: translateY(-110vh) translateX(var(--drift, 0px)); opacity: 0; } }

/* ===== HUD ===== */
.hud {
  position: sticky; top: 0; z-index: 80;
  background: linear-gradient(to bottom, rgba(13,6,31,0.95), rgba(13,6,31,0.85));
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(6px);
}
.hud-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px 18px;
  padding: 10px 22px;
}
.hud-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hud-brand img { width: 40px; height: 40px; border: 2px solid var(--mint); box-shadow: 3px 3px 0 var(--ink); image-rendering: pixelated; }
.hud-brand-name { display: block; font-family: "VT323", monospace; font-size: 22px; color: var(--mint); line-height: 1; letter-spacing: 1px; text-shadow: 0 0 6px rgba(125,255,186,0.5); white-space: nowrap; }
.hud-brand-sub  { display: block; font-size: 11px; color: var(--foam-dim); letter-spacing: 2px; margin-top: 2px; white-space: nowrap; }

@keyframes blink { 50% { opacity: 0.25; } }

/* HUD audio toggle — three little wave bars */
.hud-audio {
  flex-shrink: 0;
  display: inline-flex; align-items: end; gap: 3px;
  border: 2px solid var(--hairline);
  padding: 6px 9px 5px;
  height: 32px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hud-audio .audio-wave {
  display: inline-block; width: 4px; background: var(--foam-dim);
  transition: background .15s;
}
.hud-audio .audio-w1 { height: 6px; }
.hud-audio .audio-w2 { height: 12px; }
.hud-audio .audio-w3 { height: 9px; }
.hud-audio:hover { border-color: var(--mint); }
.hud-audio.on { border-color: var(--mint); background: rgba(125,255,186,0.08); }
.hud-audio.on .audio-wave { background: var(--mint); box-shadow: 0 0 6px rgba(125,255,186,0.6); }
.hud-audio.on .audio-w1 { animation: audioWave 0.9s ease-in-out infinite; }
.hud-audio.on .audio-w2 { animation: audioWave 0.7s ease-in-out infinite 0.18s; }
.hud-audio.on .audio-w3 { animation: audioWave 0.8s ease-in-out infinite 0.32s; }
.hud-audio.remembered:not(.on) { border-color: var(--water); }
.hud-audio.remembered:not(.on) .audio-wave { background: var(--water); opacity: 0.7; }
@keyframes audioWave {
  0%, 100% { transform: scaleY(0.6); }
  50%      { transform: scaleY(1.2); }
}

.hud-links {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.hud-link,
.hud-pf {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 32px;
  border: 2px solid var(--mint);
  color: var(--mint);
  font-family: "VT323", monospace;
  font-size: 18px; letter-spacing: 1px;
  box-shadow: 3px 3px 0 var(--ink);
}
.hud-link:hover,
.hud-pf:hover {
  background: var(--mint);
  color: var(--ink);
}
.hud-link-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.hud-clock {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
  font-family: "VT323", monospace; line-height: 1;
  white-space: nowrap;
}
.hud-clock-label { font-size: 12px; letter-spacing: 2px; color: var(--foam-dim); }
.hud-clock-value { font-size: 26px; color: var(--water); text-shadow: 0 0 8px rgba(53,233,197,0.55); letter-spacing: 1px; }

.hud-ca-row {
  flex: 1 1 640px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-top: 1px dashed var(--hairline);
  padding-top: 10px; margin-top: 4px;
}
.hud-ca {
  flex: 1 1 auto;
  min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "VT323", monospace;
  font-size: 18px;
  cursor: pointer;
  transition: color .12s, text-shadow .12s;
}
.hud-pf { flex: 0 0 auto; }
.hud-ca-label { border: 1px solid var(--mint); color: var(--mint); padding: 0 8px; letter-spacing: 2px; text-shadow: 0 0 6px rgba(125,255,186,0.5); }
.hud-ca code { min-width: 0; max-width: min(100%, 620px); font-size: 13px; color: var(--foam); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.5px; }
.hud-ca:hover code,
.hud-ca:focus-visible code { color: var(--mint); text-shadow: 0 0 8px rgba(125,255,186,0.45); }
.hud-ca.copied .hud-ca-label { background: var(--mint); color: var(--ink); }
.hud-ca.copied code { color: var(--mint); }
.hud-ca.copied code::after { content: " copied"; color: var(--mint); }
/* ===== STAGE ===== */
.stage {
  position: relative; z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 22px 60px;
  display: grid;
  gap: 26px;
}

/* ===== HERO / GAME SCENE ===== */
.hero { display: grid; gap: 14px; }

.game-scene {
  position: relative;
  border: 4px solid var(--ink);
  box-shadow:
    0 0 0 4px var(--mint),
    0 22px 60px rgba(0, 0, 0, 0.55),
    0 0 45px rgba(53, 233, 197, 0.30);
  overflow: hidden;
  background: var(--bg-2);
  isolation: isolate;
  container-type: inline-size;
}
.game-scene .banner {
  width: 100%; height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  position: relative;
  z-index: 0;
}
.scene-spacer {
  display: block;
  width: 100%;
  aspect-ratio: 896 / 296;
  pointer-events: none;
}

.scene-canvas,
.scene-actors,
.scene-foam,
.scene-copy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.scene-canvas {
  z-index: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background:
    radial-gradient(circle at 53% 45%, rgba(125,255,186,0.32), transparent 24%),
    linear-gradient(180deg, #17163d 0%, #1f2350 48%, #36e9c5 49%, #1e6479 100%);
}
.scene-actors {
  z-index: 4;
  overflow: hidden;
}
.scene-foam {
  z-index: 5;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.scene-actor {
  position: absolute;
  width: var(--w);
  left: var(--x);
  bottom: var(--y);
  transform: translateX(-50%);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(4px 6px 0 rgba(5,3,13,0.65));
  animation: actor-bob var(--bob-dur, 4s) ease-in-out infinite;
}
.scene-actor-wrap {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: var(--w);
  transform: translateX(-50%);
  animation: actor-bob var(--bob-dur, 4s) ease-in-out infinite;
}
.scene-actor-wrap::after {
  display: none;
}
.scene-actor-wrap .scene-actor {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  transform: none;
  animation: none;
}
.scene-full-frame {
  inset: 0;
  left: auto;
  bottom: auto;
  width: 100%;
  transform: none;
  animation: none;
}
.scene-full-frame::after {
  display: none;
}
.scene-full-frame .scene-actor {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform: none;
  transform-origin: var(--motion-origin, 50% 50%);
}
.scene-floatie.scene-full-frame .scene-actor {
  animation: floatie-buoy 4.9s ease-in-out infinite;
  transform-origin: 50% 63%;
}
.scene-wink-frame {
  opacity: 0;
}
.scene-wink-frame.is-visible,
.scene-shark-mouth-frame.is-visible {
  opacity: 1;
}
.scene-shark-mouth-frame {
  opacity: 0;
}
.scene-floatie {
  --x: 50%;
  --y: 7%;
  --w: 26.5%;
  --bob-dur: 4.8s;
  --foam-bottom: 18%;
}
.scene-dolphin-left {
  --x: 18%;
  --y: 14%;
  --w: 8%;
  --bob-dur: 3.8s;
  --motion-origin: 19% 74%;
  --foam-left: 12%;
  --foam-right: 10%;
  --foam-bottom: 3%;
  --foam-height: 13%;
}
.scene-dolphin-right {
  --x: 76%;
  --y: 27%;
  --w: 8%;
  --bob-dur: 4.2s;
  --motion-origin: 75% 65%;
  --foam-left: 14%;
  --foam-right: 12%;
  --foam-bottom: 2%;
  --foam-height: 12%;
}
.scene-shark {
  --x: 88%;
  --y: 9%;
  --w: 10%;
  --bob-dur: 4.6s;
  --motion-origin: 88% 77%;
  --foam-left: 16%;
  --foam-right: 16%;
  --foam-bottom: 1%;
  --foam-height: 11%;
}
.scene-ball-left {
  --x: 39%;
  --y: 13%;
  --w: 5.8%;
  --bob-dur: 3.4s;
  --motion-origin: 37% 74%;
  --foam-left: 8%;
  --foam-right: 8%;
  --foam-bottom: 1%;
  --foam-height: 16%;
}
.scene-ball-right {
  --x: 77%;
  --y: 11%;
  --w: 5.8%;
  --bob-dur: 3.4s;
  --motion-origin: 78% 75%;
  --foam-left: 8%;
  --foam-right: 8%;
  --foam-bottom: 1%;
  --foam-height: 16%;
}
.scene-wallet {
  --motion-origin: 43% 73%;
}
.scene-dolphin-left.scene-full-frame .scene-actor {
  animation: animal-swim-left 7.8s steps(1, end) infinite;
}
.scene-dolphin-right.scene-full-frame .scene-actor {
  animation: animal-swim-right 8.6s steps(1, end) infinite;
}
.scene-shark.scene-full-frame .scene-actor {
  animation: animal-swim-shark 10.2s steps(1, end) infinite;
}
.scene-ball-left.scene-full-frame .scene-actor {
  animation: none;
  will-change: transform;
}
.scene-ball-right.scene-full-frame .scene-actor {
  animation: none;
  will-change: transform;
}
.scene-wallet.scene-full-frame .scene-actor {
  animation: wallet-wobble 4.6s ease-in-out infinite;
}
.scene-dolphin-left.scene-full-frame.is-facing-ball .scene-actor {
  animation: none;
  transform: translateY(-0.5%) scaleX(-1) scaleY(1.02) rotate(0deg);
}
.scene-dolphin-right.scene-full-frame.is-facing-ball .scene-actor {
  animation: none;
  transform: translateY(-0.5%) scaleX(-1) scaleY(1.02) rotate(0deg);
}
@keyframes actor-bob {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-1.2deg); }
  50%      { transform: translateX(-50%) translateY(-3.5%) rotate(1.2deg); }
}
@keyframes floatie-buoy {
  0%, 100% { transform: translateY(-3%) scale(1.09) rotate(-0.8deg); }
  25%      { transform: translateY(-4.4%) scale(1.115) rotate(0.45deg); }
  50%      { transform: translateY(-2.2%) scale(1.1) rotate(0.9deg); }
  75%      { transform: translateY(-3.9%) scale(1.085) rotate(-0.35deg); }
}
@keyframes animal-swim-left {
  0%, 18%   { transform: translateY(0) scale(1) rotate(-1deg); }
  19%, 35%  { transform: translateY(-1.1%) scale(1.025) rotate(1deg); }
  36%, 42%  { transform: translateY(-0.5%) scaleX(-1) scaleY(1.02) rotate(0deg); }
  43%, 72%  { transform: translateY(0.8%) scale(0.985) rotate(-1deg); }
  73%, 100% { transform: translateY(0) scale(1.01) rotate(0.5deg); }
}
@keyframes animal-swim-right {
  0%, 22%   { transform: translateY(0.5%) scale(1) rotate(1deg); }
  23%, 48%  { transform: translateY(-1%) scale(1.03) rotate(-1deg); }
  49%, 56%  { transform: translateY(-0.5%) scaleX(-1) scaleY(1.02) rotate(0deg); }
  57%, 100% { transform: translateY(0.7%) scale(0.99) rotate(0.5deg); }
}
@keyframes animal-swim-shark {
  0%, 30%   { transform: translateY(0) scale(1) rotate(0.6deg); }
  31%, 38%  { transform: translateY(-0.8%) scaleX(-1) scaleY(1.03) rotate(-0.8deg); }
  39%, 76%  { transform: translateY(0.6%) scale(0.985) rotate(0.8deg); }
  77%, 100% { transform: translateY(-0.4%) scale(1.015) rotate(-0.4deg); }
}
@keyframes wallet-wobble {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(-2deg); }
  20%      { transform: translate(-0.8%, -0.8%) scale(1.04) rotate(5deg); }
  45%      { transform: translate(0.5%, 0.4%) scale(0.96) rotate(-7deg); }
  70%      { transform: translate(0.9%, -0.5%) scale(1.03) rotate(4deg); }
}
@keyframes actor-ripple {
  0%, 100% { transform: translateY(0) scaleX(0.92); opacity: 0.42; }
  50%      { transform: translateY(8%) scaleX(1.08); opacity: 0.84; }
}
.scene-copy {
  display: block;
  z-index: 3;
  font-family: "VT323", monospace;
  color: var(--mint);
  text-shadow:
    4px 4px 0 var(--ink),
    -3px 0 0 var(--ink),
    0 -3px 0 var(--ink),
    0 0 18px rgba(125,255,186,0.65);
}
.scene-title {
  position: absolute;
  top: 12%;
  left: 10.5%;
  right: 11%;
  font-size: clamp(32px, 7.35cqw, 104px);
  line-height: 0.86;
  letter-spacing: 0;
  white-space: nowrap;
}
.scene-tagline {
  position: absolute;
  top: 35%;
  right: 13%;
  font-size: clamp(18px, 3.05cqw, 44px);
  line-height: 1;
  color: var(--foam);
  text-shadow: 3px 3px 0 var(--ink), 0 0 8px rgba(255,255,255,0.24);
  white-space: nowrap;
}
.scene-note {
  display: none;
  position: absolute;
  color: rgba(125,255,186,0.7);
  font-size: clamp(16px, 2.7cqw, 40px);
  transform: rotate(-10deg);
  text-shadow: 2px 2px 0 rgba(5,3,13,0.65);
}
.scene-note-left { top: 17%; left: 4.5%; }
.scene-note-right { top: 17%; right: 4.5%; transform: rotate(10deg); }
.scene-note-bottom { bottom: 13%; left: 6%; transform: rotate(8deg); }
.scene-waves-label {
  display: none;
  position: absolute;
  top: 47%;
  right: 11%;
  font-size: clamp(16px, 2.6cqw, 38px);
  color: rgba(125,255,186,0.74);
  transform: rotate(-20deg);
  text-shadow: 2px 2px 0 rgba(5,3,13,0.65);
}

/* sprite layer floats over banner art, below HUD */
.scene-sprites {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.scene-sprite { position: absolute; }
.scene-bubble {
  width: var(--sz, 6px); height: var(--sz, 6px);
  left: var(--x, 50%); bottom: 14%;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(125,255,186,0.5);
  opacity: 0.6;
  animation: scene-rise var(--dur, 8s) linear forwards;
}
@keyframes scene-rise {
  0%   { transform: translateY(0)    translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  85%  { opacity: 0.45; }
  100% { transform: translateY(-260%) translateX(var(--drift, 0px)); opacity: 0; }
}

/* the game UI — overlays the banner with a videogame HUD */
.game-ui {
  position: absolute; inset: 0;
  z-index: 7; pointer-events: none;
}
.gui-corner {
  position: absolute;
  background: rgba(5, 3, 13, 0.55);
  border: 2px solid var(--mint);
  box-shadow: 3px 3px 0 var(--ink), 0 0 18px rgba(125,255,186,0.25);
  padding: 6px 12px 7px;
  display: flex; flex-direction: column;
  gap: 1px;
  backdrop-filter: blur(4px);
  font-family: "VT323", monospace;
  max-width: 38%;
  pointer-events: auto;
}
.gui-tl { top: 12px; left: 12px; width: min(225px, 42%); }

.gui-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--mint);
  text-shadow: 0 0 4px rgba(125,255,186,0.5);
  text-transform: lowercase;
  white-space: nowrap;
}
.gui-value {
  font-size: 22px;
  color: var(--foam);
  text-shadow: 2px 2px 0 var(--ink);
  letter-spacing: 1px;
  line-height: 1.05;
  white-space: nowrap;
}
.gui-value-lg {
  font-size: 34px;
  color: var(--orange);
  text-shadow: 2px 2px 0 var(--ink), 0 0 8px rgba(255,139,100,0.35);
}
.gui-sub {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--foam-dim);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  max-width: 240px;
}
.gui-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  color: var(--foam);
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1.05;
  text-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}
.gui-line span {
  color: var(--mint);
  text-shadow: 0 0 4px rgba(125,255,186,0.5);
}
.gui-line b {
  color: var(--foam);
  font-weight: 400;
  text-align: right;
}
.gui-line:nth-of-type(3) b {
  color: var(--orange);
}
.gui-hidden { display: none; }

.gui-heartbeat {
  position: absolute;
  bottom: 8px; left: 12px; right: 12px;
  background: rgba(5, 3, 13, 0.6);
  border: 2px solid var(--mint);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 7px 12px 8px;
  display: grid; gap: 4px;
  backdrop-filter: blur(4px);
  pointer-events: auto;
}
.gh-row {
  display: grid;
  grid-template-columns: 80px 1fr 90px;
  align-items: center;
  gap: 10px;
  font-family: "VT323", monospace;
  line-height: 1;
}
.gh-label { font-size: 14px; color: var(--mint); letter-spacing: 2px; }
.gh-bar { height: 10px; background: rgba(0,0,0,0.5); border: 1px solid var(--hairline); position: relative; overflow: hidden; }
.gh-fill {
  display: block; height: 100%;
  width: var(--w, 0%);
  background: repeating-linear-gradient(90deg, var(--mint) 0 6px, var(--water) 6px 12px);
  box-shadow: 0 0 8px rgba(125,255,186,0.5);
  transition: width .8s linear;
}
.gh-time { font-size: 14px; color: var(--water); letter-spacing: 1px; text-align: right; white-space: nowrap; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--ink);
  background: var(--mint); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 5px 10px;
  font-family: "VT323", monospace;
  font-size: 16px; letter-spacing: 1px; text-transform: lowercase;
}
.pill-mint  { background: var(--mint);   color: var(--ink); }
.pill-ghost { background: transparent;   color: var(--mint); border-color: var(--hairline); box-shadow: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 3px solid var(--ink); background: var(--orange); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 8px 14px;
  font-family: "VT323", monospace;
  font-size: 19px; letter-spacing: 1px;
  text-transform: lowercase;
  transition: transform .08s ease;
}
.btn:hover  { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-orange { background: var(--orange); }
.btn-mint   { background: var(--mint); }
.btn-ghost  { background: var(--bg-2); color: var(--mint); border-color: var(--mint); }
.btn.disabled, a.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; filter: grayscale(0.4); }
.btn-glyph { font-size: 16px; }

/* ===== PANEL ===== */
.panel {
  background: var(--panel);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-card);
  padding: 22px;
}
.panel-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--hairline);
  padding-bottom: 12px;
}
.panel-kicker {
  font-family: "VT323", monospace;
  font-size: 14px; letter-spacing: 2px;
  color: var(--water); border: 1px solid var(--hairline);
  padding: 1px 8px;
}
.panel-title {
  font-family: "VT323", monospace;
  font-size: 34px; margin: 0;
  color: var(--mint); letter-spacing: 1px;
  text-shadow: 2px 2px 0 var(--ink), 0 0 10px rgba(125,255,186,0.4);
}
.panel-sub { color: var(--foam-dim); font-size: 13px; flex: 1; min-width: 200px; }

/* ===== LIVE ===== */
.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 18px;
}
.live-player,
.live-side {
  display: grid;
  gap: 14px;
}
.live-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.live-player-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "VT323", monospace;
  font-size: 20px;
  color: var(--foam);
  letter-spacing: 1px;
}
.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255, 91, 110, 0.7);
}
.live-player-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.live-frame-shell {
  position: relative;
  min-height: 520px;
  border: 3px solid var(--mint);
  background: rgba(5, 3, 13, 0.65);
  box-shadow: var(--shadow-water);
  overflow: visible;
}
.live-player-status .live-dot,
.live-player-status.is-playing .live-dot {
  background: var(--mint);
  box-shadow: 0 0 10px rgba(125, 255, 186, 0.7);
}
.live-scene {
  min-height: 520px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(20, 9, 46, 0.18), rgba(20, 9, 46, 0.88)),
    radial-gradient(circle at top left, rgba(53, 233, 197, 0.12), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(155, 98, 242, 0.14), transparent 30%),
    rgba(5, 3, 13, 0.74);
}
.live-scene-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.live-scene-kicker,
.live-label,
.live-wallet-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--foam-dim);
}
.live-scene-title {
  margin: 10px 0 0;
  font-family: "VT323", monospace;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.95;
  color: var(--mint);
  text-shadow: 2px 2px 0 var(--ink);
}
.live-scene-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foam);
  font-size: 14px;
  flex-wrap: wrap;
}
.live-scene-dot { color: var(--foam-dim); }
.live-scene-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.live-scene-card,
.live-scene-feed {
  border: 2px solid var(--hairline);
  background: rgba(5, 3, 13, 0.42);
  padding: 16px;
}
.live-scene-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--foam-dim);
  margin-bottom: 10px;
}
.live-scene-card p {
  margin: 0;
  color: var(--foam);
  font-family: "VT323", monospace;
  font-size: 28px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
#liveScenePublic {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.18;
}
.live-scene-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.live-stat {
  border: 2px solid var(--hairline);
  background: rgba(5, 3, 13, 0.42);
  padding: 14px;
}
.live-stat span {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--foam-dim);
}
.live-stat strong {
  display: block;
  margin-top: 10px;
  font-family: "VT323", monospace;
  font-size: 28px;
  line-height: 1;
  color: var(--foam);
  overflow-wrap: anywhere;
}
.live-note {
  margin: 0;
  color: var(--foam);
  overflow-wrap: anywhere;
  white-space: normal;
}
.live-scene-feed {
  display: grid;
  gap: 12px;
  align-content: start;
}
.live-scene-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--foam-dim);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.live-scene-feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.live-scene-feed-list li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
}
.live-scene-feed-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.live-feed-kind {
  color: var(--mint);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.live-feed-body strong {
  display: block;
  font-family: "VT323", monospace;
  font-size: 24px;
  line-height: 1;
  color: var(--foam);
}
.live-feed-body p {
  margin: 6px 0 0;
  color: var(--foam-dim);
  font-size: 13px;
  line-height: 1.45;
}
.live-side {
  align-content: start;
}
.live-side-block,
.live-wallet {
  border: 2px solid var(--hairline);
  background: rgba(5, 3, 13, 0.42);
  padding: 14px 16px;
}
.live-value {
  display: block;
  margin-top: 8px;
  font-family: "VT323", monospace;
  font-size: 22px;
  line-height: 1.05;
  color: var(--foam);
  word-break: break-word;
}
.live-wallet {
  display: grid;
  gap: 8px;
  text-align: left;
  transition: border-color .12s, background .12s;
}
.live-wallet code {
  color: var(--mint);
  word-break: break-all;
}
.live-wallet:hover,
.live-wallet:focus-visible {
  border-color: var(--mint);
  background: rgba(125, 255, 186, 0.08);
}
.live-wallet.is-copied .live-wallet-label {
  color: var(--mint);
}

/* ===== THOUGHT DECK ===== */
.deck {
  position: relative;
  min-height: 0;
  margin-bottom: 0;
}
.deck:has(.deck-card) {
  padding-bottom: 36px;
}
/* front card sets the deck height; absolute cards behind it are decorative */
.deck-card[data-stack="0"] {
  position: relative;
}
.deck-empty {
  border: 2px dashed var(--hairline);
  background: rgba(5,3,13,0.4);
  padding: 26px 22px;
  color: var(--foam-dim);
  font-family: "VT323", monospace;
  font-size: 17px; letter-spacing: 1px;
  text-align: center;
}

.deck-card {
  position: absolute; left: 0; right: 0; top: 0;
  background: rgba(31, 18, 68, 0.85);
  border: 3px solid var(--mint);
  box-shadow: var(--shadow-water);
  padding: 24px 28px 18px;
  display: flex; flex-direction: column;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1),
    opacity 0.4s,
    border-color 0.4s;
  transform-origin: 50% 100%;
}
.deck-card[data-stack="0"] { transform: translateY(0)    rotate(0)    scale(1);    opacity: 1;    z-index: 5; }
.deck-card[data-stack="1"] { transform: translateY(10px) rotate(-1deg) scale(0.97); opacity: 0.8;  z-index: 4; pointer-events: none; border-color: var(--hairline); }
.deck-card[data-stack="2"] { transform: translateY(20px) rotate(1.2deg) scale(0.94); opacity: 0.55; z-index: 3; pointer-events: none; border-color: var(--hairline); }
.deck-card[data-stack="3"] { transform: translateY(30px) rotate(-0.8deg) scale(0.91); opacity: 0.35; z-index: 2; pointer-events: none; border-color: var(--hairline); }

/* only the front card shows its contents; cards behind are silhouettes */
.deck-card[data-stack="1"] > *,
.deck-card[data-stack="2"] > *,
.deck-card[data-stack="3"] > * { visibility: hidden; }

.deck-card.is-flying {
  transform: translateY(-30px) translateX(-60%) rotate(-12deg) scale(0.92);
  opacity: 0;
}
.deck-card.is-new {
  animation: cardArrive 1s ease-out 1;
}
@keyframes cardArrive {
  0%   { box-shadow: 0 0 0 0 rgba(125,255,186,0.6), 6px 6px 0 rgba(53, 233, 197, 0.85); background: rgba(125,255,186,0.12); }
  100% { box-shadow: 6px 6px 0 rgba(53, 233, 197, 0.85); background: rgba(31, 18, 68, 0.85); }
}

.card-glyph {
  position: absolute; top: -32px; left: 14px;
  font-family: "VT323", monospace;
  font-size: 96px; line-height: 1;
  color: var(--mint);
  text-shadow: 0 0 12px rgba(125,255,186,0.45);
  opacity: 0.85;
  pointer-events: none;
}
.card-thought {
  margin: 0;
  font-family: "VT323", monospace;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  color: var(--foam);
  text-shadow: 2px 2px 0 var(--ink);
  letter-spacing: 0.5px;
}
.card-meta {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-family: "VT323", monospace;
  font-size: 15px;
  color: var(--foam-dim);
  letter-spacing: 1px;
}
.card-tag {
  background: var(--mint); color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 1px 8px;
  font-size: 13px;
}
.card-dot   { color: var(--hairline); }
.card-time  { color: var(--foam); }
.card-mcap  { color: var(--water); }
.card-ago   { color: var(--foam-dim); }

.deck-controls {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-family: "VT323", monospace;
  font-size: 17px;
  color: var(--foam-dim);
}
.deck-btn {
  border: 2px solid var(--hairline);
  padding: 4px 14px;
  font-family: "VT323", monospace;
  font-size: 17px; letter-spacing: 1px;
  color: var(--mint);
  transition: border-color .12s, background .12s;
  white-space: nowrap;
}
.deck-btn:hover:not(:disabled) { border-color: var(--mint); background: rgba(125,255,186,0.08); }
.deck-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cc-arrow { font-size: 18px; }
.deck-index {
  font-family: "VT323", monospace;
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--foam);
  border: 1px solid var(--hairline);
  padding: 2px 10px;
  white-space: nowrap;
}
.deck-clear {
  margin-left: auto;
  border: 1px solid var(--hairline);
  color: var(--foam-dim);
  padding: 2px 10px;
  letter-spacing: 1px;
  font-size: 14px;
  transition: color .12s, border-color .12s;
  white-space: nowrap;
}
.deck-clear:hover { color: var(--danger); border-color: var(--danger); }

/* ===== FEATURED CARD (north / prominent) ===== */
.featured-card {
  background: rgba(31, 18, 68, 0.9);
  border: 3px solid var(--mint);
  box-shadow: var(--shadow-water);
  padding: 22px 26px 18px;
  position: relative;
  margin-bottom: 20px;
}
.featured-empty {
  margin: 0;
  color: var(--foam-dim);
  font-family: "VT323", monospace;
  font-size: 17px; letter-spacing: 1px;
}
.featured-glyph {
  position: absolute; top: -28px; left: 14px;
  font-family: "VT323", monospace;
  font-size: 80px; line-height: 1;
  color: var(--mint); opacity: 0.6;
  pointer-events: none;
}
.featured-thought {
  font-family: "VT323", monospace;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.25; color: var(--foam);
  margin: 0 0 12px;
  text-shadow: 2px 2px 0 var(--ink);
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.featured-meta {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-family: "VT323", monospace;
  font-size: 15px; color: var(--foam-dim); letter-spacing: 1px;
}

/* ===== HISTORY SECTION (south / nav + list) ===== */
.hist-section { margin-top: 8px; }
.hist-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 12px; margin-bottom: 14px;
}
.hist-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: 2px;
  color: var(--foam-dim); text-transform: uppercase;
  white-space: nowrap;
}

/* ===== ACTION TYPE BADGE ===== */
.a-type {
  font-family: "Share Tech Mono", monospace;
  font-size: 9px; letter-spacing: 1px;
  padding: 1px 5px; border: 1px solid;
  text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.a-type[data-type="gate"]   { color: var(--foam-dim); border-color: var(--hairline); }
.a-type[data-type="social"] { color: var(--water); border-color: var(--water); }
.a-type[data-type="exec"]   { color: var(--mint); border-color: var(--mint); }
.a-type[data-type="ai"]     { color: var(--orange); border-color: var(--orange); }

/* ===== CYCLE DECK CARDS ===== */
.cycle-entry-actions { display: flex; flex-direction: column; gap: 3px; }
.cycle-entry-action {
  display: flex; gap: 7px; align-items: baseline;
  font-family: "VT323", monospace;
  font-size: 13px; color: var(--foam);
}

/* ===== ACTIONS ===== */
.action-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.action-list li {
  display: grid;
  grid-template-columns: auto 22px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hairline);
  background: rgba(5,3,13,0.4);
  padding: 8px 12px;
  font-size: 13px;
}
.action-list li .a-icon { font-family: "VT323", monospace; font-size: 18px; text-align: center; }
.action-list li[data-tone="good"]    { border-color: rgba(125,255,186,0.5); }
.action-list li[data-tone="good"] .a-icon { color: var(--mint); }
.action-list li[data-tone="warn"]    { border-color: rgba(255,209,77,0.5); }
.action-list li[data-tone="warn"] .a-icon { color: var(--warn); }
.action-list li[data-tone="bad"]     { border-color: rgba(255,91,110,0.5); }
.action-list li[data-tone="bad"]  .a-icon { color: var(--danger); }
.action-list li[data-tone="neutral"] .a-icon { color: var(--foam-dim); }
.action-empty {
  display: block !important;
  grid-template-columns: 1fr !important;
  border: 1px dashed var(--hairline) !important;
  background: rgba(5,3,13,0.3) !important;
  padding: 16px !important;
  color: var(--foam-dim) !important;
  text-align: center !important;
  font-family: "VT323", monospace !important;
  font-size: 17px !important;
  letter-spacing: 1px !important;
}

/* ===== DECISION FLOW ===== */
.decisions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.decision {
  background: rgba(5, 3, 13, 0.5);
  border: 2px solid var(--hairline);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.decision-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.decision-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mint); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-family: "VT323", monospace; font-size: 24px;
}
.decision[data-action="burn"] .decision-icon { background: var(--orange); }
.decision-head h3 { margin: 0; font-family: "VT323", monospace; font-size: 28px; color: var(--mint); letter-spacing: 1px; }
.decision[data-action="burn"] .decision-head h3 { color: var(--orange); }
.decision-head p  { margin: 2px 0 0; font-size: 12px; color: var(--foam-dim); }

.decision-verdict {
  font-family: "VT323", monospace; font-size: 14px; letter-spacing: 2px;
  padding: 4px 10px;
  border: 2px solid var(--ink); background: var(--foam-dim); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.decision-verdict[data-state="armed"]   { background: var(--mint);   color: var(--ink); }
.decision-verdict[data-state="waiting"] { background: var(--water);  color: var(--ink); }
.decision-verdict[data-state="standby"] { background: var(--warn);   color: var(--ink); }
.decision-verdict[data-state="blocked"] { background: var(--warn);   color: var(--ink); }
.decision-verdict[data-state="firing"]  { background: var(--orange); color: var(--ink); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }

/* gates render like a numbered flowchart with a vertical rail */
.gates { list-style: none; padding: 0; margin: 0; position: relative; }
.gates::before {
  content: ""; position: absolute;
  left: 13px; top: 14px; bottom: 14px;
  width: 2px; background: var(--hairline);
  z-index: 0;
}
.gates li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 6px 0;
  font-size: 13px; color: var(--foam);
  position: relative; z-index: 1;
}
.g-num {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "VT323", monospace; font-size: 14px; letter-spacing: 1px;
  border: 2px solid var(--ink);
  background: var(--bg-3); color: var(--foam-dim);
  box-shadow: 2px 2px 0 var(--ink);
}
.gates li[data-pass="true"]    .g-num { background: var(--mint);   color: var(--ink); }
.gates li[data-pass="false"]   .g-num { background: var(--danger); color: var(--foam); }
.gates li[data-pass="blocked"] .g-num { background: var(--warn);   color: var(--ink); }
.gates li[data-pass="unknown"] .g-num { background: var(--water);  color: var(--ink); }

.g-val {
  font-family: "VT323", monospace;
  font-size: 14px; letter-spacing: 1px;
  padding: 1px 8px;
  border: 1px solid var(--hairline);
  color: var(--foam-dim);
  white-space: nowrap;
}
.gates li[data-pass="true"]  .g-val { color: var(--mint);   border-color: rgba(125,255,186,0.6); }
.gates li[data-pass="false"] .g-val { color: var(--danger); border-color: rgba(255,91,110,0.6); }
.gates li[data-pass="blocked"] .g-val { color: var(--warn);  border-color: rgba(255,209,77,0.6); }
.gates li[data-pass="unknown"] .g-val { color: var(--water); border-color: rgba(53,233,197,0.6); }
.g-status { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.g-blocker {
  font-family: "VT323", monospace;
  font-size: 14px; letter-spacing: 1px;
  padding: 1px 8px;
  border: 1px solid rgba(255,209,77,0.6);
  color: var(--warn);
  white-space: nowrap;
}

.decision-result {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  font-family: "VT323", monospace; font-size: 15px;
  color: var(--foam-dim); letter-spacing: 1px;
  border-left: 2px dashed var(--hairline);
  margin-left: 13px; padding-left: 19px;
}
.decision-result .result-arrow {
  font-size: 22px; color: var(--mint);
  text-shadow: 0 0 6px rgba(125,255,186,0.4);
}
.decision[data-action="burn"] .decision-result .result-arrow {
  color: var(--orange);
  text-shadow: 0 0 6px rgba(255,139,100,0.4);
}
.decision-foot {
  margin: 0;
  font-family: "VT323", monospace; font-size: 16px;
  color: var(--foam); letter-spacing: 1px;
}

/* ===== EXPLAINER ===== */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.explainer-card {
  border: 2px solid var(--hairline);
  background: rgba(5, 3, 13, 0.42);
  padding: 18px;
}
.explainer-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--foam-dim);
  text-transform: uppercase;
}
.explainer-card h3 {
  margin: 12px 0 10px;
  font-family: "VT323", monospace;
  font-size: 28px;
  line-height: 1;
  color: var(--mint);
}
.explainer-card p {
  margin: 0;
  color: var(--foam);
}

/* ===== ROADMAP ===== */
.roadmap {
  display: grid;
  gap: 16px;
}
.roadmap-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border: 2px solid var(--hairline);
  background: rgba(5, 3, 13, 0.42);
  padding: 12px 14px;
}
.roadmap-now,
.roadmap-note {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--foam-dim);
}
.roadmap-now b {
  color: var(--mint);
  font-weight: 400;
}
.roadmap-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.roadmap-card {
  border: 2px solid var(--hairline);
  background: rgba(5, 3, 13, 0.42);
  padding: 16px;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.roadmap-card[data-reached="true"] {
  border-color: rgba(125, 255, 186, 0.72);
  box-shadow: 4px 4px 0 rgba(125, 255, 186, 0.35);
}
.roadmap-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.roadmap-label {
  font-family: "VT323", monospace;
  font-size: 28px;
  line-height: 1;
  color: var(--mint);
  text-shadow: 2px 2px 0 var(--ink);
}
.roadmap-status {
  border: 1px solid var(--hairline);
  color: var(--foam-dim);
  padding: 1px 7px;
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.roadmap-card h3 {
  margin: 0;
  font-family: "VT323", monospace;
  font-size: 26px;
  line-height: 1;
  color: var(--foam);
}
.roadmap-bar {
  height: 10px;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.42);
  overflow: hidden;
}
.roadmap-bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: repeating-linear-gradient(90deg, var(--mint) 0 8px, var(--water) 8px 16px);
}
.roadmap-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.roadmap-card li {
  color: var(--foam);
  font-size: 13px;
  line-height: 1.35;
  padding-left: 16px;
  position: relative;
}
.roadmap-card li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--water);
}

.dev-quote {
  margin: 0;
  border: 2px solid var(--hairline);
  background: rgba(5, 3, 13, 0.42);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.dev-quote p {
  margin: 0 0 14px;
  font-family: "VT323", monospace;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.05;
  color: var(--foam);
  text-shadow: 2px 2px 0 var(--ink);
}
.dev-quote p:last-child {
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.footer { border-top: 2px dashed var(--hairline); padding-top: 22px; margin-top: 12px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 48px; height: 48px; border: 2px solid var(--mint); box-shadow: 3px 3px 0 var(--ink); image-rendering: pixelated; }
.foot-name { font-family: "VT323", monospace; font-size: 24px; color: var(--mint); letter-spacing: 2px; line-height: 1; }
.foot-tag  { font-size: 12px; color: var(--foam-dim); letter-spacing: 1px; margin-top: 4px; }
.disclaimer { font-size: 11px; color: var(--foam-dim); text-align: center; max-width: 760px; margin: 0 auto; line-height: 1.5; opacity: 0.75; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hud-brand-sub   { display: none; }
  .hud-brand > span { display: none; }

  .decisions { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: 1fr; }
  .explainer-grid { grid-template-columns: 1fr; }
  .roadmap-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-scene-copy,
  .live-scene-stats { grid-template-columns: 1fr 1fr; }

  /* shrink the overlay HUDs on smaller banners */
  .gui-corner   { padding: 5px 10px 6px; }
  .gui-value-lg { font-size: 28px; }
  .gui-value    { font-size: 18px; }
  .gui-label    { font-size: 11px; }
  .gui-sub      { font-size: 10px; max-width: 180px; }
  .gh-label { font-size: 13px; }
  .gh-time  { font-size: 13px; }
}
@media (max-width: 760px) {
  .hud-inner    { gap: 10px; padding: 10px 14px; }
  .hud-audio    { order: 4; }
  .hud-clock-value { font-size: 22px; }
  .hud-ca-row { flex-basis: 100%; }
  .hud-ca code  { font-size: 11px; }
  .stage { padding: 18px 14px 50px; gap: 18px; }
  .panel { padding: 18px 16px; }
  .panel-title { font-size: 28px; }
  .live-frame-shell,
  .live-scene { min-height: 420px; }

  /* on phone, collapse the corner HUDs into a single bottom strip ABOVE the heartbeat */
  .gui-corner   { position: static; max-width: none; box-shadow: 2px 2px 0 var(--ink); }
  .game-ui      {
    position: static; padding: 10px;
    display: grid; gap: 6px;
    grid-template-columns: 1fr 1fr;
    background: rgba(5,3,13,0.65);
    border-top: 2px solid var(--mint);
  }
  .gui-tl { text-align: left; align-items: flex-start; }
  .gui-heartbeat { position: static; grid-column: 1 / -1; }
  .gh-row { grid-template-columns: 60px 1fr 80px; gap: 8px; }
  .gh-label, .gh-time { font-size: 12px; }
  .gui-value-lg { font-size: 24px; }

  .deck       { min-height: 0; margin-bottom: 0; }
  .deck:has(.deck-card) { padding-bottom: 32px; }
  .card-thought { font-size: 22px; }
  .card-glyph   { font-size: 72px; top: -22px; }

  .btn { font-size: 17px; padding: 7px 12px; }
  .live-player-status { font-size: 18px; }
  .live-value { font-size: 20px; }
  .live-scene-copy,
  .live-scene-stats,
  .live-scene-feed-list li,
  .roadmap-track { grid-template-columns: 1fr; }
  .live-scene-title { font-size: 32px; }
  .live-scene-card p,
  .live-stat strong,
  .live-feed-body strong { font-size: 22px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .gates li { font-size: 12px; }
  .g-val    { font-size: 12px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  .gh-fill { transition: none !important; }
}
