:root {
  color-scheme:dark;
  --paper:#10191c; --ink:#e8efec; --muted:#aabbb6; --teal:#85d7c1;
  --rule:#344549; --wash:#202f32; --dark:#142b2e; --field:#19262a; --field-border:#566d70;
  --divider:#4a6062; --axis:#fff; --positive:#64cf82; --negative:#f07878;
  --primary-ink:#102623; --primary-hover:#a6e5d3; --focus:#efbd6d;
  --mono:ui-monospace,"SFMono-Regular",Consolas,monospace;
  font:16px/1.5 "Helvetica Neue",Arial,sans-serif; color:var(--ink); background:var(--paper);
}
* {box-sizing:border-box}
html {scroll-behavior:smooth;scroll-padding-top:1rem}
body,figure,p,h1,h2,dl,dd {margin:0}
body {isolation:isolate}
#ambient-games {
  position:fixed;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none;opacity:.25;
  mask-image:linear-gradient(to right,#000 0%,#0008 18%,#0004 36%,#0004 68%,#0009 87%,#000 100%);
}
header,footer {background:color-mix(in srgb,var(--paper) 88%,transparent)}
[hidden] {display:none!important}
button,select,input {font:inherit;color:inherit}
button,select,summary {cursor:pointer}
a {color:inherit;text-decoration:none}
a:hover,button.underlink:hover,.model:hover {color:var(--teal);text-decoration:underline;text-underline-offset:.2em}
:focus-visible {outline:3px solid var(--focus);outline-offset:3px}
.wrap {width:min(1540px,calc(100% - clamp(48px,6vw,112px)));margin-inline:auto}
.archive-layout {display:grid;grid-template-columns:clamp(154px,12vw,174px) minmax(0,1fr);column-gap:clamp(28px,3.5vw,64px)}
.archive-layout main {min-width:0}
.toc {
  align-self:start;position:sticky;top:32px;margin-top:clamp(64px,10vh,120px);
  padding:10px 7px;border:1px solid var(--rule);border-radius:9px;
  background:color-mix(in srgb,var(--wash) 60%,var(--paper));font-size:14px;
}
.toc strong {display:block;padding:2px 9px 8px;border-bottom:1px solid var(--rule);font:600 12px/1.5 var(--mono);letter-spacing:.06em;color:var(--teal)}
.toc ul {list-style:none;display:grid;gap:2px;margin:7px 0 0;padding:0}
.toc a {display:block;padding:5px 6px 5px 8px;border-left:3px solid transparent;border-radius:3px}
.toc a:hover {background:var(--wash)}
.toc a[aria-current="location"] {background:color-mix(in srgb,var(--teal) 12%,transparent);color:var(--teal);border-color:var(--teal);font-weight:600}
header {border-bottom:1px solid var(--rule)}
.nav,.footer,.section-head,.hero-actions,.pages,.rank-foot,.dialog-heading,.match-tools {display:flex;align-items:center;justify-content:space-between;gap:20px}
.nav {min-height:72px}
.site-brands {display:flex;align-items:center;gap:clamp(4px,1vw,14px)}
.tiptree-home {display:grid;place-items:center;min-width:32px;min-height:40px;border-radius:4px}
.tiptree-home img {display:block;width:clamp(34px,5vw,40px);height:auto;filter:invert(1)}
.tiptree-home:hover {background:var(--wash)}
.home {display:inline-flex;align-items:center}
.home img {width:148px;height:auto}
.project-links {margin-left:auto;display:flex;align-items:center;gap:6px}
.project-links a {display:grid;place-items:center;min-width:28px;min-height:32px;border-radius:4px}
.github-link img {filter:brightness(0) invert(1)}
.project-links a[href]:hover {background:var(--wash)}
.version-label {display:flex;align-items:center;gap:10px;font:12px var(--mono);color:var(--muted)}
select,input {border-radius:5px;border:1px solid var(--field-border);background:var(--field);padding:.55rem .65rem}
.version-label select {font:600 13px var(--mono);color:var(--ink);background:var(--wash)}
.changelog-page .archive-layout {max-width:70rem;column-gap:clamp(2rem,6vw,5rem)}
.changelog-page .toc {margin-top:3.5rem}
.release-notes {max-width:78ch;padding-block:clamp(2.5rem,6vw,4.5rem);line-height:1.65;overflow-wrap:anywhere}
.release-notes h1 {font:400 clamp(2.6rem,5vw,4rem)/1.1 Georgia,serif;letter-spacing:-.035em}
.release-notes h2 {margin:3.5rem 0 1.25rem;padding-top:1.25rem;border-top:1px solid var(--divider);font-size:clamp(1.65rem,3vw,2.2rem);line-height:1.25}
.release-notes h3 {font-size:1.15rem;margin:1.6rem 0 .65rem;color:var(--teal)}
.release-notes p,.release-notes ul,.release-notes ol {margin:.85rem 0}
.release-notes li {margin:.3rem 0}
.release-notes ul,.release-notes ol {padding-left:1.5rem}
.release-notes a {color:var(--teal);text-decoration:underline;text-underline-offset:.18em}
.release-notes code {font:.89em var(--mono);padding:.1em .25em;border-radius:3px;background:var(--wash)}
.release-notes .table-scroll {margin:1.25rem 0}
.release-notes table {min-width:26rem;white-space:normal;overflow-wrap:normal}
.release-notes :is(th,td) {padding:.55rem .7rem;vertical-align:top}
@media(max-width:800px) {.changelog-page .toc {margin-top:1.5rem}}
.hero {
  display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:center;align-content:center;
  column-gap:clamp(32px,5vw,88px);row-gap:clamp(44px,8vh,86px);
  min-height:calc(100svh - 72px);padding-block:clamp(64px,10vh,124px);
}
.kicker,.mono {font:600 11px/1.5 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--teal)}
h2 {font-family:Georgia,"Times New Roman",serif;font-weight:400}
#site-title {margin-bottom:24px}
#site-title img {display:block;width:min(100%,32rem);height:auto}
.lede {font-size:clamp(20px,1.8vw,27px);line-height:1.4;max-width:27em}
.intro-detail {margin-top:18px;color:var(--muted);max-width:38em;line-height:1.65}
.hero-actions {justify-content:flex-start;margin-top:30px;gap:16px 24px;flex-wrap:wrap}
.hero-resources {display:flex;align-items:center;gap:inherit}
.hero-resources a {display:inline-flex;align-items:center;gap:7px;min-height:36px}
.button,.pages button,.close {border-radius:5px;border:1px solid var(--rule);display:inline-flex;align-items:center;gap:16px;justify-content:center}
.primary {background:var(--teal);border-color:var(--teal);color:var(--primary-ink);font-size:14px;font-weight:600;padding:10px 15px}
.primary:hover {background:var(--primary-hover);color:var(--primary-ink);text-decoration:none}
.underlink,.match-tools a {font-weight:600;font-size:13px;color:var(--teal)}
.underlink span {margin-left:.3em}
button.underlink,.model {border:0;background:none;padding:0;text-align:left}
.stats {grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--divider);padding-top:26px}
.stats div {display:flex;flex-direction:column;align-items:flex-start;padding-inline:clamp(16px,3vw,54px);border-left:1px solid var(--rule)}
.stats div:first-child {padding-left:0;border-left:0}
.stats dt {color:var(--muted);font-size:12px}
.stats dd:first-of-type {order:-1;margin:0;font:normal clamp(32px,3.4vw,49px)/1.1 Georgia,serif;letter-spacing:-.045em;font-variant-numeric:lining-nums tabular-nums}
#stat-modes {display:flex;flex-wrap:wrap;gap:0 1em;margin:4px 0 0;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
#stat-modes span {white-space:nowrap}
.hero-clip {
  margin:0;overflow:hidden;background:#000;border:1px solid var(--rule);
  border-radius:9px;box-shadow:0 10px 28px #060e131c;
}
.hero-clip video {display:block;width:100%;height:auto;aspect-ratio:16/9}
.panel {
  padding:clamp(44px,5.4vw,88px) clamp(20px,3.6vw,62px);
  border:1px solid var(--rule);border-top:2px solid var(--divider);border-radius:12px;
  background:color-mix(in srgb,var(--paper) 96%,transparent);
}
#leaderboard {
  border-top-color:var(--teal);
  background:linear-gradient(155deg,color-mix(in srgb,var(--wash) 92%,transparent),color-mix(in srgb,var(--paper) 96%,transparent) 58%);
}
.panel + .panel {margin-top:clamp(72px,10vw,160px)}
.panel:last-child {margin-bottom:clamp(66px,8vw,128px)}
.section-head {align-items:flex-end;margin-bottom:clamp(30px,3.6vw,54px)}
h2 {font-size:clamp(42px,4.8vw,73px);line-height:1.06;letter-spacing:-.045em}
.section-head h2 {margin-top:12px}
.blog-post {display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(24px,3.4vw,52px);align-items:center;max-width:1100px}
.blog-post + .blog-post {margin-top:clamp(40px,5vw,72px);padding-top:clamp(40px,5vw,72px);border-top:1px solid var(--rule)}
.blog-post-image {display:block;border:1px solid var(--rule);border-radius:9px;overflow:hidden;background:#11161c}
.blog-post-image img {display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;transition:transform .3s ease}
.blog-post-image:hover img {transform:scale(1.03)}
.blog-post h3 {margin:10px 0 14px;font:400 clamp(26px,2.4vw,36px)/1.15 Georgia,"Times New Roman",serif;letter-spacing:-.025em}
.blog-post-text > p:not(.kicker) {margin-bottom:18px;max-width:62ch;line-height:1.7;color:var(--muted)}
.blog-post-text > .blog-post-caption {margin:22px 0 0;font-size:12px;line-height:1.5}
@media(max-width:800px) {.blog-post {grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce) {.blog-post-image img {transition:none}}
.study-panel p {max-width:68ch;line-height:1.7}
.study-panel p + p {margin-top:18px;color:var(--muted)}
.panel.team-study-layout {display:grid;align-items:center;gap:20px clamp(24px,4vw,56px);padding-block:clamp(20px,2.5vw,36px)}
.team-study-layout h2 {margin-bottom:16px}
.team-study-layout p + p {margin-top:12px}
.team-clip {width:100%;max-width:18rem;justify-self:center}
.team-map {position:relative;overflow:hidden;border:1px solid var(--rule);border-radius:8px;background:var(--paper)}
.team-map video {display:block;width:100%;height:auto}
#team-victory {
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap;pointer-events:none;
  padding:10px 18px;border:1px solid var(--focus);border-radius:8px;
  background:var(--paper);color:var(--focus);font-size:18px;box-shadow:0 3px 14px #0008;
}
.team-bubble {
  --bubble-paper:rgb(255 246 231 / 50%);--cc-inset:10.9375%;
  position:absolute;right:calc(var(--cc-inset) + 14px);width:max-content;max-width:min(16rem,calc(100% - var(--cc-inset) - 24px));
  padding:8px 11px 9px;background:var(--bubble-paper);color:#202724;border-radius:12px;
  filter:drop-shadow(0 2px 3px #0009);font-size:14px;line-height:1.35;
}
.team-bubble::after {content:"";position:absolute;left:100%;width:12px;height:12px;background:var(--bubble-paper);clip-path:polygon(0 0,100% 50%,0 100%)}
/* Centers of the speaking players' CC tiles: (28,3) and (28,28) on the 32×32 map. */
.team-bubble[data-seat="3"] {--unit-color:#ff9a8b;top:calc(var(--cc-inset) - 18px)}
.team-bubble[data-seat="4"] {--unit-color:#ff85c0;bottom:calc(var(--cc-inset) - 18px)}
.team-bubble[data-seat="3"]::after {top:12px}
.team-bubble[data-seat="4"]::after {bottom:12px}
.team-speaker {display:flex;align-items:center;gap:5px;margin-bottom:3px;font:700 12px/1.3 var(--mono)}
.team-speaker::before {content:"";width:9px;height:9px;border-radius:2px;background:var(--unit-color);border:1px solid #44383b}
.team-speaker span {margin-left:auto;font-weight:500;color:#575349}
.team-clip figcaption {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 12px;margin-top:10px;color:var(--muted);font-size:13px}
.team-clip-heading {display:flex;align-items:center;gap:9px}
#team-progress {
  width:22px;height:22px;flex:none;border-radius:50%;
  background:conic-gradient(var(--teal) var(--played,0%),var(--field-border) 0);
  mask-image:radial-gradient(farthest-side,transparent calc(100% - 3.5px),#000 calc(100% - 3px));
}
.team-legend {flex-basis:100%;display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:12px}
.team-legend dt {font-weight:600;color:var(--ink)}
.team-legend dd {display:flex;align-items:center;flex-wrap:wrap;gap:3px 12px}
.team-legend dd > span {display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.team-legend dd > span::before {content:"";width:10px;height:10px;background:var(--unit-color);border:1px solid #ffffff60;border-radius:2px;box-sizing:border-box}
.team-clip .underlink {white-space:nowrap}
@media(min-width:720px) {
  .team-study-layout {grid-template-columns:minmax(0,1fr) min(42%,22rem)}
  .team-clip {max-width:none}
}
.cost-figure {max-width:980px;margin-inline:auto}
.cost-figure img {display:block;width:100%;height:auto}
.cost-figure figcaption {margin-top:20px;color:var(--muted);font-size:14px;line-height:1.6}
.table-scroll {position:relative;overflow-x:auto}
table {border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap}
th,td {padding:15px 16px;border-bottom:1px solid var(--rule);text-align:left}
th {color:var(--muted);font:600 11px/1.6 var(--mono);letter-spacing:.045em;background:var(--wash);border-top:1px solid var(--rule)}
.numeric {text-align:right;font-variant-numeric:tabular-nums}
.rank {color:var(--muted);width:72px;font:13px var(--mono)}
.model {font-weight:600;font-size:14px}
.entrant {display:flex;flex-wrap:wrap;align-items:baseline;gap:.6em}
.setting {font:10px var(--mono);color:var(--muted)}
.rating {display:grid;grid-template-columns:112px minmax(4ch,1fr);gap:10px;align-items:center;font:13px var(--mono)}
.rating-track {display:grid;grid-template-columns:1fr 2px 1fr;align-items:center}
.rating-track::before {content:"";grid-area:1/2;height:16px;background:var(--axis)}
.rating-track i {grid-area:1/3;justify-self:start;height:6px;background:var(--positive)}
.rating-track .negative {grid-column:1;justify-self:end;background:var(--negative)}
.rank-foot {margin-top:24px}
.rank-foot p,.pages,.match-tools {font-size:13px;color:var(--muted)}
.filters {display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 19px}
#games .filters {display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.75fr);align-items:end;gap:14px 18px;margin:24px 0 30px}
.section-head.games-head {display:block}
.games-heading {display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:12px}
#games-title {margin:0}
.game-download {display:inline-block;max-width:100%;padding:.6rem .85rem;font:600 13px/1.4 "Helvetica Neue",Arial,sans-serif;overflow-wrap:anywhere;color:var(--teal);background:var(--wash);border-color:var(--field-border)}
.game-download .download-size {white-space:nowrap;font-variant-numeric:tabular-nums}
.game-download[href]:hover {color:var(--ink);border-color:var(--teal)}
#games[inert] .game-download,.game-download:not([href]) {opacity:.45;cursor:default}
#download-index {justify-self:start}
.filters label {display:grid;gap:4px;color:var(--muted);font-size:12px}
.filters select {font-size:14px;color:var(--ink);max-width:100%}
.map-filter {display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px;min-width:0}
.map-filter select {grid-column:1/-1;grid-row:2;min-width:0}
#reset-filters {grid-column:2;grid-row:1;justify-self:end;font-size:12px;min-height:24px}
.model-picker {position:relative;display:grid;gap:4px;min-width:0}
#model-filter {display:flex;align-items:center;justify-content:space-between;gap:.65rem;min-width:0;padding:.55rem .65rem;border:1px solid var(--field-border);border-radius:5px;background:var(--field);color:var(--ink);font-size:14px;text-align:left}
#model-filter .model-name {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#model-filter::after {content:"";width:.45em;height:.45em;flex:none;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg)}
#model-options {position:absolute;z-index:3;top:calc(100% + 4px);left:0;min-width:100%;width:max-content;max-width:calc(100vw - 48px);max-height:min(18rem,42vh);overflow-y:auto;overscroll-behavior:contain;margin:0;padding:4px;list-style:none;border:1px solid var(--field-border);border-radius:5px;background:var(--field);color:var(--ink);font-size:14px;box-shadow:0 6px 16px #0005}
#model-options.opens-above {top:auto;bottom:calc(100% - 1rem)}
#model-options [role="option"] {padding:7px 26px 7px 9px;position:relative;border-radius:3px;cursor:pointer}
#model-options [role="option"]:hover,#model-options [data-active] {background:var(--wash)}
#model-options [aria-selected="true"]::after {content:"";position:absolute;right:10px;top:50%;width:5px;height:9px;border:solid var(--teal);border-width:0 2px 2px 0;transform:translateY(-65%) rotate(45deg)}
.filters label:first-child {flex:2 1 200px}
.filters label:not(:first-child) {flex:1 1 145px}
.matches td {padding-block:17px}
.matches small {display:block;color:var(--muted);font-size:11px;margin-top:3px}
.matches a {font-weight:600;color:var(--teal)}
.pages {margin-top:24px}
.pages div {display:flex;gap:7px}
.pages button,.close {background:transparent;padding:5px 10px;font-size:13px}
button:disabled {opacity:.45;cursor:default}
footer {border-top:1px solid var(--rule);color:var(--muted)}
.footer {padding-block:30px;font-size:12px;flex-wrap:wrap}
dialog {border:1px solid var(--rule);border-radius:9px;width:min(1050px,96vw);max-height:94vh;color:var(--ink);background:var(--paper);padding:0}
dialog::backdrop {background:#0e252ae0}
.dialog-inner {padding:21px}
.dialog-heading {align-items:flex-start}
.dialog-heading h2 {font-size:clamp(23px,3.1vw,36px)}
.close {font-size:23px;padding:0 11px}
.match-tools {justify-content:flex-start;flex-wrap:wrap;margin:10px 0;gap:14px}
.match-tools > span {margin-right:auto}
#traces {margin-top:16px;padding-top:14px;border-top:1px solid var(--rule)}
#traces-heading {margin:0;font-size:18px}
details {margin-top:14px}
summary {font-weight:600;color:var(--teal)}
#trace-content details {font-size:14px}
.bibtex-box {position:relative;background:var(--wash);border-radius:6px}
#bibtex {margin:0;padding:16px 112px 16px 16px;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.55 var(--mono)}
#copy-bibtex {position:absolute;top:10px;right:10px;min-width:84px;padding:6px 12px;font-size:13px;font-weight:600;color:var(--teal);background:var(--field)}
#copy-bibtex:hover {border-color:var(--teal)}
#trace-content pre {background:var(--wash);padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:45vh;overflow:auto;font:12px/1.55 var(--mono)}
#trace-status,#notice {margin:12px 0;color:var(--muted)}
.skip,.sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.skip:focus {z-index:2;background:var(--paper);width:auto;height:auto;clip-path:none;padding:10px}
@media(max-width:1120px) {
  #games .filters {grid-template-columns:repeat(3,minmax(0,1fr))}
  #games .filters label {min-width:0}
  #download-index {grid-column:1/-1}
}
@media(max-width:800px) {
  .wrap {width:calc(100% - 40px)} .hero {column-gap:32px;row-gap:44px;min-height:auto;padding-block:64px 72px}.version-label>span {display:none}
  .rating {grid-template-columns:80px minmax(4ch,1fr);gap:6px}
  .archive-layout {display:block}
  .toc {position:static;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:20px 0 0;padding:8px}
  .toc strong {padding:2px 6px;border:0}
  .toc ul {display:flex;flex-wrap:wrap;gap:2px 4px;margin:0}
  .toc a {padding:4px 6px;border:0;border-bottom:2px solid transparent}
  .nav {gap:10px}.hero-actions {gap:14px}.stats div {padding-inline:20px}.stats div:first-child {padding-left:0}
}
@media(max-width:650px) {
  .wrap {width:calc(100% - 32px)} .nav {min-height:58px}.home img {width:117px}
  .hero {grid-template-columns:1fr;gap:36px;padding-block:44px 60px}.lede {font-size:20px}
  .stats {padding-top:19px}.hero-actions {margin-top:24px}.stats div {padding-inline:14px}
  .section-head {align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:28px}
  #bibtex {padding:56px 16px 16px}
  .panel {padding:36px 16px;border-radius:9px}.panel + .panel {margin-top:56px}.panel:last-child {margin-bottom:56px}
  .rank-foot {align-items:flex-start;flex-direction:column;gap:10px}.dialog-inner {padding:13px} th,td {padding:12px 10px}
  #games .filters {grid-template-columns:1fr}
}
@media(max-width:400px) {.nav {gap:6px}.home img {width:94px}.version-label select {width:10ch;padding:6px}.stats div {padding-inline:13px}}
@keyframes section-enter {from {opacity:.28} to {opacity:1}}
@media screen {
  main > :is(.section-in-view,.section-in-focus) {
    animation:section-enter 720ms cubic-bezier(.25,.65,.3,1);
  }
}
@media(prefers-reduced-motion:reduce) {html {scroll-behavior:auto}}
