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

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

.wrap {
  box-sizing: border-box;
  width: min(100%, 256px);
}

.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.h {
  font-size: 13px;
  font-weight: 700;
  color: #17141a;
}

.p {
  font-size: 11px;
  color: #475569;
}

.strip {
  display: flex;
  gap: 4px;
  margin: 12px 0 0;
}

.seg {
  position: relative;
  flex: 0 0 auto;
  width: 47px;
  height: 8px;
  border-radius: 999px;
  background: #dbe1e8;
  overflow: hidden;
  scale: 1;
}

.stage.is-demo .seg {
  animation-name: seg-pop;
  animation-duration: 2s;
  animation-timing-function: linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1);
  animation-iteration-count: infinite;
}

.strip .s2 {
  animation-delay: 0.2s;
}

.strip .s3 {
  animation-delay: 0.4s;
}

.strip .s4 {
  animation-delay: 0.6s;
}

.strip .s5 {
  animation-delay: 0.8s;
}

.fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #17141a;
  transform: scaleX(0);
  transform-origin: left center;
}

.flash {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
}

.stage.is-demo .fill {
  animation-name: fill;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.stage.is-demo .flash {
  animation-name: flash;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.s2 .fill, .s2 .flash {
  animation-delay: 0.2s;
}

.s3 .fill, .s3 .flash {
  animation-delay: 0.4s;
}

.s4 .fill, .s4 .flash {
  animation-delay: 0.6s;
}

.s5 .fill, .s5 .flash {
  animation-delay: 0.8s;
}

.cap {
  margin: 12px 0 0;
  font-size: 11px;
  color: #475569;
}

@keyframes fill {
  0% {
    transform: scaleX(0);
  }
  13% {
    transform: scaleX(1.15);
  }
  16%, 100% {
    transform: scaleX(1);
  }
}
.stage.is-demo .cap {
  animation: cap-bob 2s linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1) infinite;
}

@keyframes cap-bob {
  0%, 30% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-2px);
  }
  55% {
    transform: translateY(1px);
  }
  70%, 100% {
    transform: translateY(0);
  }
}
@keyframes flash {
  0%, 8% {
    opacity: 0;
  }
  16% {
    opacity: 0.55;
  }
  34%, 100% {
    opacity: 0;
  }
}
@keyframes seg-pop {
  0%, 13% {
    scale: 1;
  }
  16% {
    scale: 1.06;
  }
  24% {
    scale: 0.98;
  }
  32%, 100% {
    scale: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .fill {
    animation: none;
    transform: scaleX(1);
  }
  .stage.is-demo .flash {
    animation: none;
    opacity: 0;
  }
  .stage.is-demo .cap {
    animation: none;
  }
  .stage.is-demo .seg {
    animation: none;
    scale: 1;
  }
}
