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

@property --num {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
.counter {
  position: fixed;
  top: 24px;
  right: 24px;
}

.counter__num {
  --num: 0;
  counter-reset: num var(--num);
  display: block;
  font-weight: 800;
  font-size: clamp(26px, 8vw, 36px);
  line-height: 1;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  color: #17141a;
}
.counter__num::before {
  content: counter(num) "%";
}
@supports (animation-timeline: scroll()) {
  .counter__num {
    animation: count-up linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes count-up {
  from {
    --num: 0;
  }
  to {
    --num: 100;
  }
}
.counter__num.is-demo {
  animation: count-up-loop 2s linear infinite;
}

@keyframes count-up-loop {
  0% {
    --num: 0;
  }
  92% {
    --num: 100;
  }
  100% {
    --num: 100;
  }
}
@media (prefers-reduced-motion: reduce) {
  .counter__num, .counter__num.is-demo {
    animation: none !important;
    --num: 100;
  }
}
