/* Server stats only. Charts use SVG geometry, never inline styles or new reads. */
.stats-page .stats-shell { max-width: 1280px; padding-top: 32px; }
.stats-page .stats-hero { position: relative; isolation: isolate; flex-wrap: wrap; gap: 20px; padding: 30px 32px; margin-bottom: 24px; background: #202526; border: 1px solid #434c40; border-top: 3px solid var(--orange); }
.stats-hero > div { flex: 1 1 20rem; min-width: 0; }
.stats-page .stats-hero h1 { margin: 10px 0; font-size: clamp(2.75rem, 5.2vw, 4.75rem); }
.stats-page .stats-hero .eyebrow { font-size: .75rem; margin: 0; }
.stats-page .stats-hero p:last-child { margin-bottom: 0; max-width: 30rem; }
.stats-hero-art { width: 130px; max-width: 100%; flex: 0 0 130px; fill: none; stroke: #596257; stroke-width: 1; }
.stats-hero-art .hero-team-red { fill: #ff796f; stroke: none; }
.stats-hero-art .hero-team-blue { fill: #77b9f3; stroke: none; }
.stats-hero-art .hero-team-green { fill: #a4ce6d; stroke: none; }
.stats-page .stats-hero .button { flex: none; }
.stats-page .leaderboard-controls { padding: 18px 0; margin: 0; border-bottom: 1px solid #434c40; }
.stats-page .stats-sections { margin: 10px 0 32px; gap: 4px 24px; }
.stats-page .stats-sections a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: none; }
.stats-page .stats-sections a:hover { color: var(--orange); }
.stats-page .team-results { scroll-margin-top: 24px; margin-bottom: 44px; }
.dashboard-section-heading { align-items: center; margin-bottom: 22px; }
.dashboard-section-heading .eyebrow { font-size: .6875rem; letter-spacing: .12em; margin-bottom: 8px; color: var(--orange); }
.stats-page #team-results-window { color: #bdc7b4; margin: 10px 0 0; font-size: .8125rem; }
.dashboard-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 12px; margin: 0 0 22px; }
.dashboard-summary > div { min-width: 0; padding: 20px; border: 1px solid #434c40; background: #202526; }
.dashboard-summary > div:first-child { border-top: 3px solid var(--orange); padding-top: 18px; }
.dashboard-summary dt { color: #bdc7b4; font-size: .75rem; font-weight: 600; }
.dashboard-summary dd { margin: 12px 0 0; color: var(--cream); font: 750 clamp(1.75rem, 3.5vw, 2.4rem)/1.15 var(--body); letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dashboard-summary > div:first-child dd { color: var(--orange); }
.dashboard-summary .dashboard-summary-detail { color: #bdc7b4; font: 400 .75rem/1.6 var(--body); letter-spacing: 0; margin-top: 10px; }
.team-chart-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; }
.dashboard-panel { min-width: 0; padding: 26px; background: #202526; border: 1px solid #434c40; }
.dashboard-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dashboard-panel-heading > div { min-width: 0; }
.dashboard-kicker { font-size: .625rem; font-weight: 650; letter-spacing: .13em; color: #bdc7b4; margin: 0 0 8px; }
.dashboard-panel-heading h3 { color: var(--cream); margin: 0; font: 750 1.5rem/1.2 var(--body); letter-spacing: -.035em; }
.dashboard-panel-index { font: 650 .75rem/1 var(--body); color: #a7b39b; border: 1px solid #596257; padding: 8px; }
.dashboard-caption { color: #bdc7b4; font-size: .8125rem; line-height: 1.7; margin: 12px 0 0; }
.team-share-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; padding-block: 22px; }
.team-donut { min-width: 0; width: 100%; max-width: 250px; justify-self: center; }
.team-donut svg { display: block; width: 100%; overflow: visible; }
.team-donut circle { fill: none; stroke-width: 17; }
.team-donut .donut-track { stroke: #38413b; }
.team-donut text { fill: var(--cream); text-anchor: middle; font-family: var(--body); }
.team-donut .donut-total { font-size: 29px; font-weight: 750; letter-spacing: -.04em; }
.team-donut .donut-label { fill: #bdc7b4; font-size: 8px; font-weight: 650; letter-spacing: .08em; }
.team-share-legend { padding: 0; margin: 0; list-style: none; }
.team-share-legend li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid #3c453c; font-size: .8125rem; }
.team-share-legend li:last-child { border: 0; }
.team-share-legend li > span { min-width: 0; overflow-wrap: anywhere; }
.team-share-legend strong { text-align: right; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.team-share-legend small { display: block; color: #bdc7b4; font-weight: 400; font-size: .75rem; }
.outcome-dot { display: inline-block; width: 9px; height: 9px; flex: none; margin-right: 8px; border-radius: 50%; background: currentColor; }
.outcome-RED { color: #ff796f; fill: #ff796f; stroke: #ff796f; }
.outcome-BLU { color: #77b9f3; fill: #77b9f3; stroke: #77b9f3; }
.outcome-GRN { color: #a4ce6d; fill: #a4ce6d; stroke: #a4ce6d; }
.outcome-draw { color: #d6ccb6; fill: #d6ccb6; stroke: #d6ccb6; }
.outcome-unknown { color: #909b98; fill: #909b98; stroke: #909b98; }
.team-badge { width: 28px; height: 32px; flex: none; fill: none; stroke-width: 1.3; }
.team-badge path:first-child { fill: #191f20; }
.team-badge path:nth-child(2) { opacity: .35; }
.team-badge text { fill: currentColor; stroke: none; text-anchor: middle; font: 700 10px var(--body); }
.team-rate-bars { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 18px; }
.team-rate-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.team-rate-heading > span { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 650; }
.team-rate-heading > strong { font: 700 1.5rem/1 var(--body); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.team-rate-bar, .map-outcome-bar { display: block; width: 100%; height: 8px; }
.team-rate-bar rect, .map-outcome-bar rect { stroke: none; }
.team-rate-bar .rate-track { fill: #38413b; }
.team-rate-bars p { margin: 7px 0 0; font-size: .75rem; color: #bdc7b4; }
.dashboard-chart-footnote { padding-top: 18px; border-top: 1px solid #434c40; margin-top: 20px; }
.dashboard-table-detail { margin: 14px 0 0; border: 1px solid #434c40; background: #1b2122; }
.dashboard-table-detail > summary { padding: 15px 20px; min-height: 50px; cursor: pointer; font-weight: 600; font-size: .8125rem; }
.dashboard-table-detail > summary:hover { color: var(--orange); }
.dashboard-table-detail > .dashboard-caption { padding: 0 20px 16px; margin: 0; }
.dashboard-table-detail .leaderboard-card { border: 0; border-top: 1px solid #434c40; }
.stats-page .dashboard-table-detail .leaderboard-card table { min-width: 500px; }
.stats-page .dashboard-table-detail th:not(:first-child) { text-align: right; }
.team-map-panel { margin-top: 24px; }
.team-map-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 10px; }
.map-result-card { min-width: 0; border-top: 1px solid #434c40; padding-top: 20px; margin-top: 20px; }
.map-result-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
.map-result-heading h4 { margin: 0; min-width: 0; font-size: .9375rem; font-weight: 650; color: var(--cream); overflow-wrap: anywhere; }
.map-result-heading > span { font-size: .75rem; color: #bdc7b4; }
.map-outcome-bar { height: 10px; }
.map-outcome-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 12px 0 0; }
.map-outcome-legend li { display: inline-flex; align-items: center; font-size: .75rem; color: #bdc7b4; }
.map-outcome-legend strong { margin-left: 7px; color: var(--cream); font-weight: 600; font-variant-numeric: tabular-nums; }
.stats-page .stats-longest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.stats-page .stats-longest li { padding-block: 14px; }
.stats-page .stats-longest li:last-child { border-bottom: 1px solid #363f34; }
.stats-page .fun-card h3 { transform: none; padding: 0; background: none; color: var(--orange); line-height: 1.3; }
.stats-page .fun-card { border-top: 2px solid #68725f; }
.stats-page .fun-count strong { font-family: var(--body); font-size: 2.25rem; letter-spacing: -.04em; }
.stats-page .records-list li { background: #202526; color: var(--cream); box-shadow: none; border: 1px solid #434c40; border-top: 3px solid var(--orange); }
.stats-page .record-value { color: var(--orange); }
.stats-page .record-detail, .stats-page .record-value span { color: #bdc7b4; }
.stats-page .record-holder a:hover { color: var(--orange); }
@media (max-width: 960px) {
  .team-chart-grid { grid-template-columns: minmax(0, 1fr); }
  .team-share-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .stats-hero-art { display: none; }
}
@media (max-width: 600px) {
  .stats-page .stats-hero { padding: 24px 20px; }
  .stats-page .stats-hero .button { min-height: 44px; }
  .dashboard-summary { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(7.5rem, calc(50% - 6px))), 1fr)); }
  .dashboard-summary > div { padding: 16px; }
  .dashboard-summary > div:first-child { padding-top: 14px; }
  .dashboard-summary dd { font-size: 1.75rem; }
  .dashboard-panel { padding: 20px; }
  .team-share-layout { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .team-donut { max-width: 220px; }
  .team-share-legend li { padding-block: 8px; }
  .team-share-legend strong { display: flex; align-items: baseline; gap: 12px; }
  .team-share-legend small { min-width: 3.5em; }
  .team-map-charts, .stats-page .stats-longest { grid-template-columns: minmax(0, 1fr); }
  .dashboard-table-detail > summary { padding-inline: 16px; }
  .stats-page .dashboard-table-detail .leaderboard-card th, .stats-page .dashboard-table-detail .leaderboard-card td { padding: 12px; font-size: .8125rem; }
  .stats-page .dashboard-table-detail .leaderboard-card thead th { font-size: .6875rem; }
}
