/* Fantasee tokens: the one place colours, faces and the scale are declared. The league dashboard and the hub pages
   read these by role. Design direction v2 (docs/design/fantasee-direction.html): a dark blue-grey base with panels,
   navy for brand moments, baby blue for better, cantaloupe for worse, bumblebee yellow for "you" and the one primary
   action. Older names (paper, forest, gold, up, down...) are kept so the code that reads them keeps working. */
:root {
  /* brand */
  --brand-navy: #001F59;
  --brand-blue: #4DBEFF;
  --brand-yellow: #FFF800;
  --brand-orange: #FC734D;
  --brand-lime: #A3E635;    /* the logo's stat bars */

  /* paper: the surface ladder, darkest first */
  --color-paper: #121B2D;
  --color-sunken: #0E1626;
  --color-paper-2: #1A2539;
  --color-paper-3: #212D44;
  --color-paper-4: #28364F;
  --color-rule: #2C3A55;
  --color-rule-2: #3A4A68;

  /* ink */
  --color-ink: #EAF0FA;
  --color-ink-2: #C5D0E3;
  --color-muted: #9DADC8;
  --color-faint: #8E9EBB;

  /* roles */
  --color-forest: #1E4C9A;        /* selection fills and secondary buttons (white text on it) */
  --color-forest-2: #4DBEFF;      /* the underline on the selected tab or menu item */
  --color-select: #1B3157;        /* selected row / tab background */
  --color-gold: #FFF800;          /* you, and the one primary action */
  --color-gold-2: #FFFB70;
  --color-gold-ink: #001F59;      /* text on yellow */
  --color-you: #FFF800;
  --color-up: #4DBEFF;            /* better */
  --color-down: #FC734D;          /* worse */
  --color-warn: #F5B83D;          /* questionable, needs attention */
  --color-focus: #FFF800;
  --color-scrim: rgb(5 8 16 / 0.66);
  --color-shadow: rgb(0 0 0 / 0.5);
  --color-on-forest: #ffffff;
  --color-toilet: #a0522d;
  --color-toilet-ink: #f3d2a8;
  --color-toilet-bg: #2a1d12;

  /* charts */
  --chart-grid: #222E45;
  --chart-axis: #3A4A68;
  --chart-muted: #46577A;
  --chart-ref: #8E9EBB;
  --chart-track: #212D44;
  /* categories (positions, point sources): none of them is yellow, baby blue or orange, which mean you, better and worse */
  --chart-c1: #8FD19E;
  --chart-c2: #B89CE0;
  --chart-c3: #E58FB0;
  --chart-c4: #6FCFC0;
  --chart-c5: #D9B27A;
  --chart-c6: #8FA8FF;
  --chart-c7: #A6B3C4;
  --chart-c8: #C7C27A;

  /* faces */
  --font-display: "Saira Semi Condensed", "Arial Narrow", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* scale (1.2; unchanged in the foundation step, the redesigned pages bring v2's 13/15/18/24/34/52 sizes) */
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.2rem;
  --text-xl: 1.44rem;
  --text-2xl: 1.728rem;
  --text-3xl: 2.074rem;

  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px;

  --radius-panel: 8px;
  --radius-control: 6px;
  --radius-bar: 2px;
  --rule-hair: 1px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;

  --side-w: 236px;
  --side-rail: 60px;
  --main-max: 1440px;
  --head-h: 60px;

  --z-raised: 10; --z-sticky: 200; --z-side: 300; --z-modal: 400; --z-tooltip: 600;

  color-scheme: dark;
}

/* brand: the mark (an eye whose iris is a football with stat bars, /logo-mark.svg) beside the wordmark "Fantasee" */
.fs-wordmark { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.fs-mark { flex: 0 0 auto; display: block; width: 44px; height: 26px; }
/* the lockup: a thin divider, then FANTASEE over a spaced-out FOOTBALL (Montserrat, as in the logo) */
.fs-lockup { display: grid; gap: 3px; padding-left: 10px; border-left: 1.5px solid rgb(169 180 198 / 0.55); line-height: 1; white-space: nowrap; }
.fs-lockup > b:first-child { font: 800 21px/1 "Montserrat", "Inter", sans-serif; letter-spacing: 0.01em; color: #FFFFFF; }
.fs-lockup > small:last-child { font: 600 11px/1 "Montserrat", "Inter", sans-serif; letter-spacing: 0.36em; color: #A9B4C6; margin-right: -0.36em; }
.fs-brandline { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }

/* depth (shared by the hub pages and the dashboard) */
:root {
  --glow-top: radial-gradient(1100px 520px at 50% -180px, rgb(77 190 255 / 0.10), transparent 70%);
  --raise-fill: linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0) 120px);
  --raise-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 10px 28px -18px rgb(0 0 0 / 0.65);
  --raise-shadow-hover: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 16px 36px -18px rgb(0 0 0 / 0.75);
  --glass: color-mix(in oklab, var(--color-paper) 72%, transparent);
  --glass-blur: blur(14px) saturate(140%);
}

/* glass: the coloured wash behind every page, and the frosted card it shows through */
:root {
  --backdrop:
    radial-gradient(900px 620px at 12% 8%, rgb(77 190 255 / 0.17), transparent 62%),
    radial-gradient(820px 720px at 88% 22%, rgb(30 76 154 / 0.38), transparent 62%),
    radial-gradient(760px 560px at 72% 96%, rgb(252 115 77 / 0.10), transparent 60%),
    radial-gradient(680px 560px at 4% 92%, rgb(0 31 89 / 0.65), transparent 62%),
    var(--color-paper);
  --glass-card: linear-gradient(180deg, rgb(255 255 255 / 0.075), rgb(255 255 255 / 0.02) 140px), rgb(22 32 52 / 0.58);
  --glass-edge: rgb(255 255 255 / 0.10);
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / 0.10), 0 20px 44px -24px rgb(0 0 0 / 0.85);
}

/* narrow phones: the header shows the eye alone, so the menu and Connect still fit (the link keeps its "Fantasee home" label) */
@media (max-width: 420px) { .top .logo .fs-lockup { display: none; } }
/* in the dashboard sidebar the lockup is a touch narrower, so the collapse button fits beside it */
.ff-side .fs-lockup > b:first-child { font-size: 18px; }
.ff-side .fs-lockup > small:last-child { letter-spacing: 0.24em; margin-right: -0.24em; }
.ff-side .fs-mark { width: 40px; height: 24px; }
