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

.tcard {
  position: relative;
  width: 256px;
  box-sizing: border-box;
  padding: 8px 16px;
  border-radius: 16px;
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.tcard__quote {
  color: #ff9ebb;
  display: block;
}

.tcard__stars {
  display: flex;
  gap: 4px;
  margin: 4px 0;
  color: #ff9ebb;
}

.tcard__stars svg {
  transform: scale(0);
  opacity: 0;
}

.tcard__text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #3a2f1f;
}

.tcard__who {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tcard__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #b9a0ff;
  color: #17141a;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}

.tcard__name {
  font-size: 12px;
  color: #5a4a2c;
}

.tcard__helpful {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 158, 187, 0.4);
  border-radius: 999px;
  background: #fff;
  padding: 4px 12px;
  font-size: 11px;
  color: #5a4a2c;
  cursor: pointer;
}

.tcard__helpful.is-active {
  background: #ff9ebb;
  color: #fff;
  border-color: #ff9ebb;
}

.stage.is-demo .tcard__stars svg {
  animation: tcard-star 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.stage.is-demo .tcard__stars svg:nth-child(1) {
  animation-delay: 0s;
}

.stage.is-demo .tcard__stars svg:nth-child(2) {
  animation-delay: 0.08s;
}

.stage.is-demo .tcard__stars svg:nth-child(3) {
  animation-delay: 0.16s;
}

.stage.is-demo .tcard__stars svg:nth-child(4) {
  animation-delay: 0.24s;
}

.stage.is-demo .tcard__stars svg:nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes tcard-star {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  12% {
    transform: scale(1.3);
    opacity: 1;
  }
  20%, 90% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .tcard__stars svg {
    animation: none;
    transform: scale(1);
    opacity: 1;
  }
}
