/* Neon design layer (2026-11 third overhaul). Loaded after components.css.
   Magenta-led per the neon-text.mp4 reference; green stays the brand secondary
   (gauge/progress fill and green CTAs). Reduced motion keeps the static glow but
   drops every loop (the global base.css guards already zero animations). */

:root {
  /* Per-hue title glows. Flip a single token to reskin the whole scheme. */
  --glow-title-magenta: 0 0 1px #fff, 0 0 8px var(--neon-magenta), 0 0 22px var(--neon-magenta), 0 0 46px rgba(255, 43, 214, 0.45);
  --glow-title-red: 0 0 1px #fff, 0 0 8px var(--neon-red), 0 0 22px var(--neon-red), 0 0 46px rgba(255, 45, 45, 0.45);
  --glow-title-gold: 0 0 1px #fff, 0 0 8px var(--neon-gold), 0 0 22px var(--neon-gold), 0 0 46px rgba(255, 207, 64, 0.45);
  --glow-title-green: 0 0 1px #fff, 0 0 8px var(--neon-green), 0 0 22px var(--neon-green), 0 0 46px rgba(118, 255, 3, 0.4);
  /* The active title glow (magenta by default). */
  --glow-title: var(--glow-title-magenta);
}

/* --- Neon titles --- */
.step__title {
  color: var(--text-neon);
  text-shadow: var(--glow-title);
  animation: neon-breathe 4.5s ease-in-out infinite;
}
/* Hue variants per screen tone: ЧП/alert → red, plan → gold. */
.scene[data-tone='alert'] .step__title {
  --glow-title: var(--glow-title-red);
}
.scene[data-tone='recipe'] .step__title {
  --glow-title: var(--glow-title-gold);
}
/* The intro broadcast + the Screen-0 title add a subtle electric flicker. */
.step__title--broadcast,
.scene[data-tone='video'] .step__title {
  animation: neon-breathe 4.6s ease-in-out infinite, neon-flicker 7s linear infinite;
}

/* Plan chrome that reads as a "seal"/signature also glows gold. */
.recipe__seal {
  color: var(--text-neon);
  text-shadow: var(--glow-title-gold);
}
.recipe__signature {
  text-shadow: 0 0 8px rgba(255, 207, 64, 0.65), 0 0 22px rgba(255, 207, 64, 0.4);
}

@keyframes neon-breathe {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.14);
  }
}

@keyframes neon-flicker {
  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    opacity: 1;
  }
  20% {
    opacity: 0.72;
  }
  54% {
    opacity: 0.8;
  }
}

/* --- Neon accents --- */
.badge--chp {
  box-shadow: var(--glow-neon-red);
}
.dossier__stamp,
.stamp {
  box-shadow: var(--glow-neon-red);
}
.recipe__badge {
  box-shadow: 0 0 18px rgba(255, 207, 64, 0.4);
}
.promo__code {
  box-shadow: 0 0 20px rgba(255, 207, 64, 0.35);
}
.btn.is-copied {
  box-shadow: var(--glow-neon-green);
}

/* --- Buttons: neon rim + glow on hover/focus --- */
.btn:hover,
.btn:focus-visible {
  box-shadow: var(--glow-neon-magenta);
  border-color: var(--neon-primary);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: var(--glow-neon-green);
}
.btn--alert:hover,
.btn--alert:focus-visible {
  box-shadow: var(--glow-neon-red);
}
.btn--gold:hover,
.btn--gold:focus-visible {
  box-shadow: 0 0 34px rgba(255, 207, 64, 0.5);
}

/* Plan: every CTA is outline-only. The bonus/promo button keeps a gold rim as an accent
   (no fill), and its copied state switches to a green rim. */
.assignment--bonus .btn {
  border-color: rgba(243, 177, 49, 0.55);
  color: var(--neon-gold);
}
.assignment--bonus .btn:hover,
.assignment--bonus .btn:focus-visible {
  border-color: var(--neon-gold);
  box-shadow: 0 0 34px rgba(255, 207, 64, 0.4);
}
.assignment--bonus .btn.is-copied {
  border-color: var(--neon-green);
  color: var(--neon-green-2);
}

/* Discount-level buttons: a magenta rim on hover (the scale reads as neon links). */
.assignment--levels .btn:hover,
.assignment--levels .btn:focus-visible {
  border-color: var(--neon-primary);
  box-shadow: var(--glow-neon-magenta);
}

/* Terms link under the repeat CTA: dim until hovered, then neon. */
.recipe__terms-link:hover,
.recipe__terms-link:focus-visible {
  color: var(--neon-primary);
  border-bottom-color: var(--neon-primary);
  text-shadow: 0 0 10px rgba(255, 43, 214, 0.5);
}

/* --- Answer cards, reaction and the "ЗАПИСАНО" stamp --- */
.answer:hover,
.answer:focus-visible {
  border-color: var(--neon-primary);
  box-shadow: var(--glow-neon-magenta);
}
.answer.is-selected {
  border-color: var(--neon-primary);
  background: linear-gradient(120deg, rgba(255, 43, 214, 0.2), rgba(255, 43, 214, 0.05));
  box-shadow: 0 0 20px rgba(255, 43, 214, 0.35), inset 0 0 22px rgba(255, 43, 214, 0.14);
}
.answer.is-selected .answer__mark {
  background: var(--neon-magenta);
  border-color: var(--neon-magenta-2);
}
.answer.is-stamped::after {
  box-shadow: 0 0 12px rgba(255, 207, 64, 0.45);
}
.reaction {
  box-shadow: inset 0 0 22px rgba(255, 43, 214, 0.08);
}
.reaction__text {
  border-left-color: var(--neon-primary);
}

/* --- HUD neon accents --- */
.hud__logo {
  box-shadow: 0 0 30px rgba(118, 255, 3, 0.22);
}
.hud__toggle.is-on {
  color: var(--neon-primary);
  border-color: var(--neon-primary);
  box-shadow: var(--glow-neon-magenta);
}

#hud-motion.is-on {
  color: var(--neon-green-2);
  border-color: var(--neon-green);
  box-shadow: var(--glow-neon-green);
}
.hud__gauge-value {
  color: var(--text-neon);
  text-shadow: 0 0 4px var(--neon-primary), 0 0 12px rgba(255, 43, 214, 0.6);
}
.hud__progress-bar {
  box-shadow: 0 0 10px rgba(118, 255, 3, 0.5);
}
.hud__gauge-bar {
  box-shadow: 0 0 10px rgba(118, 255, 3, 0.4);
}

/* --- Screen 0 (video) HUD: cinematic. Hide the story chrome (progress + gauge) but
   keep the sound/motion toggles so the viewer can adjust the audio at the warning. --- */
.hud[data-step-kind='video'] .hud__progress,
.hud[data-step-kind='video'] .hud__gauge {
  display: none;
}
.hud[data-step-kind='video'] .hud__row--controls {
  justify-content: flex-end;
}

/* --- No-JS fallback: a light neon touch --- */
.noscript h1 {
  text-shadow: var(--glow-title-magenta);
}

/* --- Verdict: neon «дело» folder (magenta-led rim; the label glows) --- */
.verdict__folder-label {
  text-shadow: 0 0 1px #fff, 0 0 10px var(--neon-magenta), 0 0 24px rgba(255, 43, 214, 0.55);
}

/* --- Reduced motion: keep a static glow, drop the loops --- */@media (prefers-reduced-motion: reduce) {
  .step__title,
  .step__title--broadcast,
  .scene[data-tone='video'] .step__title {
    animation: none;
  }
}
body.motion-reduced .step__title,
body.motion-reduced .step__title--broadcast,
body.motion-reduced .scene[data-tone='video'] .step__title {
  animation: none;
}
