/* Think Open Christmas FX v1.0.0. Only transform-based animation; zero JS timers. */
#to-christmas-fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 8999;
  pointer-events: none !important;
  overflow: hidden;
  contain: layout style paint;
  user-select: none;
}
#to-christmas-fx, #to-christmas-fx * { box-sizing: border-box; pointer-events: none !important; }
#to-christmas-fx .to-christmas-snow { position: absolute; inset: 0; overflow: hidden; }
#to-christmas-fx .to-christmas-flake {
  display: block;
  position: absolute;
  top: -12vh;
  line-height: 1;
  font-weight: 400;
  font-family: Georgia, 'Times New Roman', serif;
  color: #90bdd9;
  text-shadow: 0 0 2px rgba(33, 81, 115, .22);
  opacity: .78;
  animation: to-christmas-snowfall 18s linear infinite;
}
@keyframes to-christmas-snowfall {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(var(--to-drift, 20px), 124vh, 0) rotate(170deg); }
}
#to-christmas-fx .to-christmas-flake:nth-child(1) { left: 55%; font-size: 18px; animation-duration: 18s; animation-delay: -14s; --to-drift: 46px; opacity: 0.42; }
#to-christmas-fx .to-christmas-flake:nth-child(2) { left: 75%; font-size: 12px; animation-duration: 27s; animation-delay: -14s; --to-drift: -21px; opacity: 0.78; }
#to-christmas-fx .to-christmas-flake:nth-child(3) { left: 59%; font-size: 14px; animation-duration: 26s; animation-delay: -27s; --to-drift: 11px; opacity: 0.78; }
#to-christmas-fx .to-christmas-flake:nth-child(4) { left: 67%; font-size: 14px; animation-duration: 17s; animation-delay: -27s; --to-drift: -52px; opacity: 0.69; }
#to-christmas-fx .to-christmas-flake:nth-child(5) { left: 71%; font-size: 11px; animation-duration: 15s; animation-delay: -22s; --to-drift: -10px; opacity: 0.78; }
#to-christmas-fx .to-christmas-flake:nth-child(6) { left: 79%; font-size: 14px; animation-duration: 18s; animation-delay: -16s; --to-drift: 51px; opacity: 0.42; }
#to-christmas-fx .to-christmas-flake:nth-child(7) { left: 19%; font-size: 15px; animation-duration: 26s; animation-delay: -22s; --to-drift: -14px; opacity: 0.51; }
#to-christmas-fx .to-christmas-flake:nth-child(8) { left: 63%; font-size: 15px; animation-duration: 27s; animation-delay: -26s; --to-drift: 11px; opacity: 0.6; }
#to-christmas-fx .to-christmas-flake:nth-child(9) { left: 15%; font-size: 14px; animation-duration: 17s; animation-delay: -4s; --to-drift: -44px; opacity: 0.84; }
#to-christmas-fx .to-christmas-flake:nth-child(10) { left: 7%; font-size: 14px; animation-duration: 23s; animation-delay: -1s; --to-drift: -18px; opacity: 0.69; }
#to-christmas-fx .to-christmas-flake:nth-child(11) { left: 95%; font-size: 15px; animation-duration: 18s; animation-delay: -13s; --to-drift: -20px; opacity: 0.84; }
#to-christmas-fx .to-christmas-flake:nth-child(12) { left: 31%; font-size: 13px; animation-duration: 28s; animation-delay: -24s; --to-drift: 14px; opacity: 0.51; }
#to-christmas-fx .to-christmas-flake:nth-child(13) { left: 27%; font-size: 10px; animation-duration: 21s; animation-delay: -8s; --to-drift: 28px; opacity: 0.42; }
#to-christmas-fx .to-christmas-flake:nth-child(14) { left: 3%; font-size: 12px; animation-duration: 23s; animation-delay: -23s; --to-drift: -4px; opacity: 0.6; }
#to-christmas-fx .to-christmas-flake:nth-child(15) { left: 43%; font-size: 14px; animation-duration: 24s; animation-delay: -15s; --to-drift: 43px; opacity: 0.42; }
#to-christmas-fx .to-christmas-flake:nth-child(16) { left: 87%; font-size: 17px; animation-duration: 17s; animation-delay: -4s; --to-drift: 47px; opacity: 0.42; }
#to-christmas-fx .to-christmas-flake:nth-child(17) { left: 47%; font-size: 11px; animation-duration: 26s; animation-delay: -4s; --to-drift: -14px; opacity: 0.78; }
#to-christmas-fx .to-christmas-flake:nth-child(18) { left: 91%; font-size: 11px; animation-duration: 23s; animation-delay: -7s; --to-drift: 43px; opacity: 0.69; }
#to-christmas-fx .to-christmas-flake:nth-child(19) { left: 83%; font-size: 11px; animation-duration: 29s; animation-delay: -18s; --to-drift: -45px; opacity: 0.84; }
#to-christmas-fx .to-christmas-flake:nth-child(20) { left: 39%; font-size: 15px; animation-duration: 20s; animation-delay: -10s; --to-drift: 49px; opacity: 0.6; }
#to-christmas-fx .to-christmas-flake:nth-child(21) { left: 23%; font-size: 17px; animation-duration: 24s; animation-delay: -6s; --to-drift: 16px; opacity: 0.78; }
#to-christmas-fx .to-christmas-flake:nth-child(22) { left: 35%; font-size: 10px; animation-duration: 18s; animation-delay: -19s; --to-drift: 7px; opacity: 0.69; }
#to-christmas-fx .to-christmas-flake:nth-child(23) { left: 11%; font-size: 15px; animation-duration: 23s; animation-delay: -11s; --to-drift: 39px; opacity: 0.69; }
#to-christmas-fx .to-christmas-flake:nth-child(24) { left: 51%; font-size: 13px; animation-duration: 21s; animation-delay: -24s; --to-drift: 48px; opacity: 0.84; }

/* A single slow, compositor-friendly sleigh; the deer are not independently animated. */
#to-christmas-fx .to-christmas-flyer {
  position: absolute;
  top: 12vh;
  left: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  line-height: 1.2;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 26px;
  opacity: .93;
  animation: to-christmas-fly 38s linear infinite;
  animation-delay: -9s;
}
#to-christmas-fx .to-christmas-sleigh { position: relative; padding-top: 7px; padding-left: 5px; }
#to-christmas-fx .to-christmas-santa { position: absolute; left: 9px; top: -13px; font-size: 22px; }
#to-christmas-fx .to-christmas-sled { display: block; font-size: 28px; }
@keyframes to-christmas-fly {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-100vw - 280px), -34px, 0); }
}
/* Completely static holiday lights: no blinking / repainting animation. */
#to-christmas-fx .to-christmas-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg, #d95768 0 20px, #66b987 20px 40px,
    #edc765 40px 60px, #76b8dc 60px 80px
  );
  opacity: .75;
}
#to-christmas-fx.to-christmas-paused .to-christmas-flake,
#to-christmas-fx.to-christmas-paused .to-christmas-flyer {
  animation-play-state: paused !important;
}
@media (max-width: 767px) {
  #to-christmas-fx .to-christmas-flyer { font-size: 20px; animation-duration: 46s; }
  #to-christmas-fx .to-christmas-santa { font-size: 17px; top: -10px; }
  #to-christmas-fx .to-christmas-sled { font-size: 22px; }
  #to-christmas-fx .to-christmas-lights { height: 2px; }
}
@media (prefers-reduced-motion: reduce), print {
  #to-christmas-fx { display: none !important; }
}
