﻿/* Game statistics (gamestats.js): the blocks every page builds from - tiles, sortable tables, two teams side by side, the box score of a set
   and its window. Only the site's own colours and fonts (styles/index.css); every class starts with gs-. */

.gs-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; text-align: left; }
.gs-section { margin: 28px auto 0; max-width: 1280px; width: 100%; }
.gs-heading { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: 0.01em; }
.gs-heading small { margin-left: 10px; font: 600 12px var(--font-body); color: var(--text-dim); letter-spacing: 0; }
.gs-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.gs-style, .gs-objs { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.gs-style b, .gs-objs b { color: var(--text); font-weight: 700; }
.gs-pos { color: var(--primary); }
.gs-neg { color: #ff8a80; }
.gs-dim { opacity: 0.6; }

.gs-notes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.gs-notes b { color: var(--text); }

/* stat tiles */
.gs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 10px; }
.gs-tile { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.gs-tile--wide { grid-column: span 2; }
.gs-tile-label { font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); }
.gs-tile-value { font-family: var(--font-display); font-weight: 400; font-size: 27px; line-height: 1.1; color: var(--text); overflow-wrap: anywhere; }
.gs-tile-value.gs-pos { color: var(--primary); }
.gs-tile-value.gs-neg { color: #ff8a80; }
.gs-tile-sub { font-size: 12px; line-height: 1.35; color: var(--text-dim); }

/* cards and tables */
.gs-card { min-width: 0; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.gs-card-title { margin: 0 0 8px; font: 800 12px var(--font-body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); }
/* (a table wider than its card scrolls inside it, with the site's own thin dark scrollbar - not the browser's white one) */
.gs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.gs-scroll::-webkit-scrollbar { height: 8px; }
.gs-scroll::-webkit-scrollbar-track { background: transparent; }
.gs-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.gs-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.gs-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.018); }
.gs-table td:first-child { color: var(--text); }
.gs-table th { padding: 6px 8px; border-bottom: 1px solid var(--border-strong); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); text-align: left; white-space: nowrap; }
.gs-table td { padding: 5px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
.gs-table tbody tr:last-child td { border-bottom: 0; }
.gs-table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.gs-table .gs-num { text-align: right; }
.gs-table .gs-empty { padding: 16px 8px; text-align: center; white-space: normal; color: var(--text-dim); }
.gs-sort { all: unset; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.gs-sort:hover, .gs-sort:focus-visible { color: var(--text); }
.gs-sort:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
.gs-table th[aria-sort] { color: var(--primary); }
.gs-sort-arrow { font-size: 9px; }
.gs-more { margin-top: 10px; }
.gs-map { display: inline-flex; flex-direction: column; line-height: 1.2; }
.gs-map b { font-weight: 700; }
.gs-map small { font-size: 11px; color: var(--text-dim); }
.gs-player { font-weight: 700; color: var(--text); text-decoration: none; }
a.gs-player:hover { color: var(--primary); }

/* brawler pictures and team names */
.gs-chips { display: inline-flex; gap: 4px; vertical-align: middle; }
.gs-brawler { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 26px; border-radius: 6px; overflow: hidden; background: var(--surface-3); vertical-align: middle; }
.gs-brawler img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-brawler--text { font-size: 10px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; }
.gs-team { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-weight: 700; }
.gs-team img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.gs-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-team--none { font-weight: 500; color: var(--text-dim); }

/* two teams side by side: value + bar | what | bar + value */
.gs-compare { display: flex; flex-direction: column; gap: 14px; max-width: 760px; width: 100%; margin: 0 auto; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.gs-compare-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 16px; }
.gs-compare-team { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.gs-compare-team::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--primary); }
.gs-compare-team--b { flex-direction: row-reverse; }
.gs-compare-team--b::before { background: var(--blue); }
.gs-vs { display: grid; grid-template-columns: 62px minmax(0, 1fr) 62px; align-items: end; gap: 12px; }
.gs-vs-val { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-muted); line-height: 1; }
.gs-vs-val--b { text-align: right; }
.gs-vs-val.is-lead { color: var(--text); }
.gs-vs-label { display: block; margin-bottom: 5px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-dim); }
.gs-vs-track { position: relative; display: flex; gap: 3px; height: 12px; }
.gs-vs-track::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text); opacity: 0.55; }
.gs-vs-a { flex: none; border-radius: 6px 2px 2px 6px; background: var(--primary); }
.gs-vs-b { flex: 1; border-radius: 2px 6px 6px 2px; background: var(--blue); }
.gs-vs-track .is-dim { opacity: 0.3; }

/* a radar beside the numbers it is drawn from */
.gs-duo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; }
.gs-duo > .gs-compare { flex: 1 1 380px; margin: 0; }
.gs-duo > .gs-tiles { flex: 1 1 360px; }
.gs-radar-box { flex: 0 1 340px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.gs-radar { width: 100%; max-width: 360px; height: auto; display: block; }
.gs-radar-label { fill: var(--text-dim); font: 700 11px var(--font-body); }
.gs-radar-legend { justify-content: center; }

/* who does what: the team's damage, healing, kills and deaths, each split between its players */
.gs-share { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.gs-share-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; font-weight: 700; }
.gs-share-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gs-share-legend i { width: 10px; height: 10px; border-radius: 3px; }
.gs-share-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; }
.gs-share-label { font-size: 12px; font-weight: 700; color: var(--text-dim); }
.gs-share-bar { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; }
.gs-share-bar i { display: flex; align-items: center; justify-content: center; min-width: 0; font-style: normal; font-size: 11.5px; font-weight: 800; color: #0d1117; font-variant-numeric: tabular-nums; }

/* a set's box score */
.gs-box-head { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 17px; }
.gs-box-score { font-family: var(--font-display); font-weight: 400; font-size: 30px; }
.gs-box-meta, .gs-box-star { margin: 0; text-align: center; font-size: 13px; }
.gs-box-meta { color: var(--text-dim); }
.gs-star { color: #ffd166; }
.gs-box .gs-box-total td { padding-top: 10px; font-weight: 800; background: rgba(255, 255, 255, 0.03); }
.gs-box .gs-box-a td:first-child { border-left: 3px solid var(--primary); }
.gs-box .gs-box-b td:first-child { border-left: 3px solid var(--blue); }
.gs-won { font-weight: 700; color: var(--primary); }

/* a number over a bar as long as its share of the column's highest: a column is read at a glance. Green: higher is better (the best is
   bright); red: lower is better (deaths - the lowest is bright) or a minus; grey: neither. */
.gs-cellbar { position: relative; display: block; min-width: 62px; padding: 4px 7px; border-radius: 5px; overflow: hidden; text-align: right; color: var(--text-dim); }
.gs-cellbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: rgba(255, 255, 255, 0.08); }
.gs-cellbar span { position: relative; }
.gs-cellbar--pos i { background: rgba(174, 232, 117, 0.15); }
.gs-cellbar--neg i { background: rgba(255, 138, 128, 0.15); }
.gs-cellbar.is-top { color: var(--text); font-weight: 800; }
.gs-cellbar--pos.is-top i { background: rgba(174, 232, 117, 0.38); }
.gs-cellbar--neg.is-top i { background: rgba(255, 138, 128, 0.1); }
.gs-cellbar--neg.is-top { color: var(--primary); }
.gs-box .gs-box-b .gs-cellbar--pos i { background: rgba(77, 163, 255, 0.18); }
.gs-box .gs-box-b .gs-cellbar--pos.is-top i { background: rgba(77, 163, 255, 0.42); }

/* a win rate (or a result) as a small coloured label */
.gs-pill { display: inline-block; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); color: var(--text); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gs-pill.gs-pos { background: rgba(174, 232, 117, 0.16); color: var(--primary); }
.gs-pill.gs-neg { background: rgba(255, 138, 128, 0.16); color: #ff8a80; }
.gs-starcount { color: #ffd166; font-weight: 800; white-space: nowrap; }

/* the mode's own number, a team's against its opponents' */
.gs-duels { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.gs-duel { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.gs-duel small { font-size: 11px; color: var(--text-muted); }
.gs-duel b { font-weight: 800; }
.gs-duel-vs { color: var(--text-dim); }

/* players as cards: who, then a bar for every number (the best of the players set side by side is green) */
.gs-pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.gs-pcard { min-width: 0; padding: 12px 14px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); }
.gs-pcard--a { border-top: 3px solid var(--primary); }
.gs-pcard--b { border-top: 3px solid var(--blue); }
.gs-pcard--sub { opacity: 0.75; }
.gs-pcard-head { display: flex; align-items: center; gap: 8px; }
.gs-pcard-who { display: flex; flex-direction: column; min-width: 0; margin-right: auto; line-height: 1.2; }
.gs-pcard-name { font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-pcard-who small { font-size: 11.5px; color: var(--text-dim); }
.gs-pcard-brawlers { margin-top: 8px; }
.gs-meters { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.gs-meter { display: grid; grid-template-columns: minmax(0, 118px) minmax(30px, 1fr) 50px; align-items: center; gap: 8px; font-size: 12.5px; }
.gs-meter-label { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-meter-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.gs-meter-bar i { display: block; height: 100%; border-radius: 4px; background: rgba(255, 255, 255, 0.3); }
.gs-meter--neg .gs-meter-bar i { background: rgba(255, 138, 128, 0.55); }
.gs-meter-value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.gs-meter.is-best .gs-meter-bar i { background: var(--primary); }
.gs-meter--neg.is-best .gs-meter-bar i { background: rgba(174, 232, 117, 0.75); }
.gs-meter.is-best .gs-meter-value { color: var(--primary); }
/* (a card whose numbers come with the player's place among the others: one more column, "#3") */
.gs-meter--ranked { grid-template-columns: minmax(0, 104px) minmax(24px, 1fr) 48px 34px; }
.gs-meter-rank { padding: 1px 0; border-radius: 5px; background: rgba(255, 255, 255, 0.07); color: var(--text-dim); font-size: 11.5px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; cursor: default; }
.gs-meter-rank.is-podium { background: rgba(255, 209, 102, 0.16); color: #ffd166; }
.gs-rank-note { margin-top: 10px; }
.gs-more-players { margin-top: 10px; font-size: 13px; }
.gs-more-players summary { cursor: pointer; color: var(--text-dim); font-weight: 700; }
.gs-more-players summary:hover { color: var(--text); }
.gs-more-players[open] summary { margin-bottom: 8px; }

/* one game as two panels, a team each: every player's brawler, kills / deaths and a bar of their damage */
.gs-game { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gs-game-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: var(--radius-sm); }
.gs-game-side--b { border-top-color: var(--blue); }
.gs-game-side header { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); font-size: 14px; }
.gs-game-side header b { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-game-kills { font-size: 12px; font-weight: 700; color: var(--text-dim); white-space: nowrap; }
.gs-game-player { display: grid; grid-template-columns: 34px minmax(0, 1fr) 46px minmax(40px, 90px) 46px; align-items: center; gap: 8px; font-size: 13px; }
.gs-game-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.gs-game-who b, .gs-game-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-game-who small { font-size: 11px; color: var(--text-muted); }
.gs-game-kd { text-align: right; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gs-game-kd b { color: var(--text); font-size: 15px; }
.gs-game-dmg { text-align: right; font-variant-numeric: tabular-nums; }
.gs-game .gs-meter-bar i { background: rgba(255, 255, 255, 0.3); }
.gs-game-side--a .gs-meter-bar i { background: rgba(174, 232, 117, 0.55); }
.gs-game-side--b .gs-meter-bar i { background: rgba(77, 163, 255, 0.6); }
.gs-game .gs-meter-bar.is-best i { background: var(--primary); }
@media (max-width: 700px) { .gs-game { grid-template-columns: minmax(0, 1fr); } }

/* a set's games right under the set's own row (Scrim Results): the arrow that opens them, and the games */
.gs-inline { display: flex; flex-direction: column; gap: 12px; padding: 10px 12px 14px; }
.gs-inline-star, .gs-inline-title { margin: 0; font-size: 13px; color: var(--text-dim); }
.gs-inline-star b, .gs-inline-title b { color: var(--text); }
.gs-inline-game { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); }
/* (the rows of the scrim table are striped by position: with a line of statistics after each row the stripes are set by class instead) */
.scrim-results.has-stats .scrim-row:nth-child(even) { background: none; }
.scrim-results.has-stats .scrim-row.is-alt, .scrim-results.has-stats .scrim-row.is-alt + .scrim-stats { background: var(--surface-2); }
.scrim-stats { width: 0; min-width: 100%; border-radius: 0 0 6px 6px; }
.scrim-results.has-stats .scrim-row { border-radius: 6px 6px 0 0; }
.gs-expand { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 18px; padding: 0; border: 0; border-radius: 0 0 6px 6px; background: none; color: var(--text-muted); font: 700 10px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.gs-expand:hover, .gs-expand:focus-visible { color: var(--primary); background: var(--primary-soft); outline: none; }
.gs-expand i { display: inline-block; font-style: normal; font-size: 11px; transition: transform var(--fast) var(--ease); }
.gs-expand[aria-expanded="true"] { color: var(--primary); }
.gs-expand[aria-expanded="true"] i { transform: rotate(180deg); }

/* the small "Stats" button on a set's row, and the window it opens */
.gs-setbtn { padding: 3px 9px; border: 1px solid var(--border-strong); border-radius: 99px; background: var(--surface-2); color: var(--text-dim); font: 700 11px var(--font-body); cursor: pointer; white-space: nowrap; }
.gs-setbtn:hover, .gs-setbtn:focus-visible { color: var(--primary); border-color: rgba(174, 232, 117, 0.45); outline: none; }
.gs-dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-2); color: var(--text); box-shadow: var(--shadow-lg); }
.gs-dialog::backdrop { background: rgba(0, 0, 0, 0.66); }
.gs-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.gs-dialog-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.gs-dialog-body { padding: 16px; }

/* a bar of filters (the Leaderboards and Bans pages, and the blocks that have their own) */
.gs-filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 10px 14px; margin: 0 auto 18px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.gs-filters label { display: flex; flex-direction: column; gap: 4px; min-width: 150px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.gs-filters select, .gs-filters input { height: 38px; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); color-scheme: dark; font: 600 14px var(--font-body); letter-spacing: 0; text-transform: none; }
.gs-filters select:focus-visible, .gs-filters input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* tabs (a row of round buttons) */
.gs-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 14px; padding: 4px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-2); }
.gs-tab { padding: 6px 14px; border: 0; border-radius: 99px; background: none; color: var(--text-dim); font: 700 13px var(--font-body); cursor: pointer; white-space: nowrap; }
.gs-tab:hover { color: var(--text); }
.gs-tab[aria-selected="true"] { background: var(--primary-soft); color: var(--primary); }
.gs-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* a page made only of these blocks (Leaderboards, Bans) */
.gs-page { max-width: 1320px; margin: 0 auto; padding: 40px var(--pad) 96px; }
.gs-page .page-head { margin-bottom: 20px; }
.gs-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gs-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gs-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.gs-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.gs-list li:last-child { border-bottom: 0; }
.gs-list .gs-list-value { margin-left: auto; font-family: var(--font-display); font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gs-list .gs-list-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.gs-list .gs-list-who small { font-size: 11.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-list .gs-list-star { font-size: 13px; white-space: nowrap; }
.gs-list .gs-list-who + .gs-list-star { margin-left: auto; }
.gs-list .gs-list-star + .gs-list-value { margin-left: 12px; }
.gs-setbtn:disabled { opacity: 0.4; cursor: default; }
.gs-rank { flex: none; width: 20px; font-weight: 800; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }

/* a rate as a bar inside a table cell */
.gs-rate { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.gs-rate i { flex: 1; height: 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.gs-rate i::after { content: ''; display: block; height: 100%; width: var(--w, 0%); border-radius: 3px; background: var(--primary); }
.gs-rate b { flex: none; min-width: 36px; text-align: right; font-weight: 700; }
.gs-spark { display: inline-block; vertical-align: middle; }

/* two teams' bans next to one another (the Matches sheet): each card's edge in its team's colour */
.gs-banscard--a { border-top: 3px solid var(--primary); }
.gs-banscard--b { border-top: 3px solid var(--blue); }
.gs-bansduo { margin-top: 0; margin-bottom: 20px; }
.gs-bansduo .gs-heading { margin-bottom: 10px; }
.gs-bansduo .gs-note { margin-top: 8px; }

/* the Bans page: a row of the most banned brawlers, each with its share under the picture */
.bn-top { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; }
.bn-topitem { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.bn-topitem small { font-size: 11px; font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; }
/* "picked when open" of one team's drafts: the team's picks (green) over its opponents' (blue) */
.bn-split { display: inline-flex; flex-direction: column; gap: 3px; min-width: 190px; }
.bn-split-row { display: flex; align-items: center; gap: 8px; }
.bn-split-bar { flex: 1; height: 7px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bn-split-bar i { display: block; height: 100%; border-radius: 3px; background: var(--primary); }
.bn-split--opp .bn-split-bar i { background: var(--blue); }
.bn-split-row b { flex: none; min-width: 34px; text-align: right; font-size: 12.5px; font-weight: 700; }
.bn-split--team b { color: var(--primary); }
.bn-split--opp b { color: var(--blue); }
.gs-summary { margin: 0 auto 14px; max-width: 900px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
#tiles:empty { display: none; }
#tiles { margin-bottom: 14px; }

@media (max-width: 900px) {
    .gs-grid2, .gs-grid3 { grid-template-columns: minmax(0, 1fr); }
    .gs-tile--wide { grid-column: auto; }
}
@media (max-width: 640px) {
    .gs-page { padding: 24px 16px 72px; }
    .gs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gs-tile-value { font-size: 22px; }
    .gs-compare { padding: 14px 12px; }
    .gs-vs { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; }
    .gs-vs-val { font-size: 14px; }
    .gs-filters label { min-width: 0; flex: 1 1 140px; }
    .gs-dialog-body { padding: 10px; }
    .gs-card { padding: 12px 10px 10px; }
}

/* two teams' bans with the Bans page's views (bansDuo): each team's part under its name, in its colour */
.gs-bansduo .gs-tabs { margin-bottom: 12px; }
.gs-bansduo-team { margin: 0; padding-left: 10px; border-left: 3px solid var(--primary); font: 800 13px var(--font-body); letter-spacing: 0.04em; }
.gs-bansduo-part--b .gs-bansduo-team { border-left-color: var(--blue); }

/* Stat Leaderboards (leaderboards.js): the category dashboard - ranked lists with a bar behind each row, leader cards, a role mix, mode chips */
.lb-panel { gap: 18px; }
.lb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 6px; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.lb-grid--modes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.lb-card { display: flex; flex-direction: column; gap: 6px; }
.lb-card .gs-card-title { margin-bottom: 4px; }
.lb-list li.lb-row { position: relative; overflow: hidden; padding: 7px 10px 7px 6px; border-bottom: 0; border-radius: 6px; margin-bottom: 3px; }
.lb-row > :not(.lb-fill) { position: relative; }
.lb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: rgba(174, 232, 117, 0.11); pointer-events: none; }
.lb-row.is-first .lb-fill { background: rgba(174, 232, 117, 0.27); }
.lb-row .gs-chips { margin-left: auto; flex: none; }
.lb-row .gs-chips + .gs-list-value { margin-left: 10px; min-width: 52px; text-align: right; }
.lb-row .gs-list-who { flex: 1 1 auto; }
.lb-heroes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 184px), 1fr)); gap: 10px; }
.lb-hero { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.lb-hero:hover { border-color: var(--primary); transform: translateY(-1px); }
.lb-hero:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lb-hero-label { font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); }
.lb-hero-value { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--primary); }
.lb-hero-who { display: flex; flex-direction: column; line-height: 1.25; font-size: 14px; min-width: 0; }
.lb-hero-who small, .lb-hero-sub { font-size: 12px; color: var(--text-dim); }
.lb-hero .gs-chips { margin-top: 6px; }
.lb-mix { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--surface-2); }
.lb-mix span { min-width: 4px; }
.lb-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-dim); }
.lb-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; }
.lb-legend b { color: var(--text); font-weight: 700; }
.lb-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-mode { padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 99px; background: var(--surface); color: var(--text-dim); font: 700 13px var(--font-body); cursor: pointer; }
.lb-mode:hover { color: var(--text); }
.lb-mode[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--mode, var(--primary)); color: var(--text); }
.lb-mode[style*="--mode"] { border-left: 4px solid var(--mode); }
.lb-mode:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.lb-who { margin: 14px 0 10px; }
/* the title block of "Download image": only in the picture (the picture's css shows it) */
.lb-shot-head { display: none; justify-items: center; gap: 6px; padding: 6px 0 22px; text-align: center; }
.lb-shot-head b { font-family: var(--font-display); font-size: 44px; font-weight: 400; letter-spacing: 0.02em; line-height: 1.1; }
.lb-shot-head .lb-shot-cat { font-size: 22px; font-weight: 800; color: var(--primary); }
.lb-shot-head .lb-shot-filters { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.lb-shot-head .lb-shot-since { font-size: 12px; color: var(--text-muted); }
.lb-modecard { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); }
.lb-modecard .gs-card { background: var(--surface); }
.lb-modecard > .btn { align-self: flex-start; }
.lb-modehead { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.lb-modehead i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.lb-modehead h3 { margin: 0; font: 400 20px var(--font-display); }
.lb-modehead .muted { font-size: 12px; }
@media (max-width: 640px) {
    .lb-row .gs-chips { display: none; }
    .lb-hero-value { font-size: 28px; }
}