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

.st {
  width: min(260px, 78vw);
}

.st__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.st__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.st__nav {
  position: relative;
  display: flex;
}

.st__tab {
  flex: 0 0 88px;
  scroll-snap-align: start;
  text-align: center;
  padding: 12px 4px;
  font-weight: 600;
  font-size: clamp(12px, 3.4vw, 13px);
  line-height: 1;
  font-family: inherit;
  color: #17141a;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.st__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 88px;
  height: 3px;
  background: #17141a;
  border-radius: 999px;
  transform: translateX(0);
  transition: transform 300ms 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);
}

.st__trail {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 88px;
  height: 3px;
  background: #17141a;
  border-radius: 999px;
  opacity: 0.32;
  filter: blur(1.5px);
  transform: translateX(0);
  transition: transform 540ms ease-out;
}

#st-1:checked ~ .st__scroller .st__indicator {
  transform: translateX(0px);
}

#st-1:checked ~ .st__scroller .st__trail {
  transform: translateX(0px);
}

#st-2:checked ~ .st__scroller .st__indicator {
  transform: translateX(88px);
}

#st-2:checked ~ .st__scroller .st__trail {
  transform: translateX(88px);
}

#st-3:checked ~ .st__scroller .st__indicator {
  transform: translateX(176px);
}

#st-3:checked ~ .st__scroller .st__trail {
  transform: translateX(176px);
}

#st-4:checked ~ .st__scroller .st__indicator {
  transform: translateX(264px);
}

#st-4:checked ~ .st__scroller .st__trail {
  transform: translateX(264px);
}

#st-5:checked ~ .st__scroller .st__indicator {
  transform: translateX(352px);
}

#st-5:checked ~ .st__scroller .st__trail {
  transform: translateX(352px);
}

.st.is-demo .st__indicator {
  animation: st-loop 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;
}

.st.is-demo .st__trail {
  animation: st-loop 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;
  animation-delay: 0.12s;
}

.st.is-demo .st__nav {
  animation: st-scroll 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 st-loop {
  0%, 12% {
    transform: translateX(0);
  }
  24%, 32% {
    transform: translateX(88px);
  }
  44%, 52% {
    transform: translateX(176px);
  }
  64%, 72% {
    transform: translateX(264px);
  }
  84%, 92% {
    transform: translateX(352px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes st-scroll {
  0%, 12%, 24%, 32% {
    transform: translateX(0);
  }
  44%, 52% {
    transform: translateX(-88px);
  }
  64%, 92% {
    transform: translateX(-176px);
  }
  100% {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .st__indicator, .st__trail {
    transition: none;
  }
  .st.is-demo .st__indicator, .st.is-demo .st__trail, .st.is-demo .st__nav {
    animation: none !important;
  }
  .st__trail {
    opacity: 0;
  }
}
