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

.check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(14px, 4vw, 17px);
  line-height: 1.3;
  font-family: inherit;
  color: #17141a;
}

.box {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(23, 20, 26, 0.5);
  background: transparent;
  display: grid;
  place-items: center;
  transition: background 220ms ease-out;
}

.sr-input:checked ~ .box {
  background: #17141a;
  border-color: #17141a;
}

.sr-input:focus-visible ~ .box {
  box-shadow: 0 0 0 3px rgba(23, 20, 26, 0.35);
}

.box__svg {
  width: 16px;
  height: 16px;
  overflow: visible;
  transform: scale(0);
  opacity: 0;
}

.box__path {
  fill: none;
  stroke: #ffd23f;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-input:checked ~ .box .box__svg {
  animation: check-pop 600ms cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

@keyframes check-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  55% {
    transform: scale(1.3);
    opacity: 1;
  }
  75% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .box__svg {
    animation: none !important;
  }
  .sr-input:checked ~ .box .box__svg {
    transform: scale(1);
    opacity: 1;
  }
}
