/* ============================================================
   Design tokens + base reset
   Modern glass / dark theme
   ============================================================ */

:root {
  /* Surfaces */
  --bg-color: #0b1020;
  --bg-gradient: radial-gradient(1200px 800px at 15% -10%, #1a2348 0%, transparent 55%),
                 radial-gradient(1000px 700px at 110% 10%, #2a1b46 0%, transparent 50%),
                 linear-gradient(160deg, #0b1020 0%, #0a0e1c 100%);

  /* Glass panels */
  --panel-bg: rgba(255, 255, 255, 0.06);
  --panel-bg-strong: rgba(255, 255, 255, 0.09);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-blur: 16px;

  /* Accents */
  --first-color: #7c9cff;   /* primary indigo */
  --second-color: #9d7cff;  /* hover / secondary purple */
  --accent-cyan: #56d6e0;
  --accent-gradient: linear-gradient(135deg, #7c9cff 0%, #9d7cff 100%);

  /* Chart-friendly accents (used from JS where noted) */
  --chart-ink: #e8ecf3;         /* axis labels / text on dark */
  --chart-grid: rgba(255, 255, 255, 0.18);
  --chart-accent: #ff5d73;      /* replaces the old #A11111 red */

  /* Text */
  --text-color: #e8ecf3;
  --text-muted: #9aa4b2;
  --input-color: #9aa4b2;
  --grey90: #e8ecf3;            /* consumed by level-chart */

  /* Effects */
  --shadow-color: rgba(3, 6, 20, 0.55);
  --shadow-card: 0 18px 40px -18px rgba(3, 6, 20, 0.8);
  --radius: 16px;
  --radius-sm: 10px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
               "Helvetica Neue", Arial, sans-serif;
  --normal-font-size: 1rem;
  --small-font-size: 0.82rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Nicer focus ring across interactive elements */
:where(button, input, a):focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 2px;
}
