:root {
  /* Palette derived from Techno/Acid aesthetic */
  --acid: #ccff00; /* The core highlighter yellow/green */
  --hyper-violet: #8a2be2;
  --chrome: #e0e0e0;
  --void: #030303; /* Not quite black */
  --grid: rgba(255, 255, 255, 0.05);
}

body {
  background-color: var(--void);
  color: var(--chrome);
  font-family: "Space Mono", monospace;
  overflow-x: hidden;
  cursor: crosshair; /* Legacy web feel */
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
.font-display {
  font-family: "Unbounded", sans-serif;
  text-transform: uppercase;
}

/* --- VISUAL FX LAYERS --- */

/* 1. Heavy Digital Noise (SVG Data URI) */
.noise-fx {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. CRT Scanlines */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 49;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.1)
  );
  background-size: 100% 3px;
}

/* 3. Iridescent/Acid Blobs */
.acid-blob {
  position: absolute;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  animation: pulse-rotate 20s infinite linear;
}

.blob-1 {
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--hyper-violet), transparent 60%);
}

.blob-2 {
  bottom: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--acid), transparent 60%);
}

@keyframes pulse-rotate {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.5;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 0.3;
  }
}

/* --- TEXT EFFECTS --- */

/* Hollow Text */
.text-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
  color: transparent;
  transition: all 0.2s ease;
}

.text-outline:hover {
  color: var(--acid);
  -webkit-text-stroke: 0px;
  text-shadow: 0 0 15px var(--acid);
}

/* Glitch Animation */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--void);
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 #ff00c1;
  clip-path: inset(44% 0 61% 0);
  animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -1px 0 #00fff9;
  clip-path: inset(50% 0 30% 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip-path: inset(40% 0 61% 0);
  }
  20% {
    clip-path: inset(92% 0 1% 0);
  }
  40% {
    clip-path: inset(43% 0 1% 0);
  }
  60% {
    clip-path: inset(25% 0 58% 0);
  }
  80% {
    clip-path: inset(54% 0 7% 0);
  }
  100% {
    clip-path: inset(58% 0 43% 0);
  }
}

/* Header strip flicker (stable, non-scrolling) */
.blink-glitch {
  animation: blink-glitch 3s infinite;
  will-change: opacity, transform, text-shadow;
}

@keyframes blink-glitch {
  0%,
  92%,
  100% {
    opacity: 1;
    transform: translateX(0);
    text-shadow: none;
  }

  93% {
    opacity: 0.82;
    transform: translateX(1px);
    text-shadow: 1px 0 #00fff9, -1px 0 #ff00c1;
  }

  94% {
    opacity: 1;
    transform: translateX(0);
    text-shadow: none;
  }

  95% {
    opacity: 0.88;
    transform: translateX(-1px);
    text-shadow: -1px 0 #00fff9, 1px 0 #ff00c1;
  }

  96% {
    opacity: 1;
    transform: translateX(0);
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blink-glitch,
  .glitch::before,
  .glitch::after,
  .marquee-content,
  .acid-blob {
    animation: none !important;
  }
}

/* Infinite Marquee */
.marquee-track {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* --- UI COMPONENTS --- */
.btn-acid {
  background: var(--acid);
  color: black;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 5px 5px 0px white;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-acid:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px white;
}

.btn-acid:hover {
  background: white;
  box-shadow: 5px 5px 0px var(--acid);
}

.card-brutal {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.card-brutal:hover {
  border-color: var(--acid);
  background: rgba(204, 255, 0, 0.05);
}

/* Utility */
.selection-acid::selection {
  background-color: var(--acid);
  color: black;
}
