/* 0.8: one primary home per metric, a full-width scoreboard, and readable supporting data. */
:root{--bg:#f3f5f7;--ink:#203243;--muted:#627486;--line:#dfe6ec}
body{font-size:14px}.scope-label,.data-note,.panel-footnote,.season-note{color:#617486;font-size:12px;line-height:1.7}.section-heading h2{font-size:21px}.section-heading .eyebrow{font-size:10px;color:#64778a}.section-heading{margin-top:28px}.lookup{display:block;padding:24px 0}.lookup-title{display:none}.search-controls input{font-size:15px}.search-controls select,.search-controls button{font-size:13px}.lookup-help{font-size:12px}.recent-searches{font-size:12px}
.profile{min-height:192px;padding:26px 32px}.profile-title h2{font-size:34px}.profile-meta{font-size:12px;color:#cedbe3}.profile-location small{font-size:10px;color:#a7bac8}.profile-update,.copy-subject{font-size:11px;color:#afc4d2}.rank-caption{font-size:12px;color:#c0d1dd}.rank-rr{font-size:12px}.rank-peak{font-size:11px}.profile-rank{min-width:185px}.profile-art{opacity:.4}.profile-kicker{color:#b0c4d2}.level-badge{font-size:11px}
.metric-grid{gap:12px}.metric{padding:19px 18px;min-height:145px;overflow:visible}.metric-label{font-size:13px;color:#506477}.metric-value{font-size:31px;letter-spacing:-.6px;margin:7px 0}.metric-caption{font-size:11px;color:#687c8e;white-space:normal;line-height:1.5}.metric-ranking{display:block;color:#247b69;font-size:11px;font-weight:550;margin-top:7px}
.analysis-layout{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:18px;margin-top:18px}.season-heading{min-height:56px}.season-title{font-size:15px}.season-scope{font-size:11px;color:#728394}.season-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 16px;padding:20px 0}.season-stat span{font-size:12px;color:#5a7083}.season-stat strong{font-size:23px;color:#263f53}.season-stat .metric-ranking{font-size:10px}.season-note{font-size:11px}.source-supplement{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 10px;padding:14px 0;border-top:1px solid var(--line);font-size:12px;color:#617486}.source-supplement strong{margin-right:12px;color:#253e50}.source-supplement small{font-size:10px;color:#788b9a}.rank-panel .panel-heading{min-height:56px}.panel-heading h3{font-size:15px}.rank-trend-summary{padding-top:12px}.rank-trend-summary strong{font-size:27px}.rank-trend-summary span{font-size:12px;color:#687e90}.rr-chart{height:110px}.chart-axis{font-size:11px;color:#6a7d8f}.rank-panel .data-note{margin:8px 22px 14px;font-size:11px}.stats-table th{font-size:12px;color:#5c7285}.stats-table td{font-size:13px}.stat-identity strong,.companion-identity strong{font-size:13px}.stat-identity small{font-size:11px}.expand-stats{padding:12px;font-size:12px}
.workspace{display:block}.history{margin-bottom:18px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.history-heading{padding:13px 16px}.history-heading h3{font-size:14px}.history-heading>span{font-size:11px;color:#63788a}.history-foot{display:none}.match-list{display:flex;gap:8px;overflow-x:auto;max-height:none;padding:10px;scroll-snap-type:x proximity;scrollbar-width:thin}.match-option{flex:0 0 240px;min-width:0;min-height:96px;border:1px solid #e0e7ed;border-radius:6px;padding:12px;scroll-snap-align:start}.match-option.selected{border-color:#498f85;box-shadow:inset 0 0 0 1px #498f85;background:#eef7f4}.match-mode{font-size:12px;color:#526a7c}.match-kda{font-size:17px;color:#253f52}.match-date{font-size:11px;color:#6c7f8f}.match-result,.match-rr{font-size:11px}.match-avatar{width:34px;height:44px}.match-side{gap:4px}.recent-summary{margin-bottom:16px;padding:14px 0}.recent-summary span{font-size:12px;color:#5c7285}.recent-summary strong{font-size:16px}.detail{border-radius:8px;overflow:hidden}.match-hero{height:162px}.hero-content{padding:22px 26px;width:80%}.hero-eyebrow{font-size:12px}.match-map-title{font-size:28px;line-height:1.2;letter-spacing:.2px;margin:9px 0 17px}.hero-meta{gap:26px}.hero-mode,.hero-time,.hero-rank small{font-size:12px}.hero-time{color:#b4c8d5}.hero-score{font-size:27px}.hero-agent{height:400px;width:32%;top:-40px;right:5%;opacity:.68}.hero-agent-name{display:none}.detail-tabs{height:56px;gap:30px}.detail-tab{font-size:14px}.detail-context{font-size:11px;color:#677d90}.detail-panel{padding:18px}.board-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.board-tools>div{display:flex;flex-direction:column;gap:3px}.board-tools strong{font-size:14px}.board-tools span{font-size:12px;color:#6a7c8b}.expand-player-data{background:#eef3f6;color:#345c74;border:1px solid #d8e3ea;border-radius:5px;padding:8px 12px;font-size:12px;white-space:nowrap}.board-swipe-hint{font-size:12px;color:#557083}.board{gap:20px}.team-head{min-height:44px;padding:0 16px}.team-head h3{font-size:13px}.team-head span{font-size:12px;opacity:1}.team-section{border-radius:6px}.board-table{font-size:14px;table-layout:fixed}.board-table th{height:40px;font-size:12px;color:#5e7386;padding:10px 14px;background:#f5f8fa}.board-table td{padding:12px 14px;height:76px;font-size:14px;color:#2e485d;border-color:#e8edf1}.board-table th:first-child{width:auto}.board-table .numeric{text-align:right}.board-table .score-cell{font-size:19px;font-weight:700;color:#225a70}.board-table .kda-cell strong{font-size:14px;font-weight:600}.player-cell{gap:10px}.player-avatar{width:34px;height:42px}.player-identity{min-width:0;flex:1}.player-name-line{display:flex;align-items:center;gap:6px}.board-table .player-name{max-width:none;white-space:normal;overflow-wrap:anywhere;line-height:1.4;font-size:13px;color:#223d52}.player-meta{display:flex;align-items:center;gap:6px;margin-top:4px;flex-wrap:wrap}.player-meta .rank-badge{--rank-size:23px}.player-agent-name{font-size:11px;margin:0;color:#657e91}.target-label{font-size:10px;color:#277e68}.player-expand{padding:0;margin-left:4px;font-size:12px;color:#2c698d;background:none;white-space:nowrap}.player-expand:hover{color:#184661;text-decoration:underline}.board-table .player-more>td{position:static;height:auto;background:#f5f8fa!important;padding:18px 22px;white-space:normal}.board-scroll{container-type:inline-size}.player-extra{width:calc(100cqw - 44px)}.player-extra-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px 16px;margin:0}.player-extra-grid dt{font-size:12px;color:#637a8d}.player-extra-grid dd{margin:4px 0 0;font-size:18px;font-weight:650;color:#2b485d;line-height:1.35;overflow-wrap:anywhere}.player-honors{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.player-honors .kill-badge{font-size:11px;padding:3px 7px}.award-badge{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;flex:none;padding:4px;border-radius:6px;background:#fff2c9;color:#a87914;border:1px solid #ead18b}.award-badge svg{width:19px;height:19px;fill:currentColor}.team-mvp-badge{background:#eaf1fb;color:#4c71a4;border-color:#c8d8ed}.derived-award{border-style:dashed}.match-side .award-badge,.hero-eyebrow .award-badge{padding:3px;font-size:inherit}.match-side .award-badge{width:23px;height:23px}.match-metrics{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.personal-analysis{padding:8px}.analysis-heading h3{font-size:16px}.match-metric>span,.match-metric>small,.side-heading>span,.analysis-facts{font-size:12px;color:#657c8e}.match-metric>strong{font-size:27px}.analysis-subheading{font-size:14px}.side-heading h4{font-size:14px}.damage-readout{font-size:13px}.damage-column{font-size:11px}.result-tools,.footer{font-size:12px}.result-tools button{font-size:12px}
@media(max-width:1000px){.analysis-layout{grid-template-columns:1fr 1fr}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.season-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile{gap:22px}.player-extra-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.app-shell{padding:0 14px}.lookup{padding:18px 0}.search-controls input{font-size:12px}.search-controls select,.search-controls button{font-size:11px}.lookup-help{font-size:11px;line-height:1.6}.profile{padding:22px 20px}.profile-title h2{font-size:27px}.profile-meta{font-size:11px;gap:8px}.profile-rank{padding-top:12px}.profile-rank .rank-caption{font-size:11px}.rank-rr,.rank-peak{font-size:10px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric{min-height:140px;padding:15px 13px}.metric-label{font-size:12px}.metric-value{font-size:29px}.metric-caption,.metric-ranking{font-size:11px}.analysis-layout{grid-template-columns:1fr}.season-title{font-size:14px}.season-grid{gap:18px 10px}.season-stat span{font-size:12px}.season-stat strong{font-size:22px}.section-heading h2{font-size:20px}.section-heading .scope-label{font-size:11px}.history-heading{padding:12px}.match-option{flex-basis:230px}.match-date{font-size:11px}.match-hero{height:156px}.hero-content{padding:20px;width:100%}.match-map-title{font-size:26px;margin:8px 0 16px}.hero-meta{gap:18px}.hero-mode,.hero-time{font-size:11px}.hero-agent{opacity:.3;width:45%;right:-12px}.hero-score{font-size:24px}.detail-tabs{gap:23px;padding:0 14px;overflow-x:auto}.detail-tab{font-size:13px;flex:none}.detail-panel{padding:12px}.detail-context{display:none}.board-tools{align-items:flex-start;flex-direction:column;gap:10px}.board-tools span{font-size:11px;line-height:1.7}.board-table col:first-child{width:180px!important}.board-table th:first-child{width:auto}.board-table td{padding:11px 10px}.board-table .player-name{font-size:12px;max-width:none}.board-table .player-agent-name{font-size:11px}.player-avatar{width:26px;height:34px}.player-cell{gap:7px}.player-meta{gap:4px}.player-meta .rank-badge{--rank-size:20px}.player-name-line{gap:4px}.player-name-line .award-badge{width:22px;height:22px;padding:3px}.target-label{font-size:9px}.team-head{padding:0 12px;gap:10px}.team-head span{font-size:10px}.team-head h3{font-size:12px}.board-table .player-more>td{padding:16px 12px}.player-extra{width:calc(100cqw - 24px)}.player-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.player-extra-grid dt{font-size:12px}.player-extra-grid dd{font-size:19px}.recent-summary span{font-size:11px}.recent-summary strong{font-size:14px}.result-tools{font-size:11px}.footer{font-size:10px}.analysis-heading h3{font-size:14px}.match-metric>span,.match-metric>small{font-size:11px}.personal-analysis{padding:3px}.career-panel .scope-label{font-size:11px}.career-panel .panel-heading h3{font-size:14px}.panel-footnote{font-size:11px}.stats-table th,.stats-table td{font-size:12px}.stat-identity strong{font-size:12px}}
/* Expand player details from the whole scoreboard row. */
.history-anchor{height:0;pointer-events:none}
.history-dock{position:sticky;top:8px;z-index:20;margin-bottom:18px;pointer-events:none}
.history-dock .history{margin-bottom:0;pointer-events:auto}
.history.is-compact{display:flex;align-items:center;box-shadow:0 5px 22px #20324324;border-color:#c4d4dc;background:#fff}
.history.is-compact .history-heading{flex:none;padding:10px 14px;border-bottom:0;border-right:1px solid var(--line)}
.history.is-compact .history-heading h3{font-size:12px;white-space:nowrap}
.history.is-compact .history-heading>span{display:none}
.history.is-compact .match-list{flex:1;min-width:0;gap:6px;padding:8px}
.history.is-compact .match-option{flex-basis:208px;grid-template-columns:24px minmax(0,1fr) auto;gap:7px;min-height:64px;padding:7px 9px}
.history.is-compact .match-avatar,.history.is-compact .match-avatar-placeholder{width:24px;height:30px;font-size:12px}
.history.is-compact .match-mode{font-size:11px;line-height:1.4;white-space:nowrap}
.history.is-compact .match-kda{font-size:13px;line-height:1.5;margin:2px 0}
.history.is-compact .match-date{font-size:10px;line-height:1.4;white-space:nowrap}
.history.is-compact .match-side{display:grid;gap:4px;align-items:center;justify-items:end;line-height:1.4}
.history.is-compact .match-result,.history.is-compact .match-rr,.history.is-compact .match-status{grid-column:1;font-size:10px;white-space:nowrap}
.history.is-compact .match-side .award-badge{grid-column:2;grid-row:1 / span 2;width:20px;height:20px;padding:2px}
.history-dock .match-option:focus-visible{outline:2px solid #277e68;outline-offset:2px}
@media(max-width:600px){.history.is-compact .history-heading{display:none}.history.is-compact .match-option{flex-basis:192px}.history.is-compact .match-list{padding:6px}}

.board-table .player-row.has-player-details{cursor:pointer}
.board-table .player-row.has-player-details:hover>td{background:#eef5f8}
.board-table .player-row.target.has-player-details:hover>td{background:#e5f2ee}
.board-table .player-row:focus-within>td{box-shadow:inset 0 2px #7ca5b7,inset 0 -2px #7ca5b7}

/* Keep ratings and official honors visible in the collapsed player row. */
.player-identity .player-honors{margin-top:7px;gap:5px;align-items:center}
.player-identity .player-honors .kill-badge{font-size:10px;line-height:1.5;padding:2px 6px;white-space:nowrap}
.player-rating{display:inline-flex;align-items:center;gap:6px;padding:2px 6px;border:1px solid #d5e3e9;border-radius:4px;background:#edf4f7;color:#466577;font-size:10px;line-height:1.5;white-space:nowrap}
.player-rating strong{font-size:13px;color:#253f53;line-height:1}
@media(max-width:600px){.player-identity .player-honors{gap:4px}.player-identity .player-honors .kill-badge,.player-rating{padding:2px 4px;font-size:10px}}

/* Query identity: agent portrait and one-click full game ID. */
.profile-title{align-items:flex-start}
.profile-identity{min-width:0;flex:1}
.profile-agent{width:64px;height:72px;object-fit:contain;flex:none;border:1px solid #64829680;border-radius:8px;background:linear-gradient(145deg,#314c5e,#1c2d3b)}
.profile-agent.empty-art{display:block;background:linear-gradient(145deg,#314c5e,#1c2d3b)}
.copy-game-id{padding:0;background:transparent;border:0;color:inherit;font:inherit;letter-spacing:inherit;text-align:left;line-height:inherit;overflow-wrap:anywhere;border-radius:4px}
.copy-game-id:hover{color:#d3efe9}
.copy-game-id:focus-visible{outline:2px solid #9ddbd0;outline-offset:5px}
.copy-game-id-icon{display:inline-block;vertical-align:middle;margin-left:10px;font-size:18px;font-weight:400;letter-spacing:0;color:#aac4cf}
.profile-utility{flex-wrap:wrap;min-height:18px}
.profile-created{color:#afc4d2;font-size:11px}
.profile-copy-status{color:#a4e6d2;font-size:11px}
.profile-copy-status:empty{display:none}
@media(max-width:600px){.profile-agent{width:48px;height:56px}.copy-game-id-icon{font-size:16px;margin-left:7px}.profile-utility{gap:8px}}

/* Fixed ten-match query: give the former selector space back to the game ID. */
.search-controls{grid-template-columns:24px minmax(0,1fr) 124px}
@media(max-width:600px){.search-controls{grid-template-columns:19px minmax(0,1fr) 83px}}
