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

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 3vw, 14px);
  cursor: not-allowed;
}

.switch__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: not-allowed;
}

.switch__track {
  position: relative;
  overflow: hidden;
  width: clamp(44px, 12vw, 52px);
  height: clamp(24px, 6.5vw, 28px);
  border-radius: 999px;
  filter: none;
  opacity: 1;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.switch__bg {
  position: absolute;
  inset: 0;
  background: #fff7e6;
  opacity: 0.55;
}

.switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: clamp(18px, 5vw, 22px);
  height: clamp(18px, 5vw, 22px);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.switch__label {
  color: #fff7e6;
  font-weight: 600;
  font-size: clamp(14px, 4vw, 17px);
  line-height: 1;
  font-family: inherit;
}

.switch__input:disabled ~ .switch__track {
  filter: grayscale(1);
  opacity: 0.45;
}

.switch__input:disabled ~ .switch__label {
  opacity: 0.55;
}

.switch.is-demo .switch__track {
  animation: fade-loop 2s ease-out infinite, shadow-fade-loop 2s ease-out infinite;
}

.switch.is-demo .switch__knob {
  animation: shadow-fade-loop 2s ease-out infinite;
}

.switch.is-demo .switch__label {
  animation: label-fade-loop 2s ease-out infinite;
}

@keyframes fade-loop {
  0%, 20% {
    filter: grayscale(0);
    opacity: 1;
  }
  50%, 70% {
    filter: grayscale(1);
    opacity: 0.45;
  }
  100% {
    filter: grayscale(0);
    opacity: 1;
  }
}
@keyframes shadow-fade-loop {
  0%, 20% {
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  }
  50%, 70% {
    box-shadow: 0 2px 4px rgba(23, 20, 26, 0.12);
  }
  100% {
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  }
}
@keyframes label-fade-loop {
  0%, 20% {
    opacity: 1;
  }
  50%, 70% {
    opacity: 0.55;
  }
  100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .switch.is-demo .switch__track, .switch.is-demo .switch__knob, .switch.is-demo .switch__label {
    animation: none !important;
  }
}
