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

.sq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #17141a;
}

.sq__sizes {
  display: flex;
  gap: 8px;
}

.sq__chip {
  position: relative;
}

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

.sq__chip span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid rgba(23, 20, 26, 0.18);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), background-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1), color 220ms cubic-bezier(0.2, 1.4, 0.4, 1), border-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.sq__radio:checked ~ span {
  background: #4cd4a6;
  border-color: #4cd4a6;
  color: #fff;
  transform: scale(1.08);
}

.sq__radio:focus-visible ~ span {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.sq__qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sq__btn {
  appearance: none;
  border: 1px solid rgba(23, 20, 26, 0.2);
  background: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.sq__btn:active {
  transform: scale(0.9);
}

.sq__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sq__num {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.sq__total {
  font-size: 13px;
  color: rgba(23, 20, 26, 0.7);
}

.sq__total strong {
  color: #17141a;
}

@media (prefers-reduced-motion: reduce) {
  .sq__chip span, .sq__btn {
    transition: none;
  }
}
