/* Theme overrides for success-paired badges that fail WCAG AA (4.5:1).
   Two badge types inherit --eg-palette-success / --eg-palette-on-success:
   - .schniffel-mode-card-new-badge, scoped in GameModeSelector.razor
   - .schniffel-card-stale-bonus, scoped in eg-components.css (card age §3.3.1)
   In three themes that pair fails WCAG AA at the badge's small font size,
   so both badges get a badge-scoped correction here. Global success
   tokens stay untouched. Contrast verified against WCAG relative luminance.

   Ratios (success bg / on-success fg):
   - cozy-tabletop: #52b788 / #1b4332 = 4.48 (marginal) -> ink #133a29 = 5.10
   - dice-childish: #38b000 / #ffffff = 2.85 (fail)     -> ink #0b2400 = 5.83
   - uno:           #0f9d58 / #ffffff = 3.51 (fail)     -> bg #0b7a44 / #fff = 5.41

   Remove the stale-bonus rules together with the stale-bonus feature; the
   IsNew rules once the new modes have bedded in. */

[data-theme="cozy-tabletop"] .schniffel-mode-card-new-badge {
    color: #133a29;
}

[data-theme="dice-childish"] .schniffel-mode-card-new-badge {
    color: #0b2400;
}

[data-theme="uno"] .schniffel-mode-card-new-badge {
    background: #0b7a44;
    color: #ffffff;
}

/* Card stale-bonus badge — same success/on-success pairs, same
   corrections as the IsNew badges above: */

[data-theme="cozy-tabletop"] .schniffel-card-stale-bonus {
    color: #133a29;
}

[data-theme="dice-childish"] .schniffel-card-stale-bonus {
    color: #0b2400;
}

[data-theme="uno"] .schniffel-card-stale-bonus {
    background: #0b7a44;
    color: #ffffff;
}