@font-face{font-family:Manrope;src:url('/assets/fonts/manrope-cyrillic.woff2') format('woff2');font-display:swap}*{box-sizing:border-box}body{margin:0;background:#112d29;color:#fff4d3;font-family:Manrope,Arial,sans-serif}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #ffe19b;outline-offset:2px}button:disabled{cursor:default}a,a:visited{color:#ffdf95}a:hover,a:focus-visible{color:#fff7d6}.quest-app{max-width:520px;height:100dvh;margin:auto;padding:8px;display:flex;flex-direction:column;gap:5px;background:radial-gradient(ellipse at top,#3f6651,#152f2b)}.quest-header{display:flex;align-items:center;gap:8px;flex-shrink:0}.quest-header>a,.quest-header>button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #b6a064;border-radius:11px;background:#294c3d;color:#fff2c5;text-decoration:none;font-size:24px;flex-shrink:0}.quest-header>div{flex:1}.quest-header small{font-size:9px;color:#d9dbb5}.quest-header h1{font-size:16px;line-height:1.15;margin:3px 0}.quest-app>p{margin:0;flex-shrink:0}#quest-objective{font-size:11px;text-align:center;background:#f8edc9;border:1px solid #b5a25e;color:#2c4a35;border-radius:9px;padding:6px;font-weight:800;min-height:29px}.quest-scene{position:relative;aspect-ratio:2/3;align-self:center;flex-shrink:0;max-width:100%;background:#3c4734 url('/assets/game/mystery-workshop.webp') center/100% 100%;border:2px solid #ba9e5c;border-radius:13px;box-shadow:0 4px 15px #0008;isolation:isolate;overflow:hidden;margin:auto 0}.hidden-object{position:absolute;transform:translate(-50%,-50%);width:15%;height:10%;min-width:38px;min-height:38px;border:0;background:none;padding:1px;z-index:2;filter:drop-shadow(0 2px 2px #0008)}.hidden-object .quest-icon{width:100%;height:100%;max-width:51px;max-height:51px;margin:auto}.quest-icon{display:block;background-size:300% 300%;background-repeat:no-repeat;pointer-events:none}.quest-icon.magic{background-image:url('/assets/game/magic-pieces-v3.webp')}.quest-icon.flowers{background-image:url('/assets/game/flower-pieces-v3.webp')}.q-s0{background-position:0 0}.q-s1{background-position:50% 0}.q-s2{background-position:100% 0}.q-s4{background-position:50% 50%}.quest-icon.gear{display:grid;place-items:center;font-size:35px;color:#d7b46c;text-shadow:0 2px #503e20,1px 0 #fff0b5;line-height:1}.scene-place{position:absolute;transform:translate(-50%,-50%);min-height:34px;border:1px solid #dec07d;border-radius:9px;padding:3px 6px;background:#203e32b8;color:#fff0bb;font-size:9px;font-weight:800;z-index:3;max-width:43%}#quest-chest{left:86%;top:56%}#quest-mechanism{left:61%;top:43%}#quest-lens{left:63%;top:23%}.beacon-light{pointer-events:none;position:absolute;left:40%;top:12%;width:45%;height:35%;background:radial-gradient(ellipse,#fffccfdd,transparent 65%);opacity:0;mix-blend-mode:screen;transition:opacity 1s}.lit .beacon-light{opacity:1}.quest-find-list{display:flex;flex-wrap:wrap;justify-content:center;gap:3px 7px;font-size:9px;line-height:1.3;flex-shrink:0;min-height:28px}.quest-find-list .found{color:#b6cd9f;text-decoration:line-through}#quest-status{font-size:11px;line-height:1.35;min-height:30px;max-height:45px;overflow:auto;text-align:center;color:#fff0c4}.inventory-area{flex-shrink:0;border:1px solid #b6a267;border-radius:12px;padding:5px;background:#213f34}.inventory-area h2{font-size:11px;margin:0 0 3px;display:flex;gap:5px;align-items:center;justify-content:space-between}.inventory-area h2 small{font-size:8px;font-weight:400;max-width:60%;text-align:right}#quest-inventory{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}#quest-inventory button{min-width:0;min-height:48px;border:1px solid #9a8e5d;border-radius:9px;background:linear-gradient(#42624b,#213e31);color:#fff1c7;padding:2px}#quest-inventory .quest-icon{width:28px;height:28px;margin:auto}#quest-inventory .gear{font-size:26px}#quest-inventory small{font-size:8px;line-height:1;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#quest-inventory [aria-pressed=true]{border:2px solid #ffe196;background:#6a7644}#quest-inventory button:disabled{opacity:.5}.empty-slot{display:block;height:28px;line-height:28px;color:#b5bc94}.quest-actions{display:flex;gap:5px;flex-shrink:0}.quest-actions button{flex:1;min-height:34px;padding:4px;border:1px solid #b2a168;border-radius:10px;background:linear-gradient(#b9cf82,#779e55);color:#24452f;font-size:10px;font-weight:800}.quest-highlight{outline:3px solid #ffdf83!important;box-shadow:0 0 25px #fff5af!important;background-color:#f3d27533!important}.quest-app.zoom{position:fixed;inset:0;z-index:10;padding:5px}.quest-app.zoom>.quest-header,.quest-app.zoom>#quest-objective,.quest-app.zoom>.quest-find-list,.quest-app.zoom>.inventory-area,.quest-app.zoom>#quest-status{display:none}.quest-app.zoom .quest-scene{width:min(100%,calc((100dvh - 53px)*.666667))!important;margin:auto}.quest-app.zoom .quest-actions{margin-top:auto}.quest-app.zoom #quest-reset{display:none}dialog{width:calc(100% - 30px);max-width:390px;max-height:90dvh;overflow:auto;border:3px solid #d6bd71;border-radius:24px;background:linear-gradient(#42694f,#203e32);color:#fff1cd;padding:24px 18px;text-align:center;box-shadow:0 5px 25px #0008}dialog::backdrop{background:#081c21dc}dialog h2{font-size:25px;line-height:1.15;margin:10px 0 18px}dialog p{font-size:13px;line-height:1.6}dialog small{display:block;font-size:11px}.chapter-emblem{font-size:50px;color:#f1d17a;text-shadow:0 3px #675123;display:block}.quest-primary{display:block;width:100%;min-height:46px;border:2px solid #e6cb79;border-radius:14px;background:linear-gradient(#c9e58c,#7faa53);color:#23432e;font-size:15px;font-weight:800;margin-top:17px;box-shadow:0 3px #526535}.close-dialog{position:absolute;right:8px;top:7px;width:34px;height:34px;border:1px solid #d5bd75;border-radius:50%;background:#36543e;color:#fff3c8;font-size:23px}#quest-clue,.puzzle-clue{background:#fff1ca;border:2px solid #d7bc73;border-radius:12px;color:#2b4832;padding:12px;font-weight:800;font-size:13px}#quest-disks{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:17px 0}#quest-disks button{padding:7px 2px;border:3px solid #c6ad68;border-radius:18px;background:linear-gradient(#f4eac9,#b7c88d);color:#264831;min-width:0}#quest-disks .quest-icon{width:58px;height:58px;margin:auto}#quest-disks small{font-size:11px;margin:5px 0}#quest-disks button>span:last-child{font-size:23px}#quest-ending a{display:inline-block;font-size:13px;margin-top:18px}#puzzle-status{min-height:40px}@media(max-height:620px){.quest-header h1{font-size:14px}.quest-app{gap:3px}.quest-find-list{font-size:8px;min-height:22px}#quest-status{font-size:10px;min-height:26px;max-height:32px}.inventory-area h2 small{display:none}#quest-inventory button{min-height:42px}#quest-inventory .quest-icon{width:24px;height:24px}}@media(prefers-reduced-motion:reduce){.beacon-light{transition:none}}

[hidden]{display:none!important}#chapter-list button:disabled{opacity:.5;cursor:default}

/* Readable quest text on phones; scroll instead of shrinking labels and artwork. */
.quest-app{overflow-y:auto;gap:8px}
.quest-header small{font-size:14px;line-height:1.4}
.quest-header h1{font-size:22px;line-height:1.25}
.quest-header>a,.quest-header>button{width:44px;height:44px}
#quest-objective{font-size:16px;line-height:1.4;padding:9px;min-height:42px}
.scene-place{font-size:14px;line-height:1.3;min-height:44px;padding:6px 8px}
.quest-find-list{font-size:16px;line-height:1.5;gap:4px 12px;min-height:0}
.quest-find-list .found{text-decoration:none}
#quest-status{font-size:16px;line-height:1.5;min-height:48px;max-height:none;overflow:visible}
.inventory-area{padding:9px}
.inventory-area h2{font-size:18px;line-height:1.4;flex-wrap:wrap}
.inventory-area h2 small{display:block;font-size:14px;line-height:1.4;max-width:100%;text-align:left}
#quest-inventory{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#quest-inventory button{min-height:68px;padding:5px}
#quest-inventory .quest-icon{width:34px;height:34px}
#quest-inventory small{font-size:14px;line-height:1.3;white-space:normal;overflow:visible;text-overflow:clip}
.quest-actions button{font-size:15px;line-height:1.35;min-height:48px;padding:7px 4px}
dialog p,dialog small,#quest-clue,.puzzle-clue,#quest-disks small,#quest-ending a{font-size:16px;line-height:1.5}
.quest-primary{font-size:17px;line-height:1.4}
.close-dialog{width:44px;height:44px}
.quest-app.zoom{overflow-y:auto}

#quest-step-detail{font-size:16px;line-height:1.5;padding:8px 4px;text-align:left}

.quest-steps{font-size:16px;line-height:1.5;text-align:left;padding-left:24px}.quest-steps li{margin:10px 0}

/* One-screen mode: readable controls, detailed instructions in the help dialog. */
.quest-app{height:100dvh;overflow:hidden;gap:6px;padding:8px}
.quest-header h1{font-size:20px;line-height:1.15}
.quest-header small{font-size:12px;line-height:1.2}
#quest-step-detail,.quest-find-list{display:none}
.quest-scene{aspect-ratio:auto;width:100%;margin:0;background-size:cover;background-position:center}
#quest-objective{font-size:16px;line-height:1.25;padding:7px;min-height:38px}
#quest-status{font-size:16px;line-height:1.3;height:42px;min-height:42px;max-height:42px;overflow:auto}
.inventory-area{padding:5px 7px}
.inventory-area h2{font-size:16px;margin:0 0 3px}
.inventory-area h2 small{display:none}
#quest-inventory{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
#quest-inventory button{min-height:44px;height:44px;padding:3px}
#quest-inventory small{display:none}
#quest-inventory .quest-icon{width:34px;height:34px}
.quest-actions button{font-size:14px;min-height:46px;line-height:1.2;padding:5px 3px}
.quest-app.zoom .quest-scene{height:calc(100dvh - 66px)!important;width:100%!important;max-width:100%}
#journal-current{font-weight:800}
@media(max-height:620px){.quest-app{gap:4px;padding:5px}.quest-header h1{font-size:18px}.quest-header small{font-size:12px}.quest-actions button{min-height:44px}#quest-objective{font-size:15px}}

.advanced-search .hidden-object{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center}.advanced-search .hidden-object .quest-icon{width:var(--search-size);height:var(--search-size);filter:saturate(.85)}.advanced-search .hidden-object .gear{font-size:var(--search-size)}.search-decoy{position:absolute;transform:translate(-50%,-50%) rotate(-15deg);font-size:31px;color:#c1a967;text-shadow:0 2px 3px #142f26;pointer-events:none;opacity:.85}#chapter-list{max-height:65vh;overflow-y:auto}

.cabinet-app{height:100dvh;max-width:600px;margin:auto;padding:8px;box-sizing:border-box;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto auto;gap:6px;color:#fff5d3;background:#234638}.cabinet-app p{margin:0;font-size:13px;line-height:1.35}#cab-objective{text-align:center;font-weight:800}.cab-scene-wrap{min-height:0;display:grid;place-items:center}#cab-scene{position:relative;max-width:100%;overflow:hidden;border-radius:14px;box-shadow:0 0 0 2px #d4b66a}#cab-scene>img{display:block;width:100%;height:100%}#cab-scene>button{position:absolute;transform:translate(-50%,-50%);min-width:32px;min-height:32px;padding:0;border:0;background:transparent;cursor:pointer}#cab-scene>button:focus-visible,#cab-scene>button.cab-highlight{outline:3px solid #ffe195;background:#ffe19533;border-radius:9px}#cab-scene>button:disabled{pointer-events:none}#cab-clean-mark{position:absolute;left:43%;top:25%;font-size:24px;color:#fff2b5;pointer-events:none}#cab-status{min-height:35px}#cab-bag{display:flex;gap:6px;min-height:38px;flex-wrap:wrap}.cabinet-app footer{display:flex;gap:6px}.cabinet-app button:not([data-spot]),#cab-dialog button{min-height:40px;border:1px solid #d1b569;border-radius:11px;background:linear-gradient(#d8eaa1,#9bb867);color:#263e2d;font-weight:700;padding:6px 10px}.cabinet-app [aria-pressed=true]{outline:2px solid #ffe282}.cabinet-app footer button{flex:1}#cab-dialog{position:fixed;max-width:380px;width:calc(100% - 32px);box-sizing:border-box;padding:38px 20px 20px;border:3px solid #d7bb70;border-radius:20px;background:#fff5d6;color:#294432}#cab-dialog p{line-height:1.6}#cab-dialog::backdrop{background:#102d26cc}#cab-close{position:absolute;top:6px;right:6px}#cab-actions{display:grid;gap:9px}#cab-dialog h2{font-size:23px}.cabinet-app [hidden],#cab-clean-mark[hidden]{display:none}

#quest-circuit{width:calc(100% - 28px);max-width:390px;padding:36px 18px 18px;border:3px solid #cdb26e;border-radius:22px;background:#244638;color:#fff7d6;box-sizing:border-box}#quest-circuit h2{color:inherit}#quest-circuit p{font-size:14px;line-height:1.5}#circuit-grid{display:grid;gap:7px;margin:16px 0}#circuit-grid button{aspect-ratio:1;min-height:44px;border:2px solid #718465;border-radius:11px;background:#163429;color:#91a284;font-size:30px}#circuit-grid button.lit{background:radial-gradient(#fff6b1,#d7ba5a);color:#4a542e;border-color:#f5df91;box-shadow:0 0 8px #dcca6955}#quest-circuit::backdrop{background:#10261dd9}

#quest-sliding{width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}#sliding-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:14px 0}#sliding-grid button{min-height:44px;aspect-ratio:1;font-size:24px;font-weight:800;border:2px solid #bda65c;border-radius:12px;background:linear-gradient(145deg,#fff1b2,#d9b94f);color:#244833;box-shadow:inset 0 2px 3px #fff8,0 3px 0 #806c31}#sliding-grid button:disabled{background:#183e30;border-color:#698772;box-shadow:inset 0 2px 7px #102c24;color:transparent}#quest-sliding .quest-primary,#quest-circuit .quest-primary{margin-top:6px}#sliding-status,#circuit-status{font-size:14px}#quest-circuit{max-height:calc(100dvh - 24px);overflow:auto}
