:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --base: #eae1d2;
  --header: #e3d8c3;
  --panel: #f4ebda;
  --surface: #e5d8c1;
  --line: #bfb096;
  --text: #24343b;
  --muted: #4d5c5c;
  --accent: #105d56;
  --focus: #116b62;
  --input-border: #887761;
  --on-accent: #f7ecda;
  --warm: #9a422b;
  --profile-surface: #ebcba3;
  --hero-glow: #efd299;
  --win: #0d5547;
  --win-surface: #cfe5d6;
  --win-line: #79a891;
  --loss: #8e3229;
  --loss-surface: #f2d1c4;
  --loss-line: #c68979;
  --second: #254e79;
  --second-surface: #ccdff1;
  --third: #6e4514;
  --third-surface: #ecd5a2;
  --diamond: #7552a0;
  --platinum: #3b6585;
  --gold: #815918;
  --silver: #516675;
  --bronze: #8c4c32;
  --radius: 5px;
  --control-radius: 3px;
  --small-radius: 2px;
  --display-font: Georgia, Cambria, serif;
  font-family: system-ui, "Segoe UI", sans-serif;
  background: var(--base);
  color: var(--text);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --base: #191919;
  --header: #252525;
  --panel: #242424;
  --surface: #2e2e30;
  --line: #3e3e42;
  --text: #f1f0f3;
  --muted: #b9b7c4;
  --accent: #80cbb9;
  --focus: #78baff;
  --input-border: #4a9df5;
  --lookup-shadow: #3b9cff45;
  --on-accent: #152d27;
  --warm: #ffc383;
  --profile-surface: #2d2930;
  --hero-glow: #352725;
  --win: #89b2ff;
  --win-surface: #262f49;
  --win-line: #455b89;
  --loss: #f49498;
  --loss-surface: #38252c;
  --loss-line: #62404b;
  --second: #aac9ee;
  --second-surface: #303d57;
  --third: #ffc184;
  --third-surface: #473527;
  --diamond: #d7b0fa;
  --platinum: #9bd9f5;
  --gold: #ffc383;
  --silver: #d8d9e2;
  --bronze: #da9a7a;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { display: flex; flex-direction: column; min-width: 280px; min-height: 100vh; margin: 0; }
main { flex: 1; padding-bottom: 24px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
main:focus, #headline:focus, #view-heading:focus { outline: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: .6rem; left: .6rem; z-index: 5; padding: .6rem; background: var(--base); }
.container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--header); }
.header-inner { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr) max-content; grid-template-rows: 60px; align-items: center; column-gap: clamp(22px, 4vw, 50px); }
.brand { display: inline-flex; align-items: center; font: 700 1.43rem var(--display-font); letter-spacing: -.045em; }
.brand span:last-child { color: var(--accent); }
.brand-icon { display: grid; place-items: center; width: 29px; height: 29px; margin-right: .55rem; border-radius: var(--control-radius); background: var(--accent); color: var(--on-accent); font: 700 1.12rem system-ui, sans-serif; }
.header-inner nav { display: flex; align-self: stretch; }
.header-inner nav a { position: relative; display: flex; align-items: center; color: var(--muted); font-size: .875rem; font-weight: 550; }
.header-inner nav a:hover, .header-inner nav [aria-current="page"] { color: var(--accent); }
.header-inner nav [aria-current="page"]::after { position: absolute; inset: auto 0 0; height: 2px; background: var(--accent); content: ""; }
.theme-toggle { grid-area: 1 / 4; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: var(--control-radius); color: var(--muted); background: transparent; }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun-icon, .theme-toggle[aria-pressed="true"] .moon-icon { display: none; }
.theme-toggle[aria-pressed="true"] .sun-icon { display: block; color: var(--warm); }
.hero { text-align: center; background: radial-gradient(ellipse 46% 59% at 50% 36%, var(--hero-glow), transparent 88%); }
.hero-content { padding: clamp(46px, 11vh, 115px) 0 74px; }
.board-mark { width: 145px; height: 92px; margin-bottom: 7px; overflow: visible; }
.board-trail { fill: none; stroke: var(--warm); stroke-width: 1.5; stroke-dasharray: 1 5; stroke-linecap: round; opacity: .66; }
.board-tile, .tile-detail { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile-field { fill: #e9b857; stroke: #9b6525; }
.tile-water { fill: #78c3b3; stroke: #2a776e; }
.tile-clay { fill: #e49376; stroke: #a65339; }
.tile-detail { fill: none; stroke: #253e44; opacity: .76; }
.board-point { fill: var(--warm); }
.hero h1 { margin: 0 0 10px; font: 700 clamp(3.25rem, 9vw, 5.2rem) / 1 var(--display-font); letter-spacing: -.07em; }
.hero h1 span { color: var(--warm); }
.player-lookup { position: relative; z-index: 1; width: min(100%, 640px); margin: 28px auto 0; }
.search-form { min-height: 54px; display: flex; align-items: center; padding: 4px 6px 4px 18px; gap: 8px; background: var(--panel); border: 1px solid var(--input-border); border-radius: var(--radius); box-shadow: 0 6px 18px var(--lookup-shadow, #17293417); }
.search-form:focus-within { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 24%, transparent); }
.search-form input { min-width: 0; flex: 1; padding: .5rem 0; color: var(--text); background: none; border: 0; outline: 0; }
.search-form input::placeholder { color: var(--muted); }
.search-form button { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; padding: 0; border: 0; border-radius: var(--control-radius); color: var(--accent); background: var(--surface); }
.search-form button:hover { color: var(--on-accent); background: var(--accent); }
.search-form button svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.header-lookup { grid-area: 1 / 3; justify-self: end; width: min(100%, 350px); }
.header-lookup .player-lookup { width: 100%; margin: 0; z-index: 3; }
.header-lookup .search-form { min-height: 38px; padding: 2px 4px 2px 10px; border-radius: var(--control-radius); border-color: var(--line); box-shadow: none; }
.header-lookup .search-form:focus-within { border-color: var(--focus); }
.header-lookup .search-form input { padding-block: .35rem; font-size: .875rem; }
.header-lookup .search-form button { width: 31px; height: 30px; background: transparent; }
.header-lookup .search-form button:hover { background: var(--surface); color: var(--accent); }
.header-lookup .search-form button svg { width: 18px; height: 18px; }
.player-suggestions { position: absolute; inset: calc(100% + 7px) 4px auto; max-height: 240px; overflow-y: auto; list-style: none; margin: 0; padding: 5px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 10px 24px #142d4635; }
.player-suggestions li { display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 6px 9px; border-radius: var(--control-radius); cursor: pointer; }
.player-suggestions li:hover, .player-suggestions [aria-selected="true"] { background: var(--surface); color: var(--accent); }
.player-suggestions .avatar { width: 31px; height: 31px; }
.suggestion-name { font-weight: 650; }
.player-name { display: inline-flex; align-items: center; gap: 6px; }
.country-flag { flex: 0 0 auto; width: 18px; height: auto; border-radius: var(--small-radius); outline: 1px solid var(--line); }
.empty .search-examples { margin-top: 9px; }
.search-examples a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
#view { margin-top: 25px; }
.searching .board-mark { display: none; }
.searching .hero-content { padding-block: 34px 3px; }
.searching .hero h1 { font-size: clamp(2.35rem, 7vw, 3.25rem); }
.searching .player-lookup { margin-top: 16px; }
.search-results { width: min(100%, 640px); margin-inline: auto; }
.player-results { list-style: none; margin: 0; padding: 0; }
.player-results li + li { border-top: 1px solid var(--line); }
.player-results a { display: flex; padding: .7rem 1rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.leaderboard-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.leaderboard-country { position: relative; max-width: 100%; }
.leaderboard-country::after { content: ""; position: absolute; right: 12px; top: 14px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.leaderboard-country select { appearance: none; width: 10.5rem; max-width: 100%; min-height: 37px; padding: 0 29px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: var(--panel); font-weight: 650; font-size: .875rem; text-overflow: ellipsis; }
#view-heading { margin: 0 0 .25rem; font-size: clamp(1.85rem, 3.8vw, 2.4rem); font-weight: 750; letter-spacing: -.045em; overflow-wrap: anywhere; }
.section-head p, .panel-head p, .profile-identity p, .empty p { margin: .2rem 0 0; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.segmented { display: inline-flex; gap: 2px; flex: 0 0 auto; padding: 3px; border-radius: var(--radius); background: var(--surface); }
.segmented a { display: grid; place-items: center; min-width: 42px; min-height: 31px; padding-inline: .58rem; border-radius: var(--control-radius); color: var(--muted); font-weight: 650; font-size: .875rem; }
.segmented a:hover { color: var(--accent); }
.segmented [aria-current="true"] { background: var(--panel); color: var(--accent); box-shadow: 0 1px 3px #254b7d13; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.leaderboard-podium {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.podium-place {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid color-mix(in srgb, var(--podium-tone) 30%, var(--line));
  border-top: 3px solid var(--podium-tone);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--podium-tone) 9%, var(--panel)), var(--panel) 70%);
  text-align: center;
}
.podium-place-1 { grid-column: 2; min-height: 272px; --podium-tone: var(--gold); --podium-avatar: 52px; }
.podium-place-2 { grid-column: 1; min-height: 236px; --podium-tone: var(--silver); --podium-avatar: 44px; }
.podium-place-3 { grid-column: 3; min-height: 201px; --podium-tone: var(--bronze); --podium-avatar: 38px; }
.podium-position { color: var(--podium-tone); font-size: .875rem; font-weight: 750; }
.podium-place-1 .podium-position { font-size: 1.1rem; }
.podium-place .player-link { flex-direction: column; gap: 5px; max-width: 100%; }
.podium-place .player-name { justify-content: center; flex-wrap: wrap; max-width: 100%; overflow-wrap: anywhere; }
.podium-place .avatar { width: var(--podium-avatar); height: var(--podium-avatar); font-size: 1rem; }
.podium-place-1 .player-link { font-size: 1.2rem; }
.podium-place .rank-emblem { width: 21px; height: 21px; }
.podium-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px clamp(8px, 2vw, 22px); margin: 4px 0 0; }
.podium-stats dt, .podium-form > span { color: var(--muted); font-size: .75rem; }
.podium-stats dd { margin: 1px 0 0; font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.podium-form { display: flex; align-items: center; gap: 7px; }
.podium-form .finish { min-width: 26px; padding: 2px 3px; font-size: .7rem; }
.leaderboard-podium:not(:has(.podium-place-3)) { width: min(100%, 620px); margin-inline: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.leaderboard-podium:has(> :only-child) { width: min(100%, 320px); grid-template-columns: minmax(0, 1fr); }
.podium-place:only-child { grid-column: 1; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.leaderboard { min-width: 780px; }
.history { min-width: 510px; }
th, td { padding: 13px 17px; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 22px; }
th:last-child, td:last-child { padding-right: 22px; }
thead { background: var(--surface); color: var(--muted); font-size: .875rem; }
th { font-weight: 650; }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: var(--surface); }
.numeric { text-align: right; }
.rating, .position, .winrate { font-weight: 700; }
.position, .muted { color: var(--muted); }
.player-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 670; }
.player-link:hover, .back:hover, .rank-credit:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 37px; height: 37px; border-radius: var(--control-radius); border: 1px solid #ffffff18; color: #34496b; font: 750 .8rem ui-monospace, monospace; }
.avatar.rust { background: #fae5e1; color: #884039; }
.avatar.lime { background: #e7eaff; color: #465796; }
.avatar.gold { background: #fbefd9; color: #795719; }
.avatar.green { background: #dcedfd; color: #365984; }
.avatar.blue { background: #e8e1f8; color: #5a4486; }
.division { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; font-weight: 650; }
.rank-emblem { display: block; flex: 0 0 auto; width: 27px; height: 27px; }
.division.diamond { color: var(--diamond); }
.division.platinum { color: var(--platinum); }
.division.gold { color: var(--gold); }
.division.silver { color: var(--silver); }
.finishes { display: flex; gap: 4px; }
.finish { display: inline-grid; place-items: center; min-width: 32px; padding: 4px; border-radius: var(--small-radius); font-size: .8rem; font-weight: 650; }
.place-1 { background: var(--win-surface); color: var(--win); }
.place-2 { background: var(--second-surface); color: var(--second); }
.place-3 { background: var(--third-surface); color: var(--third); }
.place-4 { background: var(--loss-surface); color: var(--loss); }
.table-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 11px 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.pagination { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.pagination > :is(a, span) { display: grid; place-items: center; min-width: 27px; min-height: 34px; padding-inline: 4px; border-radius: var(--control-radius); color: var(--muted); font-variant-numeric: tabular-nums; }
.pagination a:hover { color: var(--text); background: var(--surface); }
.pagination [aria-current="page"] { color: var(--accent); background: var(--surface); font-weight: 700; }
.page-link { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--control-radius); color: var(--text); font-size: .875rem; background: var(--panel); }
a.page-link:hover { color: var(--accent); border-color: var(--accent); }
.empty { padding: 38px 22px; text-align: center; }
.empty h3 { margin: 0; }
.empty .page-link { margin-top: 14px; }
.back { display: inline-block; margin-bottom: 16px; color: var(--muted); font-size: .9rem; }
.profile-heading { margin-bottom: 14px; padding: 14px 16px; border-inline-start: 3px solid var(--accent); background: linear-gradient(112deg, var(--panel) 68%, var(--profile-surface)); }
.profile-identity { display: flex; align-items: center; gap: 14px; }
.profile-identity > div { min-width: 0; }
.profile-identity .player-name { max-width: 100%; gap: 12px; }
.profile-identity #view-heading { margin: 0; }
.profile-identity p { margin-top: .1rem; font-size: .875rem; }
.profile-identity .country-flag { width: clamp(28px, 5vw, 36px); }
.profile-identity .avatar { width: 54px; height: 54px; border-radius: var(--radius); font-size: 1.25rem; }
.profile-grid { display: grid; grid-template-columns: minmax(240px, 290px) minmax(0, 1fr); align-items: start; gap: 13px; }
.profile-sidebar, .match-feed { display: grid; gap: 12px; min-width: 0; }
.match-feed { grid-template-columns: minmax(0, 1fr); }
.ranked-summary .panel-head { padding-block: 12px; border-bottom: 1px solid var(--line); }
.rank-identity { display: flex; align-items: center; gap: 10px; padding: 12px 16px 5px; }
.rank-identity .rank-emblem { width: 60px; height: 60px; padding: 5px; border-radius: var(--radius); object-fit: contain; background: var(--surface); }
.rank-identity .division { display: block; font-size: 1.45rem; line-height: 1.12; margin-bottom: 4px; }
.rank-identity .muted { font-size: .875rem; }
.country-rank { display: block; margin-top: 2px; }
.country-rank strong { color: var(--accent); }
.rank-credit { color: var(--muted); font-size: .8125rem; }
.rank-identity .rank-credit { display: block; margin-top: 2px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 10px 16px 14px; }
.profile-stats dt { color: var(--muted); font-size: .875rem; }
.profile-stats dd { margin: 4px 0 0; font-size: 1.125rem; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 15px 16px 13px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.16rem; letter-spacing: -.02em; }
.positive { color: var(--win); }
.negative { color: var(--loss); }
.chart-body { display: flex; align-items: stretch; gap: 9px; margin: 0 16px; }
.chart-labels { display: flex; flex-direction: column; justify-content: space-between; padding-block: 8px 9px; color: var(--muted); font-size: .875rem; }
.chart { --trend: var(--accent); }
.chart.diamond { --trend: var(--diamond); }
.chart.platinum { --trend: var(--platinum); }
.chart.gold { --trend: var(--gold); }
.chart-body svg { width: 100%; min-width: 0; height: 139px; }
.chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
#chart-fill stop { stop-color: var(--trend); }
.chart-trend { stroke: var(--trend); stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: var(--trend); }
.chart-dates { display: flex; justify-content: space-between; padding: 3px 16px 13px 61px; color: var(--muted); font-size: .8125rem; }
.chart-dates-single { justify-content: center; }
.match-feed > .segmented { padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; }
.match-feed > .segmented a, .match-feed > .segmented [aria-current="true"] { border-bottom: 2px solid transparent; border-radius: 0; background: transparent; box-shadow: none; }
.match-feed > .segmented [aria-current="true"] { border-bottom-color: var(--accent); }
.recent-form { display: grid; grid-template-columns: minmax(155px, .85fr) minmax(0, 2fr); align-items: center; gap: 12px; padding: 12px 14px; }
.recent-overview { display: flex; align-items: center; gap: 10px; }
.form-ring { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; background: conic-gradient(var(--win) var(--form-win-rate), var(--loss) 0); }
.form-ring span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--panel); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.recent-label h2 { margin: 0; font-size: 1rem; }
.recent-label p { margin: 3px 0 0; color: var(--muted); font-size: .875rem; }
.recent-placements { min-width: 0; }
.recent-placements h3 { margin: 0 0 7px; color: var(--muted); font-size: .875rem; font-weight: 650; }
.recent-placements .placement-strip { height: 8px; margin-bottom: 7px; }
.recent-placements dl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin: 0; }
.recent-placements dl div { display: flex; align-items: center; gap: 6px; }
.recent-placements dd { margin: 0; font-size: .875rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.placements { padding: 13px 16px; }
.placements h2 { margin: 0 0 .5rem; font-size: 1rem; }
.placement-strip { display: flex; height: 6px; gap: 2px; overflow: hidden; margin: 0 0 .65rem; border-radius: var(--small-radius); }
.placement-strip span { background: currentColor; }
.placements dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 0; font-size: .875rem; }
.placements dt { color: var(--muted); }
.placements dd { margin: 3px 0 0; font-weight: 650; }
.match-list, .match-lineup { list-style: none; margin: 0; padding: 0; }
.match-day h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 7px; color: var(--muted); font-size: .875rem; font-weight: 700; }
.match-day h2::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.match-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.match-card { border: 1px solid var(--match-border); border-inline-start: 3px solid var(--match-accent); border-radius: var(--radius); background: var(--match-background); }
.match-card-summary { position: relative; display: grid; grid-template-columns: minmax(133px, 1fr) minmax(0, 2.7fr); align-items: center; gap: 12px; min-height: 65px; padding: 8px 44px 8px 11px; }
.public-match-feed .match-lineup li { display: flex; align-items: center; min-width: 0; gap: 4px; }
.public-match-feed .match-lineup small { color: var(--muted); font-size: .75rem; flex-shrink: 0; }
.match-win { --match-border: var(--win-line); --match-accent: var(--win); --match-background: var(--win-surface); }
.match-loss { --match-border: var(--loss-line); --match-accent: var(--loss); --match-background: var(--loss-surface); }
.match-queue { display: flex; align-items: center; gap: 8px; }
.match-result-token { display: flex; }
.match-queue > div { display: grid; gap: 2px; font-size: .875rem; }
.match-queue .finish { min-width: 34px; min-height: 34px; border-radius: var(--control-radius); }
.match-queue > div > span { color: var(--muted); font-size: .8125rem; }
.match-lineup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 9px; }
.lineup-player { display: flex; width: fit-content; max-width: 100%; min-width: 0; align-items: center; gap: 5px; padding: 2px; color: var(--text); font-size: .875rem; }
.lineup-player:hover { color: var(--accent); text-decoration: underline; }
.lineup-viewed { color: var(--text); font-weight: 700; }
.lineup-player .avatar { width: 21px; height: 21px; border-radius: var(--small-radius); font-size: .625rem; }
.lineup-player span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineup-player small { flex: 0 0 auto; margin-inline-start: 2px; color: var(--muted); }
.match-detail-toggle { position: absolute; inset-inline-end: 2px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 44px; padding: 0; border: 0; color: var(--match-accent); background: transparent; }
.match-detail-toggle:hover, .match-detail-toggle:focus-visible { color: var(--text); }
.match-detail-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .match-detail-toggle { transition: color 140ms ease; }
  .match-detail-toggle svg { transition: transform 140ms ease; }
  .match-detail-toggle:hover svg { transform: translateY(2px); }
  .match-detail-toggle[aria-expanded="true"]:hover svg { transform: translateY(-2px) rotate(180deg); }
}
.match-expanded { margin: 0 11px 8px; border: 1px solid var(--match-border); border-radius: var(--control-radius); background: var(--panel); }
.match-expanded .history { min-width: 0; }
.match-expanded :is(th, td) { padding: 8px 12px; }
.match-expanded th { white-space: normal; }
.match-batches { display: grid; gap: 12px; min-width: 0; }
.match-load-more { width: 100%; justify-content: center; cursor: pointer; }
.match-load-more:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 810px) {
  .container { width: calc(100% - 36px); }
  .hero { background-size: 130% 100%; background-position: center; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .header-inner { column-gap: 13px; }
  .header-lookup { grid-area: 2 / 1 / 3 / -1; width: 100%; margin-bottom: 9px; }
  #view { margin-top: 24px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .leaderboard-podium { gap: 5px; }
  .podium-place { padding: 10px 4px; }
  .podium-place-1 { min-height: 192px; --podium-avatar: 42px; }
  .podium-place-2 { min-height: 171px; --podium-avatar: 35px; }
  .podium-place-3 { min-height: 154px; --podium-avatar: 30px; }
  .podium-place :is(.player-link, .division) { font-size: .8rem; }
  .podium-place-1 .player-link { font-size: .98rem; }
  .podium-games, .podium-form { display: none; }
  .profile-heading { padding: 16px; }
  .profile-sidebar { grid-template-columns: minmax(0, 1fr); }
  .match-card-summary { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .recent-form { grid-template-columns: 1fr; gap: 9px; }
  .table-footer { padding-inline: 12px; }
  .leaderboard { min-width: 0; }
  .leaderboard :is(th, td) { padding-inline: 8px; }
  .leaderboard :is(th, td):is(:nth-child(3), :nth-child(6), :nth-child(7)) { display: none; }
}
@media (max-width: 460px) {
  .container { width: calc(100% - 24px); }
  .header-inner { column-gap: 12px; }
  .brand { font-size: 1.12rem; }
  .brand-icon { margin-right: .33rem; width: 24px; height: 24px; }
  .search-form { padding-left: 13px; }
  .player-suggestions li { gap: 7px; }
  .leaderboard .avatar { display: none; }
  .match-expanded :is(th, td) { padding-inline: 6px; }
  .match-expanded .player-link .avatar { display: none; }
}
