/* BF Companion design tokens.
   Colours are sampled from the game art (header_ui, footer buttons, attribute marks, category_name_plate).
   Every other file reads these; nothing outside this file hard-codes a palette value it could take from here. */

@font-face {
  font-family: "BF Rodin";
  src: url(../assets/font/rodin-ntlg-eb.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  /* gold: header frame, footer plates, window rims */
  --bfc-gold-hi: #fff4c2;
  --bfc-gold-1: #f7d77a;
  --bfc-gold-2: #d6a43e;
  --bfc-gold-3: #9a6a22;
  --bfc-gold-4: #5a3a10;
  /* navy: windows, title bar, docked pane */
  --bfc-navy-0: #050b1e;
  --bfc-navy-1: #0b1634;
  --bfc-navy-2: #142553;
  --bfc-navy-3: #1d3a86;
  --bfc-night: #05070f;
  /* stone: footer bar, list rows */
  --bfc-stone-1: #3b4651;
  --bfc-stone-2: #232b33;
  /* unit power tiers: the same hues as the unit finder's S-D badges, so both pages read alike */
  --bfc-tier-s: #ff8fd8;
  --bfc-tier-a: #ffcf5a;
  --bfc-tier-b: #7fd88f;
  --bfc-tier-c: #6fb7ff;
  --bfc-tier-d: #aab1c8;

  /* text (all checked at AA or better on --bfc-navy-1 and on outlined plates) */
  --bfc-ink: #ffffff;
  --bfc-ink-soft: #d9e2ff;   /* 13.0:1 on navy-1 */
  --bfc-ink-gold: #ffe9a0;   /* 14.6:1 */
  --bfc-ink-dim: #a9b8dc;    /* 8.6:1 */
  --bfc-ink-bad: #ff9a8c;    /* 7.9:1 */
  --bfc-ink-good: #a8ff96;   /* 14.2:1 */
  --bfc-ink-dark: #2b1a04;   /* on gold and parchment */

  /* elements (attribute_mark) */
  --bfc-el-fire: #ff6a2b;
  --bfc-el-water: #3fb0ff;
  --bfc-el-earth: #61d34a;
  --bfc-el-thunder: #ffd42a;
  --bfc-el-light: #fff6d8;
  --bfc-el-dark: #b27bff;

  /* gauges (header_ui) */
  --bfc-exp-a: #fc6306; --bfc-exp-b: #ffddc9;
  --bfc-nrg-a: #25fc02; --bfc-nrg-b: #c4ffba;
  --bfc-hp-a: #2ad1ff; --bfc-hp-b: #d2f6ff;

  /* role plates: the category_name_plate colour bands (top / bottom / rim per family) */
  --bfc-role-offence-1: #8a2020; --bfc-role-offence-2: #2c0303; --bfc-role-offence-r: #e05a50;
  --bfc-role-buff-1: #a36100;    --bfc-role-buff-2: #471b00;    --bfc-role-buff-r: #e3a447;
  --bfc-role-gauge-1: #1d4a7d;   --bfc-role-gauge-2: #08173c;   --bfc-role-gauge-r: #5c9ae0;
  --bfc-role-sustain-1: #08574d; --bfc-role-sustain-2: #001f16; --bfc-role-sustain-r: #3fc2ad;
  --bfc-role-defence-1: #6d878b; --bfc-role-defence-2: #253038; --bfc-role-defence-r: #c9dde0;
  --bfc-role-cure-1: #731f91;    --bfc-role-cure-2: #2f013e;    --bfc-role-cure-r: #c065e6;
  --bfc-role-debuff-1: #4a2a85;  --bfc-role-debuff-2: #180736;  --bfc-role-debuff-r: #9a7ae6;
  --bfc-role-drops-1: #931f56;   --bfc-role-drops-2: #420110;   --bfc-role-drops-r: #e05a98;
  --bfc-role-crit-1: #887503;    --bfc-role-crit-2: #2b2400;    --bfc-role-crit-r: #e3c63a;
  --bfc-role-spark-1: #335f1b;   --bfc-role-spark-2: #011c01;   --bfc-role-spark-r: #6fbf3c;
  --bfc-role-leader-1: #4f5656;  --bfc-role-leader-2: #161a1a;  --bfc-role-leader-r: #a9b4b4;

  /* type */
  --bfc-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", "Yu Gothic UI", "Segoe UI", system-ui, sans-serif;
  --bfc-font-game: "BF Rodin", var(--bfc-font);
  --bfc-font-crest: Impact, "Haettenschweiler", "Arial Narrow", "Roboto Condensed", sans-serif;
  --bfc-fs-xs: 11px;
  --bfc-fs-s: 12.5px;
  --bfc-fs-m: 14.5px;
  --bfc-fs-l: 17px;
  --bfc-fs-xl: 20px;
  --bfc-fs-2xl: 26px;
  --bfc-lh: 1.42;
  /* roles in the type scale (use these, not raw px): a calm hierarchy where values never outshout headings */
  --bfc-fs-kicker: 10.5px;  /* uppercase kicker over a title (gold, letter-spaced) */
  --bfc-fs-label: 12px;     /* the name of a value: "Level", "Gems", "EXP to next level" */
  --bfc-fs-value: 16px;     /* a value in a tile or key/value row */
  --bfc-fs-value-l: 20px;   /* the one headline value of a card (a total, a level) */
  --bfc-fs-title: 15px;     /* card and row titles */
  --bfc-fs-h: 17px;         /* section headings (ribbon, window title) */
  /* num64 bitmap digits (kit num(), .bfc-num--s/m/l/xl) */
  --bfc-num-s: 13px;
  --bfc-num-m: 16px;
  --bfc-num-l: 20px;
  --bfc-num-xl: 26px;

  /* text treatments */
  --bfc-outline: 0 2px 0 #000, 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000, 0 0 4px rgba(0, 0, 0, .7);
  --bfc-outline-thin: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;

  /* space */
  --bfc-sp-1: 4px;
  --bfc-sp-2: 8px;
  --bfc-sp-3: 12px;
  --bfc-sp-4: 16px;
  --bfc-sp-5: 24px;
  --bfc-sp-6: 32px;
  --bfc-gutter: 12px;
  --bfc-tap: 44px;          /* minimum touch target */
  --bfc-radius: 8px;
  /* tiles and panels: one inner padding and one gap everywhere */
  --bfc-tile-pad: 8px 12px;
  --bfc-tile-gap: 6px;
  --bfc-tile-radius: 6px;
  --bfc-panel-pad: 12px;

  /* layout */
  --bfc-screen-max: 480px;  /* the game screen (phone and tablet) */
  --bfc-screen-two: 460px;  /* the game screen when a pane docks beside it */
  --bfc-dock-max: 860px;
  --bfc-frame-h: 940px;     /* tallest the framed screen gets on desktop */

  /* layers, one order inside the frame (.bfc-app isolates them) that holds during every slide: hub < HUD < ticker
     < pane < Menu sheet < gold footer < dialog < toast. The footer is above the sheet so the sheet rises from behind
     it and the Menu button always takes the tap. */
  --bfc-z-content: 1;
  --bfc-z-hud: 5;
  --bfc-z-ticker: 6;
  --bfc-z-pane: 40;
  --bfc-z-sheet: 45;
  --bfc-z-footer: 50;
  --bfc-z-dialog: 60;
  --bfc-z-toast: 70;

  /* motion */
  --bfc-ease-out: cubic-bezier(.2, .8, .2, 1);
  --bfc-ease-pop: cubic-bezier(.3, 1.4, .5, 1);
  --bfc-dur-fast: .12s;
  --bfc-dur: .26s;
  --bfc-dur-slow: .38s;

  /* focus: black + gold double ring that reads on art, gold and navy alike */
  --bfc-focus: 0 0 0 3px #000, 0 0 0 5px #ffe066, 0 0 14px 4px rgba(255, 224, 102, .7);
}
