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

.ts06-steps {
  display: flex;
  align-items: flex-start;
  width: min(340px, 90vw);
}

.ts06-step {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #17141a;
  font: 600 11px/1 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.ts06-circle {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.12);
  display: grid;
  place-items: center;
}

.ts06-num {
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  font-family: inherit;
}

.ts06-check {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  opacity: 0;
}
.ts06-check polyline {
  fill: none;
  stroke: #fff7e6;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
}

.ts06-num {
  opacity: 0;
}

.ts06-step.is-checked .ts06-circle {
  background: #17141a;
}

.ts06-step.is-checked .ts06-check {
  opacity: 1;
}

.ts06-step.is-checked .ts06-check polyline {
  animation: ts06-draw 0.5s ease-out forwards;
}

.ts06-step.is-checked .ts06-num {
  display: none;
}

.ts06-step:not(.is-checked) .ts06-num {
  opacity: 1;
}

.ts06-step--active .ts06-circle {
  background: #17141a;
  color: #fff7e6;
}

.ts06-step--active .ts06-num {
  opacity: 1;
  color: #fff7e6;
}

.ts06-step.is-checked + .ts06-bar .ts06-fill {
  transform: scaleX(1);
}

.ts06-bar {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  height: 3px;
  margin-top: 16px;
  background: rgba(23, 20, 26, 0.14);
  border-radius: 4px;
  overflow: hidden;
  display: block;
}

.ts06-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #17141a;
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes ts06-draw {
  from {
    stroke-dashoffset: 16;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.ts06-steps.is-demo .ts06-step--active .ts06-circle {
  animation: ts06-active-pulse 1.2s ease-out infinite;
}

.ts06-steps.is-demo .ts06-step:nth-child(1) .ts06-circle,
.ts06-steps.is-demo .ts06-step:nth-child(3) .ts06-circle {
  background: #17141a;
}

.ts06-steps.is-demo .ts06-step:nth-child(1) .ts06-check,
.ts06-steps.is-demo .ts06-step:nth-child(3) .ts06-check {
  opacity: 1;
}

.ts06-steps.is-demo .ts06-step:nth-child(1) .ts06-num,
.ts06-steps.is-demo .ts06-step:nth-child(3) .ts06-num {
  display: none;
}

.ts06-steps.is-demo .ts06-step:nth-child(1) .ts06-check polyline {
  animation: ts06-draw-loop 2s ease-out infinite;
}

.ts06-steps.is-demo .ts06-step:nth-child(3) .ts06-check polyline {
  animation: ts06-draw-loop 2s ease-out infinite;
  animation-delay: 0.35s;
}

.ts06-steps.is-demo .ts06-bar:nth-child(2) .ts06-fill {
  animation: ts06-fill-loop 2s ease-out infinite;
}

.ts06-steps.is-demo .ts06-bar:nth-child(4) .ts06-fill {
  animation: ts06-fill-loop 2s ease-out infinite;
  animation-delay: 0.35s;
}

@keyframes ts06-draw-loop {
  0%, 5% {
    stroke-dashoffset: 16;
  }
  35%, 100% {
    stroke-dashoffset: 0;
  }
}
@keyframes ts06-fill-loop {
  0%, 8% {
    transform: scaleX(0);
  }
  40%, 100% {
    transform: scaleX(1);
  }
}
@keyframes ts06-active-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(23, 20, 26, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(23, 20, 26, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ts06-check polyline, .ts06-steps.is-demo .ts06-check polyline {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .ts06-fill, .ts06-steps.is-demo .ts06-fill {
    animation: none !important;
  }
  .ts06-steps.is-demo .ts06-step--active .ts06-circle {
    animation: none !important;
  }
}
