.quads-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:24px 0 12px}.quads-heading h2{margin:0}.quads-board p{line-height:1.6;max-width:100ch}.quads-board table{min-width:1550px}.quads-board [hidden]{display:none}.quads-board .badge{white-space:normal}.quads-board [data-quads-count]{margin:14px 0}
/* Quads: drag the table in either direction; touch and keyboard scrolling stay native. */
#quads-page .quads-table-wrap{max-height:70vh;overflow:auto;cursor:grab;touch-action:pan-x pan-y;user-select:none;scrollbar-gutter:stable}
#quads-page .quads-table-wrap.is-dragging{cursor:grabbing;scroll-behavior:auto}
#quads-page .quads-table-wrap:focus-visible{outline:2px solid #ef233c;outline-offset:3px}
#quads-page .quads-table-wrap thead th{position:sticky;top:0;z-index:4;background:var(--panel)}
#quads-page .quads-table-wrap thead th:nth-child(-n+2){z-index:5}
#quads-page .quads-table-wrap thead th.leaderboard-selected{background:#5b2030}
#quads-page .quads-scroll-hint{margin:12px 0;color:#b7b2bb;font-size:.8rem}

/* Stable identity and statistic columns, aligned under their headings. */
.quads-board{--rank-column-width:56px;--player-column-width:200px}
.quads-board table{table-layout:fixed;min-width:1152px}
.quads-board .quads-rank-col{width:56px}.quads-board .quads-player-col{width:200px}.quads-board .quads-stat-col{width:112px}
.quads-board table th,.quads-board table td{box-sizing:border-box;padding:12px 14px;vertical-align:middle;font-variant-numeric:tabular-nums;text-align:right}
.quads-board table thead th{height:64px;white-space:normal;line-height:1.3;letter-spacing:normal}
.quads-board table tr>:nth-child(2){text-align:left;width:200px;min-width:200px;max-width:200px}
.quads-board table tr>:first-child{width:56px;min-width:56px;max-width:56px}
.quads-board .quads-key{max-width:none;font-size:.8rem;line-height:1.7}

/* Compact, independent legend; do not inherit ranking table widths/sticky cells. */
.quads-board .quads-key{margin-top:24px;max-width:560px;border:1px solid #3b3038;border-radius:10px;background:#171519;overflow:hidden}
.quads-board .quads-key table{width:100%;min-width:0;table-layout:auto;margin:0;border-collapse:collapse}
.quads-board .quads-key caption{text-align:left;padding:14px 16px;font-size:.9rem;font-weight:700;color:#f0e9ed;border-bottom:1px solid #3b3038}
.quads-board .quads-key table tr>*{position:static;left:auto;min-width:0;max-width:none;width:auto;height:auto;text-align:left;padding:7px 16px;font-size:.8rem;line-height:1.45;white-space:normal;background:transparent;box-shadow:none;border-bottom:1px solid #302830}
.quads-board .quads-key table tr>:first-child{width:112px;min-width:0;max-width:none;color:#ff8795;font-weight:700}
.quads-board .quads-key table thead th{background:#241c23;color:#bdb2bd;font-size:.7rem;letter-spacing:.04em;text-transform:uppercase}
.quads-board .quads-key tbody tr:nth-child(even){background:#1e1a20}
.quads-board .quads-key p{margin:0;padding:12px 16px;font-size:.75rem;color:#bdb2bd;line-height:1.5}
