/* ==== Underground Noize Storybox — blue/green overrides ==== */
:root {
  --accent-blue: #00b0ff; /* electric blue */
  --accent-blue-deep: #0a5ea8;
  --accent-green: #39ff14; /* acid green */
}

/* Put the storybox right under the menu, tighter top margin */
.storybox {
  margin: 12px auto 36px;
}

/* Title bar text (the strip that says “We’re finally back…”).
   Your GIF background stays; we just ensure good contrast + size */
.sb-title .sb-mid {
  color: #e7f7ff;
  text-shadow: 0 0 6px rgba(0, 176, 255, 0.35);
  font-weight: 800;
  /* Responsive size that won’t wrap weirdly */
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.35rem);
  letter-spacing: 0.6px;
}

/* Replace the red frame with blue and add a faint inner glow */
.storybox .sb-content {
  border: 2px solid var(--accent-blue-deep);
  background: rgba(0, 0, 0, 0.58);
  box-shadow:
    0 0 14px rgba(0, 176, 255, 0.12),
    inset 0 0 10px rgba(0, 176, 255, 0.08);
  padding: 14px 18px;
}

/* Meta line—slightly cooler color */
.storybox .sb-meta {
  color: #a8c2d1;
}

/* Headline inside the storybox body (if you use one) */
.storybox h2 {
  margin: 0 0 6px;
  font-family: "Jolly Lodger", "Metal Mania", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 2rem);
  text-shadow:
    0 0 8px rgba(0, 176, 255, 0.3),
    0 0 20px rgba(0, 176, 255, 0.2);
}

/* Links + CTA: default = light; hover = acid green */
.storybox a {
  color: #d8eaff;
  text-decoration: none;
}
.storybox a:hover {
  color: var(--accent-green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.45);
}

.storybox .sb-content .cta {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid #2b3f52;
  padding: 7px 12px;
  border-radius: 10px;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease;
}
.storybox .sb-content .cta:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-1px);
}

/* If you’re using the early-2000s frame elsewhere, swap that red too */
.frame-inner {
  border: 2px solid var(--accent-blue-deep);
}

/* ==== Stable, background-safe flicker (no opacity changes) ==== */
.sb-title .sb-mid {
  font-family: "Orbitron", "Kdam Thmor Pro", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 1px;
  font-weight: 700;
  color: #1a75ff;
  /* crisp outline to separate from background */
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.95),
    /* edge stroke */ 0 0 6px rgba(26, 117, 255, 0.8),
    0 0 12px rgba(26, 117, 255, 0.4);
  animation: neonFlutter 5.5s infinite;
  /* keep the effect text-only & reduce paint glitches */
  position: relative;
  will-change: text-shadow;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  contain: paint; /* isolates the element’s painting */
}

/* tiny irregular variations—no opacity */
@keyframes neonFlutter {
  0%,
  12% {
    text-shadow:
      0 0 3px rgba(0, 0, 0, 0.95),
      0 0 6px rgba(26, 117, 255, 0.8),
      0 0 12px rgba(26, 117, 255, 0.4);
  }
  13%,
  14% {
    /* quick micro “tick” */
    text-shadow:
      0 0 3px rgba(0, 0, 0, 0.95),
      0 0 7px rgba(26, 117, 255, 0.88),
      0 0 14px rgba(26, 117, 255, 0.46);
  }
  28% {
    text-shadow:
      0 0 3px rgba(0, 0, 0, 0.95),
      0 0 5px rgba(26, 117, 255, 0.72),
      0 0 10px rgba(26, 117, 255, 0.36);
  }
  43%,
  44% {
    /* brief spike */
    text-shadow:
      0 0 3px rgba(0, 0, 0, 0.95),
      0 0 9px rgba(26, 117, 255, 0.92),
      0 0 18px rgba(26, 117, 255, 0.52);
  }
  60% {
    text-shadow:
      0 0 3px rgba(0, 0, 0, 0.95),
      0 0 6px rgba(26, 117, 255, 0.8),
      0 0 13px rgba(26, 117, 255, 0.42);
  }
  76%,
  77% {
    /* tiny flutter */
    text-shadow:
      0 0 3px rgba(0, 0, 0, 0.95),
      0 0 7px rgba(26, 117, 255, 0.86),
      0 0 15px rgba(26, 117, 255, 0.48);
  }
  100% {
    text-shadow:
      0 0 3px rgba(0, 0, 0, 0.95),
      0 0 6px rgba(26, 117, 255, 0.8),
      0 0 12px rgba(26, 117, 255, 0.4);
  }
}

/* Optional: hairline stroke on WebKit for extra clarity */
@supports (-webkit-text-stroke: 1px black) {
  .sb-title .sb-mid {
    -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.8);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sb-title .sb-mid {
    animation: none;
  }
}

/* === Underground Noize Audio Control Bar (fixed bottom) === */
#audio-controls {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid #222;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;       /* centers vertically */
  justify-content: center;   /* centers horizontally */
  gap: 12px;
  z-index: 9999;
}

/* Button: perfectly centered icon */
#audio-controls button {
  background: #111;
  color: #ff4444;
  border: 1px solid #550000;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  display: flex;             /* centers icon inside */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;            /* removes vertical offset */
  padding: 0;
}

#audio-controls button:hover {
  color: #fff;
  background: #900;
  box-shadow: 0 0 10px #f00;
}

/* Volume slider */
#audio-controls input[type="range"] {
  width: 120px;
  accent-color: #ff4444;
  cursor: pointer;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 0, 0, 0.5); }
  50% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.9); }
}

#audio-controls.playing button {
  animation: pulseGlow 1.6s infinite;
}

