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

.link-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.link-btn {
  position: relative;
  border: 0;
  background: none;
  padding: 8px 0;
  cursor: pointer;
  color: #fff7e6;
}

.link-btn__label {
  font-weight: 800;
  font-size: clamp(18px, 5vw, 26px);
  line-height: 1;
}

.link-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #2f6df6;
  transform-origin: center;
  transform: scaleX(0);
}

.link-btn.is-demo::after {
  animation: underline-pulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes underline-pulse {
  0%, 10% {
    transform: scaleX(0);
  }
  50% {
    transform: scaleX(1);
  }
  90%, 100% {
    transform: scaleX(0);
  }
}
.link-btn:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 4px;
}

.char {
  display: inline-block;
  animation: char-flow 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.char--space {
  width: 0.28em;
}

@keyframes char-flow {
  0%, 4% {
    transform: translate(var(--nx0, 0), var(--ny0, 16px)) rotate(var(--nr0, 0deg)) scale(0.55);
    opacity: 0;
  }
  16% {
    transform: translate(var(--wx, 0), var(--wy, 4px)) rotate(var(--wr, 0deg)) scale(1.08);
    opacity: 1;
  }
  30%, 78% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  96%, 100% {
    transform: translate(var(--nx0, 0), var(--ny0, 16px)) rotate(var(--nr0, 0deg)) scale(0.55);
    opacity: 0;
  }
}
.input-static {
  border: 1px solid rgba(255, 247, 230, 0.3);
  border-radius: 12px;
  background: transparent;
  color: #fff7e6;
  padding: 8px 12px;
  font-weight: 500;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1;
}

.input-static::placeholder {
  color: rgba(255, 247, 230, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .link-btn.is-demo::after {
    animation: none;
    transform: scaleX(0);
  }
  .char {
    animation: none;
    transform: none;
    opacity: 1;
  }
}
