/* ============================================
   THE DIRECTORATE — THEME
   The only place font names and title colours live.
   Components reference the role tokens below, never a font name.

   Fonts (self-hosted, SIL Open Font License — see fonts/OFL-*.txt):
     Limelight     title only, large sizes
     Bebas Neue    buttons, labels, headings, counts, short UI text (caps only — no sentences)
     Josefin Sans  body text: prompts, rules, log, descriptions
   ============================================ */

/* --- Faces (Latin subset) --- */

@font-face {
    font-family: 'Limelight';
    src: url('fonts/Limelight-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bebas Neue';
    src: url('fonts/BebasNeue-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Josefin Sans';
    src: url('fonts/JosefinSans-Variable.woff2') format('woff2');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* --- Font roles --- */
    --font-title: 'Limelight', Georgia, 'Times New Roman', serif;
    --font-ui: 'Bebas Neue', 'Arial Narrow', 'Roboto Condensed', sans-serif;
    --font-body: 'Josefin Sans', 'Segoe UI', system-ui, sans-serif;

    /* The shared arcade + lobby CSS use --font-display for its labels,
       room code and headings; on this page that is the UI font. */
    --font-display: var(--font-ui);

    /* --- Title: screen-print misregistration + readability glow --- */
    --title-color: #efe3c2;             /* cream; muted-gold alternative: #d9b65a */
    --title-misreg-color: #b8312f;      /* the offset second ink */
    --title-misreg-x: 3px;
    --title-misreg-y: 3px;
    --title-glow: 0 0 18px rgba(0, 0, 0, 0.75), 0 0 4px rgba(0, 0, 0, 0.6);
    --title-shadow:
        var(--title-misreg-x) var(--title-misreg-y) 0 var(--title-misreg-color),
        var(--title-glow);
    /* Small sizes (in-game top bar): a thinner offset so it stays crisp */
    --title-shadow-small:
        2px 2px 0 var(--title-misreg-color),
        0 0 10px rgba(0, 0, 0, 0.7);
    /* Phone top bar */
    --title-shadow-tiny:
        1.5px 1.5px 0 var(--title-misreg-color),
        0 0 8px rgba(0, 0, 0, 0.7);

    /* --- Palette: midnight navy, from the art's night sky and sea ---
       Replaces the arcade's purple for this game. Same variable names as
       arcade-common.css, so the shared lobby, buttons and inputs follow. */
    --color-bg-deep: #07111c;         /* sky at the top of the art */
    --color-bg-mid: #0d1d2d;          /* inputs, seats, chat */
    --color-bg-card: #12273a;         /* panels, secondary buttons */
    --color-purple: #1c3a54;          /* hover / stripes (name kept from arcade-common) */
    --color-purple-light: #31587a;
    --color-text: #ece4d0;            /* cream, like the card stock */
    --color-text-dim: #93a2b4;
    --panel-line: rgba(201, 170, 110, 0.28);   /* thin gold hairline round panels */
    --panel-solid: rgba(9, 20, 32, 0.84);      /* lobby panel over the art */
    --scrim: rgba(5, 12, 20, 0.82);            /* behind modals */

    /* --- Backgrounds (art/, borders cropped off) --- */
    /* Menu: art on the right, dark sky on the left for the title + panel */
    --menu-bg-image: url('art/menu-bg.webp');
    --menu-bg-aspect: 1.818;          /* menu-bg.webp is 1338 × 736 */
    --menu-focus-x: 0.72;             /* what stays in view when the screen is narrower than the art */
    --menu-bg-focus: calc(var(--menu-focus-x) * 100%) center;
    /* Where the scene starts in the art (fraction of its width, just left of the
       sniper and boats). The name/menu panel stays left of it. */
    --menu-art-edge: 0.33;
    --menu-shade: linear-gradient(90deg, rgba(5, 12, 20, 0.5) 0%, rgba(5, 12, 20, 0.2) 35%, rgba(5, 12, 20, 0) 55%);
    /* In game: behind the table; panels over it are partly see-through */
    --game-bg-image: url('art/game-bg.webp');
    --game-shade: linear-gradient(rgba(5, 12, 20, 0.2), rgba(5, 12, 20, 0.2));
    --panel-glass: rgba(14, 31, 47, 0.84);

    /* --- Suit colours: a four-colour deck ---
       The only place suit colours are defined. Each suit has an ink for the
       cream card faces and a brighter shade for the dark navy UI (black
       spades would vanish on navy, so they show silver there). */
    --suit-H: #b8312f;        /* hearts   red    (card ink) */
    --suit-D: #d9701e;        /* diamonds orange */
    --suit-C: #1f5fa8;        /* clubs    blue   */
    --suit-S: #1d1a17;        /* spades   black  */
    --suit-H-ui: #ef7b7b;     /* the same suits on the dark UI */
    --suit-D-ui: #f4a45c;
    --suit-C-ui: #74aef0;
    --suit-S-ui: #c9cdd5;
}

/* Suit classes (SpySuits.cls in spy-cards.js adds them): on the dark UI by
   default; card-face elements switch to the card ink with var(--suit-card). */
.s-H { --suit-ui: var(--suit-H-ui); --suit-card: var(--suit-H); color: var(--suit-ui); }
.s-D { --suit-ui: var(--suit-D-ui); --suit-card: var(--suit-D); color: var(--suit-ui); }
.s-C { --suit-ui: var(--suit-C-ui); --suit-card: var(--suit-C); color: var(--suit-ui); }
.s-S { --suit-ui: var(--suit-S-ui); --suit-card: var(--suit-S); color: var(--suit-ui); }
