/* PITCH26 — Fan Zone light coat. GENERATED by scripts/apply-fanzone-phase2.js
   Scope: html[data-theme="light"] .fz-page (the 11 Fan Zone pages only).
   Dark mode is untouched. Flip the ladder first, then patch what cannot flip. */

/* ── 1. THE LADDER ─────────────────────────────────────────────
   main.css defines these once, for dark. Nothing flipped them for light, which is
   why components using --ink-text stayed cream. Flipped here, scoped to Fan Zone. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) {
  /* The site paints its light canvas #F2ECDF (measured on index.html and results.html).
     The Fan Zone was painting #F7F1E4, a paler cream, so with no nation chosen it read as
     a different theme from the rest of the site. Same value now. */
  --ink: #f2ecdf;
  --ink-2: #fffdf7;
  --ink-3: #ffffff;
  --ink-line: rgba(20, 26, 43, 0.12);
  --ink-text: #141a2b;
  --ink-muted: #4a5168;
  --true-white: #141a2b;
  --text-primary: #141a2b;
  --text-secondary: #4a5168;
  --border: rgba(20, 26, 43, 0.14);
  --fwc-dark-charcoal: #2a2f42;
  --fwc-dark-charcoal-text: #2a2f42;
  --fwc-blue-text: #1e3a63;
  --eyebrow: #9c1c2c;
  --footer-heading: #141a2b;
  --footer-body: #4a5168;
  color-scheme: light;
}

/* ── 2. ACCENTS USED AS TEXT ───────────────────────────────────
   --page-accent is a bright fill hue. As text on paper it lands near 1.8-3.0:1. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-hero-eyebrow,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-game-row-high-val,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-progress-label-current,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-subnav-title .accent,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .accent {
  color: color-mix(in oklab, var(--page-accent) 52%, #141a2b) !important;
}

/* ── 3. FOOTER ─────────────────────────────────────────────────
   Footer links were pure white on paper (1.02:1). Body copy dark, social links gold,
   which is the site's own rule. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .footer-link,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .footer-col a,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .footer-logo,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .footer-heading {
  color: #141a2b !important;
}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .footer-social a,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .footer-social-link,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .footer-icon {
  color: #7a5f00 !important;
}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .footer-copy,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .footer-body {
  color: #4a5168 !important;
}

/* ── 4. LEVEL CHIP (every page) ────────────────────────────────
   Cream numerals sat on a light accent fill. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .lvl-num,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .lvl-title {
  color: #141a2b !important;
}

/* ── 5. METAL TIERS ────────────────────────────────────────────
   Bronze / silver / platinum were tuned for dark surfaces. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-card-rarity-badge.bronze,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-badge-icon.tier-bronze,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-badge-tier.tier-bronze,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .tier-bronze { color: #6b3d10 !important; }
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-card-rarity-badge.silver,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-badge-icon.tier-silver,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-badge-tier.tier-silver,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .tier-silver { color: #3f4550 !important; }
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-card-rarity-badge.gold,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-badge-icon.tier-gold,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-badge-tier.tier-gold,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .tier-gold { color: #6d5200 !important; }
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-badge-icon.tier-platinum,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-badge-tier.tier-platinum,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .tier-platinum { color: #2f4a5e !important; }
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-badge-icon.tier-legendary,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-badge-tier.tier-legendary,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .tier-legendary { color: #6b1f5e !important; }

/* ── 6. SIGNAL COLOURS ─────────────────────────────────────────
   Form/score hues are bright by design; darkened only where they carry text. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-game-row-high-val,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-streak-flame,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .pos,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-pos { color: #0d6b52 !important; }
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .neg,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-neg { color: #a01028 !important; }

/* ── 7. EASTER EGGS ────────────────────────────────────────────
   That page keeps its own dark card palette, so flipping the ink inverted it:
   dark type on dark cards. Surfaces go light here, like every other page. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub).fz-eggs-page .fz-egg-card,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-card,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-card--locked,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-card--unlocked {
  background: var(--ink-2) !important;
  border-color: var(--ink-line) !important;
}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-number,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-icon,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-title { color: #141a2b !important; }
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-status,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-status--locked,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-hint { color: #4a5168 !important; }

/* ── 8. MEASURED INK FIXES ────────────────────────────────────
   Derived from painted-pixel pairs on the 11 pages: each rule is the smallest
   lightness change that clears the gate against the surface actually painted under
   that text. 538 failing nodes -> 162 across the 11 pages. Near-black outputs are
   snapped to the site ink so nothing reads as pure black. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .footer-author{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .footer-link{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .footer-logo{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-badge-icon{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-badge-tier{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-chip{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-filters{background-color:#F3F3F6 !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-ring-text{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-btn{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-card-flavor{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-card-info{background-color:#F5F3F0 !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-card-name{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-card-number{background-color:#F5F3F1 !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-cards-filter-btn{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-cards-filter-toggle{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-cards-load-more{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-cards-rarity-chip{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-cards-stat-value{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-category-pill{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-linked-card{background-color:#F2F3FC !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-linked-desc{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-linked-tier{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-egg-progress-text{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-hero-eyebrow{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-mode-btn-desc{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-mode-btn-name{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-player-link{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-pq-trait-tag{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-set-data-label{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-set-granular-btn{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-set-raw-json{background-color:#F2F3F8 !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-sidebar-card-value{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-sim-mode-desc{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-sim-mode-name{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-sim-quick-btn{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-stats-breakdown-val{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-subnav{background-color:#F0F3FB !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-subnav-back{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-subnav-score{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ti-ovr-big{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ti-star-rating{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-vs-divider{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-wai-mode-name{color:#141A2B !important;}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .lvl-num{color:#141A2B !important;}

/* ── 9. FILLED CONTROLS ───────────────────────────────────────
   Buttons whose fill is the bright accent carried cream/white type: 1.62-3.13:1.
   Measured against each fill: gold 9.53, teal 8.67, orange 6.18, pink 4.91. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-start-btn,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-pq-start-btn,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-sim-start-btn,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-prediction-btn {
  color: #141A2B !important;
}
/* Nation links sit on a solid flag colour: dark ink measured 5.87 on the green. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-nation-link {
  color: #0B0F1E !important;
}
/* The POT chip is a red fill; white measures 5.43 there, dark ink only 3.19. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ti-pot {
  color: #FFFFFF !important;
}
/* Bronze tier: #6B3D10 measured 4.08-4.15 on the bronze fill. #53300B measures 5.31. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-card-rarity-badge.bronze,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .tier-bronze {
  color: #53300B !important;
}
/* Inline accent paragraphs (guess-score sets style="color:var(--page-accent)"). */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) p[style*="page-accent"] {
  color: color-mix(in oklab, var(--page-accent) 40%, #141a2b) !important;
}

/* ── 10. LEVEL BADGES AND POT CHIPS ───────────────────────────
   These carry cream type on a light accent fill. Measured 1.20-1.55:1. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .lvl-badge,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-stats-level-badge,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-stats-level-badge span {
  color: #141A2B !important;
}
/* The POT chip's fill is an inline flag colour: red in one row, pale yellow in another,
   so no single text colour works. In light mode it becomes a tinted chip instead. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ti-pot {
  background: color-mix(in oklab, var(--page-accent) 16%, #FFFDF7) !important;
  color: #141A2B !important;
}
/* Dark ink is the safe extreme for bright button fills (purple was 4.38 with #141A2B). */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-sim-start-btn {
  color: #0B0F1E !important;
}

/* ── 11. NATION-VARIANT SAFETY ────────────────────────────────
   With a nation applied, three things turned dark on a light page: the hero gradient
   (painted the nation's secondary, e.g. #BF002F at 1.26:1 under a dark H1), the primary
   CTA fill (dark green under dark ink, 2.78) and the level badge (4.07). Light pages
   stay light: the hero becomes a tint of the page accent, the CTA uses the fitted
   accent-text as its fill with cream type, and the badge is a tint. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-hero {
  background-image: linear-gradient(160deg,
    color-mix(in oklab, var(--page-accent) 12%, #FFFDF7) 0%,
    #FFFDF7 62%) !important;
  background-color: #FFFDF7 !important;
}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-start-btn,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-pq-start-btn {
  background: var(--fz-accent-text) !important;
  border-color: var(--fz-accent-text) !important;
  color: #FFFDF7 !important;
}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .lvl-badge {
  background: color-mix(in oklab, var(--page-accent) 18%, #FFFDF7) !important;
  color: #141A2B !important;
}

/* ── 12. SELECTED FILTER CHIPS ────────────────────────────────
   A selected chip is filled with the nation accent; dark ink measured 2.68 on Norway's
   red. Filled with the fitted accent-text and cream type instead. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-cards-filter-btn.selected,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-ach-chip.selected,
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-wai-mode-btn.active {
  background: var(--fz-accent-text) !important;
  border-color: var(--fz-accent-text) !important;
  color: #FFFDF7 !important;
}

/* ── 13. PROFILE AVATAR ───────────────────────────────────────
   Initials sat on a solid nation fill: dark ink measured 1.64 on Norway's maroon. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-set-profile-avatar {
  background: color-mix(in oklab, var(--page-accent) 16%, #FFFDF7) !important;
  border: 1px solid color-mix(in oklab, var(--page-accent) 34%, #FFFDF7) !important;
  color: #141A2B !important;
}

/* ── 14. FILLS THAT INHERIT THE NATION ACCENT ─────────────────
   The sim start button and the stats level badge take the nation accent as their fill,
   so no fixed text colour works. Filling with the fitted accent-text and using cream
   type is guaranteed: cream-on-accent-text equals accent-text-on-cream, which the ramps
   already hold at 4.5:1 in all 96 nation-modes. */
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-sim-start-btn {
  background: var(--fz-accent-text) !important;
  border-color: var(--fz-accent-text) !important;
  color: #FFFDF7 !important;
}
html[data-theme="light"]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) .fz-stats-level-badge {
  background: color-mix(in oklab, var(--page-accent) 18%, #FFFDF7) !important;
  color: #141A2B !important;
}
