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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.rg {
  box-sizing: border-box;
  width: min(360px, 92vw);
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  color: #17141a;
}

.rg__zone {
  position: relative;
  width: min(352px, 100%);
  aspect-ratio: 480/300;
}

.rg__chart {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rg__track {
  fill: none;
  stroke: rgb(86.9490196078%, 90.8392156863%, 99.4352941176%);
  stroke-width: 30;
  stroke-linecap: round;
}

.rg__fill {
  fill: none;
  stroke: #0a4fe8;
  stroke-width: 30;
  stroke-linecap: round;
}

.rg__num {
  font-size: 44px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  fill: #17141a;
}

.rg__grab {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0a4fe8;
  color: #ffffff;
  box-shadow: 0 0 0 4px #ffffff, 0 6px 12px rgba(23, 20, 26, 0.32);
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
}

.rg__grab:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 3px;
}

.rg__ic {
  width: 14px;
  height: 14px;
}

.rg__badge {
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.78);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.rg__hint {
  margin: 0;
  padding: 0 4px;
  font-size: 11px;
  line-height: 16px;
  color: rgba(23, 20, 26, 0.62);
  text-align: center;
}

@media (max-width: 340px) {
  .rg {
    padding: 8px;
    gap: 4px;
  }
  .rg__hint {
    display: none;
  }
  .rg__zone {
    width: min(240px, 100%);
  }
  .rg__num {
    font-size: 32px;
  }
  .rg__track, .rg__fill {
    stroke-width: 16;
  }
  .rg__grab {
    width: 24px;
    height: 24px;
  }
  .rg__badge {
    font-size: 10px;
    padding: 0 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rg.is-still .rg__fill {
    transition: none !important;
  }
}
