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

.wrap {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.track {
  --ratio: .25;
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.14);
  overflow: hidden;
}

.bar {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #0a4fe8;
  transform: scaleX(var(--ratio, 0.25));
  transform-origin: left;
  animation: barGlow 2s ease-out infinite;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.24);
}

.label {
  color: rgba(23, 20, 26, 0.72);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.01em;
}

.step.is-active .dot {
  background: #0a4fe8;
}

.step.is-active .label {
  color: #17141a;
  font-weight: 700;
}

@keyframes barGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.14);
  }
}
@media (max-width: 340px) {
  .wrap {
    max-width: 280px;
    gap: 12px;
  }
  .label {
    font-size: 9px;
  }
  .dot {
    width: 8px;
    height: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar {
    animation: none;
  }
}
