html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.caption {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff7e6;
  font-weight: 700;
  font-size: clamp(16px, 5vw, 22px);
  line-height: 1;
  font-family: inherit;
}

.p {
  position: absolute;
  top: -10%;
  width: 7px;
  height: 11px;
  background: #fff7e6;
  opacity: 0.95;
  animation: confetti 2400ms linear infinite;
  animation-delay: calc(var(--i) * -0.2s);
}

.p:nth-child(3n) {
  background: #2f6df6;
}

.p:nth-child(1) {
  left: 31%;
  animation-duration: 2700ms;
}

.p:nth-child(2) {
  left: 62%;
  animation-duration: 3000ms;
}

.p:nth-child(3) {
  left: 93%;
  animation-duration: 3300ms;
}

.p:nth-child(4) {
  left: 30%;
  animation-duration: 3600ms;
}

.p:nth-child(5) {
  left: 61%;
  animation-duration: 2400ms;
}

.p:nth-child(6) {
  left: 92%;
  animation-duration: 2700ms;
}

.p:nth-child(7) {
  left: 29%;
  animation-duration: 3000ms;
}

.p:nth-child(8) {
  left: 60%;
  animation-duration: 3300ms;
}

.p:nth-child(9) {
  left: 91%;
  animation-duration: 3600ms;
}

.p:nth-child(10) {
  left: 28%;
  animation-duration: 2400ms;
}

.p:nth-child(11) {
  left: 59%;
  animation-duration: 2700ms;
}

.p:nth-child(12) {
  left: 90%;
  animation-duration: 3000ms;
}

.p:nth-child(13) {
  left: 27%;
  animation-duration: 3300ms;
}

.p:nth-child(14) {
  left: 58%;
  animation-duration: 3600ms;
}

.p:nth-child(15) {
  left: 89%;
  animation-duration: 2400ms;
}

.p:nth-child(16) {
  left: 26%;
  animation-duration: 2700ms;
}

.p:nth-child(17) {
  left: 57%;
  animation-duration: 3000ms;
}

.p:nth-child(18) {
  left: 88%;
  animation-duration: 3300ms;
}

.p:nth-child(19) {
  left: 25%;
  animation-duration: 3600ms;
}

.p:nth-child(20) {
  left: 56%;
  animation-duration: 2400ms;
}

.p:nth-child(21) {
  left: 87%;
  animation-duration: 2700ms;
}

.p:nth-child(22) {
  left: 24%;
  animation-duration: 3000ms;
}

.p:nth-child(23) {
  left: 55%;
  animation-duration: 3300ms;
}

.p:nth-child(24) {
  left: 86%;
  animation-duration: 3600ms;
}

.p:nth-child(25) {
  left: 23%;
  animation-duration: 2400ms;
}

.p:nth-child(26) {
  left: 54%;
  animation-duration: 2700ms;
}

.p:nth-child(2) {
  --spin: 300deg;
}

.p:nth-child(1) {
  --spin: -300deg;
}

.p:nth-child(4) {
  --spin: 360deg;
}

.p:nth-child(3) {
  --spin: -360deg;
}

.p:nth-child(6) {
  --spin: 420deg;
}

.p:nth-child(5) {
  --spin: -420deg;
}

.p:nth-child(8) {
  --spin: 480deg;
}

.p:nth-child(7) {
  --spin: -480deg;
}

.p:nth-child(10) {
  --spin: 540deg;
}

.p:nth-child(9) {
  --spin: -540deg;
}

.p:nth-child(12) {
  --spin: 240deg;
}

.p:nth-child(11) {
  --spin: -240deg;
}

.p:nth-child(14) {
  --spin: 300deg;
}

.p:nth-child(13) {
  --spin: -300deg;
}

.p:nth-child(16) {
  --spin: 360deg;
}

.p:nth-child(15) {
  --spin: -360deg;
}

.p:nth-child(18) {
  --spin: 420deg;
}

.p:nth-child(17) {
  --spin: -420deg;
}

.p:nth-child(20) {
  --spin: 480deg;
}

.p:nth-child(19) {
  --spin: -480deg;
}

.p:nth-child(22) {
  --spin: 540deg;
}

.p:nth-child(21) {
  --spin: -540deg;
}

.p:nth-child(24) {
  --spin: 240deg;
}

.p:nth-child(23) {
  --spin: -240deg;
}

.p:nth-child(26) {
  --spin: 300deg;
}

.p:nth-child(25) {
  --spin: -300deg;
}

@keyframes confetti {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.95;
  }
  100% {
    transform: translateY(360px) rotate(var(--spin, 360deg));
    opacity: 0.85;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p {
    animation: none;
    opacity: 0.3;
    top: 45%;
  }
}
