.storm-dark,
.storm-rain,
.storm-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  contain: strict;
}

.storm-dark {
  z-index: 90;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.4s linear;
  transform: translateZ(0);
  will-change: opacity;
}

.storm-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
}

.storm-rain {
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s linear;
  overflow: hidden;
  will-change: opacity;
}

.storm-drop {
  position: absolute;
  width: 2px;
  height: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  border-radius: 1px;
  will-change: transform;
}

.storm-flash {
  z-index: 110;
  background: var(--paper);
  opacity: 0;
  will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  .storm-rain { display: none; }
  .storm-flash { display: none; }
}