:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#263d37;background:#263d37;font-size:16px}*{box-sizing:border-box}body{margin:0;overflow:hidden}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #eab55c;outline-offset:3px}.world{height:100dvh;min-height:0;position:relative;overflow:hidden;isolation:isolate}.backdrop,.world-shade{position:absolute;inset:0}.backdrop{background-position:center;background-size:cover;transition:background-image .35s}.world-shade{background:linear-gradient(180deg,rgba(18,45,39,.56),transparent 26%,transparent 63%,rgba(21,42,35,.42));pointer-events:none}.hud{position:absolute;z-index:3;top:0;left:0;right:0;padding:22px 28px;color:#fff;display:flex;justify-content:space-between;align-items:flex-start;text-shadow:0 2px 10px #1b332d}.hud h1{font:700 clamp(23px,3vw,38px)/1 Georgia,serif;margin:5px 0}.eyebrow{font-size:.65rem;letter-spacing:.15em;font-weight:800;text-transform:uppercase}.location{font-size:.75rem;letter-spacing:.1em}.icon-button,.dock button{border:1px solid #ffffff80;background:#f9f4e6e8;color:#29433b;border-radius:14px;box-shadow:0 5px 18px #213e352c}.icon-button{width:44px;height:44px;font-size:1.3rem}.stage{position:absolute;inset:0;z-index:1}.character{position:absolute;z-index:2;bottom:5%;right:8%;height:min(67vh,650px);width:min(28vw,330px);border:0;background:none;filter:drop-shadow(0 14px 8px #263a3070);transition:transform .2s}.character:hover{transform:translateY(-5px)}.character img{width:100%;height:100%;object-fit:contain;object-position:bottom}.character span{position:absolute;bottom:3%;left:50%;transform:translateX(-50%);background:#fffae9;color:#30483d;border-radius:20px;padding:5px 13px;font-size:.75rem;font-weight:800;box-shadow:0 3px 10px #263a3044}.table{position:absolute;left:12%;bottom:9%;width:53%;height:26%;filter:drop-shadow(0 18px 8px #203b2c70)}.table:before{content:'';position:absolute;inset:30% 2% 47%;background:linear-gradient(#bc8350,#8d5c36);border:4px solid #694428;border-radius:50% 50% 15% 15%;box-shadow:inset 0 6px #e6bc82}.table:after{content:'';position:absolute;left:12%;right:12%;top:48%;height:49%;border-left:15px solid #765034;border-right:15px solid #765034;transform:perspective(200px) rotateX(-7deg)}.prop{position:absolute;z-index:2;border:0;transition:transform .2s;filter:drop-shadow(0 5px 3px #422d1c70)}.prop:hover{transform:translateY(-7px) rotate(-2deg)}.folder{left:17%;bottom:45%;width:43%;height:44%;background:#d7ad70;border:4px solid #a57843;border-radius:5px 10px 5px 5px;transform:rotate(-5deg);color:#60472f;font:bold 1rem Georgia}.folder:before{content:'';position:absolute;top:-17%;left:5%;width:39%;height:19%;background:#dfbd88;border-radius:6px 6px 0 0}.folder:after{content:'VILLAGE PLANS';display:block;font:700 .58rem system-ui;letter-spacing:.12em;margin-top:6px}.tag{right:10%;bottom:42%;width:26%;height:32%;background:#f6ecd3;border:2px solid #a38b68;border-radius:3px;transform:rotate(8deg);font-size:.7rem;font-weight:800;color:#624d35}.tag:before{content:'◌';display:block}.object-label{position:absolute;bottom:-26px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fff9e8;padding:4px 10px;border-radius:12px;font:700 .7rem system-ui;color:#315043}.map-prop,.box-prop,.shelf-prop{position:absolute;left:15%;bottom:17%;width:46%;height:27%;border:0;border-radius:8px;background:#ead8aa;box-shadow:0 12px 0 #876443,0 23px 15px #233d2e77;transform:rotate(-3deg);color:#4d583c;font:700 clamp(1rem,2vw,1.5rem) Georgia}.map-prop:before{content:'⌁  ·  ⌁  ·  ⌁';display:block;font-size:2rem;color:#a2a775}.box-prop{background:#b78855;border:8px solid #805c38;transform:rotate(2deg)}.box-prop:before{content:'▱';display:block;font-size:3rem;color:#e9c78b}.quest{position:absolute;z-index:4;left:24px;bottom:24px;display:flex;align-items:center;gap:12px;padding:10px 11px 10px 14px;background:#fffaf0ed;border:1px solid #fff;border-radius:16px;box-shadow:0 7px 24px #17372d42;max-width:min(440px,55vw)}.quest-icon{background:#d9e6bd;color:#49613b;border-radius:50%;padding:10px}.quest div{display:grid;gap:3px}.quest .eyebrow{color:#6c8068}.quest strong{font-size:.9rem}.quest button,.primary{border:0;background:#345d4d;color:white;border-radius:10px;padding:10px 14px;font-weight:750;white-space:nowrap}.dock{position:absolute;right:24px;bottom:24px;z-index:4;display:flex;gap:8px}.dock button{padding:12px 15px;font-weight:750}.dock small{font-size:.7rem}.speech{position:absolute;z-index:5;left:50%;bottom:12%;transform:translateX(-50%);width:min(540px,80vw);padding:18px 48px 18px 22px;background:#fff9e9;border:2px solid #e6d5ad;border-radius:16px;box-shadow:0 12px 30px #1e352b55}.speech strong{font-family:Georgia;font-size:1.1rem}.speech p{margin:.35rem 0 0;line-height:1.45}.speech button{position:absolute;right:12px;top:8px;border:0;background:transparent;font-size:1.6rem}.intro{position:absolute;inset:0;z-index:8;background:linear-gradient(90deg,rgba(18,40,34,.88),rgba(22,45,37,.5) 43%,transparent 80%);display:flex;align-items:center;padding:8vw;color:#fff9e8}.intro[hidden]{display:none}.intro-content{max-width:460px;text-shadow:0 3px 18px #172d27}.intro h2{font:700 clamp(58px,8vw,105px)/.9 Georgia,serif;letter-spacing:-.05em;margin:20px 0}.intro h2 em{color:#e8ca86;font-weight:400}.intro p{font:1.1rem/1.5 Georgia;max-width:320px}.intro .primary{margin-top:14px;padding:16px 22px;background:#f5e7c2;color:#29443a;box-shadow:0 6px 20px #122c2570}.intro small{display:block;margin-top:12px}dialog{width:min(760px,92vw);max-height:min(84dvh,800px);padding:0;border:0;border-radius:20px;background:#fbf5e8;color:#293f37;box-shadow:0 25px 80px #142c23a0}dialog::backdrop{background:#142b2488;backdrop-filter:blur(3px)}.window-shell{display:flex;flex-direction:column;max-height:min(84dvh,800px)}.window-head{display:flex;justify-content:space-between;align-items:start;padding:22px 26px 12px;background:#fbf5e8;border-bottom:1px solid #e5dac4}.window-head h2{font:700 2rem Georgia;margin:4px 0}.window-head .eyebrow{color:#718073}.close{flex:none;border:0;background:#e8e1d2;border-radius:50%;width:42px;height:42px;font-size:1.7rem;line-height:1}.window-body{overflow:auto;padding:22px 26px 28px;line-height:1.5;overscroll-behavior:contain}.scroll-hint{padding:5px 26px 9px;text-align:right;font-size:.7rem;color:#6e7d6b;border-top:1px solid #e5dac4}.window-body h2{font:700 1.7rem Georgia}.window-body h3{font:700 1.3rem Georgia}.window-body button{border:1px solid #a9b49d;background:#f8fbef;color:#304c3c;border-radius:9px;padding:9px 12px;margin:3px;font-weight:700}.window-body button:hover{background:#deebd5}.window-body .offer{background:#f9e7af;border-color:#c79d53}.paper,.plan{background:#fffdf5;border:1px solid #e0d5bc;border-radius:8px;padding:14px;margin:10px 0;box-shadow:0 3px 8px #66563918}.paper p{margin:.4rem 0}.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.plan-map{height:110px;margin:8px 0;background:linear-gradient(30deg,transparent 47%,#d1bd92 48%,#d1bd92 53%,transparent 54%),#e5ecd6;border:1px solid #b9c9a6;border-radius:5px;display:flex;align-items:center;justify-content:space-around;font-size:2rem}.slots{display:flex;gap:6px;flex-wrap:wrap}.slot{background:#e5eada;padding:8px;border-radius:6px}.map{display:grid;grid-template-columns:repeat(3,1fr);max-width:390px;aspect-ratio:1;background:#c4b288;gap:3px;padding:8px;border:7px solid #987a4e;border-radius:6px}.cell{position:relative;background:#e6ecd8;padding:5px;font-weight:800}.cell small{display:block;font-weight:400}.token{position:absolute;right:12px;bottom:5px;color:#ce674e;font-size:2rem}.next-square{float:right;color:#345e42}.tray-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tray{border-radius:10px;padding:12px;background:#dce9d7;min-height:110px}.tray.blue{background:#dbe7ef}.tray.amber{background:#f2e3bd}.pieces{display:block;min-height:38px;letter-spacing:3px;overflow-wrap:anywhere}.pool{padding:14px;background:#c99a64;border:6px solid #957047;border-radius:8px;margin:12px 0;color:#fff}.trail-help{background:#fff0c2;padding:12px;border-radius:8px}.completed{background:#e1efda;padding:12px;border-radius:8px}.directions{display:flex;flex-wrap:wrap;gap:5px}.adult pre{white-space:pre-wrap;font-size:.8rem}.scene-hint{position:absolute;left:20%;bottom:5%;color:white;text-shadow:0 2px 5px #243f30;font-size:.8rem}#message{position:absolute;top:100px;right:20px;z-index:6;background:#fff4d4;border-radius:8px}#message:empty{display:none}@media(max-width:650px){.hud{padding:14px}.hud h1{font-size:23px}.hud .eyebrow{font-size:.55rem}.character{right:0;width:42vw;height:51vh;bottom:13%}.table{left:2%;width:69%;bottom:20%;height:22%}.map-prop,.box-prop,.shelf-prop{left:6%;width:57%;bottom:28%;height:21%}.quest{left:10px;bottom:75px;max-width:calc(100vw - 20px);padding:8px}.quest strong{font-size:.8rem}.quest-icon{padding:7px}.dock{bottom:12px;right:10px}.dock button{padding:10px}.intro{padding:8%;background:linear-gradient(90deg,#172f29e8,#1b382ca8 70%,#1b382c40)}.intro h2{font-size:64px}dialog{width:100vw;max-width:100vw;max-height:92dvh;margin:auto 0 0;border-radius:18px 18px 0 0}.window-shell{max-height:92dvh}.window-head{padding:15px 18px 10px}.window-head h2{font-size:1.5rem}.window-body{padding:16px 18px 24px}.plan-grid{grid-template-columns:1fr}.speech{bottom:26%;width:90vw}.tray-grid{grid-template-columns:1fr}.tray{min-height:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
body:has(.intro:not([hidden])) .hud,body:has(.intro:not([hidden])) .quest,body:has(.intro:not([hidden])) .dock,body:has(.intro:not([hidden])) .speech{visibility:hidden}.window-feedback{background:#edf3e5;border-left:4px solid #83a27e;padding:10px 13px;border-radius:4px;margin:0 0 16px}.folder{box-shadow:5px -5px 0 #f8ecd0,9px -9px 0 #ddc59d}.tag{box-shadow:2px 3px 0 #cab997}.tag:after{content:'';position:absolute;top:-18px;left:40%;width:24px;height:20px;border:2px solid #d8cfb8;border-bottom:0;border-radius:50% 50% 0 0;transform:rotate(-25deg)}
body:has(.intro:not([hidden])) .stage,body:has(.intro:not([hidden])) .character{visibility:hidden}.intro-cast{position:absolute;inset:0;pointer-events:none}.intro-cast img{position:absolute;object-fit:contain;object-position:bottom;filter:drop-shadow(0 14px 8px #152d2580)}.intro-priya{height:70%;right:8%;bottom:6%;z-index:3}.intro-jonah{height:53%;right:31%;bottom:12%;z-index:1}.intro-dara{height:55%;right:0;bottom:14%;z-index:2}.intro-content{position:relative;z-index:4}.quest .quest-icon{white-space:normal;padding:10px;border:0;border-radius:50%;background:#d9e6bd;color:#49613b}.map-prop{padding:8px;background:#ead8aa;border:6px solid #e9d7aa}.map-prop:before,.box-prop:before{content:none}.mini-map{width:100%;height:100%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:2px;background:#b3ae83;padding:3px}.mini-map i{font-style:normal;background:#dbe5c9;display:grid;place-items:center;font-size:clamp(1rem,2vw,2rem);color:#729274}.box-prop{height:19%;background:linear-gradient(0deg,#976c42,#bd9060);border:6px solid #805c38;box-shadow:0 12px 0 #6e4a2f,0 22px 18px #20362b77}.box-lid{position:absolute;inset:-21% -4% 50%;border:5px solid #765130;background:repeating-linear-gradient(0deg,#c69b69 0 12px,#b88b5e 13px 15px);border-radius:5px 5px 0 0}.box-clasp{position:absolute;top:31%;left:47%;color:#ecd18b;font-size:1.5rem}.box-interior{display:none}.box-prop.is-open .box-lid{transform:perspective(300px) rotateX(48deg);transform-origin:top;top:-45%;bottom:60%}.box-prop.is-open .box-interior{position:absolute;inset:3%;display:flex;justify-content:space-around;background:#7c5739;border:5px solid #e0bf8b}.box-interior i{flex:1;margin:4px;background:#9caf8e;color:#416142;font:normal 1.1rem system-ui;display:grid;place-items:center}.box-interior i:nth-child(2){background:#9eb4bc;color:#395b71}.box-interior i:nth-child(3){background:#dfbd79;color:#99632c}.box-prop.is-open .box-clasp{display:none}.box-prop.is-finished{box-shadow:0 0 0 5px #f8e9aa,0 12px 0 #6e4a2f,0 22px 18px #20362b77}@media(max-width:650px){.intro-cast img{bottom:11%}.intro-priya{height:45%;right:-6%}.intro-jonah{height:35%;right:32%}.intro-dara{height:36%;right:8%}.intro-content{align-self:flex-start;margin-top:8vh}.intro h2{font-size:58px}.intro p{max-width:250px}.map-prop{height:24%}.box-prop{height:16%}}
.confirmed-cell{outline:4px solid #c47a42;outline-offset:-4px}.window-body .tray-face{display:block;width:100%;text-align:left;margin:0;padding:0;border:0;background:transparent;color:inherit}.window-body button.tray-face:hover{background:#ffffff66}.tray-face small{display:block;font-size:.72rem;color:#526b56}.comparison div{display:grid;grid-template-columns:70px 1fr;align-items:center;font-size:1.05rem}.comparison span{letter-spacing:2px}.comparison em{font-style:normal;opacity:.65}.village-board{position:absolute;inset:-10% 1% 4%;display:flex;align-items:center;justify-content:space-around;background:linear-gradient(15deg,transparent 47%,#d4c49a 48% 56%,transparent 57%),#dfe9ce;border:5px solid #ae8d5f;overflow:hidden}.village-board i{font-style:normal;font-size:clamp(1.1rem,2vw,2rem)}.village-board small{position:absolute;bottom:2px;left:15%;font-size:.6rem}.village-token{position:absolute;bottom:15%;left:21%;color:#c85c48;font-size:1.3rem;transition:left .4s,bottom .4s}.village-token.has-moved{left:46%;bottom:41%}.box-prop.is-finished .box-lid,.box-prop.is-finished .box-clasp{display:none}
.speech{top:17%;bottom:auto;left:45%;width:min(500px,45vw)}.plan-map{padding:0;overflow:hidden}.plan-map svg{width:100%;height:100%}.plan-map svg text{font:700 8px system-ui;fill:#526a4e;letter-spacing:.04em}@media(max-width:650px){.speech{top:18%;bottom:auto;left:50%;width:90vw}}
.route-layout{display:grid;grid-template-columns:minmax(240px,1fr) minmax(200px,.8fr);gap:18px;align-items:start}.window-body .map .cell{margin:0;border:0;border-radius:0;text-align:left;min-width:0;position:relative;background:#e6ecd8;padding:5px;font-weight:800}.window-body .map .cell:hover{background:#d4e5c6}.landmark{position:absolute;left:35%;top:30%;font-size:1.6rem}.map .token{z-index:2;text-shadow:0 2px 2px #fff;font-size:2.2rem}.route-controls p:first-child{margin-top:0}.tray-surface{position:relative;min-height:100px;border:5px solid #bca783;border-radius:50% 50% 12px 12px;background:#eee3c9;box-shadow:inset 0 5px 12px #51452e55;overflow:hidden}.window-body .tray-face{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;margin:0;background:transparent;display:flex;align-items:end;justify-content:center;padding:5px}.tray-face span{font-size:.64rem;color:#4b6152}.counter-row{position:relative;z-index:1;pointer-events:none;display:flex;flex-wrap:wrap;gap:4px;padding:8px;min-height:65px}.window-body .counter,.counter{pointer-events:auto;display:inline-grid;place-items:center;margin:0;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#84a878;color:#41633f;box-shadow:0 3px 0 #526d48,0 4px 5px #3b392d55;font-size:1rem}.window-body .counter.blue,.counter.blue{border-radius:4px;background:#8bafc5;color:#466c84;box-shadow:0 3px 0 #52758a,0 4px 5px #3b392d55}.window-body .counter.amber,.counter.amber{background:#e7bb66;color:#976a30;clip-path:polygon(50% 0,100% 100%,0 100%);border-radius:0;box-shadow:none}.window-body .counter:hover{filter:brightness(1.12)}@media(max-width:650px){.route-layout{grid-template-columns:1fr}.map{max-width:100%;width:min(100%,360px)}}
@media(max-width:650px){.intro-cast img{bottom:3%;max-width:34vw;object-fit:contain}.intro-jonah{left:1%;right:auto;height:32%}.intro-dara{left:34%;right:auto;height:33%}.intro-priya{left:65%;right:auto;height:36%}}
.map{position:relative;isolation:isolate;gap:0;padding:0;overflow:hidden}.map-art{position:absolute;inset:0;width:100%;height:100%;z-index:-1}.window-body .map .cell{background:transparent;border:1px solid #6c806230;padding:3px;color:#314c3e}.window-body .map .cell:hover{background:#ffffff38}.map .cell small{display:inline-block;position:absolute;bottom:3px;left:3px;background:#f8f5e2d9;padding:1px 3px;font-size:.62rem;border-radius:3px}.map .cell>.next-square{position:absolute;right:3px;top:3px;background:#fff4c7;padding:2px;font-size:.6rem}.map .token{position:absolute;right:12px;bottom:16px;width:20px;height:27px;background:linear-gradient(#e77f60,#b94835);border:2px solid #993e2e;border-radius:50% 50% 40% 40%;box-shadow:0 4px 0 #813b2b,0 7px 7px #65473070}.map .token:before{content:'';position:absolute;left:3px;top:-8px;width:10px;height:10px;background:#ed997a;border:2px solid #993e2e;border-radius:50%}.map .token i{display:none}
.character span{bottom:28%}@media(max-height:450px) and (min-width:651px){.quest{top:76px;bottom:auto;left:14px}.character{height:68vh;bottom:2%}.hud{padding:10px 16px}.hud h1{font-size:25px}.speech{top:23%}}
/* Physical work surfaces: the readable detail lives in the inspection window. */
.table{left:13%;bottom:6%;width:53%;height:32%;filter:none}.table:before,.table:after{display:none}.table-art{position:absolute;width:100%;height:100%;inset:0;overflow:visible}.world-object{position:absolute;z-index:2;padding:0;border:0;background:transparent;filter:drop-shadow(3px 5px 3px #3d2d1d55);transition:transform .18s}.world-object:hover{transform:translateY(-4px)}.world-object svg{width:100%;height:100%;overflow:visible}.world-object .object-label{opacity:0;transition:opacity .15s;bottom:-15px}.world-object:hover .object-label,.world-object:focus-visible .object-label{opacity:1}.folder-object{left:29%;top:9%;width:24%;height:23%;min-height:44px}.tag-object{left:57%;top:14%;width:14%;height:19%;min-width:44px;min-height:44px}.map-object{left:29%;top:5%;width:31%;height:27%;min-height:44px}.box-object,.shelf-object{left:34%;top:-6%;width:29%;height:40%;min-height:44px}.window-body .tray{background:linear-gradient(#dac9a6,#c4b18b);border:1px solid #aa9168;box-shadow:0 4px 0 #927b59,inset 0 2px #f6ecd6}.window-body .tray.blue,.window-body .tray.amber{background:linear-gradient(#dac9a6,#c4b18b)}.tray-surface{border:7px solid #a68b62;border-radius:14px;background:linear-gradient(145deg,#d7ccad,#eee5cc);box-shadow:inset 0 4px 8px #66523866,0 2px 1px #fff8}.counter-row{padding:8px}.window-body .counter.amber,.counter.amber{clip-path:none;border-radius:3px;background:transparent;box-shadow:none;color:#bd863b;font-size:1.8rem;filter:drop-shadow(0 3px 1px #77542c)}
@media(max-width:650px){.table{left:0;bottom:16%;width:76%;height:30%}.folder-object{left:26%;width:27%}.tag-object{left:57%;width:15%}.map-object{left:27%;width:35%}.box-object,.shelf-object{left:32%;width:34%}}
@media(max-height:450px) and (min-width:651px){.table{bottom:3%;height:42%;width:45%;left:18%}}
.table{left:17%;bottom:5%;width:43%;height:36%}.folder-object{left:29%;top:16%;width:24%;height:15%}.tag-object{left:57%;top:17%;width:10%;height:15%}.map-object{left:29%;top:13%;width:31%;height:19%}.box-object.on-table{left:35%;top:4%;width:27%;height:28%}.box-object.under-table{left:59%;top:65%;width:27%;height:30%}.box-object.display-object{left:32%;top:11%;width:34%;height:23%}.empty-table{position:absolute;left:12%;top:15%;width:76%;height:22%;border:0;background:transparent}.empty-table .object-label{opacity:0}.empty-table:hover .object-label,.empty-table:focus-visible .object-label{opacity:1}.shelf-assembly{position:absolute;left:20%;bottom:5%;width:37%;height:34%}.shelf-assembly>svg{width:100%;height:100%}.shelf-kit{left:29%;top:0;width:29%;height:29%}.shelf-empty{position:absolute;left:10%;top:16%;width:80%;height:18%;border:0;background:transparent}.shelf-empty .object-label{opacity:0}.shelf-empty:hover .object-label,.shelf-empty:focus-visible .object-label{opacity:1}.pool>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.pool-counter{width:21px;height:21px;border-radius:50%;background:#99b587;border:2px solid #6f8b60;box-shadow:0 2px 1px #694a2e}.pool-counter.p1{border-radius:3px;background:#98b5c7;border-color:#6c8fa3}.pool-counter.p2{background:#e0b869;border-color:#ad8543;clip-path:polygon(50% 0,100% 100%,0 100%);border-radius:0}
@media(max-width:650px){.table{left:0;bottom:14%;width:75%;height:34%}.folder-object{left:29%;top:16%;width:25%;height:15%}.tag-object{left:58%;top:17%;width:10%;height:15%}.map-object{left:28%;top:13%;width:34%;height:19%}.box-object.on-table{left:35%;top:4%;width:28%;height:28%}.box-object.under-table{left:59%;top:65%;width:28%;height:30%}.shelf-assembly{left:5%;width:58%;height:30%;bottom:15%}}
@media(max-height:450px) and (min-width:651px){.table{left:18%;bottom:3%;width:42%;height:48%}.shelf-assembly{height:45%;bottom:3%}}
.display-companion{left:23%;top:11%;width:27%;height:22%}.box-object.travelling-object.on-table{left:55%;width:25%}@media(max-width:650px){.display-companion{left:23%;width:27%}.box-object.travelling-object.on-table{left:55%;width:25%}}
/* All counters are the same wooden disks; the tray names identify the groups. */
.table{height:54%;bottom:.5%}.shelf-kit.shelf-staged{top:40.25%}.shelf-kit.shelf-final{top:1.58%}.pool-counter,.pool-counter.p1,.pool-counter.p2,.window-body .counter,.window-body .counter.blue,.window-body .counter.amber,.counter,.counter.blue,.counter.amber{width:25px;height:25px;border-radius:50%;clip-path:none;background:radial-gradient(circle at 35% 28%,#f0d3a4,#bf9060);border:2px solid #977046;box-shadow:0 3px 0 #80603d,0 4px 5px #3b392d55;filter:none;color:transparent;font-size:0}.window-body .counter:hover{filter:brightness(1.1)}
@media(max-width:650px){.table{height:34%;bottom:14%}}@media(max-height:450px) and (min-width:651px){.table{height:48%;bottom:3%}}

/* Keep the wooden disk at the same physical scale while giving touch a larger target. */
.window-body .counter,.window-body .counter.blue,.window-body .counter.amber{
  position:relative;width:44px;height:44px;min-width:44px;min-height:44px;
  padding:0;margin:0;background:transparent;border:0;box-shadow:none;overflow:visible;
}
.window-body .counter::before{
  content:'';position:absolute;width:25px;height:25px;left:9px;top:9px;
  border-radius:50%;background:radial-gradient(circle at 35% 28%,#f0d3a4,#bf9060);
  border:2px solid #977046;box-shadow:0 3px 0 #80603d,0 4px 5px #3b392d55;
}
.close{min-width:44px;min-height:44px}
.model-grid{display:grid;grid-template-columns:repeat(3,minmax(70px,1fr));gap:.35rem;max-width:420px;margin:1rem auto;background:#ae8a5f;padding:.6rem;border-radius:.5rem}.model-grid button{min-height:76px;background:#eee4c8;color:#354c3e}.model-grid small{display:block;text-transform:capitalize}.completion-badge{position:absolute;top:6rem;left:1rem;z-index:5;background:#fff0c8;color:#334e3b;border:2px solid #9f7949;border-radius:2rem;padding:.6rem 1rem}.completion-badge[hidden]{display:none}.ending-scene{position:relative;min-height:260px;background:linear-gradient(#d9e9cf,#b6cda3);border-radius:1rem;overflow:hidden}.ending-cast,.ready-cast{display:flex;align-items:end;justify-content:center}.ending-cast img{width:25%;height:190px;object-fit:contain;object-position:bottom}.ending-table{display:flex;align-items:center;justify-content:center;background:#b78555;padding:.5rem}.ending-table svg{width:150px;height:90px}.ending-table strong,.ready-cast strong{background:#f8eac7;padding:.5rem;border-radius:.25rem}.ready-cast{flex-wrap:wrap;background:#dce9d0;border-radius:.75rem}.ready-cast img{height:110px;max-width:25%;object-fit:contain}.ready-cast p{width:100%;text-align:center}.model-grid button[aria-pressed=true],button[aria-pressed=true]{outline:3px solid #4d7451}
.model-grid button{position:relative;min-height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center}.landmark-art{width:52px;height:44px;display:block}.model-pawn{display:block;width:17px;height:17px;border-radius:50%;background:#b67a49;border:3px solid #6f4b31;box-shadow:inset 0 3px #ddb083}.ending-table{flex-direction:column;background:linear-gradient(#ae8054,#91613d);padding:1rem}.ending-table .miniature-board{width:min(100%,420px);height:auto;filter:drop-shadow(0 8px 5px #513b2c66)}.ending-table strong{position:relative;margin:.5rem;background:#f8ebc8;padding:.6rem 1rem;border:2px solid #99784d;border-radius:.2rem}.ending-scene{background:linear-gradient(#d6e7cc,#b3cba4)}
.ending-table .shelf-ending{width:min(100%,420px);height:auto;filter:drop-shadow(0 8px 5px #513b2c66)}
@media (max-height:450px) and (min-width:651px){.completion-badge{top:1rem;left:auto;right:5rem}}
body:has(.intro:not([hidden])) .completion-badge{visibility:hidden}
@media(max-height:450px){.intro{overflow-y:auto;align-items:flex-start;padding:18px 6%;overscroll-behavior:contain}.intro-content{align-self:flex-start;margin:0;flex:none}.intro h2{font-size:clamp(38px,12vh,58px);margin:10px 0}.intro p{margin:8px 0;font-size:1rem}.intro .primary{margin-top:6px;padding:10px 16px}.intro-cast{position:fixed;inset:0;overflow:hidden}.intro-cast img{max-height:75vh;max-width:32vw;bottom:0}}

/* Keep the deal target separate from the removable counters. */
.tray-surface{min-height:125px;padding-bottom:48px}.window-body .tray-face{inset:auto 0 0;height:44px;min-height:44px;z-index:2;align-items:center;justify-content:center;background:#f5ead3;border-top:1px solid #aa9168}.tray-face span{font-size:.8rem;font-weight:700;color:#304c3c}

.village-memory{display:block;width:min(100%,660px);height:auto;border-radius:.65rem;margin:auto}.memory-controls{display:flex;gap:.4rem;justify-content:center;flex-wrap:wrap;margin:.6rem 0}.memory-controls button{min-height:44px}

dialog header .adventure-audio-controls{flex:none;flex-wrap:nowrap;gap:5px}dialog header .adventure-audio-button{width:auto;min-width:44px}dialog header #close-book{min-width:44px;min-height:44px}

/* Close-up objects in the two Pavilion jobs. */
.engineering-window .pv-plans {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-bottom:.5rem}
.engineering-window .pv-plan {display:flex;flex-direction:column;align-items:flex-start;gap:.3rem;margin:0;padding:.45rem;min-width:0;text-align:left;background:#fcf0ce;color:#382f22;border:2px solid #b09a74;border-radius:5px;box-shadow:1px 3px 0 #d1bd97}
.engineering-window .pv-plan[aria-pressed=true]{border:3px solid #456947;box-shadow:0 0 0 2px #bdd0a7}
.pv-plan svg {width:100%;height:auto}.pv-plan span{font-size:.84rem;font-weight:400}
.pv-ticket,.pv-paper{border:1px solid #ad936b;border-radius:4px;background:repeating-linear-gradient(#faf0d8 0 25px,#ddd6b733 26px),#fbf0d4;padding:.8rem;margin:.6rem 0}
.pv-ticket{border-left:6px dotted #b59a73}.pv-ticket-face{display:flex;align-items:center;gap:.8rem}.pv-ticket-face svg{width:46%;max-width:15rem}
.pv-witness{display:flex;align-items:center;gap:1rem;background:#edf0de;padding:.7rem;border-radius:8px}.pv-witness img{height:clamp(115px,25dvh,210px);max-width:38%;object-fit:contain}.pv-witness p{max-width:34ch}
.pv-rubbings,.pv-rack,.pv-map-tools{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap}
.pv-rubbings svg,.pv-rack svg{display:block;width:42px;height:37px}.pv-rubbings span{font-weight:650;color:#514938}
.engineering-window .pv-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));position:relative;isolation:isolate;width:100%;max-width:30rem;aspect-ratio:1.25;min-height:196px;margin:.2rem 0 .45rem;background:#dce6cc;border:4px solid #a99266;border-radius:6px;overflow:hidden}
.engineering-window .pv-model{border:6px solid #946d48;background:#e8ddbf}
.pv-map .pv-paths{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}
.engineering-window .pv-map .pv-cell{display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;gap:0;margin:0;padding:0;text-align:center;color:#28392c;background:transparent;border:1px solid #ab9d755c;border-radius:0;min-width:0;min-height:0;line-height:1}
.engineering-window .pv-map button.pv-cell{border:1px solid #7b8058;background:#fffdf417}
.engineering-window .pv-map button.pv-cell:hover,.engineering-window .pv-map button.pv-cell:focus-visible{background:#fff9d67a;outline:3px solid #655730;outline-offset:-3px}
.pv-cell b{position:absolute;top:3px;left:3px;font:700 .69rem/1.1 system-ui;background:#fffae5dd;padding:2px;border-radius:2px}
.pv-cell small{position:absolute;bottom:2px;background:#fbf4d9ed;color:#263d32;border-radius:4px;font:.72rem/1.1 system-ui;padding:1px 3px}
.pv-symbols{display:flex;position:relative;justify-content:center;align-items:center;width:90%;height:57%}.pv-symbols svg{min-width:0;width:43%;height:100%;max-height:49px;margin:0}
.pv-symbols .pv-pawn{position:absolute;right:10%;top:30%;width:13px;height:20px;border-radius:50% 50% 35% 35%;border:2px solid #703d2b;background:#bb6847;box-shadow:0 2px 0 #724630}
.pv-north{display:block;margin:.2rem 0;color:#3c523c}.engineering-window .pv-rack .pv-mini{display:flex;align-items:center;gap:3px;flex:1 0 auto;margin:0;padding:.25rem .4rem;font-size:.88rem}.pv-rack .pv-mini svg{width:30px;height:30px}
.pv-pool,.pv-tray,.pv-transfers,.pv-case{border:2px solid #a8895e;background:#eee1bd;border-radius:8px;padding:.35rem .55rem;margin-bottom:.45rem;box-shadow:inset 0 2px 3px #7c66472b}
.pv-pool span,.pv-pieces,.pv-slots{display:flex;align-items:center;gap:3px;flex-wrap:wrap;min-height:19px}
.pv-trays{background:linear-gradient(100deg,#ae8357,#c69d6d 46%,#98764f);border:2px solid #805c40;border-radius:8px;padding:.45rem;margin-bottom:.4rem}.pv-tray:last-child{margin:0}
.pv-tray-head{display:flex;align-items:center;justify-content:space-between;gap:.25rem}.pv-tray-head strong{font-size:.9rem}.pv-tray-0{background:#dce7ca}.pv-tray-1{background:#d7e4e7}.pv-tray-2{background:#f3e1b3}
.pv-counter,.pv-slots i{display:inline-block;width:19px;height:18px;border-radius:50%;border:2px solid #776242;background:#cca77a;box-shadow:inset 1px 2px 1px #fff6,0 2px 0 #826844}
.pv-c0{border-color:#59734f;background:#a2bc84}.pv-c1{border-color:#527383;background:#94b9c6;border-radius:4px}.pv-c2{background:#bd8849;border-color:#765a38;clip-path:polygon(50% 0,100% 100%,0 100%)}
.pv-slots i{width:19px;height:16px;border:1px dashed #766245;background:transparent;box-shadow:none}.pv-row-hand{display:flex}.engineering-window .pv-row-hand button{width:44px;height:44px;margin:0 1px;padding:0;font-size:1.4rem}
.pv-case{display:grid;justify-items:center;max-width:24rem}.pv-case>svg{width:min(90%,240px);height:auto}
.pv-card-symbols{font-size:1.55rem;color:#50664e;letter-spacing:.3rem}
.engineering-window .pv-transfers button{font-size:.84rem}.engineering-window .pv-map-tools button{margin:0}
@media(max-width:650px){.engineering-window .pv-map{max-width:25rem}.pv-map .pv-cell b{font-size:.65rem}.pv-rack{gap:3px}.engineering-window .pv-rack .pv-mini{font-size:.8rem}.pv-tray-head strong{font-size:.84rem}}
@media(prefers-reduced-motion:reduce){.world-object{transition:none}}
.engineering-window .pv-pieces.pv-take{display:flex;align-items:center;gap:3px;flex-wrap:wrap;width:100%;min-height:44px;margin:0;padding:.15rem 0;background:transparent;border:0}
.engineering-window .pv-pieces.pv-take:hover{background:#fff5}
.pv-trays .pv-counter,.pv-sample .pv-counter{position:relative;border-radius:50%;clip-path:none;background:#dbbe8d;border-color:#a58759}
.pv-trays .pv-counter:after,.pv-sample .pv-counter:after{content:'';position:absolute;inset:2px;background:#62805a;border-radius:50%}
.pv-trays .pv-c1:after,.pv-sample .pv-c1:after{background:#597f96;border-radius:1px}
.pv-trays .pv-c2:after,.pv-sample .pv-c2:after{background:#a16d35;clip-path:polygon(50% 0,100% 100%,0 100%);border-radius:0}
.pv-map-how{display:block;line-height:1.2;margin-bottom:.4rem}
.pv-sample>div{display:flex;gap:.5rem;align-items:center}.pv-sample b{min-width:3.5rem;font-size:.85rem}
.engineering-window .pv-itineraries button{display:block;width:100%;margin:.2rem 0}
.adventure-audio-controls{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;justify-content:flex-end}
.adventure-audio-controls .adventure-audio-button,.adventure-intro-audio .adventure-audio-button{min-height:44px;padding:.45rem .65rem;border:1px solid #867957;border-radius:.55rem;background:#fff3d6;color:#253a32;font:600 .84rem/1.25 system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.adventure-audio-button:focus-visible,.adventure-intro-audio summary:focus-visible{outline:3px solid #e2ad54;outline-offset:2px}
.adventure-intro-audio{margin-top:.55rem;text-align:inherit}
.adventure-intro-audio .adventure-audio-button{margin-bottom:.35rem}
.adventure-intro-audio details{max-width:36ch;font:inherit;text-align:inherit}
.adventure-intro-audio summary{cursor:pointer;width:fit-content}
.adventure-intro-audio details p{margin:.25rem 0}
@media(max-width:430px){.adventure-audio-controls .adventure-audio-button{padding:.35rem .45rem;font-size:.74rem}}
.engineering-window { box-sizing:border-box; width:min(94vw,62rem); margin:auto; max-width:94vw; max-height:91dvh; padding:0; color:#283e32; background:#fbf6e7; border:3px solid #705e40; border-radius:15px; overflow:auto; font:1rem/1.45 system-ui,sans-serif; }
.engineering-window::backdrop {background:#132219ac}
.engineering-window header {position:sticky;inset:auto;top:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#f8f0da;color:#324b3a;padding:.6rem 1rem;z-index:1;border-bottom:1px solid #ab9b78;text-shadow:none}
.engineering-window h2 {font:600 clamp(1.25rem,3vw,1.9rem)/1.1 Georgia,serif;margin:.15rem 0}
.engineering-window h3 {margin:.65rem 0 .25rem}
.engineering-window button,.engineering-legacy {cursor:pointer;min-width:44px;min-height:44px;height:auto;position:static;margin:.18rem;padding:.5rem .8rem;border:1px solid #887958;border-radius:8px;background:#fffcf2;color:#263f32;font:600 .96rem/1.2 system-ui,sans-serif;box-shadow:none}
.engineering-window button:focus-visible,.engineering-window summary:focus-visible {outline:3px solid #355996;outline-offset:2px}
.engineering-window [aria-pressed=true],.engineering-window .primary {background:#375640;color:#fff;border-color:#254730}
.engineering-window .ew-body {padding:1rem;overflow:visible}
.engineering-window .ew-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.3rem;align-items:start}
.engineering-window fieldset {margin:0 0 .55rem;padding:.4rem .55rem .55rem;min-width:0;border:1px solid #bdad90;border-radius:7px}
.engineering-window legend {font-weight:700;padding:0 .35rem}
.engineering-window figure {margin:0 0 .6rem}
.engineering-window figure>svg {display:block;width:100%;height:auto;max-height:46dvh}
.engineering-window figcaption,.engineering-window .ew-note {padding:.45rem .65rem;background:#eaf0df;border-radius:6px}
.engineering-window details {margin:.65rem 0}
.engineering-window summary {cursor:pointer;font-weight:600;padding:.4rem}
.engineering-window p {margin:.5rem 0 .75rem}
.engineering-window .ew-map {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;background:#ad956d;padding:4px;border-radius:7px}
.engineering-window .ew-map>span {display:grid;align-content:center;min-height:3.9rem;background:#f4e8c8;padding:.25rem;font-size:.85rem}
.engineering-window .ew-map .marked {background:#d2dfb9}
.engineering-window .ew-plan {display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.engineering-window .ew-plan>div {border-radius:6px;background:#e9dfbf;padding:.6rem}
.engineering-window .ew-plan svg {width:65px;height:52px;display:block}
.engineering-window .ew-row {margin:.5rem 0;background:#e9dfc3;padding:.4rem;border-radius:6px}
.engineering-window .ew-row b {display:inline-block;min-width:5.8rem}
.engineering-window .ew-row span {font:bold 1.1rem monospace;letter-spacing:.05em}
.engineering-window.ew-finale{width:min(96vw,52rem);max-height:94dvh;overflow:hidden}
.engineering-window.ew-finale[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.engineering-window.ew-finale .ew-body{overflow:auto}
.engineering-window.ew-finale header{background:#324937;color:#fff8df;border-color:#273e2d}
.engineering-window .ew-mem{max-width:45rem;margin:auto;color:#253c31;text-align:left}
.engineering-window .ew-headline{font:600 clamp(1.65rem,4.1vw,2.6rem)/1.04 Georgia,serif;color:#254632;margin:.12rem 0 .4rem;text-wrap:balance}
.engineering-window .ew-mem>p{max-width:64ch;margin:0 0 .7rem}
.engineering-window .ew-mem figure{overflow:hidden;border:1px solid #a8946d;border-radius:.65rem;background:#e9ddba}
.engineering-window .ew-film{display:grid;place-items:center;background:#e9ddba}
.engineering-window .ew-film>svg,.engineering-window .ew-film>.show-plate{display:block;width:100%;height:auto;max-width:100%;max-height:49dvh;margin:0;border-radius:0}
.engineering-window .ew-film>.show-plate{width:min(100%,73.5dvh)}
.engineering-window .ew-mem .ew-caption{background:#f0ead7;color:#304331;border-radius:0;line-height:1.35}
.engineering-window .ew-playback{margin:.25rem 0 .5rem}
.engineering-window .ew-ending-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;background:#fbf6e7;padding:.35rem .7rem;border-top:1px solid #b9ab8c}
.engineering-window .ew-exit{display:inline-flex;align-items:center;box-sizing:border-box;min-height:44px;margin:.18rem;padding:.5rem .8rem;border:1px solid #887958;border-radius:8px;background:#fffcf2;color:#263f32;font:600 .96rem/1.2 system-ui,sans-serif;text-decoration:none}
.engineering-window .ew-exit:focus-visible{outline:3px solid #355996;outline-offset:2px}
.engineering-window .ew-optional{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-block:.6rem}
.engineering-window .ew-optional h3{font:600 1rem/1.2 Georgia,serif;margin:0}
.engineering-window .ew-mem details svg{width:100%;height:auto;max-height:46dvh}
@media(max-width:480px){.engineering-window .ew-ending-actions{gap:.2rem}.engineering-window .ew-ending-actions>*{flex:1 1 0;min-width:0;margin:.06rem;padding:.42rem .25rem;text-align:center;justify-content:center;font-size:.85rem}}
.engineering-window .ew-ending-actions[hidden]{display:none}
.engineering-window .ew-status {display:block;margin:0 0 .8rem;background:#e4ecd8;color:#233f2f;padding:.65rem .9rem;border-left:4px solid #65875f}
.engineering-window .ew-status:empty {display:none}
.engineering-window .ew-actions {display:flex;gap:.25rem;flex-wrap:wrap;align-items:center}
.engineering-window .ew-values {font-variant-numeric:tabular-nums}
@media (max-width:680px){.engineering-window .ew-grid{grid-template-columns:1fr;gap:.3rem}.engineering-window .ew-body{padding:.7rem}.engineering-window figure>svg{max-height:31dvh}.engineering-window header{padding:.35rem .65rem}}
@media (prefers-reduced-motion:reduce){.engineering-window *{animation:none!important;transition:none!important}}
.engineering-window header>span{display:flex;flex:none;align-items:center;gap:.25rem}
.engineering-window header h2{min-width:0;overflow-wrap:anywhere}
@media(max-width:360px){.engineering-window header button{padding-inline:.38rem;font-size:.84rem}}

@media(max-height:500px) and (min-width:621px){
 .engineering-window .ew-mem{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);column-gap:.75rem;align-items:start}
 .engineering-window .ew-headline{grid-column:1;grid-row:1}
 .engineering-window .ew-mem>p{grid-column:1;grid-row:2}
 .engineering-window .ew-mem>figure{grid-column:2;grid-row:1/span 4}
 .engineering-window .ew-chimes,.engineering-window .ew-playback{grid-column:1}
 .engineering-window .ew-optional,.engineering-window .ew-mem>details{grid-column:1/-1}
 .engineering-window .ew-film>svg,.engineering-window .ew-film>.show-plate{max-height:36dvh}
 .engineering-window .ew-film>.show-plate{width:min(100%,54dvh)}
}
:root { --wrenfield-navigation-height: 44px; }
.wrenfield-player-nav {
  min-height: var(--wrenfield-navigation-height); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 0 .8rem; padding-inline: .5rem;
  background: #f7efda; color: #294b3b; box-sizing: border-box;
  font: 700 14px/1.2 system-ui, sans-serif;
}
.wrenfield-player-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: .45rem;
  color: inherit; text-decoration: underline; text-underline-offset: .2em;
}
.wrenfield-player-nav a:focus-visible { outline-offset: -3px; }
dialog header:has(> .wrenfield-dialog-nav) { flex-wrap: wrap; }
.wrenfield-dialog-nav { flex: 1 0 100%; }
body:has(> .wrenfield-player-nav) > .world { height: calc(100dvh - var(--wrenfield-navigation-height)); }
body:has(> .wrenfield-player-nav) > .intro {
  top: var(--wrenfield-navigation-height);
  height: calc(100dvh - var(--wrenfield-navigation-height));
}
@media (max-width: 245px) {
  :root { --wrenfield-navigation-height: 88px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  body:has(> .wrenfield-player-nav) > .intro { padding-block: .5rem; }
  body:has(> .wrenfield-player-nav) > .intro .intro-copy { min-height: 0; padding-block: .25rem; }
  body:has(> .wrenfield-player-nav) > .intro h2 { font-size: clamp(2rem, 9dvh, 3rem); margin: .3rem 0; }
  body:has(> .wrenfield-player-nav) > .intro p { margin: .45rem 0; }
  body:has(> .wrenfield-player-nav) > .intro .primary { margin: .5rem 0; }
}
