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 {
  display: grid;
  gap: 16px;
  place-items: center;
}

.sr__row {
  display: flex;
  gap: 8px;
}

.sr__star {
  position: relative;
  width: 40px;
  height: 40px;
}

.sr__base,
.sr__fill svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sr__base {
  fill: #17141a;
  opacity: 0.18;
}

.sr__fillclip {
  position: absolute;
  inset: 0;
  width: 0%;
  overflow: hidden;
  transition: width 300ms ease-out;
}

.sr__fill {
  fill: #0a4fe8;
}

.sr__readout {
  font: 700 22px/1.2 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}
.sr__readout b {
  font-variant-numeric: tabular-nums;
}

.sr__count {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
}

.sr__btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 20px;
  background: #17141a;
  color: #ffffff;
  font: 600 13px/1 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  cursor: pointer;
  transition: transform 140ms ease-out;
}
.sr__btn:active {
  transform: scale(0.94);
}

@media (max-width: 340px) {
  .sr__star {
    width: 30px;
    height: 30px;
  }
  .sr__row {
    gap: 4px;
  }
  .sr__readout {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sr__fillclip, .sr__btn {
    transition: none;
  }
}
