/* Global MatchMaking rank badge. Keep feature-specific styles outside this component. */
.ps-rank-badge {
    display: inline-block;
    box-sizing: border-box;
    padding: 2px 8px;
    border: 0;
    border-radius: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 10px;
    font-weight: 900;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    background: #64748b;
}

.mmc-tier-glyph {
    background: #64748b;
}

/* The small ladder glyphs share the palette, not the badge geometry. */
:is(.ps-rank-badge, .mmc-tier-glyph).b-bronze {
    background: linear-gradient(135deg, #cd7f32, #8b5a2b);
}

:is(.ps-rank-badge, .mmc-tier-glyph).b-silver {
    background: linear-gradient(135deg, #a8adb5, #5b6270);
}

:is(.ps-rank-badge, .mmc-tier-glyph).b-gold {
    background: linear-gradient(135deg, #f0c420, #c49b08);
}

:is(.ps-rank-badge, .mmc-tier-glyph).b-platinum {
    background: linear-gradient(135deg, #4fd1e8, #0e7490);
}

:is(.ps-rank-badge, .mmc-tier-glyph).b-diamond {
    background: linear-gradient(135deg, #7c8cf8, #2c12d9);
}

html[data-theme='light'] .ps-rank-badge.b-gold,
html[data-theme='auto'] .ps-rank-badge.b-gold {
    color: #111;
}

@media (prefers-color-scheme: dark) {
    html[data-theme='auto'] .ps-rank-badge.b-gold {
        color: #fff;
    }
}
