/* =============================================
   DOLLAR JOKES — BATH BATTLEGROUNDS
   CRT / Military Surveillance Aesthetic
   ============================================= */

/* --- CSS Variables --- */
:root {
  --crt-bg: #050a05;
  --crt-green: #00ff41;
  --crt-green-dim: #00aa2a;
  --crt-green-glow: rgba(0, 255, 65, 0.25);
  --crt-red: #ff2d2d;
  --crt-red-dim: #aa1a1a;
  --crt-amber: #ffaa00;
  --crt-amber-dim: #886600;
  --scanline-opacity: 0.06;
  --flicker-speed: 4s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--crt-bg);
  color: var(--crt-green);
  font-family: 'Courier New', Courier, monospace;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- CRT Monitor Frame --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    /* Scanlines */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 65, var(--scanline-opacity)) 2px,
      rgba(0, 255, 65, var(--scanline-opacity)) 4px
    ),
    /* Vignette */
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 9998;
}

/* --- Screen Flicker Animation --- */
@keyframes screen-flicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.85; }
  97% { opacity: 1; }
  98% { opacity: 0.9; }
  99% { opacity: 1; }
}

body.flicker {
  animation: screen-flicker var(--flicker-speed) infinite;
}

/* --- Glow Text --- */
.glow-text {
  text-shadow: 0 0 8px var(--crt-green), 0 0 20px var(--crt-green-glow);
  letter-spacing: 0.05em;
}

/* --- Classified Stamp --- */
.classified-stamp {
  display: inline-block;
  border: 3px solid var(--crt-red);
  color: var(--crt-red);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  padding: 4px 12px;
  transform: rotate(-3deg);
  text-shadow: 0 0 6px var(--crt-red);
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.3);
  animation: stamp-pulse 3s infinite alternate;
}

@keyframes stamp-pulse {
  from { box-shadow: 0 0 12px rgba(255, 45, 45, 0.3); }
  to   { box-shadow: 0 0 24px rgba(255, 45, 45, 0.6); }
}

/* --- Warning Tape Border --- */
.warning-border {
  position: relative;
}
.warning-border::before,
.warning-border::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--crt-amber),
    var(--crt-amber) 10px,
    #1a1400 10px,
    #1a1400 20px
  );
  z-index: 10;
}
.warning-border::before { top: 0; }
.warning-border::after  { bottom: 0; }

/* --- Glitch Effect --- */
@keyframes glitch-1 {
  0%, 82%, 100% { clip-path: none; transform: translate(0); }
  83%  { clip-path: polygon(0 20%, 100% 20%, 100% 35%, 0 35%); transform: translate(-4px, 0); }
  84%  { clip-path: polygon(0 55%, 100% 55%, 100% 70%, 0 70%); transform: translate(4px, 0); }
  85%  { clip-path: none; transform: translate(0); }
  86%  { clip-path: polygon(0 10%, 100% 10%, 100% 25%, 0 25%); transform: translate(-2px, 0); }
  87%  { clip-path: none; transform: translate(0); }
}

@keyframes glitch-2 {
  0%, 84%, 100% { clip-path: none; transform: translate(0); color: inherit; }
  85%  { clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%); transform: translate(3px, 0); color: var(--crt-red); }
  86%  { clip-path: none; transform: translate(0); color: inherit; }
  87%  { clip-path: polygon(0 65%, 100% 65%, 100% 85%, 0 85%); transform: translate(-3px, 0); color: var(--crt-amber); }
  88%  { clip-path: none; transform: translate(0); }
}

.glitch-heading {
  position: relative;
  animation: glitch-1 6s infinite;
}
.glitch-heading::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  color: var(--crt-red);
  animation: glitch-2 6s infinite;
  pointer-events: none;
}

/* --- System Alert Box --- */
.system-alert {
  border: 1px solid var(--crt-red);
  background: rgba(255, 45, 45, 0.08);
  padding: 12px 20px;
  font-size: 0.8rem;
  color: var(--crt-red);
  letter-spacing: 0.1em;
  text-align: center;
  position: relative;
  animation: alert-blink 2s infinite;
}

@keyframes alert-blink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0.6; }
}

.system-alert::before {
  content: '⚠ ';
}

/* --- Temperature Gauge --- */
.temp-gauge {
  background: rgba(255, 45, 45, 0.1);
  border: 1px solid var(--crt-red-dim);
  height: 10px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.temp-gauge::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--fill, 72%);
  background: linear-gradient(90deg, var(--crt-green-dim) 0%, var(--crt-amber) 60%, var(--crt-red) 100%);
  box-shadow: 0 0 8px var(--crt-red);
  animation: gauge-pulse 1.5s infinite alternate;
}

@keyframes gauge-pulse {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

/* --- Section Container --- */
.section {
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--crt-green-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--crt-green-dim);
  opacity: 0.4;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--crt-amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--crt-amber);
  opacity: 0.5;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-title .accent {
  color: var(--crt-red);
  text-shadow: 0 0 12px var(--crt-red), 0 0 30px rgba(255, 45, 45, 0.4);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--crt-green-dim);
  letter-spacing: 0.15em;
  margin-top: 16px;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-block;
  border: 2px solid var(--crt-green);
  color: var(--crt-green);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 32px;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
  box-shadow: 0 0 16px var(--crt-green-glow);
}

.hero-cta:hover {
  background: var(--crt-green);
  color: var(--crt-bg);
  box-shadow: 0 0 32px var(--crt-green);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--crt-green-dim);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* --- Lore Section --- */
.lore-section {
  border-top: 1px solid rgba(0, 255, 65, 0.2);
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
  background: rgba(0, 255, 65, 0.03);
}

.lore-doc {
  background: #030f03;
  border: 1px solid var(--crt-green-dim);
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  position: relative;
}

.lore-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(0,255,65,0.3);
}

.lore-doc-title {
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lore-doc-id {
  font-size: 0.7rem;
  color: var(--crt-green-dim);
}

.lore-doc-body {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--crt-green);
}

.lore-doc-body p {
  margin-bottom: 16px;
}

.redacted {
  background: var(--crt-green);
  color: var(--crt-green);
  padding: 0 4px;
  user-select: none;
  display: inline-block;
  min-width: 40px;
}

.lore-doc-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(0,255,65,0.3);
  font-size: 0.7rem;
  color: var(--crt-green-dim);
  display: flex;
  justify-content: space-between;
}

/* --- Trailer Section --- */
.trailer-container {
  max-width: 860px;
  margin: 0 auto;
}

.trailer-frame {
  aspect-ratio: 16 / 9;
  background: #020a02;
  border: 2px solid var(--crt-green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.1);
}

.trailer-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 255, 65, 0.04) 3px,
    rgba(0, 255, 65, 0.04) 4px
  );
  pointer-events: none;
}

.trailer-coming-soon {
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: var(--crt-green-dim);
  text-transform: uppercase;
  z-index: 1;
}

.trailer-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: rgba(0, 255, 65, 0.3);
  animation: trailer-scan 4s linear infinite;
}

@keyframes trailer-scan {
  from { top: 0; }
  to   { top: 100%; }
}

/* --- Gameplay Grid --- */
.gameplay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 40px auto 0;
}

.gameplay-slot {
  aspect-ratio: 16 / 9;
  background: #020a02;
  border: 1px solid rgba(0, 255, 65, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.gameplay-slot:hover {
  border-color: var(--crt-green);
  box-shadow: 0 0 20px var(--crt-green-glow);
}

.gameplay-slot-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--crt-green-dim);
  text-transform: uppercase;
}

.gameplay-slot-icon {
  font-size: 2rem;
  opacity: 0.3;
}

/* --- Email Capture Section --- */
.email-section {
  background: rgba(255, 45, 45, 0.05);
  border: 1px solid rgba(255, 45, 45, 0.3);
}

.email-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 24px auto 0;
  flex-wrap: wrap;
}

.email-input {
  flex: 1;
  min-width: 220px;
  background: #050a05;
  border: 1px solid var(--crt-red-dim);
  border-right: none;
  color: var(--crt-green);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}

.email-input::placeholder {
  color: rgba(0, 255, 65, 0.3);
  font-style: italic;
}

.email-input:focus {
  border-color: var(--crt-red);
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.2);
}

.email-submit {
  background: transparent;
  border: 1px solid var(--crt-red);
  color: var(--crt-red);
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.email-submit:hover {
  background: var(--crt-red);
  color: var(--crt-bg);
}

.email-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-success {
  color: var(--crt-green);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-top: 16px;
  display: none;
}

.email-error {
  color: var(--crt-red);
  font-size: 0.8rem;
  margin-top: 12px;
  display: none;
}

/* --- Placeholder Sections --- */
.placeholder-section {
  border-top: 1px dashed rgba(0, 255, 65, 0.2);
  padding: 48px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.placeholder-card {
  background: rgba(0, 255, 65, 0.03);
  border: 1px dashed rgba(0, 255, 65, 0.25);
  padding: 32px;
  text-align: center;
}

.placeholder-card-icon {
  font-size: 2.5rem;
  opacity: 0.3;
  margin-bottom: 16px;
  display: block;
}

.placeholder-card-title {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--crt-green-dim);
}

.placeholder-card-body {
  font-size: 0.75rem;
  color: rgba(0, 255, 65, 0.4);
  line-height: 1.6;
}

.placeholder-card-status {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--crt-amber);
  border: 1px solid var(--crt-amber-dim);
  padding: 4px 10px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(0, 255, 65, 0.15);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--crt-green-dim);
  letter-spacing: 0.15em;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--crt-green);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

/* --- Floating Status Bar --- */
.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(5, 10, 5, 0.95);
  border-bottom: 1px solid var(--crt-green-dim);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  z-index: 9990;
  backdrop-filter: blur(4px);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crt-green);
  box-shadow: 0 0 6px var(--crt-green);
  animation: dot-blink 2s infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-item {
  color: var(--crt-green-dim);
}

.status-item span {
  color: var(--crt-green);
}

/* --- Rain Particle Overlay --- */
.rain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9995;
  opacity: 0.12;
}

/* --- Glitch on Hover --- */
.glitch-hover {
  transition: all 0.1s;
}
.glitch-hover:hover {
  animation: hover-glitch 0.3s steps(2) infinite;
}
@keyframes hover-glitch {
  0%   { clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%); transform: translate(-3px, 0); }
  25%  { clip-path: polygon(0 40%, 100% 40%, 100% 70%, 0 70%); transform: translate(3px, 0); }
  50%  { clip-path: none; transform: translate(0); }
  75%  { clip-path: polygon(0 15%, 100% 15%, 100% 45%, 0 45%); transform: translate(-2px, 0); }
  100% { clip-path: none; transform: translate(0); }
}

/* --- Scroll Glitch --- */
.scroll-glitch {
  animation: scroll-glitch-flicker 0.15s steps(1) forwards;
}
@keyframes scroll-glitch-flicker {
  0%   { transform: translate(0, 0); filter: none; }
  20%  { transform: translate(-3px, 1px); filter: hue-rotate(90deg) brightness(1.2); }
  40%  { transform: translate(3px, -1px); filter: hue-rotate(-90deg); }
  60%  { transform: translate(-1px, 2px); filter: brightness(0.8); }
  80%  { transform: translate(2px, -1px); filter: hue-rotate(180deg); }
  100% { transform: translate(0, 0); filter: none; }
}

/* --- Enhanced CRT Vignette --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.8) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0,0,0,0.03) 1px,
      rgba(0,0,0,0.03) 2px
    );
  pointer-events: none;
  z-index: 9997;
}

/* --- Amber Alert Mode --- */
body.amber-alert {
  --crt-green: var(--crt-amber);
  --crt-green-dim: var(--crt-amber-dim);
  --crt-green-glow: rgba(255, 170, 0, 0.25);
}

/* --- Gameplay Slot Hover Glitch --- */
.gameplay-slot.glitch-hover:hover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 65, 0.05);
  animation: slot-glitch 0.4s steps(1) infinite;
}
@keyframes slot-glitch {
  0%   { opacity: 0; }
  10%  { opacity: 1; background: rgba(255, 45, 45, 0.1); }
  20%  { opacity: 0; }
  30%  { opacity: 1; background: rgba(0, 255, 65, 0.08); }
  40%  { opacity: 0; }
  50%  { opacity: 1; background: rgba(255, 170, 0, 0.06); }
  60%  { opacity: 0; }
  70%  { opacity: 1; background: rgba(0, 255, 65, 0.05); }
  80%  { opacity: 0; }
  90%  { opacity: 0; }
}

/* --- Email Submit Glitch State --- */
.email-submit.glitch-processing {
  animation: btn-glitch 0.1s steps(1) infinite;
}
@keyframes btn-glitch {
  0%   { border-color: var(--crt-red); color: var(--crt-red); }
  33%  { border-color: var(--crt-green); color: var(--crt-green); }
  66%  { border-color: var(--crt-amber); color: var(--crt-amber); }
  100% { border-color: var(--crt-red); color: var(--crt-red); }
}

/* --- System Status Blink --- */
.system-alert {
  animation: alert-blink 2s infinite;
}
@keyframes alert-blink {
  0%, 88%, 100% { opacity: 1; }
  90% { opacity: 0.7; }
  92% { opacity: 1; }
  94% { opacity: 0.5; }
  96% { opacity: 1; }
}

/* --- Threat Glitch --- */
#threat-level.glitch-text {
  animation: threat-glitch 0.1s steps(1);
}
@keyframes threat-glitch {
  0%   { color: var(--crt-green); }
  33%  { color: var(--crt-red); text-shadow: 0 0 8px var(--crt-red); }
  66%  { color: var(--crt-amber); text-shadow: 0 0 6px var(--crt-amber); }
  100% { color: var(--crt-green); }
}

/* --- Placeholder CTA Button --- */
.placeholder-cta-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  border: 1px solid var(--crt-green-dim);
  color: var(--crt-green-dim);
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.placeholder-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--crt-green);
  transform: translateX(-100%);
  transition: transform 0.3s;
  z-index: -1;
}

.placeholder-cta-btn:hover::before {
  transform: translateX(0);
}

.placeholder-cta-btn:hover {
  color: var(--crt-bg);
  border-color: var(--crt-green);
  box-shadow: 0 0 16px var(--crt-green-glow);
  animation: cta-glitch-hover 0.4s steps(3) forwards;
}

/* --- Merch Card Better Copy --- */
.placeholder-card-body em {
  color: var(--crt-amber);
  font-style: normal;
  font-weight: bold;
}
.lore-doc-id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--crt-amber);
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 1px dashed rgba(255, 170, 0, 0.3);
  background: rgba(255, 170, 0, 0.04);
}

.lore-doc-id-row .lore-doc-id {
  color: var(--crt-green);
  font-weight: bold;
}

.lore-doc-severity {
  color: var(--crt-red);
}

/* --- Lore Classified Note --- */
.lore-classified-note {
  border-top: 1px dashed rgba(0, 255, 65, 0.2);
  padding-top: 16px;
  margin-top: 20px;
}

/* --- Section Glitch on Scroll --- */
.section-glitch {
  transition: filter 0.1s;
}
.section-glitch:hover {
  animation: section-glitch-flicker 0.4s steps(2) forwards;
}
@keyframes section-glitch-flicker {
  0%   { filter: none; }
  20%  { filter: hue-rotate(90deg) brightness(1.3) contrast(1.2); }
  40%  { filter: none; }
  60%  { filter: brightness(0.8) saturate(1.5); }
  80%  { filter: hue-rotate(-90deg); }
  100% { filter: none; }
}

/* --- Trailer Signal Distortion --- */
.trailer-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 8px,
    rgba(0, 255, 65, 0.015) 8px,
    rgba(0, 255, 65, 0.015) 9px
  );
  pointer-events: none;
  animation: trailer-noise 0.5s steps(3) infinite;
}
@keyframes trailer-noise {
  0%   { opacity: 0; }
  33%  { opacity: 1; }
  66%  { opacity: 0.5; }
  100% { opacity: 0; }
}

/* --- Lore Redacted Hover --- */
.redacted:hover {
  background: var(--crt-red);
  color: var(--crt-red);
  cursor: not-allowed;
  animation: redacted-glitch 0.2s steps(1);
}
@keyframes redacted-glitch {
  0%   { background: var(--crt-green); }
  50%  { background: var(--crt-red); }
  100% { background: var(--crt-green); }
}

/* --- Ambient Scanline Move --- */
.scanline-moving {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 255, 65, 0.15) 50%,
    transparent
  );
  pointer-events: none;
  z-index: 9996;
  animation: scanline-move 6s linear infinite;
}
@keyframes scanline-move {
  from { top: -4px; }
  to   { top: 100vh; }
}

/* --- Temperature Gauge Animated --- */
.temp-gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crt-green-dim) 0%, var(--crt-amber) 60%, var(--crt-red) 100%);
  box-shadow: 0 0 8px var(--crt-red);
  animation: gauge-pulse 1.5s infinite alternate;
  transition: width 1s ease;
}
@keyframes gauge-pulse {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

/* --- Warning Tape Marquee --- */
.warning-border::before,
.warning-border::after {
  background: repeating-linear-gradient(
    -45deg,
    var(--crt-amber),
    var(--crt-amber) 10px,
    #1a1400 10px,
    #1a1400 20px
  );
}

/* --- Hero CTA Hover Flicker --- */
.hero-cta:hover {
  animation: cta-glitch-hover 0.4s steps(3) forwards;
}
@keyframes cta-glitch-hover {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2px, 1px); }
  40%  { transform: translate(2px, -1px); }
  60%  { transform: translate(-1px, -1px); }
  80%  { transform: translate(1px, 1px); }
  100% { transform: translate(0, 0); }
}

/* --- Lore Doc Warning Tape --- */
.lore-section.warning-border {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* --- Footer Status Echo --- */
.footer-glitch {
  display: inline-block;
  position: relative;
}
.footer-glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  color: var(--crt-red);
  animation: footer-after-glitch 8s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}
@keyframes footer-after-glitch {
  0%, 90%, 100% { opacity: 0; transform: translate(0); }
  91%  { opacity: 0.6; transform: translate(-2px, 0); }
  92%  { opacity: 0; }
  93%  { opacity: 0.4; transform: translate(2px, 0); }
  94%  { opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .hero-title { font-size: 2.2rem; }
  .lore-doc { padding: 20px; }
  .email-form { flex-direction: column; }
  .email-input { border-right: 1px solid var(--crt-red-dim); }
  .status-bar { gap: 10px; overflow-x: auto; }
  .rain-canvas { opacity: 0.06; }
}