:root {
  --bg: #0d1512; --panel: #14201b; --panel2: #1a2a23; --line: #26392f;
  --ink: #e9efe9; --mute: #8fa398; --turf: #2f8f5b; --gold: #e8b73a; --red: #e0674f;
  --display: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 15px/1.5 var(--text);
  background: radial-gradient(1200px 400px at 50% -100px, #1d3a2b 0%, transparent 70%) no-repeat; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .brand { font-family: var(--display); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: .2em 0; }
h1 em, .brand em { color: var(--gold); font-style: normal; }
h2 { font-size: 1.35rem; margin: 2rem 0 .8rem; border-bottom: 2px solid var(--line); padding-bottom: .3rem; }
h2 small, h3 small { font-family: var(--text); text-transform: none; color: var(--mute); font-weight: 400; font-size: .8rem; margin-left: .4rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--gold); }
small, .small { font-size: .82em; }
.muted { color: var(--mute); }
code { background: var(--panel2); padding: 1px 5px; border-radius: 4px; }

.top { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between;
  padding: .8rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: rgba(13,21,18,.85);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.brand { color: var(--ink); font-size: 1.25rem; }
.brand:hover { text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: center; }
nav a, nav summary { color: var(--mute); font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
nav a.on, nav a:hover, nav summary:hover { color: var(--ink); text-decoration: none; }
.seasons-menu { position: relative; }
.seasons-menu summary { list-style: none; }
.seasons-menu summary::after { content: ' ▾'; }
.seasons-menu div { position: absolute; right: 0; top: 1.8rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: .5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .2rem .8rem; }

main { max-width: 1180px; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 3rem) 3rem; }
footer { text-align: center; color: var(--mute); font-size: .8rem; padding: 2rem 1rem; border-top: 1px solid var(--line); }

.hero { padding: 2.5rem 0 1rem; }
.hero.small { padding: 1.2rem 0 .5rem; }
.eyebrow { color: var(--turf); font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; margin: 0; }
.reigning { font-size: 1.1rem; }
.note { background: var(--panel); border-left: 3px solid var(--gold); padding: .8rem 1rem; border-radius: 4px; color: var(--mute); }

.banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; }
.banner { background: linear-gradient(180deg, #2a2310, #18170f); border: 1px solid #4b3d16; border-radius: 6px 6px 40% 40% / 6px 6px 18% 18%;
  padding: 1rem .7rem 1.6rem; text-align: center; display: flex; flex-direction: column; color: var(--ink); }
.banner:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-2px); transition: .15s; }
.banner .yr { font-family: var(--display); font-size: 1.8rem; color: var(--gold); }
.banner .champ { font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; }
.banner .tn { color: var(--mute); font-size: .75rem; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 2rem; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: .45rem .6rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--display); text-transform: uppercase; font-weight: 500; letter-spacing: .04em; color: var(--mute); font-size: .8rem; }
tbody tr:hover { background: var(--panel); }
table.sortable th { cursor: pointer; user-select: none; }
table.sortable th[data-dir=asc]::after { content: ' ▲'; } table.sortable th[data-dir=desc]::after { content: ' ▼'; }
tr.gold td { background: rgba(232,183,58,.08); }
tr.dim { opacity: .6; }
.history td { white-space: normal; vertical-align: top; }
.team { font-weight: 600; }
.by { color: var(--mute); font-size: .85em; }
a.owner.unknown { color: var(--mute); font-style: italic; }
.trophy { font-size: .9em; }
.pos { color: #6fd39a; } .neg { color: var(--red); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin: 1rem 0; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .9rem; }
.tile b { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--gold); }
.tile span { color: var(--mute); font-size: .8rem; }
.tile.sad b { color: var(--red); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; }
.card ol { margin: 0; padding-left: 1.3rem; }
.card li { padding: .2rem 0; }
.card li > * { vertical-align: top; }
.card li { display: list-item; }
.card li span { display: inline-block; max-width: 78%; }
.card li b { float: right; font-family: var(--display); color: var(--ink); }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.game div { display: flex; justify-content: space-between; padding: .5rem .8rem; color: var(--mute); }
.game div + div { border-top: 1px solid var(--line); }
.game div.w { color: var(--ink); background: rgba(47,143,91,.15); }
.game b { font-family: var(--display); }

table.weekly td { text-align: right; font-size: .85rem; }
table.weekly td:first-child { text-align: left; }
table.weekly td.w { color: #6fd39a; } table.weekly td.l { color: var(--mute); }
table.weekly td.po { background: rgba(232,183,58,.08); }

table.matrix td { text-align: center; font-size: .82rem; }
table.matrix td.self { background: var(--panel2); }
table.matrix td.pos { background: rgba(47,143,91,.18); color: var(--ink); }
table.matrix td.neg { background: rgba(224,103,79,.14); color: var(--ink); }
table.matrix th.rot { height: 110px; vertical-align: bottom; }
table.matrix th.rot span { writing-mode: vertical-rl; transform: rotate(180deg); }
.pager { display: flex; justify-content: space-between; margin-top: 2rem; font-family: var(--display); text-transform: uppercase; }
