/* Challenger Player Stats – frontend palette integration
 *
 * Component-owned counterpart to the former Challenger Theme bridge. The
 * existing shortcode-local layout remains authoritative; these rules connect
 * Player Stats and Hall of Fame surfaces to the shared Challenger palette.
 */

.cps,
.cps-hof {
    color: var(--challenger-on-page, var(--challenger-text, #fff)) !important;
}

.cps .cps-card,
.cps .cps-board,
.cps .cps-history,
.cps .cps-game-mobile-card,
.cps-hof .cps-hof-year,
.cps-hof .cps-hof-game-mobile-card {
    background: var(--challenger-surface, #181818) !important;
    border-color: var(--challenger-border, #333) !important;
    color: var(--challenger-on-surface, var(--challenger-text, #fff)) !important;
    -webkit-text-fill-color: currentColor !important;
}

.cps .cps-row,
.cps .cps-event,
.cps-hof .cps-hof-year {
    border-color: var(--challenger-border, #333) !important;
}

.cps .cps-league-slot,
.cps-hof .cps-hof-card {
    background: var(--challenger-inner-surface, #111) !important;
    border-color: var(--challenger-border, #333) !important;
    color: var(--challenger-on-inner-surface, var(--challenger-text, #fff)) !important;
    -webkit-text-fill-color: currentColor !important;
}

.cps .cps-game-mobile-card select,
.cps .cps-season-year select,
.cps-hof .cps-hof-game-mobile-card select {
    background: var(--challenger-surface-alt, #111) !important;
    border-color: var(--challenger-border, #444) !important;
    color: var(--challenger-on-surface-alt, var(--challenger-text, #fff)) !important;
    -webkit-text-fill-color: currentColor !important;
}

.cps .cps-game-button,
.cps .cps-hof-link,
.cps .cps-title-badge,
.cps-hof .cps-hof-game-button,
.cps-hof .cps-hof-back {
    background: var(--challenger-surface-alt, #181818) !important;
    border-color: var(--challenger-border, #444) !important;
    color: var(--challenger-on-surface-alt, var(--challenger-text, #fff)) !important;
    -webkit-text-fill-color: currentColor !important;
}

.cps .cps-muted,
.cps .cps-sub,
.cps-hof .cps-hof-muted {
    color: var(--challenger-muted, #aaa) !important;
}

.cps .cps-board .cps-league-slot,
.cps .cps-grid .cps-card,
.cps .cps-duel-grid .cps-card,
.cps-hof .cps-hof-year .cps-hof-card {
    background: var(--challenger-inner-surface, #111) !important;
    border-color: var(--challenger-border, #333) !important;
    color: var(--challenger-on-inner-surface, var(--challenger-text, #fff)) !important;
    -webkit-text-fill-color: currentColor !important;
}

.cps .cps-leaderboard-cluster,
.cps .cps-personal-cluster {
    background: var(--challenger-surface, #181818) !important;
    border-color: var(--challenger-border, #333) !important;
    color: var(--challenger-on-surface, var(--challenger-text, #fff)) !important;
    -webkit-text-fill-color: currentColor !important;
}

.cps .cps-leaderboard-cluster .cps-board,
.cps .cps-personal-cluster .cps-card {
    background: var(--challenger-inner-surface, #111) !important;
    border-color: var(--challenger-border, #333) !important;
    color: var(--challenger-on-inner-surface, var(--challenger-text, #fff)) !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none !important;
}

/* 1.1.87: muted copy inherits the text contract of its nearest surface. */
.cps,.cps-hof{--cps-soft:var(--challenger-muted-on-page,var(--challenger-muted,#aaa))}
.cps .cps-card,.cps .cps-board,.cps .cps-history,.cps .cps-game-mobile-card,.cps-hof .cps-hof-year,.cps-hof .cps-hof-game-mobile-card{--cps-soft:var(--challenger-muted-on-surface,var(--challenger-muted,#aaa))}
.cps .cps-league-slot,.cps-hof .cps-hof-card,.cps .cps-grid .cps-card,.cps .cps-duel-grid .cps-card,.cps .cps-leaderboard-cluster .cps-board,.cps .cps-personal-cluster .cps-card{--cps-soft:var(--challenger-muted-on-inner-surface,var(--challenger-muted,#aaa))}
.cps .cps-muted,.cps .cps-sub,.cps .cps-league-label,.cps-hof .cps-hof-muted,.cps-hof .cps-hof-label,.cps-hof .cps-hof-value{color:var(--cps-soft)!important;-webkit-text-fill-color:currentColor!important;opacity:1}
.cps .cps-hof-link,.cps .cps-desktop-actions .cps-hof-link,.cps-hof .cps-hof-back{background:var(--challenger-inner-surface,#181818)!important;border:1px solid var(--challenger-accent,#d92d2d)!important;color:var(--challenger-on-inner-surface,var(--challenger-text,#fff))!important;-webkit-text-fill-color:currentColor!important}
.cps .cps-badge{color:var(--challenger-on-surface-alt,var(--challenger-text,#fff))!important;-webkit-text-fill-color:currentColor!important}
.cps .cps-game-button:is(:hover,.is-active),.cps-hof .cps-hof-game-button:is(:hover,.is-active){background:var(--challenger-contrast-bg,#fff)!important;color:var(--challenger-on-contrast,var(--challenger-contrast-text,#111))!important;-webkit-text-fill-color:currentColor!important}
