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

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

.ms {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 164px;
  justify-content: center;
}

.ms:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
  border-radius: 12px;
}

.ms__title {
  margin: 0;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.78);
}

.ms__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ms__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
}

.ms__name {
  font-weight: 500;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(23, 20, 26, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms__track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.12);
  overflow: hidden;
}

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

.ms__bar {
  display: flex;
  justify-content: flex-end;
}

.ms__meta {
  font-weight: 500;
  font-size: 10px;
  color: rgba(23, 20, 26, 0.55);
}

@keyframes msRow1 {
  0%, 0% {
    opacity: 0;
    transform: translateY(8px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes msRow2 {
  0%, 4% {
    opacity: 0;
    transform: translateY(8px);
  }
  19% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes msRow3 {
  0%, 8% {
    opacity: 0;
    transform: translateY(8px);
  }
  23% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes msRow4 {
  0%, 12% {
    opacity: 0;
    transform: translateY(8px);
  }
  27% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes msFill1 {
  0%, 15% {
    transform: scaleX(0);
  }
  45% {
    transform: scaleX(1);
  }
  84% {
    transform: scaleX(1);
  }
  92%, 100% {
    transform: scaleX(0);
  }
}
@keyframes msFill2 {
  0%, 19% {
    transform: scaleX(0);
  }
  49% {
    transform: scaleX(0.72);
  }
  84% {
    transform: scaleX(0.72);
  }
  92%, 100% {
    transform: scaleX(0);
  }
}
@keyframes msFill3 {
  0%, 23% {
    transform: scaleX(0);
  }
  53% {
    transform: scaleX(0.45);
  }
  84% {
    transform: scaleX(0.45);
  }
  92%, 100% {
    transform: scaleX(0);
  }
}
@keyframes msFill4 {
  0%, 27% {
    transform: scaleX(0);
  }
  57% {
    transform: scaleX(0.18);
  }
  84% {
    transform: scaleX(0.18);
  }
  92%, 100% {
    transform: scaleX(0);
  }
}
@keyframes msFade {
  0% {
    opacity: 1;
  }
  84% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  94% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.is-demo .ms__row:nth-child(1) {
  animation: msRow1 2s ease-out infinite;
}

.is-demo .ms__row:nth-child(2) {
  animation: msRow2 2s ease-out infinite;
}

.is-demo .ms__row:nth-child(3) {
  animation: msRow3 2s ease-out infinite;
}

.is-demo .ms__row:nth-child(4) {
  animation: msRow4 2s ease-out infinite;
}

.is-demo .ms__row:nth-child(1) .ms__fill {
  animation: msFill1 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;
}

.is-demo .ms__row:nth-child(2) .ms__fill {
  animation: msFill2 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;
}

.is-demo .ms__row:nth-child(3) .ms__fill {
  animation: msFill3 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;
}

.is-demo .ms__row:nth-child(4) .ms__fill {
  animation: msFill4 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;
}

.is-demo.ms {
  animation: msFade 2s ease-out infinite;
}

@media (max-width: 340px) {
  .ms__row {
    grid-template-columns: 48px 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-demo .ms__row, .is-demo .ms__fill, .is-demo.ms {
    animation: none !important;
  }
  .is-demo .ms__row {
    opacity: 1 !important;
    transform: none !important;
  }
  .is-demo .ms__row:nth-child(1) .ms__fill {
    transform: scaleX(1) !important;
  }
  .is-demo .ms__row:nth-child(2) .ms__fill {
    transform: scaleX(0.72) !important;
  }
  .is-demo .ms__row:nth-child(3) .ms__fill {
    transform: scaleX(0.45) !important;
  }
  .is-demo .ms__row:nth-child(4) .ms__fill {
    transform: scaleX(0.18) !important;
  }
}
