:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(circle at 50% 30%, #14181c 0%, #0a0c0e 60%, #050607 100%);
  color: #e8eef2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  cursor: pointer;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f4f7f9;
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.toggle:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.toggle:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 4px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3fe08a;
  box-shadow: 0 0 12px 2px rgba(63, 224, 138, 0.7);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.glow {
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 40px 4px rgba(63, 224, 138, 0.12);
  transition: box-shadow 0.35s ease;
}

.toggle.offline .dot {
  background: #6b7280;
  box-shadow: 0 0 8px 1px rgba(107, 114, 128, 0.5);
}

.toggle.offline .glow {
  box-shadow: 0 0 30px 4px rgba(107, 114, 128, 0.08);
}

.toggle.offline {
  border-color: rgba(255, 255, 255, 0.06);
  color: #9aa4ad;
}

.hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(232, 238, 242, 0.35);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
