﻿:root{font-family:'Trebuchet MS','Segoe UI',system-ui,sans-serif;color:#314c3d;background:#f8f7ef;font-synthesis:none;--ink:#314c3d;--muted:#6e7d64;--line:#e0e4d5;--green:#426a4c;--gold:#d5ad60;--ease:cubic-bezier(.23,1,.32,1)}*{box-sizing:border-box}body{margin:0;font-size:15px;-webkit-font-smoothing:antialiased}button,input,a{font:inherit}button{color:inherit;cursor:pointer;user-select:none;transition:background-color 140ms ease,transform 120ms var(--ease)}button:active{transform:scale(.97)}button:disabled{opacity:.42;cursor:default;transform:none}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #ae8136;outline-offset:4px}h1,h2,h3,h4,p{margin:0}p{line-height:1.7}h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-1px}h3,h4{font-weight:600}h3{font-size:19px}h4{font-size:14px}.topbar{height:90px;background:#fbfbf5;border-bottom:1px solid var(--line);padding:0 44px;display:flex;align-items:center;justify-content:space-between;gap:30px}.brand{display:flex;align-items:center;gap:11px;flex-shrink:0}.brand-mark{height:43px;width:43px;border-radius:13px;display:grid;place-items:center;background:#3d6547;color:#f2e7bc;font-family:Georgia,serif;font-size:37px;line-height:1}.brand>span:last-child{font-size:27px;letter-spacing:-1.1px;font-weight:700}.brand small{display:block;font-size:9px;letter-spacing:1.7px;font-weight:400;margin-top:2px}.topbar nav{display:flex;gap:34px;height:100%;align-items:stretch}.nav-item{border:0;border-bottom:2px solid transparent;background:none;padding:0 3px;color:#78836f;font-size:13px}.nav-item.active{border-bottom-color:#4b7150;color:#3b6041}.header-tools{display:flex;gap:12px;align-items:center}.save-status{font-size:10px;color:#76836b;white-space:nowrap}.save-status:before{content:'';display:inline-block;width:5px;height:5px;background:#8caa75;border-radius:50%;margin-right:7px}.icon-button{border:1px solid #e0e5d5;display:inline-grid;place-items:center;width:37px;height:37px;border-radius:50%;background:transparent;font-size:19px;flex-shrink:0}.avatar-button{width:39px;height:39px;border:1px solid #d6dfcb;background:#e8eddb;border-radius:50%;overflow:hidden;padding:2px;display:grid;place-items:center}.avatar-button img{height:45px;max-width:100%;object-fit:contain}.page-heading{display:flex;align-items:center;justify-content:space-between;margin:30px 0 25px;gap:25px}.breadcrumb{font-size:10px;color:#79866f;display:flex;gap:12px;margin-bottom:12px}.breadcrumb span{color:#b3bba5}h1{font-size:38px;line-height:1.25;margin-bottom:10px}.page-heading p{font-size:13px;color:#79866c}.chapter-tag{font-size:11px;display:flex;gap:18px;align-items:center;color:#778564;padding:12px 14px;border:1px solid #e2e6d7;border-radius:7px;white-space:nowrap}.chapter-tag i{font-size:21px;color:#b69a56;font-style:normal}main{max-width:1580px;margin:auto;padding:0 42px}.adventure-layout{display:grid;grid-template-columns:minmax(0,1fr) 266px;gap:29px;align-items:start}.world-card{border:1px solid #dce3ce;border-radius:17px;overflow:hidden;background:#fafbf3;box-shadow:0 7px 20px #33522e07;min-width:0}.world-viewport{height:clamp(430px,calc(100dvh - 300px),640px);position:relative;overflow:hidden;background:#cbdab3;isolation:isolate;cursor:crosshair;outline-offset:-5px}.world-stage{position:absolute;top:0;left:0;width:1280px;height:760px;transform-origin:0 0}.world-stage>svg{display:block;pointer-events:none;position:absolute;inset:0}.world-landmark{position:absolute;border:0;background:transparent;padding:0;transform:translate(-50%,-100%);display:flex;align-items:center;flex-direction:column;cursor:pointer;isolation:isolate}.world-landmark:active{transform:translate(-50%,-100%) scale(.98)}.landmark-label{font-size:10px;color:#536d48;background:#fafbe9eb;box-shadow:0 2px 8px #455d3510;border:1px solid #ffffe980;white-space:nowrap;padding:6px 10px;border-radius:5px;position:absolute;top:100%;margin-top:9px}.scout-landmark{width:70px;height:80px}.landmark-pin{display:grid;place-items:center;height:35px;width:35px;background:#f7e7b7;color:#8b7448;border:1px solid #d3b87a;border-radius:50%;font-size:22px;position:absolute;top:-15px}.scout-landmark .landmark-label{top:70px}.tree-landmark{width:155px;height:186px}.tree-landmark>img{width:155px;height:186px;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 4px 2px #47704020)}.tree-aura{position:absolute;width:150px;height:70px;background:radial-gradient(ellipse,#f9e5a487,transparent 70%);border-radius:50%;bottom:-5px;left:0}.monster-landmark{width:94px;height:120px;transition:opacity 180ms ease}.monster-landmark>img{width:88px;height:114px;object-fit:contain;filter:drop-shadow(0 7px 2px #56774220)}.enemy-mark{display:grid;place-items:center;position:absolute;top:-31px;left:37px;height:28px;width:24px;border-radius:11px;background:#f8edcc;border:1px solid #d8c58c;color:#a28546;font-weight:700;font-size:16px}.monster-landmark.is-defeated>img{opacity:.25}.monster-landmark.is-defeated .enemy-mark{background:#e2edcf;color:#547747}.world-player{position:absolute;top:0;left:0;width:68px;height:101px;pointer-events:none;text-align:center}.hero-sprite{width:68px;height:91px;object-fit:contain;position:relative;z-index:1;transform-origin:center bottom}.player-shadow{position:absolute;bottom:7px;left:8px;width:52px;height:16px;border-radius:50%;background:#566f4330;filter:blur(1px)}.player-name{position:absolute;top:100%;left:50%;transform:translateX(-50%);font-size:9px;background:#fbfbeaeb;border:1px solid #f6f8df;padding:3px 7px;border-radius:4px;white-space:nowrap;color:#587347}.walking .hero-sprite{animation:hero-step 300ms ease-in-out infinite}@keyframes hero-step{0%,100%{transform:rotate(-2deg) translateY(0)}50%{transform:rotate(2deg) translateY(-3px)}}.map-hud{position:absolute;top:18px;left:20px;right:18px;display:flex;justify-content:space-between;align-items:center;z-index:1600;pointer-events:none}.map-hud>*{pointer-events:auto}.location-pill{display:flex;gap:9px;align-items:center;background:#fffff1e8;border:1px solid #fff9;border-radius:7px;padding:10px 13px;color:#5a7350;font-size:11px;box-shadow:0 2px 9px #45613905}.location-pill i{width:6px;height:6px;background:#86a76d;border-radius:50%}.hud-right{display:flex;align-items:center;gap:7px}.hearts{display:flex;gap:3px;font-size:17px;letter-spacing:3px;color:#b77e6a;margin-right:10px;text-shadow:0 1px #fff7}.empty-hearts{color:#819d75}.map-icon{display:grid;place-items:center;height:33px;width:33px;border-radius:7px;border:1px solid #fffff1b3;background:#ffffe9c9;color:#6e825d;font-size:19px}.compass{position:absolute;right:24px;top:83px;font-size:43px;color:#65835f9c;z-index:1200;line-height:1;text-align:center;pointer-events:none}.compass span{font-size:10px;display:block;line-height:2}.world-controls{position:absolute;left:21px;right:21px;bottom:15px;display:flex;gap:17px;justify-content:space-between;font-size:9px;color:#58714b;z-index:1500;pointer-events:none}.world-controls span{display:flex;align-items:center;gap:4px}kbd{font:10px 'Trebuchet MS',sans-serif;display:inline-grid;place-items:center;height:18px;min-width:18px;border:1px solid #b6c79d;background:#f6f7e79c;border-radius:4px;color:#6a8157}.world-caption{position:absolute;left:21px;bottom:49px;display:flex;align-items:center;gap:10px;z-index:1500;max-width:550px;pointer-events:none}.caption-avatar{display:grid;place-items:center;font-family:Georgia,serif;font-size:30px;border-radius:50%;width:43px;height:43px;color:#729457;background:#e9edc9;border:3px solid #f6f5da;flex-shrink:0}.world-caption>div{background:#fffff1ed;border:1px solid #ffffeac9;border-radius:8px;padding:11px 15px;box-shadow:0 4px 10px #41633207}.world-caption strong{font-size:10px;color:#6a8254;letter-spacing:.4px;font-weight:600}.world-caption p{font-size:11px;color:#5a7150;margin-top:3px;line-height:1.6}.interaction-prompt{position:absolute;left:50%;bottom:151px;transform:translateX(-50%);z-index:1600}.interaction-prompt button{display:flex;align-items:center;gap:11px;background:#fbf7e8;border:1px solid #d5d2a3;border-radius:8px;box-shadow:0 4px 16px #435a3020;padding:10px 14px;color:#546f44;font-size:12px;white-space:nowrap}.interaction-prompt kbd{height:23px;min-width:23px;background:#e7e8cd;color:#6b774f}.interaction-prompt b{color:#8b9a70;font-size:16px}.walk-marker{height:14px;width:14px;border:2px solid #faf9d9;border-radius:50%;position:absolute;top:-7px;left:-7px;z-index:1500;opacity:0;pointer-events:none;transition:opacity 120ms ease}.walk-marker.visible{opacity:.9}.travel-bar{height:51px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:0 22px;border-top:1px solid #e4e8d7}.travel-bar>span:first-child{font-size:10px;color:#8b947c;margin-right:11px}.travel-bar button{padding:10px 2px;border:0;background:none;font-size:11px;color:#617751;white-space:nowrap}.path-dot{color:#b7bca1;letter-spacing:2px;font-size:15px}.quest-sidebar{padding:4px 0 0}.section-label{font-size:10px;letter-spacing:.4px;color:#7c896c}.quest-intro h2{font-size:28px;line-height:1.27;margin:14px 0 11px;letter-spacing:-.8px}.quest-intro>p{font-size:12px;color:#7e896e;line-height:1.8}.quest-steps{list-style:none;padding:0;margin:25px 0 18px;position:relative}.quest-steps:before{content:'';position:absolute;top:15px;bottom:15px;width:1px;background:#e0e4d3;left:12px;z-index:-1}.quest-steps li{display:flex;align-items:center;gap:10px;min-height:40px;color:#96a184;font-size:12px}.quest-steps li>span{width:25px;height:25px;display:grid;place-items:center;border:1px solid #e1e5d5;background:#f8f7ef;border-radius:50%;font-size:10px;color:#a2aa91;flex-shrink:0}.quest-steps li.done{color:#5f7d4a}.quest-steps li.done>span{background:#e7edda;color:#6d8957;border-color:#dce5ca}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:44px;padding:12px 18px;border-radius:7px;border:1px solid #3c6145;background:#466d4f;color:#fafbed;font-size:12px;font-weight:500;white-space:nowrap}.primary>span{font-size:17px}.secondary{background:#f3f5e8;border-color:#dbe2ce;color:#607b50}.gold{background:#d9b36c;border-color:#cba25c;color:#56472e}.trail-button{width:100%;justify-content:space-between;font-size:11px;padding:12px 14px;min-height:43px}.equipment{margin-top:27px;border-top:1px solid var(--line);padding-top:22px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:5px}.section-heading h3{font-size:12px}.section-heading>span{font-size:9px;color:#8e9a7d}.equipment-slot{margin:15px 0 10px;padding:14px 12px;min-height:72px;display:flex;align-items:center;gap:11px;border:1px dashed #d8dfc8;border-radius:8px;background:#f5f6eb}.empty-equipment{width:35px;height:35px;display:grid;place-items:center;font-size:27px;color:#b6bc9b;border:1px solid #e2e5d6;border-radius:6px;flex-shrink:0}.equipment-slot strong{display:block;font-size:10px;color:#8a9776;font-weight:400}.equipment-slot div>span{display:block;font-size:9px;color:#a0a88b;margin-top:5px}.equipment>p{font-size:10px;color:#8c967b;line-height:1.7}.wise-note{display:flex;gap:11px;align-items:center;margin-top:26px;background:#eef1e2;border:1px solid #e3e8d4;padding:13px 12px;border-radius:9px}.wise-note img{width:40px;height:47px;object-fit:contain;flex-shrink:0}.wise-note strong{font-size:10px;color:#72895c;font-weight:500}.wise-note p{font-size:10px;color:#8c9978;margin-top:5px;line-height:1.6}.text-button{border:0;background:transparent;display:inline-flex;align-items:center;gap:9px;font-size:11px;padding:8px 0;color:#6f845b}.quest-sidebar>.text-button{margin-top:17px}.quest-sidebar>.text-button>span{display:grid;place-items:center;width:16px;height:16px;border:1px solid #aebc98;border-radius:50%;font-size:10px}main>footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 0 22px;color:#8e997f;font-size:9px}main>footer>div{display:flex;gap:20px}main>footer a{color:#788d63}.gear{display:inline-flex;align-items:center;gap:10px;color:#44633d;font-size:13px}.gear i{width:36px;height:36px;display:grid;place-items:center;border-radius:9px;flex-shrink:0;box-shadow:inset 0 0 0 1px #0001}.gear i img{width:23px;height:23px;object-fit:contain}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.skip-link{position:fixed;top:-90px;left:20px;background:white;padding:15px;z-index:5000}.skip-link:focus{top:10px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#35513b;color:#f4f4df;padding:12px 20px;border:1px solid #66805a;border-radius:8px;box-shadow:0 5px 20px #24422620;font-size:12px;opacity:0;transition:opacity 160ms ease;pointer-events:none;z-index:4000;max-width:650px;text-align:center}.toast.show{opacity:1}
/* Teaching and encounter surfaces share the same readable, quiet paper shell. */
dialog{border:1px solid #d4ddc5;border-radius:17px;width:min(1190px,calc(100vw - 64px));padding:0;background:#fcfcf4;color:#35503b;box-shadow:0 30px 100px #17362335;max-height:calc(100dvh - 44px);overflow:hidden}dialog.compact{width:min(620px,calc(100vw - 64px))}dialog::backdrop{background:#243b2b70;backdrop-filter:blur(2px)}dialog[open]{animation:dialog-enter 200ms var(--ease)}@keyframes dialog-enter{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 48px)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;padding:25px 30px 22px;border-bottom:1px solid #e5e9d9}.modal-kicker{font-size:9px;color:#8b987b;letter-spacing:.7px}.modal-head h2{font-size:32px;line-height:1.3;margin-top:8px}.modal-head p{font-size:12px;color:#8a977c;margin-top:8px}.modal-head .icon-button{border:0;font-size:25px}.modal-body{padding:24px 30px;overflow:auto;overscroll-behavior:contain}.modal-footer{border-top:1px solid #dfe6d1;padding:18px 30px;display:flex;justify-content:space-between;align-items:center;gap:22px;background:#f2f5e7}.modal-footer>span{font-size:11px;color:#879775;line-height:1.6;max-width:520px}.footer-actions{display:flex;gap:12px}.character-scene{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;align-items:center;min-height:345px}.character-story{padding:12px 10px}.character-story>img{height:94px;max-width:100px;object-fit:contain;margin-bottom:20px}.character-story h3{font-family:Georgia,serif;font-weight:400;font-size:28px;letter-spacing:-.7px;line-height:1.35;margin-bottom:15px}.character-story p{font-size:12px;color:#829371;line-height:1.8}.character-story-note{font-size:10px;color:#9ca68b;display:block;margin-top:20px}.hero-choices{display:grid;grid-template-columns:1fr 1fr;gap:20px}.hero-choice{border:1px solid #dfe6d2;border-radius:12px;background:#f6f8ed;padding:19px 20px 23px;display:flex;flex-direction:column;text-align:left;gap:9px;min-width:0}.hero-choice[aria-pressed=true]{background:#edf3df;border-color:#9eb984;box-shadow:inset 0 0 0 1px #c1d3a8}.hero-stage{display:flex;justify-content:center;align-items:flex-end;height:175px;position:relative;width:100%;margin-bottom:12px}.hero-stage:before{content:'';position:absolute;bottom:-3px;width:97px;height:29px;background:#d6e2c2;border-radius:50%}.hero-stage>img{height:169px;object-fit:contain;position:relative;z-index:1}.hero-choice-name{font-family:Georgia,serif;display:flex;align-items:center;justify-content:space-between;font-size:25px;letter-spacing:-.6px;width:100%}.hero-choice-name i{height:23px;width:23px;border:1px solid #c2d2ac;border-radius:50%;font-family:Trebuchet MS,sans-serif;font-style:normal;display:grid;place-items:center;font-size:12px;color:#779663}.hero-choice>strong{font-size:11px;color:#7c9566;font-weight:500}.hero-choice>span:last-child{font-size:11px;line-height:1.7;color:#899a76;max-width:215px}.inspect-scene{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:center;padding:12px 35px 18px}.monster-portrait{height:305px;display:flex;justify-content:center;align-items:flex-end;position:relative;isolation:isolate}.monster-portrait>img{height:235px;width:230px;object-fit:contain;position:relative;z-index:1}.portrait-sun{position:absolute;inset:20px 0 20px;border-radius:50%;background:#e8edd7}.monster-shadow{position:absolute;bottom:-5px;width:180px;height:28px;border-radius:50%;background:#7b96672b}.inspect-details h3{font-family:Georgia,serif;font-size:32px;font-weight:400;letter-spacing:-1px;margin:13px 0 20px}.inspect-details>p{font-size:14px;color:#7f9270;margin-top:25px}.feature-chips{display:flex;flex-wrap:wrap;gap:6px}.feature-chips>span{background:#edf1e3;border:1px solid #dce5cc;border-radius:6px;padding:8px 9px;color:#8a9b77;font-size:10px;display:flex;gap:8px;align-items:center;white-space:nowrap}.feature-chips strong{color:#5f7b4a;font-size:11px;font-weight:500}.note-box{padding:16px 17px;border:1px solid #e1e7d2;border-radius:8px;background:#f0f4e6;font-size:12px;color:#7f9470;line-height:1.75;margin:22px 0 0}.note-box p{margin-top:8px}.teaching-tabs{display:flex;gap:24px;border-bottom:1px solid #dfe7cf;margin:-12px 0 24px}.teaching-tabs button{border:0;border-bottom:2px solid transparent;padding:13px 3px;background:transparent;font-size:12px;color:#91a17d;display:flex;gap:8px;align-items:center}.teaching-tabs button[aria-selected=true]{border-color:#6a8e52;color:#5a7c45}.teaching-tabs button>span{font-size:9px;background:#e8efd9;border-radius:4px;padding:3px 5px}.teaching-grid{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:28px}.tree-workspace{min-width:0}.tree-workspace-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:10px;font-size:12px;color:#738e5b}.tree-workspace-head>span:first-child{display:flex;gap:8px;align-items:center}.tree-workspace-head img{width:20px;height:25px;object-fit:contain}.tree-workspace-head>span:last-child{font-size:10px;color:#91a17a;background:#f0f4e6;border:1px solid #e2e8d5;border-radius:5px;padding:6px 8px}.tree-canvas{border:1px solid #dde6cc;border-radius:11px;background:#f0f5e5;overflow:auto;min-height:264px;display:flex;align-items:center;justify-content:center;background-image:radial-gradient(#bacb9f75 .7px,transparent .7px);background-size:16px 16px}.tree-canvas>svg{width:100%;min-width:420px;height:280px;display:block}.tree-node rect{stroke:#8fa778;stroke-width:1.5}.tree-node text{font-family:'Trebuchet MS',sans-serif;fill:#4f6f40;font-size:14px;font-weight:500}.tree-node.on rect{stroke:#c7a455;stroke-width:3;fill:#f8edc7}.tree-edge{fill:none;stroke:#9eb58b;stroke-width:3}.tree-edge.on{stroke:#c6a351;stroke-width:4}.question-area{margin-top:22px}.question-area>h3{font-size:17px}.muted{font-size:11px;color:#8b9c7a;line-height:1.8}.question-area>.muted{margin-top:7px;max-width:610px}.question-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}.question-card{border:1px solid #d8e3c8;background:#f9faf2;border-radius:8px;padding:13px 11px;text-align:left;min-width:0}.question-card>span{display:block;min-height:37px;font-size:12px;color:#5b7a45;line-height:1.55}.candidate-track{height:5px;background:#e4ebd7;border-radius:5px;margin:12px 0 8px;overflow:hidden}.candidate-track i{display:block;width:100%;height:100%;background:#87a567;transform-origin:left;border-radius:5px}.question-card>small{font-size:9px;line-height:1.6;color:#8a9b76;display:block}.trained-note{display:flex;gap:12px;align-items:center;background:#eef4e1;border:1px solid #dce7ca;border-radius:8px;padding:16px}.trained-note>span{font-size:20px;color:#7d9a5e}.trained-note>div{flex:1;min-width:0}.trained-note strong{font-size:12px;font-weight:500}.trained-note p{font-size:10px;color:#90a17a;margin-top:5px}.trained-note .text-button{font-size:10px;white-space:nowrap}.math-details{font-size:11px;color:#849c70;margin-top:17px;line-height:1.8}.math-details summary{cursor:pointer;padding:7px 0}.math-details p{margin-top:10px}.teaching-context{border-left:1px solid #e3e9d8;padding-left:24px;min-width:0}.current-creature{text-align:center;border-bottom:1px solid #e6eadc;padding-bottom:17px}.current-creature>img{width:78px;height:85px;object-fit:contain;display:block;margin:0 auto 13px}.current-creature>span{font-size:9px;color:#9aaa86}.current-creature>h3{font-size:16px;margin:7px 0 13px}.current-creature .feature-chips{justify-content:center}.current-creature .feature-chips>span{font-size:9px;padding:6px}.current-creature .feature-chips strong{font-size:10px}.tree-advice{display:flex;gap:10px;align-items:center;padding:16px 0}.tree-advice img{width:29px;height:36px;object-fit:contain}.tree-advice p{font-size:11px;line-height:1.7;color:#8d9d7b}.teaching-context h4{font-size:11px;color:#7e9669;font-weight:400;margin:4px 0 9px}.notes-peek{max-height:167px;overflow:auto}.scout-note{display:flex;gap:13px;align-items:center;background:#f6f8ed;border:1px solid #e0e8d0;border-radius:9px;padding:13px;min-width:0}.scout-note>img{width:48px;height:58px;object-fit:contain;flex-shrink:0}.scout-note>div{min-width:0}.scout-note strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.scout-note .feature-chips{margin-top:8px}.scout-note .feature-chips>span{padding:5px 6px;font-size:9px}.scout-note .feature-chips strong{font-size:9px}.note-label{font-size:9px;color:#9aac84;display:flex;align-items:center;gap:8px;margin-top:10px}.note-label .gear{font-size:10px;gap:5px}.note-label .gear i{width:23px;height:23px;border-radius:6px}.note-label .gear img{height:15px;width:15px}.notes-peek .scout-note{padding:9px;margin-top:7px;gap:8px}.notes-peek .scout-note>img{width:33px;height:44px}.notes-peek .scout-note strong{font-size:10px}.notes-peek .feature-chips{display:none}.notes-peek .note-label{display:block;font-size:8px;margin-top:5px}.notes-peek .note-label .gear{margin-top:5px}.journal-intro{max-width:650px;margin:0 0 24px}.journal-intro h3{font-family:Georgia,serif;font-size:24px;font-weight:400;letter-spacing:-.5px;margin:11px 0}.journal-intro p{font-size:12px;color:#859b72}.journal-stamp{border:1px solid #d8e4c6;background:#eef4df;border-radius:5px;font-size:10px;padding:6px 8px;color:#87a16a}.notes-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
/* The equipment reveal is driven by one recorded classifier output. */
.chest-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:35px;align-items:center;min-height:370px}.chest-scene{position:relative;height:365px;isolation:isolate;background:radial-gradient(ellipse at 50% 48%,#f8edc9 0,#f5f5e5 49%,transparent 72%);border-radius:16px}.chest-figure{position:absolute;width:200px;height:145px;top:98px;left:50%;transform:translateX(-50%);perspective:700px}.chest-shadow{position:absolute;left:3px;right:3px;height:26px;background:#8a82532a;border-radius:50%;bottom:-7px}.chest-base{position:absolute;left:10px;right:10px;bottom:7px;height:89px;border:3px solid #9e7c46;border-radius:4px 4px 13px 13px;background:repeating-linear-gradient(0deg,#b28b52 0 22px,#a27a4428 23px 25px);box-shadow:inset 0 -6px #88683633,inset 0 5px #caa064}.chest-base:before,.chest-base:after{content:'';position:absolute;top:0;bottom:0;width:20px;background:#d2b36b;border-left:2px solid #c09d57;border-right:2px solid #e1c381}.chest-base:before{left:24px}.chest-base:after{right:24px}.chest-base i,.chest-base b{position:absolute;left:3px;right:3px;height:7px;background:#cdac68}.chest-base i{top:0}.chest-base b{bottom:3px}.chest-lid{position:absolute;left:10px;right:10px;top:6px;height:55px;border:3px solid #a17b44;border-bottom:5px solid #e1be74;border-radius:32px 32px 4px 4px;background:#bd9458;z-index:3;transform-origin:50% 100%;box-shadow:inset 0 7px #d4ac6e,inset 0 -4px #96714340}.chest-lid:before,.chest-lid:after{content:'';position:absolute;top:0;bottom:0;width:20px;background:#dfbf78;border-left:2px solid #c29f59;border-right:2px solid #e6ca8c}.chest-lid:before{left:24px}.chest-lid:after{right:24px}.chest-lock{position:absolute;top:55px;left:83px;width:34px;height:35px;border:2px solid #a98645;border-radius:4px 4px 9px 9px;background:#e9cd83;z-index:4;color:#a58747;text-align:center;line-height:30px;font-size:15px}.chest-light{position:absolute;width:210px;height:210px;border-radius:50%;top:24px;left:50%;transform:translateX(-50%) scale(.92);background:radial-gradient(circle,#f9e4a3,#f9e4a344 45%,transparent 70%);opacity:0}.is-open .chest-light{opacity:1;transform:translateX(-50%) scale(1);transition:opacity 200ms ease,transform 240ms var(--ease)}.is-open .chest-lid{transform:rotateX(-112deg);animation:chest-lid-open 240ms var(--ease)}@keyframes chest-lid-open{from{transform:rotateX(0)}to{transform:rotateX(-112deg)}}.is-open .chest-lock{opacity:.5;transform:translateY(8px) rotate(10deg);transition:opacity 180ms ease,transform 200ms var(--ease)}.revealed-item{position:absolute;left:50%;top:47px;z-index:4;transform:translateX(-50%)}.revealed-item .gear i{width:83px;height:83px;border-radius:17px;box-shadow:0 7px 25px #bca15e30,inset 0 0 0 2px #fff4}.revealed-item .gear img{width:54px;height:54px}.is-open .revealed-item{animation:item-reveal 240ms var(--ease)}@keyframes item-reveal{from{opacity:0;transform:translateX(-50%) translateY(18px) scale(.96)}to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}.chest-particles{position:absolute;top:62px;left:50%;width:240px;transform:translateX(-50%);display:flex;justify-content:space-between;align-items:center;color:#c9a652;font-size:24px;opacity:0}.chest-particles>span{font-size:37px;margin-top:-24px}.is-open .chest-particles{opacity:.8;animation:magic-reveal 450ms var(--ease)}@keyframes magic-reveal{from{opacity:0;transform:translateX(-50%) translateY(14px)}to{opacity:.8;transform:translateX(-50%) translateY(0)}}.gear-reveal{position:absolute;top:268px;left:18px;right:18px;text-align:center}.gear-reveal>span{font-size:10px;color:#ac9b6b}.gear-reveal>h3{font-family:Georgia,serif;font-size:26px;font-weight:400;letter-spacing:-.5px;color:#797044;margin-top:9px}.gear-reveal>p{font-size:11px;color:#a39b77;margin-top:7px}.prediction-proof{border-left:1px solid #e3e8d7;padding:7px 0 7px 28px;min-width:0}.prediction-proof>h3{font-size:18px;margin:10px 0 15px}.proof-tree{margin:18px 0;overflow:auto;background:#f3f7e9;border:1px solid #e2e9d6;border-radius:8px}.proof-tree svg{width:100%;height:180px;min-width:310px;display:block}.proof-tree .tree-node text{font-size:15px}.decision-path{list-style:none;padding:0;margin:16px 0}.decision-path li{border:1px solid #e1e7d4;background:#f6f8ee;border-radius:6px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 11px;font-size:11px;color:#8b9e76}.decision-path strong{font-size:10px;color:#718d56;background:#e8f0d9;border-radius:4px;padding:4px 7px}.battle-arena{height:285px;border-radius:12px;overflow:hidden;position:relative;background:#dfe8cc;display:flex;align-items:flex-end;justify-content:space-between;padding:20px 15% 30px;isolation:isolate}.arena-landscape{position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 110%,#c6d7af 0 43%,transparent 44%),radial-gradient(ellipse at 14% 5%,#c6d5ac 0 20%,transparent 20.5%),radial-gradient(ellipse at 90% 1%,#becfa6 0 25%,transparent 25.5%)}.battle-arena:before{content:'';position:absolute;bottom:20px;left:10%;right:10%;height:45px;border-radius:50%;background:#e3d3ae;z-index:-1}.battle-hero,.battle-monster{display:flex;flex-direction:column;align-items:center;gap:10px;position:relative}.battle-hero>img{height:166px;object-fit:contain}.battle-monster>img{width:155px;height:166px;object-fit:contain;transform-origin:bottom}.battle-hero>span,.battle-monster>span{font-size:11px;padding:6px 11px;border-radius:5px;background:#f9faeae8;color:#607d4b;max-width:210px;text-align:center}.battle-gear{position:absolute;left:50%;top:130px;margin-left:-19px;transform:scale(1.6);animation:gear-throw 430ms var(--ease)}.battle-gear.settled{animation:none;opacity:.25}.battle-gear .gear i{box-shadow:0 3px 15px #5d754522}.battle-gear .gear img{width:28px;height:28px}@keyframes gear-throw{from{opacity:.8;transform:translateX(-140px) translateY(22px) rotate(-35deg) scale(1.5)}to{opacity:1;transform:translateX(130px) translateY(-4px) rotate(18deg) scale(1.6)}}.battle-monster.defeated>img{opacity:.25;transform:rotate(8deg) translateY(6px);transition:opacity 200ms ease,transform 200ms var(--ease)}.battle-impact{position:absolute;left:50%;top:24px;transform:translateX(-50%);padding:10px 18px;border-radius:7px;background:#f8f0cc;color:#8c7a42;border:1px solid #e4d6a1;font-family:Georgia,serif;font-size:23px;white-space:nowrap;animation:impact-reveal 200ms var(--ease)}.battle-impact.miss{background:#f0e3d4;color:#997856;border-color:#dfc6ab}@keyframes impact-reveal{from{opacity:0;transform:translateX(-50%) translateY(5px) scale(.97)}to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}.battle-evidence{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:25px 0 5px}.battle-evidence>div{background:#f4f7ea;border:1px solid #e0e8d1;border-radius:8px;padding:17px}.battle-evidence h3{font-size:17px;margin:10px 0}.battle-evidence p{font-size:12px;color:#8b9f77}.battle-hearts{color:#b3826b!important;font-size:22px!important;letter-spacing:4px}.settings-list>label{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #e4ead9}.settings-list strong{font-size:14px;font-weight:500}.settings-list small{display:block;color:#8b9f78;font-size:11px;margin-top:7px}.settings-list input{height:20px;width:20px;accent-color:#6d9254;flex-shrink:0}.settings-description{font-size:12px;color:#869b71;margin:23px 0}.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:10px}.help-list{padding-left:20px;color:#839b6c;font-size:13px;line-height:1.8}.help-list li{padding:8px 0 8px 9px}.help-list strong{color:#557b40;font-weight:500}.compact .modal-head h2{font-size:30px}.compact .modal-footer{justify-content:flex-end}.compact .modal-body>.muted{margin-top:20px}.location-options{display:flex;flex-direction:column;gap:10px}.location-options button{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid #dde6ce;background:#f4f7e9;border-radius:9px;text-align:left}.location-options button>span{width:43px;height:43px;background:#e5eed5;border-radius:50%;display:grid;place-items:center;color:#74975b;font-size:24px;flex-shrink:0}.location-options strong{font-size:14px;font-weight:500}.location-options p{font-size:11px;color:#92a47f;margin-top:7px}.pause-content{text-align:center;padding:27px}.pause-content>span{font-size:37px;color:#7a9663}.pause-content p{font-size:13px;color:#879d72;margin:20px 0}.settings-actions .text-button{color:#aa8564}
/* Input and accessibility polish. Desktop/laptop are the current build targets. */
:root{--muted:#607652}.muted,.modal-head p,.modal-kicker,.modal-footer>span,.character-story p,.character-story-note,.hero-choice>strong,.hero-choice>span:last-child,.inspect-details>p,.note-box,.feature-chips>span,.question-card>small,.trained-note p,.math-details,.current-creature>span,.tree-advice p,.scout-note .note-label,.journal-intro p,.gear-reveal>p,.gear-reveal>span,.decision-path li,.battle-evidence p,.settings-description,.settings-list small,.help-list,.location-options p,.pause-content p{color:#60764f}.feature-chips strong,.feature-chips strong,.feature-chips>span strong{color:#496c38}.page-heading p,.save-status,.quest-intro>p,.quest-sidebar .section-label,.equipment>p,.equipment-slot strong,.equipment-slot div>span,.wise-note p,.quest-steps li,.section-heading>span,.quest-sidebar>.text-button,main>footer{color:#6a795d}.question-card>small{font-size:10px}.hero-choice>span:last-child{font-size:12px}.modal-kicker{font-size:10px}.world-caption p{font-size:12px}.modal-footer .primary{font-size:13px}.question-card>span{font-size:13px}.inspect-details>p{font-size:15px}.notes-peek .note-label{font-size:9px}.teaching-tabs button{font-size:13px;color:#6c8258}.journal-intro p{font-size:13px}.decision-path li{font-size:12px}.math-details{font-size:12px}.feature-chips>span{font-size:11px}.tree-workspace-head>span:last-child{color:#5f784a}.settings-actions .text-button{color:#886342}.quest-steps li.done{color:#47693b}.chapter-tag{color:#61734f}.breadcrumb{color:#61744f}.nav-item{color:#65765b}.gear-reveal>span{font-size:11px}.tree-advice p{font-size:12px}.trained-note p{font-size:11px}body:has(dialog[open]){overflow:hidden}body[data-keyboard=true] dialog[open]{animation:none}body[data-keyboard=true] button{transition:none}body[data-reduced=true] *,body[data-reduced=true] *:before,body[data-reduced=true] *:after{animation:none!important;transition:none!important}
@media(hover:hover) and (pointer:fine){.primary:not(:disabled):hover{background:#35573e}.primary.gold:hover{background:#cea65e}.secondary:hover,.icon-button:hover{background:#e9f0dd}.question-card:hover{background:#edf3df;border-color:#abc28e}.hero-choice:hover{border-color:#a7bf8c}.text-button:hover,.travel-bar button:hover{color:#365b32}.world-landmark:hover .landmark-label{background:#fffbe4;color:#345f31}.location-options button:hover{background:#eaf2dd}}
@media(min-width:1550px){main{padding:0 48px}.world-viewport{height:650px}.page-heading{margin:38px 0 30px}.adventure-layout{grid-template-columns:minmax(0,1fr) 285px;gap:34px}h1{font-size:43px}.quest-intro h2{font-size:31px}.quest-intro>p{font-size:13px}.quest-steps li{min-height:43px;font-size:13px}.equipment>p,.wise-note p{font-size:11px}}
@media(max-width:1250px){.topbar{padding:0 28px;gap:25px}.topbar nav{gap:25px}.save-status{display:none}main{padding:0 28px}.adventure-layout{grid-template-columns:minmax(0,1fr) 235px;gap:22px}h1{font-size:33px}.quest-intro h2{font-size:26px}.chapter-tag{font-size:10px}.travel-bar{padding:0 16px;gap:7px}.travel-bar button{font-size:10px}.travel-bar>span:first-child{display:none}.modal-head h2{font-size:29px}.character-scene{grid-template-columns:220px minmax(0,1fr);gap:25px}.character-story h3{font-size:26px}.hero-choice{padding:17px}.chest-layout{grid-template-columns:minmax(0,1fr) 360px;gap:20px}.teaching-grid{grid-template-columns:minmax(0,1fr) 220px;gap:20px}.teaching-context{padding-left:19px}.question-options{gap:8px}.question-card{padding:12px 9px}.question-card>span{font-size:12px}.modal-footer>span{font-size:10px}.notes-peek .scout-note>img{width:28px}.world-caption{max-width:480px}.world-caption p{font-size:11px}}
@media(max-height:800px) and (min-width:1000px){.topbar{height:72px}.page-heading{margin:22px 0 19px}.page-heading h1{font-size:32px}.breadcrumb{margin-bottom:9px}.world-viewport{min-height:415px;height:calc(100dvh - 265px)}.quest-intro h2{font-size:25px;margin-top:10px}.quest-steps{margin:17px 0 14px}.quest-steps li{min-height:35px}.equipment{margin-top:20px;padding-top:17px}.wise-note{margin-top:18px}.modal-head{padding:19px 25px 17px}.modal-head h2{font-size:27px}.modal-body{padding:18px 25px}.modal-footer{padding:14px 25px}.tree-canvas{min-height:215px}.tree-canvas>svg{height:220px}.question-area{margin-top:16px}.math-details{margin-top:10px}.teaching-tabs{margin-bottom:16px}.current-creature>img{height:64px}.character-scene{min-height:290px}.hero-stage{height:145px}.hero-stage>img{height:143px}.chest-layout{min-height:330px}.chest-scene{height:335px}.gear-reveal{top:255px}.battle-arena{height:245px}}
@media(max-width:1000px){.topbar{gap:18px;padding:0 20px}.topbar nav{gap:18px}.nav-item{font-size:12px}.brand>span:last-child{font-size:24px}main{padding:0 20px}.adventure-layout{grid-template-columns:minmax(0,1fr) 210px;gap:19px}.chapter-tag{display:none}.quest-intro h2{font-size:24px}.quest-intro>p{font-size:11px}.quest-steps li{font-size:11px}.trail-button{font-size:10px;gap:6px}.travel-bar{gap:7px}.travel-bar .path-dot{display:none}.world-caption{right:18px;left:18px}.world-caption p{font-size:11px}.modal-head h2{font-size:27px}.teaching-context{display:none}.teaching-grid{grid-template-columns:1fr}.chest-layout{grid-template-columns:1fr 1fr}.character-scene{grid-template-columns:180px minmax(0,1fr)}.hero-choices{gap:12px}.hero-choice{padding:15px}.hero-choice-name{font-size:23px}.hero-stage{height:140px}.hero-stage>img{height:140px}.inspect-scene{gap:28px;padding:10px}.monster-portrait>img{height:200px}.inspect-details h3{font-size:29px}.modal-footer>span{max-width:330px}.primary,.secondary{padding:11px 15px;gap:8px}.modal-footer .primary{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Repaired sprites share a padded square canvas and a ground anchor at 90%. */
.monster-landmark{width:112px;height:112px}
.monster-landmark>img{width:112px;height:112px;object-fit:contain;transform:translateY(10%)}
.monster-landmark .enemy-mark{left:calc(50% - 12px)}
.monster-portrait>img{width:270px;height:270px;object-fit:contain;transform:translateY(10%)}
.battle-monster>img{width:190px;height:190px;object-fit:contain;transform:translateY(10%)}
.battle-monster.defeated>img{transform:translateY(10%) rotate(8deg) translateY(6px)}
