/* Unified statistics workspace: Noctis surfaces and compact rankings. */
.stats-page{max-width:1440px;container:stats / inline-size}
.stats-heading{padding:18px 22px;margin:0 0 18px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(110deg,var(--surface),color-mix(in srgb,var(--violet) 7%,var(--surface)));min-height:100px}
.stats-heading h1{font-family:Display,Community,Arial,sans-serif;font-size:36px;font-weight:500;letter-spacing:.3px;line-height:1.15;margin-top:5px}
.stats-eyebrow{font-size:10px}
.stats-workspace{display:block}
.stats-workspace-main{min-width:0}
.stats-sections{position:static;padding:10px;border:1px solid var(--line);border-radius:11px;background:var(--surface);min-width:0;margin-bottom:16px}
.stats-sections-title{margin:0 10px 14px;color:var(--muted);font-size:10px;line-height:1.6;font-weight:500}
.stats-gameplay-tabs{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin:0;min-width:0}
.stats-gameplay-tabs a{display:flex;align-items:center;gap:9px;min-height:66px;padding:10px 5px;flex-direction:column;justify-content:center;text-align:center;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--secondary);text-decoration:none;font:11px/1.5 Community,Arial,sans-serif;min-width:0}
.stats-gameplay-tabs a>svg{width:20px;height:20px;color:var(--muted)}
.stats-gameplay-tabs a>svg:last-child{display:none}
.stats-gameplay-tabs a>span{display:grid;gap:3px;min-width:0}
.stats-gameplay-tabs b{font-size:11px;font-weight:500;white-space:nowrap}
.stats-gameplay-tabs small{display:none}
.stats-gameplay-tabs a:hover{background:var(--surface-hi);color:var(--text)}
.stats-gameplay-tabs a[aria-current]{background:var(--accent-wash);border-color:var(--accent-edge);color:var(--accent)}
.stats-gameplay-tabs a[aria-current]>svg{color:var(--accent)}
.stats-gameplay-tabs a[aria-current]>svg:last-child{opacity:1}
.stats-workspace:not(:has([data-stats-category])){grid-template-columns:minmax(0,1fr)}
.stats-sections:empty{display:none}
.stats-period-row{min-height:36px;margin:0 0 12px;gap:12px}
.stats-periods{padding:3px;gap:3px;border-radius:8px}
.stats-periods button{min-height:31px;padding:6px 12px;font-size:10px;border-radius:6px}
.stats-period-note{font-size:10px}
.stats-summary{gap:10px;margin:0 0 12px}
.stats-summary>div{padding:12px 14px;min-height:75px;border-radius:9px}
.stats-summary>div>span{gap:7px;font-size:10px;line-height:1.6;margin-bottom:6px}
.stats-summary>div>span svg{width:13px;height:13px}
.stats-summary b{font-size:22px;line-height:1.4;font-weight:550}
.stats-leaders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}
.stats-leader,.stats-leader.is-first{min-height:0;padding:12px 13px;border-radius:10px}
.stats-leader>header{font-size:10px;line-height:1.6;margin-bottom:9px}
.stats-leader>header>span{gap:5px}
.stats-leader>header svg{width:12px;height:12px}
.stats-leader>header>b{font-size:18px;color:var(--muted);font-weight:400}
.stats-leader .stats-leader-identity,.stats-leader.is-first .stats-leader-identity{min-height:35px}
.stats-leader .player-account{gap:8px}
.stats-leader .player-account__avatar,.stats-leader.is-first .player-account__avatar{width:32px;height:32px;min-width:32px;flex-basis:32px}
.stats-leader .player-account__info>strong,.stats-leader.is-first .player-account__info>strong{font-size:11px}
.stats-leader .player-account__info>small{font-size:10px}
.stats-leader .stats-game-name{font-size:10px;line-height:1.5;margin:3px 0 0 40px;max-width:calc(100% - 40px)}
.stats-leader footer,.stats-leader.is-first footer{margin-top:9px;padding-top:9px;gap:8px}
.stats-leader footer b{font-size:18px;line-height:1.3}
.stats-leader footer small{font-size:10px;margin-top:3px}
.stats-leader footer>a{width:26px;height:28px;border-radius:7px}
.stats-leader footer>a svg{width:13px;height:13px}
.stats-leader .stats-profile-cover img{opacity:.17}
.stats-leader:hover .stats-profile-cover img{opacity:.26}
.stats-person{min-width:0;max-width:100%}
.stats-person-main{display:flex;align-items:center;gap:7px;min-width:0}
.stats-person-main>.player-account{min-width:0;flex:0 1 auto}
.stats-person-country{display:flex;flex:none}
.stats-person-country:empty{display:none}
.stats-person-country .sx-country,.stats-gameplay-table .stats-player-cell .stats-person-country .sx-country{display:block;width:14px;height:10px;float:none;margin:0;object-fit:cover;border-radius:1px}
.stats-detail-identity>.stats-person{flex:1;min-width:0}
.stats-detail-identity .stats-game-name{position:static;max-width:100%;margin:6px 0 0 58px}
.stats-detail-identity .stats-person-country .sx-country{width:17px;height:12px}
.stats-gameplay-heading{display:flex;align-items:center;gap:13px;margin:0 0 14px;padding:17px 18px;background:var(--surface);border:1px solid var(--line);border-radius:11px}
.stats-category-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--accent-edge);border-radius:10px;background:var(--accent-wash);color:var(--accent);flex:none}
.stats-category-icon svg{width:19px;height:19px}
.stats-gameplay-heading h2{font-size:18px;line-height:1.4;color:var(--text);margin:0 0 3px}
.stats-gameplay-heading>div>span{font-size:10px;color:var(--muted)}
.stats-category-count{margin-left:auto;font-size:10px;color:var(--muted);white-space:nowrap}
.stats-list{padding:20px 20px 0;border-radius:11px;overflow:hidden;scroll-margin-top:calc(var(--top,64px) + 18px)}
.stats-list-heading{margin-bottom:13px}
.stats-list-heading h2{font-size:15px;gap:8px}
.stats-list-heading h2>span{font-size:10px}
.stats-refresh{font-size:10px}
#stats-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.stats-search{flex:1 1 200px;min-width:160px;min-height:43px;height:43px;padding:0 11px;border-radius:8px}
.stats-search input{font-size:12px}
.stats-sort{flex:0 1 200px;max-width:none;min-width:150px}
.stats-minimum{flex:0 1 170px;min-width:120px}
.stats-picker-trigger{height:46px;min-height:46px;padding:7px 11px;gap:8px;border-radius:8px}
.stats-picker-copy small{font-size:10px}
.stats-picker-copy b{font-size:12px}
.stats-picker-icon svg{width:14px;height:14px}
.stats-page #stats-filters .stats-search-submit,.stats-mine{font-size:10px;padding:0 10px;min-width:0;height:36px;min-height:36px;white-space:nowrap}
.stats-page #stats-filters .stats-search-submit svg,.stats-mine svg{width:13px;height:13px}
.stats-clear{border:0;background:none;padding:7px 2px;font:10px Community,Arial,sans-serif;color:var(--muted);white-space:nowrap}
.stats-clear:hover{color:var(--accent)}
.stats-feedback{font-size:10px;margin:9px 0;min-height:15px}
.stats-table{font-size:12px}
.stats-table :is(th,td){padding:14px 10px}
.stats-table thead th{height:38px;font-size:10px;background:var(--surface-hi);font-weight:400}
.stats-table .stats-player-cell{min-width:155px;width:29%}
.stats-table .player-account__avatar{width:32px;height:32px;flex-basis:32px;min-width:32px}
.stats-table .player-account__info strong{font-size:13px}
.stats-table .player-account__info small{font-size:10px}
.stats-table td>small{font-size:10px}
.stats-table .stats-game-name{font-size:10px;margin-left:42px}
.stats-table .stats-kd,.stats-table .is-metric{color:var(--accent);font-weight:550}
.stats-column-sort{display:inline-flex;justify-content:flex-end;align-items:center;gap:4px;border:0;background:none;color:var(--muted);padding:3px 0;font:inherit;white-space:nowrap}
.stats-column-sort svg{width:10px;height:10px;opacity:0}
.stats-column-sort:hover,.stats-column-sort.is-selected{color:var(--accent)}
.stats-column-sort:hover svg,.stats-column-sort.is-selected svg{opacity:1}
.stats-open a{width:25px;height:28px;border-radius:6px}
.stats-open svg{width:13px;height:13px}
.stats-list .stats-pagination{padding:15px 0}
.stats-gameplay-detail{margin:20px 0}
.stats-gameplay-detail>h2{font-size:16px;margin:0 24px 14px;color:var(--text)}
.stats-achievement-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 24px 20px;align-items:start}
.stats-achievement-group{border:1px solid var(--line);border-radius:9px;background:var(--surface);min-width:0}
.stats-achievement-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;cursor:pointer;list-style:none;font-size:12px;font-weight:500;color:var(--secondary)}
.stats-achievement-group>summary::-webkit-details-marker{display:none}
.stats-achievement-group>summary svg{width:13px;height:13px;color:var(--muted)}
.stats-achievement-group[open]>summary{background:var(--accent-wash);color:var(--accent);border-bottom:1px solid var(--line)}
.stats-achievement-group[open]>summary svg{rotate:180deg}
.stats-achievement-groups dl{padding:13px 15px;margin:0;display:grid;gap:10px}
.stats-achievement-groups dl>div{display:flex;justify-content:space-between;gap:15px;font-size:10px}
.stats-achievement-groups dt{color:var(--muted);font-weight:400}
.stats-achievement-groups dd{color:var(--text);font-variant-numeric:tabular-nums;margin:0;text-align:right}
.stats-achievement-groups>section{border:1px solid var(--line);border-radius:9px;background:var(--surface);padding:14px}
.stats-achievement-groups>section h3{color:var(--text);font-size:12px;margin:0 0 12px}

.stats-sections-title,.stats-category-picker{display:none}
.stats-overview{margin-bottom:16px}
.stats-overview>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;color:var(--muted);font-size:11px;padding:2px 0 10px;width:max-content}
.stats-overview>summary::-webkit-details-marker{display:none}
.stats-overview>summary svg{width:12px;height:12px}
.stats-overview[open]>summary svg{rotate:180deg}
.stats-list-actions{display:flex;align-items:center;gap:16px}
.stats-list-actions .stats-clear,.stats-list-actions .stats-refresh{font-size:11px}
.stats-list-heading{margin-bottom:16px}
.stats-list-heading h2{font-size:17px}
.stats-page #stats-filters .stats-search-submit,.stats-mine{height:40px;min-height:40px;padding:0 14px;font-size:11px}
.stats-search{height:46px;min-height:46px}
.stats-refresh{color:var(--accent)}
.stats-leader{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;cursor:pointer}
.stats-leader>header{grid-column:1/-1;margin-bottom:8px;font-size:10px}
.stats-leader>header>b{font-size:16px}
.stats-leader .stats-leader-identity{grid-column:1;min-height:0}
.stats-leader .player-account__avatar{width:36px;height:36px;min-width:36px;flex-basis:36px}
.stats-leader .player-account__info>strong{font-size:13px}
.stats-leader .player-account__info>small{font-size:9px}
.stats-leader footer,.stats-leader.is-first footer{grid-column:2;align-self:center;gap:8px;border:0;margin:0;padding:0}
.stats-leader footer b{font-size:20px;white-space:nowrap}
.stats-leader footer small{font-size:9px;max-width:125px}
.stats-leader .stats-game-name{font-size:9px;max-width:calc(100% - 42px)}
.stats-leader footer>a{width:25px;height:29px}
.stats-leaders{margin-bottom:0}
.stats-table .stats-game-name{font-size:9px;line-height:1.5}
.stats-table thead th{height:42px;font-size:11px}
.stats-compact-score{display:none}
.stats-table .is-metric{font-size:13px}
@container stats (max-width:1050px){
 .stats-gameplay-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
 .stats-gameplay-tabs a{flex-direction:row;justify-content:flex-start;text-align:left;padding:10px 12px;min-height:46px;gap:8px}
 .stats-gameplay-tabs b{font-size:12px}
 #stats-filters .stats-search{flex-basis:100%}
 .stats-sort,.stats-minimum{flex:1;max-width:none}
 .stats-leader{column-gap:6px;padding:12px 10px}
 .stats-leader footer b{font-size:17px}
 .stats-leader footer>a{display:grid;width:23px;height:27px}
 .stats-leader .player-account__info>strong{font-size:11px}
 .stats-leader .player-account__avatar{width:30px;height:30px;min-width:30px;flex-basis:30px}
 .stats-leader footer small{font-size:8px;max-width:98px}
}
@container stats (max-width:800px){
 .stats-leaders{grid-template-columns:minmax(0,1fr);gap:7px}
 .stats-leader,.stats-leader.is-first{grid-template-columns:120px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px}
 .stats-leader>header{grid-column:1;margin:0}
 .stats-leader>header>b{display:none}
 .stats-leader .stats-leader-identity{grid-column:2;min-height:0}
 .stats-leader footer,.stats-leader.is-first footer{grid-column:3;gap:8px;margin:0;padding:0}
 .stats-leader .stats-game-name{display:none}
 .stats-leader footer small{display:none}
 .stats-leader footer b{font-size:17px}
 .stats-summary b{font-size:20px}
 .stats-summary>div{padding:11px}
}
@container stats (max-width:620px){
 .stats-heading{min-height:0;padding:16px;gap:14px;margin-bottom:12px}
 .stats-heading h1{font-size:30px}
 .stats-server-choice{width:100%;max-width:100%}
 .stats-server-tabs{overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
 .stats-server-tabs::-webkit-scrollbar{display:none}
 .stats-server-tabs button{flex:0 0 auto;padding-inline:12px;max-width:none;font-size:11px}
 .stats-sections{padding:0;border:0;margin-bottom:12px;background:none}
 .stats-gameplay-tabs{display:none}
 .stats-category-picker{display:block;width:100%}
 .stats-category-picker>select{width:100%}
 .stats-category-picker .stats-picker-trigger{height:51px;min-height:51px;background:var(--surface)}
 .stats-period-row{flex-wrap:wrap;gap:7px;margin-bottom:12px}
 .stats-periods{display:flex;width:100%}
 .stats-periods button{flex:1;padding:7px;font-size:10px;min-height:32px}
 .stats-period-note{font-size:10px}
 .stats-overview{margin:0 0 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);overflow:hidden}
 .stats-overview>summary{width:100%;justify-content:space-between;padding:11px 13px;font-size:11px;color:var(--secondary)}
 .stats-overview[open]>summary{border-bottom:1px solid var(--line)}
 .stats-overview [data-stats-overview]{padding:10px}
 .stats-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .stats-summary>div{min-height:64px;padding:10px}
 .stats-summary b{font-size:19px}
 .stats-summary>div>span{font-size:10px;gap:5px}
 .stats-summary>div>span svg{width:12px;height:12px}
 .stats-leader,.stats-leader.is-first{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}
 .stats-leader>header{grid-column:1/-1;margin-bottom:3px}
 .stats-leader .stats-leader-identity{grid-column:1}
 .stats-leader footer,.stats-leader.is-first footer{grid-column:2}
 .stats-list{padding:15px 12px 0;overflow:visible}
 .stats-list-heading{gap:8px;align-items:center;margin-bottom:13px}
 .stats-list-heading h2{font-size:15px;gap:5px}
 .stats-list-actions{gap:10px}
 .stats-list-actions .stats-clear,.stats-list-actions .stats-refresh{font-size:9px}
 .stats-list-actions .stats-refresh svg{width:11px;height:11px}
 #stats-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #stats-filters .stats-search{grid-column:1/-1;width:100%;min-width:0}
 #stats-filters .stats-sort,#stats-filters .stats-minimum{width:100%;min-width:0;max-width:none}
 .stats-page[data-kind=jailgameplay] #stats-filters .stats-sort{grid-column:1/-1}
 .stats-picker-trigger{min-height:47px;height:47px;padding:8px 10px}
 .stats-picker-copy small{font-size:9px}
 .stats-picker-copy b{font-size:11px}
 #stats-filters .stats-mine,#stats-filters .stats-search-submit{width:100%;min-width:0;justify-content:center;font-size:11px}
 .stats-search input{font-size:12px}
 .stats-search{height:45px;min-height:45px}
 .stats-feedback{margin:10px 0;font-size:9px}
 .stats-table-wrap{overflow:visible}
 .stats-table,.stats-jail-table,.stats-gameplay-table{display:block;min-width:0;width:100%}
 .stats-table thead{display:none}
 .stats-table tbody{display:block;width:100%}
 .stats-table tbody tr{display:grid;grid-template-columns:22px minmax(0,1fr) 20px;align-items:center;gap:7px;border-bottom:1px solid var(--line);padding:13px 0;background:none;border-radius:0;cursor:pointer}
 .stats-table tbody td{display:none!important;border:0;min-width:0;white-space:normal;padding:0}
 .stats-table tbody .stats-place{display:block!important;grid-column:1;position:static;font-size:10px;text-align:left}
 .stats-table tbody .stats-player-cell{display:flex!important;grid-column:2;align-items:center;justify-content:space-between;gap:10px;width:auto;min-width:0;max-width:100%;padding:0;margin:0;border:0}
 .stats-table tbody .stats-open{display:block!important;grid-column:3;position:static;text-align:right;padding:0}
 .stats-open a{display:grid;width:20px;height:28px;background:transparent;border:0}
 .stats-open svg{width:13px;height:13px}
 .stats-player-cell>.stats-person{min-width:0;flex:1}
 .stats-player-cell .player-account{gap:8px}
 .stats-player-cell .player-account__avatar{width:32px;height:32px;flex-basis:32px;min-width:32px}
 .stats-player-cell .player-account__info strong{font-size:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .stats-player-cell .player-account__info small{font-size:9px}
 .stats-player-cell .stats-game-name{font-size:8px;max-width:calc(100% - 40px);margin-left:40px}
 .stats-person-main{gap:4px}
 .stats-person-country .sx-country{width:12px;height:9px}
 .stats-compact-score{display:grid;gap:5px;text-align:right;flex:0 0 auto;max-width:105px}
 .stats-compact-score small{font-size:8px;color:var(--muted);font-weight:400;line-height:1.5}
 .stats-compact-score b{font-size:12px;color:var(--accent);font-weight:550;line-height:1.5;white-space:nowrap}
 .stats-pagination{padding-top:17px}
 .stats-gameplay-heading{padding:14px;margin-bottom:13px;gap:10px}
 .stats-gameplay-heading h2{font-size:18px}
 .stats-gameplay-heading>div>span{font-size:10px}
 .stats-category-count{font-size:10px}
}
@media(max-width:620px){.stats-achievement-groups{grid-template-columns:minmax(0,1fr);padding:0 18px 18px}.stats-gameplay-detail>h2{margin-left:18px}}

@container stats (max-width:620px){.stats-player-cell .stats-person-main>.player-account{flex:1 1 0%;width:0;min-width:0}.stats-player-cell .player-account__info{overflow:hidden}.stats-compact-score{max-width:96px}.stats-compact-score small{overflow-wrap:anywhere}.stats-compact-score b{font-size:11px}}

@container stats (max-width:620px){.stats-table tbody .stats-open{width:20px;min-width:0;max-width:20px}.stats-compact-score{max-width:105px}.stats-compact-score b{font-size:12px}}
