/* assets/theme/site-theme.css
 *
 * animesh.net shared colour/theme tokens. Moved out of index.html (2026-09-28)
 * so type-B games (games that match the site's look) can include it instead of
 * duplicating the CSS. See assets/theme/site-theme.js for the JS API that reads,
 * writes and applies these tokens, and the playbook section 6:
 * project_docs/animesh-net/WEB_GAME_PLAYBOOK.md
 *
 * Sets CSS custom properties on <html> based on:
 *   data-style   sticker (default) | insert-coin | lab-notebook | board-game
 *   data-palette mint (default) | bubblegum | cobalt | lilac   (Sticker style only)
 *   data-theme   light | dark | unset (follow prefers-color-scheme)
 *
 * A consumer must set these attributes itself (see site-theme.js apply()) —
 * this file only defines what each combination looks like.
 */
    :root {
      --font-display: 'Fraunces', Georgia, serif;
      --font-body: 'Instrument Sans', system-ui, sans-serif;

      --bg: #bff0d8;
      --card: #ffffff;
      --text: #13172e;
      --outline: #13172e;
      --hi: #d6246e;
      --pill: #ffd23f;
      --pill-text: #13172e;
      --blob: #7b5cff;
      --blob-text: #ffffff;
      --invert-bg: #13172e;
      --invert-text: #ffffff;
      --t1: #7b5cff;
      --t2: #ff5fa2;
      --t3: #ffd23f;
    }
    :root[data-theme="dark"] {
      --bg: #0f2a20;
      --card: #17362a;
      --text: #eafff4;
      --outline: #06140f;
      --hi: #ff6fa8;
      --pill: #ffd23f;
      --pill-text: #13172e;
      --blob: #9b86ff;
      --blob-text: #13172e;
      --invert-bg: #06140f;
      --invert-text: #eafff4;
    }
    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) {
        --bg: #0f2a20;
        --card: #17362a;
        --text: #eafff4;
        --outline: #06140f;
        --hi: #ff6fa8;
        --pill: #ffd23f;
        --pill-text: #13172e;
        --blob: #9b86ff;
        --blob-text: #13172e;
        --invert-bg: #06140f;
        --invert-text: #eafff4;
      }
    }

    /* ---- Sticker Sheet palettes (data-palette applies only while data-style="sticker",
       or when data-style is unset, which is the default). Placed after the dark blocks
       above so a same-specificity :root[...] tie resolves in favour of the chosen
       palette instead of an incidental system/explicit dark override. Single-mode:
       no dark variant, per the owner's brief. ---- */
    :root[data-palette="bubblegum"] {
      --bg: #ffd6e7; --text: #1a1433; --outline: #1a1433; --card: #ffffff;
      --hi: #2f4bff; --pill: #c6f432; --pill-text: #1a1433;
      --blob: #ff7a1a; --blob-text: #1a1433;
      --invert-bg: #1a1433; --invert-text: #ffffff;
      --t1: #2f4bff; --t2: #ff7a1a; --t3: #c6f432;
    }
    :root[data-palette="cobalt"] {
      /* Ground and card diverge sharply here, so text-on-ground (--text) and
         text-on-card/pill (--outline) can't share one value like the other palettes. */
      --bg: #2b3bff; --text: #ffffff; --outline: #0c0c29; --card: #ffffff;
      --hi: #d4ff3d; --pill: #d4ff3d; --pill-text: #0c0c29;
      --blob: #ff8fd1; --blob-text: #0c0c29;
      --invert-bg: #0c0c29; --invert-text: #ffffff;
      --t1: #ff8fd1; --t2: #d4ff3d; --t3: #ffb13d;
    }
    :root[data-palette="lilac"] {
      --bg: #d8cbff; --text: #1b1530; --outline: #1b1530; --card: #ffffff;
      --hi: #e8401f; --pill: #c6f432; --pill-text: #1b1530;
      --blob: #36b6ff; --blob-text: #1b1530;
      --invert-bg: #1b1530; --invert-text: #ffffff;
      --t1: #e8401f; --t2: #36b6ff; --t3: #c6f432;
    }

    /* ---- Style: Insert Coin (arcade cabinet, dark, single-mode) ---- */
    :root[data-style="insert-coin"] {
      --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
      --font-body: 'Fira Code', 'Courier New', monospace;
      --bg: #0d0b1a; --text: #ece6ff; --outline: #ffd23f; --card: #1a1533;
      --hi: #ff4fa3; --pill: #ffd23f; --pill-text: #0d0b1a;
      --blob: #ff4fa3; --blob-text: #1a0b1a;
      --invert-bg: #ff4fa3; --invert-text: #0d0b1a;
      --t1: #07231f; --t2: #26091a; --t3: #2a2208;
    }

    /* ---- Style: Lab Notebook (specimen tags, light, single-mode) ---- */
    :root[data-style="lab-notebook"] {
      --font-display: 'Fira Code', 'Courier New', monospace;
      --font-body: 'Fira Code', 'Courier New', monospace;
      --bg: #f4f6ef; --text: #1c2a55; --outline: #1c2a55; --card: #fffdf5;
      --hi: #b8352e; --pill: #fffdf5; --pill-text: #1c2a55;
      --blob: #ffe27a; --blob-text: #1c2a55;
      --invert-bg: #1c2a55; --invert-text: #fffdf5;
      --t1: #dde5f0; --t2: #ffe27a; --t3: #cfe8d8;
    }

    /* ---- Style: Board Game (roll to play, light, single-mode) ---- */
    :root[data-style="board-game"] {
      --font-display: 'Fraunces', Georgia, serif;
      --font-body: 'Instrument Sans', system-ui, sans-serif;
      --bg: #ffe9c7; --text: #3b2352; --outline: #3b2352; --card: #ffffff;
      --hi: #c4432f; --pill: #ffffff; --pill-text: #3b2352;
      --blob: #ffffff; --blob-text: #3b2352;
      --invert-bg: #3b2352; --invert-text: #ffe9c7;
      --t1: #7fb8e6; --t2: #ff7b6b; --t3: #ffd35c;
    }

    /* ---- Home match (data-style="home"): the home page's own look, from localStorage
       home:palette + home:ultra (see SiteTheme.getHomeChoice). data-hp = palette,
       data-hu = on|off (Ultra; the home button calls it Dark/Light). Ground, text and
       highlight are the home page's exactly; gold is hand-picked per combination
       (same table as curiowords/web/js/core/site_theme.js). Card is the ground pushed
       away from the text colour so text on a card always has more contrast than on the ground. ---- */
    :root[data-style="home"][data-hp="acid"][data-hu="off"] {
      --bg: #E4FF3A; --text: #111111; --outline: #111111; --card: color-mix(in srgb, #E4FF3A 55%, #ffffff 45%);
      --hi: #111111; --pill: #4801FF; --pill-text: #ffffff;
      --blob: #111111; --blob-text: #ffffff;
      --home-ok: #0B6B3A; --home-bad: #C2122B;
      --invert-bg: #111111; --invert-text: #E4FF3A;
      --t1: color-mix(in srgb, #111111 22%, #E4FF3A); --t2: color-mix(in srgb, #4801FF 22%, #E4FF3A); --t3: color-mix(in srgb, #111111 12%, #E4FF3A);
    }
    :root[data-style="home"][data-hp="acid"][data-hu="on"] {
      --bg: #111111; --text: #E4FF3A; --outline: #E4FF3A; --card: color-mix(in srgb, #111111 75%, #000000 25%);
      --hi: #E4FF3A; --pill: #FF8FC0; --pill-text: #111111;
      --blob: #E4FF3A; --blob-text: #111111;
      --home-ok: #3DD6A0; --home-bad: #FF6B6B;
      --invert-bg: #E4FF3A; --invert-text: #111111;
      --t1: color-mix(in srgb, #E4FF3A 22%, #111111); --t2: color-mix(in srgb, #FF8FC0 22%, #111111); --t3: color-mix(in srgb, #E4FF3A 12%, #111111);
    }
    :root[data-style="home"][data-hp="violet"][data-hu="off"] {
      --bg: #F2F2F2; --text: #000000; --outline: #000000; --card: color-mix(in srgb, #F2F2F2 55%, #ffffff 45%);
      --hi: #4801FF; --pill: #C2410C; --pill-text: #ffffff;
      --blob: #4801FF; --blob-text: #ffffff;
      --home-ok: #0F766E; --home-bad: #C81E1E;
      --invert-bg: #000000; --invert-text: #F2F2F2;
      --t1: color-mix(in srgb, #4801FF 22%, #F2F2F2); --t2: color-mix(in srgb, #C2410C 22%, #F2F2F2); --t3: color-mix(in srgb, #000000 12%, #F2F2F2);
    }
    :root[data-style="home"][data-hp="violet"][data-hu="on"] {
      --bg: #4801FF; --text: #FFFFFF; --outline: #FFFFFF; --card: color-mix(in srgb, #4801FF 75%, #000000 25%);
      --hi: #FFFFFF; --pill: #FFD23F; --pill-text: #111111;
      --blob: #FFFFFF; --blob-text: #111111;
      --home-ok: #7CF0C0; --home-bad: #FF9AB0;
      --invert-bg: #FFFFFF; --invert-text: #4801FF;
      --t1: color-mix(in srgb, #FFFFFF 22%, #4801FF); --t2: color-mix(in srgb, #FFD23F 22%, #4801FF); --t3: color-mix(in srgb, #FFFFFF 12%, #4801FF);
    }
    :root[data-style="home"][data-hp="signal"][data-hu="off"] {
      --bg: #F2F2F2; --text: #111111; --outline: #111111; --card: color-mix(in srgb, #F2F2F2 55%, #ffffff 45%);
      --hi: #E84A00; --pill: #1F4FD1; --pill-text: #ffffff;
      --blob: #E84A00; --blob-text: #111111;
      --home-ok: #0F766E; --home-bad: #A8123E;
      --invert-bg: #111111; --invert-text: #F2F2F2;
      --t1: color-mix(in srgb, #E84A00 22%, #F2F2F2); --t2: color-mix(in srgb, #1F4FD1 22%, #F2F2F2); --t3: color-mix(in srgb, #111111 12%, #F2F2F2);
    }
    :root[data-style="home"][data-hp="signal"][data-hu="on"] {
      --bg: #FF4D00; --text: #111111; --outline: #111111; --card: color-mix(in srgb, #FF4D00 55%, #ffffff 45%);
      --hi: #111111; --pill: #4801FF; --pill-text: #ffffff;
      --blob: #111111; --blob-text: #ffffff;
      --home-ok: #05342A; --home-bad: #5C0714;
      --invert-bg: #111111; --invert-text: #FF4D00;
      --t1: color-mix(in srgb, #111111 22%, #FF4D00); --t2: color-mix(in srgb, #4801FF 22%, #FF4D00); --t3: color-mix(in srgb, #111111 12%, #FF4D00);
    }
    :root[data-style="home"][data-hp="mint"][data-hu="off"] {
      --bg: #BFF0D8; --text: #13172E; --outline: #13172E; --card: color-mix(in srgb, #BFF0D8 55%, #ffffff 45%);
      --hi: #D6246E; --pill: #7355F7; --pill-text: #ffffff; /* was #7B5CFF: white on it measured 4.36:1 */
      --blob: #D6246E; --blob-text: #ffffff;
      --home-ok: #0F766E; --home-bad: #B42318;
      --invert-bg: #13172E; --invert-text: #BFF0D8;
      --t1: color-mix(in srgb, #D6246E 22%, #BFF0D8); --t2: color-mix(in srgb, #7B5CFF 22%, #BFF0D8); --t3: color-mix(in srgb, #13172E 12%, #BFF0D8);
    }
    :root[data-style="home"][data-hp="mint"][data-hu="on"] {
      --bg: #D6246E; --text: #FFFFFF; --outline: #FFFFFF; --card: color-mix(in srgb, #D6246E 75%, #000000 25%);
      --hi: #FFFFFF; --pill: #FFD23F; --pill-text: #111111;
      --blob: #FFFFFF; --blob-text: #111111;
      --home-ok: #BFF0D8; --home-bad: #2A0614;
      --invert-bg: #FFFFFF; --invert-text: #D6246E;
      --t1: color-mix(in srgb, #FFFFFF 22%, #D6246E); --t2: color-mix(in srgb, #FFD23F 22%, #D6246E); --t3: color-mix(in srgb, #FFFFFF 12%, #D6246E);
    }
    :root[data-style="home"][data-hp="cobalt"][data-hu="off"] {
      --bg: #FFFFFF; --text: #0B1A66; --outline: #0B1A66; --card: color-mix(in srgb, #FFFFFF 55%, #ffffff 45%);
      --hi: #1F3FFF; --pill: #C2410C; --pill-text: #ffffff;
      --blob: #1F3FFF; --blob-text: #ffffff;
      --home-ok: #0F766E; --home-bad: #B3123A;
      --invert-bg: #0B1A66; --invert-text: #FFFFFF;
      --t1: color-mix(in srgb, #1F3FFF 22%, #FFFFFF); --t2: color-mix(in srgb, #C2410C 22%, #FFFFFF); --t3: color-mix(in srgb, #0B1A66 12%, #FFFFFF);
    }
    :root[data-style="home"][data-hp="cobalt"][data-hu="on"] {
      --bg: #1F3FFF; --text: #FFFFFF; --outline: #FFFFFF; --card: color-mix(in srgb, #1F3FFF 75%, #000000 25%);
      --hi: #FFFFFF; --pill: #FFD23F; --pill-text: #111111;
      --blob: #FFFFFF; --blob-text: #111111;
      --home-ok: #7CF0C0; --home-bad: #FFB3C4;
      --invert-bg: #FFFFFF; --invert-text: #1F3FFF;
      --t1: color-mix(in srgb, #FFFFFF 22%, #1F3FFF); --t2: color-mix(in srgb, #FFD23F 22%, #1F3FFF); --t3: color-mix(in srgb, #FFFFFF 12%, #1F3FFF);
    }
    :root[data-style="home"][data-hp="night"][data-hu="off"] {
      --bg: #121214; --text: #EDEDED; --outline: #EDEDED; --card: color-mix(in srgb, #121214 75%, #000000 25%);
      --hi: #D4FF3A; --pill: #FFB347; --pill-text: #111111;
      --blob: #D4FF3A; --blob-text: #111111;
      --home-ok: #3DD6C8; --home-bad: #FF6B7A;
      --invert-bg: #EDEDED; --invert-text: #121214;
      --t1: color-mix(in srgb, #D4FF3A 22%, #121214); --t2: color-mix(in srgb, #FFB347 22%, #121214); --t3: color-mix(in srgb, #EDEDED 12%, #121214);
    }
    :root[data-style="home"][data-hp="night"][data-hu="on"] {
      --bg: #FF3D7F; --text: #121214; --outline: #121214; --card: color-mix(in srgb, #FF3D7F 55%, #ffffff 45%);
      --hi: #121214; --pill: #4801FF; --pill-text: #ffffff;
      --blob: #121214; --blob-text: #ffffff;
      --home-ok: #05342A; --home-bad: #5C0714;
      --invert-bg: #121214; --invert-text: #FF3D7F;
      --t1: color-mix(in srgb, #121214 22%, #FF3D7F); --t2: color-mix(in srgb, #4801FF 22%, #FF3D7F); --t3: color-mix(in srgb, #121214 12%, #FF3D7F);
    }

