/* site_bg.css: the ONE place the shinygen.ai page background and its surface colours live (lane sitebg1,
   owner 2026-11-23: "a little more darkgray instead of black ... maybe even a nice dark gray and checkered
   retro cart background somewhat similar to shinyrelay.com").

   Every marketing page links this sheet (home + its 16 language copies, the landings, compare / faq /
   what-is / pricing, docs, the blog, the catalogue game info pages). Each page still carries its own inline
   :root tokens as a fallback; the selectors here (html:root, html body) out-rank those inline `:root` /
   `body` rules, so this sheet wins wherever it sits in the <head>. Not linked by /play, the /gen/ play
   pages, the app canvas, web_login or the legal pages (they keep their own light/dark scheme).

   The pattern is CSS only: a two-tone checker (repeating-conic-gradient, 80px cells, so it is crisp at
   1x and 2x) plus a tiny inline SVG of cartridge outlines on the lighter cells. No image download.

   ★ CHOOSING THE LOOK: change the single `--sg-look:` line below to one of
         --sg-look: var(--sg-look-a);   A  plain dark gray, no pattern
         --sg-look: var(--sg-look-b);   B  dark gray, very subtle checker + carts (the committed default)
         --sg-look: var(--sg-look-c);   C  dark gray, bolder checker + carts, closer to shinyrelay.com
*/
html:root {
    --sg-look: var(--sg-look-b);

    /* page base: dark gray (was #0a0a0f, near black) */
    --sg-bg: #18191f;
    /* checker: tone 1 is --sg-bg; tone 2 per look */
    --sg-chk-b: #1a1b21;
    --sg-chk-c: #1e1f27;
    /* surfaces sit clearly above every checker tone */
    --sg-surface: #23242e;
    --sg-surface-hover: #2b2c37;
    --sg-border: #3a3c4b;
    /* muted text: #888898 fell to 4.4:1 on the new cards; this keeps >= 5:1 on every surface */
    --sg-text-dim: #9a9aab;
    /* translucent bars over the page (sticky nav, phone CTA bar) */
    --sg-nav: rgba(24, 25, 31, 0.85);
    --sg-bar: rgba(24, 25, 31, 0.97);

    --sg-carts-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cdefs%3E%3Cg id='c' fill='none' stroke='%23fff' stroke-opacity='.03'%3E%3Cpath d='M16.5 12.5a2 2 0 0 1 2-2h39l6 6v51a2 2 0 0 1-2 2h-43a2 2 0 0 1-2-2z'/%3E%3Crect x='22.5' y='30.5' width='35' height='31' rx='1.5'/%3E%3Cpath d='M24 16.5h26M24 20.5h26'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23c' x='80'/%3E%3Cuse href='%23c' y='80'/%3E%3C/svg%3E");
    --sg-carts-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cdefs%3E%3Cg id='c' fill='%23fff' fill-opacity='.012' stroke='%23fff' stroke-opacity='.065'%3E%3Cpath d='M16.5 12.5a2 2 0 0 1 2-2h39l6 6v51a2 2 0 0 1-2 2h-43a2 2 0 0 1-2-2z'/%3E%3Crect x='22.5' y='30.5' width='35' height='31' rx='1.5'/%3E%3Cpath d='M24 16.5h26M24 20.5h26'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23c' x='80'/%3E%3Cuse href='%23c' y='80'/%3E%3C/svg%3E");

    --sg-look-a: none;
    --sg-look-b: var(--sg-carts-b) 0 0 / 160px 160px repeat,
                 repeating-conic-gradient(var(--sg-chk-b) 0 25%, transparent 0 50%) 0 0 / 160px 160px;
    --sg-look-c: var(--sg-carts-c) 0 0 / 160px 160px repeat,
                 repeating-conic-gradient(var(--sg-chk-c) 0 25%, transparent 0 50%) 0 0 / 160px 160px;

    /* the page tokens every page's inline :root already uses */
    --bg: var(--sg-bg);
    --surface: var(--sg-surface);
    --surface-hover: var(--sg-surface-hover);
    --border: var(--sg-border);
    --text-dim: var(--sg-text-dim);
}
html body {
    background: var(--sg-look), var(--sg-bg);
}
