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-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stars {
  display: flex;
  flex-direction: row-reverse;
  gap: 6px;
  border: 0;
  margin: 0;
  padding: 0;
}

.star {
  cursor: pointer;
  display: block;
}

.star__icon {
  display: block;
  width: 26px;
  height: 26px;
  background: rgba(23, 20, 26, 0.22);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transition: background 220ms ease-out;
}

.sr-input:checked ~ .star .star__icon,
.sr-input:checked ~ .star ~ .star .star__icon {
  background: #2f6df6;
}

.sr-input:focus-visible + .star .star__icon {
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .star__icon {
    transition-duration: 1ms !important;
  }
}
