:root {
  --bg: #f6f3ea; --panel: #fffdf7; --ink: #23201a; --muted: #6d665a; --line: #ddd5c4;
  --accent: #2f6b4f; --bot: #c46a2b; --good: #2f6b4f; --mixed: #9a7a12; --bad: #a33a2a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171612; --panel: #201f1a; --ink: #ece6d8; --muted: #a39b8b; --line: #39352c;
    --accent: #6fbf94; --bot: #e08a4c; --good: #6fbf94; --mixed: #d8b84a; --bad: #e0705e;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 ui-sans-serif, system-ui, sans-serif; }
header, main, footer { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
header { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; padding-top: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
header nav { display: flex; gap: 16px; }
a { color: var(--accent); }
.brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
h1 { font-size: 2rem; margin: 24px 0 8px; }
h2 { font-size: 1.25rem; margin: 32px 0 12px; }
h3 { margin: 0 0 4px; font-size: 1.05rem; }
.hero p { max-width: 60ch; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.stat .n { display: block; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .9rem; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.fill { width: 100%; background: color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 2px 2px 0 0; display: flex; align-items: flex-end; }
.bots { width: 100%; background: var(--bot); border-radius: 2px 2px 0 0; }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; padding: 2px 4px; }
.legend { color: var(--muted); font-size: .85rem; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.sw.all { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.sw.bot { background: var(--bot); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.enclosure { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.blurb, .meta, .small, .kicker { color: var(--muted); font-size: .9rem; margin: 4px 0; }
ul.species { list-style: none; padding: 0; margin: 8px 0 0; }
ul.species li { margin: 3px 0; }
ul.species img { vertical-align: -4px; margin-right: 6px; border-radius: 3px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
code, pre { font-family: ui-monospace, monospace; font-size: .88em; }
td code { display: inline-block; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px; white-space: pre-wrap; word-break: break-all; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .8rem; border: 1px solid currentColor; }
.good, .v-verified { color: var(--good); }
.mixed, .v-unchecked { color: var(--mixed); }
.bad, .v-impostor { color: var(--bad); }
.unknown, .v-na { color: var(--muted); }
tr.k-trap td:first-child, tr.k-bait td:first-child { border-left: 3px solid var(--bad); }
.plate { display: grid; grid-template-columns: 160px 1fr; gap: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-top: 24px; }
.plate h1 { margin-top: 0; }
.portrait { border-radius: 8px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
dt { color: var(--muted); }
dd { margin: 0; }
.depth { display: inline-block; height: 8px; background: var(--bad); border-radius: 2px; margin-left: 8px; vertical-align: middle; }
footer { margin-top: 48px; padding-top: 12px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.staff { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .plate { grid-template-columns: 1fr; }
  h1 { font-size: 1.6rem; }
}

/* ── 0.3.0: masthead, stamps, tickets, plates ─────────────────────────── */
.masthead { display: block; }
.masthead > div { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.masthead .brand { font-size: 1.5rem; letter-spacing: .02em; }
.tagline { margin: 0; color: var(--muted); font-style: italic; }
.dateline { margin: 6px 0 8px; color: var(--muted); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.masthead nav { margin-top: 4px; }
.hero .big { font-size: 1.1rem; margin: 24px 0 4px; }
.hero .big .n { font-size: 3rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 8px; }
.hero .sub { color: var(--muted); margin: 0 0 16px; max-width: 70ch; }
.ticket { display: inline-block; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 16px; margin: 0 0 16px; background: var(--panel); max-width: 48ch; }
.ticket .big { margin: 0; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ticket p { margin: 2px 0; }
.stamp { display: inline-block; padding: 0 6px; border: 1.5px solid currentColor; border-radius: 3px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; line-height: 1.5; vertical-align: middle; opacity: .9; }
.binomial { color: var(--muted); font-size: .9em; margin-right: 6px; }
.rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.note { font-style: italic; }
.plate-title { margin: 4px 0; font-size: 1.3rem; }
.more { color: var(--muted); font-size: .85rem; }
dl.stamps { grid-template-columns: max-content 1fr; align-items: center; }
tr.k-replay td, tr.k-honey td:first-child { border-left: 3px solid var(--bad); }
td .small, span.small { color: var(--muted); font-size: .8rem; }
.stats .stat .n { font-size: 1.4rem; }
.h0{height:0%}.h1{height:1%}.h2{height:2%}.h3{height:3%}.h4{height:4%}.h5{height:5%}.h6{height:6%}.h7{height:7%}.h8{height:8%}.h9{height:9%}.h10{height:10%}.h11{height:11%}.h12{height:12%}.h13{height:13%}.h14{height:14%}.h15{height:15%}.h16{height:16%}.h17{height:17%}.h18{height:18%}.h19{height:19%}.h20{height:20%}.h21{height:21%}.h22{height:22%}.h23{height:23%}.h24{height:24%}.h25{height:25%}.h26{height:26%}.h27{height:27%}.h28{height:28%}.h29{height:29%}.h30{height:30%}.h31{height:31%}.h32{height:32%}.h33{height:33%}.h34{height:34%}.h35{height:35%}.h36{height:36%}.h37{height:37%}.h38{height:38%}.h39{height:39%}.h40{height:40%}.h41{height:41%}.h42{height:42%}.h43{height:43%}.h44{height:44%}.h45{height:45%}.h46{height:46%}.h47{height:47%}.h48{height:48%}.h49{height:49%}.h50{height:50%}.h51{height:51%}.h52{height:52%}.h53{height:53%}.h54{height:54%}.h55{height:55%}.h56{height:56%}.h57{height:57%}.h58{height:58%}.h59{height:59%}.h60{height:60%}.h61{height:61%}.h62{height:62%}.h63{height:63%}.h64{height:64%}.h65{height:65%}.h66{height:66%}.h67{height:67%}.h68{height:68%}.h69{height:69%}.h70{height:70%}.h71{height:71%}.h72{height:72%}.h73{height:73%}.h74{height:74%}.h75{height:75%}.h76{height:76%}.h77{height:77%}.h78{height:78%}.h79{height:79%}.h80{height:80%}.h81{height:81%}.h82{height:82%}.h83{height:83%}.h84{height:84%}.h85{height:85%}.h86{height:86%}.h87{height:87%}.h88{height:88%}.h89{height:89%}.h90{height:90%}.h91{height:91%}.h92{height:92%}.h93{height:93%}.h94{height:94%}.h95{height:95%}.h96{height:96%}.h97{height:97%}.h98{height:98%}.h99{height:99%}.h100{height:100%}.w0{width:0px}.w1{width:8px}.w2{width:16px}.w3{width:24px}.w4{width:32px}.w5{width:40px}.w6{width:48px}.w7{width:56px}.w8{width:64px}.w9{width:72px}.w10{width:80px}.w11{width:88px}.w12{width:96px}