:root{--ink:#243d38;--muted:#69756d;--paper:#f7f5eb;--card:#fffdf5;--sage:#dfe8dc;--green:#254b47;--gold:#c49a50;--line:#d6dccf;--rust:#a6533b;font-family:Georgia,'Times New Roman',serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 8% 10%,#e1e9df 0,transparent 50%),var(--paper)}button,input,textarea,select{font:inherit;color:inherit}button,select{cursor:pointer}button{border:1px solid var(--line);background:#fffdf5;border-radius:10px;padding:11px 15px;transition:background .15s,transform .15s}button:hover{background:#e8eee0}button:active{transform:translateY(1px)}button:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #cba65b;outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}header{max-width:1400px;margin:auto;padding:25px 34px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-family:system-ui,sans-serif;letter-spacing:.17em;font-size:15px;font-weight:750;display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none}.brand small{font-size:9px;font-weight:500;letter-spacing:.12em;border-left:1px solid var(--line);padding-left:14px}.seal{display:grid;place-items:center;background:var(--green);color:#fff;border-radius:50%;width:35px;height:35px;font-family:Georgia,serif;font-size:21px;letter-spacing:0}.edition{font:10px system-ui,sans-serif;letter-spacing:.13em;color:var(--muted)}main{max-width:1400px;margin:auto;padding:0 34px}.intro{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:35px 0 26px}.intro>div:first-child{max-width:720px}.eyebrow{font:10px system-ui,sans-serif;letter-spacing:.15em;font-weight:700;color:#667f6a;margin:0 0 10px}h1{font-weight:400;font-size:clamp(34px,4vw,55px);letter-spacing:-.035em;line-height:1.04;margin:0 0 15px}p{line-height:1.6}.intro p:not(.eyebrow){font-size:16px;margin:0;max-width:650px;color:#50615a}.genie{display:flex;align-items:center;min-width:290px;font-size:15px;line-height:1.55}.genie .sprite{width:115px;height:115px;flex-shrink:0}.genie em{color:#8b6d39}.sprite{display:inline-block;background-image:url('figures.webp');background-size:300% 200%;background-repeat:no-repeat;aspect-ratio:1;flex-shrink:0}.s0{background-position:0 0}.s1{background-position:50% 0}.s2{background-position:100% 0}.s3{background-position:0 100%}.s4{background-position:50% 100%}.s5{background-position:100% 100%}.rooms{display:flex;gap:10px;margin-bottom:22px}.rooms button{flex:1;padding:15px 20px;display:flex;align-items:center;gap:14px;text-align:left;background:transparent;border-color:#ccd5c7}.rooms button.active{background:var(--green);border-color:var(--green);color:var(--paper)}.rooms button span{font:11px system-ui,sans-serif;opacity:.7}.rooms button strong{font-weight:400;font-size:17px}.rooms button.done::after{content:'✓';margin-left:auto;color:#bc9a56}.layout{display:grid;grid-template-columns:minmax(0,1fr) 405px;gap:23px;align-items:start}.chamber,.desk,.receipts{border:1px solid var(--line);border-radius:18px;background:var(--card);padding:23px;box-shadow:0 8px 28px #24483b05;min-width:0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}h2{font-size:26px;font-weight:400;letter-spacing:-.02em;margin:0}.badge{background:#eef0e4;border:1px solid #d8dfc9;border-radius:30px;padding:8px 12px;font:11px system-ui,sans-serif;max-width:180px;text-align:center;line-height:1.4}.hero-strip{display:flex;align-items:center;gap:13px;border-block:1px solid #e4e8dd;padding:10px 0;margin-bottom:20px}.hero-strip .sprite{width:63px;height:63px}.hero-strip strong{font-size:15px}.hero-strip p{font:11px/1.6 system-ui,sans-serif;margin:4px 0;color:var(--muted)}.hero-strip .muted{margin-left:auto}.muted{font:11px/1.5 system-ui,sans-serif;color:var(--muted)}.scene{display:grid;grid-template-columns:1fr 1fr;gap:12px}.zone{border:1px solid #d9dfcf;border-radius:12px;padding:12px;background:#f2f3e9;min-width:0}.zone.here{border-color:#94ab91;box-shadow:inset 0 0 0 1px #94ab91}.zone h3{font:10px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.08em;margin:0 0 10px;display:flex;justify-content:space-between}.zone.here h3:after{content:'HERO HERE';font-size:8px;color:#6a826b}.entities{display:grid;grid-template-columns:1fr 1fr;gap:6px}.entity{padding:9px 5px;min-height:92px;border-radius:9px;background:#fffdf6;border:1px solid #e0e2d6;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;min-width:0}.entity .sprite{width:58px;height:58px}.entity .glyph{display:grid;place-items:center;font-size:25px;color:#8f794e;height:39px}.entity .name{font:10px/1.35 system-ui,sans-serif;word-break:break-word}.entity .state{font:8px system-ui,sans-serif;color:#678265}.entity.spent{background:#edf1e6}.entity.spent .sprite{opacity:.6;filter:saturate(.5)}.inspection{border-left:3px solid #c5a56c;padding:1px 0 1px 15px;margin-top:21px;min-height:128px}.inspection h3{font-weight:400;font-size:17px;margin:0 0 7px}.inspection p:last-child{font-size:13px;margin:0;color:#53645a;white-space:pre-wrap;overflow-wrap:anywhere}.inspection .eyebrow{font-size:8px;margin-bottom:7px}details{border-top:1px solid var(--line);margin-top:18px;padding-top:14px;font:12px/1.6 system-ui,sans-serif}summary{cursor:pointer;font-weight:600}details p{font-size:12px;color:#607061}code{background:#eaf0e5;padding:2px 4px;border-radius:4px;overflow-wrap:anywhere}label{display:block;font:10px system-ui,sans-serif;color:#637565;margin-bottom:7px}.desk textarea{display:block;width:100%;resize:vertical;min-height:175px;max-height:400px;border:1px solid #ccd5c5;border-radius:10px;padding:13px;background:#fbfaf2;font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;color:#234438}.editor-note{font:10px/1.5 system-ui,sans-serif;color:#7a8375;margin:8px 0 13px}.tools{display:flex;flex-wrap:wrap;gap:7px}.tools button{font:11px system-ui,sans-serif;padding:11px 10px}.primary{background:var(--green)!important;border-color:var(--green)!important;color:white!important;display:flex;align-items:center;justify-content:space-between;gap:22px}.primary:hover{background:#32615a!important}.tools .primary{flex:1;font-weight:600}.builder-row{display:grid;grid-template-columns:92px 1fr;gap:8px;margin-top:13px}select{display:block;width:100%;background:#fffdf7;border:1px solid #d1dac9;border-radius:7px;padding:9px 7px;font:11px system-ui,sans-serif;margin:5px 0 9px;min-width:0}.builder label{font-size:9px}.builder>button{width:100%;display:flex;justify-content:space-between;font:11px system-ui,sans-serif}.aux{display:flex;gap:8px;margin-top:17px}.aux button{flex:1;font:11px system-ui,sans-serif}.hint{font:12px/1.6 system-ui,sans-serif;color:#71613b;white-space:pre-wrap}.result{border-radius:10px;background:#edf1e7;border:1px solid #d5dec9;padding:13px;font:12px/1.6 system-ui,sans-serif}.result.fail{background:#fbefe8;border-color:#e6cbbc;color:#854c35}.result.win{background:#e6eddf;border-color:#a2b88e;color:#3b573b}.next{width:100%;margin-top:11px;font:12px system-ui,sans-serif}.next[hidden]{display:none}.receipts{margin-top:24px;margin-bottom:28px}#log{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}#log li{border:1px solid #dce2d4;padding:15px;border-radius:10px;min-width:0}#log .cmd{font:11px/1.5 ui-monospace,SFMono-Regular,monospace;color:#284c45;overflow-wrap:anywhere}#log .reading{font:12px/1.65 system-ui,sans-serif;margin:8px 0;color:#677567;white-space:pre-wrap}#log .events{font:12px/1.6 system-ui,sans-serif;color:#3f5d4b;margin-bottom:0}#log .flaw{font:11px/1.6 system-ui,sans-serif;color:#9b5d39;border-top:1px solid #e6dccd;padding-top:7px}.empty{font:12px system-ui,sans-serif;color:#70816e}.ending{display:flex;align-items:center;gap:25px;border:1px solid #acbc98;padding:25px;background:#e9eedd;border-radius:18px;margin-bottom:30px}.ending[hidden]{display:none}.ending .sprite{width:130px;height:130px}.ending p{font-size:14px}.ending button{font:12px system-ui,sans-serif}footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:22px 0 30px;font:10px/1.7 system-ui,sans-serif;color:#798371}footer a{color:inherit;text-decoration-thickness:1px;text-underline-offset:3px}
@media(min-width:1200px){.scene{grid-template-columns:1fr 1fr}.entities{grid-template-columns:repeat(3,minmax(0,1fr))}.entity .name{font-size:10px}.entity .sprite{width:67px;height:67px}}
@media(max-width:950px){.layout{grid-template-columns:minmax(0,1fr) 350px}header,main{padding-inline:22px}.genie{min-width:240px}.brand small{display:none}.chamber,.desk{padding:17px}.scene{grid-template-columns:1fr}.entities{grid-template-columns:repeat(3,minmax(0,1fr))}.edition{font-size:9px}}
@media(max-width:720px){header{padding:17px 18px}.edition{display:none}main{padding:0 16px}.intro{padding:26px 0 20px;gap:5px;align-items:start}.intro>div:first-child{flex:1}.intro h1{font-size:37px}.intro p:not(.eyebrow){font-size:13px}.intro .eyebrow{font-size:8px}.genie{min-width:0;width:86px;display:block;text-align:center}.genie .sprite{width:90px;height:90px}.genie div{display:none}.rooms{gap:5px;margin-bottom:15px}.rooms button{padding:10px 8px;gap:7px}.rooms button strong{font-size:12px}.rooms button span{font-size:9px}.layout{grid-template-columns:1fr;gap:16px}.chamber,.desk{padding:16px}.section-head{margin-bottom:13px}h2{font-size:23px}.badge{font-size:9px;max-width:130px}.scene{grid-template-columns:1fr 1fr;gap:8px}.zone{padding:9px}.entities{grid-template-columns:1fr 1fr;gap:5px}.entity{min-height:80px;padding:7px 4px}.entity .sprite{width:50px;height:50px}.entity .name{font-size:9px}.entity .glyph{height:29px;font-size:22px}.hero-strip .sprite{width:51px;height:51px}.hero-strip strong{font-size:13px}.hero-strip .muted{max-width:65px;font-size:9px}.zone h3{font-size:8px;display:block}.zone.here h3:after{display:block;margin-top:4px;font-size:7px}.inspection{min-height:100px}.desk textarea{font-size:12px;min-height:160px}.tools button,.aux button,.builder>button{min-height:43px}.receipts{padding:16px;margin-top:17px}#log{grid-template-columns:1fr}#log li{padding:12px}.receipts .section-head .muted{display:none}.ending{padding:18px;gap:12px}.ending .sprite{width:80px;height:80px}.ending h2{font-size:22px}footer{display:block}footer span{display:block;margin-bottom:7px}.builder-row{grid-template-columns:95px 1fr}}
