html[data-season="halloween"] {
  --season-rgb: 255, 122, 26;
  --season-accent: #ff7a1a;
  --season-hot-rgb: 255, 166, 87;
  --season-hot: #ffa657;
  --season-deep: #c2410c;
  --season-alt-rgb: 168, 85, 247;
  --season-glow: rgba(168, 85, 247, .14);
}

html[data-season="christmas"] {
  --season-rgb: 240, 70, 92;
  --season-accent: #f0465c;
  --season-hot-rgb: 255, 210, 122;
  --season-hot: #ffd27a;
  --season-deep: #b91c3c;
  --season-alt-rgb: 52, 211, 123;
  --season-glow: rgba(52, 211, 123, .1);
}

html[data-season] body::after {
  content: '';
  position: fixed;
  inset: auto 0 0 0;
  height: 38vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(120% 100% at 50% 100%, var(--season-glow), transparent 70%);
}

.s95-season-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147482000;
  overflow: hidden;
}

html.s95-season-off .s95-season-layer,
html.s95-season-off body::after { display: none; }

.s95-season-toggle {
  position: fixed;
  left: 14px;
  bottom: 44px;
  z-index: 2147482001;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(var(--season-rgb), .35);
  border-radius: 999px;
  background: rgba(8, 8, 10, .78);
  color: var(--season-hot);
  font: 600 11px/1 system-ui, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: .72;
  transition: opacity .2s;
}
.s95-season-toggle:hover, .s95-season-toggle:focus-visible { opacity: 1; outline: none; box-shadow: 0 0 0 3px rgba(var(--season-rgb), .25); }

.s95-web {
  position: absolute;
  top: 0;
  width: clamp(90px, 12vw, 170px);
  height: auto;
  opacity: .32;
  color: #d8d4e8;
}
.s95-web.left { left: 0; }
.s95-web.right { right: 0; transform: scaleX(-1); }

.s95-bat {
  position: absolute;
  left: -60px;
  width: 34px;
  color: #1a1024;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, .55));
  animation: s95-bat-fly var(--duration, 14s) linear forwards;
}
.s95-bat svg { display: block; width: 100%; animation: s95-bat-flap .32s ease-in-out infinite alternate; transform-origin: center; }
@keyframes s95-bat-fly {
  0% { transform: translate(0, 0); }
  25% { transform: translate(28vw, -4vh); }
  50% { transform: translate(55vw, 3vh); }
  75% { transform: translate(82vw, -3vh); }
  100% { transform: translate(115vw, 1vh); }
}
@keyframes s95-bat-flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }

.s95-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  display: flex;
  justify-content: space-around;
  padding: 0 1vw;
  background: linear-gradient(transparent 6px, transparent 6px);
}
.s95-lights::before {
  content: '';
  position: absolute;
  inset: 4px 0 auto;
  height: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0 0 50% 50%;
}
.s95-lights i {
  position: relative;
  top: 9px;
  width: 7px;
  height: 11px;
  border-radius: 50% 50% 45% 45%;
  background: var(--bulb);
  box-shadow: 0 0 10px 2px var(--bulb);
  animation: s95-twinkle 2.4s ease-in-out infinite;
  animation-delay: var(--delay);
}
@keyframes s95-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; box-shadow: 0 0 3px 0 var(--bulb); } }

.s95-snow { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .s95-bat { display: none; }
  .s95-lights i { animation: none; }
}

body.console .s95-season-toggle { left: auto; right: 16px; bottom: 16px; }
