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

.wizard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.wizard__viewport {
  width: min(200px, 78vw);
  height: 150px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.wizard__track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wizard__step {
  flex: 0 0 50%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

.wizard__step--pink {
  background: #ff9ebb;
}

.wizard__step--lilac {
  background: #b9a0ff;
}

.wizard__icon {
  width: 36px;
  height: 36px;
  color: #ffffff;
}

.wizard__label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #17141a;
  font-family: inherit;
  text-align: center;
}

.wizard__dots {
  display: flex;
  gap: 8px;
}

.wizard__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.25);
  transition: background 300ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wizard__dot.is-active {
  background: #17141a;
  transform: scale(1.2);
}

.wizard__next {
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: #17141a;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.wizard__next:hover, .wizard__next:focus-visible {
  background: rgb(21.0196078431%, 18.2779198636%, 23.7612958227%);
}

.wizard.is-demo .wizard__track {
  animation: wiz-track 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.wizard.is-demo .wizard__dot:nth-child(1) {
  animation: wiz-dot1 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.wizard.is-demo .wizard__dot:nth-child(2) {
  animation: wiz-dot2 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes wiz-track {
  0%, 8% {
    transform: translateX(0%);
  }
  23%, 77% {
    transform: translateX(-50%);
  }
  92%, 100% {
    transform: translateX(0%);
  }
}
@keyframes wiz-dot1 {
  0%, 8% {
    background: #17141a;
    transform: scale(1.2);
  }
  23%, 77% {
    background: rgba(23, 20, 26, 0.25);
    transform: scale(1);
  }
  92%, 100% {
    background: #17141a;
    transform: scale(1.2);
  }
}
@keyframes wiz-dot2 {
  0%, 8% {
    background: rgba(23, 20, 26, 0.25);
    transform: scale(1);
  }
  23%, 77% {
    background: #17141a;
    transform: scale(1.2);
  }
  92%, 100% {
    background: rgba(23, 20, 26, 0.25);
    transform: scale(1);
  }
}
@media (max-height: 240px) {
  .wizard {
    gap: 8px;
  }
  .wizard__viewport {
    height: 96px;
  }
  .wizard__icon {
    width: 28px;
    height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wizard__track, .wizard__dot {
    transition: none;
  }
  .wizard.is-demo .wizard__track,
  .wizard.is-demo .wizard__dot:nth-child(1),
  .wizard.is-demo .wizard__dot:nth-child(2) {
    animation: none;
  }
}
