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>";
  initial-value: 0;
  inherits: false;
}
.counter {
  text-align: left;
}
.counter__num {
  --num: 0;
  counter-reset: num var(--num);
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: clamp(34px, 10vw, 56px);
  line-height: 1;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  color: #2f6df6;
}
.counter__num::before {
  content: "$";
  margin-right: 2px;
}
.counter__num::after {
  content: counter(num);
}
.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: rgba(23, 20, 26, 0.6);
}

.counter.is-demo .counter__num {
  animation: currency-up 600ms ease-out infinite;
}

@keyframes currency-up {
  0% {
    --num: 0;
  }
  55% {
    --num: 248;
  }
  100% {
    --num: 248;
  }
}
@media (prefers-reduced-motion: reduce) {
  .counter.is-demo .counter__num {
    animation: none;
    --num: 248;
  }
}
