.celebrate-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2147483647;
}

.celebrate-piece {
  position: absolute;
  top: -24px;
  border-radius: 2px;
  opacity: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  will-change: transform, opacity;
  animation-name: celebrate-fall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}

@keyframes celebrate-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--drift, 0px), calc(100vh + 24px), 0) rotate(540deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .celebrate-piece {
    animation-duration: 0.001s !important;
  }
}
