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

.cb-wrap {
  position: relative;
  width: min(220px, 80vw);
  display: grid;
  place-items: center;
}

.cb-btn {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 12px;
  padding: 12px 24px;
  background: #0a4fe8;
  color: #fff7e6;
  font: 700 14px/1 -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
}

.cb-piece {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
}

.cb-piece:nth-child(2) {
  background: #2f6df6;
  --angle: 30deg;
  --dist: 86px;
  animation-delay: 40ms;
}

.cb-piece:nth-child(3) {
  background: #ffd23f;
  --angle: 60deg;
  --dist: 108px;
  animation-delay: 80ms;
}

.cb-piece:nth-child(4) {
  background: #ff4d1f;
  --angle: 90deg;
  --dist: 64px;
  animation-delay: 120ms;
}

.cb-piece:nth-child(5) {
  background: #fff7e6;
  --angle: 120deg;
  --dist: 86px;
  animation-delay: 0ms;
}

.cb-piece:nth-child(6) {
  background: #2f6df6;
  --angle: 150deg;
  --dist: 108px;
  animation-delay: 40ms;
}

.cb-piece:nth-child(7) {
  background: #ffd23f;
  --angle: 180deg;
  --dist: 64px;
  animation-delay: 80ms;
}

.cb-piece:nth-child(8) {
  background: #ff4d1f;
  --angle: 210deg;
  --dist: 86px;
  animation-delay: 120ms;
}

.cb-piece:nth-child(9) {
  background: #fff7e6;
  --angle: 240deg;
  --dist: 108px;
  animation-delay: 0ms;
}

.cb-piece:nth-child(10) {
  background: #2f6df6;
  --angle: 270deg;
  --dist: 64px;
  animation-delay: 40ms;
}

.cb-piece:nth-child(11) {
  background: #ffd23f;
  --angle: 300deg;
  --dist: 86px;
  animation-delay: 80ms;
}

.cb-piece:nth-child(12) {
  background: #ff4d1f;
  --angle: 330deg;
  --dist: 108px;
  animation-delay: 120ms;
}

.cb-piece:nth-child(13) {
  background: #fff7e6;
  --angle: 360deg;
  --dist: 64px;
  animation-delay: 0ms;
}

@keyframes cb-fly {
  0% {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0) scale(0.4);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--dist))) scale(1);
    opacity: 0;
  }
}
.cb-wrap.is-burst .cb-piece,
.cb-wrap.is-demo .cb-piece {
  animation: cb-fly 900ms cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cb-wrap.is-burst .cb-piece,
  .cb-wrap.is-demo .cb-piece {
    animation: none !important;
    opacity: 0 !important;
  }
}
