/* =====================================================================
   InazumArcade v372 · hard cursor + automatic contrast guard
   Visual-only: no geometry, hitboxes or gameplay changes.
   ===================================================================== */

/* Runtime cursor rules are injected by js/155 with embedded PNG bytes. */

/* Exact text correction markers. The impossible double-ID inside :not() is
   only a specificity booster: it matches normally but beats older !important
   skin rules that contain screen IDs. */
[data-ia-v372-fg="light"]:not(#iaV372Never#iaV372Never2){
  color:#f7fbff!important;
  text-shadow:0 1px 2px rgba(0,0,0,.88)!important;
}
[data-ia-v372-fg="light-muted"]:not(#iaV372Never#iaV372Never2){
  color:#c8d8e1!important;
  text-shadow:0 1px 2px rgba(0,0,0,.86)!important;
}
[data-ia-v372-fg="dark"]:not(#iaV372Never#iaV372Never2){
  color:#15212a!important;
  text-shadow:0 1px 0 rgba(255,255,255,.72)!important;
}
[data-ia-v372-fg="dark-muted"]:not(#iaV372Never#iaV372Never2){
  color:#4d5a62!important;
  text-shadow:0 1px 0 rgba(255,255,255,.68)!important;
}
[data-ia-v372-fg^="light"]::placeholder{color:#c8d8e1!important;opacity:1!important}
[data-ia-v372-fg^="dark"]::placeholder{color:#58656d!important;opacity:1!important}

/* Surface markers do not recolor descendants by themselves; JS assigns the
   correction to each failing text element according to its nearest surface. */
[data-ia-v372-surface-tone="dark"]{--ia-v372-surface-fg:#f7fbff;--ia-v372-surface-muted:#c8d8e1}
[data-ia-v372-surface-tone="light"]{--ia-v372-surface-fg:#15212a;--ia-v372-surface-muted:#4d5a62}

/* Explicit coverage for the two real production screens reported by the user.
   These are safety nets; the automatic contrast guard also covers other screens. */
body:is([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-stat,.career-attr,.career-plan,.career-trophy-group,.career-table td,.career-table th,
 .career-matchbox,.career-next-opponent,.career-market-status,.career-effect,.career-effects-empty,
 .career-offer,.career-club-trait,.career-deep-panel,.career-intl-expanded,.career-intl-match,
 .career-bracket-match,.career-v18-condition-grid,.career-v58-popover,.career-v58-moved-panel,
 .career-v61-context,.career-v61-season-timeline,.career-v61-week-btn,.career-v61-week-tooltip,
 .career-v64-position,.career-v64-top8
):not(#iaV372Never#iaV372Never2){color:#f7fbff!important;text-shadow:0 1px 2px rgba(0,0,0,.88)!important}
body:is([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-stat,.career-attr,.career-plan,.career-trophy-group,.career-table,.career-matchbox,.career-next-opponent,.career-market-status) :is(small,p,.meta,.career-note,.career-sub):not(#iaV372Never#iaV372Never2){color:#c8d8e1!important}

body:is([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"]) .ffi97-stage :is(
 .ffi97-hero-card,.ffi97-hero-stat,.ffi97-group-card,.ffi97-table td,.ffi97-table th,.ffi97-fixtures-card,
 .ffi97-bottom,.ffi97-match,.ffi95-gamebar,.ffi95-gameitem,.ffi95-intel-card,.ffi95-plan-card,.ffi95-plan-choice
):not(#iaV372Never#iaV372Never2){color:#f7fbff!important;text-shadow:0 1px 2px rgba(0,0,0,.88)!important}
body:is([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"]) .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(small,p,.score.pending,.ffi97-fixtures-note):not(#iaV372Never#iaV372Never2){color:#c8d8e1!important}

/* Keep tactical gameplay pointer semantics untouched. */
html[data-ia-cursor-skin]:not([data-ia-cursor-skin="windows"]) #galaxyDominationOverlay :is(#gdCanvas,.gd-pitch-shell,.gd-tactical-v3 canvas,.gd-tactical-v4 canvas){cursor:crosshair!important}

/* Descendant hardening for production dark cards. This deliberately targets the
   text node element itself, so old Manga !important rules cannot win by setting
   color directly on <b>/<span>/<td>. */
body:is([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-stat,.career-attr,.career-plan,.career-trophy-group,.career-table,.career-matchbox,.career-next-opponent,.career-market-status,
 .career-effect,.career-effects-empty,.career-offer,.career-club-trait,.career-deep-panel,.career-intl-expanded,.career-intl-match,
 .career-bracket-match,.career-v18-condition-grid,.career-v58-popover,.career-v58-moved-panel,.career-v61-context,
 .career-v61-season-timeline,.career-v61-week-btn,.career-v61-week-tooltip,.career-v64-position,.career-v64-top8
) :is(h1,h2,h3,h4,h5,h6,b,strong,span,label,legend,td,em,a):not(#iaV372Never#iaV372Never2){color:#f7fbff!important;text-shadow:0 1px 2px rgba(0,0,0,.88)!important}

body:is([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"]) .ffi97-stage :is(
 .ffi97-hero-card,.ffi97-hero-stat,.ffi97-group-card,.ffi97-table,.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,em,a):not(#iaV372Never#iaV372Never2){color:#f7fbff!important;text-shadow:0 1px 2px rgba(0,0,0,.88)!important}
