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

.thumb {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 2.6vw, 12px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.thumb__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.thumb__icon {
  font-size: clamp(26px, 7.2vw, 32px);
  display: inline-block;
  transform: scale(1) rotate(0deg);
  filter: grayscale(1) opacity(0.55);
  transition: filter 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.thumb__label {
  position: relative;
  font-weight: 600;
  font-size: clamp(15px, 4.2vw, 18px);
  line-height: 1;
  font-family: inherit;
  color: #17141a;
}
.thumb__fx {
  position: absolute;
  top: 50%;
  left: 0;
  pointer-events: none;
}
.thumb__spark {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.thumb__spark--star {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: #2f6df6;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.thumb__spark--dot {
  background: #2f6df6;
  border-radius: 50%;
}
.thumb__input:checked ~ .thumb__icon {
  filter: grayscale(0) opacity(1);
  animation: thumb-bounce 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.thumb.is-demo .thumb__icon {
  animation: thumb-bounce-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes thumb-bounce {
  0% {
    transform: scale(1) rotate(0deg);
  }
  30% {
    transform: scale(1.25) rotate(-20deg);
  }
  60% {
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
@keyframes thumb-bounce-loop {
  0%, 15% {
    filter: grayscale(1) opacity(0.55);
    transform: scale(1) rotate(0deg);
  }
  40% {
    filter: grayscale(0) opacity(1);
    transform: scale(1.25) rotate(-20deg);
  }
  60% {
    transform: scale(1.1) rotate(5deg);
  }
  80%, 100% {
    filter: grayscale(1) opacity(0.55);
    transform: scale(1) rotate(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .thumb__icon {
    transition: filter 1ms;
  }
  .thumb__input:checked ~ .thumb__icon {
    animation: none !important;
  }
  .thumb.is-demo .thumb__icon {
    animation: none !important;
  }
  .thumb__spark {
    display: none;
  }
}
