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

.plans {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 72px;
  padding: 8px 4px;
  border-radius: 16px;
  border: 1px solid rgba(255, 247, 230, 0.18);
  background: rgba(255, 247, 230, 0.04);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), border-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.plan__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.plan__icon {
  font-size: 20px;
  line-height: 1;
}

.plan__name {
  font-size: 11px;
  font-weight: 700;
  color: #fff7e6;
}

.plan__price {
  font-size: 10px;
  color: rgba(255, 247, 230, 0.55);
}

.plan__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  fill: #2f6df6;
  transform: scale(0);
  opacity: 0;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.plan:has(.plan__radio:checked) {
  transform: translateY(-3px);
  border-color: #2f6df6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.plan:has(.plan__radio:checked) .plan__badge {
  transform: scale(1);
  opacity: 1;
}

.plan__radio:focus-visible ~ .plan__icon {
  outline: 2px solid #2f6df6;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .plan, .plan__badge {
    transition: none;
  }
}
