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

.burst {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 2.6vw, 12px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.burst__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.burst__icon {
  position: relative;
  width: 40px;
  height: 36px;
  flex: none;
}
.burst__heart {
  position: absolute;
  inset: 8px;
  background: #17141a;
  clip-path: path("M12 22 2 13C-1 10 0 5 4 4 7 3 10 5 12 8 14 5 17 3 20 4 24 5 25 10 22 13Z");
  transform: scale(0.5);
  opacity: 0.5;
  transition: transform 600ms ease-out, opacity 600ms ease-out;
}
.burst__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #17141a;
  opacity: 0;
  will-change: transform, opacity;
}
.burst__label {
  font-weight: 600;
  font-size: clamp(15px, 4.2vw, 18px);
  line-height: 1;
  font-family: inherit;
  color: #17141a;
}
.burst__input:checked ~ .burst__icon .burst__heart {
  transform: scale(1);
  opacity: 1;
}
.burst.is-demo .burst__icon .burst__heart {
  animation: burst-heart-loop 2s ease-out infinite;
}

@keyframes burst-heart-loop {
  0%, 20% {
    transform: scale(0.5);
    opacity: 0.5;
  }
  35%, 80% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.5);
    opacity: 0.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .burst__heart {
    transition: opacity 1ms;
  }
  .burst__dot {
    display: none;
  }
  .burst.is-demo .burst__icon .burst__heart {
    animation: none !important;
  }
}
