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

.sz {
  display: flex;
  gap: 12px;
  border: 0;
  margin: 0;
  padding: 0;
}

.sz__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.sz__chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff7e6;
  border: 2px solid rgba(23, 20, 26, 0.12);
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  color: #17141a;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: scale(1);
  transition: transform 600ms cubic-bezier(0.2, 1.4, 0.4, 1), border-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1), color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.sz__chip:has(.sz__input:checked) {
  border-color: #2f6df6;
  border-width: 3px;
  color: #2f6df6;
  animation: sz-press-jelly 600ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes sz-press {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.84);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes sz-press-jelly {
  0% {
    transform: scaleX(1) scaleY(1);
  }
  35% {
    transform: scaleX(0.86) scaleY(1.08);
  }
  65% {
    transform: scaleX(1.08) scaleY(0.94);
  }
  85% {
    transform: scaleX(0.97) scaleY(1.03);
  }
  100% {
    transform: scaleX(1) scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sz__chip {
    transition: none;
    animation: none !important;
  }
}
