html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ts03-steps {
  display: flex;
  align-items: flex-start;
  width: min(320px, 88vw);
}

.ts03-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;
}

.ts03-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #17141a;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  font-family: inherit;
}

.ts03-bar {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  height: 3px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  overflow: hidden;
  display: block;
}

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

.ts03-step.is-done .ts03-circle {
  background: #fff7e6;
  color: #c93000;
}

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

.ts03-steps.is-demo .ts03-step:nth-child(1) .ts03-circle {
  animation: ts03-done 300ms ease-out infinite;
}

.ts03-steps.is-demo .ts03-bar:nth-child(2) .ts03-fill {
  animation: ts03-fill 300ms ease-out infinite;
  animation-delay: 0.3s;
}

.ts03-steps.is-demo .ts03-step:nth-child(3) .ts03-circle {
  animation: ts03-done 300ms ease-out infinite;
  animation-delay: 0.9s;
}

.ts03-steps.is-demo .ts03-bar:nth-child(4) .ts03-fill {
  animation: ts03-fill 300ms ease-out infinite;
  animation-delay: 1.2s;
}

@keyframes ts03-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes ts03-done {
  from {
    background: rgba(255, 255, 255, 0.18);
  }
  to {
    background: #fff7e6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ts03-fill, .ts03-steps.is-demo .ts03-fill {
    animation: none !important;
    transform: scaleX(1) !important;
  }
  .ts03-steps.is-demo .ts03-circle {
    animation: none !important;
  }
}
