.confetti_container {
  position: relative;
  overflow: hidden;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.layer-back  { z-index: 1; }
.content     { position: relative; z-index: 5; }
.layer-front { z-index: 10; }

.confetti {
  position: absolute;
  opacity: 0.9;
  border-radius: 2px;
  animation: fall linear forwards;
  transform: rotate(var(--rotation-start));
  will-change: transform;
}

@keyframes fall {
  to {
    transform: translateY(var(--fall-distance)) rotate(var(--rotation-end));
  }
}
