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

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  width: min(280px, 100%);
  display: grid;
  gap: clamp(6px, 3vw, 10px);
}

.list__item {
  padding: clamp(8px, 3vw, 14px) clamp(12px, 4vw, 18px);
  border-radius: 12px;
  background: #17141a;
  color: #fff;
  font-weight: 600;
  font-size: clamp(13px, 4vw, 15px);
  line-height: 1;
  font-family: inherit;
}
@supports (animation-timeline: view()) {
  .list__item {
    animation: stagger-in ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
}
@supports not (animation-timeline: view()) {
  .list__item {
    opacity: 1;
    transform: none;
  }
}

@keyframes stagger-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.list.is-demo .list__item {
  animation: stagger-loop 2s ease-out infinite;
  animation-delay: calc(var(--i) * 80ms * 4);
}

@keyframes stagger-loop {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 0;
    transform: translateY(32px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .list__item {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
