/* ══════════ HOLIDAY LAYER: "one bad bulb" ══════════
   Jingle Bells & Broken Hearts season. /assets/holiday.js adds class
   "holiday" to <html> between Nov 20 and Jan 6. Every rule below is scoped
   under html.holiday, so without that class this file does nothing.
   Palette: Candy #FF3462 · Tinsel #5CF0C4 · Filament #FFB048 · Cobalt #5484FF
            Blush #FF6EBE · Dead Glass #343A42 · Snowmelt #ECF0F6 · Alley Night #070914 */

/* ── Snow: fixed canvas behind everything, never in the layout ── */
html.holiday .hb-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  contain: strict;
}
html.holiday .hb-snow[hidden] { display: none; }
/* the hero is the same night colour as the page; let the snow show through it */
html.holiday body > header { background: transparent; }

/* ── The strand along the bottom of the hero ──
   The hero gets extra room underneath, so the bulbs hang in empty space and
   the scroll cue sits above the spike instead of under it. */
html.holiday body > header { padding-bottom: calc(92px + 3.4rem); }
html.holiday .scroll-hint { bottom: calc(92px + 0.4rem); }
@media (max-width: 720px), (max-aspect-ratio: 1/1) {
  html.holiday body > header { padding-bottom: calc(92px + 3.6rem); }
}

html.holiday .hb-strand {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 92px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
html.holiday .hb-lit {
  animation: hb-twinkle 5s ease-in-out infinite alternate;
}
/* every bulb after the bad one: off and back on, about once every 20 seconds */
html.holiday .hb-after .hb-on {
  animation: hb-flicker 20s linear 4s infinite;
}
@keyframes hb-twinkle {
  0%   { opacity: 1; }
  100% { opacity: 0.7; }
}
@keyframes hb-flicker {
  0%, 88%   { opacity: 1; }
  88.6%     { opacity: 0; }
  89.2%     { opacity: 0.8; }
  89.7%     { opacity: 0; }
  93.5%     { opacity: 0; }
  94%       { opacity: 0.6; }
  94.4%     { opacity: 0.1; }
  95%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html.holiday .hb-lit,
  html.holiday .hb-after .hb-on { animation: none; }
}

/* ── Small seasonal accents: a thin Candy/Tinsel glow ── */
html.holiday main > section:not(#band):not(#frank):not(#dispatches) .stream-btn.primary {
  box-shadow: 0 0 22px var(--btn-glow), 0 0 0 1px rgba(92,240,196,0.30), 0 0 12px rgba(255,52,98,0.30);
}
html.holiday main > section:not(#band):not(#frank):not(#dispatches) .stream-btn.primary:hover {
  box-shadow: 0 0 26px var(--btn-glow), 0 0 0 1px rgba(92,240,196,0.45), 0 0 16px rgba(92,240,196,0.22);
}
html.holiday main > section:not(#band):not(#frank):not(#dispatches):not(.reveal-break) {
  border-image: linear-gradient(90deg, transparent, rgba(255,52,98,0.42) 28%, rgba(92,240,196,0.42) 72%, transparent) 1;
}
