:root {
  color-scheme: dark;
  --bg: #0a0c13;
  --glow: rgba(109, 106, 247, .22);
  --surface: rgba(255, 255, 255, .05);
  --surface-strong: rgba(255, 255, 255, .10);
  --border: rgba(255, 255, 255, .11);
  --text: #e9ebf3;
  --muted: #9096ab;
  --accent: #6d6af7;
  --accent-2: #a855f7;
  --ok: #34d399;
  --danger: #ef4444;
  --glass: rgba(16, 18, 28, .66);
  --float: rgba(16, 18, 28, .88);
  --chip: rgba(8, 9, 14, .62);
  --radius: 20px;
  --shadow: 0 14px 40px rgba(0, 0, 0, .45);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Light theme: the system preference unless the user picked a theme with the toggle (data-theme). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f3f4fb;
    --glow: rgba(109, 106, 247, .18);
    --surface: rgba(0, 0, 0, .04);
    --surface-strong: rgba(0, 0, 0, .08);
    --border: rgba(20, 24, 50, .12);
    --text: #1a1d2b;
    --muted: #666d85;
    --glass: rgba(255, 255, 255, .78);
    --float: rgba(255, 255, 255, .6);
    --shadow: 0 14px 40px rgba(40, 44, 90, .18);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4fb;
  --glow: rgba(109, 106, 247, .18);
  --surface: rgba(0, 0, 0, .04);
  --surface-strong: rgba(0, 0, 0, .08);
  --border: rgba(20, 24, 50, .12);
  --text: #1a1d2b;
  --muted: #666d85;
  --glass: rgba(255, 255, 255, .78);
  --float: rgba(255, 255, 255, .6);
  --shadow: 0 14px 40px rgba(40, 44, 90, .18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font: 15px/1.4 var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 50% -10%, var(--glow), transparent 70%),
    radial-gradient(700px 400px at 100% 100%, rgba(168, 85, 247, .10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
