/* Decorations inserted by winter-motion.js. They exist only with JS and
   prefers-reduced-motion: no-preference; content never depends on them. */
.winter-snow,
.winter-sparkles {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}
.winter-sparkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--winter-sparkle-size, 16px);
  height: var(--winter-sparkle-size, 16px);
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe6 0 7%, #ffe4a7 14%, rgb(255 224 155 / 42%) 32%, transparent 70%);
}
.winter-sparkle::after {
  content: "";
  position: absolute;
  inset: 24%;
  background: #fff7d9;
  clip-path: polygon(50% 0, 59% 40%, 100% 50%, 59% 59%, 50% 100%, 40% 59%, 0 50%, 40% 40%);
}
.winter-snow { animation: winter-fade-in 800ms ease both; }

/* Small glows sit over existing lamps in the artwork. The bitmap's size,
   crop, mask and stacking order are copied by winter-motion.js. */
.winter-lights { position: absolute; display: block; overflow: clip; pointer-events: none; }
.winter-light {
  position: absolute;
  display: block;
  width: var(--winter-light-size, 24px);
  height: var(--winter-light-size, 24px);
  translate: -50% -50%;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, #fffbe8 0 5%, #ffe5a9 11%, rgb(255 197 92 / 60%) 25%, rgb(255 186 73 / 20%) 44%, transparent 72%);
}
.winter-lights[hidden], .winter-light[hidden] { display: none; }

@keyframes winter-fade-in { from { opacity: 0; } }
@keyframes winter-twinkle { 0%, 100% { opacity: .35; scale: .7; } 50% { opacity: 1; scale: 1; } }

/* Decorative snowflakes drift and turn slowly (reference: ny-float / ny-sway). */
@keyframes winter-drift { from { translate: 0 -6px; rotate: -4deg; } to { translate: 0 6px; rotate: 4deg; } }
@media (prefers-reduced-motion: no-preference) {
  .winter-motion :is([data-winter-drift], .winter-offers__snowflake, .winter-stories__snowflake) { animation: winter-drift 6.5s ease-in-out infinite alternate; }
  .winter-sparkle { animation: winter-twinkle 3.2s cubic-bezier(.45, 0, .55, 1) var(--winter-phase, 0s) infinite; }
}
/* A paused loop keeps its phase: off screen or in a hidden tab. */
.is-winter-paused,
.is-winter-paused > *,
.is-winter-paused::before,
.is-winter-paused::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce), print {
  .winter-snow, .winter-sparkles, .winter-lights { display: none; }
}
/* Snow in the gallery and team sections falls behind their content. */
.winter-gallery > .winter-snow,
.winter-team > .winter-snow { z-index: 0; }
.winter-gallery > :is(.winter-gallery__intro, .winter-gallery__stage),
.winter-team > .winter-team__intro { position: relative; z-index: 1; }
