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

.scene {
  display: grid;
  place-items: center;
  gap: 16px;
}

.togglePanel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.08);
}

.toggleLabel {
  font-size: 11px;
  color: rgba(255, 247, 230, 0.78);
  white-space: nowrap;
}

.toggleSwitch {
  position: relative;
  width: 36px;
  height: 20px;
  padding: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.22);
  cursor: pointer;
}
.toggleSwitch[aria-checked=true] {
  background: #4cd4a6;
}
.toggleSwitch:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.toggleKnob {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff7e6;
  transform: translateX(0px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  cursor: pointer;
}
.btn:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 3px;
}
.btn:disabled {
  cursor: default;
}

.btnContent {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 18px;
}

.btnSpinnerWrap,
.btnDotWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  opacity: 0;
}

.btnRing {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid rgba(255, 247, 230, 0.28);
  border-top-color: #fff7e6;
}

.btnDot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff7e6;
}

.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 340px) {
  .btn {
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }
  .toggleLabel {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toggleKnob {
    transition: none;
  }
}
