site built from d7befc8e

This commit is contained in:
Atlas data bot
2026-11-19 16:50:57 +00:00
commit af69e14f18
28 changed files with 21952 additions and 0 deletions
+757
View File
@@ -0,0 +1,757 @@
<!doctype html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Threshing Route Atlas</title>
<meta name="claude:viewport-fit-sides" content="cover">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Marcellus&family=Josefin+Sans:wght@400;600&family=Alegreya+Sans:ital,wght@0,400;0,500;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap">
<style>
/* Layout: a field atlas — one wide route chart flanked by narrow reading columns; numbers set in mono, dragons carry their own colours. */
/* Layout: a dusk-lit field atlas — arched, deco-framed panels on deep plum; gold line work; each dragon tints its own frame; deaths turn steel and ember. Single dark world by design. */
:root {
color-scheme: dark;
--bg: #170911; --surface: #210f19; --raised: #2a1420; --ink: #f6e8d6; --muted: #cba890; --faint: #8e7069; --line: #4b2a36;
--accent: #e8b483; --accent-ink: #1d0a12; --good: #8fc98a; --warn: #f0a55a; --bad: #ef6b6b;
--dr-red: #e8435e; --dr-green: #3fc0a8; --dr-orange: #ff9533; --dr-brown: #d1a47a; --dr-blue: #7ea6ff; --dr-black: #e0d8ea; /* checked for colour-blind separation (see docs/COLOURS.md) */ --dr-any: #e0a9c6;
--link-low: #4f2f3c; --death: #9fb6c3; --ember: #e3692f; --death-bg: #1b0811; --frame: var(--accent);
--font-display: "Marcellus", "Iowan Old Style", Georgia, serif;
--font-crest: "Marcellus", "Iowan Old Style", Georgia, serif;
--font-label: "Josefin Sans", "Gill Sans", "Trebuchet MS", sans-serif;
--font-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
--font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
--hero-bg: #1a0912; --hero-bg2: #3a1526; --hero-ink: #f6e8d6; --hero-muted: #d2b096; --hero-line: #6b4148;
--map-ground: #2a1420; --map-ground2: #34192a; --map-forest: #4b2b3b; --map-forest2: #3b2030; --map-rock: #5e3d4a; --map-water: #6f90a5; --map-path: #e8b483; --map-label: #f6e8d6; --map-halo: #1c0a13;
--step--1: 0.84rem; --step-0: 1rem; --step-1: 1.18rem; --step-2: 1.6rem; --step-3: 2.3rem; --radius: 10px;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55; }
.wrap { max-width: 1260px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; }
p { margin: 0; max-width: 68ch; }
a { color: var(--accent); }
code, .num, .mono { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--font-data); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
header.top { border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .wrap { display: grid; gap: 14px; padding-block: 28px 22px; }
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lede { color: var(--muted); max-width: 72ch; }
.data-status { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--step--1); color: var(--muted); align-items: center; }
.data-status b { color: var(--ink); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); font-size: var(--step--1); white-space: nowrap; }
.data-status .pill { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.data-status > span { min-width: 0; overflow-wrap: anywhere; }
.pill.warn { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); color: var(--warn); }
nav.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--step--1); }
nav.toc a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
nav.toc a:hover, nav.toc a:focus-visible { color: var(--ink); border-bottom-color: var(--accent); }
main { display: grid; gap: 44px; padding-block: 30px 60px; }
section { display: grid; gap: 16px; scroll-margin-top: 16px; }
.section-head { display: grid; gap: 6px; }
/* controls */
.controls { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: end; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ctl { display: grid; gap: 4px; min-width: 0; }
.ctl label, .ctl .lbl { font-size: var(--step--1); color: var(--muted); }
select, input[type="number"], button, .filebtn, .btnlike { font: inherit; font-size: var(--step--1); color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 6px 10px; }
input[type="number"] { width: 5.5em; }
button, .filebtn, .btnlike { cursor: pointer; }
.btnlike { display: inline-block; text-decoration: none; }
button:hover, .filebtn:hover { border-color: var(--accent); }
button:focus-visible, select:focus-visible, input:focus-visible, .filebtn:focus-within, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary, a.btnlike.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: var(--step--1); }
.targets { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); font-size: var(--step--1); cursor: pointer; }
.tchip .sw { width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--faint)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent); }
.tchip[aria-pressed="true"] { border-color: var(--c, var(--ink)); box-shadow: inset 0 0 0 1px var(--c, var(--ink)); font-weight: 600; }
.tchip.featured { padding: 7px 14px; font-size: var(--step-0); }
.target-group { display: grid; gap: 6px; }
/* map */
.map-shell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); overflow: hidden; }
.map-top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.cond-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.cchip { display: inline-flex; gap: 6px; align-items: center; padding: 2px 4px 2px 9px; border: 1px solid var(--accent); color: var(--ink); border-radius: 999px; font-size: var(--step--1); background: color-mix(in srgb, var(--accent) 10%, var(--raised)); }
.cchip button { border: 0; background: transparent; padding: 0 6px; line-height: 1; font-size: 1rem; color: var(--muted); }
.map-scroll { overflow-x: auto; }
#map { display: block; }
#map text { font-family: var(--font-body); font-size: 11px; fill: var(--ink); }
#map .stage-label { font-family: var(--font-data); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--muted); }
#map .stage-chance { fill: var(--accent); }
#map .node rect { stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 0.6; cursor: pointer; }
#map .node.sel rect { stroke: var(--accent); stroke-width: 2.4; }
#map .node.dim { opacity: 0.35; }
#map .link { mix-blend-mode: normal; }
#map .link:hover { opacity: 1 !important; }
#map .node:focus-visible rect { stroke: var(--accent); stroke-width: 3; }
.map-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; padding: 14px; border-top: 1px solid var(--line); background: var(--surface); }
@media (max-width: 820px) { .map-foot { grid-template-columns: minmax(0, 1fr); } }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: var(--step--1); color: var(--muted); }
.ramp { width: 150px; height: 10px; border-radius: 3px; border: 1px solid var(--line); }
.sel-summary { display: grid; gap: 6px; font-size: var(--step--1); }
.sel-summary .big { font-family: var(--font-data); font-size: var(--step-2); color: var(--ink); }
#tip { position: fixed; z-index: 50; pointer-events: none; background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: var(--step--1); box-shadow: 0 6px 20px rgba(0,0,0,0.18); max-width: 300px; }
#tip .t { font-weight: 600; }
/* cards & grids */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; min-width: 0; align-content: start; }
.panel h3 { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.chart { width: 100%; overflow-x: auto; }
.chart svg { display: block; width: 100%; max-width: 760px; min-width: 540px; height: auto; }
.chart svg text { font-family: var(--font-body); font-size: 11px; fill: var(--ink); }
.chart svg .axis text { fill: var(--muted); font-family: var(--font-data); font-size: 10px; }
.chart svg .axis line, .chart svg .grid line { stroke: var(--line); }
.findings { display: grid; gap: 12px; counter-reset: f; }
.finding { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.finding .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-data); font-size: 11px; color: var(--accent-ink); background: var(--muted); }
.finding.blue .mark { background: var(--dr-blue); color: #fff; }
.finding.black .mark { background: var(--dr-black); color: var(--bg); }
.finding.bias .mark { background: var(--warn); color: #fff; }
.finding.lead .mark { background: var(--accent); }
.finding p + p { margin-top: 4px; }
.finding .tag { font-family: var(--font-data); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
th, td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); background: var(--surface); position: sticky; top: 0; white-space: nowrap; }
th[data-sort] { cursor: pointer; }
th[data-sort]:hover { color: var(--ink); }
td.num, th.num { text-align: right; font-family: var(--font-data); font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.sig td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
tr.thin td { color: var(--faint); }
.route-cell { min-width: 280px; }
.cibar { display: inline-block; position: relative; width: 90px; height: 10px; vertical-align: middle; }
.cibar i { position: absolute; top: 4px; height: 2px; background: var(--muted); }
.cibar b { position: absolute; top: 1px; width: 2px; height: 8px; background: var(--ink); }
.qbadge { font-family: var(--font-data); font-size: 10.5px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); }
.qbadge.s { border-color: var(--accent); color: var(--accent); }
.method { display: grid; gap: 14px; }
.method p, .method li { max-width: 74ch; }
.method ul, .method ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.formula { font-family: var(--font-data); font-size: var(--step--1); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 4px; overflow-x: auto; white-space: pre; }
details.fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details.fold > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
details.fold > div { padding: 0 14px 14px; display: grid; gap: 10px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
#srcview { white-space: pre; overflow: auto; max-height: 420px; font-family: var(--font-data); font-size: 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 4px; padding: 10px; }
.toast { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; font-size: var(--step--1); z-index: 60; }
.loading { padding: 40px 0; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding-block: 22px 40px; color: var(--muted); font-size: var(--step--1); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* ---------- hero, tabs, overview, valley map, gallery ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--hero-bg); }
.hero { background: radial-gradient(120% 140% at 70% 0%, var(--hero-bg2), var(--hero-bg) 60%); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 14px; padding-block: 34px 0; }
.hero-art { position: absolute; inset: auto 0 0 0; height: 100%; width: 100%; z-index: 0; pointer-events: none; }
.hero h1 { font-family: var(--font-crest); font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: 0.04em; color: var(--hero-ink); }
.hero .kicker { font-family: var(--font-data); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hero-muted); }
.hero .tagline { color: var(--hero-muted); max-width: 60ch; font-size: var(--step-1); }
.hero .unofficial { display: inline-block; font-size: var(--step--1); color: var(--hero-muted); border: 1px solid var(--hero-line); border-radius: 999px; padding: 2px 10px; width: fit-content; }
.tabs { display: flex; gap: 2px; overflow-x: auto; margin-top: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font-family: var(--font-crest); font-weight: 700; letter-spacing: 0.06em; font-size: 0.9rem; color: var(--hero-muted); background: transparent; border: 0; border-radius: 8px 8px 0 0; padding: 12px 16px 11px; white-space: nowrap; cursor: pointer; border-top: 2px solid transparent; }
.tab:hover { color: var(--hero-ink); }
.tab[aria-selected="true"] { background: var(--bg); color: var(--ink); border-top-color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tabpanel { display: grid; gap: 44px; }
.tabpanel > section, .tabpanel > section > * { min-width: 0; }
select { max-width: 100%; }
.tabpanel[hidden] { display: none !important; }
section h2 { font-family: var(--font-crest); letter-spacing: 0.03em; }
.odds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.odd { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 10px; align-content: start; position: relative; overflow: hidden; }
.odd .big { font-family: var(--font-crest); font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--c, var(--ink)); }
.odd .what { font-weight: 600; }
.odd .how { font-size: var(--step--1); color: var(--muted); }
.odd svg { display: block; width: 100%; max-width: 220px; height: auto; }
.odd::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c, var(--line)); }
.combo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.combo .odd { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0; counter-reset: st; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stop { padding: 14px; display: grid; gap: 6px; align-content: start; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stop .n { font-family: var(--font-crest); font-weight: 700; color: var(--accent); font-size: 1.3rem; }
.stop .t { font-weight: 600; }
.stop .d { font-size: var(--step--1); color: var(--muted); }
.stop .verdict { font-size: var(--step--1); border-top: 1px dashed var(--line); padding-top: 6px; }
.stop.roll .n::after { content: " · roll"; font-family: var(--font-data); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }
.truths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.truth { padding: 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.truth h3 { font-family: var(--font-crest); font-size: 1.05rem; letter-spacing: 0.02em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cta button { font-size: var(--step-0); padding: 9px 16px; }
.lore { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; color: var(--muted); font-size: var(--step--1); max-width: 70ch; }
.valley-shell { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--map-ground); }
.valley-wrap { overflow-x: auto; }
#valley { display: block; width: 100%; min-width: 820px; height: auto; background: #d9b07a; }
#valley .loc { cursor: pointer; }
#valley .loc:focus-visible circle.ring { stroke: var(--accent); stroke-width: 4; }
#valley text { font-family: var(--font-body); }
#valley .place { font-family: var(--font-crest); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; fill: var(--map-label); paint-order: stroke; stroke: var(--map-halo); stroke-width: 4px; stroke-linejoin: round; }
#valley .sub { font-size: 12px; fill: var(--map-label); opacity: 0.85; paint-order: stroke; stroke: var(--map-halo); stroke-width: 3px; }
#valley .trail { fill: none; stroke-linecap: round; }
#valley .flow { fill: none; stroke-linecap: round; stroke-dasharray: 2 14; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { #valley .flow { animation: none; } }
.valley-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; padding: 14px; border-top: 1px solid var(--line); background: var(--surface); }
@media (max-width: 820px) { .valley-foot { grid-template-columns: minmax(0, 1fr); } }
.loc-card { display: grid; gap: 6px; font-size: var(--step--1); }
.loc-card h3 { font-family: var(--font-crest); font-size: 1.1rem; }
.bars { display: grid; gap: 4px; }
.bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 96px; gap: 8px; align-items: center; font-size: var(--step--1); }
.bar i { display: block; height: 10px; border-radius: 3px; background: var(--c, var(--muted)); min-width: 2px; }
.bar span:last-child { text-align: right; font-family: var(--font-data); white-space: nowrap; }
.gallery { display: grid; gap: 22px; }
.gal-group { display: grid; gap: 10px; }
.gal-group h3 { font-family: var(--font-crest); display: flex; gap: 10px; align-items: center; font-size: 1.15rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 10px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; justify-items: center; text-align: center; position: relative; }
.dcard svg { width: 64px; height: 64px; }
.dcard .nm { font-family: var(--font-crest); font-weight: 700; font-size: 1rem; letter-spacing: 0.03em; overflow-wrap: anywhere; }
.dcard .meta { font-size: 12px; color: var(--muted); line-height: 1.35; }
.dcard .age { position: absolute; top: 34px; right: 16px; font-family: var(--font-data); font-size: 11px; color: var(--muted); }
.viewtoggle { display: inline-flex; }
/* ---------- dusk & gold theme layer ---------- */
body { background: radial-gradient(140% 90% at 50% -10%, #2b0f1f 0%, var(--bg) 55%) fixed, var(--bg); }
.eyebrow, .kicker, .lbl, .tab, .tchip, button, .filebtn, th, .stage-label { font-family: var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow { font-size: 0.72rem; color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
h2 { font-size: var(--step-2); letter-spacing: 0.04em; }
.panel h3, .truth h3, .gal-group h3, .loc-card h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.03em; }
button, .filebtn, .btnlike { border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--raised) 80%, #000); color: var(--ink); font-size: 0.74rem; padding: 8px 16px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35), 0 0 12px rgba(232,180,131,0.08); }
button:hover, .filebtn:hover { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35), 0 0 14px rgba(232,180,131,0.25); }
button.primary { background: var(--accent); color: var(--accent-ink); }
select, input[type="number"], input[type="search"] { background: var(--raised) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 8px !important; }
.seg { border-radius: 999px; border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.seg button { border-radius: 0; box-shadow: none; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tchip { border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 55%, var(--line)); background: color-mix(in srgb, var(--raised) 85%, #000); font-size: 0.72rem; padding: 7px 14px; }
.tchip[aria-pressed="true"] { background: color-mix(in srgb, var(--c, var(--accent)) 22%, var(--raised)); box-shadow: 0 0 14px color-mix(in srgb, var(--c, var(--accent)) 35%, transparent), inset 0 0 0 1px var(--c, var(--accent)); }
.tchip.featured { font-size: 0.8rem; }
/* deco frame: double line + sunburst corners, tinted by --frame */
.deco { position: relative; border: 1px solid color-mix(in srgb, var(--frame) 75%, transparent); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px color-mix(in srgb, var(--frame) 40%, transparent); }
.deco::before, .deco::after { content: ""; position: absolute; width: 46px; height: 46px; pointer-events: none; background: var(--frame); opacity: 0.55;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cg stroke='black' stroke-width='1' fill='none'%3E%3Cpath d='M2 2 L44 9 M2 2 L40 16 M2 2 L35 22 M2 2 L29 28 M2 2 L22 35 M2 2 L16 40 M2 2 L9 44'/%3E%3Cpath d='M2 14 A12 12 0 0 0 14 2' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cg stroke='black' stroke-width='1' fill='none'%3E%3Cpath d='M2 2 L44 9 M2 2 L40 16 M2 2 L35 22 M2 2 L29 28 M2 2 L22 35 M2 2 L16 40 M2 2 L9 44'/%3E%3Cpath d='M2 14 A12 12 0 0 0 14 2' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") no-repeat; }
.deco::before { top: 6px; left: 6px; }
.deco::after { bottom: 6px; right: 6px; transform: rotate(180deg); }
.panel, .odd, .truth, .finding, .controls, .map-shell, .valley-shell, .journey, .dcard, .tbl-wrap { border-color: color-mix(in srgb, var(--frame) 30%, var(--line)); }
.panel, .odd, .truth { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--frame) 8%), var(--surface)); }
.controls { background: color-mix(in srgb, var(--surface) 80%, #000); }
.odd::before { display: none; }
.odd { border-radius: 120px 120px 14px 14px / 60px 60px 14px 14px; padding-top: 26px; text-align: center; justify-items: center; }
.odd .big { font-family: var(--font-display); font-weight: 400; text-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.combo .odd { border-radius: 14px; text-align: left; justify-items: start; }
.truth { border-radius: 14px; }
table { background: transparent; }
th { background: color-mix(in srgb, var(--surface) 70%, #000); color: var(--accent); font-size: 0.7rem; }
td { border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.tbl-wrap { background: color-mix(in srgb, var(--raised) 60%, var(--bg)); }
.formula { background: var(--death-bg); border-left-color: var(--accent); }
#tip { background: #2a1420; border-color: var(--accent); box-shadow: 0 6px 24px rgba(0,0,0,0.5), 0 0 12px rgba(232,180,131,0.15); }
.toast { background: var(--accent); color: var(--accent-ink); }
.pill { background: color-mix(in srgb, var(--raised) 70%, #000); }
.lore { border-left-color: var(--accent); font-style: italic; }
/* hero: arched title card over a dusk forest */
.hero { background: radial-gradient(90% 120% at 50% 0%, var(--hero-bg2), var(--hero-bg) 70%); }
.hero .wrap { justify-items: center; text-align: center; padding-block: 28px 0; }
.arch { --frame: var(--accent); position: relative; padding: 34px clamp(18px, 5vw, 64px) 26px; border-radius: 260px 260px 18px 18px / 150px 150px 18px 18px; border: 1px solid color-mix(in srgb, var(--accent) 80%, transparent);
box-shadow: inset 0 0 0 5px rgba(26,9,18,0.9), inset 0 0 0 6px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 40px rgba(0,0,0,0.45);
background: radial-gradient(70% 80% at 50% 40%, rgba(40,10,26,0.92), rgba(22,7,15,0.95)); display: grid; gap: 10px; justify-items: center; max-width: 760px; width: 100%; }
.arch .crest { width: 120px; height: 34px; margin-top: -8px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; font-size: clamp(1.7rem, 5vw, 3rem); text-shadow: 0 0 22px rgba(232,180,131,0.25); }
.hero .kicker { font-family: var(--font-label); color: var(--accent); letter-spacing: 0.22em; font-size: 0.7rem; }
.hero .tagline { color: var(--hero-muted); font-size: var(--step-1); }
.hero .unofficial { border-color: var(--hero-line); color: var(--hero-muted); }
.tabs { justify-content: flex-start; gap: 6px; margin-top: 22px; padding-bottom: 14px; flex-wrap: nowrap; width: fit-content; max-width: 100%; }
.tab { border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); padding: 9px 16px; font-size: 0.7rem; color: var(--hero-muted); background: rgba(20,6,13,0.6); border-top-width: 1px; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 16px rgba(232,180,131,0.35); }
.embers { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); opacity: 0; animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 0.9; } 100% { transform: translateY(-340px) translateX(20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .embers i { animation: none; opacity: 0.5; bottom: auto; } }
/* death palette: steel frame, ember glow */
.death { --frame: var(--death); background: radial-gradient(80% 90% at 50% 30%, #2a0b19, var(--death-bg)) !important; color: #efe6f2; }
.death .big { color: #efe6f2 !important; text-shadow: 0 0 22px rgba(227,105,47,0.45), 0 0 4px rgba(255,255,255,0.4) !important; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; }
.death .how, .death p { color: #c8bcc9; }
.arch::before { top: auto; bottom: 6px; left: 6px; transform: rotate(270deg); }
.odds { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 600px) { .hero .tagline { font-size: var(--step-0); } }
/* dragon-tinted frames */
.dcard { --frame: var(--dc, var(--accent)); border-radius: 60px 60px 12px 12px / 34px 34px 12px 12px; border: 1px solid color-mix(in srgb, var(--frame) 60%, transparent); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px color-mix(in srgb, var(--frame) 30%, transparent); padding-top: 16px; }
.dcard .nm { font-family: var(--font-display); font-weight: 400; }
.gal-group h3 { color: var(--ink); }
.loc-card { --frame: var(--lc, var(--accent)); }
.valley-shell { --frame: var(--vt, var(--accent)); border-color: color-mix(in srgb, var(--frame) 60%, transparent); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px color-mix(in srgb, var(--frame) 40%, transparent), 0 0 30px color-mix(in srgb, var(--frame) 15%, transparent); }
#panel-rare .panel:nth-child(odd) { --frame: var(--dr-blue); }
#panel-rare .panel:nth-child(even) { --frame: var(--dr-black); }
.stop .n { font-family: var(--font-display); font-weight: 400; color: var(--accent); }
.journey { background: color-mix(in srgb, var(--surface) 85%, #000); }
footer { border-top-color: var(--line); }
/* the valley explorer (landing page) */
.explorer { gap: 0; }
.ex-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface);
--frame: var(--vt, var(--accent)); border-color: color-mix(in srgb, var(--frame) 55%, transparent); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px color-mix(in srgb, var(--frame) 35%, transparent), 0 0 36px color-mix(in srgb, var(--frame) 14%, transparent); transition: box-shadow .3s; }
@media (max-width: 980px) { .ex-shell { grid-template-columns: minmax(0, 1fr); } }
.ex-map-wrap { position: relative; overflow-x: auto; background: #d9b07a; }
#ex-map { display: block; width: 100%; min-width: 720px; height: auto; }
#ex-map text { font-family: var(--font-body); }
.ex-dragon { cursor: pointer; transition: opacity .25s; }
.ex-dragon:focus-visible, .ex-mark:focus-visible, .ex-alt:focus-visible { outline: none; filter: drop-shadow(0 0 4px #fff); }
.ex-mark, .ex-alt { cursor: pointer; }
.ex-hint { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: color-mix(in srgb, #1d0a12 78%, transparent); color: #f6e6c4; font-family: var(--font-label); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; pointer-events: none; white-space: nowrap; }
.ex-tip { position: absolute; z-index: 3; max-width: 260px; padding: 8px 10px; border-radius: 8px; background: #fbf0d6; color: #3b2416; font-size: 13px; line-height: 1.35; box-shadow: 0 4px 18px #0006; pointer-events: none; }
.ex-panel { position: relative; border-left: 1px solid var(--line); }
.ex-scroll { position: absolute; inset: 0; overflow: auto; display: grid; gap: 12px; align-content: start; padding: 18px; }
@media (max-width: 980px) { .ex-panel { border-left: 0; border-top: 1px solid var(--line); } .ex-scroll { position: static; } }
.ex-panel h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.ex-choose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ex-dchip { display: grid; justify-items: center; gap: 2px; padding: 6px 4px 8px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); background: color-mix(in srgb, var(--raised) 85%, #000); color: var(--ink); font-size: .68rem; }
.ex-dchip svg { width: 58px; height: 46px; }
.ex-dchip[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 22%, var(--raised)); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 35%, transparent), inset 0 0 0 1px var(--c); }
.ex-card { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.ex-toggle { display: flex; gap: 8px; align-items: center; font-size: var(--step--1); color: var(--muted); }
.ex-layers { display: grid; gap: 4px; margin: 4px 0 0 24px; }
.ex-layer { display: grid; grid-template-columns: auto 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: var(--step--1); color: inherit; cursor: pointer; }
.ex-layer.none { color: var(--muted); cursor: default; }
.ex-layer .sw { height: 0; border-top: 4px solid var(--sw); border-radius: 2px; }
.ex-layer .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.ex-kinds { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: var(--step--1); color: var(--muted); }
.ex-kind { display: inline-flex; align-items: center; gap: 6px; }
.ex-kind svg { width: 34px; height: 8px; }
.ex-inside { margin: 10px 0 4px; padding: 10px 12px; border-left: 2px solid var(--c, var(--accent)); background: color-mix(in srgb, var(--bg) 70%, transparent); border-radius: 0 8px 8px 0; }
.ex-inside ol { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 8px; }
.ex-inside ol > li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.ex-inside .n { font-family: var(--font-display); color: var(--muted); text-align: right; }
.ex-inside b { display: block; font-weight: 600; }
.ex-inside small { color: var(--muted); }
.ex-inside details summary { cursor: pointer; font-size: var(--step--1); color: var(--muted); }
.ex-inside ul { margin: 4px 0 0 16px; padding: 0; font-size: var(--step--1); }
.ex-inside + .ex-inside { margin-top: 8px; }
.ex-inside .ex-roll { display: block; font-style: italic; }
.ex-fulltree ul { list-style: disc; }
.ex-fulltree li.best { font-weight: 600; }
.ex-fulltree li.pale { opacity: 0.7; font-style: italic; }
.ex-fulltree li.roll { list-style: none; }
.ex-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ex-head svg { width: 64px; height: 52px; }
.ex-head h2 { color: var(--c); }
.ex-place { cursor: pointer; }
.ex-place:hover text, .ex-place:focus-visible text { text-decoration: underline; fill-opacity: 1; }
.ex-place:focus { outline: none; }
.ex-here { display: grid; gap: 6px; margin: 10px 0 4px; justify-items: start; }
.ex-here-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--ink); font-size: .85rem; }
.ex-chip:hover, .ex-chip:focus-visible { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.ex-from { display: grid; gap: 6px; margin: 12px 0; }
.ex-from-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 12px 10px 6px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); background: color-mix(in srgb, var(--raised) 85%, #000); color: var(--ink); text-align: left; overflow: hidden; }
.ex-from-row svg { width: 44px; height: 36px; }
.ex-from-row .nm { display: grid; font-weight: 700; color: var(--c); min-width: 0; }
.ex-from-row .nm small { font-weight: 400; color: var(--muted); }
.ex-from-row b { font-size: 1.1rem; }
.ex-from-row i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--w); background: var(--c); }
.ex-from-row.off { opacity: .55; }
.ex-from-row.off small { grid-column: 3; color: var(--muted); }
button.ex-from-row:hover { border-color: var(--c); }
.ex-close { width: 32px; height: 32px; border-radius: 50%; padding: 0; font-size: 1.1rem; line-height: 1; }
.ex-routes { display: grid; gap: 8px; }
.ex-route-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font-family: var(--font-body); text-transform: none; letter-spacing: normal; font-size: var(--step--1); }
.ex-route-card.on { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.ex-route-card .nm { font-family: var(--font-display); font-size: 1rem; }
.ex-route-card .nm em { font-style: normal; color: var(--muted); font-size: .8rem; }
.ex-route-card b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.ex-route-card small { grid-column: 2 / 4; color: var(--muted); }
.ex-swatch { grid-row: 1 / 3; width: 30px; height: 0; border-top: 6px solid var(--c); }
.ex-swatch.dashed { border-top-style: dashed; } .ex-swatch.dotted { border-top-style: dotted; }
.ex-key { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.ex-key span { display: inline-block; width: 22px; border-top: 4px solid var(--muted); }
.ex-key .dashed { border-top-style: dashed; } .ex-key .dotted { border-top-style: dotted; }
.ex-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ex-steps li { border-radius: 8px; }
.ex-steps li.chance { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 6px 10px; border: 1px dashed var(--line); font-size: var(--step--1); }
.ex-steps li.chance small { grid-column: 1 / 3; color: var(--muted); font-family: var(--font-data); }
.ex-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; width: 100%; text-align: left; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font-family: var(--font-body); text-transform: none; letter-spacing: normal; font-size: var(--step--1); }
.ex-step small { grid-column: 1 / 3; color: var(--muted); font-family: var(--font-data); }
.ex-steps li.open .ex-step { border-color: var(--accent); }
.ex-opts { display: grid; gap: 2px; padding: 6px 0 4px 10px; }
.ex-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; text-align: left; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-family: var(--font-body); text-transform: none; letter-spacing: normal; font-size: var(--step--1); }
.ex-opt:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.ex-opt.on { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.ex-opt b { font-family: var(--font-data); }
.ex-opt .rec { font-style: normal; font-size: 9.5px; font-family: var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--bg); background: var(--accent); border-radius: 999px; padding: 1px 6px; margin-left: 4px; }
.ex-why summary { cursor: pointer; font-family: var(--font-label); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: var(--accent); }
.ex-why { display: grid; gap: 6px; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; width: fit-content; }
.seg button { border: 0; border-radius: 0; background: transparent; padding: 7px 13px; color: var(--muted); font-size: 0.7rem; }
.seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, var(--raised)); color: var(--ink); }
/* the odds, per dragon */
.odds-colours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .odds-colours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .odds-colours { grid-template-columns: minmax(0, 1fr); } }
.odd-colour { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.odd-colour:hover, .odd-colour:focus-visible { transform: translateY(-2px); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 30%, transparent); }
.odd-art { width: 110px; height: 88px; max-width: none; }
.odd .go { font-family: var(--font-label); letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; color: var(--c); }
.ladder { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: 10px; }
.ladder ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ladder li { display: grid; grid-template-columns: 70px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: var(--step--1); }
.ladder li i { display: block; height: 10px; border-radius: 4px; width: var(--w); background: var(--c); }
.ladder li b { font-family: var(--font-data); text-align: right; }
.combo { grid-template-columns: minmax(0, 1fr); }
/* prose uses the full width of its column (it looked cramped on wide screens) */
p, .lede, .lore, .method p, .method li { max-width: none; }
footer p + p { margin-top: 8px; }
a { color: var(--accent); text-underline-offset: 2px; }
/* methods as tabs */
.mtabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.mtab { border-radius: 999px; padding: 7px 14px; font-size: .7rem; background: transparent; }
.mtab[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 22%, var(--raised)); border-color: var(--accent); color: var(--ink); }
.mpanel { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mpanel[hidden] { display: none; }
.mpanel h3 { margin: 0; }
</style>
<header class="hero">
<svg class="hero-art" id="hero-art" viewBox="0 0 1200 420" preserveAspectRatio="xMidYMax slice" aria-hidden="true"></svg>
<div class="embers" id="embers" aria-hidden="true"></div>
<div class="wrap">
<div class="arch deco">
<svg class="crest" viewBox="0 0 120 34" aria-hidden="true"><g fill="none" stroke="#e8b483" stroke-width="1.1"><path d="M4 20 H44 M76 20 H116"/><path d="M60 4 L68 17 L60 30 L52 17 Z"/><path d="M60 10 L64 17 L60 24 L56 17 Z" fill="#e8b483"/><path d="M44 20 C50 12, 54 12, 52 17 M76 20 C70 12, 66 12, 68 17"/><circle cx="4" cy="20" r="2" fill="#e8b483"/><circle cx="116" cy="20" r="2" fill="#e8b483"/></g></svg>
<span class="kicker">Basgiath · Riders Quadrant · Threshing</span>
<h1>Threshing Route Atlas</h1>
<p class="tagline" id="hero-tagline">Every path through the valley, mapped from the runs riders logged.</p>
<span class="unofficial">Unofficial fan atlas for readers of Rebecca Yarros's <i>Fourth Wing</i> · not affiliated with Dragonkind</span>
</div>
<nav class="tabs" role="tablist" aria-label="Atlas pages">
<button class="tab" role="tab" id="tab-valley" aria-controls="panel-valley" aria-selected="true">The Valley</button>
<button class="tab" role="tab" id="tab-odds" aria-controls="panel-odds" aria-selected="false">The Odds</button>
<button class="tab" role="tab" id="tab-dragons" aria-controls="panel-dragons" aria-selected="false">The Dragons</button>
<button class="tab" role="tab" id="tab-deep" aria-controls="panel-deep" aria-selected="false">Deep Dive</button>
<button class="tab" role="tab" id="tab-data" aria-controls="panel-data" aria-selected="false">Data &amp; Methods</button>
<button class="tab" role="tab" id="tab-report" aria-controls="panel-report" aria-selected="false">Report a run</button>
</nav>
</div>
</header>
<div class="wrap">
<main>
<div class="tabpanel" id="panel-valley" role="tabpanel" aria-labelledby="tab-valley">
<section id="valley-sec" aria-labelledby="h-valley" class="explorer">
<div class="ex-shell deco" id="ex-shell">
<div class="ex-map-wrap"><svg id="ex-map" viewBox="0 0 1000 790" role="application" aria-label="Map of the threshing valley. Choose a dragon to see the routes to it."></svg>
<div class="ex-hint" id="ex-hint">Pick a dragon, or a key moment</div>
<div class="ex-tip" id="ex-tip" hidden></div>
</div>
<aside class="ex-panel" id="ex-panel" aria-live="polite"></aside>
</div>
</section>
</div>
<div class="tabpanel" id="panel-odds" role="tabpanel" aria-labelledby="tab-odds" hidden>
<section id="overview" aria-label="The odds">
<div class="odds" id="odds"></div>
<div class="odds odds-colours" id="odds-colours"></div>
</section>
<section aria-labelledby="h-journey">
<div class="section-head">
<span class="eyebrow">Seven steps, and the rolls remember what you did</span>
<h2 id="h-journey">How a run unfolds</h2>
</div>
<div class="journey" id="journey"></div>
<div class="panel black-panel" id="black-evidence" hidden></div>
<p class="lore">In the books, first-years who survive to Threshing walk into a valley of unbonded dragons, and the dragons do the choosing. The <a href="https://dragonkind.com" target="_blank" rel="noopener">Dragonkind</a> site recreates that: every choice can end with you incinerated, and its author has said no single roll is worse than 1 in 20 and that the Black is not luck.</p>
<div class="cta"><button type="button" class="primary" data-go="valley">Walk the valley map</button><button type="button" data-go="deep">Dig into the statistics</button><button type="button" data-go="dragons">Meet the bonded dragons</button></div>
</section>
</div>
<div class="tabpanel" id="panel-dragons" role="tabpanel" aria-labelledby="tab-dragons" hidden>
<section id="register" aria-labelledby="h-register">
<div class="section-head">
<span class="eyebrow">Bonded dragons, as riders registered them</span>
<h2 id="h-register">The bonded dragons</h2>
<p class="muted small">Every bonded dragon we could collect, sorted by colour, then tail, then lineage, then oldest first. Most come from ClumsyBadger's Unofficial Dragon Register form, and the rest from dragonkind.com result pages linked in the megathreads. Rider names and photos are left out. Misspelled lineages are corrected when they are within two letters of a lineage seen at least three times for the same colour. The original spelling is kept in the notes.</p>
</div>
<div class="data-status" id="reg-status"></div>
<div class="grid2">
<div class="panel"><h3>Colour × tail</h3><div class="tbl-wrap" id="reg-matrix"></div></div>
<div class="panel"><h3>Lineages</h3><div class="tbl-wrap" id="reg-lineages" style="max-height:340px"></div></div>
</div>
<div class="controls">
<div class="ctl"><label for="reg-colour">Colour</label><select id="reg-colour"></select></div>
<div class="ctl"><label for="reg-tail">Tail</label><select id="reg-tail"></select></div>
<div class="ctl"><label for="reg-lineage">Lineage</label><select id="reg-lineage"></select></div>
<div class="ctl"><label for="reg-sex">Sex</label><select id="reg-sex"></select></div>
<div class="ctl"><label for="reg-q">Search names</label><input id="reg-q" type="search" placeholder="Dragon or lineage" style="font:inherit;font-size:var(--step--1);padding:6px 10px;border:1px solid var(--line);border-radius:5px;background:var(--raised);color:var(--ink)"></div>
<div class="ctl"><span class="lbl">View</span><div class="seg" id="reg-view"><button type="button" data-v="cards" aria-pressed="true">Cards</button><button type="button" data-v="table" aria-pressed="false">Table</button></div></div>
<div class="btnrow" style="align-self:end"><button type="button" id="reg-copy">Copy as CSV</button><label class="filebtn" for="reg-upload">Load a newer register export…<input id="reg-upload" type="file" accept=".xlsx,.csv" hidden></label></div>
<span class="small muted" id="reg-count" style="align-self:center"></span>
</div>
<div class="gallery" id="reg-gallery"></div>
<div class="tbl-wrap" id="reg-table" style="max-height:640px" hidden></div>
</section>
</div>
<div class="tabpanel" id="panel-deep" role="tabpanel" aria-labelledby="tab-deep" hidden>
<section id="map-sec" aria-labelledby="h-map">
<div class="section-head">
<span class="eyebrow">Interactive</span>
<h2 id="h-map">Route map</h2>
<p class="muted small">Pick an outcome to colour every step by how often runs through it reached that outcome. Hover or tap a box or band for its numbers. To follow one route step by step, use <a href="#valley">The Valley</a>.</p>
</div>
<div class="controls" id="map-controls">
<div class="target-group">
<span class="lbl small muted">Bond a dragon</span>
<div class="targets" id="targets-rare"></div>
</div>
<div class="target-group">
<span class="lbl small muted">Rare sightings</span>
<div class="targets" id="targets-other"></div>
</div>
</div>
<div class="controls">
<div class="ctl"><span class="lbl">Band width shows</span>
<div class="seg" id="width-mode"><button type="button" data-v="traffic" aria-pressed="true">How many runs</button><button type="button" data-v="prob" aria-pressed="false">Chance of outcome</button></div></div>
<div class="ctl"><label for="minn">Grey out steps with fewer runs than</label><select id="minn"></select></div>
<div class="ctl"><label for="f-preset">Runs</label><select id="f-preset"></select></div>
</div>
<div class="map-shell deco">
<div class="map-top">
<div class="btnrow"><button type="button" id="btn-best">Show top routes for this outcome</button></div>
</div>
<div class="map-scroll"><svg id="map" role="img" aria-label="Route map"></svg></div>
<div class="map-foot">
<div class="legend" id="legend"></div>
</div>
</div>
<div id="best-routes"></div>
</section>
<section id="bondrates" aria-labelledby="h-dragons">
<div class="section-head">
<span class="eyebrow">Statistics · all six colours</span>
<h2 id="h-dragons">Every dragon: how often the attempt ends in a bond</h2>
<p class="muted small">A run counts here when the player reached that dragon's bonding encounter and the form shows Bonded or Incinerated. Many players die on purpose to reroll, which drags the raw rate down. "Wanted it" keeps only runs where the player said they were after that colour, or any dragon.</p>
</div>
<div class="chart panel" id="ch-encounters"></div>
<div class="grid2">
<div class="panel"><h3>The two Greens</h3><div id="green-rescue"></div></div>
<div class="panel"><h3>First sighting: what the game rolls</h3><p class="small muted">Which dragon met the cadet first, by company and direction. Pools come from the community PDF, and cells outside them are counted as data-quality flags.</p><div class="tbl-wrap" id="tbl-first"></div></div>
</div>
</section>
<section id="rare" aria-labelledby="h-rare">
<div class="section-head">
<span class="eyebrow">Blue &amp; Black</span>
<h2 id="h-rare">The rare dragons</h2>
<p class="muted small">Two separate rolls. The meadow Blue can join the Orange and Brown after you turn down the valley Red. The tree's shadow option leads to a Blue and then a Black.</p>
</div>
<div class="grid2">
<div class="panel"><h3>Does the Blue show up in the meadow?</h3><p class="small muted">Share of meadow visits where a Blue was attempted, by who logged the run. The game cannot know which dragon a player is chasing, so gaps between these bars come from how people report, not from the game.</p><div class="chart" id="ch-blue-strata"></div></div>
<div class="panel"><h3>Does the shadow show up at the tree?</h3><p class="small muted">Share of tree climbs where the shadow option led to a Blue and/or Black.</p><div class="chart" id="ch-shadow-strata"></div></div>
</div>
<div class="grid2">
<div class="panel"><h3>What changes the Blue's appearance, once reporting bias is held fixed?</h3><p class="small muted">Adjusted odds ratios from one logistic model: route choices plus data source and chase goal. Bars that cross 1 mean no detectable effect.</p><div class="chart" id="ch-model-blue"></div><p class="small muted" id="model-blue-note"></p></div>
<div class="panel"><h3>What changes the shadow's appearance?</h3><p class="small muted">Same approach for the shadow. With so few shadows, intervals are wide.</p><div class="chart" id="ch-model-shadow"></div><p class="small muted" id="model-shadow-note"></p></div>
</div>
<div class="grid2">
<div class="panel"><h3>Day by day (form submissions)</h3><p class="small muted">Bulk imports carry no dates, so they are left out here. Dots are sized by the number of runs, and whiskers show 95% intervals.</p><div class="chart" id="ch-daily"></div></div>
<div class="panel"><h3>Bonding once you reach them</h3><div class="chart" id="ch-rare-bond"></div>
<details class="fold"><summary>Step-by-step survival inside the encounter (from the community PDF)</summary><div id="pdf-steps"></div></details>
</div>
</div>
</section>
<section id="findings" aria-labelledby="h-findings">
<div class="section-head">
<span class="eyebrow">What the data supports</span>
<h2 id="h-findings">Findings</h2>
<p class="muted small">These sentences are generated from the current data and filters, so they update when the data does. "Lead" means a pattern worth testing that is not yet established.</p>
</div>
<div class="findings" id="findings-list"></div>
</section>
<section id="routes" aria-labelledby="h-routes">
<div class="section-head">
<span class="eyebrow">Ranked</span>
<h2 id="h-routes">Route table</h2>
<p class="muted small">A route here means every choice up to the hour. Routes are ranked by the lower end of their 95% interval, so a route needs both a high rate and enough runs to rank high. Each route is compared with every other route that could reach the same outcome. "Adjusted" holds data source and chase goal fixed (Mantel–Haenszel). q-values correct for testing many routes at once.</p>
</div>
<div class="controls"><div class="ctl"><label for="rt-target">Outcome</label><select id="rt-target"></select></div><div class="ctl"><label for="rt-min">Minimum runs per route</label><select id="rt-min"></select></div><p class="small muted" id="rt-note" style="align-self:center"></p></div>
<div class="tbl-wrap" id="tbl-routes"></div>
</section>
<section id="factors" aria-labelledby="h-factors">
<div class="section-head">
<span class="eyebrow">One choice at a time</span>
<h2 id="h-factors">Factor explorer</h2>
<p class="muted small">Each row compares runs with that answer against runs with any other answer to the same question, using Fisher's exact test. These comparisons are unadjusted, so check the adjusted models above before trusting a difference. Shaded rows have q &lt; 0.05 after correcting for every comparison in this table.</p>
</div>
<div class="controls"><div class="ctl"><label for="fx-outcome">Outcome</label><select id="fx-outcome"></select></div><div class="ctl"><label for="fx-factor">Question</label><select id="fx-factor"></select></div></div>
<div class="grid2"><div class="tbl-wrap" id="tbl-factors"></div><div class="panel"><h3>Odds ratios</h3><div class="chart" id="ch-factor"></div></div></div>
</section>
<section id="quality" aria-labelledby="h-quality">
<div class="section-head">
<span class="eyebrow">Read this before quoting a number</span>
<h2 id="h-quality">Data quality and bias</h2>
</div>
<div class="grid3" id="quality-panels"></div>
</section>
</div>
<div class="tabpanel" id="panel-data" role="tabpanel" aria-labelledby="tab-data" hidden>
<section aria-labelledby="h-truths">
<div class="section-head"><span class="eyebrow" id="h-truths-kicker">What the runs say</span><h2 id="h-truths">Three things worth knowing</h2></div>
<div class="truths" id="truths"></div>
</section>
<section id="data-sec" aria-labelledby="h-data">
<div class="section-head"><span class="eyebrow">Where the numbers come from</span><h2 id="h-data">Data</h2></div>
<div class="data-status" id="data-status"><span class="loading">Loading data…</span></div>
<p class="small muted">The data refresh every day from the community sources. Every number on this page is computed in Python (<code>analysis/stats/site_stats.py</code>) from the coded runs and published as <a href="data/stats.json">data/stats.json</a>; the coded runs themselves are <a href="data/runs_clean.csv" download>data/runs_clean.csv</a>: every run from every source (the community spreadsheet, runs reported here, result pages posted in the Reddit megathreads and the DragonKind bot), with a <code>source</code> column. The statistics on this page use the community spreadsheet's runs; the other sources are coded from different questions and join the statistics once they have been reviewed. Every column is described in <a href="data/dictionary.yaml">data/dictionary.yaml</a>, and <a href="data/croissant.json">data/croissant.json</a> carries the same description in the Croissant metadata format, with a checksum for every file.</p>
</section>
<section id="share" aria-labelledby="h-share">
<div class="section-head"><span class="eyebrow">Open by design</span><h2 id="h-share">Share &amp; reproduce</h2>
<p class="muted small">Everything on this page is computed from the community form export by the code in the <a href="https://git.kenschiano.net/DragonKind/threshing-atlas" target="_blank" rel="noopener">repository</a>, which updates the data every day. The rules for reading each answer are in <code>core/spec/form.yaml</code>, the game in <code>core/spec/game.yaml</code>, and what is measured in <code>analysis/stats/measures.yaml</code>.</p></div>
<div class="grid2">
<div class="panel"><h3>Copy the outputs</h3>
<div class="btnrow"><button type="button" id="cp-reddit" class="primary">Copy Reddit post (Markdown)</button><a class="btnlike" href="data/runs_clean.csv" download>Download coded runs (CSV)</a><button type="button" id="cp-json">Copy all results (JSON)</button></div>
<p class="small muted">The Reddit post is written from the numbers for the runs selected above.</p></div>
<div class="panel"><h3>Read the code</h3>
<div class="btnrow"><button type="button" data-src="python/form.yaml">form.yaml (every answer's meaning)</button><button type="button" data-src="python/coding.py">coding.py (the coding rules)</button><button type="button" data-src="python/measures.yaml">measures.yaml (what is measured)</button><button type="button" data-src="python/site_stats.py">site_stats.py (every number on this page)</button><button type="button" data-src="python/stats_core.py">stats_core.py</button><button type="button" data-src="app.js">app.js (this page)</button><button type="button" data-src="solver.js">solver.js (best routes)</button><button type="button" data-src="explorer.js">explorer.js (the valley map)</button><button type="button" data-src="register.js">register.js</button><button type="button" data-src="README.md">README</button></div>
<p class="small muted">The page itself computes nothing: it displays the numbers the Python code publishes. Tests in the repository check every rule and every number.</p>
<pre id="srcview" hidden></pre></div>
</div>
</section>
<section id="methods" aria-labelledby="h-methods" class="method">
<div class="section-head"><span class="eyebrow">How every number is made</span><h2 id="h-methods">Methods</h2></div>
<div class="mtabs" role="tablist" aria-label="Methods"><button type="button" role="tab" class="mtab" id="mt-0" aria-controls="mt-0-panel" aria-selected="true" tabindex="0">1. Runs</button><button type="button" role="tab" class="mtab" id="mt-1" aria-controls="mt-1-panel" aria-selected="false" tabindex="-1">2. Rates</button><button type="button" role="tab" class="mtab" id="mt-2" aria-controls="mt-2-panel" aria-selected="false" tabindex="-1">3. Comparisons</button><button type="button" role="tab" class="mtab" id="mt-3" aria-controls="mt-3-panel" aria-selected="false" tabindex="-1">4. Reporting bias</button><button type="button" role="tab" class="mtab" id="mt-4" aria-controls="mt-4-panel" aria-selected="false" tabindex="-1">5. Limits</button><button type="button" role="tab" class="mtab" id="mt-5" aria-controls="mt-5-panel" aria-selected="false" tabindex="-1">6. Best routes</button><button type="button" role="tab" class="mtab" id="mt-6" aria-controls="mt-6-panel" aria-selected="false" tabindex="-1">Missing answers</button></div>
<div class="mpanel method" role="tabpanel" id="mt-0-panel" aria-labelledby="mt-0">
<h3>1. From form answers to runs</h3>
<p>Each row of the <a href="https://docs.google.com/spreadsheets/d/1gnw1AdRg1XT4JsOfRM6QTA0jSaS3n9ZF-rPWnYewzv0" target="_blank" rel="noopener">"Threshing Routes" form</a> (and each row pasted in from players' own logs) is one threshing run. Every row is coded with the same fixed rules, written down in <code>core/spec/form.yaml</code> and <code>core/atlas/coding.py</code> (both viewable under Share &amp; reproduce):</p>
<ul>
<li><b>Source.</b> Rows with a real timestamp are form submissions. Rows labelled "Data Import", "Manual Upload" or "Historical import" were bulk-pasted from players' own run logs and are called <i>bulk logs</i> here.</li>
<li><b>Leaving your squadmates.</b> The form only offered "&gt; Left them" from 27 October 2026. Squad runs before that date, or without a date, are coded as unknown rather than as "stayed together".</li>
<li><b>Cadet encounter.</b> Split into the scream choice (help, investigate and leave, or ignore) and its resolution (killed the bullies, squadmate's revenge, left them to the dragons, tourniquet, left the cadet, took their weapons). The fork in the road only exists after helping, so other branches are coded "(no fork)".</li>
<li><b>Encounter branch.</b> A tree run with a Blue or Black recorded took the shadow. A tree run that passed on the Red ("changed my mind") and then met the Greens climbed down quickly and let the Red pass, since only a quick descent puts you above the Red. Any other tree run with Greens recorded descended slowly, and one with only a Red descended quickly. A valley run with an Orange, Brown or Blue recorded (or a Red marked "Changed my mind") passed the Red and reached the meadow.</li>
<li><b>Outcome.</b> Bonded to the one dragon marked "Bonded!". Otherwise incinerated by the last dragon marked "Incinerated" in encounter order, or died before the hour. "Saved by another" on the Greens plus a bonded Orange or Brown counts as a rescue bond.</li>
<li><b>Flags.</b> Rows are flagged, not deleted, when answers contradict each other: several directions or wings, Greens in the valley, two bonds, or a first sighting outside the documented pool. You can drop flagged rows with the checkbox on Deep Dive's route map.</li>
</ul>
</div>
<div class="mpanel method" role="tabpanel" id="mt-1-panel" aria-labelledby="mt-1" hidden>
<h3>2. Rates and their uncertainty</h3>
<p>A rate is k events out of n runs that could have had that event. The denominator matters. The meadow Blue rate divides by runs that reached the meadow, not by all runs. Intervals are <b>95% <a href="https://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval#Wilson_score_interval" target="_blank" rel="noopener">Wilson score intervals</a></b>, which behave well for small n and for rates near 0%:</p>
<div class="formula">p̂ = k / n, z = 1.96
centre = (p̂ + z²/2n) / (1 + z²/n)
half = z·√(p̂(1−p̂)/n + z²/4n²) / (1 + z²/n)
CI = centre ± half</div>
<p>With 0 events in n runs, the upper end is still informative. For example, 0 shadows in a few hundred bulk-log tree climbs still gives an upper bound near 1%.</p>
</div>
<div class="mpanel method" role="tabpanel" id="mt-2-panel" aria-labelledby="mt-2" hidden>
<h3>3. Comparing choices</h3>
<p>For one answer against the rest, the 2×2 table is [a b; c d] = [event, no event] × [this answer, other answers].</p>
<div class="formula">OR = (a·d) / (b·c)
95% CI = exp( ln OR ± 1.96·√(1/a + 1/b + 1/c + 1/d) )
(0.5 is added to every cell when any cell is 0)
p = Fisher's exact test, two-sided
q = Benjamini–Hochberg: sort p, q(i) = min over j≥i of p(j)·m/j</div>
<p>Comparisons use the <b><a href="https://en.wikipedia.org/wiki/Odds_ratio" target="_blank" rel="noopener">odds ratio</a></b>, <b><a href="https://en.wikipedia.org/wiki/Fisher%27s_exact_test" target="_blank" rel="noopener">Fisher's exact test</a></b> and <b><a href="https://en.wikipedia.org/wiki/False_discovery_rate#Benjamini%E2%80%93Hochberg_procedure" target="_blank" rel="noopener">Benjamini–Hochberg q-values</a></b>. An odds ratio of 2 means the odds of the outcome are twice as high with that answer. q-values control the false-discovery rate. With dozens of comparisons, some p &lt; 0.05 results are expected by chance, so a "real" difference needs q &lt; 0.05.</p>
</div>
<div class="mpanel method" role="tabpanel" id="mt-3-panel" aria-labelledby="mt-3" hidden>
<h3>4. Adjusting for who reports what</h3>
<p>Players chasing a rare dragon log runs where they saw a Blue far more often than other players do. Bulk loggers record every run, including dull ones. To separate route effects from reporting effects, the page fits a <b><a href="https://en.wikipedia.org/wiki/Logistic_regression" target="_blank" rel="noopener">logistic regression</a></b> with every route choice plus data source and chase goal:</p>
<div class="formula">logit P(event) = β₀ + Σ βⱼ·xⱼ (x = 0/1 indicators; reference = most common answer)
fitted by Newton–Raphson with a small ridge penalty λ = 1 on the slopes
adjusted OR = exp(βⱼ), 95% CI = exp(βⱼ ± 1.96·SEⱼ)</div>
<p>The <a href="https://en.wikipedia.org/wiki/Ridge_regression" target="_blank" rel="noopener">ridge penalty</a> keeps estimates finite when an answer has 0 events. It shrinks extreme odds ratios slightly toward 1, which makes the model more cautious. Route rankings use the <b><a href="https://en.wikipedia.org/wiki/Cochran%E2%80%93Mantel%E2%80%93Haenszel_statistics" target="_blank" rel="noopener">Mantel–Haenszel odds ratio</a></b> across strata of data source and chase goal (bulk logs; form runs chasing Blue, Black, or "Blue or Black" on the newer form; everything else) for the same reason.</p>
</div>
<div class="mpanel method" role="tabpanel" id="mt-4-panel" aria-labelledby="mt-4" hidden>
<h3>5. What this data cannot tell you</h3>
<ul>
<li>It is self-reported and self-selected. Runs worth bragging about are over-represented, and that inflates every rare-dragon rate. Bulk logs are the least selected rows.</li>
<li>Runs are not independent. One player may log dozens of runs, and the form has no player ID, so intervals are somewhat too narrow.</li>
<li>The form records mostly stage-level choices. The newer form asks how you reacted to the first dragon, but most riders answer "unsure", and it does not record the answers given inside a bonding encounter, so route claims that depend on those cannot be tested here.</li>
<li>The form records dragons you <i>attempted</i>. A player who saw the Blue but chose the Orange would not record the Blue, so Blue sightings are slightly undercounted.</li>
<li>Step-by-step survival inside an encounter comes from the <a href="https://drive.google.com/file/d/17o72ehHsSPW4UdsKF-sXTxMLEuinWeEg/view" target="_blank" rel="noopener">community PDF</a>, which coded the free-text answers by hand. It is shown as published and cannot be recomputed here.</li>
</ul>
</div>
<div class="mpanel method" role="tabpanel" id="mt-5-panel" aria-labelledby="mt-5" hidden>
<h3>6. Best routes, the valley map and The Odds</h3>
<p>The valley map and The Odds come from a solver (<code>solver.js</code>) that treats a run as a decision tree. Your choices are decisions (company and, with squadmates, whether you later leave them; direction; how you react when the first dragon appears; the cadet encounter in the game's order — investigate the scream or keep walking, help your squadmate or walk away, your first move in the fight (pause to assess, charge the smaller cadet, or get between your squadmate and the bigger one) and, after pausing, what to do about the smaller cadet's dagger, then the bullies' fate or what to do for the wounded cadet — the fork, tree or valley, how to climb down, whether to jump onto the Red below the tree or let it pass and go on to the two Greens, whether to face the valley Red, and at every bonding encounter whether to attempt the bond or die on purpose). The game's rolls are chance events: which dragon appears first, whether you die at the sighting, in the fight or before the hour, whether the shadow appears and which dragon it is, which dragon waits in the meadow, and how the bonding encounter ends.</p>
<p>Each roll's probability may depend on the choices before it. It is estimated with <b>hierarchical <a href="https://en.wikipedia.org/wiki/Dirichlet-multinomial_distribution" target="_blank" rel="noopener">Dirichlet</a> back-off</b>: the estimate for a full history is pulled toward the estimate for a shorter history, which is pulled toward the overall rate. How strongly is chosen from the data for each roll (<a href="https://en.wikipedia.org/wiki/Empirical_Bayes_method" target="_blank" rel="noopener">empirical Bayes</a>), so the solver does not chase noise in small groups. The best route is then found by <b><a href="https://en.wikipedia.org/wiki/Backward_induction" target="_blank" rel="noopener">backward induction</a></b>, for two goals: the chance of bonding the dragon on this attempt, and, for riders who die on purpose whenever a run goes wrong, the chance that the account eventually ends on that dragon rather than another (maximised by <a href="https://en.wikipedia.org/wiki/Fractional_programming" target="_blank" rel="noopener">Dinkelbach iteration</a>). Ranges come from 200 posterior draws; "stays best in N%" is how often the recommended choice is still best across those draws.</p>
<p>Encounter outcomes use only <b>genuine attempts</b>: runs where the rider wanted that colour, any dragon, or said they would not seek Malek. The two summary cards on The Odds use the same rule in reverse: runs where the rider died on purpose at an encounter they did not want are left out, so they describe cadets who went into the valley and either bonded or died. The "low-bias" numbers use only bulk logs and form runs from riders who were not chasing a rare dragon.</p>
<p><b>Starting from a place.</b> Clicking a place on the map before choosing a dragon shows your chance of each dragon <i>from there on</i>. Choices before that place are the ones that lead to it (or the solver's best, where several do); rolls before it are averaged over the outcomes that can still reach it, weighted by how often they happen and by survival. From the place onward the solver plays the best route for each dragon. A dragon is "not reachable from here" when no logged run went from that place to it. Clicking the bully fight means you stepped in to help: the chances assume your best first move and include the risk of dying in the fight. The move matters: about 3 in 10 riders who charged straight in were killed, against almost none who paused to assess. Several choices made at one place (as at the bully fight) share one diamond on the map, which opens a small card with each choice in order. For Orange and Brown, the Greens rescue is used only when their own meadow is out of reach.</p>
<p><b>Choices that are not modelled yet.</b> The answers you give at the bonding encounters themselves (for example which way to turn for the two Greens, or when to jump onto the Red) are not recorded by the community form, so every encounter uses its average bond chance. Ken's bot records every option it picks, so these can be added once enough bot runs come in. Letting the Red pass is rarely logged on its own; its chance is taken from the two Greens' encounter, which has plenty of data. Reactions to the first dragon use the form's categories, and only those logged at least 20 times for that dragon are offered. On the map, a choice you make holds for every route to that dragon, and routes it rules out are hidden.</p>
</div>
<div class="mpanel method" role="tabpanel" id="mt-6-panel" aria-labelledby="mt-6" hidden>
<h3>Missing answers</h3>
<p>"Unsure", blank answers, conflicting answers and questions an older version of the form did not ask are treated as <b>missing information, never as a choice</b>. Each comparison uses the runs that answered that question; models use runs that answered every question in them (<a href="https://en.wikipedia.org/wiki/Listwise_deletion" target="_blank" rel="noopener">complete cases</a>). "I've lost count" counts as a later attempt. The only exception is the chase goal used to adjust for reporting bias: runs from before that question existed stay in the models as their own adjustment group, but that group is not shown as a finding. The solver and the valley map ignore missing steps in the same way.</p>
</div>
</section>
</div>
<div class="tabpanel" id="panel-report" role="tabpanel" aria-labelledby="tab-report" hidden>
<!-- the links here are the sources in collection/pipeline.yaml -->
<section id="report-sec" aria-labelledby="h-report">
<div class="section-head"><span class="eyebrow">Every run helps</span><h2 id="h-report">Report a run</h2>
<p class="muted">Every run anyone logs ends up in the Atlas's open data, <a href="data/runs_clean.csv" download>runs_clean.csv</a>, which anyone can download and reuse. Deaths are as useful as bonds: the odds on this page are only as good as the runs behind them. Please report each run in one place only.</p></div>
<div class="grid2">
<div class="panel"><h3>Use the community form</h3>
<p class="small">The easiest way, no account needed. The r/fourthwing megathreads collect runs with u/ClumsyBadger's Google Form, and its answers go into a public spreadsheet. The Atlas reads that spreadsheet every day (source <b>reddit spreadsheet</b>), so a run logged there is counted here.</p>
<p class="btnrow"><a class="btnlike primary" href="https://forms.gle/DRpj9tG8gb5E4Hcu7" target="_blank" rel="noopener">Threshing Routes form</a>
<a class="btnlike" href="https://docs.google.com/spreadsheets/d/1gnw1AdRg1XT4JsOfRM6QTA0jSaS3n9ZF-rPWnYewzv0" target="_blank" rel="noopener">The responses spreadsheet</a>
<a class="btnlike" href="https://www.reddit.com/r/fourthwing/comments/1wz5cnj/" target="_blank" rel="noopener">The megathread</a></p>
<p class="small muted">The form is anonymous and can be filled in once per attempt. Its author asks for random runs too (just pick the top option each time): they show which choices matter without the bias of everyone copying the same "best" route.</p>
</div>
<div class="panel"><h3>Or report it on the Atlas</h3>
<p class="small">A short form with the game's own choices: an issue on the Atlas's repository at git.kenschiano.net, so you need an account there. Reports show up in the data the next day with the source <b>reported</b>. Everyone who can see the repository can read reports: please leave out your account name.</p>
<p><a class="btnlike" href="https://git.kenschiano.net/DragonKind/threshing-atlas/issues/new?template=.github/ISSUE_TEMPLATE/report-a-run.yml" target="_blank" rel="noopener">Report a run on git.kenschiano.net</a></p>
</div>
</div>
<div class="panel"><h3>Where the Atlas's runs come from</h3>
<table class="small"><thead><tr><th scope="col">Source</th><th scope="col">What it is</th></tr></thead><tbody>
<tr><td>reddit spreadsheet</td><td>The community form and spreadsheet linked from the r/fourthwing megathreads.</td></tr>
<tr><td>reported</td><td>Runs reported here, with "Report a run".</td></tr>
<tr><td>register</td><td>The Unofficial Dragon Register: which dragon each rider bonded (no route).</td></tr>
<tr><td>reddit thread</td><td>Dragonkind result pages posted in the megathreads (the dragon is known, the route is not).</td></tr>
<tr><td>bot</td><td>Runs logged by the DragonKind bot.</td></tr>
<tr><td>reddit pdf</td><td>The community route PDF: a map of the choices, used to check the game's routes (it holds no runs).</td></tr>
</tbody></table>
<p class="small muted">What every column means: <a href="data/dictionary.yaml">data/dictionary.yaml</a>.</p>
</div>
</section>
</div>
</main>
</div>
<footer><div class="wrap"><p><b>Data:</b> the community <a href="https://docs.google.com/spreadsheets/d/1gnw1AdRg1XT4JsOfRM6QTA0jSaS3n9ZF-rPWnYewzv0" target="_blank" rel="noopener">"Threshing Routes" responses</a> compiled by <a href="https://www.reddit.com/user/ClumsyBadger/" target="_blank" rel="noopener">u/ClumsyBadger</a>, with percentages in the <a href="https://drive.google.com/file/d/17o72ehHsSPW4UdsKF-sXTxMLEuinWeEg/view" target="_blank" rel="noopener">route PDF</a> by <a href="https://www.reddit.com/user/ClumsyBadger/" target="_blank" rel="noopener">u/ClumsyBadger</a>, <a href="https://www.reddit.com/user/Old_Regular3018/" target="_blank" rel="noopener">u/Old_Regular3018</a> and <a href="https://www.reddit.com/user/Smart_Trifle_2099/" target="_blank" rel="noopener">u/Smart_Trifle_2099</a>; the <a href="https://docs.google.com/spreadsheets/d/1KMiE9sec0l597Pzue1OhGYf07NF4howtQ_lPeqx7jXQ" target="_blank" rel="noopener">Unofficial Dragon Register</a>; and the r/fourthwing bonding megathreads (<a href="https://www.reddit.com/r/fourthwing/comments/1wvwfp9/" target="_blank" rel="noopener">Part 3</a>, <a href="https://www.reddit.com/r/fourthwing/comments/1wz5cnj/" target="_blank" rel="noopener">Part 4</a>). Code and data: <a href="https://git.kenschiano.net/DragonKind/threshing-atlas" target="_blank" rel="noopener">git.kenschiano.net/DragonKind/threshing-atlas</a> (MIT, data CC BY 4.0).</p>
<p><b>Unofficial fan analysis,</b> not affiliated with <a href="https://dragonkind.com" target="_blank" rel="noopener">Dragonkind</a> or its authors. The author has said no single roll is worse than 1 in 20 and that the Black is not luck, but <b>no route guarantees a bond</b>.</p></div></footer>
<div id="tip" hidden></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
<script src="solver.js"></script>
<script src="register.js"></script>
<script src="app.js"></script>
<script src="valley.js"></script>
<script src="dragons.js"></script>
<script src="explorer.js"></script>
<script src="ui.js"></script>