:root {
  --gut: max(clamp(1rem, 5vw, 4rem), calc((100vw - 1120px) / 2));
  --ink: #0a0f24; --ink2: #111837; --line: #263058; --text: #f1ede3; --dim: #a5acc8;
  --thistle: #b79cf0; --w: #43d6a0; --l: #ff6278; --d: #f3c24f;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.55 var(--body); }
a { color: var(--thistle); }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--d); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--text); color: var(--ink); padding: 8px 12px; z-index: 5; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.5rem; margin-top: 2.2rem; }
.band { padding: clamp(3rem, 8vw, 6rem) var(--gut); }
.alt { background: var(--ink2); }
.sub { color: var(--dim); margin-top: .6rem; max-width: 46rem; }
.note { color: var(--dim); font-size: .875rem; }

/* Hero */
.hero { min-height: min(92vh, 900px); display: flex; flex-direction: column; justify-content: center; padding: 4rem var(--gut);
  background: radial-gradient(1200px 600px at 85% -10%, #3a2a78 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #123a5c 0%, transparent 60%), var(--ink); }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--thistle); margin: 0 0 1rem; }
h1 { font-size: clamp(3.2rem, 13vw, 10rem); letter-spacing: -.02em; }
h1 em { color: var(--thistle); }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--dim); max-width: 40rem; }
.counters { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.counters li { background: var(--ink); padding: 1.2rem 1rem; }
.counters b { display: block; font: 400 clamp(2.4rem, 6vw, 4.2rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.counters span { color: var(--dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.counters .w b { color: var(--w); } .counters .l b { color: var(--l); } .counters .d b { color: var(--d); }
.jump { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.jump a { color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .875rem; }
.jump a:hover { border-color: var(--thistle); color: var(--thistle); }

/* Pulse */
.pulse-wrap { overflow-x: auto; margin-top: 1.5rem; padding-bottom: .5rem; }
.pulse { display: flex; align-items: stretch; gap: 2px; height: 240px; min-width: 760px; position: relative; padding-top: 1.4rem;
  background: linear-gradient(var(--line), var(--line)) 0 calc(50% + .7rem) / 100% 1px no-repeat; }
.yr { flex: 0 0 0; width: 0; position: relative; }
.yr::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; border-left: 1px dashed var(--line); }
.yr { font-size: .7rem; color: var(--dim); white-space: nowrap; text-indent: 4px; line-height: 1; margin-top: -1.4rem; padding-top: 0; }
.bar { flex: 1 1 0; min-width: 5px; border: 0; padding: 0; background: transparent; position: relative; cursor: pointer; }
.bar i { position: absolute; left: 0; right: 0; height: calc(var(--h) / 2); border-radius: 2px; transition: filter .15s, transform .15s; }
.bar.W i { bottom: 50%; background: var(--w); }
.bar.L i { top: 50%; background: var(--l); }
.bar.D i { top: calc(50% - 4px); height: 8px; background: var(--d); }
.bar:hover i, .bar:focus-visible i, .bar.on i { filter: brightness(1.35); transform: scaleX(1.6); }
.bar.on::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .07); }
.card { background: var(--ink2); border: 1px solid var(--line); border-left: 4px solid var(--thistle); border-radius: 6px; padding: 1.1rem 1.3rem; margin-top: 1rem; min-height: 7.5rem; }
.card.W { border-left-color: var(--w); } .card.L { border-left-color: var(--l); } .card.D { border-left-color: var(--d); }
.card h4 { font: 400 1.6rem/1.15 var(--display); margin: 0 0 .2rem; }
.card .meta, .hint { color: var(--dim); font-size: .875rem; margin: 0; }
.card .why { margin: .7rem 0 .4rem; max-width: 48rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.facts b { display: block; font: 400 2.6rem/1 var(--display); color: var(--thistle); font-variant-numeric: tabular-nums; }
.facts span { color: var(--dim); font-size: .875rem; }
.facts small { font-size: .75rem; }

/* Stacked rows */
.years, .opps, .list { list-style: none; padding: 0; }
.years li a, .opps li a { display: grid; grid-template-columns: 3.2rem 1fr 9.5rem; gap: .9rem; align-items: center; padding: .45rem .3rem; color: var(--text); text-decoration: none; border-radius: 4px; }
.opps li a { grid-template-columns: minmax(8.5rem, 15rem) 1fr 13.5rem; }
.years li a:hover, .opps li a:hover { background: rgba(183, 156, 240, .1); }
.stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); }
.stack i.W, .res { background: var(--w); } .stack i.L { background: var(--l); } .stack i.D { background: var(--d); }
.y { font-family: var(--display); font-size: 1.15rem; }
.n { color: var(--dim); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.name em { font-style: normal; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; border-radius: 3px; padding: 1px 5px; margin-left: .3rem; white-space: nowrap; }
em.bad { background: var(--l); color: var(--ink); } em.good { background: var(--w); color: var(--ink); }

/* Heatmap */
.scroll { overflow-x: auto; margin-top: 1.5rem; }
.heat { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 640px; font-variant-numeric: tabular-nums; }
.heat th { font-weight: 400; color: var(--dim); font-size: .8rem; text-align: center; }
.heat thead th:first-child { text-align: left; }
.heat th[scope=row] { text-align: left; white-space: nowrap; padding-right: .8rem; font-size: .9rem; }
.heat th a { color: var(--text); text-decoration: none; } .heat th a:hover { color: var(--thistle); text-decoration: underline; }
.heat td { text-align: center; border-radius: 4px; height: 2.1rem; min-width: 2.2rem; background: rgba(183, 156, 240, var(--a, 0)); }
.heat td a { display: block; line-height: 2.1rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.heat td[style*="--a:0.1"] a, .heat td[style*="--a:0.2"] a, .heat td[style*="--a:0.3"] a, .heat td[style*="--a:0.4"] a { color: var(--text); }
.heat td:hover { outline: 2px solid var(--text); }
.heat td.z { color: var(--line); background: transparent; outline: 0; }
.heat td.tot { background: transparent; color: var(--text); font-family: var(--display); font-size: 1.1rem; outline: 0; }

/* Games */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.game { background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; }
.game h3 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid span { aspect-ratio: 1.5; display: grid; place-items: center; text-align: center; font-size: .78rem; line-height: 1.2; padding: .3rem; border: 1px solid var(--line); border-radius: 6px; transition: background .25s, color .25s, transform .25s; }
.grid span.hit { background: var(--thistle); color: var(--ink); border-color: var(--thistle); font-weight: 600; }
.grid span.new { transform: scale(1.06); }
.grid span.line { background: var(--d); border-color: var(--d); }
.status { font-family: var(--display); font-size: 1.2rem; margin: .9rem 0 .3rem; }
.draw, .q { min-height: 6.5rem; color: var(--dim); font-size: .9rem; }
.draw b, .q b { color: var(--text); }
.opts { display: grid; gap: 6px; margin: .7rem 0; }
.opts button { text-align: left; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: .6rem .8rem; font: inherit; cursor: pointer; }
.opts button:hover:not(:disabled) { border-color: var(--thistle); }
.opts button.right { background: var(--w); color: var(--ink); border-color: var(--w); }
.opts button.wrong { background: var(--l); color: var(--ink); border-color: var(--l); }
.btn { display: inline-block; background: var(--thistle); color: var(--ink); border: 1px solid var(--thistle); border-radius: 999px; padding: .5rem 1.1rem; font: 600 .9rem var(--body); cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--thistle); }
.btn:hover { filter: brightness(1.12); }
.score { color: var(--dim); margin-left: .5rem; }

/* Explorer */
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin-top: 1.5rem; }
.filters label { display: grid; gap: .25rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.filters select { background: var(--ink2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: .45rem .5rem; font: 1rem var(--body); max-width: 13rem; }
.tally { margin-top: 1.2rem; color: var(--dim); } .tally b { color: var(--text); font: 400 1.6rem var(--display); }
.list li { border-top: 1px solid var(--line); padding: .7rem 0; }
.row { display: grid; grid-template-columns: 1.7rem 4.6rem 1fr; gap: .8rem; align-items: center; }
.res { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; color: var(--ink); font-weight: 700; font-size: .8rem; }
.L .res { background: var(--l); } .D .res { background: var(--d); }
.row .score { font: 400 1.35rem var(--display); margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.who small { display: block; color: var(--dim); font-size: .8rem; }
details { margin: .5rem 0 0 2.5rem; }
summary { cursor: pointer; color: var(--thistle); font-size: .875rem; }
details p { margin: .5rem 0; max-width: 46rem; }
.tags a { display: inline-block; font-size: .75rem; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; margin: 0 4px 4px 0; text-decoration: none; color: var(--dim); }
.tags a:hover { border-color: var(--thistle); color: var(--thistle); }
.src { font-size: .8rem; }
.foot p { color: var(--dim); font-size: .9rem; max-width: 46rem; }
code { background: var(--ink); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 560px) {
  .years li a, .opps li a { grid-template-columns: 1fr; gap: .25rem; }
  details { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Feed */
.since { margin: 1.6rem 0 0; font-size: 1.05rem; }
.since b { font: 400 2rem/1 var(--display); color: var(--l); margin-right: .2rem; }
.since span { color: var(--dim); font-size: .875rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; font-size: .85rem; color: var(--text); text-decoration: none; }
.chips a b { color: var(--dim); font-weight: 400; margin-left: .2rem; }
.chips a:hover { border-color: var(--thistle); }
.chips a.on { background: var(--thistle); border-color: var(--thistle); color: var(--ink); } .chips a.on b { color: var(--ink); }
.feed { list-style: none; padding: 0 0 0 1.4rem; margin: 2rem 0 0; border-left: 2px solid var(--line); max-width: 760px; }
.feed li { position: relative; padding: 0 0 2.2rem; }
.feed li::before { content: ""; position: absolute; left: calc(-1.4rem - 7px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--l); border: 2px solid var(--ink2); }
.when { margin: 0; color: var(--dim); font-size: .85rem; }
.feed blockquote { margin: .4rem 0 .6rem; font: 400 clamp(1.5rem, 3.6vw, 2.3rem)/1.2 var(--display); }
.para { margin: .4rem 0 .6rem; }
.proof { margin: 0; font-size: .85rem; }
.badge { display: inline-block; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; margin-right: .5rem; color: var(--dim); }
.badge.own { background: var(--thistle); border-color: var(--thistle); color: var(--ink); font-weight: 600; }
