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: true;
  initial-value: 0;
}
.gd {
  --num: 74;
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  gap: 16px;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

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

.gd__svg {
  width: clamp(108px, 32vw, 128px);
  height: clamp(108px, 32vw, 128px);
  transform: rotate(-90deg);
}

.gd__stop-a {
  stop-color: #6ec8ff;
}

.gd__stop-b {
  stop-color: #ff9ebb;
}

.gd__track {
  fill: none;
  stroke: rgba(23, 20, 26, 0.1);
  stroke-width: 14;
}

.gd__ring {
  fill: none;
  stroke: url(#gdStroke);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 326.726;
  stroke-dashoffset: calc(326.726 * (1 - var(--num) / 100));
}

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

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

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

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

.gd__slider {
  display: grid;
  justify-items: center;
  gap: 8px;
}

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

.gd__range {
  width: clamp(152px, 56vw, 188px);
  accent-color: #6ec8ff;
  cursor: pointer;
}

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

@keyframes gd-fill {
  0% {
    --num: 0;
  }
  45%, 55% {
    --num: 74;
  }
  100% {
    --num: 0;
  }
}
@media (max-width: 340px) {
  .gd {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gd.is-demo {
    animation: none !important;
    --num: 74;
  }
}
