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

.like {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 2.6vw, 12px);
  border: 0;
  border-radius: 999px;
  padding: clamp(12px, 4vw, 16px) clamp(20px, 6vw, 26px);
  font-weight: 700;
  font-size: clamp(15px, 4.2vw, 19px);
  line-height: 1;
  font-family: inherit;
  color: #17141a;
  background: #fff7e6;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.like__icon {
  position: relative;
  width: 22px;
  height: 20px;
  flex: none;
  color: #17141a;
}
.like__heart {
  position: absolute;
  inset: 0;
  transform: scale(1);
}
.like__heart::before {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 80%;
  border-radius: 50% 50% 0 0;
  background: currentColor;
  left: 50%;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}
.like__heart::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 80%;
  border-radius: 50% 50% 0 0;
  background: currentColor;
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}
.like__heart--base {
  opacity: 0.28;
}
.like__heart--fill {
  color: #2f6df6;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.like__count {
  position: relative;
  height: 1em;
  overflow: hidden;
}
.like__count-track {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.like__count-num {
  height: 1em;
  line-height: 1;
}
.like.is-liked .like__heart--fill {
  opacity: 1;
  transform: scale(1);
}
.like.is-liked .like__count-track {
  transform: translateY(-50%);
}
.like.is-demo .like__heart--fill {
  animation: fill-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}
.like.is-demo .like__count-track {
  animation: count-loop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes fill-loop {
  0%, 20% {
    opacity: 0;
    transform: scale(0.5);
  }
  35%, 60% {
    opacity: 1;
    transform: scale(1);
  }
  80%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
}
@keyframes count-loop {
  0%, 20% {
    transform: translateY(0);
  }
  35%, 60% {
    transform: translateY(-50%);
  }
  80%, 100% {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .like__heart--fill, .like__count-track {
    transition: none;
  }
  .like.is-demo .like__heart--fill,
  .like.is-demo .like__count-track {
    animation: none !important;
  }
}
