/* ------------------------------------------------------------------
   ScarStories theme for the games hub.
   Loaded after each game's own stylesheet: it re-points only the shared
   palette variables and the type, so the game layouts keep their logic.

   Tokens come from scarstories.life (royal blue / violet / charcoal):
     ground #08080d · panels #101017–#1b1a29 · sky #4169e1 · violet #9b4de0
     light ground #f0eef7 · cards #fffdfa · ink #292633
   ------------------------------------------------------------------ */

:root{
  --bg:#08080d;
  --panel:#101017;
  --panel-2:#1b1a29;
  --text:#f3f1fa;
  --muted:#aaa2bd;
  --line:#322d46;
  --line-strong:#4a4468;
  --accent:#4169e1;
  --accent-2:#9b4de0;

  /* game semantics — kept recognisable, warmed toward the brand */
  --correct:#3f9a72;
  --present:#c39a3f;
  --absent:#2a2836;
  --ok:#3f9a72;
  --warn:#9b4de0;
  --err:#e0785f;

  --sky:#4169e1;
  --violet:#9b4de0;
  --shadow:0 14px 45px -25px #0009;
  --radius:12px;

  /* board tints used by reversi / chess / solitaire */
  --felt:#141327;
  --light:#e9e4f6;
  --dark:#1e1b33;
}

html.light{
  --bg:#f0eef7;
  --panel:#fffdfa;
  --panel-2:#f7f4ff;
  --text:#292633;
  --muted:#625973;
  --line:#dfdaec;
  --line-strong:#c9c2dd;
  --accent:#3157cf;
  --accent-2:#7829ad;
  --correct:#2f7f5c;
  --present:#8d6a22;
  --absent:#e7e3f2;
  --ok:#2f7f5c;
  --warn:#7829ad;
  --err:#b8432f;
  --shadow:0 15px 40px -25px #35215e55;
  --felt:#e6e1f4;
  --light:#fffdfa;
  --dark:#3b3552;
}

/* Type: Quicksand everywhere, Tajawal for Arabic (same pairing as the site). */
body{
  font-family:'Quicksand','Avenir Next',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
html[lang="ar"] body,
[dir="rtl"] body{
  font-family:'Tajawal','Quicksand',-apple-system,BlinkMacSystemFont,sans-serif;
}
h1,h2,h3{letter-spacing:-.035em}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3{letter-spacing:0}

/* Soft brand glow behind the page, as on the site's own panels. */
body::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(60% 45% at 85% -5%, rgba(155,77,224,.16), transparent 70%),
    radial-gradient(55% 40% at 0% 100%, rgba(65,105,225,.14), transparent 70%);
}
html.light body::before{
  background:
    radial-gradient(60% 45% at 85% -5%, rgba(120,41,173,.07), transparent 70%),
    radial-gradient(55% 40% at 0% 100%, rgba(49,87,207,.06), transparent 70%);
}
