/*!
 * nalyx.themes.css — opt-in curated theme families for nalyx.
 *
 * Requires nalyx.css. Load it and switch families with
 * <html data-theme="ember">, data-nx-set-theme="ember", or
 * Nalyx.setTheme('ember'). Each family follows the family x shade matrix:
 * light is the base block, dark applies via data-shade="dark" or
 * prefers-color-scheme.
 *
 * Families: ember (gold on navy), lagoon (teal on deep sea),
 * forest (moss green), ocean (blue), crimson (rose red), dusk (violet).
 *
 * Each family also sets --gx-accent/--gx-accent-2 so pages using
 * nalyx.games.css recolour their shell automatically.
 */

/* ---------- ember ---------- */

[data-theme='ember'] {
  --bg: #f7f3ea;
  --surface: #ffffff;
  --surface-2: #f2ecdd;
  --surface-3: #e9e0cb;
  --hover: rgba(122, 94, 32, 0.07);
  --text: #241f15;
  --text-muted: #6d6248;
  --text-dim: #9a8f74;
  --border: #e0d7c2;
  --border-strong: #c9bb9b;
  --accent: #a8833c;
  --accent-strong: #8f6f2e;
  --accent-text: #7c5f26;
  --accent-bg: rgba(168, 131, 60, 0.12);
  --purple: #4d7dff;

  --gx-accent: var(--accent);
  --gx-accent-2: #4d7dff;
  --gx-bg-2: #faf6ec;
}

[data-theme='ember'][data-shade='dark'] {
  --bg: #0f0e0a;
  --surface: #1a170f;
  --surface-2: #221e13;
  --surface-3: #2c2618;
  --hover: rgba(232, 221, 196, 0.06);
  --text: #f0ead9;
  --text-muted: #a99f83;
  --text-dim: #7d735c;
  --border: #32291a;
  --border-strong: #4d4026;
  --accent: #d4b872;
  --accent-strong: #b89a52;
  --accent-text: #e8d5a3;
  --accent-bg: rgba(212, 184, 114, 0.14);
  --purple: #7ba0ff;
  --shadow-color: rgba(0, 0, 0, 0.45);
  color-scheme: dark;

  --gx-accent: var(--accent);
  --gx-accent-2: #4d7dff;
  --gx-bg-2: #171410;
}

@media (prefers-color-scheme: dark) {
  [data-theme='ember']:not([data-shade='light']) {
    --bg: #0f0e0a;
    --surface: #1a170f;
    --surface-2: #221e13;
    --surface-3: #2c2618;
    --hover: rgba(232, 221, 196, 0.06);
    --text: #f0ead9;
    --text-muted: #a99f83;
    --text-dim: #7d735c;
    --border: #32291a;
    --border-strong: #4d4026;
    --accent: #d4b872;
    --accent-strong: #b89a52;
    --accent-text: #e8d5a3;
    --accent-bg: rgba(212, 184, 114, 0.14);
    --purple: #7ba0ff;
    --shadow-color: rgba(0, 0, 0, 0.45);
    color-scheme: dark;

    --gx-accent: var(--accent);
    --gx-accent-2: #4d7dff;
    --gx-bg-2: #171410;
  }
}

/* ---------- lagoon ---------- */

[data-theme='lagoon'] {
  --bg: #edf5f4;
  --surface: #ffffff;
  --surface-2: #e2f0ee;
  --surface-3: #d2e7e4;
  --hover: rgba(20, 94, 84, 0.06);
  --text: #122a27;
  --text-muted: #3f615c;
  --text-dim: #6f8f8a;
  --border: #cfe0dd;
  --border-strong: #a8c7c2;
  --accent: #12897a;
  --accent-strong: #0e7268;
  --accent-text: #0d6a5d;
  --accent-bg: rgba(18, 137, 122, 0.1);
  --purple: #b0782a;

  --gx-accent: var(--accent);
  --gx-accent-2: #dca85a;
  --gx-bg-2: #f2f8f7;
}

[data-theme='lagoon'][data-shade='dark'] {
  --bg: #07111a;
  --surface: #0c1b22;
  --surface-2: #10222b;
  --surface-3: #162c37;
  --hover: rgba(234, 244, 244, 0.05);
  --text: #eaf4f4;
  --text-muted: #8faeab;
  --text-dim: #64847f;
  --border: #1a3038;
  --border-strong: #2a4a54;
  --accent: #6fd8c8;
  --accent-strong: #4bbfa9;
  --accent-text: #8fe6d8;
  --accent-bg: rgba(111, 216, 200, 0.12);
  --purple: #dca85a;
  --shadow-color: rgba(0, 0, 0, 0.45);
  color-scheme: dark;

  --gx-accent: var(--accent);
  --gx-accent-2: #dca85a;
  --gx-bg-2: #0c1820;
}

@media (prefers-color-scheme: dark) {
  [data-theme='lagoon']:not([data-shade='light']) {
    --bg: #07111a;
    --surface: #0c1b22;
    --surface-2: #10222b;
    --surface-3: #162c37;
    --hover: rgba(234, 244, 244, 0.05);
    --text: #eaf4f4;
    --text-muted: #8faeab;
    --text-dim: #64847f;
    --border: #1a3038;
    --border-strong: #2a4a54;
    --accent: #6fd8c8;
    --accent-strong: #4bbfa9;
    --accent-text: #8fe6d8;
    --accent-bg: rgba(111, 216, 200, 0.12);
    --purple: #dca85a;
    --shadow-color: rgba(0, 0, 0, 0.45);
    color-scheme: dark;

    --gx-accent: var(--accent);
    --gx-accent-2: #dca85a;
    --gx-bg-2: #0c1820;
  }
}

/* ---------- forest ---------- */

[data-theme='forest'] {
  --bg: #eff4ec;
  --surface: #ffffff;
  --surface-2: #e6efe1;
  --surface-3: #d8e5d1;
  --hover: rgba(38, 84, 30, 0.06);
  --text: #172512;
  --text-muted: #4a5f43;
  --text-dim: #748a6c;
  --border: #d3dfd0;
  --border-strong: #aec5a8;
  --accent: #4f8a3d;
  --accent-strong: #407331;
  --accent-text: #3c6c2e;
  --accent-bg: rgba(79, 138, 61, 0.11);
  --purple: #b0782a;

  --gx-accent: var(--accent);
  --gx-accent-2: #d8b26e;
  --gx-bg-2: #f4f8f1;
}

[data-theme='forest'][data-shade='dark'] {
  --bg: #0c130e;
  --surface: #131d15;
  --surface-2: #18251b;
  --surface-3: #203023;
  --hover: rgba(226, 240, 220, 0.05);
  --text: #e6f0e2;
  --text-muted: #93aa8e;
  --text-dim: #6a8266;
  --border: #223324;
  --border-strong: #38503b;
  --accent: #9dc88d;
  --accent-strong: #7fb069;
  --accent-text: #b6d9a8;
  --accent-bg: rgba(157, 200, 141, 0.12);
  --purple: #d8b26e;
  --shadow-color: rgba(0, 0, 0, 0.45);
  color-scheme: dark;

  --gx-accent: var(--accent);
  --gx-accent-2: #d8b26e;
  --gx-bg-2: #121c14;
}

@media (prefers-color-scheme: dark) {
  [data-theme='forest']:not([data-shade='light']) {
    --bg: #0c130e;
    --surface: #131d15;
    --surface-2: #18251b;
    --surface-3: #203023;
    --hover: rgba(226, 240, 220, 0.05);
    --text: #e6f0e2;
    --text-muted: #93aa8e;
    --text-dim: #6a8266;
    --border: #223324;
    --border-strong: #38503b;
    --accent: #9dc88d;
    --accent-strong: #7fb069;
    --accent-text: #b6d9a8;
    --accent-bg: rgba(157, 200, 141, 0.12);
    --purple: #d8b26e;
    --shadow-color: rgba(0, 0, 0, 0.45);
    color-scheme: dark;

    --gx-accent: var(--accent);
    --gx-accent-2: #d8b26e;
    --gx-bg-2: #121c14;
  }
}

/* ---------- ocean ---------- */

[data-theme='ocean'] {
  --bg: #ecf2f8;
  --surface: #ffffff;
  --surface-2: #e3edf6;
  --surface-3: #d4e4f1;
  --hover: rgba(28, 72, 132, 0.06);
  --text: #12233a;
  --text-muted: #45597a;
  --text-dim: #6f839f;
  --border: #d3dfec;
  --border-strong: #aec4dd;
  --accent: #2a6fd6;
  --accent-strong: #1f5cba;
  --accent-text: #205bb4;
  --accent-bg: rgba(42, 111, 214, 0.1);
  --purple: #7c3aed;

  --gx-accent: var(--accent);
  --gx-accent-2: #6fd8c8;
  --gx-bg-2: #f2f7fc;
}

[data-theme='ocean'][data-shade='dark'] {
  --bg: #0a121c;
  --surface: #101c29;
  --surface-2: #152435;
  --surface-3: #1c2f44;
  --hover: rgba(226, 238, 252, 0.05);
  --text: #e4eefb;
  --text-muted: #8fa6c6;
  --text-dim: #64799a;
  --border: #1e3047;
  --border-strong: #30496a;
  --accent: #7ab8ff;
  --accent-strong: #4d94f0;
  --accent-text: #9ecaff;
  --accent-bg: rgba(122, 184, 255, 0.13);
  --purple: #a78bfa;
  --shadow-color: rgba(0, 0, 0, 0.45);
  color-scheme: dark;

  --gx-accent: var(--accent);
  --gx-accent-2: #6fd8c8;
  --gx-bg-2: #101c2a;
}

@media (prefers-color-scheme: dark) {
  [data-theme='ocean']:not([data-shade='light']) {
    --bg: #0a121c;
    --surface: #101c29;
    --surface-2: #152435;
    --surface-3: #1c2f44;
    --hover: rgba(226, 238, 252, 0.05);
    --text: #e4eefb;
    --text-muted: #8fa6c6;
    --text-dim: #64799a;
    --border: #1e3047;
    --border-strong: #30496a;
    --accent: #7ab8ff;
    --accent-strong: #4d94f0;
    --accent-text: #9ecaff;
    --accent-bg: rgba(122, 184, 255, 0.13);
    --purple: #a78bfa;
    --shadow-color: rgba(0, 0, 0, 0.45);
    color-scheme: dark;

    --gx-accent: var(--accent);
    --gx-accent-2: #6fd8c8;
    --gx-bg-2: #101c2a;
  }
}

/* ---------- crimson ---------- */

[data-theme='crimson'] {
  --bg: #f9f0f0;
  --surface: #ffffff;
  --surface-2: #f6e6e6;
  --surface-3: #f0d7d7;
  --hover: rgba(140, 32, 40, 0.06);
  --text: #301414;
  --text-muted: #7a4a4a;
  --text-dim: #a07474;
  --border: #ead3d3;
  --border-strong: #d8abab;
  --accent: #c93a42;
  --accent-strong: #a82c33;
  --accent-text: #a82c33;
  --accent-bg: rgba(201, 58, 66, 0.1);
  --purple: #b05a8a;

  --gx-accent: var(--accent);
  --gx-accent-2: #f0b58a;
  --gx-bg-2: #fbf4f3;
}

[data-theme='crimson'][data-shade='dark'] {
  --bg: #150c0e;
  --surface: #201114;
  --surface-2: #2a161a;
  --surface-3: #381d21;
  --hover: rgba(252, 230, 230, 0.05);
  --text: #f8e8e6;
  --text-muted: #c09a96;
  --text-dim: #8f6d6a;
  --border: #3d1f22;
  --border-strong: #5c3034;
  --accent: #f0888d;
  --accent-strong: #e5484d;
  --accent-text: #f7aba9;
  --accent-bg: rgba(240, 136, 141, 0.13);
  --purple: #d78cc4;
  --shadow-color: rgba(0, 0, 0, 0.45);
  color-scheme: dark;

  --gx-accent: var(--accent);
  --gx-accent-2: #f0b58a;
  --gx-bg-2: #1e1114;
}

@media (prefers-color-scheme: dark) {
  [data-theme='crimson']:not([data-shade='light']) {
    --bg: #150c0e;
    --surface: #201114;
    --surface-2: #2a161a;
    --surface-3: #381d21;
    --hover: rgba(252, 230, 230, 0.05);
    --text: #f8e8e6;
    --text-muted: #c09a96;
    --text-dim: #8f6d6a;
    --border: #3d1f22;
    --border-strong: #5c3034;
    --accent: #f0888d;
    --accent-strong: #e5484d;
    --accent-text: #f7aba9;
    --accent-bg: rgba(240, 136, 141, 0.13);
    --purple: #d78cc4;
    --shadow-color: rgba(0, 0, 0, 0.45);
    color-scheme: dark;

    --gx-accent: var(--accent);
    --gx-accent-2: #f0b58a;
    --gx-bg-2: #1e1114;
  }
}

/* ---------- dusk ---------- */

[data-theme='dusk'] {
  --bg: #f1eff8;
  --surface: #ffffff;
  --surface-2: #e9e6f5;
  --surface-3: #dcd7f0;
  --hover: rgba(70, 44, 140, 0.06);
  --text: #1e1830;
  --text-muted: #564c78;
  --text-dim: #7f749f;
  --border: #ddd8ec;
  --border-strong: #beb4dd;
  --accent: #6d4fd0;
  --accent-strong: #5838bd;
  --accent-text: #5838bd;
  --accent-bg: rgba(109, 79, 208, 0.1);
  --purple: #c05a8a;

  --gx-accent: var(--accent);
  --gx-accent-2: #f2a1c0;
  --gx-bg-2: #f6f4fb;
}

[data-theme='dusk'][data-shade='dark'] {
  --bg: #0e0c16;
  --surface: #171423;
  --surface-2: #1e1a30;
  --surface-3: #292340;
  --hover: rgba(238, 232, 255, 0.05);
  --text: #ece8fa;
  --text-muted: #a79ec9;
  --text-dim: #79709e;
  --border: #2b2547;
  --border-strong: #423a6b;
  --accent: #b3a1f7;
  --accent-strong: #9178f0;
  --accent-text: #cabdf9;
  --accent-bg: rgba(179, 161, 247, 0.14);
  --purple: #f2a1c0;
  --shadow-color: rgba(0, 0, 0, 0.45);
  color-scheme: dark;

  --gx-accent: var(--accent);
  --gx-accent-2: #f2a1c0;
  --gx-bg-2: #161226;
}

@media (prefers-color-scheme: dark) {
  [data-theme='dusk']:not([data-shade='light']) {
    --bg: #0e0c16;
    --surface: #171423;
    --surface-2: #1e1a30;
    --surface-3: #292340;
    --hover: rgba(238, 232, 255, 0.05);
    --text: #ece8fa;
    --text-muted: #a79ec9;
    --text-dim: #79709e;
    --border: #2b2547;
    --border-strong: #423a6b;
    --accent: #b3a1f7;
    --accent-strong: #9178f0;
    --accent-text: #cabdf9;
    --accent-bg: rgba(179, 161, 247, 0.14);
    --purple: #f2a1c0;
    --shadow-color: rgba(0, 0, 0, 0.45);
    color-scheme: dark;

    --gx-accent: var(--accent);
    --gx-accent-2: #f2a1c0;
    --gx-bg-2: #161226;
  }
}
