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

.stepper {
  width: min(260px, 90vw);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}

.stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.stepper__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6e2d8;
  color: rgba(23, 20, 26, 0.72);
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
  transition: background 300ms ease-out, color 300ms ease-out;
}

.stepper__label {
  font-size: 10px;
  color: rgba(23, 20, 26, 0.72);
  font-family: inherit;
}

.stepper__connector {
  flex: 1 1 auto;
  height: 3px;
  margin: 0 4px 16px;
  border-radius: 4px;
  background: #e6e2d8;
  overflow: hidden;
}

.stepper__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #2f6df6;
  border-radius: 4px;
}

.stepper.is-demo .stepper__fill--1 {
  animation: fill-1 2s ease-out infinite;
}

.stepper.is-demo .stepper__fill--2 {
  animation: fill-2 2s ease-out infinite;
}

.stepper.is-demo .stepper__step--1 .stepper__dot,
.stepper.is-demo .stepper__step--2 .stepper__dot {
  animation: dot-fill 2s step-end infinite;
}

.stepper.is-demo .stepper__step--2 .stepper__dot {
  animation-delay: calc(2s / 2);
}

@keyframes fill-1 {
  0%, 8% {
    width: 0%;
  }
  42%, 100% {
    width: 100%;
  }
}
@keyframes fill-2 {
  0%, 50% {
    width: 0%;
  }
  92%, 100% {
    width: 100%;
  }
}
@keyframes dot-fill {
  0% {
    background: #e6e2d8;
    color: #8a8272;
  }
  100% {
    background: #2f6df6;
    color: #ffffff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stepper.is-demo .stepper__fill--1,
  .stepper.is-demo .stepper__fill--2,
  .stepper.is-demo .stepper__step--1 .stepper__dot,
  .stepper.is-demo .stepper__step--2 .stepper__dot {
    animation: none;
  }
}
