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

.sr {
  display: grid;
  gap: 20px;
  place-items: center;
}

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

.sr__star {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.sr__star--bounce {
  animation: srBounce 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.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: 500 13px/1.3 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
  opacity: 0.7;
}

@keyframes srBounce {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(0.85);
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .sr__star {
    width: 34px;
    height: 34px;
  }
  .sr__row {
    gap: 4px;
  }
  .sr__readout {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sr__fillclip {
    transition: none;
  }
  .sr__star--bounce {
    animation: none;
  }
}
