/* Stennisfy foundation tokens — OFFICIAL VERSION 1 (locked 2026-10-03)
   Source of truth for every colour on the site. Night = default, Day = [data-theme="day"].
   Auto = follow prefers-color-scheme (light → day, dark → night). */

:root,
[data-theme="night"] {
  /* Surfaces (layer order: page < card < inner < selected) */
  --page:        #090B12;
  --card:        #10131D;
  --inner:       #171B28;
  --selected:    #1B2031;
  --tile-hover:  #141824;   /* clickable tile hover = card → inner 60% */
  --sidebar:     #121520;   /* the floating sidebar panel only (founder R2, measured on OFFICIAL VERSION 1) */
  --glow:        rgba(52, 70, 170, 0.22);
}

[data-theme="day"] {
  --page:        #10121A;
  --card:        #171A24;
  --inner:       #1E222F;
  --selected:    #272C3D;
  --tile-hover:  #1B1F2B;
  --sidebar:     #1A1D28;
  --glow:        rgba(52, 70, 170, 0.20);
}

:root {
  /* The page glow (founder S6, TEN-376): on the page background only — <html>, behind sidebar + content, scrolling with
     the page, same geometry at every width. Never on cards, modals or the sidebar panel. --glow is the theme's value.
     Geometry = OFFICIAL VERSION 1 (reference wins, R1): 1500×640 at 720px −120px matches it pixel-for-pixel night + day;
     the written 1100×420 at −60px came out up to 8 RGB steps dimmer at the edges. */
  --page-bg: radial-gradient(ellipse 1500px 640px at 720px -120px, var(--glow) 0%, rgba(52,70,170,0) 100%) no-repeat, var(--page);

  /* Text — same in night and day */
  --text:        #E7E9EE;   /* titles, names, odds, key figures — founder 2026-10-21: the design-system value, was #FFFFFF */
  --text-soft:   #DDE0EA;   /* descriptions, second-level names */
  --text-label:  #A3AABE;   /* caps labels, column heads, meta, idle tabs, placeholders */

  /* Picks page surfaces — founder ruling 2026-10-27, exact hex from Picks LOCKED 2026-10-27 (a night-only design: the
     same value in Day until the design has a Day one). The inner band sits darker than its card — against the layer
     rule; on the Claude Design handoff list. */
  --lost-card:   #0E1119;   /* a LOST pick card's fill */
  --inner-band:  #0D1017;   /* inner band: Record ledger head + total, the mobile card's trail panel */
  --drawer-backdrop: rgba(5, 6, 10, 0.55);   /* the Post-a-pick drawer's page dim (Picks lock, SPEC §8) */
  --shadow-drawer: -24px 0 60px rgba(0, 0, 0, 0.5), inset 1px 0 0 rgba(255, 255, 255, 0.06);   /* the right drawer (Picks lock) */
  --pro-hover:   #3A5EE6;   /* the --pro primary button on hover (Picks lock) */
  --badge-fill:  #FFFFFF;   /* the admin badge disc on the rail avatar (Picks lock, board 1k) */
  --badge-ink:   #0B0C13;   /* its shield stroke (Picks lock) */
  /* Picks LOCK 2026-10-30 (CHANGES_2026-10-30 / -10-29, exact hex): the band / sheet fill, the sheet's dim and shadow,
     the dark pill (round chip, sheet ×, pager), the Post button's hover */
  --pk-band:     #0E1019;
  --pk-pill:     #131623;
  --pk-post-hover: #1F8AFF;
  --pk-sheet-backdrop: rgba(5, 6, 10, 0.72);
  --pk-shadow-sheet: 0 24px 64px rgba(0, 0, 0, 0.5);

  /* Today's Matches · Market Signal ledger — exact hex from design_handoff_todays_matches CHANGES_2026-11-07 §2–§3 (founder
     design, night-only: the same value in Day). The group hairlines are solid hex by design. */
  --sig-rule:        #2A2E3A;   /* the two group hairlines (before Elo Overall, before Kalshi) */
  --sig-chip:        #131623;   /* the dark $-traded chip under a prediction-market price */
  --sig-soft:        #C6CCDB;   /* chip ink on the trailing side; Completed source names */
  --sig-done-rule:   #1A1D26;   /* the Completed drawer's header rule */
  --sig-legend:      #6B7390;   /* "| = Pinnacle close" */
  --sig-done-track:  rgba(255, 255, 255, 0.08);   /* Completed bar track */
  --sig-lose:        rgba(255, 255, 255, 0.22);   /* Completed bar: the loser's segment */
  --sig-tick:        #FFFFFF;   /* Completed bar: the Pinnacle-close tick */

  /* Bet Tracker page — exact hex from design_handoff_bet_tracker (LOCKED 2026-10-28, README §Design tokens, Quiet ink
     pass). A night-only page: the same value in Day, never routed through the theme engine. Inks / meaning colours it
     shares with the site are the site tokens (--text, --text-label, --link, --pos, --neg, --amber). */
  --tracker-page:       #05060A;   /* page + host */
  --tracker-card:       #0E1019;   /* card */
  --tracker-inner:      #0A0D14;   /* inner tile, table head band, inputs, idle month chip */
  --tracker-menu:       #0C0E16;   /* menu pop, modal sheet, view-segment track */
  --tracker-pill:       #131623;   /* selected pill: menus, month chips, triggers; the disabled Post button */
  --tracker-seg:        #1B2031;   /* selected segment: Type / Placed / ledger filter / view, plan chips */
  --tracker-ink:        #FFFFFF;   /* primary ink (README "Primary #FFFFFF"); its alpha washes are color-mix of it */
  --tracker-pill-text:  #C6CCDB;   /* idle pill / chip text */
  --tracker-ring:       #007AFF;   /* ring blue: curve, your-stakes line, Log-a-bet / Post / Apply buttons, the seal */
  --tracker-ring-hover: #3A60E8;   /* ring-blue button hover */
  --tracker-link-2:     #5B9BFF;   /* menu footer links (Reset filters, Remove, Use, Close) */
  --tracker-plan-flat1: #8FB8FF;   /* staking plan swatch · Flat 1% */
  --tracker-plan-flat2: #C9DDFF;   /* staking plan swatch · Flat 2% */
  --tracker-plan-model: #B48CFF;   /* staking plan swatch · ½ Kelly on model (v26) */
  --tracker-plan-banded: #7FD6C2;  /* staking plan swatch · Odds-banded (v26) */
  --tracker-plan-conf: #F0C27A;    /* staking plan swatch · Confidence tiers (v26; the chip is off until a Confidence field exists) */
  --tracker-placeholder: #5E667C;  /* Log a bet Ticket · the "Your selection" placeholder (v26) */
  --tracker-top-light:  inset 0 1px 0 rgba(143, 170, 255, 0.03);   /* every Bet Tracker card */
  --tracker-menu-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);   /* menu pop (Period, Filters, Breakdown cut) */
  --tracker-pop-shadow:  0 12px 32px rgba(0, 0, 0, 0.45);   /* calendar day pop-up */
  --tracker-scrim:       rgba(3, 5, 9, 0.72);                /* month pop-up overlay */

  /* Meaning colours — same in night and day */
  --bar:         #007AFF;                  /* every data bar (lead / selected) */
  --bar-2:       rgba(0, 122, 255, 0.45);  /* second-tier bar (trailing player, other rows) */
  --link:        #6A9AF8;                  /* link text only */
  --pro:         #2F52D6;                  /* Upgrade to Pro button only */
  --pro-text:    #F2F3F7;
  --pos:         #5CCB84;                  /* signed good values, winner pill, W square */
  --neg:         #E06266;                  /* signed bad values, L square, break outlines */
  --amber:       #E8A84E;                  /* ONLY Stennisfy Model value layers + Trading Report field tiers + Live Interrupted (TEN-417) */
  --nav-locked:  #5B6880;                  /* ONLY the icon of a Pro-locked page on the navigation rail (TEN-403 shell package) */
  --serve-ball:  #EAF928;                  /* ONLY the live serving dot */
  --hot-dot:     #007AFF;                  /* Hot lines dots (label text = --link) */
  --white-bar:   #E7E9EE;                  /* white bars where a page is exempt from blue (see README §6) */
  --white-bar-2: rgba(231, 233, 238, 0.45);

  /* Edges & lines (white alpha on any surface) */
  --edge-6:      rgba(255, 255, 255, 0.06);  /* panel, nested card, tab track */
  --edge-7:      rgba(255, 255, 255, 0.07);  /* clickable tile */
  --edge-10:     rgba(255, 255, 255, 0.10);  /* pop-up / menu / selected segment / strong rule */
  --edge-16:     rgba(255, 255, 255, 0.16);  /* clickable tile hover, focus, STEAM badge */
  --edge-24:     rgba(255, 255, 255, 0.24);  /* clickable tile selected, chip hover */
  --line:        rgba(255, 255, 255, 0.05);  /* row hairline */
  --line-strong: rgba(255, 255, 255, 0.10);  /* under column heads, between sections */
  --track:       rgba(255, 255, 255, 0.06);  /* bar track */
  --open-card:   rgba(106, 154, 248, 0.30);  /* the one periwinkle outline: open / expanded card — value measured on OFFICIAL VERSION 1 (README listed 143,170,255 @ 0.28; reference wins, TEN-376) */
  --top-light:   inset 0 1px 0 rgba(143, 170, 255, 0.05);  /* every top-level card */
  --wash-4:      rgba(255, 255, 255, 0.04);  /* Derived lines highlighted rows */
  --wash-5:      rgba(255, 255, 255, 0.05);  /* highlighted table column, latest tick row */

  /* Data-viz (founder TEN-376 Q4, 2026-10-03). Ramps, washes and tints are one of these
     plus an opacity: color-mix(in srgb, var(--viz-up) 22%, transparent). Canvas / JS charts
     read them with getComputedStyle(document.documentElement) and re-read on theme change. */
  --viz-lead:        #007AFF;
  --viz-second:      rgba(0, 122, 255, 0.45);
  --viz-up:          #5CCB84;
  --viz-down:        #E06266;
  --viz-amber:       #E8A84E;                 /* Model + Trading Report only */
  --viz-white-lead:  #E7E9EE;                 /* Head to Head + white-bar exceptions (README §6) */
  --viz-track:       rgba(255, 255, 255, 0.06);
  --viz-guide:       rgba(255, 255, 255, 0.12);
  --viz-rule:        rgba(255, 255, 255, 0.32);
  --viz-tick:        #8B96B5;
  /* Calendar record modal Swing band ONLY (founder S4, TEN-376: the locked design, bundle `Stennisfy Website.html`, Player Stat
     Boxes; bars 4px, radius 2px, opacity 0.75). Everywhere else surfaces are neutral text, Grass included. */
  --viz-hard:        #4DB8FF;
  --viz-clay:        #E8A84E;
  --viz-grass:       #5CCB84;
  --viz-indoor:      #DDE0EA;
  /* Player Profile v2 (founder 2026-11-09, "colours follow the export"): the Stat Boxes export's surface hues, used by
     the Calendar record's By swing surface band only. Hard = the export's #5b9bff, identical in day. */
  --pp-surf-hard:    #5B9BFF;
  --pp-surf-clay:    #D08A4B;
  --pp-surf-grass:   #3DD68C;
  --pp-surf-indoor:  #9AA4C7;

  /* Shadows (floating layers only; identical in day). menu = drop-downs, type-ahead, info popovers, slider marker;
     pop = floating pop-ups anchored to an element (odds hover, verify card); modal = centred modals / sheets. */
  --shadow-pop:  inset 0 0 0 1px rgba(255,255,255,0.10), 0 18px 48px rgba(0,0,0,0.55);
  --shadow-menu: 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-modal: 0 40px 120px rgba(9, 11, 18, 0.54);   /* centred modals / sheets only (U5; value measured on OFFICIAL VERSION 1) */
  /* TEN-403 shell package (founder, 2026-10-08 — PROMPT_SHELL part 2, values computed on its reference export): the
     floating rail pill's drop (with --top-light) and the avatar menu beside it. Nowhere else. */
  --shadow-rail:   0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-avatar: 0 18px 40px rgba(0, 0, 0, 0.45);
  --backdrop:    rgba(9, 11, 18, 0.65);                /* overlay dim, night + day; + blur(3px) (U5; measured on OFFICIAL VERSION 1) */

  /* Type */
  --font-words:  'Hanken Grotesk', sans-serif;
  --font-nums:   'IBM Plex Mono', monospace;

  /* Radii */
  --r-card:      12px;   /* header card, Key factors boxes, stat tiles, odds pop-up */
  --r-card-lg:   14px;   /* match cards, big panels, Playing Styles cards */
  --r-control:   10px;   /* search, chips, segment track, dropdown menu, inner tiles */
  --r-seg:       8px;    /* segment buttons, arrow buttons, sidebar items */
  --r-badge:     5px;    /* FAV badge, round chip */
  --r-sidebar:   22px;   /* floating sidebar panel */
}

/* Tournaments tab (handoff design_handoff_tournaments_tab, founder 2026-11-15 "Design wins"): the export's own
   values, named apart from the foundation tokens. tournaments-tab.css maps them onto the page's surfaces inside
   .tabpage[data-page="tournaments"] (night only); nothing else reads them. */
:root {
  --tt-page:     #06070A;
  --tt-card:     #0E1019;
  --tt-inset:    #0C0E16;
  --tt-raised:   #131623;
  --tt-lifted:   #121521;   /* 2026-11-20 handoff: lifted buttons, chips, picked options, avatars */
  --tt-hover:    #171B28;   /* 2026-11-20 handoff: hover fill */
  --tt-track:    #0A0C13;   /* 2026-11-20 handoff: switch tracks */
  --tt-text:     #E7E9EE;
  --tt-white:    #FFFFFF;
  --tt-soft:     #C6CCDB;
  --tt-soft-2:   #CFD6E6;
  --tt-muted:    #8B96B5;
  --tt-past:     #4A5470;
  --tt-a3:       #A3AABE;   /* Reports heat cells */
  --tt-blue:     #5B9BFF;
  --tt-blue-fav: #8BB8FF;   /* FAV badge text */
  --tt-blue-hov: #82B4FF;   /* link hover */
  --tt-blue-btn: #74ABFF;   /* primary button hover */
  --tt-red:      #E0616F;
  --tt-green:    #3DD68C;
  --tt-black:    #000000;   /* shadows only */
  --tt-tip-text: #E8ECF4;   /* Reports bar / cell tooltips */
  --tt-avatar:     #1A2033;               /* Draw: every avatar circle */
  --tt-blue-btn-2: #7AAEFF;               /* Draw: solid-blue button hover */
  --tt-scrim-62:   rgba(4, 5, 9, 0.62);   /* Draw: opponent report */
  --tt-scrim-66:   rgba(4, 5, 9, 0.66);   /* Draw: past-editions box and match box */
  --tt-scrim:    rgba(3, 5, 9, 0.74);
  --tt-shadow-overlay: 0 30px 80px rgba(0, 0, 0, 0.6);
  --tt-shadow-menu:    0 12px 28px rgba(0, 0, 0, 0.45);
  --tt-shadow-tip:     0 12px 26px rgba(0, 0, 0, 0.6);
}

/* Head to Head rebuild (handoff design_handoff_head_to_head, founder 2026-11-16 "pixel for pixel, identical colours"):
   the export's own values, named apart from the foundation tokens. h2h-page.css maps them onto the page's surfaces
   inside .tabpage[data-page="h2h"] only (night only); nothing else reads them. */
:root {
  --h2h-page:     #06070A;
  --h2h-card:     #0E1019;   /* section card, sticky picker, pop-up shells — and every inner box (CHANGES 2026-11-17 §1) */
  --h2h-layer:    #121521;   /* a layer inside an inner box: caps strips, figure tiles, opened panels (17 Nov §1) */
  --h2h-inner:    #0C0E16;   /* wells ONLY: switch tracks, search and text inputs (17 Nov §1) */
  --h2h-raised:   #121521;   /* lifted (20 Nov §8): selected row, picked pill, lifted buttons, avatar fill, dropdowns — with a 14% edge */
  --h2h-hover:    #171B28;   /* every hover fill (20 Nov §8); never a white wash, never blue */
  --h2h-track:    #0A0C13;   /* every pill switch track, with a 10% edge (20 Nov §8) */
  --h2h-text:     #E7E9EE;   /* primary; player two */
  --h2h-soft:     #C6CCDB;   /* secondary figures, body copy */
  --h2h-grey:     #8B96B5;   /* labels, sub lines, captions */
  --h2h-dead:     #3A4256;   /* a surface tab with no meetings */
  --h2h-chart-b:  #9AA3B5;   /* Market edge chart: player two when absent from the series */
  --h2h-blue:     #5B9BFF;   /* player one, links, chevrons, primary button */
  --h2h-blue-hov: #9EC4FF;   /* link hover */
  --h2h-up:       #3DD68C;   /* positive signed figure, Won / Covered */
  --h2h-down:     #E0616F;   /* negative signed figure, Lost / Missed */
  --h2h-page-0:   rgba(6, 7, 10, 0);   /* the sticky picker's fade end (the page tone, transparent) */
  --h2h-white:    #FFFFFF;   /* white alphas (hairlines, rings, washes) are color-mix of it */
  --h2h-overlay:  rgba(3, 5, 9, 0.72);
  --h2h-shadow-sticky: 0 12px 28px rgba(0, 0, 0, 0.35);
  --h2h-shadow-menu:   0 18px 40px rgba(0, 0, 0, 0.5);
}

/* Player Profile v2 — founder 2026-11-10 ("fix the colours to match the design export", ruling 2026-11-09 "colours
   follow the design export"): the Player Stat Boxes export's own values, named apart from the foundation tokens. The
   profile maps them onto its surfaces inside .pp2-x (player-profile-v2.js PP2_PALETTE_CSS, night only); nothing else
   reads them. Delete the mapping and the profile reads the foundation palette again. */
:root {
  --pp-x-card:       #0E1019;
  --pp-x-inner:      #0C0E16;
  --pp-x-selected:   #131623;
  --pp-x-tile-hover: #171B28;   /* v5 §0.1 (2026-11-19): one hover tone for rows, options and tiles */
  --pp-x-text-soft:  #C6CCDB;
  --pp-x-text-label: #8B96B5;
  --pp-x-pos:        #3DD68C;
  --pp-x-neg:        #E0616F;
  --pp-x-link:       #5B9BFF;
  /* Profile v4 (handoff 2026-11-14, CHANGES §0.1): every win-rate / record bar is this neutral until the member clicks
     its item (then --pp-x-link); the faint grey is the export's fourth text tone. */
  --pp-x-bar-neutral: rgba(91, 155, 255, 0.55);   /* v5 §0.6 (2026-11-19): the resting bar is 55% blue, never grey */
  --pp-x-faint:       #5B6480;
  --pp-x-ink-muted:   #6B7390;   /* Match-up thin dot ring + bracket labels (§7), Market edge Price sensitivity heads + "under 5" tag (§8.1) */
  --pp-x-edge-12:     rgba(255, 255, 255, 0.12);   /* popover rings (MTO), section rules */
  --pp-x-edge-20:     rgba(255, 255, 255, 0.20);   /* a popover close button's hover ring */
  --pp-x-shadow-pop:  0 18px 48px rgba(0, 0, 0, 0.55);   /* the export's popover shadow, no inset ring */
  --pp-x-shadow-pop6: 0 18px 48px rgba(0, 0, 0, 0.6);    /* the export's Filters menu shadow (Market edge, Derived lines, Calendar) */
  --pp-x-track:       #0A0D14;   /* v4 Live trading: the situation box's All / Happened / Did not track */
  --pp-x-shadow-box:  0 30px 80px rgba(0, 0, 0, 0.6);   /* v4 Live trading: the situation record / heatmap box shadow */
  /* Profile v5 (handoff 2026-11-19, CHANGES §0): hover, lifted surface, the 55% resting bar, the 7% bar track, the 9% tile ring. */
  --pp-x-hover:       #171B28;
  --pp-x-lifted:      #121521;
  --pp-x-bar-55:      rgba(91, 155, 255, 0.55);
  --pp-x-track-7:     rgba(255, 255, 255, 0.07);
  --pp-x-edge-9:      rgba(255, 255, 255, 0.09);
  --pp-x-backdrop:    rgba(3, 5, 9, 0.72);
}

/* Database v2 (handoff design_handoff_database_v2, founder brief 2026-11-16 "pixel for pixel, identical colours"): the
   export's own values, named apart from the foundation tokens. The Database maps them onto its surfaces inside
   [data-db-root] (night only), so the standalone page and every embedded mount read them; nothing else does. */
:root {
  --db2-page:     #06070A;
  --db2-card:     #0E1019;
  --db2-inset:    #0C0E16;
  --db2-raised:   #131623;
  --db2-ink:      #E7E9EE;
  --db2-ink-2:    #C6CCDB;
  --db2-muted:    #8B96B5;
  --db2-blue:     #5B9BFF;
  --db2-blue-hov: #82B4FF;
  --db2-blue-hv2: #8DB6FF;
  --db2-green:    #3DD68C;
  --db2-red:      #E0616F;
  --db2-white:    #FFFFFF;
  --db2-black:    #000000;
  --db2-grey3:    #9AA3B5;   /* the third compare series */
  --db2-avatar:   #161A27;   /* the Compare-with pill's initials circle */
  --db2-dark:     #07080D;   /* text on a solid blue button, the tick in a picked box */
  --db2-shadow-menu: 0 12px 28px rgba(0, 0, 0, 0.45);
  --db2-layer:    #121521;   /* layer inside a card: pills, chips on a line, lifted rows, Field median strip (2026-11-18) */
  --db2-hover:    #171B28;   /* row and tile hover (2026-11-18) */
  --db2-track:    #0A0C13;   /* the Player Last 52 weeks · Career switch track (2026-11-20) */
  --db2-scrim:    #030509;   /* the pop-up box overlay ground, at 72% (2026-11-18) */
  --db2-shadow-box: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Stennisfy Model page (handoff design_handoff_stennisfy_model, founder brief 2026-11-16 "pixel for pixel, identical
   colours"): the export's own values, named apart from the foundation tokens. The Model page maps them onto its
   surfaces inside [data-page="edge"] (night only); nothing else reads them. White and black alphas are color-mix of
   --sm-white / --sm-black at the export's own percentage. */
:root {
  --sm-card:      #0E1019;   /* section card, page title card, inner boxes + their caps strips, opened-row panel, pop-ups, dropdown menu */
  --sm-inner:     #0C0E16;   /* wells only: dropdown trigger, switch track (2026-11-18) */
  --sm-pill:      #121521;   /* pills, "Show all 14 layers" row (2026-11-18) */
  --sm-raised:    #131623;   /* lifted / selected / hover, avatar fill, odd fields */
  --sm-text:      #E7E9EE;   /* text, player two ring */
  --sm-soft:      #C6CCDB;   /* secondary */
  --sm-body:      #C9CDD9;   /* body text in an opened layer panel */
  --sm-muted:     #8B96B5;   /* labels, sub lines */
  --sm-blue:      #5B9BFF;   /* player one ring, links, chevrons */
  --sm-blue-hov:  #82B4FF;
  --sm-pos:       #3DD68C;
  --sm-neg:       #E0616F;
  --sm-q-good:    #5CCB84;   /* data quality: good */
  --sm-q-med:     #E8A84E;   /* data quality: medium (amber: Stennisfy Model only, foundation.md) */
  --sm-q-poor:    #E06266;   /* data quality: poor */
  --sm-white:     #FFFFFF;
  --sm-black:     #000000;
  --sm-shadow-pop:  0 18px 44px rgba(0, 0, 0, 0.55);
  --sm-shadow-menu: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* News page v2 (handoff design_handoff_news_v2, founder 2026-11-19 "code it pixelperfect"): the export's own values,
   named apart from the foundation tokens. news-page.css reads them inside .tabpage[data-page="news"] only (night only);
   nothing else reads them. */
:root {
  --news-card:     #0E1019;   /* every card, the stats box, menus, the opened Compact row */
  --news-lifted:   #121521;   /* pills, avatars, chips, the picked player */
  --news-well:     #0C0E16;   /* inputs, switch tracks, menu triggers */
  --news-hover:    #171B28;   /* row / option hover */
  --news-on:       #131623;   /* switch tab on, chosen option, the idle Publish */
  --news-text:     #E7E9EE;
  --news-soft:     #C6CCDB;   /* body text, initials */
  --news-grey:     #8B96B5;
  --news-blue:     #5B9BFF;   /* links, chevrons, stat bars, the ready Publish */
  --news-blue-hov: #8FBCFF;
  --news-green:    #3ECF8E;   /* "Won", a dominance ratio of 1.00 or more */
  --news-red:      #FF6B6B;   /* a dominance ratio under 1.00 */
  --news-ink:      #090B12;   /* text on the ready Publish */
  --news-white:    #FFFFFF;   /* edges and tracks, always at a stated alpha */
  --news-shadow:   0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Dropping Odds v2 (handoff design_handoff_dropping_odds_v2, founder 2026-11-23 "pixel for pixel"): the export's own
   values, named apart from the foundation tokens; drops-page.css reads them inside [data-page="drops"] and the
   price move box (.do2-ov). Night only; nothing else reads them. */
:root {
  --do2-card:      #0E1019;
  --do2-inner:     #0C0E16;
  --do2-lift:      #121521;
  --do2-track:     #0A0C13;
  --do2-hover:     #171B28;
  --do2-text:      #E7E9EE;
  --do2-text2:     #C6CCDB;
  --do2-grey:      #8B96B5;
  --do2-dim:       #5B6880;
  --do2-dim2:      #4B5672;
  --do2-red:       #E06266;   /* drop figures */
  --do2-meter:     #E0616F;   /* the sharp meter, the banner dot and words */
  --do2-blue:      #5B9BFF;   /* the Pinnacle line only */
  --do2-hair:      rgba(255, 255, 255, 0.06);
  --do2-edge-8:    rgba(255, 255, 255, 0.08);
  --do2-edge-10:   rgba(255, 255, 255, 0.10);
  --do2-edge-14:   rgba(255, 255, 255, 0.14);
  --do2-edge-22:   rgba(255, 255, 255, 0.22);
  --do2-edge-40:   rgba(255, 255, 255, 0.40);
  --do2-sk-6:      rgba(255, 255, 255, 0.06);
  --do2-sk-7:      rgba(255, 255, 255, 0.07);
  --do2-sk-45:     rgba(255, 255, 255, 0.045);
  --do2-meter-trk: rgba(224, 97, 111, 0.16);
  --do2-strike:    rgba(224, 97, 111, 0.70);
  --do2-scrim:     rgba(3, 4, 7, 0.62);
  --do2-shadow-menu: 0 16px 36px rgba(0, 0, 0, 0.5);
  --do2-shadow-box:  0 30px 80px rgba(0, 0, 0, 0.55);
}

/* Match analysis rebuild (handoff design_handoff_match_analysis_2026-11-23, founder 2026-11-23 "pixel for pixel"):
   the export's own values, named apart from the foundation tokens. match-analysis-v2.css reads them inside
   #analysisModal (and the Match Stats sheet wherever it opens); nothing else reads them. Night only. */
:root {
  --ma2-frame:   #0A0D14;   /* the box itself */
  --ma2-card:    #0E1019;   /* every card, tiles inside an inner box, the Match Stats sheet */
  --ma2-inner:   #0C0E16;   /* inner / list boxes, tiles inside a card, menus */
  --ma2-lifted:  #121521;   /* picked item, chip, lifted button, best price, avatar fill */
  --ma2-hover:   #171B28;   /* row hover, lifted-button hover */
  --ma2-track:   #0A0C13;   /* switch tracks, price pills */
  --ma2-white:   #FFFFFF;   /* edges, tracks, hairlines — always at a stated alpha */
  --ma2-text:    #E7E9EE;   /* names, figures; player two */
  --ma2-soft:    #C6CCDB;   /* secondary text */
  --ma2-grey:    #8B96B5;   /* labels, scope lines */
  --ma2-quiet:   #5B6880;   /* quiet grey, empty "—" */
  --ma2-dim:     #4B5672;   /* score en dash, the losing game score in point by point */
  --ma2-blue:    #5B9BFF;   /* player one */
  --ma2-green:   #3DD68C;
  --ma2-red:     #E0616F;
  --ma2-ground:  #090B12;   /* the ROI box shell (site ground) */
  --ma2-scrim:   rgba(4, 5, 8, 0.72);
  --ma2-shadow:  0 40px 120px rgba(0, 0, 0, 0.6);
  --ma2-scrim-2: rgba(4, 5, 9, 0.62);   /* the opened boxes (price movement, band, line, matches) */
  --ma2-shadow-pop: 0 30px 80px rgba(0, 0, 0, 0.55);
  --ma2-glow:    radial-gradient(ellipse 76px 40px at 26px 50%, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0) 100%);
}
