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

.stage {
  padding: clamp(8px, 2.4vw, 16px);
}

.card {
  width: min(160px, 50vw);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  padding: 12px;
  box-sizing: border-box;
  outline: none;
  cursor: pointer;
}

.card__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: clamp(12px, 3.4vw, 14px);
  line-height: 1.3;
  font-family: inherit;
  color: #17141a;
}

.card__meta {
  margin: 0;
  font-weight: 500;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1.3;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.6);
}

.cta {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  font-family: inherit;
  color: #2f6df6;
}

.cta__underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #2f6df6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease-out;
}

.card:hover .cta__underline,
.card:focus-visible .cta__underline,
.card:active .cta__underline {
  transform: scaleX(1);
}

.card.is-demo .cta__underline {
  animation: underline-loop 2s ease-out infinite;
}

@keyframes underline-loop {
  0%, 15% {
    transform: scaleX(0);
  }
  45%, 75% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta__underline {
    transition: none;
  }
  .card.is-demo .cta__underline {
    animation: none;
    transform: scaleX(1);
  }
}
