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

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

@property --num {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}
.stat {
  text-align: center;
}
.stat__num {
  margin: 0;
  --num: 0;
  counter-reset: num var(--num);
  font-weight: 800;
  font-size: clamp(36px, 12vw, 56px);
  line-height: 1;
  font-family: inherit;
  color: #2f6df6;
}
.stat__num::after {
  content: counter(num);
}
.stat__label {
  margin: 6px 0 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  font-family: inherit;
  color: #17141a;
}

@supports (animation-timeline: view()) {
  .stat__num {
    animation: count-up 1.2s linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
}
@supports not (animation-timeline: view()) {
  .stat__num {
    --num: 1280;
  }
}
@keyframes count-up {
  from {
    --num: 0;
  }
  to {
    --num: 1280;
  }
}
.stat.is-demo .stat__num {
  animation: count-up-loop 2s linear infinite;
}

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