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

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

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 2.4vw, 12px);
}

@property --p {
  syntax: "<integer>";
  initial-value: 0;
  inherits: true;
}
.ring {
  --p: 0;
  position: relative;
  width: clamp(84px, 22vw, 108px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#fff7e6 calc(var(--p) * 1%), rgba(255, 255, 255, 0.16) 0);
}
.ring::before {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: #17141a;
}
.ring__num {
  position: relative;
  counter-reset: p var(--p);
  font-weight: 800;
  font-size: clamp(16px, 5vw, 22px);
  line-height: 1;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  color: #fff7e6;
}
.ring__num::before {
  content: counter(p) "%";
}
.ring__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.stat__label {
  font-weight: 600;
  font-size: clamp(12px, 3.4vw, 15px);
  line-height: 1;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.6);
}

.ring.is-demo {
  animation: percent-up 2s ease-out infinite;
}

@keyframes percent-up {
  0% {
    --p: 0;
  }
  65% {
    --p: 76;
  }
  100% {
    --p: 76;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ring.is-demo {
    animation: none;
    --p: 76;
  }
}
