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

.st {
  display: grid;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.st__card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: min(292px, 92vw);
  padding: 16px;
  border: 1px solid rgba(23, 20, 26, 0.16);
  border-radius: 16px;
  background: #ffffff;
  transition: background 0ms 460ms;
}

.st__thumb {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(47, 109, 246, 0.14);
  color: #2f6df6;
  font-size: 26px;
}

.st__body {
  min-width: 0;
}

.st__title {
  margin: 0;
  color: #17141a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.st__meta {
  margin: 0;
  color: rgba(23, 20, 26, 0.72);
  font-size: 11px;
  line-height: 1.35;
}

.st__btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(23, 20, 26, 0.18);
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.st__btn:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.st__star {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  font-size: 30px;
}

.st__base,
.st__draw,
.st__fill {
  position: absolute;
  inset: 0;
  display: block;
}

.st__base path {
  fill: none;
  stroke: rgba(23, 20, 26, 0.28);
  stroke-width: 10;
  stroke-linejoin: round;
}

.st__draw path {
  fill: none;
  stroke: #17141a;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 460ms ease-out;
}

.st__fill path {
  fill: #ffd23f;
  stroke: #17141a;
  stroke-width: 10;
}

.st__fill {
  opacity: 0;
  transition: opacity 0ms 460ms;
}

.st__saved {
  position: absolute;
  right: 8px;
  bottom: 4px;
  margin: 0;
  padding: 0 8px;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  opacity: 0;
}

.st.is-on .st__draw path {
  stroke-dashoffset: 0;
}

.st.is-on .st__fill {
  opacity: 1;
}

.st.is-on .st__star {
  animation-name: st-pop;
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: 1;
}

.st.is-on .st__card {
  background: rgba(255, 210, 63, 0.22);
}

.st.is-on .st__saved {
  opacity: 1;
  transition: opacity 0ms 460ms;
}

@keyframes st-pop {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes st-loop-draw {
  0%, 10% {
    stroke-dashoffset: 100;
  }
  42%, 82% {
    stroke-dashoffset: 0;
  }
  94%, 100% {
    stroke-dashoffset: 100;
  }
}
@keyframes st-loop-fill {
  0%, 41% {
    opacity: 0;
  }
  42%, 81% {
    opacity: 1;
  }
  82%, 100% {
    opacity: 0;
  }
}
@keyframes st-loop-card {
  0%, 41% {
    background: #ffffff;
  }
  42%, 81% {
    background: rgba(255, 210, 63, 0.22);
  }
  82%, 100% {
    background: #ffffff;
  }
}
@keyframes st-loop-saved {
  0%, 44% {
    opacity: 0;
  }
  46%, 80% {
    opacity: 1;
  }
  82%, 100% {
    opacity: 0;
  }
}
@keyframes st-loop-pop {
  0%, 42% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.22);
  }
  58%, 100% {
    transform: scale(1);
  }
}
.st.is-demo .st__draw path {
  animation-name: st-loop-draw;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}
.st.is-demo .st__fill {
  animation-name: st-loop-fill;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.st.is-demo .st__card {
  animation-name: st-loop-card;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.st.is-demo .st__saved {
  animation-name: st-loop-saved;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.st.is-demo .st__star {
  animation-name: st-loop-pop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .st__card {
    padding: 12px;
    gap: 8px;
  }
  .st__thumb {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  .st__title {
    font-size: 12px;
  }
  .st__btn {
    width: 40px;
    height: 40px;
  }
  .st__star {
    width: 24px;
    height: 24px;
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st.is-demo .st__draw path,
  .st.is-demo .st__fill,
  .st.is-demo .st__card,
  .st.is-demo .st__saved,
  .st.is-demo .st__star {
    animation: none !important;
    transform: none !important;
  }
  .st.is-demo .st__draw path {
    stroke-dashoffset: 0 !important;
  }
  .st.is-demo .st__fill {
    opacity: 1 !important;
  }
  .st.is-demo .st__card {
    background: rgba(255, 210, 63, 0.22) !important;
  }
  .st.is-demo .st__saved {
    opacity: 1 !important;
  }
}
