/* Soft snowfall over the homepage artwork, under the header and dialogs. */
body[data-season="winter"] .season-atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 14;
  pointer-events: none;
  user-select: none;
}

.season-snowflake {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff9f0;
  box-shadow: 0 0 5px #fff9f06b;
  opacity: var(--brightness);
  animation: season-snowfall var(--fall-time) var(--phase) linear infinite;
}

.season-paused .season-snowflake {
  animation-play-state: paused;
}

@keyframes season-snowfall {
  0% { transform: translate3d(0, -8px, 0); opacity: 0; }
  10% { opacity: var(--brightness); }
  90% { opacity: var(--brightness); }
  100% { transform: translate3d(var(--drift), calc(100vh + 22px), 0); opacity: 0; }
}

@media (max-width: 700px) {
  .season-snowflake:nth-child(n + 23) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-season="winter"] .season-atmosphere { display: none; }
  .season-snowflake { animation: none; }
}
