.hero-snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

#top .hero-content {
  z-index: 1;
}

.hero-snow > span {
  position: absolute;
  top: -6px;
  left: var(--left);
  width: var(--size);
  height: calc(100% + 12px);
  opacity: var(--opacity);
  animation: cafe440-snowfall var(--duration) linear var(--delay) infinite;
}

.hero-snow > span::before {
  content: "";
  display: block;
  width: 100%;
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 25%, rgb(255 255 255 / 0.85) 49%, transparent 77%);
}

@keyframes cafe440-snowfall {
  0% { transform: translate(0, 0); }
  45% { transform: translate(var(--drift), 45%); }
  100% { transform: translate(var(--land), 100%); }
}

.hero-snow.is-paused > span {
  animation-play-state: paused;
}

.hero-snow-toggle {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.hero-snow-toggle::before {
  content: "";
  box-sizing: border-box;
  grid-area: 1 / 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.46);
  background: rgb(16 36 24 / 0.8);
}

.hero-snow-toggle::after {
  content: "";
  box-sizing: border-box;
  grid-area: 1 / 1;
  width: 8px;
  height: 10px;
  border-inline: 3px solid currentColor;
}

.hero-snow-toggle.is-paused::after {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 5px solid transparent;
  border-right: 0;
  border-left: 8px solid currentColor;
}

@media (max-width: 700px) {
  .hero-snow > span:nth-child(n + 19) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-snow, .hero-snow-toggle { display: none; }
  .hero-snow > span { animation: none; }
}
