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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 2vw, 10px);
  justify-content: center;
}

.chip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 8px clamp(12px, 3.6vw, 18px);
  border-radius: 999px;
  border: 1.5px solid rgba(255, 247, 230, 0.35);
  cursor: pointer;
  transition: transform 120ms ease-out;
}

.chip:active {
  transform: scale(0.96);
}

.chip__fill {
  position: absolute;
  inset: 0;
  background: #0a4fe8;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.sr-input:checked ~ .chip__fill {
  transform: scaleX(1);
}

.sr-input:focus-visible ~ .chip__fill {
  box-shadow: inset 0 0 0 2px rgba(255, 247, 230, 0.6);
}

.chip__label {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: clamp(12px, 3.4vw, 13px);
  line-height: 1;
  font-family: inherit;
  color: #fff7e6;
  transition: color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.sr-input:checked ~ .chip__label {
  color: #fff7e6;
}

@media (prefers-reduced-motion: reduce) {
  .chip__fill, .chip__label, .chip {
    transition-duration: 1ms !important;
  }
}
