html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 12px;
  background: rgba(255, 247, 230, 0.08);
  border: 1px solid rgba(255, 247, 230, 0.18);
  text-decoration: none;
  cursor: pointer;
}

.card__text {
  color: #fff7e6;
  font-weight: 600;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1;
  font-family: inherit;
}

.arrow {
  position: relative;
  width: 18px;
  height: 14px;
}

.arrow__line {
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  background: #2f6df6;
  transform-origin: left center;
  transition: transform 200ms ease-out;
}

.arrow__head {
  position: absolute;
  right: 0;
  top: 1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid #2f6df6;
  border-right: 2px solid #2f6df6;
  transform: rotate(45deg);
  transition: transform 200ms ease-out;
}

.card:hover .arrow__line,
.card:focus-visible .arrow__line {
  transform: translateX(4px) scaleX(1.08);
}

.card:hover .arrow__head,
.card:focus-visible .arrow__head {
  transform: translate(4px, 0) rotate(45deg);
}

.card.is-demo .arrow__line {
  animation: nudge-line 2s ease-out infinite;
}

.card.is-demo .arrow__head {
  animation: nudge-head 2s ease-out infinite;
}

@keyframes nudge-line {
  0%, 30% {
    transform: translateX(0) scaleX(1);
  }
  55% {
    transform: translateX(4px) scaleX(1.08);
  }
  80%, 100% {
    transform: translateX(0) scaleX(1);
  }
}
@keyframes nudge-head {
  0%, 30% {
    transform: translate(0, 0) rotate(45deg);
  }
  55% {
    transform: translate(4px, 0) rotate(45deg);
  }
  80%, 100% {
    transform: translate(0, 0) rotate(45deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .arrow__line, .arrow__head {
    transition: none;
  }
  .card.is-demo .arrow__line, .card.is-demo .arrow__head {
    animation: none;
  }
}
