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>";
  inherits: true;
  initial-value: 0;
}
.gr {
  --num: 72;
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  transition: --num 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gr__dial {
  position: relative;
  display: grid;
  place-items: center;
}

.gr__svg {
  width: clamp(112px, 33vw, 128px);
  height: clamp(112px, 33vw, 128px);
  transform: rotate(-90deg);
}

.gr__track {
  fill: none;
  stroke: rgba(23, 20, 26, 0.16);
  stroke-width: 12;
}

.gr__ring {
  fill: none;
  stroke: #2f6df6;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 326.726;
  stroke-dashoffset: calc(326.726 * (1 - var(--num) / 100));
}

.gr__center {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 4px;
  pointer-events: none;
}

.gr__ic {
  display: inline-flex;
  color: #2f6df6;
}

.gr__num {
  font-size: clamp(22px, 7vw, 26px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.gr__num::after {
  counter-reset: n var(--num);
  content: counter(n) "%";
}

.gr__cap {
  font-size: 10px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.5);
}

.gr__btn {
  border: 0;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.gr__btn:hover, .gr__btn:focus-visible {
  transform: translateY(-2px);
}

.gr.is-demo {
  animation: gr-count 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes gr-count {
  0% {
    --num: 0;
  }
  45%, 55% {
    --num: 72;
  }
  100% {
    --num: 0;
  }
}
@media (max-width: 340px) {
  .gr__cap {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gr.is-demo {
    animation: none !important;
    --num: 72;
  }
  .gr, .gr__btn {
    transition: none;
  }
}
