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

.card {
  position: relative;
  width: 220px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.thumb {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.12), rgba(47, 109, 246, 0.04));
}

.ribbon-wrap {
  position: absolute;
  top: 24px;
  left: -40px;
  width: 160px;
  transform: rotate(-45deg);
  overflow: hidden;
}

.ribbon {
  position: relative;
  display: block;
  padding: 4px 0;
  background: #50a26e;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.ribbon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, 0.7) 45%, transparent 75%);
  background-size: 220% 100%;
  background-position: 140% 0;
}

.stage.is-demo .ribbon::after {
  animation: shine-sweep 2s ease-out infinite;
}

@keyframes shine-sweep {
  0%, 15% {
    background-position: 140% 0;
  }
  55% {
    background-position: -40% 0;
  }
  100% {
    background-position: -40% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .ribbon::after {
    animation: none;
    background-position: 30% 0;
  }
}
