*{box-sizing:border-box} :root{--ink:#213e37;--muted:#64776d;--green:#214e40;--cream:#f5f5ee;--yellow:#eed989;--border:#dfe4d9}body{margin:0;color:var(--ink);background:var(--cream);font-family:Inter,Arial,sans-serif;font-size:14px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:3px solid #3273ad;outline-offset:4px}button{min-height:44px}header{height:94px;padding:0 4.5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:#fbfcf6}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;color:var(--ink);font-size:15px;font-weight:800;letter-spacing:1.3px}.brandmark{width:43px;height:46px;display:grid;place-items:center;background:var(--green);color:var(--yellow);font-size:35px;border-radius:11px}.brand small{display:block;font-size:9px;letter-spacing:2px;font-weight:500;margin-top:7px}.header-right{display:flex;align-items:center;gap:17px}.pill{border:1px solid #c8d3c2;border-radius:20px;padding:8px 11px;font-size:10px;letter-spacing:1.1px}.quiet{background:none;border:0;color:var(--ink);font-size:12px}main{max-width:1560px;margin:0 auto;padding:40px 4.5% 20px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.65px;margin:0 0 12px;color:#587163}h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(28px,3vw,43px);letter-spacing:-1.2px;margin:0 0 12px}.intro p:not(.eyebrow){color:var(--muted);margin:0;line-height:1.6}.duration{text-align:center;font-size:9px;letter-spacing:1.5px;color:var(--muted);min-width:120px}.duration span{font-family:Georgia,serif;font-size:38px;display:block;letter-spacing:-1px;color:var(--ink);margin-bottom:6px}.journey{display:flex;align-items:center;gap:17px;padding:17px 0;border-top:1px solid var(--border);margin-bottom:18px;color:#737f74;font-size:12px}.journey>div{display:flex;align-items:center;gap:8px;white-space:nowrap}.journey b{background:#e6eadf;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;font-size:10px}.journey .current{color:var(--green);font-weight:700}.journey .current b,.journey .complete b{background:var(--green);color:white}.line{width:45px;height:1px;background:#cbd4c5}#progressText{margin-left:auto;font-size:11px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:23px;align-items:start}.world-panel{border:1px solid #d8e1d6;border-radius:15px;overflow:hidden;background:#eaf0e5;box-shadow:0 9px 25px #27412b06}.world-top{display:flex;align-items:center;justify-content:space-between;padding:13px 19px;font-size:10px;font-weight:700;letter-spacing:1px;background:#eef3e9}.world-top>span{display:flex;align-items:center;gap:7px}.world-top small{font-size:8px;font-weight:400;letter-spacing:.5px;color:#687b6b;margin-left:5px}.dot{width:6px;height:6px;background:#4e805b;border-radius:50%}.world-top button{border:1px solid #cbd9c8;background:#f8faf3;border-radius:7px;padding:0 10px;color:var(--green);font-size:10px;letter-spacing:0}.world-top button[aria-pressed=true]{background:var(--green);color:white}.world-wrap{position:relative;background:#e7eee1}.world-wrap svg{display:block;width:100%;height:auto;max-height:690px}.scene-hint{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);font-size:11px;color:#385047;background:#fcfcf3ee;border:1px solid #d5ddca;border-radius:30px;padding:10px 16px;white-space:nowrap;pointer-events:none}.world-bottom{display:flex;gap:18px;justify-content:center;padding:14px 8px;border-top:1px solid #d9e2d2;font-size:9px;color:#647760}.world-bottom span{display:flex;gap:6px;align-items:center}.swatch{display:inline-block;width:9px;height:9px;border-radius:2px}.target{background:#e6c66b}.old{background:#81603e}.new{background:#668f8a}.toolbelt{display:flex;align-items:center;gap:13px;padding:14px 20px;background:#f9fbf4;border-top:1px solid #d9e2d2}.tool-label{font-size:8px;letter-spacing:1px;max-width:68px;line-height:1.6;color:#728170}.tool-icon{display:grid;place-items:center;width:43px;height:43px;border:1px solid #d5dfce;border-radius:9px;background:#eaf0e2;font-size:25px}.toolbelt strong{font-size:12px}.toolbelt small{display:block;color:var(--muted);font-size:10px;margin-top:5px;line-height:1.4}.mission{background:#fffef8;border:1px solid var(--border);border-radius:13px;padding:23px}.mission-top{display:flex;justify-content:space-between;align-items:start}.mission-top .eyebrow{font-size:9px;letter-spacing:1px}#stepCount{font-size:10px;color:#879080;white-space:nowrap}h2{font-family:Georgia,serif;font-size:28px;letter-spacing:-.6px;font-weight:400;margin:7px 0 13px;line-height:1.12}#missionDescription{line-height:1.7;color:#657467;font-size:12px;margin-bottom:17px}.check{display:flex;gap:9px;padding:8px 0;font-size:11px;line-height:1.4;color:#56695b}.check span{color:#587861}.check.done{color:#778472}.check.done span{color:var(--green)}.actions{display:flex;flex-direction:column;gap:8px;margin-top:17px}.primary,.secondary,.choice{border-radius:8px;border:1px solid #cdd9c5;padding:12px 14px;text-align:left;font-size:12px;line-height:1.4}.primary{background:var(--green);color:#fff;border-color:var(--green);font-weight:600}.primary:hover{background:#31634d}.secondary,.choice{background:#f3f5ed;color:var(--green)}.secondary:hover,.choice:hover{background:#e8eedf}.choice:before{content:'○';margin-right:8px;color:#6c805e}.guide{display:flex;gap:11px;margin-top:23px;padding-top:18px;border-top:1px solid #e5e8db}.avatar{width:31px;height:33px;flex-shrink:0;display:grid;place-items:center;background:#e7dcb8;color:#796646;border-radius:9px;font-family:Georgia,serif;font-size:19px}.guide strong{font-size:10px}.guide p{font-size:11px;line-height:1.65;color:#74806f;margin:5px 0 0}#feedback:empty{display:none}#feedback{background:#edf2df;border-left:3px solid #8b9e63;color:#455830;padding:12px;margin-top:13px;font-size:12px;line-height:1.6}#feedback.error{background:#fbf0dc;color:#785524;border-color:#c3a060}.notebook{padding:20px 5px}.notebook-head{display:flex;justify-content:space-between;align-items:center}.notebook h3{font-family:Georgia,serif;font-size:18px;font-weight:400;margin:0}.notebook-head span{font-size:10px;border:1px solid #d1dacb;border-radius:10px;padding:4px 8px;color:#6b7f62}.evidence-card{border-bottom:1px solid #dce3d5;padding:14px 0;font-size:11px;line-height:1.6}.evidence-card strong{display:block;color:#3c5c47;font-size:11px;margin-bottom:3px}.evidence-card p{margin:0;color:#72816c}.empty{font-size:11px;line-height:1.7;color:#818c7a;padding:12px 0}.tag{font-size:8px;letter-spacing:.7px;color:#829078;display:block;margin-bottom:5px}footer{display:flex;justify-content:space-between;gap:20px;font-size:9px;color:#7a8772;line-height:1.6;margin-top:26px}footer>span:first-child{letter-spacing:1px}.footer-dot{margin:0 9px}dialog{border:1px solid #cdd8c7;border-radius:18px;padding:35px;max-width:470px;width:calc(100% - 30px);color:var(--ink);background:#fffef7;box-shadow:0 20px 100px #13372440}dialog::backdrop{background:#193f3580;backdrop-filter:blur(3px)}dialog p,dialog li{font-size:13px;line-height:1.8;color:#687660}.close{position:absolute;right:12px;top:8px;border:0;background:none;font-size:24px;color:var(--ink);width:44px}dialog .primary{width:100%}svg text{font-family:Arial,sans-serif;pointer-events:none}svg .hotspot{cursor:pointer}svg .hotspot:hover .outline,svg .hotspot:focus .outline{stroke:#fff6cb;stroke-width:4}svg .hotspot:hover{filter:brightness(1.07)}svg .outline{stroke:#f5d782;stroke-width:2.2;stroke-dasharray:5 3;fill:#ffda761a}svg .sparkle{animation:pulse 1.5s ease-in-out infinite}svg .flow{stroke-dasharray:8 10;animation:flow 1s linear infinite}@keyframes pulse{50%{opacity:.5}}@keyframes flow{to{stroke-dashoffset:-36}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}@media(min-width:1500px){.game-layout{grid-template-columns:minmax(0,1fr) 355px}.mission{padding:27px}}@media(max-width:1000px){main{padding:25px 3%}.game-layout{grid-template-columns:minmax(0,1fr) 285px;gap:15px}.world-top small{display:none}.mission{padding:18px}h2{font-size:25px}.scene-hint{font-size:9px}.world-bottom{gap:9px;font-size:8px}.tool-label{display:none}.header-right{gap:6px}}@media(max-width:760px){header{height:auto;min-height:78px;padding:12px 4%;gap:10px;flex-wrap:wrap}.pill{display:none}.brand{font-size:12px}.brand small{font-size:7px}.brandmark{width:34px;height:38px;font-size:28px}.quiet{font-size:11px}.intro{margin-bottom:24px}.intro p:not(.eyebrow){font-size:12px}.duration{display:none}h1{font-size:30px}.eyebrow{font-size:8px}.journey{gap:8px;font-size:10px}.line{width:12px}#progressText{font-size:9px}.journey b{height:23px;width:23px}.game-layout{grid-template-columns:1fr}.world-top{padding:8px 12px}.world-top>span{font-size:9px}.world-wrap svg{max-height:500px}.toolbelt{padding:10px 15px}.toolbelt small{font-size:11px}.world-bottom{font-size:9px}.mission{padding:22px}aside{display:grid;grid-template-columns:1fr}.notebook{padding:20px 8px}.scene-hint{bottom:8px;padding:7px 11px;max-width:95%;white-space:normal;text-align:center}.primary,.secondary,.choice{min-height:48px}footer{flex-direction:column;gap:6px}.header-right{margin-left:auto}}
@media(min-width:761px) and (max-height:950px){header{height:72px}main{padding-top:22px}.intro{margin-bottom:20px}h1{font-size:34px}.journey{padding:12px 0;margin-bottom:12px}.world-wrap svg{max-height:52vh}.world-top{padding-top:7px;padding-bottom:7px}.toolbelt{padding-top:9px;padding-bottom:9px}.world-bottom{padding-top:10px;padding-bottom:10px}}
.discovery{font-size:9px;letter-spacing:1.2px;color:#647c60;text-align:center;padding:10px 8px 0;background:#e7eee1}.world-top button:disabled{opacity:.65;cursor:not-allowed}.resin{animation:resin-in .5s ease-out}@keyframes resin-in{from{opacity:0}to{opacity:1}}#sourcesDialog a{color:#245d4e;text-underline-offset:3px}#sourcesDialog ul{padding-left:17px}#sourcesDialog li{margin:15px 0}#sourcesDialog li p{margin:5px 0;font-size:12px}#missionTitle:focus{outline:none}@media(max-width:420px){#progressText{display:none}.journey{justify-content:space-between}.world-bottom{flex-wrap:wrap;font-size:8px;gap:8px}}
@keyframes press-down{from{transform:translateY(-44px)}to{transform:translateY(0)}}@keyframes piston-down{0%{transform:translateY(-12px)}70%{transform:translateY(14px)}100%{transform:translateY(-12px)}}.press-shaft{animation:press-down .8s ease-in-out both}.press-piston{animation:piston-down .8s ease-in-out}#actions button:disabled{opacity:.6;cursor:wait}svg [aria-disabled=true]{pointer-events:none}@media(min-width:761px){#actions:has(button[data-action^="dig:"]){display:grid;grid-template-columns:1fr 1fr;gap:5px}#actions button[data-action^="dig:"]{font-size:10px;padding:9px}}
.game-controls{padding:12px 18px 15px;background:#f5f8ec;border-top:1px solid #d8e1cb}.game-controls #actions{margin:0;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px}.game-controls #actions button{flex:1 1 170px;max-width:520px;text-align:center}.game-controls #feedback{margin-top:10px;padding:8px 12px;font-size:11px}.game-controls.digging #actions{display:flex;flex-wrap:wrap;gap:5px}.game-controls.digging #actions button{flex:1 1 100px;font-size:10px;padding:8px;max-width:150px}.scene-hint{max-width:90%;white-space:normal;text-align:center}.game-layout{grid-template-columns:minmax(0,1fr) 285px}.mission{padding:20px}@media(max-width:760px){.game-layout{grid-template-columns:1fr}.game-controls{padding:10px}.game-controls #actions button{flex-basis:135px}.game-controls.digging #actions button{flex-basis:90px}.world-wrap svg{max-height:none}}
#lessonSheet{position:fixed;margin:auto 0;top:12px;bottom:12px;max-height:calc(100dvh - 24px);overflow:auto;padding:27px;border-radius:3px;background:#fffef9;box-shadow:0 16px 70px #173c3555}#lessonSheet.report-sheet{aspect-ratio:210/297}#lessonSheet::backdrop{background:#193f3538;backdrop-filter:blur(1px)}#lessonSheet h2{font-size:27px}#lessonSheet h3{font-size:12px;margin:18px 0 5px}#lessonSheet p{font-size:12px;line-height:1.6;margin:6px 0}#lessonSheet .eyebrow{font-size:8px;margin-top:24px;letter-spacing:1.3px}.report-head,.report-foot{display:flex;justify-content:space-between;gap:15px;font-size:8px;color:#738270;padding-bottom:13px;border-bottom:1px solid #d5ddce}.report-address{border-bottom:1px solid #d5ddce;padding-bottom:13px}.report-foot{border-top:1px solid #d5ddce;border-bottom:0;margin:22px 0 15px;padding-top:12px}.report-foot span{white-space:nowrap}.depth-symbol{font-size:45px;color:#a97722;text-align:center;padding:10px}.warning-sheet .primary{margin-top:18px}.report-sheet .primary{font-size:12px}#lessonSheet.warning-sheet{border-top:6px solid #d0a44a;border-radius:10px}
#lessonSheet.report-sheet{padding:23px}#lessonSheet.report-sheet p{font-size:11.5px;line-height:1.5}#lessonSheet.report-sheet h3{margin-top:13px}#lessonSheet.report-sheet .eyebrow{margin-top:17px;font-size:8px}#lessonSheet.report-sheet .report-foot{margin:16px 0 12px;padding-top:10px}
/* Lightweight tools live inside the scene; the house remains the main interaction surface. */
.world-wrap{padding-bottom:110px}.world-wrap .game-controls{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);width:calc(100% - 28px);max-width:530px;padding:9px 12px;border:1px solid #d4dfca;border-radius:12px;background:#fcfff3ed;box-shadow:0 4px 16px #25422f12;z-index:2}.game-controls #feedback{background:none;border:0;margin:5px 0 0;padding:0;text-align:center;font-size:11px;line-height:1.4}.game-controls #actions button{font-size:11px;padding:9px;min-height:44px}.game-controls details{max-height:150px;overflow:auto}.game-controls summary{cursor:pointer;font-size:10px;text-align:center;padding:5px}.toolbox{position:absolute;left:12px;top:12px;display:flex;flex-direction:column;gap:5px;padding:6px;background:#fbfdf2de;border:1px solid #d4dfca;border-radius:12px;box-shadow:0 4px 16px #25422f12;z-index:3}.toolbox button{display:flex;align-items:center;gap:8px;background:transparent;border:1px solid transparent;border-radius:7px;color:#4d6655;font-size:10px;padding:6px 9px;text-align:left;min-height:44px}.toolbox button span{font-size:23px;width:25px;text-align:center}.toolbox button[aria-pressed=true]{background:#e8f0d5;border-color:#9cb18b;color:#254b36}.toolbox button:hover{background:#edf2e3}.world-panel .toolbelt,.world-wrap .scene-hint{display:none}svg .wrong-tool .outline{stroke:#a8b7a0;fill:transparent;stroke-dasharray:2 5}svg[data-tool=dig] .hotspot:not(.wrong-tool){cursor:crosshair}.world-bottom{font-size:8px;padding:8px}.world-wrap svg{max-height:56vh}@media(max-width:760px){.world-wrap{padding-top:64px;padding-bottom:140px}.toolbox{top:6px;left:7px;right:7px;flex-direction:row;overflow-x:auto;padding:4px;gap:3px}.toolbox button{flex-shrink:0;flex-direction:column;gap:0;min-width:63px;font-size:9px;padding:3px 6px}.toolbox button span{font-size:20px}.world-wrap svg{max-height:none}.world-wrap .game-controls{bottom:8px;width:calc(100% - 14px)}.game-controls #actions button{flex-basis:130px}.game-controls details{max-height:100px}}

#scenarioSelect{display:block;width:100%;min-height:44px;margin:10px 0;padding:10px;border:1px solid #bdcdb5;border-radius:8px;background:#f5f8ed;color:#214e40}#scenarioPicker{font-size:11px;opacity:.8}#lessonSheet.report-sheet{aspect-ratio:auto;min-height:550px}

/* Required decisions sit beside the world; only backup actions need the lower tray. */
.world-wrap.mission-choice{padding-bottom:12px}.game-controls[hidden]{display:none}.mission #actions:empty{display:none}.mission #actions button{width:100%}.mission #feedback{font-size:11px}
