/* MIT License: see LICENSE at project root. */
/* Gedeelde UI-tokens, basiselementen en utilityklassen. Dit bestand is het
   canonieke tokenbestand: game-frontends buiten dit repository lezen de
   `--game-*`-waarden hieruit, dus het pad en de custom properties blijven staan. */

:root {
  color-scheme: light;
  font-family: "Space Grotesk", "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  background-color: #f5f7fb;
  color: #0f172a;
  --bg: #f5f7fb;
  --card: #ffffff;
  --card-2: #f1f5f9;
  --border: rgba(15, 23, 42, 0.14);
  --surface-1: rgba(15, 23, 42, 0.04);
  --surface-2: rgba(15, 23, 42, 0.06);
  --surface-3: rgba(15, 23, 42, 0.1);
  --accent: #14b8a6;
  --accent-2: #fb923c;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.72);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --focus: 0 0 0 2px rgba(20, 184, 166, 0.45);
  --backdrop: rgba(245, 247, 251, 0.88);
  --modal-backdrop: rgba(15, 23, 42, 0.58);
  --code-bg: rgba(15, 23, 42, 0.06);
  --code-border: rgba(15, 23, 42, 0.14);
  --page-glow-1: rgba(20, 184, 166, 0.16);
  --page-glow-2: rgba(251, 146, 60, 0.18);
  --page-bg-top: #f5f7fb;
  --page-bg-bottom: #eef2f7;
  --game-surface: rgba(255, 255, 255, 0.9);
  --game-surface-strong: #ffffff;
  --game-border: rgba(15, 23, 42, 0.16);
  --game-cell: rgba(15, 23, 42, 0.06);
  --game-cell-hover: rgba(20, 184, 166, 0.16);
  --game-grid: #0f766e;
  --game-grid-deep: #0b5e59;
  --game-track: rgba(15, 23, 42, 0.05);
  --game-track-border: rgba(15, 23, 42, 0.14);
  --game-ship: #475569;
  --game-hit: #e11d48;
  --game-miss: #94a3b8;
  --game-pending: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 20% 20%, var(--page-glow-1), transparent 45%),
    radial-gradient(ellipse at 80% 0%, var(--page-glow-2), transparent 40%),
    linear-gradient(180deg, var(--page-bg-top) 0%, var(--page-bg-bottom) 100%);
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    background-color: #0b1220;
    color: #eef2fb;
    --bg: #0b1220;
    --card: #0f172a;
    --card-2: #141f35;
    --border: rgba(255, 255, 255, 0.12);
    --surface-1: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --surface-3: rgba(255, 255, 255, 0.1);
    --accent: #2de2c1;
    --accent-2: #ffb37a;
    --text: #eef2fb;
    --muted: #b8c5de;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --focus: 0 0 0 2px rgba(45, 226, 193, 0.5);
    --backdrop: rgba(11, 18, 32, 0.95);
    --modal-backdrop: rgba(5, 8, 15, 0.7);
    --code-bg: rgba(0, 0, 0, 0.35);
    --code-border: rgba(255, 255, 255, 0.12);
    --page-glow-1: rgba(45, 226, 193, 0.08);
    --page-glow-2: rgba(255, 179, 122, 0.12);
    --page-bg-top: #0b1220;
    --page-bg-bottom: #0d1626;
    --game-surface: rgba(9, 15, 27, 0.7);
    --game-surface-strong: #0f172a;
    --game-border: rgba(255, 255, 255, 0.16);
    --game-cell: rgba(255, 255, 255, 0.08);
    --game-cell-hover: rgba(45, 226, 193, 0.18);
    --game-grid: #0f3b3a;
    --game-grid-deep: #0b2e31;
    --game-track: rgba(255, 255, 255, 0.06);
    --game-track-border: rgba(255, 255, 255, 0.14);
    --game-ship: #94a3b8;
    --game-hit: #f43f5e;
    --game-miss: #e2e8f0;
    --game-pending: #f59e0b;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.hint {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.lede {
  color: var(--muted);
  margin: 0.2rem 0 0;
}

.site-footer {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 1rem 1.25rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer p {
  margin: 0;
}
