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

.st {
  position: relative;
  display: grid;
  place-items: center;
}

.st__count {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  min-width: 24px;
  padding: 0 8px;
  box-sizing: border-box;
  background: #fff7e6;
  color: #17141a;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  line-height: 20px;
}

.st__hit {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.st__hit:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 4px;
  border-radius: 50%;
}

.st__sticker {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(130px, 40vw, 180px);
  aspect-ratio: 1;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform: rotate(-4deg);
  transform-origin: 50% 50%;
}

.st__face {
  position: relative;
  width: 74%;
  aspect-ratio: 1;
  background: #ffd23f;
  border: 3px solid #17141a;
  border-radius: 50%;
}

.st__ear {
  position: absolute;
  top: -7%;
  width: 26%;
  aspect-ratio: 1;
  background: #ffd23f;
  border: 3px solid #17141a;
  border-radius: 50%;
  z-index: -1;
}

.st__ear--l {
  left: 4%;
}

.st__ear--r {
  right: 4%;
}

.st__eyeOpen, .st__eyeWink {
  position: absolute;
  top: 38%;
  width: 11%;
  aspect-ratio: 1;
}

.st__eyeOpen {
  background: #17141a;
  border-radius: 50%;
}

.st__eyeOpen--l {
  left: 26%;
}

.st__eyeOpen--r {
  right: 26%;
}

.st__eyeWink {
  border-top: 4px solid #17141a;
  border-radius: 50%;
  visibility: hidden;
}

.st__eyeWink--l {
  left: 26%;
}

.st__eyeWink--r {
  right: 26%;
}

.st--wink .st__eyeOpen--r {
  visibility: hidden;
}

.st--wink .st__eyeWink--r {
  visibility: visible;
}

.st__snout {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 34%;
  aspect-ratio: 1/0.8;
  background: #fff7e6;
  border: 3px solid #17141a;
  border-radius: 50%;
  transform: translateX(-50%);
}

.st__nose {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 22%;
  aspect-ratio: 1;
  background: #17141a;
  border-radius: 50%;
  transform: translateX(-50%);
}

.st__mouth {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 46%;
  height: 26%;
  border: 3px solid #17141a;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.st__cheek {
  position: absolute;
  top: 50%;
  width: 15%;
  aspect-ratio: 1;
  background: #ff9ebb;
  border-radius: 50%;
  opacity: 0.6;
}

.st__cheek--l {
  left: 5%;
}

.st__cheek--r {
  right: 5%;
}

.st__spark {
  position: absolute;
  width: 17%;
  aspect-ratio: 1;
  color: #ffd23f;
}

.st__spark--l {
  top: 2%;
  left: 0;
}

.st__spark--r {
  bottom: 4%;
  right: 0;
}

.st__spark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.st.is-demo .st__sticker {
  animation-name: stPop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.st.is-demo .st__eyeOpen--r, .st.is-demo .st__eyeWink--r {
  animation-name: stWink;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes stPop {
  0% {
    transform: rotate(-10deg) scale(0);
  }
  14% {
    transform: rotate(0deg) scale(1.16);
  }
  24% {
    transform: rotate(-4deg) scale(0.96);
  }
  32%, 58% {
    transform: rotate(-4deg) scale(1);
  }
  64% {
    transform: rotate(-4deg) scale(1.05);
  }
  72%, 100% {
    transform: rotate(-4deg) scale(1);
  }
}
@keyframes stWink {
  0%, 61% {
    visibility: hidden;
  }
  62%, 87% {
    visibility: visible;
  }
  88%, 100% {
    visibility: hidden;
  }
}
.st--nudge {
  animation: stNudge 420ms cubic-bezier(0.2, 1.7, 0.4, 1) 1;
}

@keyframes stNudge {
  0% {
    transform: rotate(-4deg) scale(0.92);
  }
  50% {
    transform: rotate(2deg) scale(1.07);
  }
  100% {
    transform: rotate(-4deg) scale(1);
  }
}
@media (max-width: 340px) {
  .st__count {
    font-size: 11px;
    line-height: 16px;
  }
  .st__face, .st__ear, .st__snout {
    border-width: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st.is-demo .st__sticker,
  .st.is-demo .st__eyeOpen--r,
  .st.is-demo .st__eyeWink--r,
  .st--nudge {
    animation: none !important;
  }
}
