.snow-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.raindrop {
  position: absolute;
  top: -15vh;
  width: 2px;
  height: 18px;
  border-radius: 50px;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.95),
    var(--c1),
    rgba(0,0,0,0)
  );

  box-shadow: 0 0 12px var(--glow);
  opacity: .9;

  animation:
    rain-fall var(--dur) linear var(--delay) infinite,
    rain-sway var(--sway) ease-in-out infinite;
}

.raindrop.-sm {
  height: 12px;
  opacity: .6;
}

.raindrop.-lg {
  height: 26px;
  opacity: 1;
}

@keyframes rain-fall {
  to {
    transform:
      translate3d(
        var(--drift),
        115vh,
        0
      );
  }
}

@keyframes rain-sway {
  from {
    margin-left: -4px;
  }

  to {
    margin-left: 4px;
  }
}

.firework {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;

  background:
    radial-gradient(
      circle,
      #fff 0,
      var(--fw) 45%,
      transparent 70%
    );

  animation:
    firework-burst 1.8s ease-out forwards;
}

.firework::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;

  box-shadow:
    0 -25px 0 var(--fw),
    18px -18px 0 var(--fw),
    25px 0 0 var(--fw),
    18px 18px 0 var(--fw),
    0 25px 0 var(--fw),
    -18px 18px 0 var(--fw),
    -25px 0 0 var(--fw),
    -18px -18px 0 var(--fw);
}

@keyframes firework-burst {
  0% {
    transform:
      translate(-50%,-50%)
      scale(.2);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  70% {
    transform:
      translate(-50%,-50%)
      scale(1.4);
    opacity: 1;
  }

  100% {
    transform:
      translate(-50%,-50%)
      scale(2);
    opacity: 0;
  }
}

#lightning-stage {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
}

#lightning-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .raindrop,
  .firework,
  .firework::before {
    animation: none !important;
  }
}