:root {
  color-scheme: light dark;
  --bg: #fff; --fg: #111; --dim: #777; --line: #e2e2e2; --hover: #f0f0f0; --hit: #2e7d32; --gold: #e0a000;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111; --fg: #eee; --dim: #888; --line: #2a2a2a; --hover: #222; --hit: #4caf50; --gold: #f5c542; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.4 system-ui, sans-serif; }
main { width: max-content; min-width: 100%; max-width: none; margin: 0 auto; padding: 4rem 3vw 2rem; }
h1 { margin: 0 0 1.5rem; font-size: 1.1rem; font-weight: 600; color: var(--dim); }
.search { position: relative; max-width: 36rem; }
input {
  width: 100%; padding: .5rem 0; font: inherit; font-size: 1.75rem; color: inherit;
  background: none; border: 0; border-bottom: 2px solid var(--fg); border-radius: 0; outline: 0;
}
input::placeholder { color: var(--dim); }
ul { position: absolute; left: 0; right: 0; margin: 0; padding: 0; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-top: 0; z-index: 1; }
li { padding: .45rem .5rem; cursor: pointer; }
li.on { background: var(--hover); }
li b { font-weight: 700; }
#out { margin-top: 2.5rem; }
#out h2 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.info { margin: .25rem 0 1.25rem; color: var(--dim); }
table { width: 100%; min-width: max-content; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: .5rem .4rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child { text-align: left; padding-left: 0; padding-right: 1rem; }
tbody th { font-weight: 400; }
thead th { font-weight: 400; }
.stars span.s { font-size: 1rem; letter-spacing: -.05em; color: var(--dim); opacity: .35; }
.stars span.s.f { color: var(--gold); opacity: 1; }
.stars span.s.h { opacity: 1; background: linear-gradient(90deg, var(--gold) 50%, var(--dim) 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
td.hit { background: color-mix(in srgb, var(--hit) calc(var(--p) * 55%), transparent); }
td.no { color: var(--dim); }
small { color: var(--dim); }
button { font: inherit; color: var(--dim); background: none; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; padding: 0 0 .1rem; margin-right: 1.25rem; cursor: pointer; }
button.on { color: var(--fg); border-bottom-color: var(--fg); }
.toggle { margin: 0 0 1rem; }
a { color: inherit; text-decoration-color: var(--dim); text-underline-offset: .15em; }
.info a { color: var(--gold); }
table.rank th:first-child, table.rank td:first-child { text-align: right; color: var(--dim); padding-right: 1rem; }
table.rank th:nth-child(2) { text-align: left; padding-left: 0; }
table.rank { min-width: 0; width: 100%; max-width: 40rem; }
tr.cur { background: var(--hover); font-weight: 600; }
td.top { outline: 2px solid var(--gold); outline-offset: -2px; font-weight: 700; }
table.map th:nth-child(2), table.map td:nth-child(2) { color: var(--dim); }
table.map tbody th { text-align: left; padding-left: 0; }
h1 a { color: inherit; text-decoration: none; }
h1 a:hover, h1 a:focus-visible { color: var(--fg); text-decoration: underline; }
