:root {
  color-scheme: light;
  --paper: #f5f6f2;
  --white: #fff;
  --ink: #192322;
  --muted: #546261;
  --line: #e0e5df;
  --rail: #182222;
  --accent: #dcec75;
  --green: #466a44;
  --green-light: #eaf1e3;
  --orange: #b95c3d;
  --orange-light: #f9eee6;
  --mono: ui-monospace, Consolas, monospace;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, select, input { font: inherit; color: inherit; }
a { color: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid #63834e; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 3; left: 1rem; top: -4rem; background: white; padding: .65rem; }
.skip:focus { top: 1rem; }
.rail { width: 216px; position: fixed; inset: 0 auto 0 0; background: var(--rail); color: #fff; display: flex; flex-direction: column; padding: 25px 16px 23px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin: 0 8px 44px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.brand small, .rail-footer span { display: block; color: #a9b8b4; font-size: .79rem; font-weight: 500; letter-spacing: 0; }
.mark { background: var(--accent); border-radius: 5px; color: var(--rail); width: 35px; height: 35px; flex: 0 0 35px; display: flex; justify-content: center; align-items: end; gap: 3px; padding-bottom: 9px; }
.mark i { background: currentColor; width: 3px; height: 7px; }
.mark i:nth-child(2) { height: 11px; }
.mark i:nth-child(3) { height: 15px; }
.rail nav { display: grid; gap: 5px; }
.rail nav a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; color: #bfcac7; font-weight: 600; font-size: .92rem; text-decoration: none; border-radius: 5px; }
.rail nav a:hover { background: #273433; color: white; }
.rail nav a[aria-current="page"] { color: var(--accent); background: #2b3832; }
.nav-icon { width: 18px; text-align: center; font-family: var(--mono); }
.rail-footer { margin: auto 9px 0; padding-top: 17px; border-top: 1px solid #3c4846; font-size: .9rem; }
.rail-footer span { margin-top: 3px; }
main { margin-left: 216px; }
.toolbar { min-height: 66px; padding: 12px clamp(20px, 3.2vw, 51px); border-bottom: 1px solid var(--line); background: var(--white); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.context, .scope { font-size: .87rem; font-weight: 600; color: var(--muted); }
.context span { margin-inline: 7px; color: #71817a; }
.scope, .control { display: flex; gap: 8px; align-items: center; }
select, input[type="search"] { min-height: 38px; padding: 7px 11px; border: 1px solid #cfd8d0; border-radius: 5px; background: var(--white); font-size: .88rem; }
.scope select { max-width: 245px; }
.page { max-width: 1440px; margin: 0 auto; padding: 28px clamp(20px, 3.2vw, 51px) 44px; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.12; letter-spacing: -.045em; }
h2 { font-size: 1.06rem; line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: .92rem; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.page-head p, .detail, .footnote { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.page-head p { margin-top: 6px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 38px; gap: 6px; border: 1px solid #cfd8d0; border-radius: 5px; padding: 7px 12px; background: var(--white); font-size: .86rem; font-weight: 650; white-space: nowrap; text-decoration: none; }
.button:hover { background: var(--green-light); }
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); border-radius: 7px; overflow: hidden; background: #1d2a28; color: white; margin-bottom: 16px; }
.scoreplate { min-height: 186px; padding: 20px 23px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 13px; color: #c7d0c8; font-size: .79rem; }
.hero-meta strong { color: var(--accent); font-weight: 650; }
.hero-link { color: var(--accent); font-weight: 650; text-underline-offset: 3px; }
.season-title { font-size: clamp(1.5rem, 3.5vw, 2.95rem); font-weight: 700; line-height: 1.1; letter-spacing: -.045em; }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(8px, 2vw, 23px); align-items: center; }
.score-team { display: grid; gap: 2px; min-width: 0; }
.score-team:last-child { text-align: right; }
.score-team strong { font-size: clamp(1.25rem, 2.5vw, 2.15rem); letter-spacing: -.045em; }
.score-team span { color: #c7d0c8; font-size: .78rem; }
.score { font-size: clamp(1.9rem, 4.3vw, 3.45rem); font-family: var(--mono); white-space: nowrap; line-height: 1.1; }
.score b { color: var(--accent); }
.score i { font-style: normal; color: #84948c; padding: 0 3px; }
.hero-side { background: #253430; padding: 20px; display: grid; align-content: center; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-left: 1px solid #3d4b46; }
.hero-side small { min-height: 2.4em; color: #c7d0c8; line-height: 1.2; display: block; font-size: .8rem; }
.hero-side strong { font-size: clamp(1rem, 2vw, 1.55rem); font-variant-numeric: tabular-nums; }
.hero-side div + div { border-left: 1px solid #41504b; padding-left: 10px; }
.game-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 8px; margin-bottom: 18px; }
.game { text-align: left; padding: 10px 11px; min-height: 65px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.game[aria-pressed="true"] { border-color: #718960; background: var(--green-light); }
.game span, .game strong { display: block; }
.game span { color: var(--muted); font: .73rem var(--mono); }
.game strong { margin-top: 4px; font-size: .88rem; }
.grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; align-content: start; gap: 14px; }
.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 15px 16px 13px; }
.panel-head .detail { margin-top: 3px; }
.panel .footnote { margin: 10px 16px 14px; }
.more { color: #3b623d; font-size: .82rem; font-weight: 650; white-space: nowrap; text-underline-offset: 3px; }
.chart { width: 100%; display: block; height: 206px; }
.scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: .84rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
thead { background: #f0f3ee; color: #45534c; }
th, td { padding: 9px 12px; border-bottom: 1px solid #edf0ea; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8faf6; }
th:first-child, td:first-child, .left { text-align: left; }
th { font-weight: 650; }
td:first-child { font-weight: 650; }
.rate { font-weight: 650; color: #315b35; }
.tag { display: inline-block; padding: 3px 6px; border-radius: 3px; font-size: .74rem; font-weight: 650; background: var(--green-light); color: #395334; }
.tag.red { background: var(--orange-light); color: #8a452e; }
.tag.blue { background: #e9effa; color: #305286; }
.tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 14px; }
.control { flex-direction: column; align-items: flex-start; color: var(--muted); font-size: .82rem; font-weight: 600; }
.control select, .control input { color: var(--ink); min-width: 120px; }
.empty { margin: 0; padding: 15px 16px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); line-height: 1.5; }
.metric-list { display: grid; gap: 12px; padding: 0 16px 16px; }
.metric { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: .88rem; align-items: baseline; }
.metric strong { font: 700 .9rem var(--mono); }
.metric span:last-of-type { color: var(--muted); font-size: .77rem; }
.metric meter { grid-column: 1 / -1; width: 100%; height: 8px; appearance: none; }
meter::-webkit-meter-bar { background: #edf0ea; border: 0; }
meter::-webkit-meter-optimum-value { background: #658260; }
meter::-moz-meter-bar { background: #658260; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.list { margin: 0; padding: 0 16px 16px; list-style: none; display: grid; gap: 7px; font-size: .9rem; color: var(--muted); }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border: 0; }
.list strong { color: var(--ink); }
.list a { color: #3b623d; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.games-table button.link { background: none; border: 0; padding: 0; color: #3b623d; text-decoration: underline; font-weight: 650; text-underline-offset: 3px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.pager button:disabled { opacity: .55; cursor: default; }
.source-list { margin: 0 16px 12px; }
.source-list summary { cursor: pointer; color: #3b623d; font-size: .88rem; font-weight: 650; }
.source-list .list { padding: 10px 0 0; }
.spaced { margin-top: 14px; }
@media (max-width: 1060px) {
  .rail { width: 166px; }
  main { margin-left: 166px; }
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .toolbar { flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; border-top: 1px solid #3d4b46; }
  .hero-side small { min-height: 1.4em; }
}
@media (max-width: 620px) {
  .rail { position: static; width: auto; padding: 13px 13px 0; }
  .brand { margin: 0 3px 10px; }
  .brand small, .rail-footer, .nav-icon { display: none; }
  .rail nav { display: flex; overflow-x: auto; gap: 3px; }
  .rail nav a { font-size: .82rem; padding: 9px 11px; border-radius: 4px 4px 0 0; }
  main { margin-left: 0; }
  .toolbar { padding: 11px 14px; min-height: 53px; }
  .page { padding: 20px 14px 28px; }
  .context { font-size: .78rem; }
  .context span { margin-inline: 3px; }
  .page-head { align-items: start; }
  .page-head .button { font-size: .76rem; padding-inline: 7px; }
  .scoreplate { min-height: 145px; padding: 14px; }
  .score-team span { display: none; }
  .hero-side { padding: 12px 14px; }
}
