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

@property --whole {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
@property --frac {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
@counter-style padded-2 {
  system: numeric;
  symbols: "0" "1" "2" "3" "4" "5" "6" "7" "8" "9";
  suffix: "";
  pad: 2 "0";
}
.counter {
  text-align: center;
}
.counter__num {
  --whole: 0;
  --frac: 0;
  counter-reset: whole var(--whole) frac var(--frac);
  display: block;
  font-weight: 800;
  font-size: clamp(36px, 11vw, 60px);
  line-height: 1;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  color: #fff7e6;
}
.counter__num::before {
  content: counter(whole) "." counter(frac, padded-2);
}
.counter__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.counter__label {
  display: block;
  margin-top: clamp(6px, 2vw, 10px);
  font-weight: 600;
  font-size: clamp(12px, 3.4vw, 15px);
  line-height: 1;
  font-family: inherit;
  color: #17141a;
}

.counter.is-demo .counter__num {
  animation: decimal-up 2s ease-out infinite;
}

@keyframes decimal-up {
  0% {
    --whole: 0;
    --frac: 0;
  }
  65% {
    --whole: 4;
    --frac: 98;
  }
  100% {
    --whole: 4;
    --frac: 98;
  }
}
@media (prefers-reduced-motion: reduce) {
  .counter.is-demo .counter__num {
    animation: none;
    --whole: 4;
    --frac: 98;
  }
}
