@font-face{font-family:ForestRound;src:local('Trebuchet MS');font-display:swap}
:root{font-family:ForestRound,'Trebuchet MS',sans-serif;color:#193c30;background:#103629;font-synthesis:none;--ink:#193c30;--paper:#fff8dc;--gold:#f5ce70;--green:#245c43}
*{box-sizing:border-box}body{margin:0}button,a,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:4px solid #5adeff;outline-offset:4px}img{max-width:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}[hidden]{display:none!important}
.forest-button,.forest-door>span,.forest-encounter>span{border:2px solid #715839;border-radius:20px 16px 21px 14px;background:var(--paper);box-shadow:0 4px 0 #42382366,0 5px 18px #102c254d;color:var(--ink);font-weight:800;padding:11px 18px;min-height:44px;text-align:center;line-height:1.25}
.forest-button:hover,.forest-door:hover>span{background:#fff0b4}.forest-button.primary{background:var(--green);border-color:#123d2c;color:#fff9de}.forest-button.ready{background:#e9bd52;box-shadow:0 0 0 5px #f7d77470,0 0 25px #ffed9c80;color:#193b2d}.forest-button small{font-size:.875rem;display:block;margin-top:4px;font-weight:500}
.forest-top{position:relative;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px clamp(14px,3vw,44px);background:linear-gradient(#0a291dd9,transparent);color:#fff8dd}.forest-top h1{font-family:Georgia,serif;font-size:clamp(1.25rem,2.4vw,2.25rem);margin:0;text-align:center;text-shadow:0 2px 6px #062518}.forest-top .forest-button{font-size:1rem}.forest-top strong{margin-left:7px;color:#77501a}.forest-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.forest-hub{position:relative;min-height:720px;height:100svh;overflow:hidden;isolation:isolate}.forest-hub .forest-background{object-position:center 45%}.forest-door{position:absolute;z-index:6;width:clamp(145px,17vw,260px);height:29%;display:flex;align-items:center;justify-content:flex-end;flex-direction:column}.forest-door>span{white-space:nowrap;order:1;font-size:clamp(.875rem,1.35vw,1.15rem);padding:9px 15px}.forest-door>img{width:clamp(80px,8vw,122px);height:125px;filter:drop-shadow(0 6px 5px #1c362752);transition:translate .2s}.forest-door:hover img{translate:0 -5px}.door-timber{left:6%;top:40%}.door-salvage{left:36%;top:43%}.door-canopy{right:5%;top:35%}.forest-player{position:absolute;left:47%;bottom:15%;width:clamp(112px,11vw,165px);aspect-ratio:1;background:none;border:0;padding:0;z-index:21;touch-action:none}.forest-player-stack{position:relative;display:block;width:100%;height:100%}.forest-player-stack>img#forest-player-image{width:100%;height:100%;object-fit:contain}.forest-player-stack .peblet-stage-accessory{position:absolute;pointer-events:none}.forest-player-stack .behind{z-index:0}.forest-player-stack .front{z-index:3}#forest-player-image{position:relative;z-index:1}
.forest-encounter{position:absolute;bottom:15%;right:10%;width:clamp(125px,16vw,230px);height:26%;background:transparent;border:0;z-index:12;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;padding:0}.forest-encounter img{height:calc(100% - 35px);width:100%;filter:drop-shadow(0 5px 5px #253c3470)}.forest-encounter span{font-size:.9rem;padding:8px 15px;min-height:36px;white-space:nowrap}.forest-neighbour{position:absolute;z-index:15;left:6%;bottom:18%;max-width:220px;display:flex;align-items:center;gap:7px;text-align:left;font-size:.95rem}.forest-neighbour img{height:60px;width:50px;flex-shrink:0}.forest-hub-footer{position:absolute;z-index:25;bottom:16px;left:3%;right:3%;display:flex;gap:20px;justify-content:space-between;align-items:flex-end}.movement-note{color:#fff8df;text-shadow:0 2px 4px #123629;background:#123c2aac;border-radius:20px;padding:8px 16px;font-size:.875rem;text-align:center}.mission-button{text-align:left}.forest-toast{position:fixed;z-index:100;bottom:20px;left:50%;translate:-50% 0;max-width:min(92vw,650px);background:#fff8dc;border:2px solid #b19a62;border-radius:16px;padding:14px 22px;box-shadow:0 8px 35px #102c2580;margin:0}
.forest-dialog{color:var(--ink);background:var(--paper);border:3px solid #577344;border-radius:28px;width:min(720px,94vw);max-height:90svh;padding:30px;box-shadow:0 20px 80px #051b22a1;overflow:auto}.forest-dialog::backdrop{background:#05241dba;backdrop-filter:blur(4px)}.forest-dialog h2{font-family:Georgia,serif;font-size:1.9rem;margin:0 32px 16px 0}.forest-dialog p{font-size:1.0625rem;line-height:1.55}.dialog-close{position:absolute;right:13px;top:13px;border:0;background:#e8dec2;width:40px;height:40px;border-radius:50%;font-size:1.5rem;color:var(--ink)}.dialog-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:22px}.dialog-portrait{width:180px;height:180px;float:left;margin:0 22px 15px 0}.encounter-portrait{display:block;width:250px;height:250px;margin:0 auto}.forest-choice{display:block;width:100%;text-align:left;border:2px solid #b6bd98;background:#fffdf0;color:var(--ink);padding:14px 18px;margin:9px 0;border-radius:13px;min-height:48px}.forest-choice[aria-pressed=true]{background:#d4e6b2;border-color:#426c45}.forest-choice:disabled{opacity:.7}.forest-choice img{width:56px;height:56px;vertical-align:middle;margin-right:12px}.journal-tasks{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.journal-task{padding:12px;border:1px solid #9aa77f;border-radius:15px;text-align:center;background:#f2ecd3;display:flex;flex-direction:column;align-items:center;gap:6px}.journal-task img{width:80px;height:80px}.journal-task small{font-size:.875rem}.journal-creatures{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}.journal-creatures button{border:1px solid #b4bc9b;background:#fffcf0;border-radius:14px;width:106px;min-height:120px;color:var(--ink)}.journal-creatures img{height:80px;width:90px;display:block;margin:auto}.forest-feedback{min-height:1.5em;color:#7a381e;font-weight:700;line-height:1.4}.forest-dialog .forest-feedback:empty{min-height:0}.forest-celebration{position:absolute;inset:0;z-index:19;pointer-events:none;background:radial-gradient(ellipse at 50% 65%,#fff4a530,transparent 60%)}.forest-celebration .crowd-member{position:absolute;width:9%;height:19%;bottom:10%;filter:drop-shadow(0 5px 4px #18392760);animation:forest-cheer 1.2s ease-in-out infinite alternate;animation-delay:var(--delay)}.forest-celebration .spark{position:absolute;color:#ffed92;font-size:30px;animation:forest-spark 3s ease-in-out infinite;animation-delay:var(--delay)}@keyframes forest-cheer{to{translate:0 -12px;rotate:3deg}}@keyframes forest-spark{0%,100%{opacity:.25;scale:.6}50%{opacity:1;scale:1.5}}
.forest-job{min-height:100svh;position:relative;isolation:isolate;background:#244a33}.forest-job>.forest-background{object-position:center;position:fixed;z-index:-2;filter:brightness(.82)}.forest-job .forest-top{min-height:76px}.forest-job-title{display:flex;align-items:center;justify-content:center;gap:12px}.forest-job-title h1{font-size:1.5rem}.forest-job-title button{width:42px;height:42px;min-height:42px;padding:5px}.job-order{margin:0 auto 12px;width:calc(100% - 40px);max-width:1150px;display:flex;align-items:center;gap:16px;border:2px solid #9aa575;border-radius:20px;background:#fff8dff5;padding:10px 22px;min-height:106px;box-shadow:0 7px 25px #102a2360}.job-order img{height:88px;width:80px;flex-shrink:0}.job-order h2{font-size:1.3rem;margin:4px 0;font-weight:800;line-height:1.4}.job-order p{margin:0;font-size:.9rem;color:#526445}.shift-counter{margin-left:auto;text-align:center;min-width:135px;align-self:center;border-left:1px solid #b4b792;padding-left:20px}.shift-counter strong{display:block;font-size:1.05rem;margin-bottom:8px}.shift-dots{display:flex;justify-content:center;gap:7px}.shift-dots i{display:block;width:12px;height:12px;border:2px solid #718755;border-radius:50%}.shift-dots i.done{background:#4c7849}.job-surface{position:relative;width:calc(100% - 40px);max-width:1200px;min-height:430px;margin:0 auto}.job-footer{width:calc(100% - 40px);max-width:1150px;margin:12px auto 0;padding:12px 18px 18px;background:#fff8dff5;border-radius:18px 18px 0 0;display:flex;align-items:center;gap:16px;justify-content:space-between;min-height:80px}.job-footer p{margin:0;line-height:1.35;font-weight:700;font-size:1rem;max-width:70%}.job-footer small{display:block;font-weight:400;margin-top:5px}.order-success{background:#235d45;color:#fffbe4;text-align:center;padding:28px;border:2px solid #dbd593;border-radius:25px;max-width:600px;margin:60px auto}.order-success img{height:145px;display:block;margin:auto}.order-success h2{font:1.8rem Georgia,serif}.order-success p{font-size:1.1rem;line-height:1.4}
.timber-surface{display:flex;justify-content:center;flex-direction:column;min-height:430px;padding:40px clamp(14px,4vw,60px);background:#fff7daed;border:3px solid #a98a59;border-radius:24px}.measure-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;font-size:1rem}.measure-caption strong{padding:7px 12px;border-radius:12px;background:#eeddb2}.measuring-area{position:relative;height:200px;isolation:isolate;margin:0 15px}.measure-board{position:absolute;top:25px;height:75px;right:0;border:3px solid #72562e;background:#b99254 var(--pw-forest-plank,url('/forest/object-plank.webp')) repeat-x center/auto 100%;border-radius:9px;box-shadow:0 8px 7px #50361e44}.measure-board::before{content:'Start';position:absolute;top:-29px;left:-19px;font-weight:800;background:#f6eed4;padding:2px 6px;border-radius:4px}.measure-ruler{position:absolute;top:110px;left:0;right:0;height:70px;background:#f5d690;border:1px solid #8b683b;border-radius:5px}.ruler-mark{position:absolute;top:-10px;translate:-50% 0;width:calc(100% / 21);min-height:82px;border:0;background:transparent;padding:22px 0 0;font-size:1rem;font-weight:800;color:#4c351d;z-index:2}.ruler-mark::before{content:'';position:absolute;left:50%;top:10px;height:20px;width:1px;background:#704f2b}.ruler-mark[aria-pressed=true]{background:#63b8ba66;border-radius:10px}.ruler-mark:disabled{opacity:1;color:#9d8761}.cut-line{position:absolute;top:10px;height:102px;width:3px;background:#b33224;box-shadow:0 0 0 3px #fff9e9aa;pointer-events:none}.cut-line:after{content:'✂';position:absolute;top:-17px;left:-12px;font-size:27px}.measure-buttons{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:8px}.measure-buttons output{font-weight:800;min-width:100px;text-align:center}.measure-buttons button{min-width:48px}.measure-pay{font-size:.95rem;text-align:center;margin:20px 0 0}

.canopy-surface{display:grid;grid-template-columns:270px 1fr;gap:16px;min-height:485px}.build-tools{padding:16px;background:#fff8dff5;border:2px solid #a3af80;border-radius:20px}.build-tools h3{font-size:1rem;margin:0 0 10px}.dig-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}.dig-tile{min-height:33px;border:2px solid #7c603c;border-radius:6px;background:#a5804e;color:#fff8d7;padding:0;font-size:1.05rem;line-height:1.4}.dig-tile.root{background:#355c38;border-color:#426339;font-size:.8rem}.dig-tile.dug{background:#f1e5c6;border-color:#b7a582}.dig-tile img{width:26px;height:26px;vertical-align:middle}.inventory{font-size:.875rem;display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 15px}.inventory span{display:flex;align-items:center;gap:3px}.inventory img{height:25px;width:25px}.materials{display:grid;grid-template-columns:1fr 1fr;gap:6px}.material{padding:6px;border:2px solid #b6b48b;border-radius:10px;background:#fffcf0;color:var(--ink);font-size:.875rem;font-weight:700;min-height:65px}.material img{height:32px;width:40px;display:block;margin:auto}.material[aria-pressed=true]{border-color:#2e7151;background:#d8e6b3}.build-tools .forest-button{width:100%;font-size:.9rem;margin-top:9px;padding:9px}.build-tools .forest-button[aria-pressed=true]{background:#e9bd52}.build-controls{display:flex;gap:8px;align-items:center;margin-top:12px}.build-controls label{font-size:.9rem;font-weight:700}.build-controls select{padding:9px 6px;border:1px solid #7c9068;border-radius:9px;background:#fffdf0;color:var(--ink);min-height:40px;flex:1}.build-board{position:relative;background:linear-gradient(#13372a10,#172c2966);border:2px solid #bfc78b99;border-radius:22px;min-height:485px;overflow:hidden}.build-board svg{width:100%;height:100%;min-height:465px;display:block}.build-board svg [role=button]{cursor:pointer}.build-board svg [role=button]:hover .tile-top,.build-board svg [role=button]:focus .tile-top{stroke:#fff798;stroke-width:4}.build-board .build-view-label{position:absolute;top:15px;left:15px;right:15px;text-align:center;color:white;text-shadow:0 1px 4px #09251b;font-weight:700;margin:0;pointer-events:none}.build-rotate{position:absolute;right:12px;bottom:12px}.build-coordinate{font-size:14px;fill:#fffbe1;pointer-events:none}.pay-options{display:flex;gap:10px;justify-content:center;margin:20px 0;flex-wrap:wrap}.pay-options button[aria-pressed=true]{background:#d5e6b7;border-color:#356b42}.pay-split{display:flex;justify-content:space-around;border-block:1px solid #b8bb94;padding:16px;text-align:center;gap:12px}.pay-split strong{font-size:1.75rem;display:block}
@media(min-width:1700px){.forest-hub .forest-background{object-fit:fill}.forest-door{top:45%}.door-canopy{top:38%}}
@media(max-width:850px){.forest-top{padding:12px;gap:8px}.forest-top .forest-button{padding:10px;font-size:.9rem}.forest-hub{min-height:660px}.forest-door{width:155px}.door-timber{left:2%}.door-salvage{left:35%}.door-canopy{right:2%}.forest-door>img{height:100px}.forest-neighbour{bottom:24%;left:3%;max-width:170px;font-size:.875rem;padding:8px}.forest-encounter{right:7%;bottom:15%;height:24%}.movement-note{display:none}.forest-hub-footer{gap:10px}.forest-hub-footer .forest-button{padding:11px 13px;font-size:.9rem}.job-order{width:calc(100% - 20px);padding:10px;gap:10px}.job-order h2{font-size:1.1rem}.job-order img{height:65px;width:58px}.shift-counter{min-width:110px;padding-left:10px}.job-surface,.job-footer{width:calc(100% - 20px)}.canopy-surface{grid-template-columns:220px 1fr;gap:8px}.build-tools{padding:10px}.job-footer p{font-size:.95rem}.job-footer{padding:12px}.forest-job-title h1{font-size:1.2rem}.timber-surface{padding:25px 15px}.ruler-mark{font-size:.875rem}.forest-dialog{padding:25px}}
@media(max-width:560px){.forest-hub{height:850px}.forest-hub .forest-background{object-position:52% center}.forest-top{flex-wrap:wrap}.forest-top h1{order:-1;width:100%;font-size:1.6rem}.forest-job-title{order:-1;width:100%}.forest-job-title h1{width:auto;order:0}.forest-door{width:125px;height:23%}.forest-door>span{font-size:.875rem;padding:8px}.door-timber{top:37%;left:1%}.door-salvage{top:46%;left:33%}.door-canopy{top:31%;right:1%}.forest-player{left:37%;bottom:13%}.forest-encounter{right:2%;bottom:19%;height:20%;width:125px}.forest-neighbour{left:2%;bottom:25%;width:128px;flex-direction:column;font-size:.875rem}.forest-neighbour img{height:45px}.forest-hub-footer{bottom:14px}.forest-hub-footer .forest-button{max-width:53%;font-size:.875rem}.job-order{flex-wrap:wrap}.job-order>div:nth-child(2){flex:1}.shift-counter{width:100%;border:0;padding:6px 0 0;display:flex;align-items:center;justify-content:center;gap:12px}.shift-counter strong{margin:0}.canopy-surface{display:flex;flex-direction:column}.build-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dig-panel{grid-row:span 3}.build-board{height:470px}.build-tools h3{grid-column:1/-1}.build-controls{margin:0}.materials{grid-column:2}.build-tools .forest-button{margin:0}.job-footer{align-items:stretch;flex-direction:column}.job-footer p{max-width:100%}.measure-caption{font-size:.875rem;flex-wrap:wrap}.ruler-mark{font-size:.875rem}.measuring-area{margin-inline:6px}.dialog-portrait{float:none;display:block;margin:0 auto 15px}.journal-tasks{grid-template-columns:1fr}.journal-task{flex-direction:row;text-align:left}.journal-task img{width:55px;height:55px}.forest-dialog h2{font-size:1.5rem}.forest-dialog{padding:22px}.forest-job-title button{margin-left:8px}}
@media(prefers-reduced-motion:reduce){html:not([data-motion="full"]) *,html:not([data-motion="full"]) *:before,html:not([data-motion="full"]) *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

html[data-motion="reduced"] .forest-celebration *{animation:none!important}

.canopy-vista{display:block;width:100%;height:auto!important;max-height:400px;border-radius:18px;object-fit:contain}.saved-tower{background:linear-gradient(#8ab4a0,#315840);border-radius:18px;overflow:hidden;height:390px}.saved-tower svg{width:100%;height:100%}.forest-neighbour small{display:block;margin-top:5px;font-weight:500}

/* The village is a place to explore; names remain available to assistive technology. */
.forest-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important}
.forest-quiet-top{background:none;position:absolute;top:0;left:0;right:0;pointer-events:none}.forest-quiet-top a{pointer-events:auto}.forest-icon-button{display:grid;place-items:center;width:50px;height:50px;padding:0!important;border-radius:50%;font-size:26px!important}.forest-quiet-top .forest-wallet{min-width:66px;border-radius:24px;padding:12px 17px}.forest-wallet strong{margin:0;color:#523c22}.forest-journal-button{position:absolute;bottom:20px;left:24px;z-index:25;background:#fff8dce8}.forest-hub .forest-door{display:block;width:auto;height:auto;border-radius:35%;border:0;background:transparent}.forest-hub .door-timber{left:4%;right:auto;top:27%;bottom:29%;width:25%}.forest-hub .door-salvage{left:35%;right:auto;top:37%;bottom:29%;width:25%}.forest-hub .door-canopy{right:2%;left:auto;top:7%;bottom:30%;width:30%}.forest-door:hover,.forest-door:focus-visible{background:radial-gradient(ellipse,#fff1a72c,transparent 70%);outline:0;box-shadow:inset 0 0 30px #f3df7440}.forest-door:focus-visible{outline:3px solid #fff0a4;outline-offset:-8px}.journal-memories{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.journal-memories figure{margin:0;text-align:center}.journal-memories img{display:block;width:90px;height:90px}.journal-memories figcaption{font-size:1rem}
.forest-trail-scene{position:relative;height:100svh;min-height:650px;overflow:hidden;isolation:isolate}.story-visitor{position:absolute;left:18%;bottom:17%;width:37%;height:60%;object-fit:contain;animation:forest-arrive 1.6s ease-out both;filter:drop-shadow(0 8px 6px #243f2855)}.story-player{left:8%;bottom:10%;width:clamp(100px,12vw,170px);pointer-events:none}body[data-forest-page="story"] .forest-dialog{position:fixed;left:auto;right:3%;top:auto;bottom:5%;margin:0;width:43%;max-width:680px;max-height:84svh;padding:28px;background:#fff8dcf7}body[data-forest-page="story"] .forest-dialog::backdrop{background:transparent;backdrop-filter:none}body[data-forest-page="story"] .forest-dialog h2{font-size:1.5rem}body[data-forest-page="story"] .forest-dialog p{font-size:1.125rem}body[data-forest-page="story"] .forest-choice{padding:11px 14px}body[data-forest-page="story"] .dialog-actions{margin-top:18px}body[data-forest-wish="light"] .forest-trail-scene{box-shadow:inset 0 0 120px #ffe59e}body[data-forest-wish="rain"] .forest-background{filter:brightness(1.15)}@keyframes forest-arrive{from{opacity:0;translate:-55px 0}to{opacity:1;translate:0 0}}
@media(max-width:800px){body[data-forest-page="story"] .forest-dialog{width:49%;right:2%;padding:23px}.story-visitor{left:9%;width:42%}.story-player{left:4%;bottom:7%}}
@media(max-width:560px){.forest-hub .door-timber{top:34%;bottom:36%;left:0;width:29%}.forest-hub .door-salvage{top:41%;bottom:25%;left:30%;width:35%}.forest-hub .door-canopy{top:20%;bottom:43%;right:0;width:32%}.forest-quiet-top{flex-wrap:nowrap}.forest-journal-button{bottom:16px;left:14px}.forest-trail-scene{min-height:720px}.story-visitor{left:22%;top:9%;bottom:auto;width:58%;height:38%}.story-player{left:3%;top:32%;bottom:auto;width:85px}body[data-forest-page="story"] .forest-dialog{width:94%;right:3%;bottom:2%;max-height:50svh;padding:24px}body[data-forest-page="story"] .forest-dialog h2{font-size:1.3rem}body[data-forest-page="story"] .forest-dialog p{font-size:1rem}}
html[data-motion="reduced"] .story-visitor{animation:none}
