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

.cp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cp__ring {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(#0a4fe8 0deg calc(var(--deg, 0) * 1deg), rgba(23, 20, 26, 0.14) calc(var(--deg, 0) * 1deg) 360deg);
  display: grid;
  place-items: center;
}

.cp__ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fff7e6;
}

.cp__center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cp__pct {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: #17141a;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cp__label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.6);
}

.cp__btns {
  display: flex;
  gap: 12px;
}

.cp__btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 700;
  color: #fff7e6;
  background: #0a4fe8;
  cursor: pointer;
  transition: transform 300ms ease-out;
}

.cp__btn:active {
  transform: scale(0.92);
}

.cp__btn:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .cp {
    gap: 12px;
  }
  .cp__ring {
    width: 118px;
    height: 118px;
  }
  .cp__ring::before {
    inset: 11px;
  }
  .cp__pct {
    font-size: 20px;
  }
  .cp__btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cp__btn {
    transition: none;
  }
}
