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

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

.sf {
  width: min(392px, 92vw);
}

.sf__scroller {
  height: clamp(148px, 58vh, 176px);
  overflow-y: auto;
  scrollbar-width: none;
}
.sf__scroller::-webkit-scrollbar {
  display: none;
}

.sf__grid {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
}

.sf__figure {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  height: 104px;
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.08);
}

.sf__panel {
  grid-area: 1/1;
  display: grid;
  place-items: center;
  gap: 4px;
  color: #fff7e6;
  animation-name: sf-p1;
  animation-duration: 1s;
  animation-timing-function: steps(1, end);
  animation-fill-mode: both;
  animation-timeline: scroll(nearest block);
}

.sf__panel--2 {
  animation-name: sf-p2;
}

.sf__panel--3 {
  animation-name: sf-p3;
  color: #ffd23f;
}

@keyframes sf-p1 {
  0% {
    opacity: 1;
  }
  28% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes sf-p2 {
  0% {
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  76% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes sf-p3 {
  0% {
    opacity: 0;
  }
  76% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
.sf__cap {
  color: inherit;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.sf__steps {
  display: grid;
  padding-bottom: 88px;
}

.sf__step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 96px;
  margin: 0;
  padding: 12px 0 0;
  color: rgba(255, 247, 230, 0.82);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.sf__n {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0a4fe8;
  color: #fff7e6;
  font-size: 11px;
  line-height: 12px;
  font-weight: 700;
}

.sf.is-demo .sf__steps {
  animation-name: sf-scrub;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.sf.is-demo .sf__panel {
  animation-duration: 1s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-timeline: auto;
}

@keyframes sf-scrub {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-200px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sf__panel {
    animation: none !important;
    opacity: 0;
  }
  .sf__panel--1 {
    opacity: 1;
  }
  .sf.is-demo .sf__steps {
    animation: none !important;
    transform: none;
  }
}
