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

.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.3;
  font-family: inherit;
  color: #17141a;
}

.switch__track {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.14);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.switch__fill {
  position: absolute;
  inset: 0;
  background: #2f6df6;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 300ms ease-out;
}

.sr-input:checked ~ .switch__track .switch__fill {
  clip-path: circle(75% at 50% 50%);
}

.sr-input:focus-visible ~ .switch__track {
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.35);
}

.switch__knob {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.switch__icon {
  position: absolute;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #17141a;
  stroke-width: 1.6;
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.switch__icon--on {
  opacity: 0;
  transform: scale(0.6);
}

.switch__icon--off {
  opacity: 1;
  transform: scale(1);
}

.sr-input:checked ~ .switch__track .switch__icon--on {
  opacity: 1;
  transform: scale(1);
}

.sr-input:checked ~ .switch__track .switch__icon--off {
  opacity: 0;
  transform: scale(0.6);
}

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