/* KingdomKids design tokens. Brand palette from the KingdomKids by BrightWorld brief.
   Contrast-checked pairings are noted; never put body text on gold, coral, blue or green fills. */
:root {
  --purple: #7654C4;      /* Royal Purple — primary brand */
  --purple-ink: #5A3BA6;  /* AA on white (7.0:1) for text/links */
  --gold: #F4C64E;        /* Kingdom Gold — highlights (use navy text on it: 9.4:1) */
  --blue: #78C8EF;        /* Heavenly Blue — calm & exploration */
  --green: #65B879;       /* Creation Green — growth */
  --green-ink: #2E7A45;
  --cream: #FFF7E8;       /* Warm Cream — backgrounds */
  --coral: #F28C82;       /* Coral — friendly accents */
  --coral-ink: #B23A2E;
  --navy: #24324A;        /* Midnight Navy — text (13.0:1 on cream) */
  --white: #FFFFFF;

  --bg: var(--cream); --surface: var(--white); --surface-2: #F6EEFF; --ink: var(--navy); --ink-soft: #4A5670;
  --line: #E7DCCB; --accent: var(--purple); --accent-ink: var(--purple-ink); --on-accent: var(--white);
  --focus: #1B6FD8;

  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-size: 18px; --radius: 22px; --radius-sm: 14px; --gap: 16px; --tap: 52px;
  --shadow: 0 2px 0 rgba(36, 50, 74, .08), 0 8px 24px rgba(36, 50, 74, .08);
  --speed: 1;
}

/* ---- Age bands: same brand, different maturity ---- */
[data-band="seeds"] { --font-size: 21px; --radius: 30px; --tap: 72px; --gap: 20px; }
[data-band="explorers"] { --font-size: 19px; --radius: 24px; --tap: 60px; }
[data-band="adventurers"] { --font-size: 17px; --radius: 18px; --tap: 48px; --surface-2: #EEF4FB; }
[data-band="giants"] {
  --font-size: 16px; --radius: 12px; --radius-sm: 8px; --tap: 44px;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #161F30; --surface: #1F2A40; --surface-2: #27344F; --ink: #EEF1F7; --ink-soft: #AEB8CC; --line: #34425E;
  --accent: #9B7FE6; --accent-ink: #C3B0F5; --on-accent: #10172A; --focus: #F4C64E;
  --shadow: 0 1px 0 rgba(0,0,0,.25), 0 10px 30px rgba(0,0,0,.25);
}
[data-shell="adult"] { --font-size: 16px; --radius: 14px; --radius-sm: 10px; --tap: 44px; --bg: #FBF8F3; --surface-2: #F3EEFB; }

/* ---- Special modes ---- */
.mode-bedtime { --bg: #1B2238; --surface: #252E4A; --surface-2: #2E3858; --ink: #F1ECDF; --ink-soft: #C2C4D6; --line: #3B4566; --accent: #B9A3F0; --accent-ink: #D2C4F7; --on-accent: #1B2238; --speed: 1.6; }
.mode-sensory { --speed: 0; --shadow: none; --accent: #6E5BA8; --line: #D8D2C6; }
.mode-sensory * { animation: none !important; transition: none !important; }
.hc { --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #FFFFFF; --ink: #000000; --ink-soft: #111111; --line: #000000; --accent: #3B1F8C; --accent-ink: #3B1F8C; --on-accent: #FFFFFF; --focus: #D00000; }
.hc.mode-bedtime, [data-band="giants"].hc { --bg: #000; --surface: #000; --surface-2: #000; --ink: #FFF; --ink-soft: #FFF; --line: #FFF; --accent: #FFE14D; --accent-ink: #FFE14D; --on-accent: #000; --focus: #4DD0FF; }
.text-large { font-size: calc(var(--font-size) * 1.18) !important; }
.text-xlarge { font-size: calc(var(--font-size) * 1.4) !important; }
.dyslexia { --font-body: Verdana, Tahoma, "Trebuchet MS", sans-serif; --font-display: Verdana, Tahoma, sans-serif; letter-spacing: .04em; word-spacing: .14em; }
.dyslexia p, .dyslexia li { line-height: 1.8 !important; text-align: left !important; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001s !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; scroll-behavior: auto !important; } }
