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

.ss, .ss * {
  box-sizing: border-box;
}

.ss {
  width: min(420px, 94vw);
}

.ss__win {
  height: clamp(160px, 84vh, 272px);
  overflow-y: auto;
  scrollbar-width: none;
}
.ss__win::-webkit-scrollbar {
  display: none;
}
.ss__win {
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  scroll-behavior: smooth;
}

.ss__doc {
  position: relative;
}

.ss__docHead {
  padding: 16px 16px 8px;
}

.ss__title {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 800;
}

.ss__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  background: #fff7e6;
  border-bottom: 1px solid rgba(23, 20, 26, 0.08);
}

.ss__chip {
  padding: 4px 12px;
  border-radius: 999px;
  color: rgba(23, 20, 26, 0.7);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 140ms ease-out, color 140ms ease-out;
}

.ss__chip[aria-current=true] {
  background: #17141a;
  color: #fff7e6;
}

.ss__track {
  display: grid;
  gap: 12px;
  padding: 12px 16px 48px;
}

.ss__sec {
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(23, 20, 26, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.ss__h {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.ss__line {
  display: block;
  height: 6px;
  margin-top: 4px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.12);
}

.ss__line--a {
  width: 92%;
}

.ss__line--b {
  width: 78%;
}

.ss__line--c {
  width: 60%;
}

.ss.is-demo .ss__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  animation-name: ss-bar;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.ss.is-demo .ss__docHead,
.ss.is-demo .ss__track {
  animation-name: ss-flow;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.ss.is-demo .ss__chip {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.ss.is-demo .ss__chip:nth-child(1) {
  animation-name: ss-cur-1;
}

.ss.is-demo .ss__chip:nth-child(2) {
  animation-name: ss-cur-2;
}

.ss.is-demo .ss__chip:nth-child(3) {
  animation-name: ss-cur-3;
}

.ss.is-demo .ss__chip:nth-child(4) {
  animation-name: ss-cur-4;
}

.ss.is-demo .ss__chip:nth-child(5) {
  animation-name: ss-cur-5;
}

@keyframes ss-flow {
  0%, 6% {
    transform: translateY(0);
  }
  74%, 78% {
    transform: translateY(-420px);
  }
  88%, 100% {
    transform: translateY(0);
  }
}
@keyframes ss-bar {
  0%, 6% {
    transform: translateY(46px);
  }
  16% {
    transform: translateY(0);
  }
  78% {
    transform: translateY(0);
  }
  88%, 100% {
    transform: translateY(46px);
  }
}
@keyframes ss-cur-1 {
  0% {
    background: #17141a;
    color: #fff7e6;
  }
  18%, 100% {
    background: transparent;
    color: rgba(23, 20, 26, 0.7);
  }
}
@keyframes ss-cur-2 {
  0% {
    background: transparent;
    color: rgba(23, 20, 26, 0.7);
  }
  18% {
    background: #17141a;
    color: #fff7e6;
  }
  34%, 100% {
    background: transparent;
    color: rgba(23, 20, 26, 0.7);
  }
}
@keyframes ss-cur-3 {
  0% {
    background: transparent;
    color: rgba(23, 20, 26, 0.7);
  }
  34% {
    background: #17141a;
    color: #fff7e6;
  }
  50%, 100% {
    background: transparent;
    color: rgba(23, 20, 26, 0.7);
  }
}
@keyframes ss-cur-4 {
  0% {
    background: transparent;
    color: rgba(23, 20, 26, 0.7);
  }
  50% {
    background: #17141a;
    color: #fff7e6;
  }
  66%, 100% {
    background: transparent;
    color: rgba(23, 20, 26, 0.7);
  }
}
@keyframes ss-cur-5 {
  0% {
    background: transparent;
    color: rgba(23, 20, 26, 0.7);
  }
  66% {
    background: #17141a;
    color: #fff7e6;
  }
  80%, 100% {
    background: transparent;
    color: rgba(23, 20, 26, 0.7);
  }
}
@media (max-width: 340px) {
  .ss__bar {
    gap: 0;
    padding: 8px 12px;
  }
  .ss__chip {
    padding: 4px 8px;
    font-size: 11px;
  }
  .ss__sec {
    min-height: 84px;
    padding: 8px;
  }
  .ss__track {
    gap: 8px;
    padding: 8px 12px 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ss.is-demo .ss__bar,
  .ss.is-demo .ss__docHead,
  .ss.is-demo .ss__track,
  .ss.is-demo .ss__chip {
    animation: none !important;
  }
  .ss.is-demo .ss__bar {
    position: sticky;
    top: 0;
    transform: none !important;
  }
  .ss.is-demo .ss__docHead, .ss.is-demo .ss__track {
    transform: none !important;
  }
  .ss__win {
    scroll-behavior: auto;
  }
}
