:root{color-scheme:dark;--paper:#251f18;--ink:#f3e9d7;--amber:#e2a04e;--amber-edge:#b57a2e;--line:#4a3f30;--sage:#9ab57f;--brick:#d4765f;--glow:#e2a04e33}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.5 system-ui,-apple-system,sans-serif}main{width:min(1160px,100% - 48px);margin:auto;padding:42px 0 30px}header{display:flex;align-items:end;justify-content:space-between;gap:30px;border-bottom:2px solid var(--ink);padding-bottom:24px;margin-bottom:24px}h1{font:600 clamp(40px,6vw,72px)/.95 Georgia,serif;letter-spacing:-3px;margin:0}h1 span{color:var(--amber)}header p{max-width:290px;margin:0}h2,h3{margin:0 0 12px;font-family:Georgia,serif;line-height:1.18}h2{font-size:27px}p{margin:0 0 18px}button,summary,a{touch-action:manipulation}button{font:600 16px/1.2 system-ui;min-height:48px;border:1px solid var(--line);border-radius:10px;background:transparent;color:inherit;padding:12px 18px;cursor:pointer;transition:transform .16s}button:hover{background:#332a1f}button:active{transform:scale(.96)}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid var(--amber);outline-offset:4px}button:disabled{opacity:.42;cursor:default;transform:none}.lab{display:grid;grid-template-columns:1fr 1.05fr;gap:48px}.trace{min-width:0}.trace-heading{display:flex;align-items:start;justify-content:space-between;gap:10px}#progress{white-space:nowrap;font:600 14px system-ui;padding-top:6px}#ticket{border-left:4px solid var(--amber);background:#32281c;padding:14px 12px;margin:20px 0;font:14px/1.5 ui-monospace,monospace;overflow-wrap:anywhere;min-height:48px}.save-notice{font:600 12px system-ui;color:#b0a48e;margin:-10px 0 16px}.actions{display:flex;gap:12px}.primary{background:var(--amber);border-color:var(--amber-edge);color:#241c10;box-shadow:0 4px 0 var(--amber-edge)}.primary:hover{background:#f0b265}.quiet{border:0;text-decoration:underline}.explanation{min-width:0;padding-left:30px;border-left:1px solid var(--line)}.explanation>p{max-width:55ch;min-height:80px}.choices{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}.choices button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#241c10}#verdict{min-height:0;color:var(--sage);font-weight:600}#verdict[data-correct=false]{color:var(--brick)}#verdict:empty{display:none}#diagram{margin:24px 0;padding:20px 0;border-block:1px solid var(--line)}#diagram svg{width:100%;height:auto;display:block}.sketch{fill:#332a1e;stroke:var(--ink);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.sketch-line{fill:none;stroke:var(--ink);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.leaf{fill:none;stroke:var(--sage);stroke-width:2.4;stroke-linecap:round}.leaf.wilt{stroke:#8a7a55}.pot{fill:#3a2c1e;stroke:var(--ink);stroke-width:2;stroke-linejoin:round}.soil{stroke:#6b5636;stroke-width:2.4;stroke-linecap:round}.soil.wet{stroke:#4e4028;stroke-width:3.4}.glowdisc{fill:var(--glow);stroke:none}.lamp{fill:#f7ecd2;stroke:var(--amber);stroke-width:2}.lamp.dim{fill:#4a3c28;stroke:#7a6a4c}.lamp-frame{fill:none;stroke:var(--amber);stroke-width:2;stroke-linecap:round}.lamp-frame.dim{stroke:#7a6a4c}.cone{fill:#e2a04e1f;stroke:none}.drop{fill:#9ec4d4;stroke:none}.station-label{font:600 12px system-ui;fill:var(--ink)}.caption{font:600 12px system-ui;fill:#b0a48e}.faint-text{font:600 11px system-ui;fill:#8d816c}.slip-body{fill:#33291c;stroke:var(--line)}.slip-text{font:600 9.5px ui-monospace,monospace;fill:var(--ink)}.slip.faint{opacity:.5}.note-body{fill:#2e241f;stroke:none}.card-body{fill:#f3e9d7;stroke:var(--amber);stroke-width:2}.card-line{stroke:#7a6a4c;stroke-width:2.4;stroke-linecap:round}.card-check{fill:none;stroke:var(--sage);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.ring{fill:none;stroke:var(--line);stroke-width:2;stroke-dasharray:2 7;stroke-linecap:round}.ring-arc{fill:none;stroke:var(--amber);stroke-width:2.4;stroke-linecap:round}.mote{fill:#f7ecd2;stroke:var(--amber);stroke-width:2}.mote-halo{fill:var(--glow);stroke:none}.fence{stroke:var(--brick);stroke-width:3;stroke-dasharray:6 6}.bubble{fill:#332a1e;stroke:var(--ink);stroke-width:2}.bubble-dot{fill:#332a1e;stroke:var(--ink);stroke-width:2}.question{font:700 13px ui-monospace,monospace;fill:var(--amber)}.stage-label{font:600 11px system-ui;fill:var(--ink)}.cross{stroke:var(--brick);stroke-width:3;stroke-linecap:round}footer{margin-top:32px}.reference{border-bottom:0}.reference>summary{display:inline-block;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:10px}details{border-bottom:1px solid var(--line)}summary{padding:18px 0;cursor:pointer;font-weight:600;min-height:48px}details p{max-width:78ch}#sources{display:grid;gap:12px;padding-bottom:20px}a{color:var(--sage);font-weight:600;min-height:44px;display:inline-flex;align-items:center}#predictionQuestion{font-weight:600}button[data-answer]{min-width:125px}[hidden]{display:none!important}@media(max-width:750px){main{width:calc(100% - 32px);padding-top:28px}header{display:block;margin-bottom:18px;padding-bottom:20px}h1{letter-spacing:-2px}header p{margin-top:14px;max-width:100%;font-size:16px}.lab{grid-template-columns:1fr;gap:28px}.explanation{padding:0;border:0}.trace-heading h2{font-size:25px}#ticket{margin:12px 0 18px}.primary{flex:1}.explanation>p{min-height:0}#diagram{margin:20px 0}footer{margin-top:25px}}@media(orientation:landscape) and (max-height:500px){main{padding-top:18px}.lab{grid-template-columns:1fr 1fr;gap:25px}header{display:flex}header p{max-width:290px}h1{font-size:44px}.explanation{padding-left:20px;border-left:1px solid var(--line)}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Navigation follows the reading flow without covering it. */
:root{--dock-space:100px}html{scroll-padding-bottom:calc(var(--dock-space) + 20px)}body{padding-bottom:calc(var(--dock-space) + env(safe-area-inset-bottom,0px))}main{padding-bottom:32px}.action-dock{position:fixed;z-index:10;inset:auto 0 0;background:var(--paper);border-top:1px solid var(--line);padding:14px 24px calc(18px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 24px #00000055}.dock-inner{max-width:1160px;margin:auto;display:flex;align-items:center;gap:20px}.action-hint{margin-left:auto;color:#b0a48e;font:13px/1.3 system-ui}.action-dock .primary{min-width:180px;background:var(--amber);border-color:var(--amber-edge);box-shadow:0 3px 0 #7a5220;color:#241c10}.action-dock .primary:hover:not(:disabled){background:#f0b265}.action-dock .primary:disabled{opacity:1;background:#3a3226;border-color:#4a3f30;box-shadow:none;color:#9c8f76}.action-dock .quiet{font-size:14px}#stepTitle{scroll-margin-top:20px}#stepTitle:focus,#verdict:focus{outline:none}dialog{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:14px;max-width:min(440px,calc(100% - 32px));padding:26px;box-shadow:0 16px 60px #00000088}dialog::backdrop{background:#000000aa}.dialog-actions{display:flex;gap:12px;flex-wrap:wrap}.dialog-actions #cancelReset{background:var(--ink);color:var(--paper)}dialog p{font-size:16px}#verdict{scroll-margin-bottom:120px}
@media(max-width:600px){:root{--dock-space:104px}.action-dock{padding:10px 16px calc(14px + env(safe-area-inset-bottom,0px))}.dock-inner{gap:8px;display:grid;grid-template-columns:auto 1fr}.action-hint{grid-row:1;grid-column:1/-1;margin:0;text-align:right;font-size:12px}.action-dock #reset{grid-row:2;padding-left:0}.action-dock .primary{grid-row:2;min-width:0;width:100%;min-height:48px}.explanation{padding-bottom:8px}}
@media(orientation:landscape) and (max-height:500px){:root{--dock-space:84px}.action-dock{padding-top:8px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}}
@media(max-width:600px){.action-dock .primary{font-size:14px;padding-inline:12px;white-space:nowrap}}
