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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bc {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bc__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bc__emoji {
  display: inline-block;
  font-size: 24px;
  transform: scale(1);
}

.bc__burst {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(#2f6df6 40%, transparent 41%) 50% 4%/6px 6px no-repeat, radial-gradient(#2f6df6 40%, transparent 41%) 96% 50%/6px 6px no-repeat, radial-gradient(#2f6df6 40%, transparent 41%) 50% 96%/6px 6px no-repeat, radial-gradient(#2f6df6 40%, transparent 41%) 4% 50%/6px 6px no-repeat;
  opacity: 0;
  transform: scale(0.4);
}

.bc__count {
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  color: #17141a;
}

.bc.is-play .bc__emoji {
  animation: bc-emoji-jelly 600ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.bc.is-play .bc__burst {
  animation: bc-burst 600ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes bc-emoji {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.5);
  }
  60% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes bc-emoji-jelly {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scaleX(1.35) scaleY(0.8);
  }
  60% {
    transform: scaleX(0.85) scaleY(1.15);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes bc-burst {
  0% {
    opacity: 1;
    transform: scale(0.4);
  }
  70% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bc.is-play .bc__emoji, .bc.is-play .bc__burst {
    animation: none !important;
  }
}
