.stats-content { display:grid;gap:20px;min-width:0; }
.stats-filters {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:22px;}
.stats-filters>div {flex:1;min-width:200px;}
.stats-filters h2,.stats-panel h3 {margin:0 0 8px;}
.stats-filters p,.stats-panel>p,.stats-season-copy p,.stats-season-copy small {color:var(--text-muted);font-size:13px;line-height:1.6;}
.stats-filters select {background:var(--bg-card,var(--ink-800));color:var(--text-primary);border:1px solid var(--border-color,var(--ink-650));border-radius:9px;padding:11px 30px 11px 12px;font:inherit;max-width:100%;}
.stats-season-hero {display:flex;align-items:center;gap:28px;padding:28px;background:linear-gradient(120deg,var(--amber-500-a08),transparent),var(--bg-card,var(--ink-800));border:1px solid var(--amber-500-a30);border-radius:16px;}
.stats-rank-badge {display:grid;justify-items:center;text-align:center;gap:10px;min-width:125px;color:var(--color-primary,var(--amber-400));}
.stats-rank-badge>span {font-size:70px;line-height:1;}
.stats-rank-badge>strong {font-size:12px;text-transform:uppercase;letter-spacing:1.5px;}
.stats-season-copy {flex:1;min-width:0;}.stats-season-copy h2 {font-size:34px;margin:8px 0;font-variant-numeric:tabular-nums;}.stats-season-copy small {display:block;}
.stats-eyebrow {font-size:11px;letter-spacing:1.3px;text-transform:uppercase;color:var(--color-primary);}
.stats-season-copy progress {max-width:340px;width:100%;height:7px;}
.stats-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.stats-metric {padding:20px;border:1px solid var(--border-color,var(--ink-650));border-radius:12px;background:var(--bg-card,var(--ink-800));display:grid;gap:12px;}
.stats-metric span {font-size:12px;color:var(--text-muted);}.stats-metric strong {font-size:28px;font-variant-numeric:tabular-nums;}
.stats-panel {background:var(--bg-card,var(--ink-800));border:1px solid var(--border-color,var(--ink-650));border-radius:14px;padding:24px;min-width:0;}
.stats-chart svg {width:100%;height:auto;display:block;overflow:visible;}.stats-chart text {fill:var(--text-muted);font:11px sans-serif;}.stats-gridline {stroke:var(--border-color,var(--ink-650));}.stats-line {stroke:var(--color-primary,var(--amber-400));stroke-width:2.5;fill:none;}.stats-chart circle {fill:var(--color-primary,var(--amber-400));stroke:var(--bg-card,var(--ink-800));stroke-width:2;}
.stats-chart-data {font-size:12px;color:var(--text-muted);}.stats-chart-data summary {cursor:pointer;}.stats-chart-data li {padding:4px;}
.stats-empty {padding:30px 0;text-align:center;color:var(--text-muted);}
.stats-form {display:flex;gap:6px;flex-wrap:wrap;margin:16px 0;}.stats-form-result {width:28px;height:28px;display:grid;place-items:center;border-radius:6px;background:var(--ink-650);color:var(--red-400);}.stats-form-result.is-win {color:var(--green-400);background:color-mix(in srgb,var(--green-400) 12%,transparent);}
.stats-history-row {width:100%;display:grid;grid-template-columns:130px minmax(0,1fr) 105px 50px;gap:14px;align-items:center;text-align:left;padding:16px 0;border:0;border-bottom:1px solid var(--border-color,var(--ink-650));background:transparent;color:var(--text-primary);font:inherit;cursor:pointer;}
.stats-history-row:hover {background:var(--white-a06);}.stats-history-row b {display:block;font-size:13px;line-height:1.5;}.stats-history-row small {display:block;color:var(--text-muted);font-size:11px;margin-top:5px;}.stats-history-row time {font-size:11px;color:var(--text-muted);}.stats-result {font-size:11px;color:var(--text-muted);}.stats-result.is-win {color:var(--green-400);}.stats-delta {text-align:right;font-variant-numeric:tabular-nums;font-size:13px;}
.stats-pagination {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;font-size:12px;}.stats-pagination button {font-size:12px;min-width:0;}
.stats-profession {display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border-color,var(--ink-650));font-size:12px;}.stats-profession span:last-child {color:var(--text-muted);text-align:right;}
.stats-awards {display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}.stats-awards span {border:1px solid var(--amber-500-a30);border-radius:20px;color:var(--color-primary);font-size:11px;padding:5px 10px;}
.stats-match-dialog {background:var(--bg-card,var(--ink-800));color:var(--text-primary);border:1px solid var(--border-color,var(--ink-650));border-radius:18px;width:min(760px,calc(100vw - 28px));max-height:85dvh;padding:24px;}.stats-match-dialog::backdrop {background:rgba(0,0,0,.75);}.stats-match-dialog>button {display:block;margin-left:auto;}.stats-match-roster>div {display:grid;grid-template-columns:1fr 1fr 1fr 45px;gap:12px;border-bottom:1px solid var(--border-color,var(--ink-650));padding:14px 0;font-size:12px;}.stats-match-roster a {color:var(--color-primary);}.stats-report-checks {display:grid;gap:12px;margin:20px 0;}.stats-report-check {display:flex;gap:10px;flex-wrap:wrap;font-size:12px;}.stats-report-check strong {margin-left:auto;}.stats-report-check progress {width:100%;height:7px;accent-color:var(--green-400);}.stats-report-check progress.is-failed {accent-color:var(--red-400);}
.ranked-panel {padding:24px;margin:24px 0;border:1px solid var(--amber-500-a30);border-radius:16px;background:linear-gradient(120deg,var(--amber-500-a08),transparent),var(--bg-card,var(--ink-800));}.ranked-panel h2 {font-size:22px;}.ranked-panel p {font-size:13px;line-height:1.7;color:var(--text-muted);}.ranked-actions {display:flex;gap:12px;align-items:center;flex-wrap:wrap;}.ranked-leaderboard {margin-top:20px;}.ranked-leaderboard summary {cursor:pointer;font-size:13px;}.ranked-leaderboard ol {list-style:none;padding:0;margin-top:16px;}.ranked-leaderboard li {display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--border-color,var(--ink-650));font-size:13px;}.ranked-leaderboard a {flex:1;color:var(--text-primary);}.ranked-leaderboard select {margin-top:16px;background:var(--bg-body);color:var(--text-primary);padding:8px;border:1px solid var(--border-color,var(--ink-650));border-radius:7px;}
@media(min-width:1100px){.stats-metrics {grid-template-columns:repeat(6,minmax(0,1fr));}}
@media(max-width:640px){.stats-season-hero {padding:20px;gap:16px;}.stats-rank-badge {min-width:74px;}.stats-rank-badge>span {font-size:50px;}.stats-rank-badge>strong {font-size:9px;}.stats-season-copy h2 {font-size:27px;}.stats-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}.stats-metric {padding:15px;}.stats-metric strong {font-size:24px;}.stats-panel {padding:16px;}.stats-history-row {grid-template-columns:90px minmax(0,1fr) 35px;gap:9px;}.stats-history-row time {grid-column:2;grid-row:auto;}.stats-history-row .stats-delta {grid-column:3;grid-row:1;}.stats-history-row .stats-result {font-size:10px;}.stats-match-roster>div {grid-template-columns:1fr 1fr;}.stats-filters select {flex:1;min-width:0;}.ranked-panel {padding:18px;}}

.stats-season-copy progress {accent-color:var(--color-primary);}
@media(max-width:640px){.stats-filters>div {flex-basis:100%;}.stats-filters select {flex:1 1 calc(50% - 6px);width:calc(50% - 6px);}.stats-chart svg {min-height:145px;}}

#profileStatistics,#playerStatistics{min-width:0;width:100%;padding-bottom:24px;box-sizing:border-box}.stats-filters>div:not(.bunker-select){flex:1;min-width:180px}.stats-filters>.bunker-select{flex:0 1 195px;min-width:150px}.stats-history-row>*{min-width:0;overflow-wrap:anywhere}.stats-empty-state{text-align:center;padding:28px 20px}.stats-empty-state p{margin:12px 0 20px}.stats-empty-symbol{font-size:38px;color:var(--color-primary)}.profile-tabs{min-width:0;overflow-x:auto}@media(max-width:640px){.stats-filters>div:not(.bunker-select){flex-basis:100%}.stats-filters>.bunker-select{flex:1 1 calc(50% - 6px);min-width:0}}

.stats-season-hero{display:grid;grid-template-columns:150px minmax(0,1fr);gap:26px 32px;padding:30px;border-color:#d9a33f45;background:radial-gradient(ellipse at 5% 15%,#d9a32310,transparent 60%),var(--bg-card)}
.stats-rank-badge{align-self:center;min-width:0;gap:15px}
.stats-rank-badge>.stats-rank-emblem{position:relative;isolation:isolate;display:grid;place-items:center;width:104px;height:116px;font:800 38px/1 var(--font-display);color:#ffe0a0;background:linear-gradient(135deg,#ffe9a8,#be841d 60%,#78521b);clip-path:polygon(50% 0,94% 24%,94% 76%,50% 100%,6% 76%,6% 24%)}
.stats-rank-emblem::before{content:"";position:absolute;z-index:-1;inset:2px;clip-path:inherit;background:linear-gradient(145deg,#29251b,#141619 75%)}
.stats-rank-badge>strong{font-size:15px;line-height:1.5;letter-spacing:0;text-transform:none}
.stats-season-copy h2{font-size:36px;letter-spacing:-.035em;line-height:1.3;margin:10px 0}
.stats-season-copy .stats-rank-progress{display:block;appearance:none;overflow:hidden;width:100%;max-width:440px;height:5px;border:0;border-radius:8px;background:#ffffff0a;margin:18px 0 10px}
.stats-rank-progress::-webkit-progress-bar{background:#ffffff0a;border-radius:8px}
.stats-rank-progress::-webkit-progress-value{background:linear-gradient(90deg,#a77825,#ffb62b);border-radius:8px}
.stats-rank-progress::-moz-progress-bar{background:linear-gradient(90deg,#a77825,#ffb62b);border-radius:8px}
.stats-season-copy .stats-rank-next{color:#d8bb81;margin-bottom:10px;font-size:12px}
.stats-season-copy .stats-rank-qualification{font-size:11px;margin-top:5px}
.stats-season-toplink{display:inline-flex;align-items:center;margin-top:15px;padding:8px 12px;border:1px solid #d5a34740;border-radius:7px;background:#d5a34708;color:#e9c275;font-size:11px;font-weight:600}
.stats-season-toplink:hover{border-color:#d5a34799;color:#ffca69}
.stats-history{gap:10px}.stats-history-row{position:relative;padding:18px;border:1px solid #ffffff0c;border-radius:12px;background:linear-gradient(120deg,#ffffff03,#ffffff01);transition:background .15s,border-color .15s}.stats-history-row:hover,.stats-history-row:focus-visible{background:linear-gradient(120deg,#d9a33f0b,#ffffff03);border-color:#d9a33f55;outline:none}.stats-history-row:focus-visible{box-shadow:0 0 0 2px #d9a33f22}.stats-history-row .stats-result{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 9px;border:1px solid #ffffff10;border-radius:7px;background:#ffffff03;width:fit-content}.stats-history-row .stats-result.is-win{border-color:#76c99830;background:#76c99809}.stats-match-dialog{margin:auto;box-shadow:0 24px 100px #0009}.stats-history-row .stats-delta{font-weight:700}
.stats-rating-breakdown{grid-column:1/-1;padding-top:9px;font-size:11px;line-height:1.7;color:var(--text-muted)}.stats-rating-breakdown summary{cursor:pointer;color:var(--color-primary-light)}.stats-report-checks{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-report-check{padding:14px;border:1px solid #ffffff10;border-radius:10px;background:#ffffff02;line-height:1.6}.stats-match-dialog h2{margin:10px 0;font-size:24px}.stats-match-dialog>div>p{color:var(--text-muted);font-size:12px;line-height:1.7}.stats-match-roster{margin-top:24px}@media(max-width:640px){.stats-report-checks{grid-template-columns:1fr}}

/* Rating changes share the same visual language in charts, history and match reports. */
.stats-delta.is-positive, .rating-chart-summary .is-positive, .rating-chart-tooltip .is-positive { color: #8bd1a4; }
.stats-delta.is-negative, .rating-chart-summary .is-negative, .rating-chart-tooltip .is-negative { color: #edaaa3; }
.stats-history { max-height: min(560px, 65dvh); overflow-y: auto; overflow-x: hidden; padding: 3px 8px 3px 3px; scrollbar-width: thin; scrollbar-color: #5a5140 transparent; scrollbar-gutter: stable; }
.stats-history:focus-visible { outline: 2px solid #d2ae68; outline-offset: 5px; border-radius: 12px; }
.stats-history-row { min-width: 0; width: 100%; }.stats-history-row > span { min-width: 0; }.stats-history-row b, .stats-history-row small { overflow-wrap: anywhere; }
.rating-chart-summary { display: flex; flex-wrap: wrap; gap: 18px 36px; margin: 20px 0 4px; }
.rating-chart-summary > div { display: grid; gap: 8px; }.rating-chart-summary span { color: var(--text-muted); font-size: 11px; }.rating-chart-summary strong { font: 700 23px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.rating-chart-plot { position: relative; min-width: 0; }.rating-chart-plot svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.rating-chart-plot svg text { fill: #98a5b5; font: 10px var(--font-body); }
.rating-grid { stroke: #ffffff0b; stroke-width: 1; }.rating-segment { stroke-width: 2.5; stroke-linecap: round; fill: none; }
.rating-segment.is-positive { stroke: #82cda1; }.rating-segment.is-negative { stroke: #e39d97; }.rating-segment.is-neutral { stroke: #d2b878; }
.rating-chart-plot .rating-dot { stroke: #141719; stroke-width: 2; outline: none; cursor: crosshair; }
.rating-chart-plot .rating-dot.is-positive { fill: #82cda1; }.rating-chart-plot .rating-dot.is-negative { fill: #e39d97; }.rating-chart-plot .rating-dot.is-neutral { fill: #d2b878; }
.rating-chart-plot .rating-dot:focus-visible { stroke: #fff; stroke-width: 2.5; }
.rating-cursor { stroke: #b4c2d055; stroke-width: 1; stroke-dasharray: 4 5; pointer-events: none; }
.rating-chart-tooltip { position: absolute; z-index: 2; display: grid; gap: 7px; max-width: min(250px, 90%); padding: 13px 16px; border: 1px solid #ffffff1c; border-radius: 12px; background: #181d24f5; box-shadow: 0 12px 36px #0006; pointer-events: none; }
.rating-chart-tooltip[hidden] { display: none; }.rating-chart-tooltip small { color: #a0adbd; font-size: 10px; }.rating-chart-tooltip strong { font-size: 17px; }.rating-chart-tooltip b { font-size: 14px; }.rating-chart-tooltip span { color: #bec9d6; font-size: 10px; line-height: 1.6; }
.rating-chart-hint { margin: 5px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.7; }
.stats-match-open { overflow: hidden; }
.stats-match-dialog { box-sizing: border-box; width: min(940px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid #ffffff14; border-radius: 22px; background: #141719; color: #edf1f6; overscroll-behavior: contain; }
.stats-match-dialog::backdrop { background: #05080bb8; backdrop-filter: blur(4px); }
.stats-match-header { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; border-bottom: 1px solid #ffffff10; background: #141719f5; }
.stats-match-header h2 { margin: 0; font: 800 23px/1.3 var(--font-display); overflow-wrap: anywhere; }
.stats-match-close { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid #ffffff15; border-radius: 12px; background: #ffffff05; color: #acb7c4; font-size: 25px; cursor: pointer; }
.stats-match-close:focus-visible { outline: 2px solid #d2ae68; outline-offset: 3px; }
.stats-match-body { padding: 6px 28px 28px; }.stats-match-body > p { color: #9fabb9; font-size: 12px; line-height: 1.7; }.stats-match-body > h3 { font-size: 18px; }
.stats-match-roster > .stats-match-player { grid-template-columns: minmax(160px,1.4fr) minmax(120px,1fr) 100px 54px; align-items: center; gap: 12px 18px; padding: 18px 0; border-color: #ffffff0d; }
.stats-player-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.stats-player-avatar { position: relative; display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: #29323c; color: #cad5e2; font-size: 17px; font-weight: 700; }
.stats-player-avatar > img:not(.cos-frame) { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.stats-player-copy { display: grid; gap: 5px; min-width: 0; }.stats-player-copy a { width: fit-content; color: #e1e7ef; font-weight: 650; overflow-wrap: anywhere; text-decoration: none; }.stats-player-copy a:hover { color: #e5c386; text-decoration: underline; }
.stats-match-profession { color: #a8b5c4; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.stats-player-result { display: inline-flex; justify-content: center; width: fit-content; max-width: 100%; padding: 5px 9px; border: 1px solid #ffffff13; border-radius: 7px; color: #a6b3c3; background: #ffffff03; font-size: 10px; font-weight: 650; line-height: 1.5; }
.stats-player-result.is-survived { color: #8bd1a4; border-color: #8bd1a426; background: #8bd1a408; }.stats-player-result.is-out { color: #e3aaa4; border-color: #e3aaa426; background: #e3aaa408; }
.stats-match-player > .stats-delta { text-align: right; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats-rating-breakdown { padding: 8px 12px; border-radius: 8px; background: #ffffff03; }.stats-rating-breakdown p { margin: 8px 0 0; font-size: 11px; }
@media(max-width:640px) {
  .rating-chart-summary { gap: 16px 22px; }.rating-chart-summary strong { font-size: 19px; }.rating-chart-summary span { font-size: 10px; }
  .stats-history { max-height: 480px; }
  .stats-match-header { padding: 18px; }.stats-match-header h2 { font-size: 20px; }.stats-match-body { padding: 4px 18px 22px; }
  .stats-match-roster > .stats-match-player { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
  .stats-player-identity { grid-column: 1; }.stats-match-player > .stats-delta { grid-column: 2; grid-row: 1; }.stats-match-profession { grid-column: 1; }.stats-player-result { grid-column: 2; grid-row: 2; }
}
.stats-rank-ladder{grid-column:1/-1;padding-top:24px;border-top:1px solid var(--border-card);min-width:0}
.stats-rank-ladder h3{font-size:16px;margin-bottom:18px}
.stats-rank-ladder ol{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;list-style:none;margin:0;padding:0}
.stats-rank-tier{padding:17px 8px;border:1px solid var(--border-card);border-radius:11px;text-align:center;background:#ffffff02;min-width:0}
.stats-rank-tier.is-current{border-color:#e6a32366;background:#e6a3230a}
.stats-tier-emblem{display:grid;place-items:center;width:36px;height:40px;margin:0 auto 12px;clip-path:polygon(50% 0,94% 24%,94% 76%,50% 100%,6% 76%,6% 24%);background:#ffffff07;color:var(--text-muted);font:800 13px/1 var(--font-display)}
.stats-rank-tier.is-current .stats-tier-emblem{color:var(--color-primary);background:#d9a32324}
.stats-rank-tier strong{display:block;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.stats-rank-tier small{display:block;color:var(--text-muted);font-size:9px;margin-top:6px;line-height:1.5}
@media(max-width:900px){.stats-rank-ladder ol{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.stats-season-hero{grid-template-columns:86px minmax(0,1fr);padding:20px;gap:22px 17px}.stats-rank-badge>.stats-rank-emblem{width:76px;height:86px;font-size:28px}.stats-rank-badge>strong{font-size:12px}.stats-season-copy h2{font-size:28px}.stats-season-copy p{font-size:11px}.stats-eyebrow{font-size:9px;letter-spacing:.07em}.stats-season-copy small{font-size:10px}.stats-season-copy .stats-rank-next{font-size:10px}.stats-rank-ladder{padding-top:20px}.stats-rank-tier{padding:15px 6px}.stats-rank-tier strong{font-size:10px}.stats-rank-ladder h3{font-size:15px}}
@media(max-width:380px){.stats-season-hero{grid-template-columns:minmax(0,1fr);text-align:center}.stats-season-copy progress{margin-inline:auto}.stats-rank-badge{gap:12px}.stats-rank-ladder ol{grid-template-columns:repeat(2,minmax(0,1fr))}}
