/* Design tokens for the public site, the player hub and the admin panel.
   The only stylesheet allowed to contain raw colour values. See DESIGN.md. */
:root {
  /* ground: app (hub + admin), darkest first */
  --ink-deep: #0c0f0b;    /* wells: progress tracks, previews */
  --field: #0e110d;       /* inputs */
  --field-focus: #262d22; /* a field being typed in: lighter, so it reads as active */
  --ink-0: #111410;       /* page */
  --ink-chip: #11170e;    /* swatches, small chips on panels */
  --side-1: #121510;      /* sidebar, bottom of gradient */
  --bar: #131711;         /* mobile top bar and drawer */
  --ink-stage: #141813;   /* map and canvas stages */
  --side-0: #151913;      /* sidebar, top of gradient */
  --ink-1: #161a14;       /* raised ground */
  --ink-2: #171b15;       /* panels */
  --ink-3: #1e231b;       /* hovered rows, table heads */
  --ink-band: #222a1e;    /* bands, toasts, active fills */

  /* ground: public site, a lighter take */
  --site-0: #1a1e19;
  --site-1: #22281f;
  --site-2: #2c3627;
  --site-line: #3d4a36;

  /* lines */
  --line: #2b3427;
  --line-hi: #4d5c45;
  --line-soft: rgba(151, 161, 136, .12);
  --amber-soft: rgba(217, 164, 65, .1);
  --amber-line: rgba(217, 164, 65, .35);
  --glow: rgba(207, 58, 47, .14);

  /* text */
  --white: #fff;
  --black: #000;
  --cream: #fff6ec;       /* text on blood */
  --bone: #e6dfcb;        /* primary text */
  --bone-2: #d3ccb8;      /* long-form text */
  --bone-3: #cdc6b2;
  --lichen: #97a188;      /* secondary text */
  --lichen-2: #9aa58a;
  --lichen-hi: #b1c58f;   /* selected outline on swatches */
  --dim: #838d76;         /* nav group labels, footers (AA on every app ground) */

  /* meaning: action and danger */
  --blood: #b3261e;
  --blood-hi: #cf3a2f;
  --danger-text: #ffb4a8;
  --danger-text-hi: #ffcfc7;
  --danger-soft: #ff9b8e;
  --danger-bg: #3a1915;
  --danger-bg-hi: #5a2620;
  --danger-line: #6b2a23;
  --danger-line-hi: #8c362d;

  /* meaning: warning, coins */
  --amber: #d9a441;
  --warn-text: #f3d38a;
  --warn-text-hi: #ffd9a0;
  --warn-bg: #3a3015;
  --warn-bg-2: #3d3418;
  --warn-line: #5c4a22;
  --warn-line-2: #574720;
  --gold: #f4cf7a;
  --gold-2: #e0b866;
  --gold-3: #f6d78f;

  /* meaning: success, online */
  --moss: #6f9a4f;
  --ok-text: #c9eab0;
  --ok-text-2: #b9e09b;
  --ok-bright: #a9d38a;
  --ok-mute: #b8d9a0;
  --ok-bg: #233a1d;
  --ok-line: #3c5232;

  /* staff and supporter banner */
  --royal-a: #4b1a5c;
  --royal-b: #1a3d5c;
  --royal-text: #e7d4ff;

  /* skin rarity */
  --rar-common: #9aa58a;
  --rar-uncommon: #5fbf4a;
  --rar-rare: #4a8fe0;
  --rar-unique: #b05be0;
  --rar-legendary: #f0a020;
  --rar-uncommon-text: #7fd968;
  --rar-rare-text: #6aaaf5;
  --rar-unique-text: #c98af0;
  --rar-legendary-text: #ffbe45;
  /* divine: pearl white with a prismatic sheen (cyan, pink, gold) that slowly moves */
  --rar-divine: #fff4d6;
  --rar-divine-text: #fff8ec;
  --divine-prism: linear-gradient(110deg, #8ff3ff 0%, #ffb8f2 22%, #fff4d6 40%, #ffe08a 58%, #b8fff0 78%, #8ff3ff 100%);

  /* category accents, one per nav group (applied from the component kit on) */
  --acc-dinosaur: #6f9a4f;
  --acc-trading: #d9a441;
  --acc-supporter: #e5483a;
  --acc-island: #5b8db8;
  --acc-minigames: #9b7fd4;
  --acc-staff: #cf3a2f;

  /* Server shop cosmetics: name colours a player can wear (readable on every app ground) */
  --cos-tide: #7fb2e0;
  --cos-violet: #b9a3ec;
  --cos-rose: #f08fb8;
  --cos-frost: #bfe6f0;

  /* type */
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --t-hero: 2.6rem;
  --t-h2: 1.6rem;
  --t-h3: 1.15rem;
  --t-stat: 1.9rem;
  --t-small: .88rem;
  --t-eyebrow: .72rem;

  /* shape (target scale; the legacy --r-* names stay until the kit lands) */
  /* three corner sizes only: 5px panels, 3px controls, 1px the tip of a chat bubble */
  --r-0: 3px;            /* tiles, icons, small marks */
  --r-1: 3px;            /* buttons, inputs, chips, badges, avatars */
  --r-pill: 3px;         /* no pills: badges and tags are 3px too */
  --r-lg: 5px;           /* panels, cards, dialogs, menus */
  --r-tip: 1px;          /* the pointed corner of a chat bubble */

  /* HUD surfaces (ui.css): a faint top highlight, a deep drop shadow, the background grid */
  --hud-hl: rgba(255, 255, 255, .035);
  --hud-sheen: rgba(255, 255, 255, .02);
  --hud-shadow: 0 22px 48px -30px rgba(0, 0, 0, .9);
  --hud-lift: 0 26px 56px -26px rgba(0, 0, 0, .95);
  --hud-grid: rgba(151, 161, 136, .045);
  --scrim: rgba(10, 12, 9, .72);

  /* elevation: app panels */
  --shadow: 0 1px 0 rgba(255, 255, 255, .025) inset, 0 14px 34px -22px rgba(0, 0, 0, .9);
  --card: linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, 0) 60%), var(--surface, var(--ink-2));

  /* space, 4px base */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.75rem;
  --s-7: 2.25rem;
  --s-8: 3rem;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --d-press: 140ms;
  --d-hover: 150ms;
  --d-pop: 200ms;
  --d-drawer: 280ms;
}

/* Frosted glass (glass.css): translucent surfaces over a lit jungle ground.
   Surfaces are a smoked green tint plus a white sheen; edges are a hairline of light. */
:root {
  /* ground behind the glass: deep canopy, a fern-green glow, volcanic amber low on the right */
  --jungle-0: #070a08;
  --jungle-glow: rgba(52, 118, 72, .5);
  --jungle-glow-2: rgba(30, 86, 64, .42);
  --jungle-ember: rgba(220, 116, 40, .2);
  --contour: rgba(170, 206, 160, .09);

  /* glass */
  --glass-tint: rgba(16, 22, 17, .52);
  --glass-tint-hi: rgba(20, 28, 21, .7);       /* menus and dialogs: more opaque, stays legible */
  --glass-solid: rgba(16, 22, 17, .92);        /* fallbacks where backdrop-filter is missing */
  --glass-solid-hi: rgba(20, 28, 21, .97);
  --glass-sheen-a: rgba(255, 255, 255, .075);
  --glass-sheen-b: rgba(255, 255, 255, .015);
  --glass-edge: rgba(226, 238, 214, .13);
  --glass-edge-hi: rgba(236, 244, 226, .22);
  --glass-hl: rgba(255, 255, 255, .1);
  --glass-hover: rgba(255, 255, 255, .06);
  --glass-press: rgba(255, 255, 255, .1);
  --glass-well: rgba(0, 0, 0, .28);            /* inputs, tab tracks */
  --glass-well-line: rgba(255, 255, 255, .07);
  --glass-drop: 0 24px 60px -28px rgba(0, 0, 0, .85), 0 2px 6px -2px rgba(0, 0, 0, .4);
  --glass-blur: blur(22px) saturate(165%);
  --glass-blur-sm: blur(10px) saturate(150%);

  /* primary action: lit blood-red, like a warning lamp behind glass */
  --act-top: #d9493b;
  --act-bot: #9e2219;
  --act-top-hi: #e85a4a;
  --act-bot-hi: #b32a20;
  --act-edge: rgba(255, 176, 156, .38);
  --act-glow: rgba(214, 64, 48, .75);
  --act-hl: rgba(255, 255, 255, .28);
  --act-shade: rgba(0, 0, 0, .28);

  /* shape for the glass layer: soft corners, not the old 2px HUD edge */
  --g-r-panel: 5px;
  --g-r-ctl: 3px;
}

/* Jurassic scene (jungle.js, gore.css): parallax silhouettes and the blood touches.
   Silhouettes are a shade off the ground so they read against the glows behind them. */
:root {
  --jg-far: #16241b;          /* volcano and far hills, hazy */
  --jg-mid: #0c170f;          /* canopy treeline */
  --jg-near: #070d09;         /* ferns at the edges */
  --jg-ember: rgba(236, 104, 40, .42);
  --jg-ember-core: rgba(255, 150, 70, .55);
  --jg-smoke: rgba(120, 110, 100, .16);
  --jg-mist: rgba(176, 204, 180, .07);

  --gore: #7e140e;            /* dried blood */
  --gore-hi: #d4362a;         /* fresh blood */
  --gore-glow: rgba(212, 54, 42, .55);
  --gore-vein: #240806;       /* the empty part of a growth bar */
  --gore-hit: rgba(200, 30, 20, .55);
  --gore-track: rgba(200, 180, 150, .5);

  /* three claw slashes, as a mask (any colour shows through) */
  --claw-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'><g fill='black'><path d='M2 30 C30 22 62 12 104 3 L108 6 C70 16 36 27 4 35 Z'/><path d='M8 37 C38 29 70 19 112 10 L116 13 C76 23 42 34 10 40 Z' opacity='.85'/><path d='M0 22 C26 15 54 7 92 0 L95 2 C58 10 30 18 2 26 Z' opacity='.7'/></g></svg>");
  /* a faint claw scratch for a hovered card's corner */
  --gore-scratch: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><g fill='none' stroke='%23b3261e' stroke-linecap='round' opacity='.55'><path d='M10 40 L40 8' stroke-width='2.4'/><path d='M17 44 L45 15' stroke-width='2'/><path d='M4 34 L32 4' stroke-width='1.6'/></g></svg>");
}

/* select boxes: the chevron drawn in the box (glass.css) */
:root {
  --select-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9c2ad' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
}

/* Spin the Wheel (wheel.css / wheel.js): ash for coins, deep rarity colours for crates, blood for the bonus */
:root {
  --wh-ash-a: #1b211a;
  --wh-ash-b: #252c22;
  --wh-common: #3a4036;
  --wh-uncommon: #284a24;
  --wh-rare: #1d3a56;
  --wh-epic: #47285a;
  --wh-legendary: #6b4a12;
  --wh-bonus: #7a1710;
  --wh-seam: rgba(230, 223, 203, .28);   /* thin bone line between wedges */
  --wh-bone: #e6dcc0;
  --wh-bone-dark: #8f856a;
  --wh-rim: #0d100c;
  --wh-label: #f4ecd6;
  --wh-gold: #f2c96b;
}

/* Fossils (fossils.css / fossils.js): three stones a fossil can sit in, bone for the reel marker */
:root {
  --fo-sandstone-a: #6b5638;
  --fo-sandstone-b: #3b2f1f;
  --fo-slate-a: #44504b;
  --fo-slate-b: #222a27;
  --fo-amber-a: #b8761c;
  --fo-amber-b: #5a3207;
  --fo-amber-glow: rgba(240, 160, 32, .45);
  --fo-bone: #e6dcc0;
  --fo-imprint: rgba(16, 12, 6, .55);     /* the fossil pressed into the stone */
  --fo-window: rgba(6, 8, 6, .55);        /* the reel's dark window */
}

/* the Daily Dig (hub.css): a cross-section of the island's ground, grass on top */
:root {
  --dig-grass: #4c6a2c;
  --dig-grass-hi: #6f8f3c;
  --dig-soil-1: #5b4529;
  --dig-soil-2: #46351f;
  --dig-soil-3: #33271a;
  --dig-soil-4: #251c12;
  --dig-seam: rgba(232, 214, 170, .07);   /* thin light lines between the layers */
  --dig-pit: #150f08;
  --dig-rim: #9a7c4c;
  --dig-glow: rgba(242, 201, 107, .55);
}
