/* =================================================================================
 * COSMIC SERENITY — Design tokens (single source of truth)
 * ---------------------------------------------------------------------------------
 * Loaded BEFORE every *-aaa.css override layer. Defines the shared accent palette,
 * neutral primitives, the floating-HUD glass recipe, and shared keyframes — so the
 * brand values live in ONE place instead of being re-declared per surface.
 *
 * Per-surface accent identity (cyan menu, gold trophies, teal online-MP, …) is set
 * in each layer by pointing `--cs-accent` / `--cs-accent-rgb` at one of these named
 * tokens. The rgba(var(--cs-accent-rgb), …) usages in each layer are unchanged.
 * ============================================================================== */

:root {
    /* Values follow the Keystone brand palette (keystone.css, sampled from the logo) so
       every surface still on these legacy tokens reads as the same family. */

    /* ---- Accent palette (hex + matching rgb triple for rgba()) ------------- */
    --cs-cyan: #9ee8ed;     --cs-cyan-rgb: 158, 232, 237;
    --cs-indigo: #a9b2ff;   --cs-indigo-rgb: 169, 178, 255;
    --cs-teal: #9de6d6;     --cs-teal-rgb: 157, 230, 214;
    --cs-violet: #b8a4ff;   --cs-violet-rgb: 184, 164, 255;
    --cs-pink: #f5aed0;     --cs-pink-rgb: 245, 174, 208;
    --cs-gold: #f3d28d;     --cs-gold-rgb: 243, 210, 141;
    --cs-lavender: #b8a4ff; --cs-lavender-rgb: 184, 164, 255;
    --cs-amber: #f6c98a;    --cs-amber-rgb: 246, 201, 138;

    /* ---- Neutral primitives ------------------------------------------------ */
    --cs-soft-rgb: 255, 246, 233;             /* cream hairlines */
    --cs-deep-rgb: 12, 10, 30;                /* night surface base */
    --cs-ink: #fff6e9;                        /* bright text (cream) */
    --cs-ink-soft: rgba(255, 246, 233, 0.62); /* muted text */

    /* ---- Floating-HUD glass recipe (side-rail tiles, player card, …) ------- */
    --cs-hud-surface: rgba(17, 15, 40, 0.70);
    --cs-hud-border: rgba(var(--cs-soft-rgb), 0.14);
    --cs-hud-border-hover: rgba(var(--cs-soft-rgb), 0.32);
    --cs-hud-shadow: 0 12px 32px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --cs-hud-blur: blur(13px) saturate(140%);
}

/* ---- Shared title shimmer (was duplicated as hs-/db-/lb-/go-/mc-/lr-/cs-hub-) -- */
@keyframes cs-shimmer {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 200% center; }
}
