.championships { margin:0 auto; }
.ch-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.ch-filters { display:flex; gap:7px; flex-wrap:wrap; }
.ch-filters button[aria-pressed=true] { background:#ffd16612; border-color:#ffd16666; color:#ffd166; }
.ch-totals { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; margin:14px 0; }
.ch-totals>div { display:flex; align-items:center; gap:6px; }
.ch-totals strong { color:#d8c49f; font-size:.95rem; font-variant-numeric:tabular-nums; }
.ch-totals span { font-size:.65rem; color:#aab5c5; }
.ch-totals p { margin-left:auto; color:#8d9bb0; font-size:.62rem; }
.ch-card { margin:12px 0; overflow:hidden; box-shadow:0 5px 16px #0003; }
.ch-card summary { display:flex; align-items:center; gap:20px; padding:16px; cursor:pointer; list-style:none; }
.ch-card summary::-webkit-details-marker { display:none; }
.ch-card summary:hover { background:#d0d9e804; }
.ch-card summary:focus-visible,.ch-game:focus-visible { outline:2px solid #ffd166; outline-offset:-3px; }
.ch-card-title { flex:1; min-width:0; }
.ch-card-title h3 { color:#e2e7ef; font-size:.9rem; font-weight:600; margin:7px 0 5px; overflow-wrap:anywhere; }
.ch-card-title>span:last-child { color:#99a6ba; font-size:.64rem; }
.ch-badge { display:inline-block; font-size:.55rem; font-weight:600; letter-spacing:.7px; padding:4px 7px; border:1px solid transparent; border-radius:4px; }
.ch-active { color:#ffd166; background:#ffd1660c; border-color:#ffd16640; }
.ch-completed { color:#4cdf7a; background:#4cdf7a0b; border-color:#4cdf7a30; }
.ch-interrupted { color:#a3afc0; background:#d0d9e808; border-color:#d0d9e81a; }
.ch-score { display:flex; align-items:center; gap:14px; white-space:nowrap; padding:8px 14px; border:1px solid #d0d9e81a; border-radius:7px; background:#10151d77; }
.ch-score>span { font-size:.62rem; color:#aab6c7; }
.ch-score strong { color:#ede9df; font-size:1.6rem; font-weight:700; font-variant-numeric:tabular-nums; }
.ch-score i { color:#6f7e93; padding:0 10px; font-style:normal; }
.ch-expand { color:#b2bdcc; font-size:1.2rem; }
.ch-card[open] .ch-expand { transform:rotate(180deg); }
.ch-card-body { padding:0 16px 16px; border-top:1px solid #d0d9e81a; }
.ch-note { margin:12px 0; color:#9ba8ba; font-size:.7rem; line-height:1.6; }
.ch-winner { color:#d9c08e; padding:14px 0 0; font-size:.74rem; font-weight:500; }
.ch-teams { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:12px; }
.ch-team { min-width:0; border:1px solid #d0d9e82e; border-radius:8px; background:#10151d77; }
.ch-team-winner { border-color:#ffd16650; }
.ch-team-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; padding:13px 12px; }
.ch-team-heading h3 { color:#d6c4a3; font-size:.74rem; font-weight:600; }
.ch-team-heading span { color:#99a6ba; font-size:.61rem; }
.ch-team-heading strong { color:#dde3eb; font-size:.95rem; margin-left:4px; }
.ch-table-scroll { overflow-x:auto; }
.ch-table { width:100%; border-collapse:collapse; text-align:left; font-variant-numeric:tabular-nums; }
.ch-table th { padding:8px 10px; color:#8d9aae; font-size:.55rem; font-weight:500; border-block:1px solid #d0d9e816; background:#ffffff02; }
.ch-table td { padding:9px 10px; color:#c4cddb; font-size:.73rem; border-top:1px solid #d0d9e80d; }
.ch-table td:first-child { overflow-wrap:anywhere; }
.ch-table td strong { color:#e0e5ed; font-size:.75rem; font-weight:500; }
.ch-table th:not(:first-child),.ch-table td:not(:first-child) { text-align:right; }
.ch-table small { display:block; font-size:.56rem; margin-top:3px; color:#94a1b4; }
.ch-player { display:flex; align-items:center; gap:8px; min-width:0; }
.ch-player>div { min-width:0; }
.ch-player-icon { display:block; flex-shrink:0; width:32px; height:32px; object-fit:cover; border:1px solid #d0d9e833; border-radius:5px; }
.ch-place { color:var(--medal); font-weight:600; }
.ch-table td.ch-rating { color:#d7dfe9; font-weight:600; font-size:.95rem; }
.ch-table td.ch-rating-best { color:#4cdf7a; }
.ch-match-ratings { padding:12px; border-top:1px solid #d0d9e81a; }
.ch-match-ratings h4 { font-size:.58rem; color:#9cabc0; font-weight:500; margin-bottom:8px; }
.ch-match-ratings>div { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:6px 0; font-size:.65rem; color:#b9c4d3; }
.ch-match-ratings>div>span:first-child { min-width:0; overflow-wrap:anywhere; }
.ch-match-ratings>div>span:last-child { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; }
.ch-grade { white-space:nowrap; padding:4px 6px; border:1px solid #d0d9e81a; border-radius:4px; color:#8695aa; font-size:.57rem; background:#d0d9e804; }
.ch-grade b { color:#d7dfe9; margin-left:3px; font-weight:500; }
.ch-games { margin-top:16px; }
.ch-games h3 { color:#d6c4a3; font-size:.74rem; font-weight:500; margin-bottom:10px; }
.ch-game { display:flex; width:100%; align-items:center; justify-content:space-between; gap:10px; padding:12px; margin:6px 0; text-align:left; border:1px solid #d0d9e826; border-radius:6px; background:#10151d88; color:#99a6ba; font:400 .67rem var(--font); cursor:pointer; }
.ch-game:hover { border-color:#ffd16666; }
.ch-game strong { color:#d5dce6; font-weight:500; }
.ch-game small { display:block; font-size:.56rem; margin-top:4px; }
.ch-empty { padding:36px 16px; text-align:center; border:1px solid #d0d9e82e; border-radius:9px; background:linear-gradient(145deg,#1e222cf5,#10121df8); }
.ch-empty h3 { color:#dce3ed; font-size:.92rem; font-weight:600; margin-bottom:8px; }
.ch-empty p { color:#9ca9bc; font-size:.72rem; line-height:1.6; }
.ch-empty code { color:#d9c08e; }
.ch-pagination { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:16px 0; font-size:.66rem; color:#9eabbd; }
@media(max-width:1000px) { .ch-teams { grid-template-columns:1fr; } }
@media(max-width:640px) {
 .ch-filters { gap:5px; } .ch-filters button { min-height:32px; padding-inline:8px; font-size:.61rem; }
 .ch-totals { gap:8px 12px; } .ch-totals span { font-size:.58rem; } .ch-totals p { flex-basis:100%; font-size:.57rem; }
 .ch-card summary { padding:12px; gap:10px; flex-wrap:wrap; } .ch-card-title { flex-basis:calc(100% - 28px); }
 .ch-card-title h3 { font-size:.82rem; } .ch-score { order:2; width:100%; justify-content:center; padding:6px 10px; }
 .ch-card-body { padding:0 9px 10px; } .ch-team-heading { padding:11px 8px; }
 .ch-table { table-layout:fixed; } .ch-table th,.ch-table td { padding-inline:5px; }
 .ch-table th:first-child { width:38%; } .ch-table th:nth-child(2) { width:14%; } .ch-table th:nth-child(3) { width:30%; } .ch-table th:nth-child(4) { width:18%; }
 .ch-table th { font-size:.48rem; } .ch-table td { font-size:.61rem; } .ch-table td strong { font-size:.66rem; }
 .ch-table td.ch-rating { font-size:.8rem; } .ch-player-icon { width:26px; height:26px; } .ch-player { gap:5px; }
 .ch-match-ratings { padding:10px 8px; } .ch-game { flex-wrap:wrap; padding:10px; } .ch-game>span:last-child { width:100%; }
 .ch-pagination { font-size:.57rem; } .ch-pagination .ch-button { font-size:.61rem; padding-inline:9px; }
}

.ch-view-tabs { display:flex; gap:20px; margin:0 0 14px; border-bottom:1px solid #d0d9e826; }
.ch-view-tabs button { position:relative; padding:9px 2px 11px; border:0; background:none; color:#9eabbd; font:500 .76rem var(--font); cursor:pointer; }
.ch-view-tabs button[aria-selected=true] { color:#ffd166; }
.ch-view-tabs button[aria-selected=true]::after { content:""; position:absolute; bottom:-1px; left:0; right:0; height:2px; background:#ffd166; }
.ch-view-tabs button:focus-visible { outline:2px solid #ffd166; outline-offset:3px; }
.ch-filters[hidden] { display:none; }
.ch-inferred { margin-left:6px; color:#b8c3d3; border-color:#d0d9e826; background:#d0d9e806; font-weight:400; }

/* Both complete rosters remain visible even when the match details are closed. */
.ch-card summary { display:grid; grid-template-columns:minmax(0,1fr) 18px; gap:12px; }
.ch-card-title { grid-column:1; }
.ch-expand { grid-column:2; grid-row:1; }
.ch-versus { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) 110px minmax(0,1fr); gap:12px; align-items:stretch; width:100%; }
.ch-versus-side { min-width:0; padding:14px; border:1px solid #7cafff30; border-radius:8px; background:linear-gradient(130deg,#7cafff09,transparent); }
.ch-side-2 { text-align:right; border-color:#cf91d52c; background:linear-gradient(230deg,#cf91d508,transparent); }
.ch-versus-label { display:block; color:#9cbcec; font-size:.62rem; margin-bottom:12px; }
.ch-side-2 .ch-versus-label { color:#c7a3d4; }
.ch-versus-roster { display:flex; align-items:start; flex-wrap:wrap; gap:12px; }
.ch-side-2 .ch-versus-roster { justify-content:flex-end; }
.ch-versus-player { display:flex; flex-direction:column; align-items:center; gap:7px; min-width:0; width:66px; }
.ch-versus-player strong { color:#d7e0ec; font-size:.65rem; font-weight:500; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ch-versus-score { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; }
.ch-versus-score>small { color:#aab6c8; font-size:.64rem; }
.ch-versus-score>strong { display:flex; gap:12px; font-size:2.4rem; font-variant-numeric:tabular-nums; color:#e4e9f1; line-height:1.1; }
.ch-versus-score i { font-style:normal; color:#566379; font-weight:400; }
.ch-versus-score>span { color:#748399; letter-spacing:1.2px; font-size:.47rem; }
.ch-side-winner { border-color:#4cdf7a66; background:linear-gradient(130deg,#4cdf7a10,#4cdf7a03); }
.ch-side-winner .ch-versus-label,.ch-versus-score .won,.ch-winner { color:#70e79a; }
.ch-side-winner .top-avatar { border-color:#4cdf7a88; box-shadow:0 0 12px #4cdf7a10; }
.ch-team-winner { border-color:#4cdf7a55; background:linear-gradient(145deg,#4cdf7a08,#10151d77); }
.ch-team-winner .ch-team-heading h3 { color:#70e79a; }
@media(max-width:700px) {
 .ch-versus { grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr); gap:6px; }
 .ch-versus-side { padding:10px 7px; } .ch-versus-label { font-size:.54rem; margin-bottom:9px; }
 .ch-versus-roster,.ch-side-2 .ch-versus-roster { justify-content:center; gap:10px 5px; }
 .ch-versus-player { width:48px; } .ch-versus-player strong { font-size:.54rem; }
 .ch-versus-player .top-avatar { width:36px; height:36px; }
 .ch-versus-score>strong { gap:5px; font-size:1.6rem; } .ch-versus-score>small { font-size:.55rem; }
 .ch-versus-score>span { font-size:.38rem; letter-spacing:.4px; }
}
