/* PITCH26 — Fan Zone colour amplification. GENERATED by scripts/apply-fanzone-phase8.js.
   The nation is not only the background: the nav, rules, cards, chips, numbers, table
   heads, sub-navigation, links, meters and footer all wear its colours. Token-driven,
   so one block covers all 48 nations and inherits every contrast guarantee. */

html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) {
  --text-secondary: var(--fz-muted);
  --text-tertiary: color-mix(in oklab, var(--fz-muted) 84%, var(--fz-page));
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.nav, .fz-nav, nav, .site-nav) {
  border-top: 3px solid var(--fz-accent) !important;
  background: color-mix(in oklab, var(--fz-accent) 2%, var(--fz-surface)) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.nav-link, .fz-nav-link, .nav a):not(.active):not([aria-current]) {
  color: var(--fz-ink) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.nav-link, .fz-nav-link, .nav a):is(.active, [aria-current]) {
  color: color-mix(in oklab, var(--fz-accent-text) 90%, var(--fz-ink)) !important;
  box-shadow: inset 0 -2px 0 0 var(--fz-accent) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(h2, .fz-section-title, .section-title):not(.fz-hero-title) {
  position: relative !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(h2, .fz-section-title, .section-title):not(.fz-hero-title)::after {
  content: "" !important;
  display: block !important;
  width: 34px !important;
  height: 3px !important;
  margin-top: 8px !important;
  background: var(--fz-accent-2) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-card, .fz-game-card, .fz-set-card, .fz-featured, .panel, .card) {
  border-top: 2px solid var(--fz-accent) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-card, .fz-game-card, .fz-set-card):hover {
  border-top-color: var(--fz-accent-2) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-hero-stat-value, .fz-stat-value, .stat-value, .fz-big-number, .fz-set-level-xp) {
  color: var(--fz-accent-text) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-chip, .fz-tag, .fz-pill, .fz-badge, .fz-mode-btn, .fz-category-pill, .fz-difficulty-badge):not(.fz-card-rarity-badge):not(.fz-cards-rarity-badge) {
  background: color-mix(in oklab, var(--fz-accent) 14%, var(--fz-surface)) !important;
  color: var(--fz-ink) !important;
  border: 1px solid color-mix(in oklab, var(--fz-accent) 38%, var(--fz-line)) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-mode-btn.selected, .fz-category-pill.selected, .fz-chip.active, .fz-tag.active) {
  background: color-mix(in oklab, var(--fz-accent) 26%, var(--fz-surface)) !important;
  color: var(--fz-ink) !important;
  border: 1px solid var(--fz-accent-fill) !important;
  box-shadow: inset 0 0 0 1px var(--fz-accent-fill) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-card-lock-hint, .fz-cards-stat-label, .fz-card-meta, .fz-cards-filter-btn, .fz-cards-filter-btn span) {
  color: var(--fz-muted) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-cards-filter-btn, .fz-cards-toolbar button):is(.selected, .active) {
  color: var(--fz-on-fill) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-cards-filter-btn, .fz-cards-toolbar button):is(.selected, .active) span {
  color: var(--fz-on-fill) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-subnav-btn, .fz-tab):is(.active, [aria-current]) {
  background: var(--fz-accent-fill) !important;
  color: var(--fz-on-fill) !important;
  border-color: transparent !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-card-rarity-badge, .fz-cards-rarity-badge) {
  background: color-mix(in oklab, var(--fz-accent) 18%, var(--fz-surface)) !important;
  color: var(--fz-ink) !important;
  border: 1px solid color-mix(in oklab, var(--fz-accent) 40%, var(--fz-line)) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(table thead th, .fz-table th) {
  background: color-mix(in oklab, var(--fz-accent) 10%, var(--fz-surface)) !important;
  color: var(--fz-ink) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-card a, .fz-hero a, main p a, main li a, .fz-set-desc a) {
  color: var(--fz-accent-text) !important;
  text-decoration-color: color-mix(in oklab, var(--fz-accent) 55%, transparent) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-progress-fill, .fz-bar-fill, .fz-meter-fill, .fz-set-level-fill) {
  background: var(--fz-accent-fill) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.footer, .site-footer, footer.fz-footer) {
  border-top: 3px solid var(--fz-accent) !important;
  background: linear-gradient(180deg, var(--fz-surface), var(--fz-page)) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.footer-heading, .footer-col h4, .footer-col h3) {
  color: var(--fz-accent-text) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-btn-secondary, .fz-btn-ghost, .btn-secondary) {
  background: color-mix(in oklab, var(--fz-accent) 8%, var(--fz-surface)) !important;
  color: var(--fz-accent-text) !important;
  border: 1px solid color-mix(in oklab, var(--fz-accent) 45%, var(--fz-line)) !important;
}
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-hero-eyebrow, .eyebrow, .fz-eyebrow) {
  color: color-mix(in oklab, var(--fz-accent-text) 52%, var(--fz-ink)) !important;
}

/* the flag stripe above the nav thickens slightly so the colours read at a glance */
html[data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)::after {
  height: 7px !important;
  box-shadow: 0 1px 0 0 color-mix(in oklab, var(--fz-accent-2) 60%, transparent) !important;
}

/* fz-atoms-v3 — the last unreadable atoms, fixed against their real surface. */
/* Mode descriptions sit on a tinted panel, so the muted token (gated against paper) lands at
   3.1–3.9:1 there. Ink is gated at 13:1 against paper and holds on the panel. */
html[data-fz-nation]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-gts-mode-desc, .fz-gts-mode-note, .fz-gts-mode p, .fz-gts-mode small) {
  color: var(--fz-ink) !important;
  opacity: 1 !important;
}
/* A selected chip paints the ACCENT, while --fz-on-fill is gated against the pale --fz-fill
   tint, so the label went dark-on-dark at 1.98:1. The accent token is chosen to hold 4.6:1
   against the page, so the page colour is the correct label on an accent fill — and it stays
   correct in night mode, where the accent is the light end and the page the dark one. */
/* The palette sheet already sets a selected chip to --fz-on-fill with six classes of weight,
   so this rule repeats the attribute to take seven and actually win. */
html[data-fz-nation][data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-cards-filter-btn, .fz-cards-toolbar button):is(.selected, .active, .is-active),
html[data-fz-nation][data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-filter-btn):is(.selected, .active, .is-active) {
  color: var(--fz-page) !important;
}
/* The game pages still colour a few atoms with raw kit hexes: a mode name in the shirt gold
   on a panel (4.23:1), a pot chip with the trim green on the accent red (1.32:1). Those are
   colours, not tokens, so they cannot follow the surface. Each atom below is pointed at a
   token measured for where it actually sits. Shape and size are untouched. */
html[data-fz-nation][data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-sim-mode-name, .fz-sim-mode-desc, .fz-wai-mode-name, .fz-wai-mode-desc,
      .fz-sb-mode-name, .fz-sb-mode-desc, .fz-set-stat-lbl, .fz-set-stat-value,
      .fz-ti-star-rating, .fz-ti-ovr-big, .fz-ti-label, .fz-nation-link,
      .fz-set-theme-color-lab, .fz-set-pref-desc, .fz-set-level-bar-text, .fz-set-data-label,
      .fz-prediction-label) {
  color: var(--fz-ink) !important;
}
/* A filled control keeps the accent as its fill and takes the page colour as its label. */
html[data-fz-nation][data-fz-nation][data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-ti-pot, .fz-sim-start-btn, .fz-ti-badge, .fz-ti-chip, .lvl-badge, .level-badge),
html[data-fz-nation][data-fz-nation][data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-ti-pot, .fz-sim-start-btn, .fz-ti-badge, .fz-ti-chip, .lvl-badge, .level-badge):is(span, button, a, div),
html[data-fz-nation][data-fz-nation][data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-stats-level-badge, .fz-level-badge, .fz-stats-level-row .fz-stats-level-badge) > span {
  background: var(--fz-accent) !important;
  background-image: none !important;
  color: var(--fz-page) !important;
}
/* The simulator paints each team's header in that team's own colour, so the type inside it
   had no stable surface to be measured against: 1.47:1 on a pale blue header. The header now
   takes the raised surface and the team colour moves to its edge, where it still identifies
   the team without carrying the text. */
html[data-fz-nation][data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-ti-header, .fz-ti-header-left, .fz-ti-name, .fz-ti-name a) {
  background: var(--fz-raised) !important;
  background-image: none !important;
  color: var(--fz-ink) !important;
  border-left: 4px solid var(--fz-accent) !important;
}
html[data-fz-nation][data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-ti-header) :is(a, span, div, strong) {
  color: var(--fz-ink) !important;
}
/* Achievements and stats: tier badges kept their semantic bronze/silver/gold, but those
   colours were painted as type on whatever surface happened to be behind them (2.57:1), and
   a selected filter chip took the accent as its fill while its label stayed gold (3.99:1).
   The tier colour is preserved as the badge's EDGE, its type takes ink on a token surface,
   and a selected chip takes the page colour on the accent fill. */
html[data-fz-nation][data-fz-nation][data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-ach-chip, .fz-ach-tier-chip, .fz-ach-filter, .fz-subnav-score):is(.selected, .active, .is-active) {
  background: var(--fz-accent) !important;
  background-image: none !important;
  color: var(--fz-page) !important;
}
html[data-fz-nation][data-fz-nation][data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-ach-badge) {
  background: var(--fz-raised) !important;
  background-image: none !important;
  border-left: 4px solid currentColor !important;
}
html[data-fz-nation][data-fz-nation][data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-ach-badge-tier, .fz-ach-badge-icon, .fz-ach-badge-label, .fz-ach-badge-name,
      .fz-ach-tier-count, .fz-ach-tier-chip, .fz-progress-label-curr, .fz-progress-label,
      .fz-stats-breakdown-val, .fz-stats-breakdown-lbl, .fz-subnav-score,
      [class*="progress-label"], [class*="progress-val"], [class*="progress-count"],
      .fz-egg-status, .fz-egg-meta, .fz-egg-hint, .fz-egg-name, .fz-egg-count) {
  color: var(--fz-ink) !important;
}
/* the rarity pill keeps its semantic hue as a fill, so its label takes the page colour */
html[data-fz-nation][data-fz-nation][data-fz-nation][data-theme]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub)
  :is(.fz-rarity, .fz-rarity-badge, .fz-card-rarity) {
  color: var(--fz-page) !important;
}
/* end fz-atoms-v3 */
