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);
}

.pb {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
}

.pb__field {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(110px, 32vh, 160px);
  border: 3px solid #fff7e6;
  border-radius: 16px;
}

.pb__cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 3px solid #fff7e6;
  border-radius: 50%;
  will-change: transform;
}

.pb__p {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  opacity: 0;
  will-change: transform, opacity;
}

.pb__p--dot {
  background: var(--pc, #ff9ebb);
  border-radius: 50%;
}

.pb__p--ring {
  box-sizing: border-box;
  background: transparent;
  border: 3px solid var(--pc, #4cd4a6);
  border-radius: 50%;
}

.pb__p--gem {
  background: var(--pc, #b9a0ff);
  transform: rotate(45deg);
}

.pb__hint {
  margin: 0;
  color: #fff7e6;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
}

.pb.is-demo .pb__cursor {
  animation: pbCursor 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.pb.is-demo .pb__p {
  animation: pbFly 2s ease-out infinite;
}

@keyframes pbCursor {
  0%, 4% {
    transform: translate3d(24px, 56px, 0);
  }
  46%, 52% {
    transform: translate3d(236px, 42px, 0);
  }
  88%, 100% {
    transform: translate3d(24px, 56px, 0);
  }
}
.pb.is-demo .pb__p:nth-child(2) {
  animation-delay: 0ms;
  animation-name: pbA;
}

.pb.is-demo .pb__p:nth-child(3) {
  animation-delay: 90ms;
  animation-name: pbB;
}

.pb.is-demo .pb__p:nth-child(4) {
  animation-delay: 180ms;
  animation-name: pbC;
}

.pb.is-demo .pb__p:nth-child(5) {
  animation-delay: 250ms;
  animation-name: pbD;
}

.pb.is-demo .pb__p:nth-child(6) {
  animation-delay: 1000ms;
  animation-name: pbE;
}

.pb.is-demo .pb__p:nth-child(7) {
  animation-delay: 1090ms;
  animation-name: pbF;
}

.pb.is-demo .pb__p:nth-child(8) {
  animation-delay: 1170ms;
  animation-name: pbG;
}

.pb.is-demo .pb__p:nth-child(9) {
  animation-delay: 1250ms;
  animation-name: pbH;
}

@keyframes pbA {
  0% {
    transform: translate3d(60px, 56px, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  62%, 100% {
    transform: translate3d(96px, 20px, 0) rotate(160deg) scale(0.15);
    opacity: 0;
  }
}
@keyframes pbB {
  0% {
    transform: translate3d(100px, 48px, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  62%, 100% {
    transform: translate3d(140px, 92px, 0) rotate(200deg) scale(0.15);
    opacity: 0;
  }
}
@keyframes pbC {
  0% {
    transform: translate3d(140px, 54px, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  62%, 100% {
    transform: translate3d(176px, 18px, 0) rotate(140deg) scale(0.15);
    opacity: 0;
  }
}
@keyframes pbD {
  0% {
    transform: translate3d(180px, 46px, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  62%, 100% {
    transform: translate3d(214px, 86px, 0) rotate(220deg) scale(0.15);
    opacity: 0;
  }
}
@keyframes pbE {
  0% {
    transform: translate3d(220px, 46px, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  62%, 100% {
    transform: translate3d(186px, 90px, 0) rotate(180deg) scale(0.15);
    opacity: 0;
  }
}
@keyframes pbF {
  0% {
    transform: translate3d(180px, 52px, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  62%, 100% {
    transform: translate3d(146px, 14px, 0) rotate(210deg) scale(0.15);
    opacity: 0;
  }
}
@keyframes pbG {
  0% {
    transform: translate3d(120px, 50px, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  62%, 100% {
    transform: translate3d(84px, 94px, 0) rotate(150deg) scale(0.15);
    opacity: 0;
  }
}
@keyframes pbH {
  0% {
    transform: translate3d(76px, 52px, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  62%, 100% {
    transform: translate3d(40px, 16px, 0) rotate(190deg) scale(0.15);
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .pb {
    gap: 8px;
  }
  .pb__field {
    height: clamp(96px, 28vh, 130px);
  }
  .pb__p {
    width: 8px;
    height: 8px;
  }
  .pb__p--ring {
    border-width: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pb.is-demo .pb__cursor,
  .pb.is-demo .pb__p {
    animation: none !important;
  }
  .pb.is-demo .pb__cursor {
    transform: translate3d(120px, 48px, 0) !important;
  }
  .pb.is-demo .pb__p:nth-child(2) {
    transform: translate3d(60px, 84px, 0) rotate(20deg) scale(1) !important;
    opacity: 1 !important;
  }
  .pb.is-demo .pb__p:nth-child(4) {
    transform: translate3d(112px, 92px, 0) rotate(-14deg) scale(1) !important;
    opacity: 1 !important;
  }
  .pb.is-demo .pb__p:nth-child(6) {
    transform: translate3d(164px, 88px, 0) rotate(30deg) scale(1) !important;
    opacity: 1 !important;
  }
  .pb.is-demo .pb__p:nth-child(8) {
    transform: translate3d(206px, 84px, 0) rotate(-24deg) scale(1) !important;
    opacity: 1 !important;
  }
}
