.stats-page{padding-bottom:28px;--stats-line:#354038;--stats-muted:#aebbad;--stats-accent:var(--brand-red)}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.championship-analytics{margin:42px 0}
.championship-filter{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--stats-muted)}
.championship-filter select{font:inherit;font-weight:700;color:#e9ede4;background:#19221c;border:1px solid var(--stats-line);border-radius:0;padding:10px;max-width:220px}
.championship-filter select:focus-visible{outline:2px solid var(--stats-accent);outline-offset:4px}
.stats-header-controls{display:flex;flex-direction:column;align-items:flex-end;gap:16px;flex-shrink:0}
.analytics-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:22px 0 24px}
.analytics-panels .stats-panel{min-width:0}
.analytics-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;margin:25px 0;color:var(--stats-muted);font-size:12px}
.analytics-summary strong{color:#e9ede4;font-size:32px;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.analytics-summary span:last-child{flex-basis:100%}
.effort-chart{--rally-color:#c5cf8d}
.effort-chart .rally-chart-row{grid-template-columns:90px minmax(0,1fr) 60px;gap:12px}
.effort-chart:empty{display:none}
.progress-summary{margin:22px 0 18px}
.progress-chart{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--progress-columns),minmax(0,1fr));gap:6px;overflow-x:auto}
.progress-chart li{display:grid;grid-template-rows:20px 150px 20px;gap:6px;text-align:center;min-width:18px;font-size:11px;font-variant-numeric:tabular-nums}
.progress-chart li>span{color:var(--stats-muted)}
.progress-track{background:#263028;display:flex;align-items:flex-end}
.progress-fill{display:block;width:100%;height:var(--bar-height);background:#dfad71}
.progress-axis{font-size:11px;color:var(--stats-muted);text-align:center;margin:8px 0 20px}
.bottleneck-table{border-collapse:collapse;width:100%;margin:24px 0;font-variant-numeric:tabular-nums}
.bottleneck-table th,.bottleneck-table td{text-align:left;border-bottom:1px solid var(--stats-line);padding:15px 18px 15px 0;font-size:14px;vertical-align:top;width:33.333%}
.bottleneck-table thead th{font-size:11px;font-weight:400;color:var(--stats-muted);padding-top:0}
.bottleneck-table small{display:block;font-size:11px;font-weight:400;color:var(--stats-muted);line-height:1.5;margin-top:6px}
.bottleneck-track{display:block;height:5px;margin-top:8px;background:#263028;max-width:230px}
.bottleneck-fill{display:block;height:100%;width:var(--bar-width);background:#ef707b}
@media(max-width:700px){.championship-analytics{margin:32px 0}.analytics-panels{grid-template-columns:1fr;gap:16px;margin:18px 0 16px}.championship-filter{flex-wrap:wrap}.progress-chart{gap:4px}.bottleneck-table th,.bottleneck-table td{font-size:12px;padding:13px 10px 13px 0}.bottleneck-table thead th,.bottleneck-table small{font-size:10px}.progress-chart li{font-size:10px}.bottleneck-panel .chart-unit{display:none}}
.stats-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding:58px 0 34px}
.stats-head h1{font-size:clamp(42px,6vw,72px);line-height:1.05;letter-spacing:-.055em;margin:18px 0}
.stats-head h1 span{color:var(--stats-accent)}
.stats-intro{color:var(--stats-muted);font-size:17px;line-height:1.6;margin:0}
.stats-scope{display:flex;gap:10px;flex-shrink:0;margin:0 0 5px;font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--stats-muted)}
.stats-scope span+span{border-left:1px solid var(--stats-line);padding-left:10px}
@media(max-width:980px){.stats-header-controls{align-items:flex-start;gap:14px}.championship-filter{gap:10px}.championship-filter select{max-width:220px}}
.stats-status{padding:25px 0;color:var(--stats-muted);line-height:1.6}
.stats-status:empty{display:none}
.stats-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}
.stats-total{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:13px;padding:25px 27px;background:#19221c;border:1px solid var(--stats-line);overflow:hidden}
.stats-total-featured{background:#291b1e;border-color:#76343c}
.stat-label{position:relative;z-index:1;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:#c1ccbd;max-width:calc(100% - 34px);line-height:1.5}
.stats-total strong{max-width:100%;font-size:clamp(36px,4.5vw,56px);font-weight:700;line-height:1.1;letter-spacing:-.055em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.stats-total-featured strong{color:var(--brand-highlight)}
.stat-caption{font-size:12px;color:var(--stats-muted);line-height:1.5}
.stat-symbol{position:absolute;right:23px;top:23px;width:32px;height:32px;color:#71816b}
.stats-total-featured .stat-symbol{color:var(--brand-red)}
.stats-charts{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:24px}
.stats-panel{border:1px solid var(--stats-line);background:#151d18;padding:28px}
.stats-panel .eyebrow,.stages-heading .eyebrow{margin:0 0 10px;font-size:10px}
.stats-page h2{font-size:25px;line-height:1.15;letter-spacing:-.035em;margin:0}
.panel-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.chart-unit{font-size:11px;color:var(--stats-muted);white-space:nowrap;padding-bottom:3px}
.rally-chart{display:grid;gap:23px;margin:30px 0 24px}
.rally-chart-row{display:grid;grid-template-columns:75px minmax(0,1fr) 74px;align-items:center;gap:16px}
.rally-chart-name{font-size:13px;font-weight:700}
.rally-chart-track{height:18px;background:#263028;overflow:hidden}
.rally-chart-fill{display:block;height:100%;width:var(--bar-width);background:var(--rally-color)}
.rally-chart-value{text-align:right;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.rally-chart-value small{display:block;font-size:10px;color:var(--stats-muted);font-weight:400;margin-top:3px}
.chart-note{color:var(--stats-muted);font-size:12px;line-height:1.6;margin:0}
.activity-panel .chart-note{border-top:1px solid var(--stats-line);padding-top:17px}
.car-panel{margin-top:24px}
.car-panel .rally-chart-row{grid-template-columns:minmax(120px,200px) minmax(0,1fr) 74px}
@media(max-width:700px){.car-panel{margin-top:16px}.car-panel .rally-chart-row{grid-template-columns:minmax(90px,130px) minmax(0,1fr) 55px;gap:10px}}
.completion-panel{text-align:center}
.completion-panel h2{font-size:25px}
.completion-graphic{position:relative;width:170px;height:170px;margin:18px auto 12px}
.completion-ring{display:block;width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke-width:10}
.completion-track{stroke:#2c382e}
.completion-arc{stroke:var(--brand-red)}
.completion-center{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:6px}
.completion-center strong{font-size:38px;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.completion-center span{font-size:11px;color:var(--stats-muted)}
.completion-detail{font-size:12px;color:#d5ded0;line-height:1.6;margin:0}
.completion-key{display:flex;justify-content:center;gap:18px;font-size:10px;color:var(--stats-muted);margin-top:14px}
.completion-key span{display:flex;align-items:center;gap:6px}
.completion-key i{width:7px;height:7px;border-radius:50%;background:var(--brand-red)}
.completion-key span+span i{background:#48564b}
.stage-breakdown{margin-top:54px}
.stages-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:12px}
.stages-heading h2{font-size:30px}
.stats-view{display:flex;flex-shrink:0;gap:4px;padding:4px;background:#19221c;border:1px solid var(--stats-line)}
.stats-view button{border:0;border-radius:0;background:transparent;color:#bcc8b8;font:inherit;font-size:12px;font-weight:700;padding:10px 16px;cursor:pointer}
.stats-view button[aria-pressed="true"]{background:var(--brand-red);color:#fff}
.stats-view button:hover{color:#fff;background:#39252a}
.stats-view button[aria-pressed="true"]:hover{color:#fff;background:var(--brand-hover)}
.stats-page a:focus-visible,.stats-view button:focus-visible{outline:2px solid var(--stats-accent);outline-offset:4px}
.stats-rallies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:22px}
.stats-rally{border:1px solid var(--stats-line);background:#151d18;min-width:0}
.rally-cover{position:relative;height:154px;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:22px 24px}
.rally-cover img{position:absolute;inset:0;z-index:-2;object-fit:cover;object-position:center 55%;width:100%;height:100%}
.rally-cover::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(12,19,14,.95),rgba(12,19,14,.14) 100%)}
.rally-difficulty{position:absolute;top:17px;right:18px;padding:6px 8px;border:1px solid #ffffff42;background:#101513bd;color:#f0f1e7;font-size:9px;letter-spacing:.1em;text-transform:uppercase;font-weight:700}
.rally-number{color:var(--rally-color);font-size:10px;letter-spacing:.13em;font-weight:700;margin-bottom:6px}
.stats-rally h3{font-size:32px;line-height:1;margin:0;letter-spacing:-.035em}
.rally-summary{display:flex;justify-content:space-between;gap:14px;margin-top:9px;font-size:11px;color:#c2cdc0}
.rally-summary strong{font-weight:400;color:var(--rally-color)}
.stage-chart{list-style:none;padding:22px 24px 24px;margin:0;display:grid;gap:21px}
.stage-chart-label{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:13px;margin-bottom:8px}
.stage-chart-name{min-width:0;line-height:1.4}
.stage-id{color:#849280;font-size:10px;margin-right:8px;font-variant-numeric:tabular-nums;white-space:nowrap}
.stage-chart-value{flex-shrink:0;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.stage-chart-value small{font-size:10px;color:var(--stats-muted);font-weight:400}
.stage-chart-track{height:7px;background:#28322a;overflow:hidden}
.stage-chart-fill{display:block;width:var(--bar-width);height:100%;background:var(--rally-color)}
.stage-chart-detail{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--stats-muted);margin:7px 0 0;line-height:1.4}
.stage-chart-axis{display:flex;justify-content:space-between;margin:0 24px 18px;padding-top:9px;border-top:1px solid var(--stats-line);font-size:9px;color:#91a08c;font-variant-numeric:tabular-nums}
.stats-note{border-top:1px solid var(--stats-line);font-size:11px;line-height:1.8;color:#91a08c;padding-top:23px;margin:30px 0 0;max-width:850px}
@media(min-width:701px) and (max-width:980px){.stats-head{align-items:flex-start;flex-direction:column;gap:18px}.stats-charts{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.stats-panel{padding:22px}.chart-unit{display:none}.stats-total{padding:22px}.stat-symbol{right:16px;top:18px;width:27px}.rally-chart-row{gap:10px;grid-template-columns:61px minmax(0,1fr) 62px}.rally-chart-value{font-size:12px}.rally-summary{font-size:10px}.stages-heading h2{font-size:26px}.stats-view button{padding:10px 12px}}
@media(max-width:700px){.stats-head{padding:38px 0 26px;align-items:flex-start;flex-direction:column;gap:18px}.stats-head h1{margin:14px 0;font-size:clamp(38px,8vw,54px)}.stats-intro{font-size:14px;max-width:290px}.stats-scope{font-size:9px}.stats-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.stats-total{padding:18px;gap:10px}.stats-total-featured{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:24px}.stats-total-featured strong{grid-column:2;grid-row:1/3;font-size:48px;max-width:100%}.stats-total-featured .stat-label{max-width:none}.stats-total strong{font-size:36px}.stat-label{font-size:9px;max-width:none;min-height:27px;display:flex;align-items:center}.stat-caption{font-size:10px}.stat-symbol{display:none}.stats-charts{grid-template-columns:1fr;gap:16px}.stats-panel{padding:24px}.stats-page h2{font-size:25px}.chart-unit{font-size:10px}.rally-chart-row{grid-template-columns:63px minmax(0,1fr) 65px;gap:12px}.rally-chart-name{font-size:12px}.rally-chart-value{font-size:13px}.rally-chart-track{height:15px}.completion-graphic{margin-top:22px}.stage-breakdown{margin-top:38px}.stages-heading{align-items:flex-start;flex-direction:column;gap:18px;margin-bottom:13px}.stats-view{width:100%}.stats-view button{flex:1}.stats-rallies{grid-template-columns:1fr;gap:18px;margin-top:18px}.rally-cover{height:154px}.stats-rally h3{font-size:31px}.stage-chart-label{font-size:12px}.stage-id{margin-right:6px}.stats-note{margin-top:25px}}
@media(prefers-reduced-motion:no-preference){.rally-chart-fill,.stage-chart-fill{transition:width .35s ease}.completion-arc{transition:stroke-dasharray .5s ease}}
