/* =====================================================================
   InazumArcade v373 · static contrast registry + animation/perf hardfix
   - NO MutationObserver / NO runtime DOM contrast scan.
   - Color-only overrides: no layout, size, position, hitbox or gameplay changes.
   - Protects intentionally dark inner surfaces when a light/mixed UI skin is active.
   ===================================================================== */

/* Light or mixed-light interface contexts. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]){
  --ia-v373-dark-fg:#f7fbff;
  --ia-v373-dark-muted:#c8d8e1;
  --ia-v373-dark-soft:#a9c0cf;
  --ia-v373-dark-shadow:0 1px 2px rgba(0,0,0,.88);
}

/* ------------------------------------------------------------------
   GALAXY — all persistent dark cards/rows inside otherwise light skins.
   This includes the reported LOADOUT RAPIDI strip and later Galaxy systems.
   ------------------------------------------------------------------ */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay :is(
  .gd275-loadouts,.gd275-loadout,.gd275-free-card,.gd275-free-note,.gd275-overlord-warning,
  .gd275-overlord-mission,.gd275-overlord-kicker,
  .gd-squad-head,.gd-squad-box,.gd-formation-btn,.gd-squad-summary,.gd-bench-card,
  .gd-lineup-slot,.gd-lineup-chip,.gd-player-detail,.gd-prematch-rival,.gd-roster-pane,
  .gd-panel,.gd-module,.gd-mission-card,.gd-feed-card,.gd-player-card,.gd-guide-section,
  .gd-chrono-condition-grid>div,.gd-rift-tier,.gd-temporal-trait,.gd-result-card,
  .gd-mini,.gd-stat-pill,.gd-reward,.gd-sector-status,.gd-tech-guide,
  .gd-honors-shell,.gd-honors-card,.gd-data-shell,.gd-scout-terminal-shell,.gd-scout-trial,
  .gd-chrono-brief-card,.gd-ie2-intro-card,.gd-ie2-steps>div,
  .gd-duel-card,.gd-shot-card,.gd-duel-vs>div,.gd-action-btn,.gd-shot-cancel,
  .gd-controlled-hud,.gd-match-side,.gd57-setpiece-panel,
  .ia-gd-phone-dock,.ia-gd-phone-actions,.gd-pack-actions,.gd-rift-anomaly-list>span,
  .gd-chrono-brief-meta span,.gd-variant-ready
):not(#iaV373Never#iaV373Never2){
  color:var(--ia-v373-dark-fg)!important;
  text-shadow:var(--ia-v373-dark-shadow)!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay :is(
  .gd275-loadouts,.gd275-loadout,.gd275-free-card,.gd275-free-note,.gd275-overlord-warning,
  .gd275-overlord-mission,.gd-squad-head,.gd-squad-box,.gd-formation-btn,.gd-squad-summary,
  .gd-bench-card,.gd-lineup-slot,.gd-lineup-chip,.gd-player-detail,.gd-prematch-rival,
  .gd-panel,.gd-module,.gd-mission-card,.gd-feed-card,.gd-player-card,.gd-guide-section,
  .gd-chrono-condition-grid>div,.gd-rift-tier,.gd-temporal-trait,.gd-result-card,
  .gd-mini,.gd-stat-pill,.gd-reward,.gd-sector-status,.gd-tech-guide,.gd-honors-shell,
  .gd-honors-card,.gd-data-shell,.gd-scout-terminal-shell,.gd-scout-trial,.gd-chrono-brief-card,
  .gd-ie2-intro-card,.gd-ie2-steps>div,.gd-duel-card,.gd-shot-card,.gd-duel-vs>div,
  .gd-action-btn,.gd-shot-cancel,.gd-controlled-hud,.gd-match-side,
  .gd57-setpiece-panel,.ia-gd-phone-dock,.ia-gd-phone-actions
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,em,td,th,a,button):not(#iaV373Never#iaV373Never2){
  color:var(--ia-v373-dark-fg)!important;
  text-shadow:var(--ia-v373-dark-shadow)!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay :is(
  .gd275-loadouts,.gd275-loadout,.gd275-free-card,.gd275-free-note,.gd275-overlord-warning,
  .gd275-overlord-mission,.gd-squad-head,.gd-squad-box,.gd-formation-btn,.gd-squad-summary,
  .gd-bench-card,.gd-lineup-slot,.gd-lineup-chip,.gd-player-detail,.gd-prematch-rival,
  .gd-panel,.gd-module,.gd-mission-card,.gd-feed-card,.gd-player-card,.gd-guide-section,
  .gd-chrono-condition-grid>div,.gd-rift-tier,.gd-temporal-trait,.gd-result-card,
  .gd-mini,.gd-stat-pill,.gd-reward,.gd-sector-status,.gd-tech-guide,.gd-honors-shell,
  .gd-honors-card,.gd-data-shell,.gd-scout-terminal-shell,.gd-scout-trial,.gd-chrono-brief-card,
  .gd-ie2-intro-card,.gd-ie2-steps>div,.gd-duel-card,.gd-shot-card,.gd-duel-vs>div,
  .gd-action-btn,.gd-shot-cancel,.gd-controlled-hud,.gd-match-side,
  .gd57-setpiece-panel,.ia-gd-phone-dock,.ia-gd-phone-actions
) :is(p,small,span,.muted,.meta,.sub,.desc,.description):not(#iaV373Never#iaV373Never2){
  color:var(--ia-v373-dark-muted)!important;
  text-shadow:var(--ia-v373-dark-shadow)!important;
}
/* Reported strip: explicit direct-child rules beat the old light-theme inheritance. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay .gd275-loadouts-title b:not(#iaV373Never#iaV373Never2){color:#dff7ff!important;text-shadow:var(--ia-v373-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay .gd275-loadouts-title span:not(#iaV373Never#iaV373Never2),
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay .gd275-loadout>span:not(#iaV373Never#iaV373Never2){color:#b9ceda!important;text-shadow:var(--ia-v373-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay .gd275-loadout>strong:not(#iaV373Never#iaV373Never2){color:#c7f5ff!important;text-shadow:var(--ia-v373-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay .gd275-loadout .gd-btn:not(#iaV373Never#iaV373Never2){color:#f8fdff!important;text-shadow:0 1px 2px rgba(0,0,0,.9)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay .gd275-loadout .gd-btn:disabled:not(#iaV373Never#iaV373Never2){color:#879ba7!important;opacity:.78!important}

/* ------------------------------------------------------------------
   CAREER — deep widgets across current + late-added dashboard systems.
   ------------------------------------------------------------------ */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-career :is(
  .career-stat,.career-attr,.career-plan,.career-trophy-group,.career-table,.career-table td,.career-table th,
  .career-offer,.career-matchbox,.career-market-status,.career-next-opponent,.career-effect,.career-effects-empty,
  .career-club-trait,.career-deep-panel,.career-story-context,.career-story-choice,.career-objective-progress,
  .career-intl-expanded,.career-intl-group,.career-intl-match,.career-bracket-match,.career-bracket-compact-progress,
  .career-v18-condition-grid>*,.career-v58-popover,.career-v58-moved-panel,.career-v58-tile,
  .career-v61-context,.career-v61-season-timeline,.career-v61-week-btn,.career-v61-week-tooltip,
  .career-v62-head-timeline,.career-v64-position,.career-v64-top8,.career-v200-summary,
  .career-v200-story-context,.career-v275-ambition-card,.career-v306-card,.career-v306-memory-field,
  .career-award-box,.career-elimination-note
):not(#iaV373Never#iaV373Never2){color:var(--ia-v373-dark-fg)!important;text-shadow:var(--ia-v373-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-career :is(
  .career-stat,.career-attr,.career-plan,.career-trophy-group,.career-table,.career-offer,.career-matchbox,
  .career-market-status,.career-next-opponent,.career-effect,.career-effects-empty,.career-club-trait,
  .career-deep-panel,.career-story-context,.career-story-choice,.career-objective-progress,.career-intl-expanded,
  .career-intl-group,.career-intl-match,.career-bracket-match,.career-bracket-compact-progress,
  .career-v18-condition-grid>*,.career-v58-popover,.career-v58-moved-panel,.career-v58-tile,
  .career-v61-context,.career-v61-season-timeline,.career-v61-week-btn,.career-v61-week-tooltip,
  .career-v62-head-timeline,.career-v64-position,.career-v64-top8,.career-v200-summary,
  .career-v200-story-context,.career-v275-ambition-card,.career-v306-card,.career-v306-memory-field,
  .career-award-box,.career-elimination-note
) :is(h1,h2,h3,h4,h5,h6,b,strong,span,label,legend,td,th,em,a):not(#iaV373Never#iaV373Never2){color:var(--ia-v373-dark-fg)!important;text-shadow:var(--ia-v373-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-career :is(
  .career-stat,.career-attr,.career-plan,.career-trophy-group,.career-table,.career-offer,.career-matchbox,
  .career-market-status,.career-next-opponent,.career-effect,.career-effects-empty,.career-club-trait,
  .career-deep-panel,.career-story-context,.career-story-choice,.career-objective-progress,.career-intl-expanded,
  .career-intl-group,.career-intl-match,.career-bracket-match,.career-bracket-compact-progress,
  .career-v18-condition-grid>*,.career-v58-popover,.career-v58-moved-panel,.career-v58-tile,
  .career-v61-context,.career-v61-season-timeline,.career-v61-week-btn,.career-v61-week-tooltip,
  .career-v62-head-timeline,.career-v64-position,.career-v64-top8,.career-v200-summary,
  .career-v200-story-context,.career-v275-ambition-card,.career-v306-card,.career-v306-memory-field,
  .career-award-box,.career-elimination-note
) :is(p,small,.meta,.career-note,.career-sub,.muted,.desc,.description):not(#iaV373Never#iaV373Never2){color:var(--ia-v373-dark-muted)!important;text-shadow:var(--ia-v373-dark-shadow)!important}

/* ------------------------------------------------------------------
   FF / FFI / ONLINE / BUILDER — legacy dark cards inside light panels.
   ------------------------------------------------------------------ */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) .global-menu-screen :is(
  .bmatch,.ff72-hub-card,.ff72-scout-card,.ff72-summary-stat,.ff72-plan,
  .ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context,
  .ffi72-world-card,.ffi72-news-item,.ffi72-builder-strip,.ffi72-expectation,.ffi72-leader,.ffi72-live-race,
  .ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-star-choice,.ffi95-plan-card,.ffi95-plan-choice,
  .ffi97-hero-card,.ffi97-hero-stat,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match,
  .player-row,.roster-mini,.intl-player-row,.intl-role-overall,.selected-player,.team-card,.team-row,
  .role-tab,.builder-summary,.builder-card,.lobby-card,.lobby-row
):not(#iaV373Never#iaV373Never2){color:var(--ia-v373-dark-fg)!important;text-shadow:var(--ia-v373-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) .global-menu-screen :is(
  .bmatch,.ff72-hub-card,.ff72-scout-card,.ff72-summary-stat,.ff72-plan,
  .ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context,
  .ffi72-world-card,.ffi72-news-item,.ffi72-builder-strip,.ffi72-expectation,.ffi72-leader,.ffi72-live-race,
  .ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-star-choice,.ffi95-plan-card,.ffi95-plan-choice,
  .ffi97-hero-card,.ffi97-hero-stat,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match,
  .player-row,.roster-mini,.intl-player-row,.intl-role-overall,.selected-player,.team-card,.team-row,
  .role-tab,.builder-summary,.builder-card,.lobby-card,.lobby-row
) :is(h1,h2,h3,h4,h5,h6,b,strong,span,label,legend,td,th,em,a):not(#iaV373Never#iaV373Never2){color:var(--ia-v373-dark-fg)!important;text-shadow:var(--ia-v373-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) .global-menu-screen :is(
  .bmatch,.ff72-hub-card,.ff72-scout-card,.ff72-summary-stat,.ff72-plan,
  .ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context,
  .ffi72-world-card,.ffi72-news-item,.ffi72-builder-strip,.ffi72-expectation,.ffi72-leader,.ffi72-live-race,
  .ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-star-choice,.ffi95-plan-card,.ffi95-plan-choice,
  .ffi97-hero-card,.ffi97-hero-stat,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match,
  .player-row,.roster-mini,.intl-player-row,.intl-role-overall,.selected-player,.team-card,.team-row,
  .role-tab,.builder-summary,.builder-card,.lobby-card,.lobby-row
) :is(p,small,.muted,.meta,.small-note,.desc,.description,.score.pending):not(#iaV373Never#iaV373Never2){color:var(--ia-v373-dark-muted)!important;text-shadow:var(--ia-v373-dark-shadow)!important}

/* FFI World Ranking is sometimes outside the ordinary bracket wrapper. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="ds"]) .ffi97-stage :is(
  .ffi97-hero-card,.ffi97-hero-stat,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match,
  .ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-plan-card,.ffi95-plan-choice
) :is(h1,h2,h3,h4,h5,h6,b,strong,span,label,legend,td,th,em,a):not(#iaV373Never#iaV373Never2){color:#f7fbff!important;text-shadow:var(--ia-v373-dark-shadow,0 1px 2px rgba(0,0,0,.88))!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="ds"]) .ffi97-stage :is(
  .ffi97-hero-card,.ffi97-hero-stat,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match,
  .ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-plan-card,.ffi95-plan-choice
) :is(p,small,.score.pending,.ffi97-fixtures-note,.muted,.meta):not(#iaV373Never#iaV373Never2){color:#c8d8e1!important;text-shadow:0 1px 2px rgba(0,0,0,.86)!important}

/* ------------------------------------------------------------------
   INDOVINAZUMA / BOSSRUSH — deep interactive cards remain readable.
   ------------------------------------------------------------------ */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-indovinazuma :is(
  .ig-mode-btn,.ig-suggestions,.ig-suggestion-item,.ig-cell:not(.correct):not(.wrong),.ig-board,.ig-row,.ig-result,.ig-help-card
) :is(h1,h2,h3,h4,h5,h6,b,strong,span,label,legend,td,th,em,a):not(#iaV373Never#iaV373Never2){color:var(--ia-v373-dark-fg)!important;text-shadow:var(--ia-v373-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-indovinazuma :is(.ig-mode-btn,.ig-suggestions,.ig-suggestion-item,.ig-cell:not(.correct):not(.wrong),.ig-board,.ig-row,.ig-result,.ig-help-card) :is(p,small,.muted,.meta,.desc):not(#iaV373Never#iaV373Never2){color:var(--ia-v373-dark-muted)!important;text-shadow:var(--ia-v373-dark-shadow)!important}

body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #bossRushShell :is(
  .bossrush-stat,.bossrush-teamplate,.bossrush-relic,.bossrush-event,.bossrush-choice,
  .br-inv-item,.br-shop-item,.br-resource,.br-target,.br-trait,.br-match-card,.br-match-team,.br-stat,
  .br-v110-mutator,.br-v198-artifact-card,.br-v198-artifact-choice,.br-v199-contract-choice,
  .br-v4-build-card,.br-v4-build-item,.br-v5-mini-card,.br-v5-relic-set,.br-endless-history-row,
  .brx-runbox,.brx-hero,.brx-event-card,.brx-team,.brx-action-card,.brx-slot,.br-endless-contract-detail,
  .br-choice-center,.br-choice-content,.br-ency-modal,.br-v6-encounter-note
) :is(h1,h2,h3,h4,h5,h6,b,strong,span,label,legend,td,th,em,a):not(#iaV373Never#iaV373Never2){color:var(--ia-v373-dark-fg)!important;text-shadow:var(--ia-v373-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #bossRushShell :is(
  .bossrush-stat,.bossrush-teamplate,.bossrush-relic,.bossrush-event,.bossrush-choice,
  .br-inv-item,.br-shop-item,.br-resource,.br-target,.br-trait,.br-match-card,.br-match-team,.br-stat,
  .br-v110-mutator,.br-v198-artifact-card,.br-v198-artifact-choice,.br-v199-contract-choice,
  .br-v4-build-card,.br-v4-build-item,.br-v5-mini-card,.br-v5-relic-set,.br-endless-history-row,
  .brx-runbox,.brx-hero,.brx-event-card,.brx-team,.brx-action-card,.brx-slot,.br-endless-contract-detail,
  .br-choice-center,.br-choice-content,.br-ency-modal,.br-v6-encounter-note
) :is(p,small,.muted,.meta,.desc,.description):not(#iaV373Never#iaV373Never2){color:var(--ia-v373-dark-muted)!important;text-shadow:var(--ia-v373-dark-shadow)!important}

/* ------------------------------------------------------------------
   PROFILE / HALL / PROGRESSION — light profile skins, nested dark modules.
   ------------------------------------------------------------------ */
body[data-ia-profile-tone="light"] #profileModalRoot :is(
  .achievement-card,.leader-row,.ia-progress-grid>div,.ia-progress-hero,.ia-progress-level,
  .ia-hall-hero,.ia-hall-card,.ia-hall-save-note,.ia99-recent-row,.ia-mastery-card,.ia-mastery-section,
  .ia-v110-season,.ia-v110-season-card,.ia99-profile-collection,.ia99-choice-card,.ia99-mode-card,
  .ia-v180-custom-guide,.ia-sp-panel,.ia-ar-head
) :is(h1,h2,h3,h4,h5,h6,b,strong,span,label,legend,td,th,em,a):not(#iaV373Never#iaV373Never2){color:#17252f!important;text-shadow:0 1px 0 rgba(255,255,255,.76)!important}
body[data-ia-profile-tone="light"] #profileModalRoot :is(
  .achievement-card,.leader-row,.ia-progress-grid>div,.ia-progress-hero,.ia-progress-level,
  .ia-hall-hero,.ia-hall-card,.ia-hall-save-note,.ia99-recent-row,.ia-mastery-card,.ia-mastery-section,
  .ia-v110-season,.ia-v110-season-card,.ia99-profile-collection,.ia99-choice-card,.ia99-mode-card,
  .ia-v180-custom-guide,.ia-sp-panel,.ia-ar-head
) :is(p,small,.muted,.meta,.desc,.description):not(#iaV373Never#iaV373Never2){color:#52616a!important;text-shadow:0 1px 0 rgba(255,255,255,.7)!important}

/* ------------------------------------------------------------------
   MATCH — dark visualization/feed islands inside light match themes.
   ------------------------------------------------------------------ */
body[data-ia-match-tone="light"] .match-modal :is(
  .ia-match-visual,.ia-match-visual-head,.mm-overall-stat,.mm-live-column,.mm-penalties,.mm-pen-scroll
) :is(h1,h2,h3,h4,h5,h6,b,strong,span,label,legend,td,th,em,a):not(#iaV373Never#iaV373Never2){color:#f7fbff!important;text-shadow:0 1px 2px rgba(0,0,0,.88)!important}
body[data-ia-match-tone="light"] .match-modal :is(.ia-match-visual,.ia-match-visual-head,.mm-overall-stat,.mm-live-column,.mm-penalties,.mm-pen-scroll) :is(p,small,.mm-empty,.muted,.meta):not(#iaV373Never#iaV373Never2){color:#c8d8e1!important;text-shadow:0 1px 2px rgba(0,0,0,.84)!important}

/* ------------------------------------------------------------------
   Light surface restoration: inputs/pale cards must keep dark copy. These
   rules intentionally come AFTER the deep registry so mixed palettes cannot
   make a pale input white-on-white.
   ------------------------------------------------------------------ */
body[data-ia-ui-tone="light"] :is(.global-menu-screen,#screen-career,#bossRushShell,#galaxyDominationOverlay) :is(
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),textarea,select
):not(#iaV373Never#iaV373Never2){color:var(--ia-ui-input-text,#102637)!important;text-shadow:none!important}
body[data-ia-ui-tone="light"] :is(.global-menu-screen,#screen-career,#bossRushShell,#galaxyDominationOverlay) :is(
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),textarea,select
)::placeholder{color:color-mix(in srgb,var(--ia-ui-input-text,#102637) 64%,transparent)!important;opacity:1!important}

/* No animation is added by this patch. Respect reduced-motion without touching
   the site's normal transitions for everyone else. */
@media (prefers-reduced-motion:reduce){
  body :is(.ia-custom-theme-transition,.ia-theme-transition){animation:none!important;transition:none!important}
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* =====================================================================
   InazumArcade v374 · COMPLETE LIGHT-THEME CONTRAST AUDIT
   Static CSS only: no observers, no runtime scans, no animation/layout edits.

   Layering rule:
   1) light theme-owned surfaces own dark copy;
   2) native dark islands own light copy;
   3) category-specific light surfaces (brackets/profile/album) keep their
      category foreground unless we deliberately preserve a dark island.
   ===================================================================== */

body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]){
  --ia-v374-dark-bg:var(--ia-ui-deep,#102536);
  --ia-v374-dark-bg-2:color-mix(in srgb,var(--ia-ui-deep,#102536) 84%,#000);
  --ia-v374-dark-fg:#f8fcff;
  --ia-v374-dark-muted:#c8d8e1;
  --ia-v374-dark-soft:#a9bfcc;
  --ia-v374-dark-shadow:0 1px 2px rgba(0,0,0,.90);
}
body[data-ia-bracket-tone="light"]{
  --ia-v374-br-dark:var(--ia-v371-br-deep,#102536);
  --ia-v374-br-dark-2:var(--ia-v371-br-deep-2,#071822);
  --ia-v374-br-fg:#f8fcff;
  --ia-v374-br-muted:#c8d8e1;
  --ia-v374-br-shadow:0 1px 2px rgba(0,0,0,.90);
}

/* ---------------------------------------------------------------------
   ROOT CAUSE REPAIR — v368 Manga used a descendant-wide dark foreground.
   Restore ownership to each local component. Light outer roots remain dark
   because their own color is dark; native dark children can expose their
   original light foreground and the registry below hardens the exceptions.
   --------------------------------------------------------------------- */
body[data-ia-ui-skin="manga"] :is(
  .global-menu-screen .panel,
  .ia-home-panel:not(.ia-profile-panel)>.ia-panel-inner,
  #bossRushShell .bossrush-cardpanel,#bossRushShell .bossrush-choice,#bossRushShell .br-inventory-panel,
  #galaxyDominationOverlay .gd-guide-card,#galaxyDominationOverlay .gd-data-shell,#galaxyDominationOverlay .gd-squad-shell,#galaxyDominationOverlay .gd-scout-terminal-shell,#galaxyDominationOverlay .gd-player-card,
  #screen-career .career-panel,#screen-career .career-menu-tile,#screen-career .career-dashboard-card
) :is(h1,h2,h3,h4,h5,h6,b,strong,p,label,legend,span,small,em,a):not(#iaV374OwnA#iaV374OwnB#iaV374OwnC){
  color:inherit!important;
  text-shadow:inherit!important;
}

/* Theme-owned roots that actually become pale on ALL light Interface skins.
   Their normal copy is dark. Dark nested islands are corrected later. */
body[data-ia-ui-tone="light"] :is(
  #bossRushShell .bossrush-cardpanel,#bossRushShell .bossrush-choice,#bossRushShell .br-inventory-panel,
  #galaxyDominationOverlay .gd-guide-card,#galaxyDominationOverlay .gd-data-shell,#galaxyDominationOverlay .gd-squad-shell,#galaxyDominationOverlay .gd-scout-terminal-shell,#galaxyDominationOverlay .gd-player-card,
  #screen-career .career-panel,#screen-career .career-menu-tile,#screen-career .career-dashboard-card
):not(#iaV374LightA#iaV374LightB#iaV374LightC){
  color:var(--ia-ui-text)!important;
  text-shadow:var(--ia-ui-shadow,0 1px 0 rgba(255,255,255,.88))!important;
}
body[data-ia-ui-tone="light"] :is(
  #bossRushShell .bossrush-cardpanel,#bossRushShell .bossrush-choice,#bossRushShell .br-inventory-panel,
  #galaxyDominationOverlay .gd-guide-card,#galaxyDominationOverlay .gd-data-shell,#galaxyDominationOverlay .gd-squad-shell,#galaxyDominationOverlay .gd-scout-terminal-shell,#galaxyDominationOverlay .gd-player-card,
  #screen-career .career-panel,#screen-career .career-menu-tile,#screen-career .career-dashboard-card
) :is(h1,h2,h3,h4,h5,h6,b,strong,p,label,legend,span,small,em,a):not(#iaV374LightA#iaV374LightB#iaV374LightC){
  color:var(--ia-ui-text)!important;
  text-shadow:var(--ia-ui-shadow,0 1px 0 rgba(255,255,255,.88))!important;
}

/* ---------------------------------------------------------------------
   INDOVINAZUMA — Classic controls, Marathon, Daily/challenge and reports.
   These surfaces stay purple/navy inside a pale Interface skin.
   --------------------------------------------------------------------- */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-indovinazuma :is(
  .ia279-quiz-control,.ia279-quiz-title,.ia279-control-block,.ia279-segments>button,
  .ia279-sudden,.ia279-token-row,.ia265-marathon-panel,.ia269-mara-intro,
  .ia265-mara-head,.ia265-mara-stats,.ia265-mara-suggestions,
  .ia265-quiz-options,.ia265-quiz-theme,.ia265-choice,.ia265-challenge-label,
  .ia275-daily-history,.ia275-ch-board,.ia275-board-ring,.ia275-mara-report,
  .ia275-quiz-difficulty,.ia275-disconnected,.ia275-reconnect-note,
  .ig-mode-btn,.ig-suggestions,.ig-suggestion-item,.ig-cell:not(.correct):not(.wrong),.ig-board,.ig-row,.ig-result,.ig-help-card
):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){
  color:var(--ia-v374-dark-fg)!important;
  text-shadow:var(--ia-v374-dark-shadow)!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-indovinazuma :is(
  .ia279-quiz-control,.ia279-control-block,.ia279-segments>button,.ia279-sudden,.ia279-token-row,
  .ia265-marathon-panel,.ia269-mara-intro,.ia265-mara-stats,.ia265-mara-suggestions,
  .ia265-quiz-options,.ia265-choice,.ia275-daily-history,.ia275-ch-board,.ia275-mara-report,
  .ia275-quiz-difficulty,.ia275-disconnected,.ia275-reconnect-note,
  .ig-mode-btn,.ig-suggestions,.ig-suggestion-item,.ig-cell:not(.correct):not(.wrong),.ig-board,.ig-row,.ig-result,.ig-help-card
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,button):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){
  color:var(--ia-v374-dark-fg)!important;
  text-shadow:var(--ia-v374-dark-shadow)!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-indovinazuma :is(
  .ia279-quiz-control,.ia279-control-block,.ia279-sudden,.ia279-token-row,
  .ia265-marathon-panel,.ia269-mara-intro,.ia265-mara-stats,.ia265-mara-suggestions,
  .ia265-choice,.ia275-daily-history,.ia275-ch-board,.ia275-mara-report,
  .ig-suggestions,.ig-suggestion-item,.ig-cell:not(.correct):not(.wrong),.ig-board,.ig-row,.ig-result,.ig-help-card
) :is(p,small,.muted,.meta,.desc,.description):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){
  color:var(--ia-v374-dark-muted)!important;
  text-shadow:var(--ia-v374-dark-shadow)!important;
}
/* Pale fields inside those dark cards remain dark-copy. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-indovinazuma :is(
  .ia279-quiz-control,.ia265-marathon-panel
) :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){
  color:var(--ia-ui-input-text,#102637)!important;
  background:var(--ia-ui-input,#f8fbff)!important;
  text-shadow:none!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-indovinazuma .ia279-segments>button:disabled:not(#iaV374DarkA#iaV374DarkB#iaV374DarkC),
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-indovinazuma .ia279-token-row button:disabled:not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:#aebdca!important;opacity:.78!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-indovinazuma :is(.ia279-quiz-title>small,.ia279-control-block>label,.ia265-mara-head>div>small):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){
  color:color-mix(in srgb,var(--ia-ui-accent,#79dcff) 58%,#fff)!important;
  text-shadow:var(--ia-v374-dark-shadow)!important;
}

/* ---------------------------------------------------------------------
   FF / FFI / ONLINE — category independence.
   A light Interface skin with Classic/Dark bracket keeps original navy cards.
   A light bracket skin may repaint selected cards pale; those get dark copy.
   Persistent context/hub/ranking islands stay dark in either case.
   --------------------------------------------------------------------- */
/* Persistent dark shells. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="ds"]) .global-menu-screen :is(
  .ff100-context,.ff100-context>div,.ff72-tournament-hub,.ff72-hub-main,
  .ff72-scout-card,.ff72-summary-stat,.ff72-plan,.ff72-end-summary,
  .ff84-end-actions,.ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context,
  .ffi72-news-item,.ffi72-expectation,.ffi72-leader,.ffi72-live-race,.ffi72-broadcast-card,.ffi72-draw-card,.ffi72-draw-match,
  .ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-star-choice,.ffi95-plan-card,.ffi95-plan-choice
):not(#iaV374BrA#iaV374BrB#iaV374BrC){
  color:var(--ia-v374-br-fg,var(--ia-v374-dark-fg,#f8fcff))!important;
  text-shadow:var(--ia-v374-br-shadow,var(--ia-v374-dark-shadow,0 1px 2px rgba(0,0,0,.9)))!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="ds"]) .global-menu-screen :is(
  .ff100-context,.ff72-tournament-hub,.ff72-hub-main,.ff72-scout-card,.ff72-summary-stat,.ff72-plan,.ff72-end-summary,
  .ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context,
  .ffi72-news-item,.ffi72-expectation,.ffi72-leader,.ffi72-live-race,.ffi72-broadcast-card,.ffi72-draw-card,.ffi72-draw-match,
  .ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-star-choice,.ffi95-plan-card,.ffi95-plan-choice
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,td,.bname,.bscore,.ta,.tb,.score):not(#iaV374BrA#iaV374BrB#iaV374BrC){
  color:var(--ia-v374-br-fg,var(--ia-v374-dark-fg,#f8fcff))!important;
  text-shadow:var(--ia-v374-br-shadow,var(--ia-v374-dark-shadow,0 1px 2px rgba(0,0,0,.9)))!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="ds"]) .global-menu-screen :is(
  .ff100-context,.ff72-tournament-hub,.ff72-hub-main,.ff72-scout-card,.ff72-summary-stat,.ff72-plan,.ff72-end-summary,
  .ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context,
  .ffi72-news-item,.ffi72-expectation,.ffi72-leader,.ffi72-live-race,.ffi72-broadcast-card,.ffi72-draw-card,.ffi72-draw-match,
  .ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-star-choice,.ffi95-plan-card,.ffi95-plan-choice
) :is(p,small,th,.small-note,.muted,.meta,.desc,.description,.score.pending):not(#iaV374BrA#iaV374BrB#iaV374BrC){
  color:var(--ia-v374-br-muted,var(--ia-v374-dark-muted,#c8d8e1))!important;
  text-shadow:var(--ia-v374-br-shadow,var(--ia-v374-dark-shadow,0 1px 2px rgba(0,0,0,.9)))!important;
}
/* Strongly preserve the two shells shown in the reports. */
body[data-ia-bracket-tone="light"] .global-menu-screen :is(.ff100-context,.ff72-tournament-hub):not(#iaV374BrA#iaV374BrB#iaV374BrC){
  background:linear-gradient(145deg,var(--ia-v374-br-dark,#102536),var(--ia-v374-br-dark-2,#071822))!important;
  border-color:color-mix(in srgb,var(--ia-br-border,#6b9ab8) 70%,transparent)!important;
}
/* World Ranking remains a dark information island even in Manga/Frost/etc. */
body[data-ia-bracket-tone="light"] .ffi97-stage :is(
  .ffi97-hero-card,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match
):not(#iaV374BrA#iaV374BrB#iaV374BrC){
  background:linear-gradient(145deg,var(--ia-v374-br-dark,#102536),var(--ia-v374-br-dark-2,#071822))!important;
  border-color:color-mix(in srgb,var(--ia-br-border,#6b9ab8) 70%,transparent)!important;
  color:var(--ia-v374-br-fg)!important;
  text-shadow:var(--ia-v374-br-shadow)!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="ds"]) .ffi97-stage :is(
  .ffi97-hero-card,.ffi97-hero-stat,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,td,.ta,.tb,.score):not(#iaV374BrA#iaV374BrB#iaV374BrC){
  color:var(--ia-v374-br-fg,var(--ia-v374-dark-fg,#f8fcff))!important;
  text-shadow:var(--ia-v374-br-shadow,var(--ia-v374-dark-shadow,0 1px 2px rgba(0,0,0,.9)))!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="ds"]) .ffi97-stage :is(
  .ffi97-hero-card,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match
) :is(p,small,th,.ffi97-fixtures-note,.score.pending,.muted,.meta):not(#iaV374BrA#iaV374BrB#iaV374BrC){
  color:var(--ia-v374-br-muted,var(--ia-v374-dark-muted,#c8d8e1))!important;
  text-shadow:var(--ia-v374-br-shadow,var(--ia-v374-dark-shadow,0 1px 2px rgba(0,0,0,.9)))!important;
}
/* Cards explicitly painted with --ia-br-card by the bracket theme are pale:
   respect the bracket foreground there instead of forcing white copy. */
body[data-ia-bracket-tone="light"] :is(#screen-bracket,[data-ia-bracket-surface],#bracketOverlay,#onlineBracketOverlay) :is(
  .bmatch,.ff72-hub-card,.ffi72-world-card
):not(#iaV374LightBrA#iaV374LightBrB#iaV374LightBrC){
  color:var(--ia-br-text)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.88)!important;
}
body[data-ia-bracket-tone="light"] :is(#screen-bracket,[data-ia-bracket-surface],#bracketOverlay,#onlineBracketOverlay) :is(
  .bmatch,.ff72-hub-card,.ffi72-world-card
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,td,th,small,p):not(#iaV374LightBrA#iaV374LightBrB#iaV374LightBrC){
  color:var(--ia-br-text)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.88)!important;
}
/* Same cards are still native dark when the Interface is light but Tabelloni
   is Classic/dark. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]):not([data-ia-bracket-tone="light"]) .global-menu-screen :is(
  .ff72-hub-card,.ffi72-world-card,.bmatch
):not(#iaV374BrA#iaV374BrB#iaV374BrC),
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]):not([data-ia-bracket-tone="light"]) .global-menu-screen :is(
  .ff72-hub-card,.ffi72-world-card,.bmatch
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,td,th,small,p):not(#iaV374BrA#iaV374BrB#iaV374BrC){
  color:var(--ia-v374-dark-fg)!important;
  text-shadow:var(--ia-v374-dark-shadow)!important;
}
/* Exact Road to Glory / context-strip copy. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="ds"]) #screen-bracket .ff72-hub-main :is(.ff72-hub-kicker,b,strong):not(#iaV374BrA#iaV374BrB#iaV374BrC){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.9)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="ds"]) #screen-bracket .ff72-hub-main>span:not(.ff72-hub-kicker):not(#iaV374BrA#iaV374BrB#iaV374BrC){color:#c8d8e1!important;text-shadow:0 1px 2px rgba(0,0,0,.9)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="ds"]) .global-menu-screen .ff100-context small:not(#iaV374BrA#iaV374BrB#iaV374BrC){color:#b9ceda!important;text-shadow:0 1px 2px rgba(0,0,0,.9)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="ds"]) .global-menu-screen .ff100-context b:not(#iaV374BrA#iaV374BrB#iaV374BrC){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.9)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="ds"]) .global-menu-screen .ff100-context span:not(#iaV374BrA#iaV374BrB#iaV374BrC){color:#c8d8e1!important;text-shadow:0 1px 2px rgba(0,0,0,.9)!important}

/* ---------------------------------------------------------------------
   FF / FFI BUILDER + ONLINE LOBBY — dark roster/status/control strips.
   --------------------------------------------------------------------- */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) :is(#screen-builder,#screen-lobby) :is(
  .ff72-builder-strip,.ffi72-builder-strip,.ff72-tour-chip,.ffi72-tour-chip,.ff72-identity,.ffi72-identity,
  .ff72-source-card,.ff72-source-power,.ffi72-source-power,.ia274-rule,.ia274-pack,
  .ia274-draft-status,.ia275-online-rules,.ia275-online-rule-rail,.ia278-online-builder-rule,
  .ia99-online-status,.online-status,.code-box,.private-code-eye,.timer,.role-tab,
  .player-row,.roster-mini .slot,.intl-team-card,.intl-player-row,.intl-role-overall,.intl-selected-banner,
  .selected-player,.team-card,.team-row,.builder-summary,.builder-card,.lobby-card,.lobby-row
):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-v374-dark-fg)!important;text-shadow:var(--ia-v374-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) :is(#screen-builder,#screen-lobby) :is(
  .ff72-builder-strip,.ffi72-builder-strip,.ff72-tour-chip,.ffi72-tour-chip,.ff72-identity,.ffi72-identity,
  .ff72-source-card,.ff72-source-power,.ffi72-source-power,.ia274-rule,.ia274-pack,.ia275-online-rules,
  .ia275-online-rule-rail,.ia278-online-builder-rule,.ia99-online-status,.online-status,.player-row,.roster-mini .slot,
  .intl-team-card,.intl-player-row,.intl-role-overall,.intl-selected-banner,.selected-player,.team-card,.team-row,
  .builder-summary,.builder-card,.lobby-card,.lobby-row
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,span,small,em,a):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-v374-dark-fg)!important;text-shadow:var(--ia-v374-dark-shadow)!important}

/* ---------------------------------------------------------------------
   CAREER — dark headers, stats, story/event/talent, FFI, awards, memory.
   The pale .career-panel root is handled above; only its dark islands are here.
   --------------------------------------------------------------------- */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-career :is(
  .career-head,.career-live,.career-feed,.career-v58-dock,.career-v61-season-timeline,
  .career-stat,.career-attr,.career-plan,.career-trophy-group,.career-table,.career-offer,.career-matchbox,
  .career-event-card,.career-special-popup-card,.career-story-card,.career-story-choice,
  .career-talent-card,.career-talent-option,.career-big-match,.career-penalty-card,.career-penalty-team,
  .career-award-card,.career-reset-card,.career-v200-strip,.career-v200-story-card,.career-v200-story-choices>button,
  .career-v275-ambition-card,.career-v275-ambition-panel,.career-v306-card,.career-v306-memory,
  .career-v306-memory-field,.career-v306-resolution,.career-v306-secret-card,
  .career-intl-group,.career-intl-match,.career-bracket-match,.career-bracket-overlay-card,
  .career-ency-card,.career-v40-quick
):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-v374-dark-fg)!important;text-shadow:var(--ia-v374-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-career :is(
  .career-head,.career-live,.career-feed,.career-v58-dock,.career-v61-season-timeline,
  .career-stat,.career-attr,.career-plan,.career-trophy-group,.career-table,.career-offer,.career-matchbox,
  .career-event-card,.career-special-popup-card,.career-story-card,.career-story-choice,.career-talent-card,.career-talent-option,
  .career-big-match,.career-penalty-card,.career-penalty-team,.career-award-card,.career-reset-card,.career-v200-strip,
  .career-v200-story-card,.career-v200-story-choices>button,.career-v275-ambition-card,.career-v275-ambition-panel,
  .career-v306-card,.career-v306-memory,.career-v306-memory-field,.career-v306-resolution,.career-v306-secret-card,
  .career-intl-group,.career-intl-match,.career-bracket-match,.career-bracket-overlay-card,.career-ency-card,.career-v40-quick
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,td,th,button):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-v374-dark-fg)!important;text-shadow:var(--ia-v374-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-career :is(
  .career-head,.career-live,.career-feed,.career-v58-dock,.career-v61-season-timeline,
  .career-stat,.career-attr,.career-plan,.career-trophy-group,.career-table,.career-offer,.career-matchbox,
  .career-event-card,.career-special-popup-card,.career-story-card,.career-story-choice,.career-talent-card,.career-talent-option,
  .career-big-match,.career-penalty-card,.career-penalty-team,.career-award-card,.career-reset-card,.career-v200-strip,
  .career-v200-story-card,.career-v275-ambition-card,.career-v275-ambition-panel,.career-v306-card,.career-v306-memory,
  .career-v306-memory-field,.career-v306-resolution,.career-v306-secret-card,.career-intl-group,.career-intl-match,
  .career-bracket-match,.career-bracket-overlay-card,.career-ency-card,.career-v40-quick
) :is(p,small,.muted,.meta,.career-note,.career-sub,.desc,.description):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-v374-dark-muted)!important;text-shadow:var(--ia-v374-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #screen-career :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-ui-input-text,#102637)!important;text-shadow:none!important}

/* ---------------------------------------------------------------------
   BOSSRUSH — only native dark islands. The theme-owned cardpanel/choice roots
   stay pale with dark copy; their deeper run/shop/inventory cards stay dark.
   --------------------------------------------------------------------- */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) :is(#bossRushShell,#bossRushOverlay) :is(
  .bossrush-teamplate,.br-entry-panel,.br-entry-ritual,.br-entry-ritual-grid>div,.br-entry-footer-card,
  .brx-runbox,.brx-hero,.brx-event-card,.brx-team,.brx-action-card,.brx-slot,.brx-card,.brx-phasebox,
  .br-inv-item,.br-shop-item,.br-shop-modal-card,.br-shop-confirm-card,.br-match-card,.br-match-decision,
  .br-v198-artifact-card,.br-v198-artifact-choice,.br-v199-contract-choice,.br-endless-contract-detail,
  .br-endless-live-contract,.br-endless-history-card,.br-endless-history-row,.br-choice-center,.br-choice-content,
  .br-ency-modal,.br-v4-build-card,.br-v4-build-item,.br-v5-mini-card,.br-v5-relic-set
):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-v374-dark-fg)!important;text-shadow:var(--ia-v374-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) :is(#bossRushShell,#bossRushOverlay) :is(
  .bossrush-teamplate,.br-entry-panel,.br-entry-ritual,.br-entry-ritual-grid>div,.br-entry-footer-card,
  .brx-runbox,.brx-hero,.brx-event-card,.brx-team,.brx-action-card,.brx-slot,.brx-card,.brx-phasebox,
  .br-inv-item,.br-shop-item,.br-shop-modal-card,.br-shop-confirm-card,.br-match-card,.br-match-decision,
  .br-v198-artifact-card,.br-v198-artifact-choice,.br-v199-contract-choice,.br-endless-contract-detail,
  .br-endless-live-contract,.br-endless-history-card,.br-endless-history-row,.br-choice-center,.br-choice-content,
  .br-ency-modal,.br-v4-build-card,.br-v4-build-item,.br-v5-mini-card,.br-v5-relic-set
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,button):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-v374-dark-fg)!important;text-shadow:var(--ia-v374-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) :is(#bossRushShell,#bossRushOverlay) :is(
  .bossrush-teamplate,.br-entry-panel,.br-entry-ritual,.br-entry-footer-card,.brx-runbox,.brx-hero,.brx-event-card,
  .brx-team,.brx-action-card,.brx-card,.br-inv-item,.br-shop-item,.br-match-card,.br-v198-artifact-card,
  .br-v198-artifact-choice,.br-v199-contract-choice,.br-endless-contract-detail,.br-endless-history-card,
  .br-choice-center,.br-choice-content,.br-ency-modal,.br-v4-build-card,.br-v5-mini-card
) :is(p,small,.muted,.meta,.desc,.description):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-v374-dark-muted)!important;text-shadow:var(--ia-v374-dark-shadow)!important}

/* ---------------------------------------------------------------------
   GALAXY — dark HUD/data/scout/squad/pack/duel/result islands. Excludes the
   roots explicitly painted pale by the Interface skin (guide/data/player card).
   --------------------------------------------------------------------- */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay :is(
  .gd-panel,.gd-control-card,.gd-env-card,.gd-feed-card,.gd-mission-card,
  .gd-squad-box,.gd-formation-btn,.gd-squad-summary,.gd-bench-card,.gd-lineup-slot,.gd-lineup-chip,.gd-player-detail,.gd-roster-pane,
  .gd-guide-section,.gd-honors-shell,.gd-scout-terminal,.gd-scout-trial,.gd-scout-pack,.gd-physical-pack,.gd-pack-actions,
  .gd-chrono-brief,.gd-chrono-brief-card,.gd-chrono-brief-meta>span,.gd-rift-tier,.gd-sector-status,.gd-stat-pill,
  .gd-result-card,.gd-mini,.gd-reward,.gd-controlled-hud,.gd-match-side,.gd57-setpiece-panel,.gd58-setpiece-side,
  .gd-ie2-intro-card,.gd-duel-card,.gd-shot-card,.gd-action-btn,.gd-shot-ready,.gd-shot-cancel,
  .gd275-loadouts,.gd275-loadout,.gd275-free-card,.gd275-overlord-warning,.gd275-overlord-mission,.gd275-overlord-kicker,
  .ia-gd-phone-dock,.ia-gd-phone-actions,.ia-mode-ency-panel,.ia-mode-ency-section
):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-v374-dark-fg)!important;text-shadow:var(--ia-v374-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay :is(
  .gd-panel,.gd-control-card,.gd-env-card,.gd-feed-card,.gd-mission-card,.gd-squad-box,.gd-formation-btn,.gd-squad-summary,
  .gd-bench-card,.gd-lineup-slot,.gd-lineup-chip,.gd-player-detail,.gd-roster-pane,.gd-guide-section,.gd-honors-shell,
  .gd-scout-terminal,.gd-scout-trial,.gd-scout-pack,.gd-physical-pack,.gd-pack-actions,.gd-chrono-brief,.gd-chrono-brief-card,
  .gd-rift-tier,.gd-sector-status,.gd-stat-pill,.gd-result-card,.gd-mini,.gd-reward,.gd-controlled-hud,.gd-match-side,
  .gd57-setpiece-panel,.gd58-setpiece-side,.gd-ie2-intro-card,.gd-duel-card,.gd-shot-card,.gd-action-btn,.gd-shot-ready,.gd-shot-cancel,
  .gd275-loadouts,.gd275-loadout,.gd275-free-card,.gd275-overlord-warning,.gd275-overlord-mission,
  .ia-gd-phone-dock,.ia-gd-phone-actions,.ia-mode-ency-panel,.ia-mode-ency-section
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,button,td,th):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-v374-dark-fg)!important;text-shadow:var(--ia-v374-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay :is(
  .gd-panel,.gd-control-card,.gd-env-card,.gd-feed-card,.gd-mission-card,.gd-squad-box,.gd-formation-btn,.gd-squad-summary,
  .gd-bench-card,.gd-lineup-slot,.gd-lineup-chip,.gd-player-detail,.gd-guide-section,.gd-honors-shell,.gd-scout-terminal,.gd-scout-trial,
  .gd-scout-pack,.gd-physical-pack,.gd-chrono-brief,.gd-chrono-brief-card,.gd-rift-tier,.gd-sector-status,.gd-result-card,
  .gd-controlled-hud,.gd-match-side,.gd-ie2-intro-card,.gd-duel-card,.gd-shot-card,.gd275-loadouts,.gd275-loadout,
  .gd275-free-card,.gd275-overlord-warning,.gd275-overlord-mission,.ia-mode-ency-panel,.ia-mode-ency-section
) :is(p,small,.muted,.meta,.sub,.desc,.description):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-v374-dark-muted)!important;text-shadow:var(--ia-v374-dark-shadow)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) #galaxyDominationOverlay :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:var(--ia-ui-input-text,#102637)!important;text-shadow:none!important}
/* Squad header itself sits on the pale themed shell, not on a dark island. */
body[data-ia-ui-tone="light"] #galaxyDominationOverlay #gdSquadManager .gd-squad-head :is(h1,h2,h3,h4,b,strong,span,small):not(#iaV374LightA#iaV374LightB#iaV374LightC){color:var(--ia-ui-text)!important;text-shadow:var(--ia-ui-shadow)!important}
body[data-ia-ui-tone="light"] #galaxyDominationOverlay #gdSquadManager .gd-squad-head small:not(#iaV374LightA#iaV374LightB#iaV374LightC){color:var(--ia-ui-accent)!important}

/* ---------------------------------------------------------------------
   PROFILE / HALL / PROGRESSION — these cards are explicitly painted with
   the selected light profile material, so they always use dark profile copy.
   --------------------------------------------------------------------- */
body[data-ia-profile-tone="light"] #profileModalRoot :is(
  .achievement-card,.leader-row,.ia-progress-grid>div,.ia-progress-hero,.ia-progress-level,
  .ia-hall-hero,.ia-hall-card,.ia-hall-save-note,.ia99-recent-row,.ia-mastery-card,.ia-mastery-section,
  .ia-v110-season,.ia-v110-season-card,.ia99-profile-collection,.ia99-choice-card,.ia99-mode-card,
  .ia-v180-custom-guide,.ia-sp-panel,.ia-ar-head,.ia-sp-hall-grid>div,.ia-season-recap-card,.ia-season-recap-meta>span
):not(#iaV374ProfileA#iaV374ProfileB#iaV374ProfileC){
  background:var(--ia-profile-panel)!important;
  border-color:color-mix(in srgb,var(--ia-profile-border) 68%,transparent)!important;
  color:var(--ia-profile-text)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.88)!important;
}
body[data-ia-profile-tone="light"] #profileModalRoot :is(
  .achievement-card,.leader-row,.ia-progress-grid>div,.ia-progress-hero,.ia-progress-level,.ia-hall-hero,.ia-hall-card,.ia-hall-save-note,
  .ia99-recent-row,.ia-mastery-card,.ia-mastery-section,.ia-v110-season,.ia-v110-season-card,.ia99-profile-collection,.ia99-choice-card,.ia99-mode-card,
  .ia-v180-custom-guide,.ia-sp-panel,.ia-ar-head,.ia-sp-hall-grid>div,.ia-season-recap-card,.ia-season-recap-meta>span
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,td,th):not(#iaV374ProfileA#iaV374ProfileB#iaV374ProfileC){color:var(--ia-profile-text)!important;text-shadow:0 1px 0 rgba(255,255,255,.88)!important}
body[data-ia-profile-tone="light"] #profileModalRoot :is(
  .achievement-card,.leader-row,.ia-progress-grid>div,.ia-progress-hero,.ia-progress-level,.ia-hall-hero,.ia-hall-card,.ia-hall-save-note,
  .ia99-recent-row,.ia-mastery-card,.ia-mastery-section,.ia-v110-season,.ia-v110-season-card,.ia99-profile-collection,.ia99-choice-card,.ia99-mode-card,
  .ia-v180-custom-guide,.ia-sp-panel,.ia-ar-head,.ia-sp-hall-grid>div,.ia-season-recap-card,.ia-season-recap-meta>span
) :is(p,small,.muted,.meta,.desc,.description,time):not(#iaV374ProfileA#iaV374ProfileB#iaV374ProfileC){color:var(--ia-profile-muted)!important;text-shadow:0 1px 0 rgba(255,255,255,.84)!important}

/* ---------------------------------------------------------------------
   MATCH / ALBUM finishing rules.
   --------------------------------------------------------------------- */
body[data-ia-match-tone="light"] .match-modal :is(.ia-match-visual,.ia-match-visual-head,.mm-overall-stat.mm-dark,.mm-pen-scroll.mm-dark) :is(h1,h2,h3,h4,h5,h6,b,strong,span,label,small,p):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.90)!important}
body[data-ia-album-tone="light"] #gdPlayerAlbum .gd-album-card:not(.gd-cos-album) :is(h1,h2,h3,h4,h5,h6,b,strong,label,span,small,p):not(#iaV374AlbumA#iaV374AlbumB#iaV374AlbumC){text-shadow:0 1px 0 rgba(255,255,255,.88)!important}

/* Dark action buttons must not inherit the pale-theme text foreground. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="ds"]) :is(#screen-indovinazuma,#screen-builder,#screen-lobby,#screen-career,#bossRushShell,#bossRushOverlay,#galaxyDominationOverlay) :is(
  .ia279-segments>button,.ia279-sudden,.ia269-mara-start,.career-plan,.brx-card-btn,.brx-footbtn,.brx-mini-btn,.gd-btn,.gd-action-btn
):not(:disabled):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.90)!important}

/* No animation/transition is introduced here. */

/* =====================================================================
   v374 AUDIT ROUND 2 — PALE ROOTS WITH LEGACY FIXED LIGHT COPY
   These are not dark islands: their parent is actually repainted pale by the
   Interface skin, but older components keep hard-coded cyan/white/muted copy.
   Keep the correction static and narrowly namespaced.
   ===================================================================== */

/* HOME — all non-profile home cards are pale theme-owned material. */
body[data-ia-ui-tone="light"] #screen-home .ia-home-panel:not(.ia-profile-panel)>.ia-panel-inner :is(
  .ia-panel-kicker,.ia-panel-title,.ia-panel-text,.ia-panel-meta,.ia-panel-meta span,
  .ia-news-carousel,.ia-ranking-list,.ia-rank-row,.ia-rank-row strong,.ia-rank-row span
):not(#iaV374PaleA#iaV374PaleB#iaV374PaleC){
  color:var(--ia-ui-text)!important;
  text-shadow:var(--ia-ui-shadow,0 1px 0 rgba(255,255,255,.88))!important;
}
body[data-ia-ui-tone="light"] #screen-home .ia-home-panel:not(.ia-profile-panel)>.ia-panel-inner :is(
  .ia-panel-icon,.bolt,.ia-panel-meta b
):not(#iaV374PaleA#iaV374PaleB#iaV374PaleC){
  color:var(--ia-ui-accent)!important;
  text-shadow:var(--ia-ui-shadow,0 1px 0 rgba(255,255,255,.88))!important;
}

/* Training Ground card: only its outer summary is pale. The mini pitch itself
   remains a native dark/green island and keeps its original light pitch label. */
body[data-ia-ui-tone="light"] #screen-home .ia-idle-hq-inner :is(
  .ia-idle-hq-wallet strong,.ia-idle-hq-wallet span,
  .ia-idle-hq-statrow b,.ia-idle-hq-statrow span,
  .ia-idle-auto-box b,.ia-idle-auto-box small
):not(#iaV374PaleA#iaV374PaleB#iaV374PaleC){
  color:var(--ia-ui-text)!important;
  text-shadow:var(--ia-ui-shadow,0 1px 0 rgba(255,255,255,.88))!important;
}
body[data-ia-ui-tone="light"] #screen-home .ia-idle-hq-inner :is(
  .ia-idle-hq-statrow span,.ia-idle-auto-box small
):not(#iaV374PaleA#iaV374PaleB#iaV374PaleC){color:var(--ia-ui-muted)!important}
body[data-ia-ui-tone="light"] #screen-home .ia-idle-hq-inner :is(
  .ia-idle-hq-wallet strong,.ia-idle-hq-wallet span,.ia-idle-auto-box b
):not(#iaV374PaleA#iaV374PaleB#iaV374PaleC){color:var(--ia-ui-accent)!important}
body[data-ia-ui-tone="light"] #screen-home #iaIdleOpenBtn:not(#iaV374PaleA#iaV374PaleB#iaV374PaleC){
  color:var(--ia-ui-accent)!important;
  border-color:color-mix(in srgb,var(--ia-ui-accent) 58%,transparent)!important;
  background:color-mix(in srgb,var(--ia-ui-accent) 9%,transparent)!important;
  text-shadow:var(--ia-ui-shadow,0 1px 0 rgba(255,255,255,.88))!important;
}
body[data-ia-ui-tone="light"] #screen-home #iaIdleOpenBtn *{color:inherit!important;text-shadow:inherit!important}

/* The Hall/Progress buttons use a deliberately chrome background containing
   both very bright and very dark bands. Keep white copy but add a real dark
   outline so it remains legible over every band. */
body[data-ia-profile-tone="light"] #screen-home .ia-profile-hall-btn :is(b,span):not(#iaV374ChromeA#iaV374ChromeB#iaV374ChromeC){
  color:#eefaff!important;
  text-shadow:0 1px 2px #061019,0 0 4px rgba(0,0,0,.78)!important;
}

/* FF ONLINE create/join/lobby are simple pale panels under light Interface
   skins. Their legacy labels/status/ghost controls were still using dark-UI
   fixed colors. */
body[data-ia-ui-tone="light"] :is(#screen-create,#screen-join,#screen-lobby) .panel :is(
  h1,h2,h3,h4,label,.field label,.online-status,.small-note,.code-box,.code-box>div
):not(#iaV374PaleA#iaV374PaleB#iaV374PaleC){
  color:var(--ia-ui-text)!important;
  text-shadow:var(--ia-ui-shadow,0 1px 0 rgba(255,255,255,.88))!important;
}
body[data-ia-ui-tone="light"] :is(#screen-create,#screen-join,#screen-lobby) .panel :is(
  .online-status,.small-note,.code-box [style*="var(--text-dim)"]
):not(#iaV374PaleA#iaV374PaleB#iaV374PaleC){color:var(--ia-ui-muted)!important}
body[data-ia-ui-tone="light"] :is(#screen-create,#screen-join,#screen-lobby) .panel :is(.btn-ghost,.private-code-eye):not(#iaV374PaleA#iaV374PaleB#iaV374PaleC){
  color:var(--ia-ui-text)!important;
  border-color:color-mix(in srgb,var(--ia-ui-border) 75%,transparent)!important;
  text-shadow:var(--ia-ui-shadow,0 1px 0 rgba(255,255,255,.88))!important;
}
body[data-ia-ui-tone="light"] :is(#screen-create,#screen-join,#screen-lobby) .panel :is(.btn-ghost,.private-code-eye) *{color:inherit!important;text-shadow:inherit!important}

/* Base IndovInazuma board sits directly on the pale outer panel. Its classic
   header/status copy is therefore dark; the purple Classic/Marathon cards are
   already handled above as native dark islands. */
body[data-ia-ui-tone="light"] #screen-indovinazuma>.panel :is(
  #igGuessCounter,.ig-status-row,.ig-header-row,.ig-header-row>div
):not(#iaV374PaleA#iaV374PaleB#iaV374PaleC){
  color:var(--ia-ui-muted)!important;
  text-shadow:var(--ia-ui-shadow,0 1px 0 rgba(255,255,255,.88))!important;
}
body[data-ia-ui-tone="light"] #screen-indovinazuma>.panel .ig-header-row>div:not(#iaV374PaleA#iaV374PaleB#iaV374PaleC){
  color:var(--ia-ui-text)!important;
}

/* Intro/disclaimer primary action stays on a dark shell even when the selected
   Interface theme is light. */
body[data-ia-ui-tone="light"] #disclaimerPlayBtn:not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){
  color:#f8fcff!important;
  text-shadow:0 1px 2px rgba(0,0,0,.9)!important;
}

/* v374 audit round 3 — resolve mixed dark controls inside otherwise pale panels. */
body[data-ia-ui-tone="light"] :is(#screen-create,#screen-join,#screen-lobby) .panel :is(.online-status,.small-note):not(#iaV374PaleA#iaV374PaleB#iaV374PaleC#iaV374PaleD){
  color:var(--ia-ui-text)!important;
}
body[data-ia-ui-tone="light"] #screen-indovinazuma>.panel #igGuessCounter:not(#iaV374PaleA#iaV374PaleB#iaV374PaleC#iaV374PaleD),
body[data-ia-ui-tone="light"] #screen-indovinazuma>.panel .ig-header-row>div:not(#iaV374PaleA#iaV374PaleB#iaV374PaleC#iaV374PaleD){
  color:var(--ia-ui-text)!important;
  text-shadow:var(--ia-ui-shadow,0 1px 0 rgba(255,255,255,.88))!important;
}
body[data-ia-ui-tone="light"] #screen-home .ia-idle-hq-inner .ia-idle-hq-statrow span:not(#iaV374PaleA#iaV374PaleB#iaV374PaleC#iaV374PaleD),
body[data-ia-ui-tone="light"] #screen-home .ia-idle-hq-inner .ia-idle-auto-box small:not(#iaV374PaleA#iaV374PaleB#iaV374PaleC#iaV374PaleD){
  color:color-mix(in srgb,var(--ia-ui-text) 78%,var(--ia-ui-muted))!important;
}

/* The private lobby code strip intentionally stays dark even in light skins. */
body[data-ia-ui-tone="light"] #screen-lobby .code-box.private-code-box:not(#iaV374DarkA#iaV374DarkB#iaV374DarkC),
body[data-ia-ui-tone="light"] #screen-lobby .code-box.private-code-box :is(.private-code-copy-area,.private-code-actions,.private-code-value):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){
  color:var(--ia-v374-dark-fg)!important;
  text-shadow:var(--ia-v374-dark-shadow)!important;
}
body[data-ia-ui-tone="light"] #screen-lobby .code-box.private-code-box :is([style*="var(--text-dim)"],small,.small-note):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){
  color:var(--ia-v374-dark-muted)!important;
  text-shadow:var(--ia-v374-dark-shadow)!important;
}
body[data-ia-ui-tone="light"] :is(#screen-join,#screen-lobby) .private-code-eye:not(#iaV374DarkA#iaV374DarkB#iaV374DarkC),
body[data-ia-ui-tone="light"] #screen-lobby .code-box.private-code-box .btn-ghost:not(#iaV374DarkA#iaV374DarkB#iaV374DarkC){
  color:var(--ia-v374-dark-fg)!important;
  border-color:rgba(210,232,242,.30)!important;
  text-shadow:var(--ia-v374-dark-shadow)!important;
}
body[data-ia-ui-tone="light"] :is(#screen-join,#screen-lobby) .private-code-eye *,
body[data-ia-ui-tone="light"] #screen-lobby .code-box.private-code-box .btn-ghost *{color:inherit!important;text-shadow:inherit!important}

/* Orange disclaimer action is bright: dark copy has the strongest contrast. */
body[data-ia-ui-tone="light"] #disclaimerPlayBtn:not(#iaV374PaleA#iaV374PaleB#iaV374PaleC#iaV374PaleD){
  color:#101820!important;
  text-shadow:0 1px 0 rgba(255,255,255,.34)!important;
}

/* Final high-specificity edge cases found by the static contrast sweep. */
body[data-ia-ui-tone="light"] :is(#joinCodeEyeBtn,#lobbyCodeEyeBtn):not(#iaV374DarkA#iaV374DarkB#iaV374DarkC#iaV374DarkD){
  color:var(--ia-v374-dark-fg)!important;
  text-shadow:var(--ia-v374-dark-shadow)!important;
}
body[data-ia-ui-tone="light"] :is(#joinCodeEyeBtn,#lobbyCodeEyeBtn) *{color:inherit!important;text-shadow:inherit!important}
body[data-ia-ui-tone="light"] #screen-indovinazuma>.panel>.small-note:not(#iaV374PaleA#iaV374PaleB#iaV374PaleC#iaV374PaleD){
  color:var(--ia-ui-text)!important;
  text-shadow:var(--ia-ui-shadow,0 1px 0 rgba(255,255,255,.88))!important;
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* =====================================================================
   InazumArcade v375 · FINAL LIGHT/MIXED THEME CONTRAST HARDENING
   Static CSS only. No observers, no runtime scans, no animation/layout edits.

   Goal: every legacy/native dark island keeps a high-contrast light foreground
   even when Manga Ink / Frost / Sakura / Retro / Eclissi / Crystal repaint the
   surrounding screen with a pale material. Theme accents/borders remain active.
   ===================================================================== */

/* Do not rely only on data-ia-*-tone: direct skin ids are included as a safe
   fallback during the first frame of a theme switch / restored persisted skin. */
body:is(
  [data-ia-ui-tone="light"],
  [data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],
  [data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],
  [data-ia-ui-skin="ds"]
){
  --ia-v375-deep:#0b1a28;
  --ia-v375-deep-2:#13293a;
  --ia-v375-fg:#f8fcff;
  --ia-v375-muted:#c6d7e1;
  --ia-v375-soft:#a8bdca;
  --ia-v375-shadow:0 1px 2px rgba(0,0,0,.92);
}
body:is(
  [data-ia-bracket-tone="light"],
  [data-ia-bracket-skin="manga"],[data-ia-bracket-skin="eclissi"],[data-ia-bracket-skin="frost"],
  [data-ia-bracket-skin="sakura"],[data-ia-bracket-skin="retro"],[data-ia-bracket-skin="crystal"],
  [data-ia-bracket-skin="ds"]
){
  --ia-v375-br-deep:color-mix(in srgb,var(--ia-br-border,#5e87a1) 20%,#07131d);
  --ia-v375-br-deep-2:color-mix(in srgb,var(--ia-br-border,#5e87a1) 12%,#112334);
  --ia-v375-br-fg:#f8fcff;
  --ia-v375-br-muted:#c6d7e1;
  --ia-v375-br-shadow:0 1px 2px rgba(0,0,0,.92);
}

/* =====================================================================
   1. INDOVINAZUMA — all purple/navy islands, including the four examples.
   ===================================================================== */
body:is(
  [data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],
  [data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],
  [data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"]
) #screen-indovinazuma :is(
  .ia279-quiz-control,.ia279-quiz-title,.ia279-control-block,.ia279-segments>button,.ia279-sudden,.ia279-token-row,
  .ia265-marathon-panel,.ia265-mara-head,.ia269-mara-intro,.ia269-mara-feedback,.ia265-mara-stats,.ia265-mara-suggestions,
  .ia265-quiz-options,.ia265-quiz-theme,.ia265-choice,.ia265-challenge-label,.ia265-daily-share,
  .ia275-daily-history,.ia275-ch-board,.ia275-board-ring,.ia275-mara-report,.ia275-quiz-difficulty,
  .ia275-disconnected,.ia275-reconnect-note,.ia276-feature-preview,.ia276-lab-card,.ia99-quiz-lab,
  .ig-mode-btn,.ig-suggestions,.ig-suggestion-item,.ig-cell:not(.correct):not(.wrong),.ig-board,.ig-row,.ig-result,.ig-help-card,.ig-guess-row,.ig-popup-card
):not(#iaV375A#iaV375B#iaV375C#iaV375D){
  color:var(--ia-v375-fg)!important;
  text-shadow:var(--ia-v375-shadow)!important;
}
body:is(
  [data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],
  [data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],
  [data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"]
) #screen-indovinazuma :is(
  .ia279-quiz-control,.ia279-control-block,.ia279-segments>button,.ia279-sudden,.ia279-token-row,
  .ia265-marathon-panel,.ia265-mara-head,.ia269-mara-intro,.ia269-mara-feedback,.ia265-mara-stats,.ia265-mara-suggestions,
  .ia265-choice,.ia275-daily-history,.ia275-ch-board,.ia275-mara-report,.ia275-quiz-difficulty,
  .ia276-feature-preview,.ia276-lab-card,.ia99-quiz-lab,
  .ig-mode-btn,.ig-suggestions,.ig-suggestion-item,.ig-cell:not(.correct):not(.wrong),.ig-board,.ig-row,.ig-result,.ig-help-card,.ig-guess-row,.ig-popup-card
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,button):not(#iaV375A#iaV375B#iaV375C#iaV375D){
  color:var(--ia-v375-fg)!important;
  text-shadow:var(--ia-v375-shadow)!important;
}
body:is(
  [data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],
  [data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],
  [data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"]
) #screen-indovinazuma :is(
  .ia279-quiz-control,.ia279-control-block,.ia279-sudden,.ia279-token-row,.ia265-marathon-panel,.ia269-mara-intro,
  .ia269-mara-feedback,.ia265-mara-stats,.ia265-mara-suggestions,.ia265-choice,.ia275-daily-history,.ia275-ch-board,
  .ia275-mara-report,.ia276-feature-preview,.ia276-lab-card,.ia99-quiz-lab,
  .ig-suggestions,.ig-suggestion-item,.ig-cell:not(.correct):not(.wrong),.ig-board,.ig-row,.ig-result,.ig-help-card,.ig-guess-row,.ig-popup-card
) :is(p,small,.muted,.meta,.desc,.description):not(#iaV375A#iaV375B#iaV375C#iaV375D){
  color:var(--ia-v375-muted)!important;
  text-shadow:var(--ia-v375-shadow)!important;
}
/* Explicitly preserve the two reported dark shells. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
#screen-indovinazuma :is(.ia279-quiz-control,.ia265-marathon-panel):not(#iaV375A#iaV375B#iaV375C#iaV375D){
  background:linear-gradient(145deg,rgba(42,29,78,.97),rgba(25,20,55,.98))!important;
  border-color:color-mix(in srgb,var(--ia-ui-accent,#a989ef) 38%,transparent)!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
#screen-indovinazuma .ia269-mara-intro:not(#iaV375A#iaV375B#iaV375C#iaV375D){
  background:rgba(23,20,55,.86)!important;
  border-color:rgba(203,171,255,.34)!important;
}
/* Inputs/selects on pale fields must stay dark-copy. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
#screen-indovinazuma :is(.ia279-quiz-control,.ia265-marathon-panel) :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea):not(#iaV375A#iaV375B#iaV375C#iaV375D){
  color:#111820!important;background:#fbf8ef!important;text-shadow:none!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
#screen-indovinazuma :is(.ia279-quiz-title small,.ia279-control-block>label,.ia265-mara-head small):not(#iaV375A#iaV375B#iaV375C#iaV375D){
  color:#d9c8ff!important;text-shadow:var(--ia-v375-shadow)!important;
}

/* =====================================================================
   2. FF / FFI / ONLINE — context strips, Road to Glory, Ranking Stage.
   These remain dark information islands regardless of a light UI/bracket skin.
   ===================================================================== */
body:is(
  [data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],
  [data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"],
  [data-ia-bracket-tone="light"],[data-ia-bracket-skin="manga"],[data-ia-bracket-skin="eclissi"],[data-ia-bracket-skin="frost"],
  [data-ia-bracket-skin="sakura"],[data-ia-bracket-skin="retro"],[data-ia-bracket-skin="crystal"],[data-ia-bracket-skin="ds"]
) .global-menu-screen :is(
  .ff100-context,.ff100-context>div,.ff72-tournament-hub,.ff72-hub-main,.ff72-hub-card,
  .ff72-scout-card,.ff72-summary-stat,.ff72-plan,.ff72-end-summary,.ff84-end-actions,
  .ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context,
  .ffi72-news-item,.ffi72-expectation,.ffi72-leader,.ffi72-live-race,.ffi72-broadcast-card,.ffi72-draw-card,.ffi72-draw-match,
  .ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-star-choice,.ffi95-plan-card,.ffi95-plan-choice,
  .ff-event-card,.ff-event-result,.ff-event-brief,.ffi-command-intel,.ffi-command-stats>div,.ffi-hub-card
):not(#iaV375A#iaV375B#iaV375C#iaV375D){
  color:var(--ia-v375-br-fg,var(--ia-v375-fg,#f8fcff))!important;
  text-shadow:var(--ia-v375-br-shadow,var(--ia-v375-shadow,0 1px 2px rgba(0,0,0,.92)))!important;
}
body:is(
  [data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],
  [data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"],
  [data-ia-bracket-tone="light"],[data-ia-bracket-skin="manga"],[data-ia-bracket-skin="eclissi"],[data-ia-bracket-skin="frost"],
  [data-ia-bracket-skin="sakura"],[data-ia-bracket-skin="retro"],[data-ia-bracket-skin="crystal"],[data-ia-bracket-skin="ds"]
) .global-menu-screen :is(
  .ff100-context,.ff72-tournament-hub,.ff72-hub-main,.ff72-hub-card,.ff72-scout-card,.ff72-summary-stat,.ff72-plan,.ff72-end-summary,
  .ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context,.ffi72-news-item,.ffi72-expectation,.ffi72-leader,.ffi72-live-race,
  .ffi72-broadcast-card,.ffi72-draw-card,.ffi72-draw-match,.ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-star-choice,
  .ffi95-plan-card,.ffi95-plan-choice,.ff-event-card,.ff-event-result,.ff-event-brief,.ffi-command-intel,.ffi-command-stats>div,.ffi-hub-card
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,td,th,.bname,.bscore,.ta,.tb,.score):not(#iaV375A#iaV375B#iaV375C#iaV375D){
  color:var(--ia-v375-br-fg,var(--ia-v375-fg,#f8fcff))!important;
  text-shadow:var(--ia-v375-br-shadow,var(--ia-v375-shadow,0 1px 2px rgba(0,0,0,.92)))!important;
}
body:is(
  [data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],
  [data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"],
  [data-ia-bracket-tone="light"],[data-ia-bracket-skin="manga"],[data-ia-bracket-skin="eclissi"],[data-ia-bracket-skin="frost"],
  [data-ia-bracket-skin="sakura"],[data-ia-bracket-skin="retro"],[data-ia-bracket-skin="crystal"],[data-ia-bracket-skin="ds"]
) .global-menu-screen :is(
  .ff100-context,.ff72-tournament-hub,.ff72-hub-main,.ff72-hub-card,.ff72-scout-card,.ff72-summary-stat,.ff72-plan,.ff72-end-summary,
  .ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context,.ffi72-news-item,.ffi72-expectation,.ffi72-leader,.ffi72-live-race,
  .ffi72-broadcast-card,.ffi72-draw-card,.ffi72-draw-match,.ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-star-choice,
  .ffi95-plan-card,.ffi95-plan-choice,.ff-event-card,.ff-event-result,.ff-event-brief,.ffi-command-intel,.ffi-command-stats>div,.ffi-hub-card
) :is(p,small,.small-note,.muted,.meta,.desc,.description,.score.pending):not(#iaV375A#iaV375B#iaV375C#iaV375D){
  color:var(--ia-v375-br-muted,var(--ia-v375-muted,#c6d7e1))!important;
  text-shadow:var(--ia-v375-br-shadow,var(--ia-v375-shadow,0 1px 2px rgba(0,0,0,.92)))!important;
}
/* Force the reported strips onto an unmistakably dark theme-derived material. */
body:is(
  [data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],
  [data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"],
  [data-ia-bracket-tone="light"],[data-ia-bracket-skin="manga"],[data-ia-bracket-skin="eclissi"],[data-ia-bracket-skin="frost"],
  [data-ia-bracket-skin="sakura"],[data-ia-bracket-skin="retro"],[data-ia-bracket-skin="crystal"],[data-ia-bracket-skin="ds"]
) #screen-bracket :is(.ff100-context,.ff72-tournament-hub):not(#iaV375A#iaV375B#iaV375C#iaV375D){
  background:linear-gradient(145deg,var(--ia-v375-br-deep,var(--ia-v375-deep,#0b1a28)),var(--ia-v375-br-deep-2,var(--ia-v375-deep-2,#13293a)))!important;
  border-color:color-mix(in srgb,var(--ia-br-border,var(--ia-ui-border,#6f91a8)) 62%,transparent)!important;
}
body:is(
  [data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],
  [data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"],
  [data-ia-bracket-tone="light"],[data-ia-bracket-skin="manga"],[data-ia-bracket-skin="eclissi"],[data-ia-bracket-skin="frost"],
  [data-ia-bracket-skin="sakura"],[data-ia-bracket-skin="retro"],[data-ia-bracket-skin="crystal"],[data-ia-bracket-skin="ds"]
) #screen-bracket .ff100-context>div:not(#iaV375A#iaV375B#iaV375C#iaV375D){
  background:rgba(255,255,255,.055)!important;
  border-color:rgba(220,239,248,.12)!important;
}
/* Exact Road-to-Glory hierarchy. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="manga"],[data-ia-bracket-skin="eclissi"],[data-ia-bracket-skin="frost"],[data-ia-bracket-skin="sakura"],[data-ia-bracket-skin="retro"],[data-ia-bracket-skin="crystal"],[data-ia-bracket-skin="ds"])
#screen-bracket .ff72-hub-main :is(.ff72-hub-kicker,b,strong):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#f8fcff!important;text-shadow:var(--ia-v375-br-shadow,var(--ia-v375-shadow))!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="manga"],[data-ia-bracket-skin="eclissi"],[data-ia-bracket-skin="frost"],[data-ia-bracket-skin="sakura"],[data-ia-bracket-skin="retro"],[data-ia-bracket-skin="crystal"],[data-ia-bracket-skin="ds"])
#screen-bracket .ff72-hub-main>span:not(.ff72-hub-kicker):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#c6d7e1!important;text-shadow:var(--ia-v375-br-shadow,var(--ia-v375-shadow))!important}
/* Hub cards stay dark too; this avoids dark-copy being pushed onto them by a
   light bracket theme. The border/accent still follows the chosen theme. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="manga"],[data-ia-bracket-skin="eclissi"],[data-ia-bracket-skin="frost"],[data-ia-bracket-skin="sakura"],[data-ia-bracket-skin="retro"],[data-ia-bracket-skin="crystal"],[data-ia-bracket-skin="ds"])
#screen-bracket .ff72-hub-card:not(#iaV375A#iaV375B#iaV375C#iaV375D){
  background:rgba(9,20,29,.90)!important;border-color:rgba(221,239,248,.14)!important;color:#f8fcff!important;text-shadow:var(--ia-v375-br-shadow,var(--ia-v375-shadow))!important;
}
#screen-bracket .ff72-hub-card :is(b,strong,span,small){text-shadow:0 1px 2px rgba(0,0,0,.92)!important}

/* FFI World Ranking: keep every information card/row dark and readable in all
   light/mixed UI or bracket skins. */
body:is(
  [data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],
  [data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"],
  [data-ia-bracket-tone="light"],[data-ia-bracket-skin="manga"],[data-ia-bracket-skin="eclissi"],[data-ia-bracket-skin="frost"],
  [data-ia-bracket-skin="sakura"],[data-ia-bracket-skin="retro"],[data-ia-bracket-skin="crystal"],[data-ia-bracket-skin="ds"]
) .ffi97-stage :is(.ffi97-hero-card,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match):not(#iaV375A#iaV375B#iaV375C#iaV375D){
  background:linear-gradient(145deg,var(--ia-v375-br-deep,var(--ia-v375-deep,#0b1a28)),var(--ia-v375-br-deep-2,var(--ia-v375-deep-2,#13293a)))!important;
  border-color:color-mix(in srgb,var(--ia-br-border,var(--ia-ui-border,#6f91a8)) 58%,transparent)!important;
  color:#f8fcff!important;text-shadow:var(--ia-v375-br-shadow,var(--ia-v375-shadow))!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="manga"],[data-ia-bracket-skin="eclissi"],[data-ia-bracket-skin="frost"],[data-ia-bracket-skin="sakura"],[data-ia-bracket-skin="retro"],[data-ia-bracket-skin="crystal"],[data-ia-bracket-skin="ds"])
.ffi97-stage :is(.ffi97-hero-card,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,td,.ta,.tb,.score):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"],[data-ia-bracket-tone="light"],[data-ia-bracket-skin="manga"],[data-ia-bracket-skin="eclissi"],[data-ia-bracket-skin="frost"],[data-ia-bracket-skin="sakura"],[data-ia-bracket-skin="retro"],[data-ia-bracket-skin="crystal"],[data-ia-bracket-skin="ds"])
.ffi97-stage :is(.ffi97-hero-card,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match) :is(p,small,th,.ffi97-fixtures-note,.score.pending,.muted,.meta):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#c6d7e1!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}

/* Builder/lobby native dark controls. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
:is(#screen-builder,#screen-lobby) :is(
  .ff72-builder-strip,.ffi72-builder-strip,.ff72-tour-chip,.ffi72-tour-chip,.ff72-identity,.ffi72-identity,
  .ff72-source-card,.ff72-source-power,.ffi72-source-power,.ia274-rule,.ia274-pack,.ia274-draft-status,
  .ia275-online-rules,.ia275-online-rule-rail,.ia278-online-builder-rule,.ia99-online-status,.online-status,
  .code-box.private-code-box,.private-code-eye,.timer,.role-tab,.player-row,.roster-mini .slot,.intl-team-card,
  .intl-player-row,.intl-role-overall,.intl-selected-banner,.selected-player,.team-card,.team-row,.builder-summary,
  .builder-card,.lobby-card,.lobby-row
):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
:is(#screen-builder,#screen-lobby) :is(
  .ff72-builder-strip,.ffi72-builder-strip,.ff72-tour-chip,.ffi72-tour-chip,.ff72-identity,.ffi72-identity,
  .ff72-source-card,.ff72-source-power,.ffi72-source-power,.ia274-rule,.ia274-pack,.ia274-draft-status,.ia275-online-rules,
  .ia275-online-rule-rail,.ia278-online-builder-rule,.ia99-online-status,.online-status,.code-box.private-code-box,
  .role-tab,.player-row,.roster-mini .slot,.intl-team-card,.intl-player-row,.intl-role-overall,.intl-selected-banner,
  .selected-player,.team-card,.team-row,.builder-summary,.builder-card,.lobby-card,.lobby-row
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,span,small,em,a):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}

/* =====================================================================
   3. CAREER — extend the dark-island registry beyond the earlier screenshots.
   ===================================================================== */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
#screen-career :is(
  .career-head,.career-live,.career-feed,.career-v58-dock,.career-v61-season-timeline,.career-v61-week-btn,.career-v61-week-tooltip,
  .career-stat,.career-attr,.career-plan,.career-trophy-group,.career-table,.career-offer,.career-matchbox,.career-effect,.career-club-trait,
  .career-event-card,.career-special-popup-card,.career-story-card,.career-story-context,.career-story-choice,.career-talent-card,.career-talent-option,
  .career-big-match,.career-penalty-card,.career-penalty-team,.career-award-card,.career-reset-card,.career-v44-tournament-card,
  .career-v200-strip,.career-v200-summary,.career-v200-story-card,.career-v200-story-context,.career-v200-story-choices>button,
  .career-v275-ambition-card,.career-v275-ambition-panel,.career-v306-card,.career-v306-memory,.career-v306-memory-field,
  .career-v306-resolution,.career-v306-secret-card,.career-v306-debug-end,.career-intl-group,.career-intl-match,.career-bracket-match,
  .career-bracket-overlay-card,.career-ency-card,.career-ency-section,.career-v40-quick,.career-special-training,.career-tag,.career-moment
):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
#screen-career :is(
  .career-head,.career-live,.career-feed,.career-v58-dock,.career-v61-season-timeline,.career-v61-week-btn,.career-v61-week-tooltip,
  .career-stat,.career-attr,.career-plan,.career-trophy-group,.career-table,.career-offer,.career-matchbox,.career-effect,.career-club-trait,
  .career-event-card,.career-special-popup-card,.career-story-card,.career-story-context,.career-story-choice,.career-talent-card,.career-talent-option,
  .career-big-match,.career-penalty-card,.career-penalty-team,.career-award-card,.career-reset-card,.career-v44-tournament-card,
  .career-v200-strip,.career-v200-summary,.career-v200-story-card,.career-v200-story-context,.career-v200-story-choices>button,
  .career-v275-ambition-card,.career-v275-ambition-panel,.career-v306-card,.career-v306-memory,.career-v306-memory-field,
  .career-v306-resolution,.career-v306-secret-card,.career-v306-debug-end,.career-intl-group,.career-intl-match,.career-bracket-match,
  .career-bracket-overlay-card,.career-ency-card,.career-ency-section,.career-v40-quick,.career-special-training,.career-tag,.career-moment
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,td,th,button):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
#screen-career :is(
  .career-head,.career-live,.career-feed,.career-v58-dock,.career-v61-season-timeline,.career-v61-week-btn,.career-v61-week-tooltip,
  .career-stat,.career-attr,.career-plan,.career-trophy-group,.career-table,.career-offer,.career-matchbox,.career-effect,.career-club-trait,
  .career-event-card,.career-special-popup-card,.career-story-card,.career-story-context,.career-story-choice,.career-talent-card,.career-talent-option,
  .career-big-match,.career-penalty-card,.career-penalty-team,.career-award-card,.career-reset-card,.career-v44-tournament-card,
  .career-v200-strip,.career-v200-summary,.career-v200-story-card,.career-v200-story-context,.career-v275-ambition-card,.career-v275-ambition-panel,
  .career-v306-card,.career-v306-memory,.career-v306-memory-field,.career-v306-resolution,.career-v306-secret-card,.career-v306-debug-end,
  .career-intl-group,.career-intl-match,.career-bracket-match,.career-bracket-overlay-card,.career-ency-card,.career-ency-section,.career-v40-quick,
  .career-special-training,.career-tag,.career-moment
) :is(p,small,.muted,.meta,.career-note,.career-sub,.desc,.description):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#c6d7e1!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}

/* =====================================================================
   4. BOSSRUSH — entry, run, shop, contracts, match, encyclopedia.
   ===================================================================== */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
:is(#bossRushShell,#bossRushOverlay) :is(
  .bossrush-teamplate,.bossrush-event,.br-entry-panel,.br-entry-ritual,.br-entry-ritual-grid>div,.br-entry-footer-card,.br-entry-play,.br-endless-launch,.br-endless-record,
  .brx-runbox,.brx-hero,.brx-event-card,.brx-team,.brx-action-card,.brx-slot,.brx-card,.brx-phasebox,.brx-stage-item,.brx-stage-ico,
  .br-inv-item,.br-shop-item,.br-shop-modal-card,.br-shop-confirm-card,.br-match-card,.br-match-decision,.br-match-overlay,
  .br-v198-artifact-card,.br-v198-artifact-choice,.br-v199-contract-choice,.br-endless-contract-detail,.br-endless-live-contract,
  .br-endless-history-card,.br-endless-history-row,.br-choice-center,.br-choice-content,.br-ency-modal,.br-v4-build-card,.br-v4-build-item,
  .br-v5-mini-card,.br-v5-relic-set
):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
:is(#bossRushShell,#bossRushOverlay) :is(
  .bossrush-teamplate,.bossrush-event,.br-entry-panel,.br-entry-ritual,.br-entry-ritual-grid>div,.br-entry-footer-card,.br-entry-play,.br-endless-launch,.br-endless-record,
  .brx-runbox,.brx-hero,.brx-event-card,.brx-team,.brx-action-card,.brx-slot,.brx-card,.brx-phasebox,.brx-stage-item,.brx-stage-ico,
  .br-inv-item,.br-shop-item,.br-shop-modal-card,.br-shop-confirm-card,.br-match-card,.br-match-decision,.br-match-overlay,
  .br-v198-artifact-card,.br-v198-artifact-choice,.br-v199-contract-choice,.br-endless-contract-detail,.br-endless-live-contract,
  .br-endless-history-card,.br-endless-history-row,.br-choice-center,.br-choice-content,.br-ency-modal,.br-v4-build-card,.br-v4-build-item,.br-v5-mini-card,.br-v5-relic-set
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,button):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
:is(#bossRushShell,#bossRushOverlay) :is(
  .bossrush-teamplate,.bossrush-event,.br-entry-panel,.br-entry-ritual,.br-entry-footer-card,.br-endless-record,.brx-runbox,.brx-hero,.brx-event-card,
  .brx-team,.brx-action-card,.brx-card,.br-inv-item,.br-shop-item,.br-match-card,.br-v198-artifact-card,.br-v198-artifact-choice,
  .br-v199-contract-choice,.br-endless-contract-detail,.br-endless-history-card,.br-choice-center,.br-choice-content,.br-ency-modal,.br-v4-build-card,.br-v5-mini-card
) :is(p,small,.muted,.meta,.desc,.description):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#c6d7e1!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}

/* =====================================================================
   5. GALAXY — all gameplay/data/scout/squad/duel/result dark islands.
   ===================================================================== */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
#galaxyDominationOverlay :is(
  .gd-panel,.gd-control-card,.gd-env-card,.gd-feed-card,.gd-mission-card,.gd-map,.gd-node-core,
  .gd-squad-box,.gd-formation-btn,.gd-squad-summary,.gd-bench-card,.gd-lineup-slot,.gd-lineup-chip,.gd-player-detail,.gd-roster-pane,
  .gd-guide-section,.gd-honors-shell,.gd-scout-terminal,.gd-scout-trial,.gd-scout-pack,.gd-physical-pack,.gd-pack-actions,
  .gd-chrono-brief,.gd-chrono-brief-card,.gd-chrono-brief-meta>span,.gd-rift-tier,.gd-sector-status,.gd-stat-pill,.gd-result-card,.gd-mini,.gd-reward,
  .gd-controlled-hud,.gd-match-side,.gd57-setpiece-panel,.gd58-setpiece-side,.gd-ie2-intro-card,
  .gd-duel-overlay,.gd-shot-overlay,.gd-pause-overlay,.gd-duel-card,.gd-shot-card,.gd-action-btn,.gd-shot-ready,.gd-shot-cancel,
  .gd-goal-sequence,.gd-kickoff-sequence,.gd275-loadouts,.gd275-loadout,.gd275-free-card,.gd275-overlord-warning,.gd275-overlord-mission,.gd275-overlord-kicker,
  .ia-gd-phone-dock,.ia-gd-phone-actions,.ia-mode-ency-panel,.ia-mode-ency-section,.ia-power-lab,.ia-magic-card
):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
#galaxyDominationOverlay :is(
  .gd-panel,.gd-control-card,.gd-env-card,.gd-feed-card,.gd-mission-card,.gd-map,.gd-node-core,.gd-squad-box,.gd-formation-btn,.gd-squad-summary,
  .gd-bench-card,.gd-lineup-slot,.gd-lineup-chip,.gd-player-detail,.gd-roster-pane,.gd-guide-section,.gd-honors-shell,.gd-scout-terminal,.gd-scout-trial,
  .gd-scout-pack,.gd-physical-pack,.gd-pack-actions,.gd-chrono-brief,.gd-chrono-brief-card,.gd-rift-tier,.gd-sector-status,.gd-stat-pill,.gd-result-card,
  .gd-mini,.gd-reward,.gd-controlled-hud,.gd-match-side,.gd57-setpiece-panel,.gd58-setpiece-side,.gd-ie2-intro-card,
  .gd-duel-overlay,.gd-shot-overlay,.gd-pause-overlay,.gd-duel-card,.gd-shot-card,.gd-action-btn,.gd-shot-ready,.gd-shot-cancel,.gd-goal-sequence,
  .gd-kickoff-sequence,.gd275-loadouts,.gd275-loadout,.gd275-free-card,.gd275-overlord-warning,.gd275-overlord-mission,.ia-gd-phone-dock,.ia-gd-phone-actions,
  .ia-mode-ency-panel,.ia-mode-ency-section,.ia-power-lab,.ia-magic-card
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,button,td,th):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
#galaxyDominationOverlay :is(
  .gd-panel,.gd-control-card,.gd-env-card,.gd-feed-card,.gd-mission-card,.gd-map,.gd-squad-box,.gd-formation-btn,.gd-squad-summary,.gd-bench-card,
  .gd-lineup-slot,.gd-lineup-chip,.gd-player-detail,.gd-guide-section,.gd-honors-shell,.gd-scout-terminal,.gd-scout-trial,.gd-scout-pack,.gd-physical-pack,
  .gd-chrono-brief,.gd-chrono-brief-card,.gd-rift-tier,.gd-sector-status,.gd-result-card,.gd-controlled-hud,.gd-match-side,.gd-ie2-intro-card,
  .gd-duel-card,.gd-shot-card,.gd275-loadouts,.gd275-loadout,.gd275-free-card,.gd275-overlord-warning,.gd275-overlord-mission,.ia-mode-ency-panel,
  .ia-mode-ency-section,.ia-power-lab,.ia-magic-card
) :is(p,small,.muted,.meta,.sub,.desc,.description):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#c6d7e1!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}

/* =====================================================================
   6. GLOBAL MODALS / ENCYCLOPEDIAS / DEBUG PANELS that remain dark.
   ===================================================================== */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
:is(.ff-info-modal,.career-ency-modal,.br-ency-modal,.ia-v99-match-recap,.ia99-quiz-lab,.ia-magic-card,.ia-power-lab,.ia-dev-panel,.ia276-lab-card)
:not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
:is(.ff-info-modal,.career-ency-modal,.br-ency-modal,.ia-v99-match-recap,.ia99-quiz-lab,.ia-magic-card,.ia-power-lab,.ia-dev-panel,.ia276-lab-card)
:is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,span,em,a,button,td,th):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#f8fcff!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"],[data-ia-ui-skin="ds"])
:is(.ff-info-modal,.career-ency-modal,.br-ency-modal,.ia-v99-match-recap,.ia99-quiz-lab,.ia-magic-card,.ia-power-lab,.ia-dev-panel,.ia276-lab-card)
:is(p,small,.muted,.meta,.desc,.description):not(#iaV375A#iaV375B#iaV375C#iaV375D){color:#c6d7e1!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important}

/* =====================================================================
   7. PALE ROOTS: make sure legacy white/cyan copy does NOT survive on paper.
   This only touches copy that sits directly on the actual light material.
   ===================================================================== */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"])
.global-menu-screen>.panel>:is(h1,h2,h3,h4,h5,h6,p,.small-note,.subtitle,.meta):not(#iaV375PaleA#iaV375PaleB#iaV375PaleC#iaV375PaleD){
  color:var(--ia-ui-text,#15212b)!important;text-shadow:var(--ia-ui-shadow,0 1px 0 rgba(255,255,255,.88))!important;
}
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"])
.global-menu-screen>.panel>.small-note:not(#iaV375PaleA#iaV375PaleB#iaV375PaleC#iaV375PaleD){color:var(--ia-ui-muted,#53636d)!important}

/* Profile light themes: pale profile material owns dark copy; chrome buttons keep
   outlined white copy where the background itself contains dark bands. */
body[data-ia-profile-tone="light"] #profileModalRoot :is(.achievement-card,.leader-row,.ia-progress-grid>div,.ia-progress-hero,.ia-progress-level,.ia-hall-hero,.ia-hall-card,.ia-hall-save-note,.ia99-recent-row,.ia-mastery-card,.ia-mastery-section,.ia-v110-season,.ia-v110-season-card,.ia99-profile-collection,.ia99-choice-card,.ia99-mode-card,.ia-v180-custom-guide,.ia-sp-panel,.ia-ar-head,.ia-sp-hall-grid>div,.ia-season-recap-card,.ia-season-recap-meta>span):not(#iaV375PaleA#iaV375PaleB#iaV375PaleC#iaV375PaleD){color:var(--ia-profile-text)!important;text-shadow:0 1px 0 rgba(255,255,255,.88)!important}

/* Inputs on every light UI keep dark copy regardless of the dark-island rule above. */
body:is([data-ia-ui-tone="light"],[data-ia-ui-skin="manga"],[data-ia-ui-skin="eclissi"],[data-ia-ui-skin="frost"],[data-ia-ui-skin="sakura"],[data-ia-ui-skin="retro"],[data-ia-ui-skin="crystal"])
:is(.global-menu-screen,#screen-career,#bossRushShell,#bossRushOverlay,#galaxyDominationOverlay,.ff-info-modal,.career-ency-modal,.br-ency-modal)
:is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea):not(#iaV375PaleA#iaV375PaleB#iaV375PaleC#iaV375PaleD){
  color:var(--ia-ui-input-text,#102637)!important;text-shadow:none!important;
}

/* No animations/transitions are introduced by v375. */

/* IA V788 bundle separator: original stylesheet rules preserved */
/* =====================================================================
   InazumArcade v376 · CAREER TEAM IDENTITY PRIORITY

   On the MAIN Career dashboard only:
   - the selected Interface skin is allowed to paint only the dashboard backdrop;
   - Career/club colors keep ownership of panels, accents, text, buttons and tables;
   - no JS observers, no layout/geometry/hitbox changes.

   Other Career screens (creation, market, FFI, overlays, matches, etc.) keep the
   normal global Interface customization behavior.
   ===================================================================== */

/* The main dashboard is identified by the real .career-dashboard-grid emitted by
   renderDash().  :has() keeps this CSS-only and avoids another runtime watcher. */
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-wrap:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  /* Interface skin survives only here: as the material/backdrop behind Career UI. */
  background:
    linear-gradient(rgba(3,10,18,.10),rgba(3,10,18,.10)),
    var(--ia-ui-surface)!important;
  color:var(--cr-text)!important;
  border-color:rgba(var(--ia293-rgb),.34)!important;
  box-shadow:0 12px 32px rgba(0,0,0,.34),0 0 0 1px rgba(var(--ia293-rgb2),.05) inset!important;
}

/* Career header + utility rails remain Career/club UI, never Interface-skin UI. */
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) :is(
  .career-head,.career-v58-dock,.career-v61-season-timeline
):not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  background:
    radial-gradient(150px 70px at 0 0,rgba(var(--ia293-rgb),.10),transparent 72%),
    radial-gradient(130px 78px at 100% 100%,rgba(var(--ia293-rgb2),.07),transparent 75%),
    linear-gradient(135deg,rgba(255,255,255,.018) 0 1px,transparent 1px 12px),
    linear-gradient(180deg,rgba(8,21,34,.985),rgba(4,12,21,.985))!important;
  border-color:rgba(var(--ia293-rgb),.28)!important;
  color:var(--cr-text)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.025),inset 0 0 28px rgba(var(--ia293-rgb),.03)!important;
}

/* Main cards: preserve the v293 club wash over the dark Career HQ material. */
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-panel:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  background:
    radial-gradient(145px 82px at -8% 18%,rgba(var(--ia293-rgb),.18),transparent 72%),
    radial-gradient(120px 95px at 105% 88%,rgba(var(--ia293-rgb2),.13),transparent 72%),
    linear-gradient(128deg,rgba(var(--ia293-rgb),.035),transparent 42%,rgba(var(--ia293-rgb2),.025)),
    linear-gradient(135deg,rgba(255,255,255,.018) 0 1px,transparent 1px 12px),
    linear-gradient(180deg,rgba(8,21,34,.985),rgba(4,12,21,.985))!important;
  border-color:rgba(var(--ia293-rgb),.48)!important;
  color:var(--cr-text)!important;
  box-shadow:inset 0 0 0 1px rgba(var(--ia293-rgb),.10),0 8px 24px rgba(var(--ia293-rgb),.075)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.78)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-panel>h3:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  color:#f8fcff!important;
  text-shadow:0 1px 9px rgba(0,0,0,.45)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-panel :is(p,small,.career-note,.career-sub,.muted,.meta,.desc,.description):not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E#iaV376F){
  color:var(--cr-muted)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.78)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-panel :is(b,strong,label,legend):not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E#iaV376F){
  color:#f8fcff!important;
  text-shadow:0 1px 2px rgba(0,0,0,.78)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-panel>h3::after{
  background:linear-gradient(90deg,var(--ia293-a),var(--ia293-b),transparent)!important;
  box-shadow:0 0 8px rgba(var(--ia293-rgb),.22)!important;
}

/* Header identity always comes from the club. */
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-title:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  color:var(--ia293-a)!important;
  text-shadow:0 2px 18px rgba(0,0,0,.55),0 0 16px rgba(var(--ia293-rgb),.22)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-title::after{
  background:linear-gradient(90deg,var(--ia293-a),var(--ia293-b),transparent)!important;
  box-shadow:0 0 12px rgba(var(--ia293-rgb),.30)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) :is(.career-sub,.career-note):not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  color:var(--cr-muted)!important;text-shadow:0 1px 2px rgba(0,0,0,.74)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-kicker:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  color:var(--ia293-a)!important;text-shadow:0 0 10px rgba(var(--ia293-rgb),.16)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) :is(.career-week-season,.career-week-stage):not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  color:#c9eafa!important;text-shadow:0 1px 2px rgba(0,0,0,.72)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-week-number:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  color:#101820!important;
  background:linear-gradient(135deg,var(--ia293-b),var(--ia293-a))!important;
  border-color:color-mix(in srgb,var(--ia293-b) 72%,white)!important;
  box-shadow:0 0 18px rgba(var(--ia293-rgb),.16)!important;
  text-shadow:none!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-week-number small:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:#24313a!important;text-shadow:none!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-badge:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  color:#f8fcff!important;
  border-color:rgba(var(--ia293-rgb),.58)!important;
  background:linear-gradient(135deg,rgba(var(--ia293-rgb),.24),rgba(var(--ia293-rgb2),.10)),linear-gradient(180deg,rgba(10,29,44,.98),rgba(5,15,25,.98))!important;
  box-shadow:inset 0 0 18px rgba(var(--ia293-rgb),.08),0 0 18px rgba(var(--ia293-rgb),.08)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.78)!important;
}

/* Dense dashboard islands stay dark and receive only club-color accents. */
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) :is(
  .career-stat,.career-attr,.career-matchbox,.career-plan,.career-market-status,.career-effect,.career-club-trait,.career-next-opponent,
  .career-trophy-group,.career-table,.career-offer,.career-v61-context,.career-v61-week-btn,.career-v61-week-tooltip,
  .career-v40-quick,.career-v200-strip
):not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  color:#f4fbff!important;
  text-shadow:0 1px 2px rgba(0,0,0,.78)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-stat:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  background:
    radial-gradient(90px 58px at -8% 16%,rgba(var(--ia293-rgb),.12),transparent 74%),
    linear-gradient(145deg,rgba(11,31,47,.96),rgba(5,16,27,.985))!important;
  border-color:rgba(var(--ia293-rgb),.22)!important;
  box-shadow:inset 0 0 18px rgba(var(--ia293-rgb),.035)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-stat b:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:#f8fcff!important;text-shadow:0 0 12px rgba(var(--ia293-rgb),.12)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-stat small:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:#9bb8c8!important;text-shadow:0 1px 2px rgba(0,0,0,.76)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-player-column>.career-panel:first-child .career-stat:first-child:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  border-color:rgba(var(--ia293-rgb2),.48)!important;
  background:linear-gradient(145deg,rgba(var(--ia293-rgb2),.20),rgba(9,19,28,.97))!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-player-column>.career-panel:first-child .career-stat:first-child b:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:var(--ia293-b)!important}

body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-attr:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  background:linear-gradient(145deg,rgba(9,27,42,.97),rgba(5,16,27,.985))!important;
  border-color:rgba(var(--ia293-rgb),.13)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-attr span:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:#b7d0dc!important;text-shadow:0 1px 2px rgba(0,0,0,.76)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-attr b:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.76)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-bar:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){background:rgba(82,126,151,.14)!important;box-shadow:inset 0 0 6px rgba(0,0,0,.5)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-bar i:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){background:linear-gradient(90deg,var(--ia293-a),var(--ia293-b))!important;box-shadow:0 0 10px rgba(var(--ia293-rgb),.30)!important}

body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) :is(.career-matchbox,.career-plan,.career-market-status,.career-effect,.career-club-trait):not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  background:linear-gradient(145deg,rgba(10,29,44,.97),rgba(5,15,25,.985))!important;
  border-color:rgba(var(--ia293-rgb),.22)!important;
  box-shadow:inset 0 0 22px rgba(var(--ia293-rgb),.03)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-next-opponent:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  background:linear-gradient(90deg,rgba(var(--ia293-rgb2),.10),rgba(var(--ia293-rgb),.045))!important;
  border-color:rgba(var(--ia293-rgb2),.30)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-next-opponent span:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:var(--ia293-b)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-next-opponent b:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:#fff!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-plan .meta:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:var(--ia293-a)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-plan:hover:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  border-color:rgba(var(--ia293-rgb),.52)!important;
  background:linear-gradient(145deg,rgba(14,40,58,.985),rgba(6,19,30,.985))!important;
}

/* Tables/trophies keep the Career HQ readability and club highlight. */
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-table:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){background:rgba(3,10,17,.52)!important;border-color:rgba(var(--ia293-rgb),.14)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-table th:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:#c9eafa!important;background:linear-gradient(180deg,rgba(17,48,67,.96),rgba(9,28,42,.97))!important;border-color:rgba(var(--ia293-rgb),.16)!important;text-shadow:0 1px 2px rgba(0,0,0,.78)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-table td:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:#cde1ea!important;background:rgba(255,255,255,.008)!important;border-color:rgba(92,166,196,.08)!important;text-shadow:0 1px 2px rgba(0,0,0,.78)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-table tr.me td:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:#fff!important;background:linear-gradient(90deg,rgba(var(--ia293-rgb),.14),rgba(var(--ia293-rgb2),.04))!important;border-color:rgba(var(--ia293-rgb),.18)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-table tr.me td:first-child:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:var(--ia293-b)!important;box-shadow:inset 3px 0 0 var(--ia293-a)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-trophy-group:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  background:radial-gradient(circle at 50% 0,rgba(var(--ia293-rgb2),.07),transparent 46%),linear-gradient(180deg,rgba(10,26,39,.95),rgba(5,14,23,.985))!important;
  border-color:rgba(var(--ia293-rgb2),.18)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-trophy-group h4:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:var(--ia293-b)!important}

/* Story/status/timeline injected around renderDash: restore their native semantic colors. */
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-v200-strip:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  background:linear-gradient(100deg,rgba(6,28,44,.96),rgba(9,19,31,.98))!important;
  border-color:rgba(var(--ia293-rgb),.25)!important;
  color:#fff!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-v200-strip small:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:#86aabd!important;text-shadow:0 1px 2px rgba(0,0,0,.78)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-v200-strip b:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.78)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-v200-strip>em:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:var(--ia293-b)!important;text-shadow:0 1px 2px rgba(0,0,0,.78)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-v58-dock-label b:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:var(--ia293-a)!important;text-shadow:0 0 10px rgba(var(--ia293-rgb),.14)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-v58-dock-label small:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:#8faebe!important;text-shadow:0 1px 2px rgba(0,0,0,.78)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-v58-icon:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){border-color:rgba(var(--ia293-rgb),.26)!important;background:linear-gradient(160deg,rgba(13,37,54,.98),rgba(6,18,29,.98))!important;color:#f4fbff!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-v61-context small:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){color:var(--ia293-b)!important}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .career-v61-week.current .career-v61-week-btn:not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){background:linear-gradient(135deg,var(--ia293-b),var(--ia293-a))!important;color:#15202a!important;border-color:rgba(var(--ia293-rgb2),.82)!important;text-shadow:none!important}

/* Buttons and form controls on the dashboard stay Career controls, not global skin controls. */
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) :is(.btn,button:not(.ia-navbar-theme-trigger):not(.mode-nav-item):not(#modeNavHome)):not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  border-color:rgba(var(--ia293-rgb),.28)!important;
  background:linear-gradient(180deg,#12354d,#0a2234)!important;
  color:#f4fbff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 5px 14px rgba(0,0,0,.18)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.78)!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) .btn:not(.btn-ghost):not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E#iaV376F#iaV376G){
  border-color:rgba(var(--ia293-rgb2),.50)!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--ia293-b) 32%,#18222b),color-mix(in srgb,var(--ia293-b) 14%,#0c1821))!important;
  color:#fff!important;
}
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea):not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E){
  background:#08192a!important;color:#fff!important;border-color:rgba(var(--ia293-rgb),.24)!important;text-shadow:none!important;
}

/* Final anti-leak: light/mixed theme contrast registries must not recolor the
   main dashboard's native dark UI.  Keep this intentionally scoped to renderDash. */
body[data-ia-ui-skin] #screen-career #careerRoot.ia293-team-theme:has(.career-dashboard-grid) :is(
  .career-head,.career-panel,.career-v58-dock,.career-v61-season-timeline,.career-stat,.career-attr,.career-plan,
  .career-trophy-group,.career-table,.career-matchbox,.career-market-status,.career-effect,.career-club-trait,
  .career-next-opponent,.career-v200-strip,.career-v40-quick
) :is(h1,h2,h3,h4,h5,h6,b,strong,label,legend,a,button,p,span,small,em,td,th):not(#iaV376A#iaV376B#iaV376C#iaV376D#iaV376E#iaV376F){
  text-shadow:0 1px 2px rgba(0,0,0,.78)!important;
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* =====================================================================
   InazumArcade v377 · COMPLETE THEME COVERAGE + READABILITY
   Static CSS only. No observers, no layout/hitbox changes, no gameplay changes.
   The last-layer selectors deliberately have high specificity so legacy hardcoded
   navy/white rules cannot win over the selected customization category.
   ===================================================================== */

/* ---------------------------------------------------------------------
   INTERFACE · global information / encyclopedia families
   --------------------------------------------------------------------- */
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#ffInfoOverlay .ff-info-modal,#iaModeEncyclopedia .ia-mode-ency-panel,#careerEncyclopedia .career-ency-modal,#bossRushEncyclopedia .br-ency-modal,#bossRushEncyclopedia .br-v4-ency-modal,#iaIdleHQOverlay .ia-idle-modal){
  background:var(--ia-ui-surface)!important;
  border-color:var(--ia-ui-border)!important;
  color:var(--ia-ui-text)!important;
  box-shadow:0 24px 70px rgba(0,0,0,.45)!important;
}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#ffInfoOverlay .ff-info-head,#iaModeEncyclopedia .ia-mode-ency-head,#careerEncyclopedia .career-ency-head,#bossRushEncyclopedia .br-ency-head,#iaIdleHQOverlay .ia-idle-modal-head){
  background:var(--ia-ui-deep,var(--ia-ui-surface-2))!important;
  border-color:var(--ia-ui-border)!important;
  color:var(--ia-ui-deep-text,var(--ia-ui-btn-text))!important;
}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#ffInfoOverlay .ff-info-head,#iaModeEncyclopedia .ia-mode-ency-head,#careerEncyclopedia .career-ency-head,#bossRushEncyclopedia .br-ency-head,#iaIdleHQOverlay .ia-idle-modal-head)
:is(h1,h2,h3,h4,b,strong,span,label){color:var(--ia-ui-deep-text,var(--ia-ui-btn-text))!important;text-shadow:0 1px 2px rgba(0,0,0,.62)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#ffInfoOverlay .ff-info-head,#iaModeEncyclopedia .ia-mode-ency-head,#careerEncyclopedia .career-ency-head,#bossRushEncyclopedia .br-ency-head,#iaIdleHQOverlay .ia-idle-modal-head)
:is(p,small,.profile-sub,.ia-mode-ency-note){color:var(--ia-ui-deep-muted,var(--ia-ui-muted))!important;text-shadow:0 1px 2px rgba(0,0,0,.55)!important}

/* Every encyclopedia uses the Interface skin, including FF/FFI/Online/Quiz,
   Career and BossRush. Cards use the input material because it remains readable
   on both pale and dark palettes. */
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#iaModeEncyclopedia,#careerEncyclopedia,#bossRushEncyclopedia)
:is(.ia-mode-ency-section,.ia-mode-ency-card,.ia-mode-ency-callout,.ia-team-chip,.career-ency-section,.career-ency-card,.br-ency-section,.br-ency-item,.br-v4-ency-card,.br-v4-ency-callout,.br-v4-ency-intro){
  background:var(--ia-ui-input)!important;
  border-color:var(--ia-ui-border)!important;
  color:var(--ia-ui-input-text)!important;
  text-shadow:var(--ia-ui-shadow,var(--ia-custom-text-shadow))!important;
}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#iaModeEncyclopedia,#careerEncyclopedia,#bossRushEncyclopedia)
:is(.ia-mode-ency-section,.ia-mode-ency-card,.ia-mode-ency-callout,.ia-team-chip,.career-ency-section,.career-ency-card,.br-ency-section,.br-ency-item,.br-v4-ency-card,.br-v4-ency-callout,.br-v4-ency-intro)
:is(h1,h2,h3,h4,h5,b,strong,span,p,small,li,td,th,em){color:var(--ia-ui-input-text)!important;text-shadow:var(--ia-ui-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#iaModeEncyclopedia,#careerEncyclopedia,#bossRushEncyclopedia)
:is(.ia-mode-ency-section,.career-ency-section,.br-ency-section,.br-v4-ency-card) :is(h3,h4,.ia-team-group-title,.br-ency-tag){color:var(--ia-ui-accent)!important}

/* Global “Come funzionano le modalità” / Info sections. */
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#ffInfoOverlay :is(.info-mode-section,.info-note,.code-box){background:var(--ia-ui-input)!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-input-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#ffInfoOverlay :is(.info-mode-section,.info-note,.code-box) :is(h1,h2,h3,h4,b,strong,p,span,li,small,label,code){color:var(--ia-ui-input-text)!important;text-shadow:var(--ia-ui-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#ffInfoOverlay .info-mode-section h4{color:var(--ia-ui-accent)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#ffInfoOverlay,#iaModeEncyclopedia,#careerEncyclopedia,#bossRushEncyclopedia,#iaIdleHQOverlay)
:is(button,.btn,.ff-info-close,.ia-mode-ency-close,.br-ency-close,.ia-idle-close){background:var(--ia-ui-btn)!important;color:var(--ia-ui-btn-text)!important;border-color:var(--ia-ui-border)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#ffInfoOverlay,#iaModeEncyclopedia,#careerEncyclopedia,#bossRushEncyclopedia,#iaIdleHQOverlay)
:is(input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea){background:var(--ia-ui-input)!important;color:var(--ia-ui-input-text)!important;border-color:var(--ia-ui-border)!important;text-shadow:none!important}

/* ---------------------------------------------------------------------
   INTERFACE · Training Ground. Field artwork stays untouched; every UI card,
   tab, record, project and statistic is themed.
   --------------------------------------------------------------------- */
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#iaIdleHQOverlay :is(.ia-idle-tabs,.ia-idle-card,.ia-idle-auto-box,.ia-idle-item,.ia-idle-project,.ia-idle-stats>div,.ia-idle-records>div,.ia-idle-trophy,.ia-idle-division,.ia-idle-prestige,.ia-idle-permanent-note,.ia-idle-log>div){background:var(--ia-ui-input)!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-input-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#iaIdleHQOverlay :is(.ia-idle-card,.ia-idle-auto-box,.ia-idle-item,.ia-idle-project,.ia-idle-stats>div,.ia-idle-records>div,.ia-idle-trophy,.ia-idle-division,.ia-idle-prestige,.ia-idle-permanent-note,.ia-idle-log>div)
:is(h1,h2,h3,h4,b,strong,p,span,small,em,label){color:var(--ia-ui-input-text)!important;text-shadow:var(--ia-ui-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#iaIdleHQOverlay .ia-idle-tabs button{background:var(--ia-ui-btn)!important;color:var(--ia-ui-btn-text)!important;border-color:var(--ia-ui-border)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#iaIdleHQOverlay .ia-idle-tabs button.active{outline-color:var(--ia-ui-accent)!important;border-color:var(--ia-ui-accent)!important}

/* ---------------------------------------------------------------------
   INTERFACE · BossRush shell/choice/result supporting panels.
   Match presentation itself is handled by the Match category below.
   --------------------------------------------------------------------- */
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushOverlay #bossRushShell{background:var(--ia-ui-surface)!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushShell :is(.br-choice-content,.bossrush-cardpanel,.bossrush-choice,.br-entry-panel,.br-entry-ritual,.br-entry-footer-card,.br-endless-record,.brx-runbox,.brx-team,.brx-panel,.brx-sidebar,.br-v198-artifact-choice,.br-v199-contract-choice,.br-endless-contract-detail,.br-endless-history-card){background:var(--ia-ui-input)!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-input-text)!important}

body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushShell :is(.brx-hero,.brx-event-card,.brx-action-card){
  border-color:var(--ia-ui-border)!important;
}

body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushShell :is(.br-choice-content,.bossrush-cardpanel,.bossrush-choice,.br-entry-panel,.br-entry-ritual,.br-entry-footer-card,.br-endless-record,.brx-runbox,.brx-hero,.brx-event-card,.brx-team,.brx-action-card,.brx-card,.br-v198-artifact-choice,.br-v199-contract-choice,.br-endless-contract-detail,.br-endless-history-card)
:is(h1,h2,h3,h4,h5,b,strong,p,span,small,em,label){color:var(--ia-ui-input-text)!important;text-shadow:var(--ia-ui-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushShell :is(.bossrush-brand,.bossrush-kicker,.br-choice-sub){color:var(--ia-ui-text)!important;text-shadow:var(--ia-ui-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushShell :is(.bossrush-result-actions button,.br-choice-content button,.bossrush-choice button){background:var(--ia-ui-btn)!important;color:var(--ia-ui-btn-text)!important;border-color:var(--ia-ui-border)!important}

/* ---------------------------------------------------------------------
   INTERFACE · FF Online lobby/rules/builder. This was hardcoded navy.
   The rule rail intentionally uses the theme's deep material, while status
   cards use the readable input material.
   --------------------------------------------------------------------- */
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-lobby :is(.ia275-online-rules,.ia278-online-builder-rule){background:var(--ia-ui-deep,var(--ia-ui-surface-2))!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-deep-text,var(--ia-ui-btn-text))!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-lobby :is(.ia275-online-rules,.ia278-online-builder-rule) :is(h1,h2,h3,h4,b,strong,label,span){color:var(--ia-ui-deep-text,var(--ia-ui-btn-text))!important;text-shadow:0 1px 2px rgba(0,0,0,.65)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-lobby :is(.ia275-online-rules,.ia278-online-builder-rule) :is(p,small){color:var(--ia-ui-deep-muted,var(--ia-ui-muted))!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-lobby .ia275-online-rule-rail>button{background:var(--ia-ui-btn)!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-btn-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-lobby .ia275-online-rule-rail>button :is(b,strong,span){color:var(--ia-ui-btn-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-lobby .ia275-online-rule-rail>button.active{border-color:var(--ia-ui-accent)!important;box-shadow:inset 0 -2px 0 var(--ia-ui-accent)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-lobby .ia275-online-rule-status{background:var(--ia-ui-input)!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-input-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-lobby .ia275-online-rule-status :is(b,strong,span,small,em){color:var(--ia-ui-input-text)!important;text-shadow:var(--ia-ui-shadow,var(--ia-custom-text-shadow))!important}

/* ---------------------------------------------------------------------
   INTERFACE · Galaxy. Keep map/pitch art intact; theme the chrome/HUD/data UI.
   --------------------------------------------------------------------- */
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#galaxyDominationOverlay :is(.gd-sector-status,.gd-controlled-hud,.gd-match-side,.gd-panel,.gd-control-card,.gd-env-card,.gd-feed-card,.gd-mission-card,.gd-squad-box,.gd-guide-section,.gd-honors-shell,.gd-scout-terminal,.gd-scout-trial,.gd-scout-pack,.gd-physical-pack,.gd-chrono-brief,.gd-chrono-brief-card,.gd-rift-tier,.gd-result-card,.gd275-loadouts,.gd275-loadout,.gd275-free-card,.gd275-overlord-warning,.gd275-overlord-mission){background:var(--ia-ui-input)!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-input-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#galaxyDominationOverlay :is(.gd-sector-status,.gd-controlled-hud,.gd-match-side,.gd-panel,.gd-control-card,.gd-env-card,.gd-feed-card,.gd-mission-card,.gd-squad-box,.gd-guide-section,.gd-honors-shell,.gd-scout-terminal,.gd-scout-trial,.gd-scout-pack,.gd-physical-pack,.gd-chrono-brief,.gd-chrono-brief-card,.gd-rift-tier,.gd-result-card,.gd275-loadouts,.gd275-loadout,.gd275-free-card,.gd275-overlord-warning,.gd275-overlord-mission)
:is(h1,h2,h3,h4,b,strong,p,span,small,em,label,td,th){color:var(--ia-ui-input-text)!important;text-shadow:var(--ia-ui-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#galaxyDominationOverlay .gd-stat-pill{background:var(--ia-ui-deep,var(--ia-ui-surface-2))!important;border-color:var(--ia-ui-border)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#galaxyDominationOverlay .gd-stat-pill b{color:var(--ia-ui-deep-text,var(--ia-ui-btn-text))!important;text-shadow:0 1px 2px rgba(0,0,0,.65)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#galaxyDominationOverlay .gd-stat-pill span{color:var(--ia-ui-deep-muted,var(--ia-ui-muted))!important;text-shadow:0 1px 2px rgba(0,0,0,.55)!important}

/* ---------------------------------------------------------------------
   MATCHES · standard FF/FFI/Online/Career simulations, penalties, live race,
   recap and BossRush interactive/result presentation.
   --------------------------------------------------------------------- */
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.match-modal{background:var(--ia-match-bg)!important;border-color:var(--ia-match-border)!important;color:var(--ia-match-text)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.match-modal :is(.mm-team,.mm-clockbox,.mm-log,.mm-live-column,.mm-footer,.mm-penalties){background:var(--ia-match-panel)!important;border-color:var(--ia-match-border)!important;color:var(--ia-match-text)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.match-modal :is(.mm-scorer-row,.mm-pen-kick,.mm-status,.mm-empty,.ffi72-live-race){color:var(--ia-match-text)!important;border-color:var(--ia-match-border)!important;text-shadow:var(--ia-match-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.match-modal :is(.mm-scorer-minute,.mm-empty,.mm-phase){color:var(--ia-match-muted)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.match-modal :is(.mm-live-title,.mm-pen-title){background:var(--ia-match-deep,var(--ia-match-score))!important;color:#fff!important;border-color:var(--ia-match-border)!important;text-shadow:0 1px 2px rgba(0,0,0,.72)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#mmOverlay .ffi72-live-race{background:var(--ia-match-panel)!important;border-color:var(--ia-match-border)!important;color:var(--ia-match-text)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#mmOverlay .ffi72-live-race :is(b,strong,span){color:var(--ia-match-text)!important;text-shadow:var(--ia-match-shadow,var(--ia-custom-text-shadow))!important}

body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.ia-v99-match-recap,.tournament-victory-card .ia-v99-match-recap){background:var(--ia-match-panel)!important;border-color:var(--ia-match-border)!important;color:var(--ia-match-text)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.ia-v99-match-recap :is(.ia-v99-recap-item){background:var(--ia-match-column,var(--ia-match-deep))!important;border-color:var(--ia-match-border)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.ia-v99-match-recap :is(h1,h2,h3,h4,b,strong,span){color:var(--ia-match-text)!important;text-shadow:var(--ia-match-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.ia-v99-match-recap :is(p,small){color:var(--ia-match-muted)!important}

body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushMatchOverlay .br-match-card{background:var(--ia-match-bg)!important;border-color:var(--ia-match-border)!important;color:var(--ia-match-text)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushMatchOverlay :is(.br-match-team,.br-match-odds,.br-match-event,.br-match-decision){background:var(--ia-match-panel)!important;border-color:var(--ia-match-border)!important;color:var(--ia-match-text)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushMatchOverlay :is(.br-match-card,.br-match-team,.br-match-odds,.br-match-event,.br-match-decision) :is(h1,h2,h3,h4,b,strong,span,p,label){color:var(--ia-match-text)!important;text-shadow:var(--ia-match-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushMatchOverlay :is(.br-match-title,.br-match-clock,.br-match-team small){color:var(--ia-match-muted)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushShell .bossrush-result{background:var(--ia-match-bg)!important;border-color:var(--ia-match-border)!important;color:var(--ia-match-text)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushShell .bossrush-result :is(.scorers,.br-match-choice-summary,.br-challenge-result){background:var(--ia-match-panel)!important;border-color:var(--ia-match-border)!important;color:var(--ia-match-text)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#bossRushShell .bossrush-result :is(h1,h2,h3,h4,b,strong,span,p,small,em){color:var(--ia-match-text)!important;text-shadow:var(--ia-match-shadow,var(--ia-custom-text-shadow))!important}

/* ---------------------------------------------------------------------
   PROFILE · home profile, Achievements, Hall of Fame, Progression,
   Season Score/weekly panels. Frame artwork remains untouched.
   --------------------------------------------------------------------- */
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#profileModalRoot .profile-panel{background:var(--ia-profile-bg)!important;border-color:var(--ia-profile-border)!important;color:var(--ia-profile-text)!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#profileModalRoot .profile-head{background:var(--ia-profile-panel)!important;border-color:var(--ia-profile-border)!important;color:var(--ia-profile-text)!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#profileModalRoot .profile-head :is(h1,h2,h3,b,strong,span){color:var(--ia-profile-text)!important;text-shadow:var(--ia-profile-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#profileModalRoot .profile-head :is(p,small,.profile-sub){color:var(--ia-profile-muted)!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#profileModalRoot :is(.achievement-card,.leader-row,.ia-progress-grid>div,.ia-progress-hero,.ia-progress-level,.ia-hall-hero,.ia-hall-card,.ia-hall-save-note,.ia99-recent-row,.ia-mastery-card,.ia-mastery-section,.ia-v110-season,.ia-v110-season-card,.ia99-profile-collection,.ia99-choice-card,.ia99-mode-card,.ia-v180-custom-guide,.ia-sp-panel,.ia-sp-hall-grid>div,.ia-season-recap-card,.ia-season-recap-meta>span,.ia-ar-total,.ia-ar-mode,.ia-ar-season-banner,.ia-ar-history-row){background:var(--ia-profile-panel)!important;border-color:var(--ia-profile-border)!important;color:var(--ia-profile-text)!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#profileModalRoot :is(.achievement-card,.leader-row,.ia-progress-grid>div,.ia-progress-hero,.ia-progress-level,.ia-hall-hero,.ia-hall-card,.ia-hall-save-note,.ia99-recent-row,.ia-mastery-card,.ia-mastery-section,.ia-v110-season,.ia-v110-season-card,.ia99-profile-collection,.ia99-choice-card,.ia99-mode-card,.ia-v180-custom-guide,.ia-sp-panel,.ia-sp-hall-grid>div,.ia-season-recap-card,.ia-season-recap-meta>span,.ia-ar-total,.ia-ar-mode,.ia-ar-season-banner,.ia-ar-history-row)
:is(h1,h2,h3,h4,b,strong,span,p,label,em){color:var(--ia-profile-text)!important;text-shadow:var(--ia-profile-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#profileModalRoot :is(.achievement-card,.leader-row,.ia-progress-grid>div,.ia-progress-hero,.ia-progress-level,.ia-hall-hero,.ia-hall-card,.ia-hall-save-note,.ia99-recent-row,.ia-mastery-card,.ia-mastery-section,.ia-v110-season,.ia-v110-season-card,.ia99-profile-collection,.ia99-choice-card,.ia99-mode-card,.ia-v180-custom-guide,.ia-sp-panel,.ia-sp-hall-grid>div,.ia-season-recap-card,.ia-season-recap-meta>span,.ia-ar-total,.ia-ar-mode,.ia-ar-season-banner,.ia-ar-history-row)
:is(small,.profile-sub,.muted,.meta){color:var(--ia-profile-muted)!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#profileModalRoot :is(.ia-ar-season-time,.ia-ar-score,.achievement-status,.leader-rank,.leader-ach,.ia-ar-mode strong){color:var(--ia-profile-accent)!important;text-shadow:none!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.ia-profile-panel,#profileModalRoot .profile-panel) .ia-profile-stat strong{color:var(--ia-profile-text)!important;text-shadow:var(--ia-profile-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.ia-profile-panel,#profileModalRoot .profile-panel) .ia-profile-stat span{color:var(--ia-profile-muted)!important;text-shadow:var(--ia-profile-shadow,var(--ia-custom-text-shadow))!important}

/* The Season Score/weekly leaderboard can also be injected without a descendant
   profile-panel wrapper; keep the profile category authoritative there. */
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.ia-ar-panel,.ia-sp-panel){background:var(--ia-profile-bg)!important;border-color:var(--ia-profile-border)!important;color:var(--ia-profile-text)!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.ia-ar-panel,.ia-sp-panel) :is(.ia-ar-total,.ia-ar-mode,.ia-ar-season-banner,.leader-row,.ia-ar-history-row){background:var(--ia-profile-panel)!important;border-color:var(--ia-profile-border)!important;color:var(--ia-profile-text)!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.ia-ar-panel,.ia-sp-panel) :is(h1,h2,h3,h4,b,strong,p,span,label){color:var(--ia-profile-text)!important;text-shadow:var(--ia-profile-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.ia-ar-panel,.ia-sp-panel) :is(small,.profile-sub,.ia-ar-name-help,.ia-ar-list-head,.ia-ar-note){color:var(--ia-profile-muted)!important}
body[data-ia-profile-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.ia-ar-panel,.ia-sp-panel) :is(.ia-ar-season-time,.ia-ar-score,.ia-ar-mode strong){color:var(--ia-profile-accent)!important;text-shadow:none!important}

/* ---------------------------------------------------------------------
   BRACKET / FF Online competition surfaces. Keep this after Interface rules,
   so an explicitly selected bracket skin owns actual tournament/bracket cards.
   --------------------------------------------------------------------- */
body[data-ia-bracket-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#screen-bracket,.ia-bracket-shell,.ffi72-world-stage,.ffi72-world-grid,.ff95-road-shell,.ff95-bracket-shell){background:var(--ia-br-bg)!important;border-color:var(--ia-br-border)!important;color:var(--ia-br-text)!important}
body[data-ia-bracket-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#screen-bracket,.ia-bracket-shell,.ffi72-world-stage,.ffi72-world-grid,.ff95-road-shell,.ff95-bracket-shell)
:is(.bmatch,.bracket-match,.ffi72-world-card,.ffi72-news-item,.ffi72-expectation,.ffi72-leader,.ffi72-broadcast-card,.ffi72-draw-card,.ffi72-draw-match,.ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context){background:var(--ia-br-card)!important;border-color:var(--ia-br-border)!important;color:var(--ia-br-text)!important}
body[data-ia-bracket-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#screen-bracket,.ia-bracket-shell,.ffi72-world-stage,.ffi72-world-grid,.ff95-road-shell,.ff95-bracket-shell)
:is(h1,h2,h3,h4,b,strong,span,p,small,label,td,th){color:var(--ia-br-text)!important;text-shadow:var(--ia-br-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-bracket-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#screen-bracket,.ia-bracket-shell,.ffi72-world-stage,.ffi72-world-grid,.ff95-road-shell,.ff95-bracket-shell) :is(.muted,.meta,small){color:var(--ia-br-muted)!important}

/* ---------------------------------------------------------------------
   SAFETY: selected theme controls its own foreground. This specifically fixes
   white-on-paper and pale-yellow-on-paper remnants without touching classic.
   --------------------------------------------------------------------- */
body[data-ia-ui-tone="light"]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#ffInfoOverlay .rules,#iaModeEncyclopedia .ia-mode-ency-panel,#careerEncyclopedia .career-ency-modal,#bossRushEncyclopedia .br-ency-modal,#iaIdleHQOverlay .ia-idle-modal,#bossRushShell)
>:is(h1,h2,h3,h4,p,small,span,b,strong){color:var(--ia-ui-text)!important;text-shadow:var(--ia-ui-shadow)!important}
body[data-ia-profile-tone="light"]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.ia-profile-panel,#profileModalRoot .profile-panel,.ia-ar-panel,.ia-sp-panel)
:is(.ia-profile-stat strong,.ia-profile-stat span,.ia-ar-season-time){text-shadow:none!important}

/* v377 remains static CSS: intentionally no transitions/animations added. */

/* Small semantic accents kept readable after the generic coverage pass. */
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g) #mmOverlay .ffi72-live-race b{color:var(--ia-match-accent)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g) #bossRushShell .bossrush-result .score{color:var(--ia-match-text)!important;text-shadow:var(--ia-match-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g) #bossRushShell .bossrush-result .big{color:var(--ia-match-accent)!important}

/* =====================================================================
   v377 registry expansion: replace the old v375 "preserve the navy island"
   strategy with actual palette materials. This covers families that were not
   present in the latest screenshots but share the same hardcoded-color pattern.
   ===================================================================== */

/* IndovInazuma: classic, marathon, daily/challenge and reconnect/lab cards. */
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-indovinazuma :is(
  .ia279-quiz-control,.ia279-control-block,.ia279-segments>button,.ia279-sudden,.ia279-token-row,
  .ia265-marathon-panel,.ia265-mara-head,.ia269-mara-intro,.ia269-mara-feedback,.ia265-mara-stats,.ia265-mara-suggestions,
  .ia265-quiz-options,.ia265-quiz-theme,.ia265-choice,.ia265-challenge-label,.ia265-daily-share,
  .ia275-daily-history,.ia275-ch-board,.ia275-board-ring,.ia275-mara-report,.ia275-quiz-difficulty,
  .ia275-disconnected,.ia275-reconnect-note,.ia276-feature-preview,.ia276-lab-card,.ia99-quiz-lab,
  .ig-mode-btn,.ig-suggestions,.ig-suggestion-item,.ig-cell:not(.correct):not(.wrong),.ig-board,.ig-row,.ig-result,.ig-help-card,.ig-guess-row,.ig-popup-card
){background:var(--ia-ui-input)!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-input-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-indovinazuma :is(
  .ia279-quiz-control,.ia279-control-block,.ia279-segments>button,.ia279-sudden,.ia279-token-row,.ia265-marathon-panel,.ia265-mara-head,
  .ia269-mara-intro,.ia269-mara-feedback,.ia265-mara-stats,.ia265-mara-suggestions,.ia265-choice,.ia275-daily-history,.ia275-ch-board,
  .ia275-mara-report,.ia275-quiz-difficulty,.ia276-feature-preview,.ia276-lab-card,.ia99-quiz-lab,.ig-mode-btn,.ig-suggestions,
  .ig-suggestion-item,.ig-cell:not(.correct):not(.wrong),.ig-board,.ig-row,.ig-result,.ig-help-card,.ig-guess-row,.ig-popup-card
) :is(h1,h2,h3,h4,h5,b,strong,label,legend,span,em,a,p,small,button){color:var(--ia-ui-input-text)!important;text-shadow:var(--ia-ui-shadow,var(--ia-custom-text-shadow))!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-indovinazuma :is(.ia279-quiz-title,.ia265-mara-head){color:var(--ia-ui-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-indovinazuma :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea){background:var(--ia-ui-input)!important;color:var(--ia-ui-input-text)!important;border-color:var(--ia-ui-border)!important;text-shadow:none!important}

/* FF / FFI contextual cards, scouting, Road to Glory, event/intel strips. */
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.global-menu-screen :is(
  .ff100-context,.ff100-context>div,.ff72-tournament-hub,.ff72-hub-main,.ff72-hub-card,.ff72-scout-card,.ff72-summary-stat,.ff72-plan,.ff72-end-summary,.ff84-end-actions,
  .ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context,.ffi72-news-item,.ffi72-expectation,.ffi72-leader,.ffi72-broadcast-card,.ffi72-draw-card,.ffi72-draw-match,
  .ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-star-choice,.ffi95-plan-card,.ffi95-plan-choice,.ff-event-card,.ff-event-result,.ff-event-brief,
  .ffi-command-intel,.ffi-command-stats>div,.ffi-hub-card
){background:var(--ia-ui-input)!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-input-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.global-menu-screen :is(
  .ff100-context,.ff100-context>div,.ff72-tournament-hub,.ff72-hub-main,.ff72-hub-card,.ff72-scout-card,.ff72-summary-stat,.ff72-plan,.ff72-end-summary,.ff84-end-actions,
  .ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context,.ffi72-news-item,.ffi72-expectation,.ffi72-leader,.ffi72-broadcast-card,.ffi72-draw-card,.ffi72-draw-match,
  .ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-star-choice,.ffi95-plan-card,.ffi95-plan-choice,.ff-event-card,.ff-event-result,.ff-event-brief,
  .ffi-command-intel,.ffi-command-stats>div,.ffi-hub-card
) :is(h1,h2,h3,h4,h5,b,strong,label,legend,span,em,a,p,small,td,th,.bname,.bscore,.ta,.tb,.score){color:var(--ia-ui-input-text)!important;text-shadow:var(--ia-ui-shadow,var(--ia-custom-text-shadow))!important}

/* Builder/lobby: all analogous hardcoded navy cards, not only the rule rail. */
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#screen-builder,#screen-lobby) :is(
  .ff72-builder-strip,.ffi72-builder-strip,.ff72-tour-chip,.ffi72-tour-chip,.ff72-identity,.ffi72-identity,
  .ff72-source-card,.ff72-source-power,.ffi72-source-power,.ia274-rule,.ia274-pack,.ia274-draft-status,.ia99-online-status,.online-status,
  .code-box.private-code-box,.private-code-eye,.timer,.role-tab,.player-row,.roster-mini .slot,.intl-team-card,.intl-player-row,.intl-role-overall,
  .intl-selected-banner,.selected-player,.team-card,.team-row,.builder-summary,.builder-card,.lobby-card,.lobby-row
){background:var(--ia-ui-input)!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-input-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(#screen-builder,#screen-lobby) :is(
  .ff72-builder-strip,.ffi72-builder-strip,.ff72-tour-chip,.ffi72-tour-chip,.ff72-identity,.ffi72-identity,
  .ff72-source-card,.ff72-source-power,.ffi72-source-power,.ia274-rule,.ia274-pack,.ia274-draft-status,.ia99-online-status,.online-status,
  .code-box.private-code-box,.private-code-eye,.timer,.role-tab,.player-row,.roster-mini .slot,.intl-team-card,.intl-player-row,.intl-role-overall,
  .intl-selected-banner,.selected-player,.team-card,.team-row,.builder-summary,.builder-card,.lobby-card,.lobby-row
) :is(h1,h2,h3,h4,h5,b,strong,label,span,small,em,a,p){color:var(--ia-ui-input-text)!important;text-shadow:var(--ia-ui-shadow,var(--ia-custom-text-shadow))!important}

/* Career: theme non-dashboard screens and transient modals. The v376 main
   dashboard remains excluded so club/team identity stays authoritative. */
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
#screen-career #careerRoot:not(:has(.career-dashboard-grid)) :is(
  .career-head,.career-v58-dock,.career-v61-season-timeline,.career-v61-week-btn,.career-v61-week-tooltip,.career-stat,.career-attr,.career-plan,
  .career-trophy-group,.career-table,.career-offer,.career-matchbox,.career-effect,.career-club-trait,.career-story-card,.career-story-context,.career-story-choice,
  .career-talent-card,.career-talent-option,.career-big-match,.career-penalty-card,.career-penalty-team,.career-reset-card,.career-v44-tournament-card,
  .career-v200-strip,.career-v200-summary,.career-v200-story-card,.career-v200-story-context,.career-v200-story-choices>button,.career-v275-ambition-card,
  .career-v275-ambition-panel,.career-v306-card,.career-v306-memory,.career-v306-memory-field,.career-v306-resolution,.career-v306-secret-card,
  .career-v306-debug-end,.career-intl-group,.career-intl-match,.career-bracket-match,.career-bracket-overlay-card,.career-v40-quick,.career-special-training,.career-tag
){background:var(--ia-ui-input)!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-input-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.career-award-card,.career-event-card,.career-special-popup-card){background:var(--ia-ui-surface)!important;border-color:var(--ia-ui-border)!important;color:var(--ia-ui-text)!important}
body[data-ia-ui-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.career-award-card,.career-event-card,.career-special-popup-card) :is(h1,h2,h3,h4,b,strong,p,span,small,em,label){color:var(--ia-ui-text)!important;text-shadow:var(--ia-ui-shadow,var(--ia-custom-text-shadow))!important}

/* Career live match is presentation, therefore Match skin wins over UI. */
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.career-match-overlay .career-live{background:var(--ia-match-bg)!important;border-color:var(--ia-match-border)!important;color:var(--ia-match-text)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.career-match-overlay :is(.career-feed,.career-moment,.career-effect){background:var(--ia-match-panel)!important;border-color:var(--ia-match-border)!important;color:var(--ia-match-text)!important}
body[data-ia-match-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
.career-match-overlay :is(.career-live,.career-feed,.career-moment,.career-effect) :is(h1,h2,h3,h4,b,strong,p,span,small,em,label,div){color:var(--ia-match-text)!important;text-shadow:var(--ia-match-shadow,var(--ia-custom-text-shadow))!important}

/* FFI ranking/group-stage variants and Road-to-Glory tournament cards belong
   to the bracket category when it is selected. */
body[data-ia-bracket-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.ffi97-stage,.ffi72-world-stage,.ff95-road-shell,.ff95-bracket-shell) :is(
  .ffi97-hero-card,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match,.ffi72-news-item,.ffi72-expectation,.ffi72-leader,
  .ffi72-broadcast-card,.ffi72-draw-card,.ffi72-draw-match,.ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context
){background:var(--ia-br-card)!important;border-color:var(--ia-br-border)!important;color:var(--ia-br-text)!important}
body[data-ia-bracket-skin]:not(#ia377a#ia377b#ia377c#ia377d#ia377e#ia377f#ia377g)
:is(.ffi97-stage,.ffi72-world-stage,.ff95-road-shell,.ff95-bracket-shell) :is(
  .ffi97-hero-card,.ffi97-group-card,.ffi97-fixtures-card,.ffi97-bottom,.ffi97-match,.ffi72-news-item,.ffi72-expectation,.ffi72-leader,
  .ffi72-broadcast-card,.ffi72-draw-card,.ffi72-draw-match,.ff95-game-card,.ff95-role-box,.ff95-rival-clash,.ff98-world-context
) :is(h1,h2,h3,h4,b,strong,p,span,small,label,td,th,.ta,.tb,.score){color:var(--ia-br-text)!important;text-shadow:var(--ia-br-shadow,var(--ia-custom-text-shadow))!important}
