/* Seasonal feature: NORAD Tracks Santa. Original CSS and SVG only. No libraries, no images, no trackers.
   Loaded only on this story page. Respects prefers-reduced-motion and has a pause control. */
.santa-scene { position: relative; margin: 0 0 1.25rem; border-radius: 10px; overflow: hidden; background: #0b1a2b; isolation: isolate; }
.santa-scene .scene-svg { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.santa-scene figcaption { background: #0b1a2b; color: #e6edf5; padding: .55rem .9rem; font-family: var(--font-ui); font-size: .85rem; }

/* Twinkling stars */
.santa-scene .st { fill: #fff; animation: santa-twinkle 3.6s ease-in-out infinite; }
.santa-scene .st.b { animation-duration: 2.7s; animation-delay: -1.1s; }
.santa-scene .st.c { animation-duration: 4.8s; animation-delay: -2.3s; }
.santa-scene .st.d { animation-duration: 3.1s; animation-delay: -.4s; fill: #ffe9a8; }
@keyframes santa-twinkle { 0%, 100% { opacity: .95; } 50% { opacity: .25; } }

/* Northern lights */
.santa-scene .aur { mix-blend-mode: screen; }
.santa-scene .aur-1 { animation: santa-sway 14s ease-in-out infinite alternate; }
.santa-scene .aur-2 { animation: santa-sway 19s ease-in-out -6s infinite alternate-reverse; }
.santa-scene .aur-3 { animation: santa-sway 23s ease-in-out -11s infinite alternate; }
@keyframes santa-sway { 0% { transform: translateX(-34px); opacity: .55; } 50% { opacity: .95; } 100% { transform: translateX(34px); opacity: .6; } }

/* Cabin window glow */
.santa-scene .glow { animation: santa-glow 4s ease-in-out infinite; }
@keyframes santa-glow { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }

/* Sleigh glides across the sky; inner group bobs; nose pulses */
.santa-scene .fly { animation: santa-fly 30s linear infinite; }
.santa-scene .bob { animation: santa-bob 2.4s ease-in-out infinite alternate; }
.santa-scene .nose { animation: santa-nose 1.6s ease-in-out infinite; }
.santa-scene .spark { animation: santa-twinkle 1.4s ease-in-out infinite; fill: #ffe9a8; }
.santa-scene .spark.b { animation-delay: -.5s; }
.santa-scene .spark.c { animation-delay: -.9s; }
@keyframes santa-fly {
  0%   { transform: translate(-460px, 250px) rotate(-3deg); }
  35%  { transform: translate(380px, 120px) rotate(-5deg); }
  70%  { transform: translate(900px, 150px) rotate(2deg); }
  100% { transform: translate(1560px, 70px) rotate(-3deg); }
}
@keyframes santa-bob { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
@keyframes santa-nose { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Falling snow: three tiled layers moved by exactly one tile so the loop never jumps */
.santa-scene .snow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.santa-scene .snow::before, .santa-scene .snow::after, .santa-scene .snow i {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--tile) * -1);
  background-repeat: repeat; background-size: var(--tile) var(--tile);
  animation: santa-fall var(--speed) linear infinite; will-change: transform;
}
.santa-scene .snow::before { --tile: 170px; --speed: 11s; opacity: .95;
  background-image: radial-gradient(2.4px 2.4px at 20px 30px, #fff 98%, transparent), radial-gradient(2px 2px at 95px 120px, #fff 98%, transparent), radial-gradient(2.8px 2.8px at 140px 60px, #fff 98%, transparent), radial-gradient(1.8px 1.8px at 55px 150px, #fff 98%, transparent); }
.santa-scene .snow::after { --tile: 260px; --speed: 17s; opacity: .8;
  background-image: radial-gradient(3.2px 3.2px at 40px 50px, #fff 98%, transparent), radial-gradient(2.6px 2.6px at 180px 200px, #fff 98%, transparent), radial-gradient(3px 3px at 230px 90px, #fff 98%, transparent), radial-gradient(2.2px 2.2px at 110px 140px, #fff 98%, transparent); }
.santa-scene .snow i { --tile: 340px; --speed: 26s; opacity: .65;
  background-image: radial-gradient(4px 4px at 60px 80px, #fff 98%, transparent), radial-gradient(3.6px 3.6px at 250px 250px, #fff 98%, transparent), radial-gradient(4.2px 4.2px at 310px 140px, #fff 98%, transparent); }
@keyframes santa-fall { from { transform: translateY(0); } to { transform: translateY(var(--tile)); } }

/* Pause control (WCAG 2.2.2) */
.santa-pause { position: absolute; left: .6rem; top: .6rem; z-index: 3; min-height: 44px; min-width: 44px; padding: .4rem .8rem;
  font: 700 .85rem/1 var(--font-ui); color: #0b1a2b; background: #fff; border: 2px solid #0b1a2b; border-radius: 22px; cursor: pointer; }
.santa-pause:hover { background: #f6f3ec; }
.santa-pause:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.santa-scene.is-paused *, .santa-scene.is-paused *::before, .santa-scene.is-paused *::after { animation-play-state: paused !important; }

/* Countdown chip and call-to-action */
.santa-countdown { font-family: var(--font-ui); font-weight: 700; color: #0b1a2b; background: #fff3d6; border: 1px solid #8a5a10; border-radius: 999px;
  display: inline-block; padding: .35rem .9rem; margin: 0 0 1rem; }
.santa-cta { margin: 1.5rem 0; padding: 1.1rem 1.2rem 1.2rem; background: #0b1a2b; color: #fff; border: 3px solid #f2a93b; border-radius: 12px; text-align: center; font-family: var(--font-ui); }
.santa-cta p { margin: 0 0 .75rem; color: #e6edf5; font-size: 1rem; }
.prose .santa-cta a.btn, .santa-cta a.btn { display: inline-block; background: #f2a93b; color: #0b1a2b; border: 2px solid #fff; border-radius: 999px; padding: .8rem 1.6rem; font-size: 1.1rem; font-weight: 800; text-decoration: none; min-height: 48px; }
.prose .santa-cta a.btn:hover, .santa-cta a.btn:hover { background: #fff; color: #0b1a2b; }
.prose .santa-cta a.btn:focus-visible, .santa-cta a.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.santa-cta .small { margin: .75rem 0 0; font-size: .85rem; color: #c9d6e4; }
.santa-cta .small a { color: #fff; }
.santa-sources { font-size: .95rem; }
.santa-sources li { margin-bottom: .35rem; }

@media (max-width: 600px) {
  .santa-scene .scene-svg { aspect-ratio: 4 / 3; }
  .santa-pause { left: .4rem; top: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .santa-scene *, .santa-scene *::before, .santa-scene *::after { animation: none !important; }
  .santa-scene .fly { transform: translate(560px, 150px) rotate(-4deg); }
  .santa-pause { display: none; }
}
@media (forced-colors: active) { .santa-cta { border-color: CanvasText; } .santa-cta a.btn { border: 2px solid ButtonText; } }
@media print { .santa-scene .snow, .santa-pause { display: none; } }
/* Static render used only to make the share image */
.santa-scene.is-still * { animation-play-state: paused !important; }
.santa-scene .scene-art { position: relative; }
