:root{font-family:Verdana,Arial,sans-serif;color:#38392d;background:#d8cdb4;font-synthesis:none;--ink:#374b3c;--gold:#b69557;--paper:#f4ead1;--line:#c9bfa8}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;border:1px solid #a59c87;background:linear-gradient(#fffdf7,#e8e0cd);color:#38392d;padding:10px 14px;border-radius:2px;box-shadow:inset 0 1px #fff;font-size:14px}button:hover{background:#ded2b7;border-color:#7e6c49}button:focus-visible,input:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #ae7731;outline-offset:3px}button:disabled{opacity:.45;cursor:default}header{background:var(--ink);color:#fbf4df;min-height:108px;border-top:5px solid #211d17;border-bottom:3px double var(--gold);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px max(4%,calc((100vw - 1440px)/2))}.brand{display:flex;align-items:center;gap:15px;color:#fbf4df;text-decoration:none;font:small-caps 38px Georgia,serif;letter-spacing:1px}.mark{display:block;width:48px;height:48px}.brand small{display:block;font:10px Verdana,sans-serif;letter-spacing:2.4px;color:#cfbb8f;margin-top:6px}header nav{display:flex;gap:24px}header button{color:#e5d6b4;background:none;border:0;padding:5px 0;box-shadow:none;font-size:14px;border-bottom:1px solid #a58b64}header button:hover{background:none;color:#fff;border-color:var(--gold)}.editionbar{background:#d9cfb6;display:flex;justify-content:space-between;padding:10px 4%;border-bottom:1px solid #b0a184;font:11px Verdana;letter-spacing:1.6px;color:#514b3d}.editionbar span:last-child{letter-spacing:0;font:italic 14px Georgia}main{max-width:1536px;margin:auto;display:grid;grid-template-columns:320px minmax(0,1fr);gap:28px;padding:30px 4% 34px;align-items:start}.play{border:1px solid #aca18b;background:var(--paper);box-shadow:2px 3px 0 #c7c0af}.tabs{display:flex;border-bottom:1px solid #a89e8b;background:#dfd8c8}.tabs button{flex:1;border:0;border-radius:0;background:none;box-shadow:none;padding:14px 8px;font-weight:bold}.tabs .active{background:var(--paper);border-top:3px solid var(--gold);padding-top:11px;color:var(--ink)}.playcontent{padding:22px 20px}.puzzleline{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;line-height:1.6;margin-bottom:12px}.puzzleline span:first-child{font-weight:bold}#remaining{color:#665f51;white-space:nowrap}#pips{display:flex;gap:4px;margin:0 0 24px}#pips i{height:5px;flex:1;background:#967a43}#pips .used{background:#ded7c8}label{font-size:14px;font-weight:bold;display:block;line-height:1.5;margin-bottom:9px}.inputrow{display:flex;gap:6px}input{width:100%;min-width:0;border:1px solid #8b8b80;background:#fffef9;border-radius:1px;box-shadow:inset 1px 2px 2px #1b2c3910;padding:12px 10px;font-size:16px;color:#354136}.primary{background:var(--ink);color:#fff8e7;border-color:#43543a;box-shadow:inset 0 1px #ffffff20}.primary:hover{background:#4f6549;border-color:#43543a}.hintcontrol{margin-top:12px}.hintcontrol button{width:100%;display:flex;justify-content:space-between;align-items:center;background:transparent;box-shadow:none;border:0;border-bottom:1px dotted #b8ab8c;padding:8px 0;font-size:13px;color:#6d542f}.hintcontrol button span{font-size:12px}.hintcontrol p{font-size:12px;line-height:1.5;color:#716a5b;margin:7px 0}#message{font-size:13px;line-height:1.6;color:#5e625a;margin:18px 0 24px}.historytitle{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #a79675;padding:0 0 10px;margin-top:22px}.historytitle h2{font:22px Georgia;margin:0}.historytitle span{font-size:11px;color:#726956}.guessrow{display:flex;align-items:center;gap:8px;border-bottom:1px solid #ded5c2;padding:12px 0;font-size:13px}.guessrow .num{font:11px monospace;color:#8c8069}.guessrow strong{flex:1;font-weight:normal}.guessrow .relation{font-size:11px;text-align:right;color:#6b715c;max-width:110px}.empty{font:italic 15px Georgia;color:#776e5e;line-height:1.6}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.actions button{flex:1}#result:not(:empty){padding:20px 0;border-top:1px solid #baaa8b;border-bottom:1px solid #baaa8b}#result h2{font:36px Georgia;margin:10px 0;color:var(--ink)}#result p{font:14px/1.6 Georgia;color:#70634b;margin:0}.eyebrow{font:10px Verdana;letter-spacing:1.6px;color:#82704c}.treepanel{border:1px solid #a89a80;background:#fcf9ef;box-shadow:2px 3px 0 #c7c0af;min-width:0}.treehead{display:flex;justify-content:space-between;align-items:center;background:var(--ink);color:#f5e7ca;border-bottom:3px double var(--gold);padding:16px 20px;gap:14px}.treehead h1{font:26px Georgia;margin:0}.treecontrols{display:flex;gap:6px}.treecontrols button{background:none;box-shadow:none;color:#e2d2b0;border-color:#78818b;font-size:11px;padding:5px 8px}#tree{overflow:auto;min-height:460px;max-height:72vh;padding:20px 16px;background-image:linear-gradient(90deg,transparent 49.9%,#b9ac8f16 50%,transparent 50.1%)}#tree svg{display:block;max-width:none;min-width:0;margin:0 auto}svg text{font-family:Verdana,Arial,sans-serif}.legend{display:flex;justify-content:center;gap:18px;border-top:1px solid #d6ccb6;background:#f0e9d9;padding:13px 14px;flex-wrap:wrap;font-size:11px;color:#655d4e}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:9px;height:9px;border:1px solid #8d856f}.green{background:#3e6251}.orange{background:#d3ae73}.outline{border-style:dashed!important;background:#fffaf0}footer{max-width:1414px;margin:0 auto;padding:18px 4% 28px;border-top:3px double #b6aa90;display:flex;justify-content:space-between;gap:20px;font:12px/1.6 Georgia;color:#706855}footer button{padding:0;border:0;border-bottom:1px solid #8c7d5b;background:none;box-shadow:none;font:12px Georgia}.credit{margin-left:8px}.stats{display:flex;justify-content:space-around;gap:20px;padding:24px 0;border-top:1px solid #bcab89;border-bottom:1px solid #bcab89;margin:24px 0}.stats div{display:flex;flex-direction:column;gap:8px;text-align:center}.stats strong{font:34px Georgia;color:var(--ink)}.stats span{font-size:12px;color:#6c6351}.sync,.resetnote{font-size:12px;line-height:1.6;color:#766b56}dialog{width:min(92%,560px);padding:38px 30px;border:1px solid #99855c;border-top:6px solid var(--ink);border-radius:2px;background:var(--paper);color:#38392d;box-shadow:6px 8px 0 #44341d40;max-height:90vh;overflow:auto}dialog::backdrop{background:#261e16b3}dialog h2{font:36px Georgia;color:var(--ink);margin:16px 0}dialog p,dialog li{font-size:14px;line-height:1.8}dialog li{margin-bottom:12px}dialog a{color:#8e452a}.dialogclose,#close{position:absolute;right:12px;top:10px;border:0;padding:0 7px;font-size:25px;background:none;box-shadow:none}#winmodal{text-align:center}#winmodal h2{font-size:48px}#winsummary{font:17px Georgia}#wintrail{font-size:23px;margin:20px 0;line-height:1.7;overflow-wrap:anywhere}.winbuttons{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin:22px 0}#winstatus{font-size:12px}#manualcopy{width:100%;min-height:100px;padding:12px;font:14px monospace}.copied{background:#345b43!important;border-color:#345b43!important;color:white!important}@media(max-width:1000px){main{grid-template-columns:290px minmax(0,1fr);gap:18px;padding-left:3%;padding-right:3%}.brand{font-size:32px}footer{margin:0 3%}}@media(max-width:720px){header{padding:18px 5%;flex-wrap:wrap;gap:18px}.brand{font-size:32px}.brand small{font-size:9px;letter-spacing:1.3px}.mark{width:42px;height:42px}header nav{gap:24px;margin-left:57px}header nav button{font-size:12px}.editionbar{padding:9px 5%;font-size:9px;letter-spacing:1px}.editionbar span:last-child{font-size:12px}main{display:flex;flex-direction:column;padding:20px 5%;gap:22px}.play,.treepanel{width:100%}.playcontent{padding:20px}.treehead{padding:13px 16px}.treehead h1{font-size:24px}#tree{min-height:300px;max-height:65vh}.legend{gap:10px;font-size:10px}footer{margin:0 5%;align-items:start}.credit{display:block;margin:0}.stats{gap:10px}dialog{padding:34px 22px}.stats span{font-size:11px}}@media(prefers-reduced-motion:no-preference){#winmodal[open]{animation:open-dialog .18s ease-out}@keyframes open-dialog{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}

/* Night field station: lamplight, dark timber, and moss-green exhibits. */
:root{color-scheme:light}#theme-toggle{white-space:nowrap}#theme-toggle span{font-size:19px;vertical-align:-1px;margin-right:5px}#theme-toggle[aria-pressed="true"]{color:#f1cc83;border-bottom-color:#d0a354}
:root[data-theme="dark"]{color-scheme:dark;--ink:#dfc995;--gold:#b7965f;--paper:#28271f;--line:#635a49;color:#e4dfd2;background:#151611}
[data-theme="dark"] body{background:radial-gradient(ellipse at 62% 20%,#5e533377 0,transparent 60%),#151611}
[data-theme="dark"] header{background:#17150f;border-top-color:#0d0c09;border-bottom-color:#ad8c53}
[data-theme="dark"] .mark{filter:drop-shadow(0 0 9px #dfb36a28)}
[data-theme="dark"] .brand{color:#f0e4c8}[data-theme="dark"] .brand small{color:#c3aa7d}
[data-theme="dark"] header button{color:#d5cebd;border-color:#69717a}[data-theme="dark"] header button:hover{color:#ffe7b5}
[data-theme="dark"] .editionbar{background:#23251c;border-color:#645943;color:#c5b38f}
[data-theme="dark"] .play,[data-theme="dark"] .treepanel{background:#25261e;border-color:#756347;box-shadow:0 8px 28px #0005,0 1px 0 #b3915130}
[data-theme="dark"] .tabs{background:#1a1d17;border-color:#645943}[data-theme="dark"] .tabs button{color:#bdbba7}[data-theme="dark"] .tabs .active{background:#28271f;color:#f2dfb4}
[data-theme="dark"] button{background:linear-gradient(#3d3c2c,#2c2e23);border-color:#81715a;color:#e4ddcc;box-shadow:inset 0 1px #ffffff09}
[data-theme="dark"] button:hover{background:#4b4b37;border-color:#d0b582}
[data-theme="dark"] header button,[data-theme="dark"] .tabs button,[data-theme="dark"] .treecontrols button,[data-theme="dark"] .dialogclose,[data-theme="dark"] #close,[data-theme="dark"] footer button{background:none;box-shadow:none}
[data-theme="dark"] .primary{background:#bba06a;border-color:#d5bb84;color:#24271a;box-shadow:inset 0 1px #ffecbb55}[data-theme="dark"] .primary:hover{background:#d5ba80}
[data-theme="dark"] input,[data-theme="dark"] textarea{background:#1a1d16;border-color:#7d8067;color:#f1e5cc;box-shadow:inset 0 2px 5px #0003}[data-theme="dark"] input::placeholder{color:#b0b39c}
[data-theme="dark"] #remaining,[data-theme="dark"] #message,[data-theme="dark"] .hintcontrol p,[data-theme="dark"] .historytitle span,[data-theme="dark"] .empty,[data-theme="dark"] .resetnote,[data-theme="dark"] .sync,[data-theme="dark"] .stats span{color:#b7b3a8}
[data-theme="dark"] #pips i{background:#c3a76b}[data-theme="dark"] #pips .used{background:#404333}
[data-theme="dark"] .hintcontrol button{background:none;color:#dfc38c;border-color:#74664c;box-shadow:none}
[data-theme="dark"] .historytitle,[data-theme="dark"] #result:not(:empty),[data-theme="dark"] .stats{border-color:#706047}
[data-theme="dark"] .guessrow{border-color:#414333}[data-theme="dark"] .guessrow .num{color:#a49b88}[data-theme="dark"] .guessrow .relation{color:#bdc7ba}
[data-theme="dark"] #result h2,[data-theme="dark"] dialog h2,[data-theme="dark"] .stats strong{color:#edd5a2}[data-theme="dark"] #result p{color:#c7b895}[data-theme="dark"] .eyebrow{color:#c9b383}
[data-theme="dark"] .treehead{background:#292c20;color:#ead6aa;border-color:#907746}[data-theme="dark"] .treecontrols button{color:#d0c6b2;border-color:#7c776c}
[data-theme="dark"] #tree{background:radial-gradient(ellipse at 50% 30%,#414532 0,#282b21 65%,#202319 100%)}
[data-theme="dark"] .tree-node rect{fill:#32352a;stroke:#b49b6c}[data-theme="dark"] .tree-node text{fill:#e9dcc0}
[data-theme="dark"] .tree-node.shared rect{fill:#3d5e4e;stroke:#b4c3a8}[data-theme="dark"] .tree-node.shared text{fill:#f0eee1}
[data-theme="dark"] .tree-node.branch rect{fill:#4b4030;stroke:#c1a16b}[data-theme="dark"] .tree-node.branch text{fill:#f1d6a4}
[data-theme="dark"] .tree-node.guess rect{fill:#2d3024;stroke:#bb9d69}[data-theme="dark"] .tree-node.guess text{fill:#efd8ab}
[data-theme="dark"] .tree-node.mystery rect{fill:#282d21;stroke:#a6aaa0}
[data-theme="dark"] .tree-edge{stroke:#acbbb9}[data-theme="dark"] .tree-edge.guess,[data-theme="dark"] .tree-edge.branch{stroke:#ba9d69}
[data-theme="dark"] .legend{background:#21251a;border-color:#625641;color:#c7bda9}[data-theme="dark"] .green{background:#8cac87}[data-theme="dark"] .orange{background:#d0ae73}[data-theme="dark"] .outline{background:#343a29}
[data-theme="dark"] footer{border-color:#5e523e;color:#b5a88f}[data-theme="dark"] footer button{color:#d4c09b}
[data-theme="dark"] dialog{background:radial-gradient(ellipse at 50% 0,#494536,#27291e 70%);border-color:#ad8e56;border-top-color:#c2a56b;color:#e0dacd;box-shadow:0 18px 80px #000a}
[data-theme="dark"] dialog::backdrop{background:#090b06dd}[data-theme="dark"] dialog a{color:#d7c292}
[data-theme="dark"] :focus-visible{outline-color:#f2cc7b}
@media(max-width:720px){header nav{margin-left:0;gap:18px;width:100%;justify-content:flex-end}header nav button{font-size:12px}}

/* A field notebook in an eccentric explorer's workshop. */
body{background-image:url('contours.svg')}
header{background:#3b3023 url('contours.svg');border-top:6px solid #241e16;border-bottom:5px solid #a1613e;box-shadow:inset 0 -1px #d8a16a}
.brand{font:italic bold 43px Georgia,serif;letter-spacing:-1.5px;color:#f6dfa4;text-shadow:2px 2px 0 #1e2018}
.brand small{font:11px 'Courier New',monospace;letter-spacing:2px;color:#d3b887;text-shadow:none;margin-top:8px}
.mark{width:53px;height:53px;transform:rotate(-7deg);filter:drop-shadow(2px 3px 0 #241c1570)}
header nav button{font:13px 'Courier New',monospace;border-bottom:1px dashed #bc9a68}
.editionbar{background:#d4bb87;border-color:#9a7e53;padding-top:8px;padding-bottom:8px}
.editionbar>span:first-child{font:bold 11px 'Courier New',monospace;color:#7a3d26;border:1px solid #a36543;padding:4px 7px;letter-spacing:1.3px;transform:rotate(-1deg)}
.editionbar>span:last-child{align-self:center;color:#54432a}
.play{border-color:#a69470;box-shadow:3px 4px 0 #ab9c7b;position:relative}
.tabs{background:#bcb895;border-color:#858669}.tabs button{font-family:'Courier New',monospace;font-size:14px}.tabs .active{border-top-color:#a65c37}
.playcontent{background-image:linear-gradient(90deg,transparent 14px,#b56f4520 14px,#b56f4520 15px,transparent 15px)}
.puzzleline,.historytitle span,.guessrow .num,.eyebrow{font-family:'Courier New',monospace}.eyebrow{font-weight:bold;color:#955131}
.primary{background:#8e4e30;border-color:#713c26;color:#fff1cc;box-shadow:inset 1px 1px #c98c60,2px 2px 0 #5a422a30}.primary:hover{background:#a3603b;border-color:#713c26}
.treepanel{border:1px solid #878668;box-shadow:4px 4px 0 #a89c7a}
.treehead{background:#666d4c url('contours.svg');color:#fff0cb;border-bottom:4px solid #bc9860;padding-top:14px;padding-bottom:14px}
.treehead h1{font:italic bold 27px Georgia,serif;text-shadow:1px 1px #39432a}
.treecontrols button{font:12px 'Courier New',monospace;border:1px solid #c2b990;color:#fff0cb;background:#38482c30}
#tree{background-color:#f5ecd6;background-image:linear-gradient(#9c966112 1px,transparent 1px),linear-gradient(90deg,#9c966112 1px,transparent 1px);background-size:28px 28px}
.tree-node.shared rect{fill:#3e6251;stroke:#52765c}.tree-node.shared text{fill:#fff8dd}.tree-node.branch rect{fill:#e4cca0;stroke:#b8854c}.tree-node.branch text,.tree-node.guess text{fill:#79502c}.tree-node.guess rect{fill:#fff6df;stroke:#b8854c}.tree-node.root rect,.tree-node.mystery rect{fill:#e8e5c9;stroke:#93936d}.tree-node.root text,.tree-node.mystery text{fill:#4e5638}.tree-edge{stroke:#6f8968}.tree-edge.guess,.tree-edge.branch{stroke:#bb9460}
.legend{background:#e5dab9;border-color:#b4a783;font-family:'Courier New',monospace}.historytitle h2{font-style:italic;font-weight:bold}.historytitle{border-bottom-style:dashed}#result h2{font-style:italic}.stats strong{font-family:'Courier New',monospace}dialog{border-top-color:#8e4e30}dialog h2{font-style:italic}
[data-theme="dark"] header{background:#211c14 url('contours.svg');border-bottom-color:#8c5637;border-top-color:#0d0c09}
[data-theme="dark"] .brand{color:#f2d29c}[data-theme="dark"] .editionbar{background:#302d20}[data-theme="dark"] .editionbar>span:first-child{color:#e3bd83;border-color:#a8794c}[data-theme="dark"] .editionbar>span:last-child{color:#c4b390}
[data-theme="dark"] .playcontent{background-image:linear-gradient(90deg,transparent 14px,#c8915320 14px,#c8915320 15px,transparent 15px)}
[data-theme="dark"] .treehead{background:#383f2b url('contours.svg');border-bottom-color:#a77b48}
[data-theme="dark"] #tree{background-image:linear-gradient(#c2b07307 1px,transparent 1px),linear-gradient(90deg,#c2b07307 1px,transparent 1px),radial-gradient(ellipse at 50% 20%,#464832,#25291f 75%);background-size:28px 28px,28px 28px,100% 100%}
[data-theme="dark"] .tree-node.shared rect{fill:#41634e;stroke:#a6bc8b}[data-theme="dark"] .tree-node.shared text{fill:#fff2cc}
[data-theme="dark"] .tree-node.root rect,[data-theme="dark"] .tree-node.mystery rect{fill:#303827;stroke:#a4a77e}[data-theme="dark"] .tree-node.root text,[data-theme="dark"] .tree-node.mystery text{fill:#e4dfb9}
[data-theme="dark"] .primary{background:#b87444;color:#fff4d5;border-color:#ce9d60}[data-theme="dark"] .primary:hover{background:#9b633d}
[data-theme="dark"] .tabs .active{border-top-color:#c48650}
@media(max-width:720px){.brand{font-size:36px}.brand small{font-size:9px;letter-spacing:1.3px}.mark{width:44px;height:44px}.treehead h1{font-size:23px}.editionbar>span:first-child{font-size:10px;letter-spacing:.8px}}

/* Family labels double as optional research links. */
.family-link{color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.family-link text{text-decoration:underline}.family-link:hover rect,.family-link:focus-visible rect{stroke:currentColor;stroke-width:3}.family-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}

.family-help{margin:0;padding:12px 18px;text-align:center;font-size:14px;color:var(--muted)}

.autocomplete{position:relative;flex:1;min-width:0}.autocomplete input{width:100%;box-sizing:border-box}#languages{position:absolute;top:100%;left:0;right:0;z-index:20;max-height:240px;overflow:auto;background:var(--paper);color:inherit;border:1px solid #99855c;box-shadow:3px 4px 0 #44341d40}#languages[hidden]{display:none}#languages [role="option"]{padding:12px;cursor:pointer;font-size:16px}#languages [aria-selected="true"],#languages [role="option"]:hover{background:#42604c;color:#fff}

.factclue{margin:20px 0;padding:16px 18px;border:1px solid #99855c;border-left:4px solid #a1613e;background:var(--paper);color:inherit}.factclue[hidden]{display:none}.factclue h2{font:italic bold 23px Georgia;margin:0 0 6px}.factclue .factmeta{font:12px/1.5 "Courier New",monospace;margin:0 0 12px}.factclue #facttext{font-size:16px;line-height:1.55;margin:0}.factclue a{display:inline-block;margin-top:10px;color:inherit;font-size:11px;line-height:1.5;text-decoration-thickness:1px;text-underline-offset:2px}.factclue a[hidden]{display:none}

.factclue #secondtext{font-size:16px;line-height:1.55;margin:0}

#message:empty { display: none; }
