/* ============================================================
   EVENT HORIZON — ABYSSAL DEEP-SEA TERMINAL
   ============================================================ */

:root {
  --bg-primary:      #020408;
  --phosphor:        #00ff88;
  --phosphor-dim:    #00cc66;
  --phosphor-faint:  #003d22;
  --bio-blue:        #0088ff;
  --bio-cyan:        #00ccff;
  --bio-teal:        #00ffcc;
  --bio-purple:      #8800ff;
  --bio-violet:      #aa44ff;
  --bio-magenta:     #ff0099;
  --bio-pink:        #ff44dd;
  --danger-amber:    #ff8800;
  --launch-amber:    #ffaa00;
  --launch-gold:     #ffdd00;
  --scanline-color:  rgba(0, 0, 0, 0.22);
  --glow-green:      rgba(0, 255, 136, 0.85);
  --glow-green-s:    rgba(0, 255, 136, 0.35);
  --glow-cyan:       rgba(0, 200, 255, 0.8);
  --glow-cyan-s:     rgba(0, 200, 255, 0.3);
  --glow-purple:     rgba(136, 0, 255, 0.7);
  --glow-magenta:    rgba(255, 0, 153, 0.7);
  --font-pixel:      'Press Start 2P', monospace;
  --font-mono:       'Share Tech Mono', monospace;
}

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

/* ── Noise grain ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 9995;
}

body {
  background: var(--bg-primary);
  color: var(--phosphor);
  font-family: var(--font-mono);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.4;
}

/* ── Abyssal depth background ── */
body::after {
  content: '';
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(ellipse 700px 500px at 25% 35%, rgba(0,60,120,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 500px 700px at 75% 65%, rgba(60,0,90,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 600px 400px at 55% 15%, rgba(0,80,80,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 400px 600px at 10% 80%, rgba(0,40,100,0.05) 0%, transparent 65%);
  animation: depth-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* ── Depth/caustics overlay ── */
.depth-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.depth-overlay::before {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 900px 600px at 40% 50%, rgba(0,100,160,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 600px 900px at 60% 40%, rgba(80,0,120,0.03) 0%, transparent 55%);
  animation: caustics 14s ease-in-out infinite alternate;
}

/* ── CRT Scanlines ── */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}
.crt-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    var(--scanline-color) 2px,
    var(--scanline-color) 4px
  );
}
.crt-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 150, 255, 0.008);
  animation: flicker 0.13s infinite;
}

/* ── Vignette — deeper and more oppressive ── */
.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(0, 0, 6, 0.45) 65%,
    rgba(0, 0, 8, 0.9) 100%
  );
  pointer-events: none;
  z-index: 9994;
}

/* ── Sonar scan beam ── */
.scan-beam {
  position: fixed;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 180, 255, 0.03) 40%,
    rgba(0, 220, 255, 0.055) 50%,
    rgba(0, 180, 255, 0.03) 60%,
    transparent 100%
  );
  animation: scan-sweep 7s linear infinite;
  pointer-events: none;
  z-index: 9993;
}

/* ── Bubbles ── */
#bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  animation: bubble-rise linear infinite;
  bottom: -30px;
}

/* ── Main Layout ── */
.stage {
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  grid-template-areas:
    "header"
    "scene"
    "status"
    "arrived"
    "footer";
  min-height: 100vh;
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  gap: 0.9rem;
  position: relative;
  z-index: 10;
}

/* ── Header ── */
.header {
  grid-area: header;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 100, 150, 0.35);
  position: relative;
}
.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--bio-cyan), transparent);
  opacity: 0.4;
}
.header__org {
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 1.4vw, 0.66rem);
  color: var(--bio-cyan);
  letter-spacing: 0.18em;
  margin-bottom: 0.7rem;
  opacity: 0.75;
  text-shadow: 0 0 10px var(--glow-cyan-s);
}
.header__title {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 3.5vw, 1.6rem);
  letter-spacing: 0.3em;
  margin-bottom: 0.55rem;
  background: linear-gradient(135deg, var(--bio-cyan) 0%, var(--phosphor) 40%, var(--bio-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0,220,255,0.5)) drop-shadow(0 0 30px rgba(0,200,200,0.25));
  animation: title-breathe 5s ease-in-out infinite;
}

/* LAUNCH — the hero word */
.header__launch-word {
  font-family: var(--font-pixel);
  font-size: clamp(2.4rem, 10vw, 6rem);
  letter-spacing: 0.45em;
  line-height: 1.05;
  margin: 0.1rem 0 0.35rem;
  background: linear-gradient(
    90deg,
    #cc4400 0%, #ff7700 12%, #ffcc00 28%, #ffffff 50%, #ffcc00 72%, #ff7700 88%, #cc4400 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: launch-flare 2.2s ease-in-out infinite, launch-shimmer 2.8s linear infinite;
}

.header__target {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2.5vw, 1.2rem);
  color: var(--phosphor);
  letter-spacing: 0.2em;
  text-shadow:
    0 0 8px var(--glow-green),
    0 0 20px var(--glow-green-s);
  animation: text-breathe 4.5s ease-in-out infinite;
}

/* ── Scene ── */
.scene {
  grid-area: scene;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 2.5rem 0;
}

/* ── Octopus ── */
.octopus-container {
  position: absolute;
  width: 620px;
  height: 620px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  animation: bio-pulse 5s ease-in-out infinite, octopus-swim 4.2s ease-in-out infinite;
}
.octopus-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Tentacle sway + per-tentacle color handled via SVG attributes */
.tentacle {
  transform-box: fill-box;
  transform-origin: 50% 0%;
}
/* Octopus body breathing */
.octo-mantle {
  transform-box: fill-box;
  transform-origin: center center;
  animation: body-breathe 2.6s ease-in-out infinite;
}
.octo-head {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: body-breathe 2.6s ease-in-out infinite;
  animation-delay: -0.8s;
}

.tentacle--1 { animation: tentacle-sway     7.4s ease-in-out infinite;  animation-delay: 0s; }
.tentacle--2 { animation: tentacle-sway-alt 9.1s ease-in-out infinite;  animation-delay: -2.2s; }
.tentacle--3 { animation: tentacle-sway     8.3s ease-in-out infinite;  animation-delay: -1.5s; }
.tentacle--4 { animation: tentacle-sway-alt 6.8s ease-in-out infinite;  animation-delay: -3.4s; }
.tentacle--5 { animation: tentacle-sway     10.2s ease-in-out infinite; animation-delay: -4.8s; }
.tentacle--6 { animation: tentacle-sway-alt 7.9s ease-in-out infinite;  animation-delay: -0.9s; }
.tentacle--7 { animation: tentacle-sway     8.7s ease-in-out infinite;  animation-delay: -5.3s; }
.tentacle--8 { animation: tentacle-sway-alt 9.6s ease-in-out infinite;  animation-delay: -2.9s; }

.octopus-eye {
  animation: eye-pulse-blue 3.5s ease-in-out infinite;
}
.octopus-eye--2 {
  animation: eye-pulse-magenta 4s ease-in-out infinite;
  animation-delay: -1.6s;
}

/* ── Launch panel wrapper ── */
.launch-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.cd-launch-label {
  font-family: var(--font-pixel);
  font-size: clamp(0.4rem, 1.3vw, 0.62rem);
  letter-spacing: 0.4em;
  color: var(--launch-amber);
  text-shadow: 0 0 8px rgba(255,160,0,0.9), 0 0 22px rgba(255,100,0,0.5);
  animation: label-pulse 1.6s ease-in-out infinite;
}

/* ── Countdown Display ── */
.countdown-display {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 1.5vw, 0.9rem);
  background: rgba(1, 4, 10, 0.92);
  padding: clamp(1rem, 3vw, 1.9rem) clamp(1.2rem, 4vw, 2.6rem);
  border: 1px solid rgba(0, 150, 200, 0.25);
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(0, 100, 180, 0.1),
    0 0 60px rgba(0, 100, 200, 0.12),
    0 0 120px rgba(0, 60, 120, 0.08),
    inset 0 0 40px rgba(0, 0, 10, 0.7);
  animation: display-border-pulse 10s ease-in-out infinite;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.cd-digits {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 6.8rem);
  font-weight: normal;
  color: var(--phosphor);
  line-height: 1;
  letter-spacing: 0.05em;
  min-width: 2.2ch;
  text-align: center;
  text-shadow:
    0 0 8px var(--glow-green),
    0 0 20px var(--glow-green-s),
    0 0 50px rgba(0,255,136,0.12);
  animation: digit-glow-drift 12s ease-in-out infinite;
  transition: text-shadow 0.15s ease;
}
.cd-digits::before {
  content: attr(data-ghost);
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  color: rgba(0, 200, 255, 0.05);
  text-shadow: none;
  pointer-events: none;
  letter-spacing: 0.05em;
}
.cd-digits span {
  position: relative;
  z-index: 1;
}
.cd-digits.flash {
  text-shadow:
    0 0 20px rgba(255,255,255,0.95),
    0 0 40px var(--bio-cyan),
    0 0 90px var(--bio-cyan),
    0 0 150px rgba(0,200,255,0.3) !important;
  transition: none;
}

.cd-label {
  font-family: var(--font-pixel);
  font-size: clamp(0.3rem, 0.95vw, 0.5rem);
  color: var(--bio-cyan);
  letter-spacing: 0.3em;
  opacity: 0.65;
  white-space: nowrap;
  text-shadow: 0 0 6px var(--glow-cyan-s);
}

.cd-colon {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  color: var(--bio-teal);
  line-height: 1;
  padding-bottom: 1.5rem;
  text-shadow:
    0 0 8px rgba(0,255,204,0.8),
    0 0 20px rgba(0,255,204,0.3);
  animation: colon-blink 1s step-start infinite;
  user-select: none;
}

/* ── Status Bar ── */
.status-bar {
  grid-area: status;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(0, 100, 150, 0.2);
  border-bottom: 1px solid rgba(0, 100, 150, 0.2);
}
.sb-item {
  font-family: var(--font-mono);
  font-size: clamp(0.48rem, 1.3vw, 0.62rem);
  color: var(--bio-cyan);
  letter-spacing: 0.18em;
  opacity: 0.7;
  text-shadow: 0 0 6px var(--glow-cyan-s);
}
.sb-item--alert {
  color: #ff4400;
  text-shadow: 0 0 8px rgba(255, 68, 0, 0.6);
  animation: alert-blink 1.8s ease-in-out infinite;
}
.sb-sep {
  color: rgba(0, 150, 180, 0.35);
  font-size: 0.55rem;
}

/* ── Arrived message ── */
.arrived-msg {
  grid-area: arrived;
  text-align: center;
  padding: 0.5rem 0;
  display: none;
}
.arrived-msg.visible { display: block; }
.arrived-text {
  font-family: var(--font-pixel);
  font-size: clamp(0.55rem, 1.8vw, 0.85rem);
  color: var(--phosphor);
  letter-spacing: 0.12em;
  text-shadow:
    0 0 12px var(--glow-green),
    0 0 30px var(--glow-green-s);
  animation: text-breathe 0.7s ease-in-out infinite;
}
.countdown-display.reached .cd-digits {
  animation: digit-glow-drift 1s ease-in-out infinite;
}

/* ── Footer ── */
.footer {
  grid-area: footer;
  text-align: center;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 80, 120, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer__set {
  font-family: var(--font-mono);
  font-size: clamp(0.52rem, 1.4vw, 0.66rem);
  color: var(--bio-cyan);
  letter-spacing: 0.18em;
  opacity: 0.72;
  text-shadow: 0 0 6px var(--glow-cyan-s);
}
.footer__tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.48rem, 1.2vw, 0.6rem);
  color: var(--phosphor-dim);
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.footer__warning {
  font-family: var(--font-mono);
  font-size: clamp(0.48rem, 1.2vw, 0.6rem);
  color: rgba(255, 60, 0, 0.8);
  letter-spacing: 0.22em;
  text-shadow: 0 0 10px rgba(255, 60, 0, 0.5);
  animation: alert-blink 2.6s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */

@keyframes flicker {
  0%   { opacity: 0.97; }
  5%   { opacity: 0.92; }
  10%  { opacity: 0.98; }
  15%  { opacity: 0.94; }
  20%  { opacity: 0.99; }
  30%  { opacity: 0.93; }
  35%  { opacity: 0.97; }
  50%  { opacity: 0.98; }
  70%  { opacity: 0.93; }
  80%  { opacity: 0.99; }
  90%  { opacity: 0.95; }
  100% { opacity: 0.98; }
}

@keyframes depth-drift {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.06) translate(15px, -20px); }
  100% { transform: scale(0.97) translate(-10px, 12px); }
}

@keyframes caustics {
  0%   { transform: rotate(0deg) scale(1); opacity: 1; }
  100% { transform: rotate(4deg) scale(1.12) translate(25px, -18px); opacity: 0.7; }
}

@keyframes scan-sweep {
  0%   { transform: translateY(-100px); }
  100% { transform: translateY(calc(100vh + 100px)); }
}

@keyframes bubble-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 15px)); opacity: 0; }
}

@keyframes tentacle-sway {
  0%   { transform: rotate(0deg)    skewY(0deg); }
  12%  { transform: rotate(4.5deg)  skewY(1.8deg); }
  28%  { transform: rotate(-2.2deg) skewY(-1deg); }
  46%  { transform: rotate(5.5deg)  skewY(2.4deg); }
  62%  { transform: rotate(-1.8deg) skewY(-0.7deg); }
  80%  { transform: rotate(3.8deg)  skewY(1.5deg); }
  92%  { transform: rotate(-1deg)   skewY(-0.3deg); }
  100% { transform: rotate(0deg)    skewY(0deg); }
}

@keyframes tentacle-sway-alt {
  0%   { transform: rotate(0deg)     skewX(0deg); }
  15%  { transform: rotate(-5deg)    skewX(2.2deg); }
  33%  { transform: rotate(3.5deg)   skewX(-1.5deg); }
  52%  { transform: rotate(-5.5deg)  skewX(2.6deg); }
  70%  { transform: rotate(2.8deg)   skewX(-1.1deg); }
  85%  { transform: rotate(-3.2deg)  skewX(1.6deg); }
  100% { transform: rotate(0deg)     skewX(0deg); }
}

/* Octopus entire body shifts color slowly — bioluminescent breathing */
@keyframes bio-pulse {
  0%   { filter: drop-shadow(0 0 35px rgba(0,200,100,0.22)) drop-shadow(0 0 80px rgba(0,100,80,0.1)); }
  25%  { filter: drop-shadow(0 0 50px rgba(0,100,255,0.28)) drop-shadow(0 0 100px rgba(0,50,150,0.12)); }
  50%  { filter: drop-shadow(0 0 45px rgba(120,0,255,0.22)) drop-shadow(0 0 90px rgba(80,0,120,0.1)); }
  75%  { filter: drop-shadow(0 0 50px rgba(255,0,150,0.2)) drop-shadow(0 0 100px rgba(150,0,80,0.1)); }
  100% { filter: drop-shadow(0 0 35px rgba(0,200,100,0.22)) drop-shadow(0 0 80px rgba(0,100,80,0.1)); }
}

@keyframes eye-pulse-blue {
  0%, 100% { opacity: 1;    filter: brightness(1)   drop-shadow(0 0 8px #00ccff); }
  50%       { opacity: 0.6; filter: brightness(1.9) drop-shadow(0 0 20px #44eeff); }
}

@keyframes eye-pulse-magenta {
  0%, 100% { opacity: 1;    filter: brightness(1)   drop-shadow(0 0 8px #ff44dd); }
  50%       { opacity: 0.6; filter: brightness(1.9) drop-shadow(0 0 20px #ff88ff); }
}

/* Digits slowly breathe color from green → cyan → teal → green */
@keyframes digit-glow-drift {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(0,255,136,0.85),
      0 0 20px rgba(0,255,136,0.35),
      0 0 50px rgba(0,255,136,0.12);
  }
  30% {
    text-shadow:
      0 0 10px rgba(0,200,255,0.9),
      0 0 25px rgba(0,200,255,0.4),
      0 0 60px rgba(0,180,255,0.15);
  }
  60% {
    text-shadow:
      0 0 9px rgba(0,255,200,0.88),
      0 0 22px rgba(0,255,200,0.38),
      0 0 55px rgba(0,255,180,0.13);
  }
}

/* Display border pulses through the bioluminescent spectrum */
@keyframes display-border-pulse {
  0%, 100% {
    border-color: rgba(0, 150, 200, 0.25);
    box-shadow: 0 0 60px rgba(0,100,200,0.12), 0 0 120px rgba(0,60,120,0.08),
                inset 0 0 40px rgba(0,0,10,0.7);
  }
  25% {
    border-color: rgba(0, 200, 255, 0.3);
    box-shadow: 0 0 60px rgba(0,160,255,0.16), 0 0 120px rgba(0,100,200,0.1),
                inset 0 0 40px rgba(0,0,10,0.7);
  }
  50% {
    border-color: rgba(100, 0, 220, 0.25);
    box-shadow: 0 0 60px rgba(80,0,200,0.14), 0 0 120px rgba(50,0,120,0.08),
                inset 0 0 40px rgba(0,0,10,0.7);
  }
  75% {
    border-color: rgba(0, 255, 180, 0.2);
    box-shadow: 0 0 60px rgba(0,200,150,0.14), 0 0 120px rgba(0,120,80,0.08),
                inset 0 0 40px rgba(0,0,10,0.7);
  }
}

@keyframes colon-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}

@keyframes title-breathe {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(0,220,255,0.5)) drop-shadow(0 0 30px rgba(0,200,200,0.25)); }
  50%       { filter: drop-shadow(0 0 20px rgba(0,240,255,0.7)) drop-shadow(0 0 50px rgba(0,220,220,0.4)); }
}

@keyframes text-breathe {
  0%, 100% {
    text-shadow: 0 0 8px var(--glow-green), 0 0 20px var(--glow-green-s);
  }
  50% {
    text-shadow: 0 0 14px var(--glow-green), 0 0 35px var(--glow-green-s), 0 0 70px rgba(0,255,136,0.1);
  }
}

@keyframes alert-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes octopus-swim {
  0%   { transform: translate(-50%,-50%) translateY(0px)    rotate(0deg); }
  30%  { transform: translate(-50%,-50%) translateY(-13px)  rotate(0.7deg); }
  65%  { transform: translate(-50%,-50%) translateY(9px)    rotate(-0.5deg); }
  100% { transform: translate(-50%,-50%) translateY(0px)    rotate(0deg); }
}

@keyframes body-breathe {
  0%, 100% { transform: scaleX(1)     scaleY(1); }
  40%       { transform: scaleX(1.07) scaleY(0.93); }
  75%       { transform: scaleX(0.96) scaleY(1.05); }
}

@keyframes launch-flare {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(255,140,0,0.85))
            drop-shadow(0 0 40px rgba(255,80,0,0.5))
            drop-shadow(0 0 80px rgba(200,50,0,0.22));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(255,220,0,1))
            drop-shadow(0 0 65px rgba(255,150,0,0.85))
            drop-shadow(0 0 130px rgba(255,80,0,0.45));
  }
}

@keyframes launch-shimmer {
  0%   { background-position: 220% center; }
  100% { background-position: -220% center; }
}

@keyframes label-pulse {
  0%, 100% { opacity: 0.75; }
  50%       { opacity: 1; text-shadow: 0 0 16px rgba(255,200,0,1), 0 0 38px rgba(255,140,0,0.75); }
}

/* ── Glitch state ── */
body.glitching .crt-overlay::before {
  transform: translateY(4px) scaleX(1.003);
  opacity: 1.2;
}
body.glitching .countdown-display {
  transform: translate(3px, -2px);
  filter: hue-rotate(15deg) saturate(1.4);
  transition: none;
}
body.glitching .octopus-container {
  transform: translate(-50%, -50%) translate(-2px, 1px);
  transition: none;
}
body.glitching .header__target {
  transform: translateX(-2px);
  filter: blur(0.6px) hue-rotate(20deg);
  transition: none;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .stage { padding: 1.5rem 0.8rem; gap: 0.7rem; }
  .scene { min-height: 300px; padding: 1.5rem 0; }
  .octopus-container { width: 380px; height: 380px; }
  .countdown-display { gap: 0.2rem; padding: 0.9rem 0.9rem; }
  .status-bar { gap: 0.3rem 0.5rem; }
}
@media (max-width: 420px) {
  .countdown-display {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.5rem;
    column-gap: 0.2rem;
  }
  .octopus-container { width: 300px; height: 300px; }
}
