/* Tablica: one quiet surface, clear hierarchy, shared desktop/mobile markup. */
:root {
  color-scheme: light;
  --bg: #fff; --surface: #fff; --surface-muted: #f5f6f7;
  --ink: #262a2e; --muted: #62696f; --border: #e0e3e5; --grid: #e6e8ea;
  --accent: #315b8b; --accent-soft: #f2f5f8; --used-bg: #f7f5ef; --negative: #a04035;
  --line-1: #315b8b; --line-2: #85622e; --line-3: #387260; --line-4: #985b71;
  --line-5: #6d63a1; --line-6: #37788c; --line-7: #667f38; --line-8: #9b5633;
  --line-9: #6e7480; --line-10: #985d8f;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181a1c; --surface: #181a1c; --surface-muted: #222528;
  --ink: #e7eaed; --muted: #a6adb4; --border: #3b4045; --grid: #34393e;
  --accent: #a2bee5; --accent-soft: #222d39; --used-bg: #302d27; --negative: #efb3a7;
  --line-1: #9fc0ed; --line-2: #dab984; --line-3: #9dc6b9; --line-4: #cfabb8;
  --line-5: #b8b2df; --line-6: #a7c8d3; --line-7: #c1cda3; --line-8: #e3ad91;
  --line-9: #b1b9c8; --line-10: #d9add1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #181a1c; --surface: #181a1c; --surface-muted: #222528;
    --ink: #e7eaed; --muted: #a6adb4; --border: #3b4045; --grid: #34393e;
    --accent: #a2bee5; --accent-soft: #222d39; --used-bg: #302d27; --negative: #efb3a7;
    --line-1: #9fc0ed; --line-2: #dab984; --line-3: #9dc6b9; --line-4: #cfabb8;
    --line-5: #b8b2df; --line-6: #a7c8d3; --line-7: #c1cda3; --line-8: #e3ad91;
    --line-9: #b1b9c8; --line-10: #d9add1;
  }
}
* { box-sizing: border-box; }
html { touch-action: manipulation; scroll-padding-top: 20px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.5; -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; background: transparent; border: 0; }
button:disabled { cursor: default; opacity: .4; }
input, select { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; }
input::placeholder { color: var(--muted); opacity: 1; }
a { color: inherit; text-decoration: none; }
abbr[title] { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.skip-link { position: fixed; top: 8px; left: 12px; padding: 10px; background: var(--bg); color: var(--accent); z-index: 10; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.league-page { max-width: 1240px; margin: auto; padding: 32px 36px 24px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.eyebrow { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.page-header h1 { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.theme-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.theme-control select { border: 0; background: transparent; min-height: 40px; padding: 5px 0; color: var(--ink); font-size: 12px; }
.page-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; padding: 14px 0 18px; color: var(--muted); font-size: 11px; }
#data-meta { font-size: 10px; }
.provisional-note { border-left: 2px solid var(--border); padding-left: 10px; margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.view-tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--border); }
.view-tabs button { min-height: 44px; padding: 10px 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: 13px; }
.view-tabs button[aria-selected="true"] { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.view-tabs button:hover { color: var(--ink); }
.league-panel { padding-top: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; }
.section-heading h2 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.section-heading p { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin: 20px 0 14px; }
.team-search input { width: 216px; max-width: 100%; min-height: 38px; padding: 8px 10px; font-size: 12px; }
.team-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.team-sort select { border: 0; background: transparent; padding: 8px 0; max-width: 230px; min-height: 38px; color: var(--ink); font-size: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table > :is(thead, tbody) > tr > :is(th, td) {
  text-align: right; padding: 2px 10px; border-bottom: 1px solid var(--border);
  vertical-align: middle; font-variant-numeric: tabular-nums;
}
.data-table > thead > tr > th { color: var(--muted); font-size: 10px; font-weight: 400; padding-top: 6px; padding-bottom: 10px; white-space: nowrap; }
.data-table .s-position { width: 43px; text-align: left; padding-left: 0; color: var(--muted); }
.data-table .s-name { text-align: left; font-weight: 400; min-width: 0; }
.s-name button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; gap: 12px; padding: 6px 0; text-align: left; font-size: inherit; font-weight: inherit; }
.s-name button > span:first-child { overflow-wrap: anywhere; }
.s-name button:hover { color: var(--accent); }
.row-toggle { flex: none; color: var(--muted); font-size: 14px; line-height: 1; }
.data-table .s-score { width: 91px; font-weight: 600; }
.data-table .s-budget { width: 110px; white-space: nowrap; font-variant-numeric: proportional-nums; }
.team-budget { font-variant-numeric: proportional-nums; }
.data-table .s-used { width: 114px; }
.data-table .s-country { width: 82px; }
.data-table .s-last { width: 100px; padding-right: 0; }
.data-table > tbody > tr:not(.expanded-row):hover { background: var(--surface-muted); }
.data-table > tbody > tr:is(.is-open, .is-focused) { background: var(--accent-soft); }
.fraction { color: var(--muted); font-size: 11px; white-space: nowrap; }
.cell-label { display: none; }
.data-table .empty-result { padding: 30px !important; text-align: center !important; color: var(--muted); }
.data-table .expanded-row > td { padding: 24px 20px; text-align: left; background: var(--surface-muted); }
.team-detail { min-width: 0; }
.detail-summary { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; }
.detail-summary h3 { font-size: 14px; font-weight: 600; }
.detail-summary p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.text-button { min-height: 40px; padding: 8px 0; color: var(--accent); font-size: 12px; text-underline-offset: 4px; }
.text-button:hover { text-decoration: underline; }
.podium-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 22px; font-size: 11px; color: var(--muted); }
.podium-summary > span:not(:first-child) { display: flex; align-items: baseline; gap: 8px; }
.podium-summary strong { color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; }
.detail-columns h4 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.detail-columns h4 > span { color: var(--muted); font-size: 10px; font-weight: 400; }
.usage-list { width: 100%; border-collapse: collapse; font-size: 11px; }
.usage-list th, .usage-list td { font-weight: 400; padding: 2px 0; border-bottom: 1px solid var(--border); }
.usage-list th { text-align: left; }
.usage-list td { text-align: right; }
.usage-list tr:last-child > :is(th, td) { border-bottom: 0; }
.usage-list b { display: inline-block; width: 28px; color: var(--muted); font-size: 10px; font-weight: 500; }
.usage-list button { min-height: 40px; padding: 6px 0; text-align: right; font-size: 11px; }
.usage-list button:hover { color: var(--accent); text-decoration: underline; }
.usage-list button span { color: var(--muted); font-size: 10px; }
.unused-label { display: inline-block; min-height: 40px; padding-top: 12px; color: var(--muted); }
.team-round-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.team-round-list li { min-width: 0; border-bottom: 1px solid var(--border); }
.team-round-list button { display: flex; align-items: baseline; justify-content: space-between; width: 100%; min-height: 40px; gap: 6px; padding: 8px 0; text-align: left; font-size: 11px; }
.team-round-list button > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.team-round-list small { min-width: 12px; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.team-round-list em { color: var(--muted); font-size: 9px; font-style: normal; }
.team-round-list strong { font-size: 11px; font-weight: 500; white-space: nowrap; }
.team-round-list button:hover { color: var(--accent); }
.negative-score { color: var(--negative) !important; }
.chip-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; color: var(--muted); font-size: 10px; }
.chip-key b { color: var(--ink); font-weight: 500; margin-right: 4px; }
.matrix-table { font-size: 12px; }
.matrix-table > :is(thead, tbody) > tr > :is(th, td) { padding: 2px 7px; }
.matrix-table .s-position { width: 32px; padding-left: 0; }
.matrix-table .s-name { min-width: 150px; }
.matrix-table .s-score { width: 67px; }
.matrix-table .s-budget { width: 84px; }
.matrix-table .s-used { width: 59px; white-space: nowrap; }
.matrix-table .chip-cell { width: 90px; text-align: center; border-left: 1px solid var(--border); }
.matrix-table thead .chip-cell { padding-top: 6px; padding-bottom: 10px; }
.matrix-table thead .chip-cell small { display: block; margin-top: 4px; font-size: 9px; white-space: normal; }
.matrix-table .chip-cell.is-used { background: var(--used-bg); }
.chip-cell button { width: 100%; min-height: 44px; padding: 5px 0; font-size: 10px; line-height: 1.4; }
.chip-cell button:hover { color: var(--accent); text-decoration: underline; }
.chip-cell button small { display: block; margin-top: 3px; font-size: 9px; color: var(--muted); }
.chip-cell.is-unused { color: var(--muted); }
.chip-mobile-label, .unused-mobile { display: none; }
.race-picker { display: flex; align-items: center; gap: 8px; }
.race-picker select { min-height: 40px; padding: 7px 10px; max-width: 240px; font-size: 12px; }
.race-picker button { min-width: 40px; min-height: 40px; padding: 6px; font-size: 16px; }
.race-context { margin-top: 12px; color: var(--muted); font-size: 11px; }
.race-context strong { font-weight: 500; color: var(--ink); }
.race-table > tbody > tr > :is(td, th) { padding-top: 13px; padding-bottom: 13px; }
.race-table .s-total, .race-table .s-league { width: 90px; }
.race-table .s-budget { width: 125px; }
.race-table .s-chip { width: 120px; padding-right: 0; font-size: 11px; }
.race-chip-name { display: block; color: var(--muted); font-size: 10px; }
.race-trend { color: var(--muted); font-size: 10px; white-space: nowrap; }
.chart-section { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 32px; }
.graph-toggle { font-size: 12px; scroll-margin-top: 16px; }
.chart-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin: 18px 0 16px; }
.chart-tools label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; min-width: 0; }
.chart-tools select { max-width: 240px; min-height: 40px; padding: 6px 0; background: transparent; border: 0; color: var(--ink); font-size: 12px; }
.metric-switch { display: flex; gap: 18px; }
.metric-switch button { min-height: 40px; padding: 6px 0; color: var(--muted); font-size: 12px; }
.metric-switch button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.compare-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; border: 0; border-top: 1px solid var(--border); margin: 16px 0; padding: 10px 0 0; min-width: 0; }
.compare-picker legend { padding: 0 10px 0 0; color: var(--muted); font-size: 11px; }
.compare-picker label { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 40px; font-size: 12px; cursor: pointer; }
.compare-picker label span { overflow-wrap: anywhere; }
.compare-picker input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.chart-caption, .chart-help { color: var(--muted); font-size: 11px; line-height: 1.7; }
.chart-caption { margin-bottom: 14px; }
.chart-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
#season-chart { display: block; }
.chart-grid { stroke: var(--grid); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 10px; font-weight: 400; }
.chart-line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.is-highlighted .chart-line { stroke-width: 3; }
.chart-dot { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.chart-chip circle { fill: var(--surface); stroke: currentColor; stroke-width: 1.5; }
.chart-chip text { fill: currentColor; font-size: 8px; font-weight: 600; }
.point-hit { fill: transparent; cursor: pointer; }
.point-hit:focus-visible { outline: none; stroke: var(--accent); stroke-width: 2; }
.chart-empty { fill: var(--muted); font-size: 12px; }
.chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 0 22px; margin-top: 10px; }
.chart-legend button { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 0; color: var(--muted); font-size: 11px; text-align: left; }
.chart-legend button[aria-pressed="true"], .chart-legend button:hover { color: var(--ink); }
.chart-legend svg { flex: none; }
.chart-help { margin-top: 10px; }
.point-info { display: block; min-height: 104px; padding-top: 12px; font-size: 12px; line-height: 1.8; }
.point-info strong, .point-info > span, .point-info small { display: block; }
.point-info strong { font-weight: 600; }
.point-info small { color: var(--muted); font-size: 11px; }
.compare-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 24px; padding: 6px 0; font-size: 12px; }
.compare-bar > div { display: flex; align-items: center; gap: 20px; }
.compare-bar button { min-height: 40px; padding: 6px 0; color: var(--accent); font-size: 12px; }
.compare-bar .quiet-button { color: var(--muted); }
.compare-bar button:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-footer { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.page-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.loading, .load-error { padding: 30px 0; font-size: 13px; }
.load-error h2 { margin-bottom: 8px; font-size: 17px; font-weight: 600; }

@media (max-width: 1100px) {
  .league-page { padding-left: 26px; padding-right: 26px; }
}
@media (max-width: 1050px) {
  .matrix-table, .matrix-table tbody { display: block; }
  .matrix-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .matrix-table > tbody > tr { display: grid; grid-template-columns: 26px repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .data-table.matrix-table > tbody > tr > :is(td, th) { border: 0; padding: 0; width: auto; min-width: 0; text-align: left; }
  .matrix-table .s-position { grid-column: 1; grid-row: 1; }
  .matrix-table .s-name { grid-column: 2 / -1; grid-row: 1; }
  .matrix-table .s-name button { min-height: 30px; }
  .matrix-table .s-score { grid-column: 2; grid-row: 2; font-size: 13px; }
  .matrix-table .s-budget { grid-column: 3; grid-row: 2; font-size: 13px; }
  .matrix-table .s-used { grid-column: 4 / -1; grid-row: 2; font-size: 13px; }
  .matrix-table .cell-label { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-bottom: 3px; }
  .matrix-table td.chip-cell { min-height: 62px; background: transparent; }
  .matrix-table td.chip-cell:nth-child(even) { grid-column: 2 / 4; }
  .matrix-table td.chip-cell:nth-child(odd) { grid-column: 4 / 6; }
  .matrix-table .chip-cell button, .unused-chip { display: block; text-align: left; padding: 8px 0; min-height: 62px; border-top: 1px solid var(--border); font-size: 11px; }
  .chip-mobile-label { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
  .chip-cell button small { display: inline; margin-left: 5px; }
  .unused-desktop { display: none; }
  .unused-mobile { display: block; }
  .data-table.matrix-table > tbody > tr.expanded-row { display: block; padding: 0; }
  .data-table.matrix-table > tbody > tr.expanded-row > td { display: block; padding: 20px; }
}
@media (max-width: 800px) {
  .league-page { padding: 26px 18px 20px; }
  .page-header { gap: 12px; }
  .page-header h1 { font-size: 23px; }
  .theme-control > span { display: none; }
  .theme-control select { max-width: 112px; font-size: 16px; }
  .page-meta { padding-top: 16px; padding-bottom: 18px; font-size: 10px; line-height: 1.6; }
  #data-meta { font-size: 10px; }
  .view-tabs { gap: 26px; }
  .league-panel { padding-top: 24px; }
  .section-heading h2 { font-size: 16px; }
  .section-heading p { font-size: 11px; }
  .table-toolbar { gap: 6px 18px; margin: 18px 0 12px; }
  .team-search { width: 100%; }
  .team-search input { width: 100%; min-height: 44px; font-size: 16px; }
  .team-sort { width: 100%; justify-content: space-between; }
  .team-sort select { max-width: 240px; min-height: 44px; font-size: 16px; }
  .league-table, .league-table tbody, .race-table, .race-table tbody { display: block; }
  .league-table thead, .race-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .league-table > tbody > tr, .race-table > tbody > tr { display: grid; grid-template-columns: 24px repeat(4, minmax(0, 1fr)); gap: 10px 8px; padding: 13px 0; border-bottom: 1px solid var(--border); }
  .data-table > tbody > tr > :is(td, th) { width: auto; min-width: 0; border: 0; padding: 0; text-align: left; font-size: 12px; }
  /* Reset desktop column widths explicitly; WebKit retains them on grid cells. */
  .data-table:is(.league-table, .race-table) > tbody > tr > :is(td, th) { width: auto; }
  .league-table .s-position, .race-table .s-position { grid-column: 1; grid-row: 1; font-size: 13px; padding-top: 10px; }
  .league-table .s-name, .race-table .s-name { grid-column: 2 / 5; grid-row: 1; font-size: 13px; }
  .league-table .s-name button { min-height: 40px; padding: 8px 0; }
  .league-table .s-score, .race-table .s-score { grid-column: 5; grid-row: 1; font-size: 16px; text-align: right; align-self: center; }
  .league-table .s-budget { grid-column: 2; grid-row: 2; }
  .league-table .s-used { grid-column: 3; grid-row: 2; }
  .league-table .s-country { grid-column: 4; grid-row: 2; }
  .league-table .s-last { grid-column: 5; grid-row: 2; text-align: right; }
  .cell-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 400; }
  .race-table .s-name { align-self: center; padding: 8px 0; overflow-wrap: anywhere; }
  .race-table .s-total { grid-column: 2; grid-row: 2; }
  .race-table .s-league { grid-column: 3; grid-row: 2; }
  .race-table .s-budget { grid-column: 4 / 6; grid-row: 2; text-align: right; }
  .race-table .s-chip { grid-column: 2 / -1; grid-row: 3; display: flex; align-items: baseline; gap: 8px; font-size: 11px; }
  .race-table .s-chip .cell-label { margin-bottom: 0; }
  .race-chip-name { display: inline; font-size: 10px; }
  .race-picker { justify-content: space-between; width: 100%; }
  .race-picker select { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; }
  .race-picker button { min-width: 44px; min-height: 44px; }
  .race-context { font-size: 10px; line-height: 1.7; }
  .data-table > tbody > tr.expanded-row { display: block; padding: 0; }
  .data-table > tbody > tr.expanded-row > td { display: block; padding: 20px 14px; }
  .detail-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .detail-summary p { font-size: 10px; }
  .detail-actions { gap: 4px 24px; }
  .detail-actions .text-button { min-height: 44px; }
  .podium-summary { gap: 10px 20px; margin-top: 12px; }
  .podium-summary > span:first-child { width: 100%; }
  .usage-list th, .usage-list td { font-size: 11px; }
  .usage-list button, .unused-label { min-height: 44px; }
  .usage-list button span { display: block; }
  .team-round-list { gap: 0 16px; }
  .team-round-list button { min-height: 44px; }
  .matrix-table > tbody > tr { grid-template-columns: 24px repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
  .matrix-table .s-name button { min-height: 40px; font-size: 13px; }
  .matrix-table .chip-cell button { min-height: 68px; }
  .matrix-table .chip-cell button small { display: block; margin: 3px 0 0; font-size: 9px; }
  .chart-tools { gap: 8px 20px; }
  .metric-switch { width: 100%; }
  .metric-switch button { min-height: 44px; }
  .chart-tools label { font-size: 10px; }
  .chart-tools select { max-width: 206px; min-height: 44px; font-size: 16px; }
  .chart-tools .chart-team-select { width: 100%; justify-content: space-between; }
  .compare-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .compare-picker label { min-height: 44px; font-size: 11px; }
  .chart-legend { gap: 0 18px; }
  .chart-legend button { min-height: 44px; font-size: 10px; }
  .chart-help, .chart-caption { font-size: 10px; }
  .point-info { min-height: 150px; font-size: 11px; }
  .point-info small { font-size: 10px; }
  .compare-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    margin: 0; padding: 6px 18px calc(6px + env(safe-area-inset-bottom));
    background: var(--surface); border-bottom: 0; font-size: 11px; gap: 4px 14px;
  }
  .compare-bar > div { gap: 16px; }
  .compare-bar button { min-height: 44px; font-size: 11px; }
  body[data-comparing] { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .page-footer { font-size: 10px; line-height: 1.7; }
}
@media (max-width: 360px) {
  .league-page { padding-left: 12px; padding-right: 12px; }
  .page-header { align-items: flex-start; gap: 8px; }
  .page-header h1 { font-size: 21px; }
  .theme-control select { max-width: 108px; }
  .view-tabs { gap: 24px; }
  .team-sort > span { display: none; }
  .team-sort { justify-content: flex-end; }
  .team-round-list { grid-template-columns: minmax(0, 1fr); }
  .compare-picker { grid-template-columns: minmax(0, 1fr); }
  .compare-bar { padding-left: 12px; padding-right: 12px; gap: 4px 10px; }
  .compare-bar > div { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
