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

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  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: #17141a;
  font-weight: 700;
  font-size: clamp(16px, 5vw, 22px);
  line-height: 1;
  font-family: inherit;
}

.p {
  position: absolute;
  top: -10%;
  width: 10px;
  height: 6px;
  border-radius: 50%;
  background: #2f6df6;
  opacity: 0;
  animation: petal 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.28s);
}

.p:nth-child(1) {
  left: 47%;
  animation-duration: 3.2s;
}

.p:nth-child(2) {
  left: 94%;
  animation-duration: 3.6s;
}

.p:nth-child(3) {
  left: 46%;
  animation-duration: 4s;
}

.p:nth-child(4) {
  left: 93%;
  animation-duration: 4.4s;
}

.p:nth-child(5) {
  left: 45%;
  animation-duration: 2.8s;
}

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

.p:nth-child(7) {
  left: 44%;
  animation-duration: 3.6s;
}

.p:nth-child(8) {
  left: 91%;
  animation-duration: 4s;
}

.p:nth-child(9) {
  left: 43%;
  animation-duration: 4.4s;
}

.p:nth-child(10) {
  left: 90%;
  animation-duration: 2.8s;
}

.p:nth-child(11) {
  left: 42%;
  animation-duration: 3.2s;
}

.p:nth-child(12) {
  left: 89%;
  animation-duration: 3.6s;
}

.p:nth-child(13) {
  left: 41%;
  animation-duration: 4s;
}

.p:nth-child(14) {
  left: 88%;
  animation-duration: 4.4s;
}

.p:nth-child(15) {
  left: 40%;
  animation-duration: 2.8s;
}

.p:nth-child(16) {
  left: 87%;
  animation-duration: 3.2s;
}

.p:nth-child(17) {
  left: 39%;
  animation-duration: 3.6s;
}

.p:nth-child(18) {
  left: 86%;
  animation-duration: 4s;
}

@keyframes petal {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  30% {
    transform: translate(18px, 110px) rotate(120deg);
  }
  60% {
    transform: translate(-14px, 240px) rotate(240deg);
  }
  100% {
    transform: translate(10px, 380px) rotate(360deg);
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p {
    animation: none;
    opacity: 0.3;
    top: 45%;
  }
}
