html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  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;
}

.cards {
  display: flex;
  gap: clamp(8px, 2.4vw, 12px);
  border: 0;
  margin: 0;
  padding: 0;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(10px, 3vw, 14px) clamp(12px, 3.6vw, 18px);
  border-radius: 16px;
  border: 2px solid rgba(255, 247, 230, 0.22);
  background: rgba(255, 247, 230, 0.06);
  cursor: pointer;
  transition: border-color 300ms ease-out, background 300ms ease-out;
}

.card:has(.sr-input:checked) {
  border-color: #2f6df6;
  background: rgba(255, 247, 230, 0.14);
}

.card__badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 247, 230, 0.4);
  display: grid;
  place-items: center;
  transition: border-color 300ms ease-out, background 300ms ease-out;
}

.card__badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff7e6;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.card:has(.sr-input:checked) .card__badge {
  border-color: #2f6df6;
  background: #2f6df6;
}

.card:has(.sr-input:checked) .card__badge svg {
  opacity: 1;
  transform: scale(1);
  stroke: #17141a;
}

.card__title {
  font-weight: 700;
  font-size: clamp(12px, 3.4vw, 14px);
  line-height: 1;
  font-family: inherit;
  color: #fff7e6;
}

.sr-input:focus-visible ~ .card__badge {
  box-shadow: 0 0 0 3px rgba(255, 247, 230, 0.5);
}

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