:root{font-family:Georgia,Times New Roman,serif;color:#f4ecd8;background:#10242b;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,select{font:600 14px system-ui;cursor:pointer;color:#f4ecd8;border:1px solid #c7a96966;border-radius:9px;background:#21363e;padding:11px 16px;touch-action:manipulation}button:hover{background:#385057}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #f4d687;outline-offset:3px}button:disabled{opacity:.55;cursor:wait}a{color:#dfc184}button.primary{background:#dbb97a;color:#172a30;border-color:#dbb97a;padding:15px 22px}button.primary:hover{background:#f4d69b}[hidden]{display:none!important}#world,#world canvas{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block}header{position:fixed;z-index:2;top:0;left:0;width:100%;display:flex;justify-content:space-between;padding:20px 28px;background:linear-gradient(#0c202ce6,transparent);gap:10px}.brand{font:11px system-ui;letter-spacing:3px;display:flex;flex-direction:column;gap:5px}.brand strong{font:20px Georgia;letter-spacing:1px}nav{display:flex;gap:7px}#hud{position:fixed;top:92px;left:28px;display:flex;gap:24px}.chip span{display:block;font:9px system-ui;letter-spacing:2px;color:#cabf9f}.chip b{font-size:24px;text-shadow:0 2px 6px #000}#mapPanel{position:fixed;right:24px;bottom:28px;background:#10252de8;border:1px solid #c7a96955;border-radius:14px;padding:10px;box-shadow:0 8px 30px #0004}#map{width:180px;height:180px;display:block}#mapPanel div{font:9px system-ui;letter-spacing:1px;text-align:center;margin:5px}#mapPanel span{color:#f4d687}#hint{font-size:11px;width:100%;padding:8px}#toast{position:fixed;bottom:32px;left:50%;transform:translate(-50%);text-align:center;background:#10252de8;border-radius:10px;padding:12px 20px;pointer-events:none;max-width:460px}#toast:empty{display:none}.veil{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5;background:#06161b66;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}.intro{margin-right:auto;margin-left:5vw;max-width:500px;padding:32px 40px;background:linear-gradient(130deg,#102730f5,#102730dc);border:1px solid #bb9c6255;border-radius:4px 40px;box-shadow:0 24px 80px #0006}.back{display:block;font:12px system-ui;margin-bottom:35px;text-decoration:none}.eyebrow{font:10px system-ui;letter-spacing:3px;color:#dbb97a}h1{font-size:clamp(45px,6vw,80px);font-weight:400;line-height:.95;letter-spacing:-2px;margin:20px 0}h1 em{color:#dfc184;font-weight:400}p{line-height:1.6;color:#d1d9d3}.rule{height:1px;background:#c7a96944;margin:23px 0}label{font:11px system-ui;letter-spacing:1px;text-transform:uppercase}select{display:block;width:100%;margin:10px 0}#start{width:100%}.instructions{font:12px/1.9 system-ui;color:#a7b9b8;margin-top:20px}.panel{background:#112831;border:1px solid #b99b62;border-radius:20px;padding:28px;box-shadow:0 20px 80px #0008;max-height:95dvh;overflow:auto;text-align:center}.small{max-width:440px;width:100%;display:flex;flex-direction:column;gap:14px}.small h2{font-size:44px;margin:8px}.small a{font-size:14px;margin:12px}.puzzle{width:min(900px,100%)}.puzzle h2{font-size:30px;margin:7px}.puzzle p{margin:5px auto;max-width:700px}.help{font:12px/1.5 system-ui;color:#b8c9c7}.goblin-face{font-size:38px;float:left}.shelf-title{font:10px system-ui;letter-spacing:2px;color:#dfc184;margin:15px 0 7px}.books{display:flex;align-items:flex-end;justify-content:center;gap:14px;min-height:175px;padding:20px 18px 22px;border-radius:10px;background:linear-gradient(#100a0366,#100a0322),url(../storybook_shelf.png) center/cover;overflow-x:auto}.book{position:relative;width:88px;min-width:88px;height:130px;display:flex;flex-direction:column;justify-content:space-between;padding:10px 8px;border:1px solid #fff4;border-radius:4px 9px 9px 4px;background-image:linear-gradient(90deg,#fff2,#0002),url(../book_asset.png);background-size:cover;background-blend-mode:soft-light;box-shadow:5px 5px #dfcfaa,7px 7px 12px #0008;text-align:left;cursor:grab}.book.selected{outline:3px solid #ffe49b;transform:translateY(-6px)}.book small{font:11px/1.2 Georgia;color:#fff9}.call{background:#f9efd5;color:#17252a;padding:6px 4px;border-radius:2px;width:100%;font:700 13px/1.25 monospace;text-align:center}.slot{background:#160e0866;border:1px dashed #d8b47377;min-width:100px;width:100px;height:132px;padding:0;display:flex;align-items:flex-end;justify-content:center;color:#d6c7aa;font:11px system-ui}.slot .book{min-width:86px;width:86px}.slot.over{outline:3px solid #ffe49b}.puzzle-actions{display:flex;justify-content:center;gap:12px;margin:14px 0}#feedback{min-height:25px;color:#f8d98e;font:14px/1.5 system-ui}details{font:12px/1.6 system-ui;color:#bbcdc8}summary{cursor:pointer;color:#dfc184}#controls{position:fixed;bottom:22px;left:24px;display:flex;flex-direction:column;align-items:center;gap:4px}#controls div{display:flex;gap:4px}#controls button{width:53px;height:48px;font-size:20px;background:#163039df;touch-action:none;-webkit-user-select:none;user-select:none}@media (max-width:650px){header{padding:12px;align-items:center}.brand{font-size:8px;letter-spacing:1px}.brand strong{font-size:14px}nav button{font-size:10px;padding:9px 8px}#hud{top:74px;left:14px;gap:15px}.chip b{font-size:19px}.chip span{font-size:8px;letter-spacing:1px}#mapPanel{right:10px;bottom:18px;padding:7px}#map{width:120px;height:120px}#mapPanel div{font-size:7px}#hint{font-size:9px}#controls{left:10px;bottom:20px}#controls button{width:43px;height:43px}.veil{padding:10px}.intro{margin:auto;padding:24px;max-height:95dvh;overflow:auto;width:100%;max-width:430px}.back{margin-bottom:24px}h1{font-size:54px}.intro p{font-size:14px}.panel{padding:18px 12px}.puzzle h2{font-size:24px}.puzzle p{font-size:12px}.goblin-face{float:none;font-size:26px}.books{justify-content:flex-start;gap:12px;padding:16px 12px;min-height:158px}.book{min-width:70px;width:70px;height:117px}.slot{min-width:80px;width:80px;height:120px}.slot .book{min-width:68px;width:68px}.call{font-size:11px}.puzzle-actions button{font-size:11px;padding:12px}#toast{bottom:190px;width:85%;font-size:13px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto}}#world:after{content:"";position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;background:radial-gradient(ellipse at 50% 45%,transparent 40%,#071e293d 100%)}#challenge{padding:12px}.puzzle{padding:20px 24px;max-height:calc(100dvh - 24px);flex-shrink:0}.puzzle .shelf-title{margin:10px 0 5px}.puzzle .books{min-height:156px;padding:10px 18px 12px}.puzzle .puzzle-actions{margin:10px 0;gap:10px}.puzzle .puzzle-actions .primary{padding:11px 18px}.puzzle .goblin-face svg{width:50px;height:50px}@media (max-width:650px){.puzzle{padding:14px 12px}.puzzle .books{padding:10px 12px;min-height:140px}.puzzle .goblin-face svg{width:42px;height:42px}}@media (min-width:651px) and (max-height:750px){.puzzle{padding:14px 20px}.puzzle h2{font-size:26px;margin:5px}.puzzle>p{line-height:1.4}.puzzle .shelf-title{margin-top:8px}}
