/* Body & background */
body {
  margin: 0;
  font-family: 'Courier New', monospace;
  background: #010101;
  color: #00ff00;
  overflow: hidden;
  cursor: crosshair;
}

/* Make sure all elements inherit the crosshair cursor */
* {
  cursor: crosshair !important;
}

/* Loader full screen */
#loader {
  position: fixed;
  inset: 0;
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #010101 0%, #001100 100%);
}

/* Vignette glow effect */
.vignette-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 40%, rgba(0,255,0,0.05) 70%, rgba(0,0,0,0.8) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Holographic scan lines */
.scan-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,255,0,0.03) 0px,
    rgba(0,255,0,0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 5;
  pointer-events: none;
  animation: scanLineMove 8s linear infinite;
}

.scan-lines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0,255,0,0.1) 50%,
    transparent 100%
  );
  height: 100px;
  animation: scanBeam 4s ease-in-out infinite;
}

/* Neon crosshairs / scanlines */
.crosshairs {
  position: absolute;
  inset: 0;
  background-size: 20px 20px;
  background-image:
    linear-gradient(to right, rgba(0,255,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,255,0,0.05) 1px, transparent 1px);
  z-index: 1;
  animation: moveLines 4s linear infinite;
}

/* Static overlay */
.static-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="1.5" numOctaves="1" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23noise)" opacity="1"/></svg>');
  background-size: 40px 40px;
  opacity: 0;
  animation: staticBlink 4s infinite;
  mix-blend-mode: screen;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  image-rendering: -moz-crisp-edges;
}

/* Bounding box corners */
.bounding-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 200px;
  z-index: 4;
  pointer-events: none;
}

.box-corner {
  position: absolute;
  width: 25px;
  height: 25px;
  border: none;
}

.corner-tl {
  top: 0;
  left: 0;
  border-top: 2px solid rgba(0,255,0,0.3);
  border-left: 2px solid rgba(0,255,0,0.3);
}

.corner-tr {
  top: 0;
  right: 0;
  border-top: 2px solid rgba(0,255,0,0.3);
  border-right: 2px solid rgba(0,255,0,0.3);
}

.corner-bl {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid rgba(0,255,0,0.3);
  border-left: 2px solid rgba(0,255,0,0.3);
}

.corner-br {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid rgba(0,255,0,0.3);
  border-right: 2px solid rgba(0,255,0,0.3);
}

/* Corner HUD elements */
.hud-corner {
  position: fixed;
  font-size: 0.7rem;
  font-family: 'Courier New', monospace;
  color: rgba(0,255,0,0.8);
  text-shadow: 0 0 4px #00ff00;
  z-index: 10;
  padding: 10px;
  border: 1px solid rgba(0,255,0,0.2);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(2px);
}

.hud-top-left {
  top: 20px;
  left: 20px;
  border-left: 1px solid rgba(0,255,0,0.3);
  border-top: 1px solid rgba(0,255,0,0.3);
  border-right: none;
  border-bottom: none;
}

.hud-top-right {
  top: 20px;
  right: 20px;
  border-right: 1px solid rgba(0,255,0,0.3);
  border-top: 1px solid rgba(0,255,0,0.3);
  border-left: none;
  border-bottom: none;
}

.hud-bottom-left {
  bottom: 20px;
  left: 20px;
  border-left: 1px solid rgba(0,255,0,0.3);
  border-bottom: 1px solid rgba(0,255,0,0.3);
  border-right: none;
  border-top: none;
}

.hud-bottom-right {
  bottom: 20px;
  right: 20px;
  border-right: 1px solid rgba(0,255,0,0.3);
  border-bottom: 1px solid rgba(0,255,0,0.3);
  border-left: none;
  border-top: none;
}

.hud-text {
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.hud-subtext {
  font-size: 0.65rem;
  color: rgba(0,255,0,0.6);
  letter-spacing: 0.5px;
}

.blink-text {
  animation: hudBlink 2s ease-in-out infinite;
}

/* Loader content */
.loader-inner {
  width: 320px;
  text-align: center;
  position: relative;
  z-index: 2;
  filter: drop-shadow(2px 0 0 rgba(255,0,255,0.3)) drop-shadow(-2px 0 0 rgba(0,255,255,0.3));
}

/* Loader text above bar, shaking slowly */
.loader-text {
  font-size: 3.5rem;
  color: #00ff00;
  text-shadow: 0 0 6px #00ff00, 0 0 12px #00ff00;
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
}

.loader-text::before,
.loader-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  text-shadow: none;
}

.loader-text::before {
  left: 2px;
  text-shadow: -3px 0 magenta;
  animation: glitch-it 0.3s infinite;
}

.loader-text::after {
  left: -2px;
  text-shadow: 3px 0 cyan;
  animation: glitch-it 0.3s infinite reverse;
}

/* Counter below bar */
.counter {
  font-size: 2rem;
  font-weight: 300;
  margin-top: 10px;
  color: #00ff00;
  text-shadow: 0 0 6px #00ff00, 0 0 12px #00ff00;
}

/* Progress bar */
.bar {
  height: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0,255,0,0.05) 0px,
      rgba(0,255,0,0.05) 1px,
      transparent 1px,
      transparent 20px
    ),
    rgba(0,255,0,0.1);
  box-shadow:
    0 0 4px rgba(0,255,0,0.3),
    inset 0 0 4px rgba(0,0,0,0.5);
  border: 1px solid rgba(0,255,0,0.2);
  position: relative;
  overflow: hidden;
}

.bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,255,0,0.1),
    transparent
  );
  animation: scanLine 2s linear infinite;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background:
    linear-gradient(
      90deg,
      rgba(0,255,0,0.6) 0%,
      rgba(0,255,0,0.9) 50%,
      rgba(0,255,0,1) 100%
    );
  box-shadow:
    0 0 8px #00ff00,
    0 0 16px #00ff00,
    0 0 24px rgba(0,255,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
}

.bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.3)
  );
  animation: shimmer 1s ease-in-out infinite;
}

@keyframes scanLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Status text below number */
.status {
  font-size: 0.9rem;
  color: rgba(0,255,0,0.7);
  letter-spacing: 1px;
  min-height: 20px;
  margin-top: 10px;
  text-shadow: 0 0 4px #00ff00;
}

/* Scanning crosshair */
.scanning-crosshair {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  animation: crosshairScan 4s linear infinite;
}

/* Crosshair lines */
.crosshair-vertical {
  position: fixed;
  width: 2px;
  height: 200vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,255,0,0.2) 30%,
    rgba(0,255,0,0.7) 50%,
    rgba(0,255,0,0.2) 70%,
    transparent 100%
  );
  box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

.crosshair-horizontal {
  position: fixed;
  width: 200vw;
  height: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,255,0,0.2) 30%,
    rgba(0,255,0,0.7) 50%,
    rgba(0,255,0,0.2) 70%,
    transparent 100%
  );
  box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

/* Animations */
@keyframes crosshairScan {
  0% {
    transform: translate(-50%, -50%);
  }
  100% {
    transform: translate(50%, 50%);
  }
}

/* AI Transition Screen */
#ai-transition {
  opacity: 0;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  perspective: 800px;
}

.particle-sphere {
  position: relative;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 20px rgba(0,255,0,0.6));
}

.particle-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle,
    #006644 0%,
    #005533 15%,
    #004422 30%,
    #003311 50%,
    #001100 70%,
    transparent 85%);
  box-shadow:
    0 0 6px #004422,
    0 0 12px #003311,
    0 0 18px rgba(0,50,30,0.6),
    0 0 25px rgba(0,30,20,0.4),
    inset 0 0 2px rgba(100,200,150,0.2),
    inset 0 0 4px rgba(0,100,60,0.15);
  top: 50%;
  left: 50%;
  animation: particlePulse 0.8s ease-in-out infinite, particleGradient 3s ease-in-out infinite;
  filter: hue-rotate(0deg);
}

/* Position particles - randomized sizes and distances (50% scale) */
.particle-ring .particle:nth-child(1) { transform: rotate(0deg) translateX(58px) scale(1.2); animation-delay: 0s; animation-duration: 0.9s; }
.particle-ring .particle:nth-child(2) { transform: rotate(30deg) translateX(63px) scale(0.7); animation-delay: -0.12s; animation-duration: 0.75s; }
.particle-ring .particle:nth-child(3) { transform: rotate(60deg) translateX(54px) scale(1.5); animation-delay: -0.18s; animation-duration: 1.1s; }
.particle-ring .particle:nth-child(4) { transform: rotate(90deg) translateX(65px) scale(0.9); animation-delay: -0.32s; animation-duration: 0.68s; }
.particle-ring .particle:nth-child(5) { transform: rotate(120deg) translateX(56px) scale(1.3); animation-delay: -0.45s; animation-duration: 0.95s; }
.particle-ring .particle:nth-child(6) { transform: rotate(150deg) translateX(61px) scale(0.8); animation-delay: -0.52s; animation-duration: 0.82s; }
.particle-ring .particle:nth-child(7) { transform: rotate(180deg) translateX(59px) scale(1.1); animation-delay: -0.61s; animation-duration: 0.88s; }
.particle-ring .particle:nth-child(8) { transform: rotate(210deg) translateX(64px) scale(0.85); animation-delay: -0.73s; animation-duration: 0.77s; }
.particle-ring .particle:nth-child(9) { transform: rotate(240deg) translateX(55px) scale(1.4); animation-delay: -0.08s; animation-duration: 1.05s; }
.particle-ring .particle:nth-child(10) { transform: rotate(270deg) translateX(60px) scale(0.95); animation-delay: -0.19s; animation-duration: 0.85s; }
.particle-ring .particle:nth-child(11) { transform: rotate(300deg) translateX(58px) scale(1.25); animation-delay: -0.28s; animation-duration: 0.92s; }
.particle-ring .particle:nth-child(12) { transform: rotate(330deg) translateX(62px) scale(0.75); animation-delay: -0.38s; animation-duration: 0.72s; }

/* Different ring orientations - varied speeds for organic feel */
.ring-horizontal {
  animation: sphereRotate 1.5s ease-in-out infinite;
}

.ring-vertical {
  transform: rotateY(90deg);
  animation: sphereRotate 1.85s ease-in-out infinite reverse;
}

.ring-diagonal-1 {
  transform: rotateY(45deg) rotateZ(45deg);
  animation: sphereRotate 2.1s ease-in-out infinite;
}

.ring-diagonal-2 {
  transform: rotateY(-45deg) rotateZ(-45deg);
  animation: sphereRotate 2.35s ease-in-out infinite reverse;
}

.ring-mid-1 {
  transform: rotateY(30deg) rotateZ(60deg);
  animation: sphereRotate 1.65s ease-in-out infinite;
}

.ring-mid-2 {
  transform: rotateY(-30deg) rotateZ(-60deg);
  animation: sphereRotate 1.95s ease-in-out infinite reverse;
}

/* Energy rings */
.energy-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(0,255,0,0.8);
  box-shadow:
    0 0 20px rgba(0,255,0,1),
    0 0 40px rgba(0,255,0,0.9),
    inset 0 0 20px rgba(0,255,0,0.6);
  animation: energyPulse 1.2s ease-in-out infinite;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.ring-outer {
  width: 40px;
  height: 40px;
  animation-delay: 0s;
  animation: energyPulse 1.2s ease-in-out infinite, wavyOuter 4s ease-in-out infinite;
}

.ring-middle {
  width: 34px;
  height: 34px;
  animation-delay: -0.4s;
  animation: energyPulse 1.2s ease-in-out infinite -0.4s, wavyMiddle 5s ease-in-out infinite;
}

.ring-inner {
  width: 28px;
  height: 28px;
  animation-delay: -0.8s;
  animation: energyPulse 1.2s ease-in-out infinite -0.8s, wavyInner 3.5s ease-in-out infinite;
}

.sphere-core {
  position: absolute;
  width: 25px;
  height: 25px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 30% 30%, rgba(0,255,0,1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,255,0,0.9) 0%, transparent 50%),
    radial-gradient(circle, rgba(0,255,0,1) 0%, rgba(0,255,0,0.9) 30%, transparent 70%);
  border-radius: 50%;
  box-shadow:
    0 0 15px #00ff00,
    0 0 30px rgba(0,255,0,1),
    0 0 45px rgba(0,255,0,0.9),
    0 0 60px rgba(0,255,0,0.7),
    inset 0 0 15px rgba(0,255,0,0.9);
  animation: corePulse 1s ease-in-out infinite, coreGradient 4s ease-in-out infinite;
}

@keyframes sphereRotate {
  from { transform: rotateY(0deg) rotateX(0deg); }
  to { transform: rotateY(360deg) rotateX(360deg); }
}

@keyframes particlePulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  33% {
    transform: scale(2.5);
    opacity: 1;
  }
  66% {
    transform: scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
}

@keyframes energyPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.7;
  }
}

@keyframes corePulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
}

@keyframes wavyOuter {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

@keyframes wavyMiddle {
  0%, 100% {
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  }
  25% {
    border-radius: 65% 35% 70% 30% / 55% 35% 65% 45%;
  }
  50% {
    border-radius: 45% 55% 40% 60% / 60% 50% 50% 40%;
  }
  75% {
    border-radius: 55% 45% 65% 35% / 45% 60% 40% 55%;
  }
}

@keyframes wavyInner {
  0%, 100% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
  }
  25% {
    border-radius: 60% 40% 55% 45% / 65% 35% 65% 35%;
  }
  50% {
    border-radius: 45% 55% 60% 40% / 40% 60% 40% 60%;
  }
  75% {
    border-radius: 55% 45% 40% 60% / 50% 45% 55% 50%;
  }
}

@keyframes particleGradient {
  0% {
    filter: hue-rotate(0deg) brightness(0.8) saturate(1.3);
  }
  20% {
    filter: hue-rotate(-25deg) brightness(1.0) saturate(1.6) contrast(1.2);
  }
  40% {
    filter: hue-rotate(15deg) brightness(0.7) saturate(1.4) contrast(1.1);
  }
  60% {
    filter: hue-rotate(-10deg) brightness(0.9) saturate(1.5) contrast(1.15);
  }
  80% {
    filter: hue-rotate(20deg) brightness(0.75) saturate(1.2) contrast(1.05);
  }
  100% {
    filter: hue-rotate(0deg) brightness(0.8) saturate(1.3);
  }
}

@keyframes coreGradient {
  0%, 100% {
    filter: hue-rotate(0deg) brightness(1.3) saturate(1.5);
  }
  50% {
    filter: hue-rotate(-20deg) brightness(1.6) saturate(1.8);
  }
}

/* Main content */
#welcome {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #00ff00;
  text-shadow: 0 0 6px #00ff00, 0 0 12px #00ff00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#welcome h1 {
  font-size: 3.5rem;
  font-family: 'Neoncity', cursive;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  position: relative;
  padding: 35px 45px 10px 45px;
  border: none;
  margin: 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 45px;
  animation: neonHum 0.1s infinite;
  line-height: 1.3;
  color: rgba(0, 255, 0, 0.9);
  text-shadow:
    /* Glass highlight on top */
    1px 1px 0px rgba(255, 255, 255, 0.4),
    /* Glass shadow on bottom */
    -1px -1px 0px rgba(0, 100, 0, 0.6),
    /* Glass depth */
    0 0 2px rgba(200, 255, 200, 0.3);
}

#welcome h1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  border-radius: 45px;
  pointer-events: none;
  z-index: 1;
  animation: tubeHum 0.1s infinite;
}

#welcome h1::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0,255,0,0.2) 0%,
    rgba(0,255,0,0.1) 30%,
    rgba(0,255,0,0.05) 60%,
    transparent 100%
  );
  border-radius: 45px;
  z-index: -1;
  animation: illumination 4s steps(1, end) infinite;
  pointer-events: none;
}

.star {
  display: inline;
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1;   text-shadow: 0 0 6px #00ff00, 0 0 14px #00ff00; }
  40%       { opacity: 0.08; text-shadow: none; }
  60%       { opacity: 0.08; text-shadow: none; }
}

#ascii-cat {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  color: #00ff00;
  text-shadow: 0 0 8px #00ff00, 0 0 15px #00ff00;
  line-height: 1.2;
  text-align: left;
  margin: 0 0 12px 0;
}

#ascii-cat-meow {
  font-family: Monaco, Menlo, 'SF Mono', monospace;
  font-size: 0.42rem;
  line-height: 1.1;
  color: #00ff00;
  text-shadow: 0 0 4px #00ff00, 0 0 8px #00ff00;
  text-align: left;
  margin: 0 0 8px 0;
  white-space: pre;
}

#ascii-cat-text {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: rgba(0,255,80,0.85);
  text-shadow: 0 0 6px #00ff44;
  line-height: 1.6;
  text-align: left;
  margin: 0;
  letter-spacing: 1px;
}

.flicker-wel {
  animation: brokenSign 5s steps(1, end) infinite;
}

.clickable-no {
  color: #00ff00;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 0 5px #00ff00;
  transition: all 0.2s;
}

.clickable-no:hover {
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

#static-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
}

#static-canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

#static-quote {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 520px;
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.9;
  color: #fff;
  opacity: .45;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
}

/* CRT scanlines */
#static-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.18) 0px,
      rgba(0, 0, 0, 0.18) 1px,
      transparent 1px,
      transparent 3px
    );
  pointer-events: none;
  z-index: 5;
}

/* CRT vignette */
#static-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
  z-index: 6;
}

@keyframes staticNoise {
  0% {
    background-position: 0% 0%, 50% 50%, 25% 25%;
    filter: brightness(1.1) contrast(1.8) saturate(0);
  }
  10% {
    background-position: 10% 15%, 60% 45%, 30% 35%;
    filter: brightness(0.9) contrast(2.2) saturate(0);
  }
  20% {
    background-position: 25% 8%, 45% 60%, 15% 45%;
    filter: brightness(1.3) contrast(1.5) saturate(0);
  }
  30% {
    background-position: 5% 25%, 70% 30%, 40% 20%;
    filter: brightness(0.8) contrast(2.5) saturate(0);
  }
  40% {
    background-position: 35% 12%, 35% 75%, 20% 50%;
    filter: brightness(1.2) contrast(1.9) saturate(0);
  }
  50% {
    background-position: 15% 30%, 80% 20%, 50% 10%;
    filter: brightness(1.0) contrast(2.0) saturate(0);
  }
  60% {
    background-position: 45% 5%, 25% 85%, 35% 40%;
    filter: brightness(0.95) contrast(2.3) saturate(0);
  }
  70% {
    background-position: 30% 20%, 65% 55%, 10% 30%;
    filter: brightness(1.15) contrast(1.7) saturate(0);
  }
  80% {
    background-position: 20% 35%, 55% 40%, 45% 15%;
    filter: brightness(0.85) contrast(2.4) saturate(0);
  }
  90% {
    background-position: 40% 18%, 40% 70%, 25% 55%;
    filter: brightness(1.25) contrast(1.6) saturate(0);
  }
  100% {
    background-position: 0% 0%, 50% 50%, 25% 25%;
    filter: brightness(1.1) contrast(1.8) saturate(0);
  }
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px); }
}

@keyframes vignette {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

#typewriter-text {
  margin-top: 30px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #00ff00;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-shadow: 0 0 5px #00ff00;
  max-width: 600px;
  width: 600px;
  min-height: 6em;
  text-align: left;
  white-space: pre-wrap;
  align-self: center;
  line-height: 1.4;
}

#typewriter-text.typing::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1.2em;
  background-color: #00ff00;
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px #00ff00;
}

.clickable-yes {
  color: #00ff00;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 0 5px #00ff00;
  transition: all 0.2s;
}

.clickable-yes:hover {
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

#user-typed-text {
  visibility: hidden;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #00ff00;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-shadow: 0 0 5px #00ff00;
  max-width: 600px;
  width: 600px;
  text-align: left;
  min-height: 1.5em;
  align-self: center;
  margin-top: calc(0.9rem * 1.4);
  line-height: 1.4;
}

#user-typed-text.active {
  visibility: visible;
}

#user-typed-text.active::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1.2em;
  background-color: #00ff00;
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px #00ff00;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Animations */
@keyframes moveLines {
  0% { background-position: 0 0; }
  100% { background-position: 20px 20px; }
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  25% { transform: translate(-1px, -1px) rotate(-0.5deg); }
  50% { transform: translate(1px, 0px) rotate(0.5deg); }
  75% { transform: translate(-1px, 1px) rotate(0deg); }
  100% { transform: translate(1px, -1px) rotate(0deg); }
}

@keyframes staticBlink {
  0%, 100% { opacity: 0; }
  2% { opacity: 0.15; }
  4% { opacity: 0.25; }
  6% { opacity: 0.3; }
  8% { opacity: 0.25; }
  10% { opacity: 0.2; }
  12% { opacity: 0.15; }
  14% { opacity: 0; }
  35% { opacity: 0; }
  37% { opacity: 0.2; }
  39% { opacity: 0.3; }
  41% { opacity: 0.28; }
  43% { opacity: 0.25; }
  45% { opacity: 0.18; }
  47% { opacity: 0; }
  68% { opacity: 0; }
  70% { opacity: 0.18; }
  72% { opacity: 0.22; }
  74% { opacity: 0.25; }
  76% { opacity: 0.2; }
  78% { opacity: 0; }
  88% { opacity: 0; }
  90% { opacity: 0.22; }
  92% { opacity: 0.25; }
  94% { opacity: 0.2; }
  96% { opacity: 0.15; }
  98% { opacity: 0; }
}

@keyframes glitch-it {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(2px, 2px); }
  100% { transform: translate(0); }
}

@keyframes scanLineMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}

@keyframes scanBeam {
  0% { top: -100px; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes hudBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes illumination {
  0%, 69.9% {
    opacity: 1;
    filter: blur(20px);
  }
  70%, 70.1% {
    opacity: 0;
    filter: blur(0px);
  }
  70.2%, 70.3% {
    opacity: 1;
    filter: blur(20px);
  }
  70.4%, 70.5% {
    opacity: 0;
    filter: blur(0px);
  }
  70.6%, 84.9% {
    opacity: 1;
    filter: blur(20px);
  }
  85%, 85.1% {
    opacity: 0;
    filter: blur(0px);
  }
  85.2%, 85.3% {
    opacity: 1;
    filter: blur(20px);
  }
  85.4%, 85.5% {
    opacity: 0;
    filter: blur(0px);
  }
  85.6%, 94.9% {
    opacity: 1;
    filter: blur(20px);
  }
  95%, 95.1% {
    opacity: 0;
    filter: blur(0px);
  }
  95.2%, 95.3% {
    opacity: 1;
    filter: blur(20px);
  }
  95.4%, 95.5% {
    opacity: 0;
    filter: blur(0px);
  }
  95.6%, 100% {
    opacity: 1;
    filter: blur(20px);
  }
}

@keyframes neonHum {
  0%, 100% {
    text-shadow:
      /* Glass effects */
      1px 1px 0px rgba(255, 255, 255, 0.4),
      -1px -1px 0px rgba(0, 100, 0, 0.6),
      0 0 2px rgba(200, 255, 200, 0.3),
      /* Neon glow */
      0 0 6px #00ff00,
      0 0 12px #00ff00;
    filter: brightness(1) blur(0px);
  }
  50% {
    text-shadow:
      /* Glass effects */
      1px 1px 0px rgba(255, 255, 255, 0.4),
      -1px -1px 0px rgba(0, 100, 0, 0.6),
      0 0 2px rgba(200, 255, 200, 0.3),
      /* Neon glow - pulsing */
      0 0 6.5px #00ff00,
      0 0 13px #00ff00;
    filter: brightness(1.02) blur(0.15px);
  }
}

@keyframes tubeHum {
  0%, 100% {
    box-shadow:
      /* Outer glow - softer, more spread */
      0 0 10px rgba(0,255,0,0.7),
      0 0 20px rgba(0,255,0,0.5),
      0 0 30px rgba(0,255,0,0.3),
      0 0 40px rgba(0,255,0,0.15),
      /* Glass tube base - very transparent */
      inset 0 0 0 7px rgba(0,255,0,0.2),
      /* Top-left corner - reduced specular highlight */
      inset 5px 5px 8px 3px rgba(255,255,255,0.5),
      /* Top edge - reduced gradient highlight */
      inset 0 3px 10px 4px rgba(255,255,255,0.35),
      /* Left edge - gradient highlight */
      inset 3px 0 10px 4px rgba(255,255,255,0.3),
      /* Top-right - subtle green tint */
      inset -5px 5px 8px 3px rgba(180,255,180,0.25),
      /* Right edge - medium shadow */
      inset -3px 0 8px 4px rgba(0,60,0,0.5),
      /* Bottom-left - medium shadow */
      inset 5px -3px 8px 3px rgba(0,60,0,0.5),
      /* Bottom edge - dark shadow */
      inset 0 -3px 10px 4px rgba(0,30,0,0.7),
      /* Bottom-right corner - darkest shadow for depth */
      inset -5px -5px 12px 3px rgba(0,15,0,0.85),
      /* Inner neon gas glow */
      inset 0 0 18px rgba(0,255,0,0.6),
      /* Ambient inner fill */
      inset 0 0 35px rgba(0,255,0,0.2);
    filter: brightness(1) blur(0px);
  }
  50% {
    box-shadow:
      /* Outer glow - pulsing */
      0 0 12px rgba(0,255,0,0.75),
      0 0 22px rgba(0,255,0,0.55),
      0 0 32px rgba(0,255,0,0.35),
      0 0 42px rgba(0,255,0,0.18),
      /* Glass tube base */
      inset 0 0 0 7px rgba(0,255,0,0.22),
      /* Top-left corner - reduced specular highlight */
      inset 5px 5px 8px 3px rgba(255,255,255,0.5),
      /* Top edge - reduced gradient highlight */
      inset 0 3px 10px 4px rgba(255,255,255,0.35),
      /* Left edge - gradient highlight */
      inset 3px 0 10px 4px rgba(255,255,255,0.3),
      /* Top-right - subtle green tint */
      inset -5px 5px 8px 3px rgba(180,255,180,0.25),
      /* Right edge - medium shadow */
      inset -3px 0 8px 4px rgba(0,60,0,0.5),
      /* Bottom-left - medium shadow */
      inset 5px -3px 8px 3px rgba(0,60,0,0.5),
      /* Bottom edge - dark shadow */
      inset 0 -3px 10px 4px rgba(0,30,0,0.7),
      /* Bottom-right corner - darkest shadow */
      inset -5px -5px 12px 3px rgba(0,15,0,0.85),
      /* Inner neon gas glow - pulsing */
      inset 0 0 20px rgba(0,255,0,0.65),
      /* Ambient inner fill */
      inset 0 0 38px rgba(0,255,0,0.22);
    filter: brightness(1.02) blur(0.15px);
  }
}

@keyframes brokenSign {
  /* Rapid flickering pattern */
  0%, 4.9% {
    opacity: 1;
    color: rgba(0, 255, 0, 0.9);
    text-shadow:
      1px 1px 0px rgba(255, 255, 255, 0.4),
      -1px -1px 0px rgba(0, 100, 0, 0.6),
      0 0 2px rgba(200, 255, 200, 0.3),
      0 0 6px #00ff00,
      0 0 12px #00ff00;
    filter: none;
  }
  5%, 5.5% {
    opacity: 1;
    color: #1a3a1a;
    text-shadow:
      1px 1px 0px rgba(200,255,200,0.2),
      -1px -1px 0px rgba(0,0,0,0.6),
      0 0 2px rgba(150,200,150,0.15);
    filter: brightness(0.6) contrast(1.2);
  }
  5.6%, 9.9% {
    opacity: 1;
    color: rgba(0, 255, 0, 0.9);
    text-shadow:
      1px 1px 0px rgba(255, 255, 255, 0.4),
      -1px -1px 0px rgba(0, 100, 0, 0.6),
      0 0 2px rgba(200, 255, 200, 0.3),
      0 0 6px #00ff00,
      0 0 12px #00ff00;
    filter: none;
  }
  10%, 10.5% {
    opacity: 1;
    color: #1a3a1a;
    text-shadow:
      1px 1px 0px rgba(200,255,200,0.2),
      -1px -1px 0px rgba(0,0,0,0.6),
      0 0 2px rgba(150,200,150,0.15);
    filter: brightness(0.6) contrast(1.2);
  }
  10.6%, 18.9% {
    opacity: 1;
    color: rgba(0, 255, 0, 0.9);
    text-shadow:
      1px 1px 0px rgba(255, 255, 255, 0.4),
      -1px -1px 0px rgba(0, 100, 0, 0.6),
      0 0 2px rgba(200, 255, 200, 0.3),
      0 0 6px #00ff00,
      0 0 12px #00ff00;
    filter: none;
  }
  19%, 19.5% {
    opacity: 1;
    color: #1a3a1a;
    text-shadow:
      1px 1px 0px rgba(200,255,200,0.2),
      -1px -1px 0px rgba(0,0,0,0.6),
      0 0 2px rgba(150,200,150,0.15);
    filter: brightness(0.6) contrast(1.2);
  }
  19.6%, 24.9% {
    opacity: 1;
    color: rgba(0, 255, 0, 0.9);
    text-shadow:
      1px 1px 0px rgba(255, 255, 255, 0.4),
      -1px -1px 0px rgba(0, 100, 0, 0.6),
      0 0 2px rgba(200, 255, 200, 0.3),
      0 0 6px #00ff00,
      0 0 12px #00ff00;
    filter: none;
  }
  25%, 25.5% {
    opacity: 1;
    color: #1a3a1a;
    text-shadow:
      1px 1px 0px rgba(200,255,200,0.2),
      -1px -1px 0px rgba(0,0,0,0.6),
      0 0 2px rgba(150,200,150,0.15);
    filter: brightness(0.6) contrast(1.2);
  }
  25.6%, 34.9% {
    opacity: 1;
    color: rgba(0, 255, 0, 0.9);
    text-shadow:
      1px 1px 0px rgba(255, 255, 255, 0.4),
      -1px -1px 0px rgba(0, 100, 0, 0.6),
      0 0 2px rgba(200, 255, 200, 0.3),
      0 0 6px #00ff00,
      0 0 12px #00ff00;
    filter: none;
  }
  35%, 35.5% {
    opacity: 1;
    color: #1a3a1a;
    text-shadow:
      1px 1px 0px rgba(200,255,200,0.2),
      -1px -1px 0px rgba(0,0,0,0.6),
      0 0 2px rgba(150,200,150,0.15);
    filter: brightness(0.6) contrast(1.2);
  }
  35.6%, 44.9% {
    opacity: 1;
    color: rgba(0, 255, 0, 0.9);
    text-shadow:
      1px 1px 0px rgba(255, 255, 255, 0.4),
      -1px -1px 0px rgba(0, 100, 0, 0.6),
      0 0 2px rgba(200, 255, 200, 0.3),
      0 0 6px #00ff00,
      0 0 12px #00ff00;
    filter: none;
  }
  45%, 45.5% {
    opacity: 1;
    color: #1a3a1a;
    text-shadow:
      1px 1px 0px rgba(200,255,200,0.2),
      -1px -1px 0px rgba(0,0,0,0.6),
      0 0 2px rgba(150,200,150,0.15);
    filter: brightness(0.6) contrast(1.2);
  }
  45.6%, 54.9% {
    opacity: 1;
    color: rgba(0, 255, 0, 0.9);
    text-shadow:
      1px 1px 0px rgba(255, 255, 255, 0.4),
      -1px -1px 0px rgba(0, 100, 0, 0.6),
      0 0 2px rgba(200, 255, 200, 0.3),
      0 0 6px #00ff00,
      0 0 12px #00ff00;
    filter: none;
  }
  55%, 55.5% {
    opacity: 1;
    color: #1a3a1a;
    text-shadow:
      1px 1px 0px rgba(200,255,200,0.2),
      -1px -1px 0px rgba(0,0,0,0.6),
      0 0 2px rgba(150,200,150,0.15);
    filter: brightness(0.6) contrast(1.2);
  }
  55.6%, 64.9% {
    opacity: 1;
    color: rgba(0, 255, 0, 0.9);
    text-shadow:
      1px 1px 0px rgba(255, 255, 255, 0.4),
      -1px -1px 0px rgba(0, 100, 0, 0.6),
      0 0 2px rgba(200, 255, 200, 0.3),
      0 0 6px #00ff00,
      0 0 12px #00ff00;
    filter: none;
  }
  65%, 65.5% {
    opacity: 1;
    color: #1a3a1a;
    text-shadow:
      1px 1px 0px rgba(200,255,200,0.2),
      -1px -1px 0px rgba(0,0,0,0.6),
      0 0 2px rgba(150,200,150,0.15);
    filter: brightness(0.6) contrast(1.2);
  }
  65.6%, 69.9% {
    opacity: 1;
    color: rgba(0, 255, 0, 0.9);
    text-shadow:
      1px 1px 0px rgba(255, 255, 255, 0.4),
      -1px -1px 0px rgba(0, 100, 0, 0.6),
      0 0 2px rgba(200, 255, 200, 0.3),
      0 0 6px #00ff00,
      0 0 12px #00ff00;
    filter: none;
  }
  /* Prolonged OFF period (~1.5 seconds) */
  70%, 100% {
    opacity: 1;
    color: rgba(30, 30, 30, 0.7);
    text-shadow:
      1px 1px 0px rgba(255, 255, 255, 0.12),
      -1px -1px 0px rgba(0, 0, 0, 0.5);
    filter: none;
  }
}