:root {
	/* Surfaces — midnight navy ramp (Midnight Pitch). A near-black with a cool
	   navy undertone: a floodlit stadium at night, premium and neutral. */
	--sa-bg: #0A0E1A;
	--sa-bg-2: #0D1222;
	--sa-surface-1: #121A2B;
	--sa-surface-2: #18223A;
	--sa-border: rgba(25, 211, 197, .16);
	--sa-border-strong: rgba(25, 211, 197, .34);

	/* Brand / action — pitch emerald with a teal lift (Midnight Pitch). Token
	   NAMES are kept (the theme-side bridge + skin read them by name, and
	   "violet" / "magenta" / "pink" are historical slots, not hues); only the
	   values change per style. Primary is the emerald; teal lives in the
	   gradient/accents. */
	--sa-violet: #00A36C;
	--sa-violet-light: #2FD9A0;
	--sa-violet-deep: #007A50;
	--sa-magenta: #19D3C5;
	--sa-pink: #5CF0D6;

	/* Signature gradient — emerald → teal (floodlit turf). Every stop keeps
	   white labels ≥ 3:1 (3.07–3.10) and matches TotalBall's own default, so
	   the poll and the theme draw the same button. */
	--sa-gradient: linear-gradient(135deg, #00A870 0%, #00A780 50%, #0FA498 100%);

	/* Text — cool off-white with a faint blue cast */
	--sa-text: #EEF3F8;
	--sa-text-muted: #A9B6C8;
	--sa-text-dim: #7F8CA0;

	/* Ink that sits ON a solid accent (vote button, chips, category pill, the
	   pagination "current" pill).

	   🔴 WHITE IS THE DEFAULT AND THE DESIGN INTENT. Dark ink is the exception,
	   used only on the palettes whose accent is too light to carry white.

	   v4.0.3 briefly set this to a near-black tinted ink on Nova, Ember, Sunset
	   and Cobalt, on the reasoning that dark measured a higher contrast ratio
	   against each vote colour. It does — dark measures higher on essentially
	   every vivid mid-tone — but that is the wrong question. It repainted the
	   label on every button, chip and category pill across the site near-black,
	   which is not a legibility upgrade so much as a different site. On a dark
	   UI whose primary control is a bright gradient pill, the label is white.

	   The rule now: white unless white drops under 3:1, the floor WCAG 1.4.11
	   sets for UI components and large/bold text — which is what these short,
	   tracked, uppercase labels are. Amber (white 2.15:1) and Aurora (1.64:1)
	   keep the dark ink they always shipped with; nothing else does.

	   The Custom palette does not read this token: it derives its ink through
	   shining_ink_on() (pure/color.php), which applies the identical rule.

	   ⚠️ A gradient button is lighter at one end. If white looks weak at the
	   bright end of a sweep, deepen THAT GRADIENT STOP — do not repaint the ink. */
	--sa-on-accent: #ffffff;  /* Midnight Pitch — 3.27:1 on the vote emerald (#00A36C) */

	/* Keyboard focus ring — tracks each preset's bright pink automatically, so the
	   indicator stays on-brand across palettes. Paired with an inner ring the colour
	   of the page bg (see skin.css) so it reads on dark surfaces AND light gradient
	   buttons alike. WCAG 2.4.7 / 1.4.11. */
	--sa-focus: var(--sa-pink);

	/* The face window. Nominee images on this site are fully-designed cards that
	   already read "NOMINEE" and "VOTE NOW" behind a frame, so every avatar the
	   theme draws — standings, hero, leaderboard, winners, widgets, ticker,
	   search, profiles — blows the source up and offsets it by the nominee's own
	   focal point, which frames the face and leaves the card chrome outside the
	   box. This is the scale factor in that formula:

	       width: calc(var(--sa-focal-scale) * var(--np-zoom, 1))

	   It lived as a bare `308%`, restated at 34 calc() sites across eleven files.
	   It has already been re-tuned once, measured against real nominees; the next
	   tuning has to land everywhere at once or the same face is framed
	   differently in two rails, which is why it is a token now.
	   --np-fx/--np-fy/--np-zoom stay per-image. */
	--sa-focal-scale: 308%;

	/* Effects */
	--sa-glow: 0 0 40px rgba(0, 195, 137, .32);
	--sa-shadow-card: 0 8px 30px rgba(0, 0, 0, .45);
	/* Raised CTA edge. Keep every component's own fill, radius and outer glow;
	   this inset shadow adds only the Higgsfield-inspired lower lip. */
	--sa-button-depth: inset 0 -3px 0 rgba(0, 0, 0, .32);
	--sa-button-depth-soft: inset 0 -2px 0 rgba(0, 0, 0, .2);
	--sa-radius: 16px;
	--sa-radius-sm: 12px;
	--sa-radius-pill: 999px;

	/* Mobile masthead controls keep a full WCAG-sized tap target while their
	   visible face and glyph stay compact inside the short navbar. */
	--sa-mobile-trigger-target: 44px;
	--sa-mobile-trigger-face: 36px;
	--sa-mobile-trigger-glyph: 16px;
	--sa-mobile-trigger-bar-gap: 5px;

	/* Per-vertical accents (category identity). Fixed hues drawn from the palette
	   library so each vertical reads distinct yet in-system; they stay constant
	   across style presets, like stable section colours. Used by the category
	   verticals feature (shining/verticals.php) via --vc-* on each card. */
	/* Keyed by the WordPress category slug a league is most likely to have. A
	   category with any other slug gets its colour from the Categories studio. */
	--sa-accent-premier-league: #A35BFF;   --sa-accent-premier-league-2: #D3A6FF;
	--sa-accent-la-liga: #FF5A4E;          --sa-accent-la-liga-2: #FF9C8F;
	--sa-accent-serie-a: #1E90FF;          --sa-accent-serie-a-2: #7FBCFF;
	--sa-accent-bundesliga: #FF7A1A;       --sa-accent-bundesliga-2: #FFB36B;
	--sa-accent-ligue-1: #3DD9FF;          --sa-accent-ligue-1-2: #9AEBFF;
	--sa-accent-champions-league: #6E7BFF; --sa-accent-champions-league-2: #B3BAFF;
	--sa-accent-international: #00C389;    --sa-accent-international-2: #6EE7B7;

	/* Momentum — a nominee gaining or losing PLACES on the leaderboard.
	   Deliberately semantic rather than palette-driven: "green rises, rose falls"
	   is a learned convention (markets, sports tables), and re-hueing it per style
	   would spend the meaning to buy nothing. The leaderboard used to borrow
	   a vertical accent for this, which is a CATEGORY colour — so "climbing" read
	   as mint green even on the warm Ember palette, and any change to the Music
	   vertical's identity would silently have moved it. */
	--sa-up: #34E2A0;
	--sa-up-soft: rgba(52, 226, 160, .14);
	--sa-down: #FF7089;
	--sa-down-soft: rgba(255, 112, 137, .14);

	/* Voting / highlight accents — the "--sa-* contract" the theme-side bridge
	   (shining/assets/css/bridge.css) feeds into the read-only TotalPoll plugin's
	   --tp-* tokens. This file is the single source of truth for the palette.
	   NB: --sa-gold* keep their token name (the plugin's --tp-gold* map to them)
	   but are a vivid, NON-gold "power / highlight" accent — Football Arena is a
	   fun fan-choice brand, deliberately not a gold award-gala look. In
	   Midnight Pitch it is an electric lime pop (the touchline bib), not
	   metallic gold. */
	--sa-indigo: #13A499;   /* secondary accent — teal (poll --tp-accent-2); #19D3C5 deepened to 3.09:1 under white, as in TotalBall */
	--sa-vote: #00A36C;     /* vote button base   (poll --tp-vote)     */
	--sa-vote-2: #00A775;   /* vote button sweep  (poll --tp-vote-2); 3.10:1 under white, TotalBall's value */
	--sa-gold: #C6FF3D;     /* highlight / 2x-power accent (poll --tp-gold)   */
	--sa-gold-2: #DDFF85;   /* highlight bright           (poll --tp-gold-2) */
	/* Winner-content highlight. Follows --sa-gold where that token is a cool
	   or vivid pop (Nova, Cobalt, Aurora), and is overridden in Ember and
	   Sunset, whose --sa-gold is honey/gold: the WINNERS menu button is the
	   only surface the owner allowed to go gold (Amber stays opt-in gold). */
	--sa-win-hi: var(--sa-gold);
	--sa-win-hi-2: var(--sa-gold-2);
	--sa-holo-1: #00C389;   /* holographic badge sweep (emerald)       */
	--sa-holo-2: #19D3C5;   /* holographic badge sweep (teal)          */
	--sa-holo-3: #C6FF3D;   /* holographic badge sweep (lime)          */
	/* Holo accents remain available for the drawer close control; the WINNERS
	   menu button has its own warm-gold tokens below. */
	--sa-winners-holo-1: #12D7EF;
	--sa-winners-holo-2: #7168FF;
	--sa-winners-holo-3: #F23FD0;
	/* WINNERS navigation only: a warm gold cue, separate from the holo accents
	   used elsewhere. The darker ink stays legible across the whole gradient. */
	--sa-winners-menu-1: #B98236;
	--sa-winners-menu-2: #F5DA91;
	--sa-winners-menu-3: #C88E42;
	--sa-winners-menu-ink: #2B1B0B;

	/* Per-component Duel palette overrides. These stay in the token source of
	   truth rather than feature CSS. Side B is derived by the Duel's measured
	   -137deg hue rotation; only Custom supplies both sides explicitly. */
	--sa-duel-palette-nova: #00C389;
	--sa-duel-palette-ember: #FF4E3D;
	--sa-duel-palette-amber: #F59E0B;
	--sa-duel-palette-sunset: #FF3B6B;
	--sa-duel-palette-aurora: #16E5A6;
	--sa-duel-palette-cobalt: #3B82F6;

	/* Fan Alerts Arena Card, "Mono" accent (newsletter.css). Palette-
	   independent on purpose, like the heart: on Midnight Pitch every surface token
	   carries a navy cast, and the sign-up card must be able to stay
	   neutral. Graphite surfaces, white-alpha lines, a silver CTA with dark
	   ink — the button is not an accent fill, so --sa-on-accent does not
	   apply to it. The two pinned inks are the Amber / Aurora palettes' own
	   --sa-on-accent values, where white fails contrast. */
	--sa-nl-mono-surface-1: #1B1A20;
	--sa-nl-mono-surface-2: #131217;
	--sa-nl-mono-field: #0F0E13;
	--sa-nl-mono-line: rgba(255, 255, 255, .09);
	--sa-nl-mono-line-strong: rgba(255, 255, 255, .18);
	--sa-nl-mono-ink: #F2F1F5;
	--sa-nl-mono-muted: #A8A5B1;
	--sa-nl-mono-dim: #7D7A86;
	--sa-nl-mono-accent: #D9D7E0;
	--sa-nl-mono-btn-1: #FFFFFF;
	--sa-nl-mono-btn-2: #D8D6DF;
	--sa-nl-mono-btn-ink: #141318;
	/* Line-art envelope with a heart seal — the Arena Card's background
	   ornament, painted through a mask so it takes the card accent. */
	--sa-nl-envelope-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%2090'%3E%3Cg%20fill='none'%20stroke='%23000'%20stroke-width='2.5'%20stroke-linejoin='round'%20stroke-linecap='round'%3E%3Crect%20x='4'%20y='4'%20width='112'%20height='82'%20rx='10'/%3E%3Cpath%20d='M9%2011l51%2037%2051-37'/%3E%3Cpath%20d='M9%2081l37-31M111%2081L74%2050'/%3E%3C/g%3E%3Cpath%20d='M60%2069c-3.2-2.9-9-6.4-9-11.2a4.8%204.8%200%200%201%209-2.4%204.8%204.8%200%200%201%209%202.4c0%204.8-5.8%208.3-9%2011.2z'/%3E%3C/svg%3E");
	--sa-nl-on-amber: #2A1B02;
	--sa-nl-on-aurora: #04231A;

	/* Vote mark — a FIXED match ball (formerly a rose heart). Deliberately NOT
	   palette-driven, so it stays the same match-ball white across every style
	   preset. It stands for "vote" everywhere the theme used to show the ✦
	   sparkle. --sa-heart-mask is the same ball path as shining_heart_svg(),
	   for CSS ::before glyphs (mask-image). Token names keep "heart" because
	   the bridge and many components read them by name. */
	--sa-heart: #F4F7FB;    /* match-ball white (the vote mark)         */
	--sa-heart-2: #C6FF3D;  /* touchline lime (hover / secondary)       */
	--sa-heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 3.3l1.35-.95c1.82.56 3.37 1.76 4.38 3.34l-.39 1.34-1.35.46L13 6.7V5.3zm-3.35-.95L11 5.3v1.4L7.01 9.49l-1.35-.46-.39-1.34c1.01-1.57 2.56-2.77 4.38-3.34zM7.08 17.11l-1.14.1C4.73 15.81 4 13.99 4 12c0-.12.01-.23.02-.35l1-.73 1.38.48 1.46 4.34-.78 1.37zm7.42 2.48c-.79.26-1.63.41-2.5.41s-1.71-.15-2.5-.41l-.69-1.49.64-1.1h5.11l.64 1.11-.7 1.48zM14.27 15H9.73l-1.35-4.02L12 8.44l3.63 2.54L14.27 15zm3.79 2.21l-1.14-.1-.79-1.37 1.46-4.34 1.39-.47 1 .73c.01.11.02.22.02.34 0 1.99-.73 3.81-1.94 5.21z'/%3E%3C/svg%3E");

	/* CLOSED — the ended-vote red. Palette-INDEPENDENT for the same reason the
	   heart is: "this vote is over" has to look identical whichever palette the
	   site is wearing, and a stop signal that changes hue stops being a signal.
	   Kept separate from --sa-heart on purpose — the heart means "vote = love",
	   and overloading it with "finished" would blur both. */
	--sa-closed: #FF3D5A;      /* the ended red (also the lock mark)      */
	--sa-closed-2: #C2185B;    /* deeper crimson, the gradient's tail     */
	--sa-closed-3: #FF7A6B;    /* warm head of the sweep                  */
	--sa-closed-grad: linear-gradient(120deg, #FF7A6B 0%, #FF3D5A 48%, #C2185B 100%);

	/* Typography */
	--sa-font-display: "Clash Display", "Plus Jakarta Sans", system-ui, sans-serif;
	--sa-font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STYLE PRESETS. A "style" = one palette. The Customizer picker sets the html
   class `sa-style-{id}` (via the tie_html_class filter in style-switcher.php);
   :root above is the default "Midnight Pitch" (emerald → teal on midnight navy; internal id `nova`). Because the whole
   theme skin AND the TotalPoll bridge (bridge.css) read these --sa-* tokens,
   switching the html class re-themes the theme + poll + profiles + leaderboard
   together. Override only palette tokens here — surfaces, brand, gradient, glow,
   accents. `--sa-on-accent` is white on every preset EXCEPT Amber and Aurora,
   whose honey/mint accents are too light to carry it — see the note on that
   token in :root above before changing one.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Style · Ember — warm coral → amber (the original default, now opt-in) ── */
html.sa-style-ember {
	--sa-bg: #14110E;
	--sa-bg-2: #1A150F;
	--sa-surface-1: #211B14;
	--sa-surface-2: #2A2219;
	--sa-border: rgba(255, 120, 80, .16);
	--sa-border-strong: rgba(255, 120, 80, .34);

	--sa-violet: #FF4E3D;
	--sa-violet-light: #FF8A6B;
	--sa-violet-deep: #C43A2E;
	--sa-magenta: #FF6A3D;
	--sa-pink: #FFB020;
	--sa-gradient: linear-gradient(135deg, #FF4E3D 0%, #FF6A3D 45%, #FFB020 100%);

	--sa-text: #F6EFE7;
	--sa-text-muted: #B7A896;
	--sa-text-dim: #93826E;

	--sa-glow: 0 0 40px rgba(255, 78, 61, .32);
	--sa-on-accent: #ffffff;  /* Ember — 3.28:1 on the vote coral, clears the 3:1 UI floor */


	--sa-indigo: #F0894B;
	--sa-vote: #FF4E3D;
	--sa-vote-2: #FF7A3D;
	--sa-gold: #FFB020;
	--sa-gold-2: #FFC94D;
	--sa-win-hi: #FF7A3D;
	--sa-win-hi-2: #FF8A6B;
	--sa-holo-1: #FF6A3D;
	--sa-holo-2: #FF4E3D;
	--sa-holo-3: #FFB020;
}

/* ── Style 2 · Sunset — warm coral → hot pink, no purple ── */
html.sa-style-sunset {
	--sa-bg: #160B0C;
	--sa-bg-2: #1E0F10;
	--sa-surface-1: #271415;
	--sa-surface-2: #331A1B;
	--sa-border: rgba(255, 90, 120, .18);
	--sa-border-strong: rgba(255, 90, 120, .38);

	--sa-violet: #FF3B6B;
	--sa-violet-light: #FF8FA8;
	--sa-violet-deep: #C42648;
	--sa-magenta: #FF5C4A;
	--sa-pink: #FF9E45;
	--sa-gradient: linear-gradient(135deg, #FF9E45 0%, #FF5C4A 50%, #FF3B6B 100%);

	--sa-text: #FFF0EC;
	--sa-text-muted: #E0AEA6;
	--sa-text-dim: #C0938C;

	--sa-glow: 0 0 40px rgba(255, 59, 107, .34);
	--sa-on-accent: #ffffff;  /* Sunset — 3.45:1 on the vote rose, clears the 3:1 UI floor */

	--sa-indigo: #FF5C4A;
	--sa-vote: #FF3B6B;
	--sa-vote-2: #FF5C4A;
	--sa-gold: #FF9E45;
	--sa-gold-2: #FFC178;
	--sa-win-hi: #FF5C4A;
	--sa-win-hi-2: #FF8FA8;
	--sa-holo-1: #FF9E45;
	--sa-holo-2: #FF5C4A;
	--sa-holo-3: #FF3B6B;
}

/* ── Style 3 · Cobalt — electric blue → cyan, tech-premium ── */
html.sa-style-cobalt {
	--sa-bg: #0A0D14;
	--sa-bg-2: #0E1220;
	--sa-surface-1: #111623;
	--sa-surface-2: #172033;
	--sa-border: rgba(59, 130, 246, .18);
	--sa-border-strong: rgba(59, 130, 246, .38);

	--sa-violet: #3B82F6;
	--sa-violet-light: #7CB0FF;
	--sa-violet-deep: #1E5FD0;
	--sa-magenta: #2FA6E8;
	--sa-pink: #22D3EE;
	--sa-gradient: linear-gradient(135deg, #3B82F6 0%, #2FA6E8 50%, #22D3EE 100%);

	--sa-text: #EAF0FF;
	--sa-text-muted: #96A6C6;
	--sa-text-dim: #7488AB;

	--sa-glow: 0 0 44px rgba(59, 130, 246, .34);
	--sa-on-accent: #ffffff;  /* Cobalt — 3.68:1 on the vote blue, clears the 3:1 UI floor */

	--sa-indigo: #22D3EE;
	--sa-vote: #3B82F6;
	--sa-vote-2: #22D3EE;
	--sa-gold: #22D3EE;
	--sa-gold-2: #67E8F9;
	--sa-holo-1: #22D3EE;
	--sa-holo-2: #3B82F6;
	--sa-holo-3: #7CB0FF;
}

/* ── Style 4 · Amber — honey → tangerine, warm glow (light accent, dark ink) ── */
html.sa-style-amber {
	--sa-bg: #14100A;
	--sa-bg-2: #1B140B;
	--sa-surface-1: #221A0F;
	--sa-surface-2: #2C2114;
	--sa-border: rgba(245, 158, 11, .18);
	--sa-border-strong: rgba(245, 158, 11, .38);

	--sa-violet: #F59E0B;
	--sa-violet-light: #FCD34D;
	--sa-violet-deep: #B45309;
	--sa-magenta: #FB923C;
	--sa-pink: #FFD34E;
	--sa-gradient: linear-gradient(135deg, #F59E0B 0%, #FB923C 50%, #FFD34E 100%);

	--sa-text: #FBF3E0;
	--sa-text-muted: #C9B891;
	--sa-text-dim: #A08C64;

	--sa-glow: 0 0 40px rgba(245, 158, 11, .34);
	/* One of the two dark-ink exceptions. White on this honey is 2.15:1 — under
	   the 3:1 UI floor, so it genuinely washes out. Amber shipped dark from day
	   one and stays dark. */
	--sa-on-accent: #2A1B02;

	--sa-indigo: #FB923C;
	--sa-vote: #F59E0B;
	--sa-vote-2: #FB923C;
	--sa-gold: #FFD34E;
	--sa-gold-2: #FFE7A3;
	--sa-holo-1: #FFD34E;
	--sa-holo-2: #FB923C;
	--sa-holo-3: #F59E0B;
}

/* ── Style 5 · Aurora — mint → aqua, fresh lightstick (light accent, dark ink) ── */
html.sa-style-aurora {
	--sa-bg: #08110D;
	--sa-bg-2: #0C1813;
	--sa-surface-1: #101E18;
	--sa-surface-2: #16271F;
	/* Neutral (cool-white) borders — the mint accent is too luminous to tint
	   borders with; at any alpha it reads as harsh green "lines" on cards, the
	   related element and the framed poll nominees. Keep the accent for text /
	   buttons / fills; borders stay neutral. */
	--sa-border: rgba(224, 255, 245, .10);
	--sa-border-strong: rgba(224, 255, 245, .22);

	--sa-violet: #16E5A6;
	--sa-violet-light: #7CF7D4;
	--sa-violet-deep: #0E9E76;
	--sa-magenta: #24D3B0;
	--sa-pink: #35C8FF;
	--sa-gradient: linear-gradient(135deg, #16E5A6 0%, #24D3B0 50%, #35C8FF 100%);

	--sa-text: #EAF7F1;
	--sa-text-muted: #93B7AC;
	--sa-text-dim: #6E9184;

	--sa-glow: 0 0 42px rgba(22, 229, 166, .32);
	/* The other dark-ink exception. White on this mint is 1.64:1 — the lowest in
	   the library. Aurora shipped dark from day one and stays dark. */
	--sa-on-accent: #04231A;

	--sa-indigo: #35C8FF;
	--sa-vote: #16E5A6;
	--sa-vote-2: #35C8FF;
	--sa-gold: #7CF7D4;
	--sa-gold-2: #B5FBE6;
	--sa-holo-1: #7CF7D4;
	--sa-holo-2: #35C8FF;
	--sa-holo-3: #16E5A6;
}
