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

.stepper {
  display: flex;
  align-items: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step__dot {
  width: clamp(30px, 9vw, 40px);
  height: clamp(30px, 9vw, 40px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  font-family: inherit;
  transform: scale(0.85);
}

.step__label {
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.55);
}

.line {
  width: clamp(30px, 8vw, 44px);
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  transform: scaleX(0);
  transform-origin: left;
}

.stepper.is-demo .step__dot {
  animation: dot-fill 400ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stepper.is-demo .line {
  animation: line-grow 400ms linear both;
}

.stepper.is-demo > :nth-child(1) .step__dot {
  animation-delay: 0ms;
}

.stepper.is-demo > :nth-child(2) {
  animation-delay: 400ms;
}

.stepper.is-demo > :nth-child(3) .step__dot {
  animation-delay: 800ms;
}

.stepper.is-demo > :nth-child(4) {
  animation-delay: 1200ms;
}

.stepper.is-demo > :nth-child(5) .step__dot {
  animation-delay: 1600ms;
}

@keyframes dot-fill {
  from {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.72);
    transform: scale(0.85);
  }
  to {
    background: #fff7e6;
    color: #17141a;
    transform: scale(1);
  }
}
@keyframes line-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stepper.is-demo .step__dot,
  .stepper.is-demo .line {
    animation: none;
    background: #fff7e6;
    transform: none;
  }
  .stepper.is-demo .step__dot {
    color: #17141a;
  }
}
