.materials-preview{--preview-paper:0 0% 100%;--preview-line:35 18% 79%;--preview-shadow:260 24% 16%;min-width:0;margin:22px 0 0}.materials-preview-stack{isolation:isolate;width:min(100%,310px);height:220px;margin:0 auto;position:relative}.materials-preview-sheet{aspect-ratio:210/297;background:hsl(var(--preview-paper));border:1px solid hsl(var(--preview-line)/.55);width:140px;box-shadow:0 9px 18px hsl(var(--preview-shadow)/.17),0 1px 3px hsl(var(--preview-shadow)/.12);position:absolute;top:10px;left:calc(50% - 120px);overflow:hidden;transform:rotate(-11deg)}.materials-preview-sheet:nth-child(2){z-index:1;top:15px;left:calc(50% - 18px);transform:rotate(10deg)}.materials-offer-group{isolation:isolate;width:100%;min-width:0;position:relative}.materials-offer-group>.materials-offer{z-index:2;position:relative}.materials-preview-behind{z-index:1;pointer-events:none;margin:-38px 0 0;padding:0 12px 14px;position:relative}.materials-preview-behind .materials-preview-stack{width:min(100%,360px);height:264px}.materials-preview-behind .materials-preview-sheet{width:170px;box-shadow:0 12px 22px hsl(var(--preview-shadow)/.28);top:0;left:calc(50% - 145px);transform:rotate(-12deg)}.materials-preview-behind .materials-preview-sheet:nth-child(2){top:12px;left:calc(50% - 14px);transform:rotate(11deg)}.materials-preview-behind .materials-preview-status{pointer-events:auto;padding-top:65px}.materials-preview-original{object-fit:contain;width:100%;height:100%;display:block}.materials-preview figcaption{text-align:center;color:inherit;opacity:.7;margin-top:10px;font-size:11px;line-height:1.4}.materials-preview-status{text-align:center;opacity:.8;flex-direction:column;justify-content:center;align-items:center;gap:8px;height:100%;font-size:12px;display:flex}.materials-preview-status button{cursor:pointer;min-height:44px;padding:6px 12px;text-decoration:underline}.materials-preview-status button:focus-visible{outline-offset:2px;outline:2px solid}@media (width<=720px){.materials-preview-behind{margin-top:-30px}.materials-preview-behind .materials-preview-stack{height:228px}.materials-preview-behind .materials-preview-sheet{width:145px;left:calc(50% - 126px)}.materials-preview-behind .materials-preview-sheet:nth-child(2){left:calc(50% - 12px)}}@media (width<=380px){.materials-preview-stack{width:250px;max-width:100%;height:203px}.materials-preview-sheet{width:128px;left:calc(50% - 110px)}.materials-preview-sheet:nth-child(2){left:calc(50% - 17px)}}@media (height<=520px) and (orientation:landscape){.materials-preview{margin-top:14px}.materials-preview-stack{width:220px;height:163px}.materials-preview-sheet{width:100px;left:calc(50% - 87px)}.materials-preview-sheet:nth-child(2){left:calc(50% - 12px)}.materials-preview figcaption{margin-top:5px}.materials-preview-behind{margin-top:-24px}.materials-preview-behind .materials-preview-stack{height:190px}.materials-preview-behind .materials-preview-sheet{width:120px;left:calc(50% - 104px)}.materials-preview-behind .materials-preview-sheet:nth-child(2){left:calc(50% - 10px)}}.materials-preview-sheet-landscape{width:200px;top:34px;left:calc(50% - 178px);transform:rotate(-7deg)}.materials-preview-sheet-landscape:nth-child(2){top:50px;left:calc(50% - 30px);transform:rotate(6deg)}.materials-preview-behind .materials-preview-sheet-landscape{width:230px;top:58px;left:calc(50% - 190px);transform:rotate(-7deg)}.materials-preview-behind .materials-preview-sheet-landscape:nth-child(2){top:76px;left:calc(50% - 40px);transform:rotate(6deg)}@media (width<=720px){.materials-preview-behind .materials-preview-sheet-landscape{width:180px;top:52px;left:calc(50% - 158px)}.materials-preview-behind .materials-preview-sheet-landscape:nth-child(2){top:68px;left:calc(50% - 22px)}}@media (width<=380px){.materials-preview-sheet-landscape,.materials-preview-behind .materials-preview-sheet-landscape{width:150px;left:calc(50% - 130px)}.materials-preview-sheet-landscape:nth-child(2),.materials-preview-behind .materials-preview-sheet-landscape:nth-child(2){left:calc(50% - 20px)}}@media (height<=520px) and (orientation:landscape){.materials-preview-sheet-landscape,.materials-preview-behind .materials-preview-sheet-landscape{width:150px;top:26px;left:calc(50% - 128px)}.materials-preview-sheet-landscape:nth-child(2),.materials-preview-behind .materials-preview-sheet-landscape:nth-child(2){top:40px;left:calc(50% - 18px)}}.illustrated-scene[data-compact] [data-flashlight-scene] .mv-tools{z-index:45}.illustrated-scene[data-compact] [data-flashlight-scene] .mv-tools button{flex-basis:44px;min-width:44px;min-height:44px}.terraquest-exploration{border:1px solid var(--quest-line,#8e7eaa);border-radius:18px;margin-bottom:20px;overflow:hidden}.terraquest-exploration .mv-scroll{min-height:180px}[data-flashlight-scene] .mv-gallery img{filter:brightness(.12)}[data-flashlight-scene] button[data-scene-interactive]{min-width:var(--flashlight-hit-min,44px);min-height:var(--flashlight-hit-min,44px)}[data-flashlight-scene] button[data-scene-interactive]>svg{min-width:var(--flashlight-icon-min,20px);min-height:var(--flashlight-icon-min,20px)}.flashlight-layer{z-index:35;pointer-events:none;--light-x:50%;--light-y:50%;--light-rx:90px;--light-ry:90px;position:absolute;inset:0}.flashlight-veil,.flashlight-glow{pointer-events:none;position:absolute;inset:0}.flashlight-layer[data-light-off] .flashlight-veil{background:rgba(5,4,9,var(--light-darkness))}.flashlight-layer[data-light-off] .flashlight-glow{display:none}.flashlight-laser{pointer-events:none;width:100%;height:100%;position:absolute;inset:0;overflow:hidden}.flashlight-layer:is([data-light-shape=laser],[data-light-shape=cone]):not([data-light-off])>.flashlight-veil,.flashlight-layer:is([data-light-shape=laser],[data-light-shape=cone])>.flashlight-glow,.flashlight-layer[data-light-off]>.flashlight-laser{display:none}.flashlight-controls{flex-wrap:wrap}.flashlight-controls button img{object-fit:contain;width:28px;height:28px}.flashlight-controls button:disabled{opacity:.7;cursor:default}.flashlight-controls .flashlight-hint{flex:120px}.flashlight-kit-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.flashlight-kit-options button{border:2px solid hsl(var(--border));background:hsl(var(--card));border-radius:14px;min-width:0;padding:8px;font-size:12px}.flashlight-kit-options button[aria-pressed=true]{border-color:hsl(var(--primary));background:hsl(var(--primary)/.08)}.flashlight-kit-options img{object-fit:contain;width:100%;height:92px}.flashlight-prop{object-fit:contain;filter:drop-shadow(0 4px 3px hsl(var(--foreground)/.3));pointer-events:none}@media (width<=400px){.flashlight-controls .flashlight-hint{flex-basis:100%;order:3;font-size:10px}}.flashlight-veil{background:radial-gradient(ellipse var(--light-rx) var(--light-ry) at var(--light-x) var(--light-y),transparent 0%,transparent var(--light-core),rgba(5,4,9,var(--light-darkness)) 100%)}.flashlight-glow{background:radial-gradient(ellipse var(--light-rx) var(--light-ry) at var(--light-x) var(--light-y),rgba(var(--light-tint),.03) 25%,rgba(var(--light-tint),.12) 65%,transparent 100%)}.flashlight-controls{color:#fff7e4;font:inherit;pointer-events:none;align-items:center;gap:9px;font-size:12px;line-height:1.35;display:flex;position:absolute;bottom:10px;left:10px;right:10px}.flashlight-controls button{color:#fff1c8;min-width:44px;min-height:44px;font:inherit;cursor:pointer;pointer-events:auto;background:#28202eee;border:1px solid #f1c978;border-radius:14px;flex-shrink:0;justify-content:center;align-items:center;gap:7px;padding:8px 12px;font-weight:600;display:inline-flex;box-shadow:0 3px 12px #0006}.flashlight-controls button[aria-pressed=true]{color:#302333;background:#f4ce83}.flashlight-controls button:focus-visible{outline-offset:3px;outline:3px solid #fff}.flashlight-hint{text-wrap:pretty;background:#1a1427e6;border-radius:10px;max-width:330px;padding:6px 9px}.flashlight-keyboard{margin-left:auto}[data-flashlight-host]{position:relative}.game-theme [data-flashlight-scene] .mv-scroll[data-flashlight-host]{background:#0b0911}[data-flashlight-host]:focus-visible{outline-offset:-3px;outline:3px solid #f4ce83}@media (width<=600px){.flashlight-controls{gap:6px;font-size:11px;bottom:6px;left:6px;right:6px}.flashlight-controls button{padding:7px 9px}.flashlight-hint{max-width:220px}.flashlight-controls .flashlight-keyboard{display:none}}@media (width<=360px){.flashlight-hint{font-size:10px}.flashlight-controls{gap:4px}}.flashlight-blackout{pointer-events:auto;background:rgba(5,4,9,var(--light-darkness,.94));place-items:center;padding:16px;animation:1.9s step-end both flashlight-flicker;display:grid;position:absolute;inset:0}.flashlight-blackout-card{text-align:center;color:#fff3d2;opacity:0;max-width:min(420px,92%);animation:.45s ease-out 1.85s forwards flashlight-card}.flashlight-blackout-card p{text-shadow:0 2px 8px #000;margin:0 0 14px;font-size:clamp(15px,2.4vw,20px);font-weight:600;line-height:1.4}.flashlight-blackout-card button{color:#302333;min-height:48px;font:inherit;cursor:pointer;background:#f4ce83;border:1px solid #f1c978;border-radius:14px;align-items:center;gap:8px;padding:10px 18px;font-weight:700;display:inline-flex;box-shadow:0 4px 18px #f4ce8355}.flashlight-blackout-card button:focus-visible{outline-offset:3px;outline:3px solid #fff}@keyframes flashlight-flicker{0%{opacity:0}7%{opacity:.8}10%{opacity:0}19%{opacity:.9}23%{opacity:.1}27%{opacity:0}38%{opacity:.95}42%{opacity:.25}50%{opacity:1}55%{opacity:.4}62%{opacity:1}to{opacity:1}}@keyframes flashlight-card{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.flashlight-blackout{animation:none}.flashlight-blackout-card{opacity:1;animation:none}}.flashlight-controls{flex-flow:column;align-items:stretch;gap:6px;width:auto;inset:50% 8px auto auto;transform:translateY(-50%)}.flashlight-controls button{opacity:.82;border-radius:12px;flex-direction:column;gap:2px;min-width:52px;min-height:48px;padding:5px 6px;font-size:10.5px;line-height:1.1;transition:opacity .15s}.flashlight-controls button:hover,.flashlight-controls button:focus-visible,.flashlight-controls button[aria-pressed=true]{opacity:1}.flashlight-controls .flashlight-keyboard{margin-left:0}.flashlight-tip{color:#fff7e4;text-align:center;pointer-events:none;text-wrap:pretty;background:#1a1427e6;border-radius:10px;max-width:min(360px,100% - 90px);padding:6px 11px;font-size:12px;line-height:1.35;animation:.25s ease-out flashlight-tip-in;position:absolute;top:10px;left:50%;transform:translate(-50%)}@keyframes flashlight-tip-in{0%{opacity:0;transform:translate(-50%,-4px)}to{opacity:1;transform:translate(-50%)}}@media (width<=600px){.flashlight-controls{gap:5px;bottom:auto;left:auto;right:5px}.flashlight-controls button{min-width:46px;min-height:44px;padding:4px 5px;font-size:10px}.flashlight-tip{font-size:11px;top:6px}}@media (prefers-reduced-motion:reduce){.flashlight-tip{animation:none}}.martin-visual{--mv-paper:#f4e4b9;--mv-ink:#382c24;--mv-frame:#755135;--mv-gold:#d1a36b;border:2px solid var(--mv-frame);background:var(--mv-ink);color:var(--mv-paper);border-radius:20px;font-family:Fredoka CZ,sans-serif;overflow:hidden}.mv-tools{justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;font-size:14px;line-height:1.4;display:flex}.mv-tools>div{flex-wrap:wrap;flex-shrink:0;gap:8px;display:flex}.mv-tools button{border:1px solid var(--mv-gold);min-height:44px;color:var(--mv-paper);cursor:pointer;background:0 0;border-radius:9px;align-items:center;gap:6px;padding:8px 12px;display:flex}.mv-tools button:focus-visible{outline:3px solid var(--mv-paper);outline-offset:2px}.mv-scroll{scrollbar-color:var(--mv-gold) var(--mv-ink);scrollbar-width:thin;touch-action:pan-x pan-y;overflow:auto}.mv-canvas{aspect-ratio:3/2;width:100%;height:auto;display:block}.mv-pan-active{touch-action:none;cursor:grab}.mv-pan-active:active{cursor:grabbing}.mv-prop,.mv-cord{cursor:zoom-in;outline:none}.mv-prop:focus-visible{filter:drop-shadow(0 0 6px var(--mv-paper))}.mv-cord{cursor:pointer}.mv-cord:focus-visible{stroke:var(--mv-paper);stroke-opacity:.35}.mv-scroll::-webkit-scrollbar{width:10px;height:10px}.mv-scroll::-webkit-scrollbar-thumb{background:var(--mv-gold);border:2px solid var(--mv-ink);border-radius:10px}.mv-scroll::-webkit-scrollbar-track{background:var(--mv-ink)}.martin-template-scene{background:#f3eadb;grid-template-columns:minmax(0,1fr) 350px;align-items:start;gap:20px;min-height:100dvh;padding:70px 16px 24px;display:grid}.martin-template-scene>aside{min-width:0}@media (width<=900px){.martin-template-scene{grid-template-columns:1fr}.martin-template-scene>aside{width:100%;max-width:500px;margin:auto}}@media (width<=600px){.mv-tools{flex-direction:column;align-items:flex-start;padding:12px;font-size:13px}.mv-tools>div{width:100%}.mv-tools button{font-size:13px}.martin-visual{border-radius:14px}}.mv-tools{flex-wrap:wrap;gap:8px;padding:8px 12px}.mv-tools .mv-tool-buttons{flex-wrap:wrap;flex-shrink:1;gap:6px;max-width:100%;display:flex}.mv-tools button{background:#4b3829;min-width:44px;min-height:44px;padding:7px 11px;font-size:14px}.mv-tools button[aria-pressed=true]{background:var(--mv-paper);color:var(--mv-ink)}.mv-tools button:disabled{opacity:.4;cursor:default}.mv-instruction{opacity:.85;font-size:12px}.mv-viewer{min-height:0;position:relative}.mv-scroll{position:relative}.mv-lens{border:4px solid var(--mv-paper);pointer-events:none;z-index:3;background:var(--mv-ink);border-radius:50%;width:174px;height:174px;position:absolute;overflow:hidden;box-shadow:0 5px 22px #0009}.mv-lens svg{width:100%;height:100%}.mv-lens>span{background:var(--mv-ink);border-radius:8px;padding:2px 6px;font-size:12px;position:absolute;bottom:7px;left:70px}.mv-loupe-active{touch-action:none;cursor:crosshair}.martin-playfield .mv-scroll{background:#302820;justify-content:safe center;align-items:flex-start;height:auto;display:flex}.martin-playfield .mv-canvas{flex-shrink:0;width:100%;max-width:min(100%,1.5*clamp(400px,72dvh,1000px));height:auto}.mv-fullscreen{z-index:1000;flex-direction:column;width:100vw;height:100dvh;display:flex;border-radius:0!important;position:fixed!important;inset:0!important}.mv-fullscreen .mv-viewer{flex:1;min-height:0;container-type:size}.mv-fullscreen .mv-scroll{justify-content:safe center;align-items:center;display:flex;height:100%!important}.mv-fullscreen .mv-canvas{flex-shrink:0;width:min(100cqw,150cqh);max-width:100%;height:auto}@media (width<=600px){.mv-tools{flex-direction:row;gap:4px;padding:6px}.mv-tools button{flex:0 0 44px;justify-content:center;width:44px;height:44px;padding:0;font-size:12px}.mv-tool-buttons button>span{display:none}.mv-tool-buttons button>svg{flex-shrink:0;width:22px;height:22px}.mv-tools .mv-tool-buttons{gap:4px;width:auto}.mv-instruction{width:100%;font-size:11px}.martin-playfield .mv-scroll{height:auto;min-height:0}.martin-playfield .mv-canvas{width:100%;height:auto}.mv-fullscreen .mv-canvas{width:min(100cqw,150cqh);height:auto}}@media (height<=550px) and (width>=601px){.martin-active .martin-header{display:none}.martin-active .martin-progress{margin-top:4px}.martin-playfield .mv-scroll{height:auto;min-height:0}.martin-playfield .mv-canvas{max-width:min(100%,1.5*max(160px,100dvh - 220px))}.mv-instruction{display:none}}.mv-gallery{background:var(--martin-paper,#fffaf0);flex:none;justify-content:center;gap:8px;padding:6px 10px;display:flex;overflow-x:auto}.mv-gallery button{min-height:44px;color:var(--martin-ink,#302344);font:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:2px solid #0000;border-radius:10px;align-items:center;gap:8px;padding:3px 10px 3px 3px;font-size:13px;display:flex}.mv-gallery button img,.mv-thumbnail-video{object-fit:cover;border-radius:6px;width:58px;height:36px;display:block}.mv-gallery button[aria-pressed=true]{background:var(--martin-pale,#eee5f5);border-color:currentColor;font-weight:700}.mv-gallery button:focus-visible{outline-offset:2px;outline:3px solid #ea9b27}.mv-scene-video{object-fit:contain;width:100%;height:100%;min-height:0;max-height:100%;display:block}.mv-scroll:has(.mv-scene-video){min-height:180px}@media (width<=600px){.mv-gallery{gap:4px;padding:4px}.mv-gallery button{padding-right:7px;font-size:12px}.mv-gallery button img{width:48px;height:32px}}.scene-object-overlay{width:100vw;max-width:none;height:100dvh;max-height:none;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));box-sizing:border-box;border:0;margin:0;position:fixed;inset:0;overflow:hidden}.scene-object-overlay[open]{justify-content:center;align-items:center;display:flex}.scene-object-overlay:not([open]){display:none}.scene-object-overlay::backdrop{background:0 0}.scene-object-panel{overscroll-behavior:contain;scrollbar-width:thin;min-height:0;max-height:100%;scroll-padding-top:76px;overflow-y:auto}.scene-object-heading{z-index:2;background:inherit;border-bottom:1px solid hsl(var(--border)/.35);justify-content:space-between;align-items:center;gap:12px;margin:-20px -20px 12px;padding:10px 14px;display:flex;position:sticky;top:-20px}.scene-object-heading h3{overflow-wrap:anywhere;min-width:0;margin:0}.scene-object-close{opacity:.85;cursor:pointer;border:1px solid;border-radius:10px;flex:0 0 44px;place-items:center;width:44px;height:44px;display:grid}.scene-object-close:hover{opacity:1}.scene-object-close:focus-visible{outline-offset:2px;outline:3px solid}.scene-object-panel>div>button{min-height:44px}.reference-image{min-width:0;margin:0}.reference-image-tools{flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:10px;display:flex}.reference-image-tools button{font:inherit;min-height:44px;color:inherit;cursor:pointer;background:0 0;border:1px solid;border-radius:8px;padding:6px 10px;font-size:13px}.reference-image-tools button:disabled{opacity:.45;cursor:default}.reference-image-tools output{margin-left:auto;font-size:12px}.reference-image-scroll{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:currentColor transparent;border-radius:8px;max-height:55dvh;overflow:auto}.reference-image-scroll img{display:block}.reference-image figcaption{margin-top:7px;font-size:12px}.reference-image :focus-visible{outline-offset:2px;outline:2px solid}.reference-image-scroll::-webkit-scrollbar{width:9px;height:9px}.reference-image-scroll::-webkit-scrollbar-thumb{background:#859398 padding-box padding-box;border:2px solid #0000;border-radius:6px}.reference-image-scroll::-webkit-scrollbar-track{background:0 0}@media (prefers-reduced-motion:reduce){.scene-object-overlay,.scene-object-panel{transition:none!important;animation:none!important}}.workbench-dialog{border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));width:min(960px,100vw - 20px);max-height:calc(100dvh - 20px);box-shadow:0 20px 70px hsl(var(--foreground)/.3);border-radius:1.4rem;margin:auto;padding:0;font-family:inherit;container-type:inline-size}.workbench-dialog::backdrop{background:hsl(var(--foreground)/.65);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.workbench-dialog header,.workbench-dialog footer{background:hsl(var(--muted));justify-content:space-between;align-items:center;gap:16px;padding:16px 22px;display:flex}.workbench-dialog h2{font-size:clamp(1.15rem,3vw,1.7rem);font-weight:700}.workbench-dialog h3{margin:8px 0;font-weight:650}.workbench-dialog small{letter-spacing:.15em;color:hsl(var(--primary));font-size:.65rem}.workbench-dialog main{overscroll-behavior:contain;max-height:calc(100dvh - 210px);padding:20px;overflow:auto}.workbench-instruction{white-space:pre-line;margin-bottom:20px;line-height:1.6}.workbench-dialog button{border:1px solid hsl(var(--border));background:hsl(var(--background));min-width:46px;min-height:46px;color:hsl(var(--foreground));touch-action:manipulation;border-radius:12px;padding:8px 14px;font-weight:600}.workbench-dialog button:hover{background:hsl(var(--accent))}.workbench-dialog button:focus-visible{outline:3px solid hsl(var(--ring));outline-offset:2px}.workbench-dialog button:disabled{opacity:.4}.workbench-dialog button[aria-pressed=true]{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}.workbench-switches,.workbench-controls{flex-wrap:wrap;justify-content:center;gap:8px;margin:12px 0;display:flex}.workbench-switches button{gap:6px;min-width:85px;display:grid}.workbench-switches b{font-size:1.8rem}.workbench-switches span{font-size:.7rem}.workbench-output{text-align:center;padding:16px;font-size:1.4rem;font-weight:700;display:block}.workbench-traces{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px;display:grid}.workbench-traces section{border:1px solid hsl(var(--border));border-radius:16px;padding:12px}.workbench-traces svg{background:hsl(var(--muted));border-radius:10px;width:100%;height:170px}.workbench-trace-picker{display:none}@container (width<=780px){.workbench-trace-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:10px;display:grid}.workbench-trace-picker button{min-width:0;min-height:44px;padding:6px;font-size:13px}.workbench-traces{grid-template-columns:1fr}.workbench-traces section:not([data-active=true]){display:none}.workbench-traces svg{height:140px}.workbench-traces h3{margin:0 0 4px}.workbench-traces .workbench-controls{margin:8px 0 0}}@container (width>=500px) and (width<=780px){.workbench-traces section{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;column-gap:16px;display:grid}.workbench-traces svg{grid-area:1/1/4}.workbench-traces h3,.workbench-traces .workbench-arrows,.workbench-traces .workbench-controls{grid-column:2}}.workbench-arrows{letter-spacing:.08em;overflow-wrap:anywhere;margin:8px 0;font-size:1.35rem}.workbench-stack-layout{grid-template-columns:1fr 1fr;gap:20px;display:grid}.workbench-events li{border-radius:6px;padding:7px}.workbench-events [data-current=true]{outline:2px solid hsl(var(--primary))}.workbench-events [data-past=true]{opacity:.55}.workbench-crates>div{border:2px solid hsl(var(--primary));background:hsl(var(--muted));text-align:center;border-radius:6px;margin:3px;padding:10px}.workbench-grid{gap:5px;max-width:480px;margin:auto;display:grid}.workbench-grid span{aspect-ratio:1;border:1px solid hsl(var(--border));background:hsl(var(--muted));border-radius:8px;place-items:center;font-size:clamp(1rem,4vw,1.6rem);display:grid}.workbench-grid [data-active=true]{background:hsl(var(--primary));color:hsl(var(--primary-foreground));outline:3px solid hsl(var(--ring));outline-offset:1px}.workbench-grid [data-empty=true]{visibility:hidden}.workbench-dotgrid{gap:6px;margin:24px auto;display:grid}.workbench-dotgrid span{aspect-ratio:1;background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:50%}.workbench-dotgrid [data-lit=true]{background:hsl(var(--primary));box-shadow:0 0 7px hsl(var(--primary)/.5)}.workbench-dialog details{border:1px solid hsl(var(--border));border-radius:12px;margin-top:20px;padding:12px}.workbench-dialog summary{cursor:pointer;min-height:30px}.workbench-dialog details p{white-space:pre-line;margin-top:10px}.workbench-dialog footer p{max-width:32rem;font-size:.85rem}@media (width<=600px){.workbench-dialog header,.workbench-dialog footer{padding:12px}.workbench-dialog main{max-height:calc(100dvh - 225px);padding:14px}.workbench-dialog footer{flex-direction:column;align-items:stretch;gap:6px}.workbench-stack-layout{grid-template-columns:1fr}.workbench-dialog footer p{font-size:.75rem}.workbench-switches{gap:5px}.workbench-switches button{min-width:52px;padding:7px}.workbench-switches b{font-size:1.4rem}.workbench-switches span{font-size:.5rem}}@media (height<=500px){.workbench-dialog header{padding:8px 14px}.workbench-dialog footer{flex-direction:row;padding:8px 14px}.workbench-dialog footer p{display:none}.workbench-dialog main{max-height:calc(100dvh - 140px)}}.crossword-dialog{--cw-paper:var(--martin-paper,hsl(var(--card)));--cw-ink:var(--martin-ink,hsl(var(--foreground)));--cw-line:var(--martin-line,hsl(var(--border)));--cw-accent:var(--martin-gold,hsl(var(--primary)));--cw-soft:var(--martin-soft,hsl(var(--muted)));--cw-green:var(--martin-green,hsl(var(--primary)));border:2px solid var(--cw-accent);background:var(--cw-paper);width:min(800px,100vw - 20px);max-height:calc(100dvh - 20px);color:var(--cw-ink);font:inherit;box-shadow:0 14px 70px color-mix(in srgb,var(--cw-ink) 35%,transparent);border-radius:18px;margin:auto;padding:0;overflow:hidden}.crossword-dialog[open]{flex-direction:column;display:flex}.crossword-dialog::backdrop{background:color-mix(in srgb,var(--cw-ink) 65%,transparent);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.crossword-dialog header{border-bottom:1px solid var(--cw-line);justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;display:flex}.crossword-dialog h2{font:inherit;margin:0;font-size:25px;font-weight:700}.crossword-dialog header small{color:var(--cw-accent);letter-spacing:.14em;font-size:11px}.crossword-dialog button{font:inherit;cursor:pointer;border:1px solid var(--cw-line);background:var(--cw-soft);min-height:44px;color:var(--cw-ink);border-radius:10px;padding:8px 14px;font-weight:600}.crossword-dialog header button{flex-shrink:0;padding:10px}.crossword-dialog button:disabled{opacity:.5;cursor:default}.crossword-dialog :is(button,input,summary):focus-visible{outline:3px solid var(--cw-accent);outline-offset:3px}.crossword-scroll{overscroll-behavior:contain;scrollbar-color:var(--cw-accent) var(--cw-paper);scrollbar-width:thin;padding:14px 22px;overflow:auto}.crossword-scroll::-webkit-scrollbar{width:9px}.crossword-scroll::-webkit-scrollbar-thumb{background:var(--cw-accent);border:2px solid var(--cw-paper);border-radius:8px}.crossword-scroll::-webkit-scrollbar-track{background:var(--cw-paper)}.crossword-scroll>p{margin:0 0 18px;font-size:15px;line-height:1.5}.crossword-art{border:1px solid var(--cw-line);border-radius:8px;margin:0 0 18px;overflow:hidden}.crossword-art summary{cursor:pointer;background:var(--cw-soft);min-height:44px;padding:10px 12px;font-size:14px;font-weight:600}.crossword-art img{object-fit:contain;background:var(--cw-soft);width:100%;height:auto;max-height:360px;display:block}.crossword-rows{gap:22px;margin:0;padding:0;list-style:none;display:grid}.crossword-rows li{border-bottom:1px solid var(--cw-line);min-width:0;padding-bottom:18px}.crossword-rows label{margin-bottom:10px;font-size:17px;line-height:1.5;display:block}.crossword-rows label b{color:var(--cw-accent);margin-right:6px}.crossword-cells{grid-template-columns:repeat(var(--cw-columns),minmax(0,1fr));max-width:calc(var(--cw-columns) * 35px);gap:4px;margin-bottom:10px;display:grid}.crossword-cells>span{aspect-ratio:1;border:1px solid var(--cw-line);background:var(--cw-soft);border-radius:4px;place-items:center;font-size:clamp(12px,2.6vw,21px);font-weight:700;display:grid;position:relative}.crossword-cells>span[data-secret]{border:2px solid var(--cw-accent);background:color-mix(in srgb,var(--cw-accent) 22%,var(--cw-paper))}.crossword-cells small{color:var(--cw-accent);background:var(--cw-paper);font-size:8px;position:absolute;bottom:-4px;right:-3px}.crossword-entry{gap:8px;width:100%;min-width:0;max-width:460px;display:flex}.crossword-rows form{min-width:0}.crossword-entry input{border:1px solid var(--cw-line);background:var(--cw-paper);width:0;min-width:0;color:var(--cw-ink);font:inherit;border-radius:8px;flex:1 1 0;padding:10px;font-size:17px}.crossword-entry button,.crossword-dialog .crossword-return{background:var(--cw-green);color:var(--cw-paper)}.crossword-correct{color:var(--cw-green);align-items:center;gap:6px;margin:0;font-size:14px;display:flex}.crossword-feedback{color:var(--cw-ink);margin:6px 0;font-size:14px;line-height:1.4}.crossword-feedback:empty{display:none}.crossword-rows summary{cursor:pointer;min-height:36px;color:var(--cw-green);align-items:center;font-size:14px;text-decoration:underline;display:flex}.crossword-rows details p{margin:5px 0;font-size:14px}.crossword-dialog footer{background:var(--cw-soft);border-top:1px solid var(--cw-line);flex-shrink:0;padding:12px 22px}.crossword-secret{flex-wrap:wrap;align-items:center;gap:10px;font-size:16px;display:flex}.crossword-secret strong{letter-spacing:.04em;overflow-wrap:anywhere;font-size:22px}.crossword-dialog footer p{margin:6px 0 10px;font-size:13px}.crossword-return{width:100%}@media (width<=480px){.crossword-dialog header,.crossword-dialog footer{padding:10px 14px}.crossword-scroll{padding:12px 14px}.crossword-dialog h2{font-size:21px}.crossword-cells{gap:3px}.crossword-secret strong{font-size:19px}.crossword-rows label{font-size:16px}}.martin-game{--martin-paper:#fffaf0;--martin-ground:#f3eadb;--martin-ink:#293c3c;--martin-muted:#65726b;--martin-gold:#b36929;--martin-line:#dcd0b8;--martin-green:#365c4b;--martin-white:#fff;--martin-soft:#efe2c7;--martin-night:#233d42;background:var(--martin-ground);min-height:100dvh;color:var(--martin-ink);font-family:Fredoka CZ,sans-serif}.martin-game *{box-sizing:border-box}.martin-game button,.martin-game a{touch-action:manipulation}.martin-game button:focus-visible,.martin-game a:focus-visible,.martin-game summary:focus-visible{outline:3px solid var(--martin-gold);outline-offset:4px}.martin-header{justify-content:space-between;align-items:center;gap:16px;max-width:1440px;margin:auto;padding:22px 32px;display:flex}.martin-brand{color:inherit;align-items:center;gap:12px;font-size:24px;font-weight:650;line-height:1.1;text-decoration:none;display:flex}.martin-brand>svg{width:36px;height:36px;color:var(--martin-gold)}.martin-brand small{margin-top:5px;font-size:15px;font-weight:450;display:block}.martin-counter{border:1px solid var(--martin-line);white-space:nowrap;border-radius:24px;align-items:center;gap:8px;padding:10px 16px;font-size:15px;display:flex}.martin-counter svg{color:var(--martin-gold);width:20px}.martin-progress{gap:8px;max-width:1376px;margin:0 auto 20px;padding:0 0 10px;display:flex;overflow-x:auto}.martin-progress>div{white-space:nowrap;background:var(--martin-paper);border:1px solid var(--martin-line);color:var(--martin-muted);border-radius:40px;flex:1;justify-content:center;align-items:center;gap:10px;padding:12px 15px;font-size:16px;display:flex}.martin-progress>div>span{border:1px solid;border-radius:50%;place-items:center;width:24px;height:24px;font-size:13px;display:grid}.martin-progress>div.current{background:var(--martin-gold);color:var(--martin-white);border-color:var(--martin-gold)}.martin-progress>div.complete{color:var(--martin-green);background:var(--martin-soft)}.martin-wrap{max-width:1440px;margin:auto;padding:0 32px}.martin-playing{grid-template-columns:minmax(0,2.4fr) minmax(400px,1fr)!important}.martin-playing .martin-paper{padding:16px}.martin-playing .martin-paper h1{font-size:29px}.martin-playing .martin-task,.martin-playing .martin-story{font-size:17px}.martin-playing .martin-art{box-shadow:none;background:0 0;overflow:visible}.martin-playing .martin-art-caption{background:var(--martin-night);border-radius:0 0 20px 20px}.martin-playing .martin-visual{border-radius:20px 20px 0 0}.martin-wrap:has(.martin-playing){max-width:1840px;padding:0 20px}.martin-playing .martin-paper{border-radius:20px}.martin-game{scrollbar-color:var(--martin-gold) var(--martin-ground)}.martin-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:start;gap:24px;display:grid}.martin-art{background:var(--martin-night);box-shadow:0 12px 30px color-mix(in srgb,var(--martin-ink) 10%,transparent);border-radius:26px;position:sticky;top:20px;overflow:hidden}.martin-art img{aspect-ratio:3/2;object-fit:cover;width:100%;height:auto;display:block}.martin-art-caption{color:var(--martin-paper);justify-content:space-between;align-items:center;gap:12px;padding:20px 24px;display:flex}.martin-art-caption>span{letter-spacing:1.5px;max-width:180px;font-size:11px;font-weight:600}.martin-lanterns{gap:8px;display:flex}.martin-lanterns svg{width:22px;stroke:color-mix(in srgb,var(--martin-white) 25%,transparent)}.martin-lanterns .lit{stroke:var(--martin-soft);fill:var(--martin-gold)}.martin-paper{background:var(--martin-paper);border:1px solid var(--martin-line);border-radius:26px;min-width:0;padding:30px}.martin-eyebrow{color:var(--martin-gold);letter-spacing:1.2px;text-transform:uppercase;margin:0 0 10px;font-size:13px;font-weight:600}.martin-paper h1{text-wrap:balance;outline:none;margin:0 0 20px;font-size:clamp(26px,3vw,44px);font-weight:700;line-height:1.12}.martin-lead{margin:0 0 20px;font-size:20px;line-height:1.65}.martin-facts{flex-wrap:wrap;gap:8px;margin:24px 0;display:flex}.martin-facts span{border:1px solid var(--martin-line);border-radius:20px;padding:6px 10px;font-size:13px}.martin-primary{background:var(--martin-green);color:var(--martin-white);cursor:pointer;border:0;border-radius:16px;justify-content:center;align-items:center;gap:12px;width:100%;min-height:54px;padding:16px 20px;font-size:18px;font-weight:600;display:flex}.martin-primary:hover{filter:brightness(1.12)}.martin-small{color:var(--martin-muted);margin:18px 0 0;font-size:14px;line-height:1.6}.martin-story{margin-bottom:20px;font-size:18px;line-height:1.6}.martin-task{border-top:1px solid var(--martin-line);padding-top:16px;font-size:18px;line-height:1.55}.martin-task p{margin-bottom:14px}.martin-task strong{letter-spacing:.025em;font-weight:650}.martin-task li{margin-bottom:10px}.martin-controls{min-width:0;margin-top:24px}.martin-controls button{min-width:44px;min-height:44px}.martin-controls>div{width:100%;max-width:100%}.martin-feedback{color:var(--martin-gold);margin:12px 0;font-size:15px;line-height:1.5}.martin-hint-button,.martin-text-button{color:var(--martin-green);border:1px solid var(--martin-line);cursor:pointer;background:0 0;border-radius:14px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:48px;padding:10px;font-size:16px;display:flex}.martin-text-button{margin-top:10px}.martin-hint{background:var(--martin-soft);border-radius:14px;margin-top:12px;padding:16px;font-size:17px;line-height:1.5}.martin-success{background:var(--martin-soft);text-align:center;border-radius:18px;margin-top:24px;padding:24px}.martin-success>svg{color:var(--martin-gold);width:36px;height:36px;margin:0 auto 10px}.martin-success h2{margin-bottom:10px;font-size:24px;font-weight:650}.martin-success p{margin-bottom:20px;font-size:17px;line-height:1.5}.martin-map{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:18px 0;display:grid}.martin-map>div{background:var(--martin-soft);border:1px solid var(--martin-line);border-radius:12px;flex-direction:column;align-items:center;min-width:0;padding:10px 2px;display:flex}.martin-map span{font-size:30px}.martin-map strong{letter-spacing:.04em;font-size:11px}.martin-teacher{background:var(--martin-paper);border:1px solid var(--martin-line);border-radius:18px;margin:28px 0;padding:20px 24px;line-height:1.65}.martin-teacher summary{cursor:pointer;min-height:32px;font-weight:600}.martin-teacher p{margin:14px 0}.martin-teacher ol{padding-left:24px;list-style:decimal}.martin-footer{color:var(--martin-muted);justify-content:space-between;gap:16px;padding:28px 0;font-size:13px;display:flex}.martin-footer button{cursor:pointer;min-height:44px;text-decoration:underline}@media (width>=1500px){.martin-layout{grid-template-columns:1.15fr 1fr}.martin-paper{padding:38px}.martin-task{font-size:21px}.martin-story{font-size:20px}}@media (width<=1100px){.martin-playing{grid-template-columns:1fr!important}.martin-playing .martin-art{position:relative;top:0}.martin-playing .martin-paper{width:100%;max-width:760px;margin:auto}}@media (width<=1000px){.martin-header{padding:18px 20px}.martin-wrap{padding:0 20px}.martin-progress{margin-left:20px;margin-right:20px}.martin-layout{grid-template-columns:1fr;gap:18px}.martin-art{position:relative;top:0}.martin-art img{object-position:center 48%;max-height:350px}.martin-intro .martin-art img{max-height:none}.martin-paper{padding:28px}.martin-paper h1{font-size:34px}.martin-controls{max-width:460px;margin:24px auto 0}}@media (width<=520px){.martin-header{padding:16px 14px}.martin-brand{gap:7px;font-size:20px}.martin-brand small{font-size:11px}.martin-brand>svg{width:25px}.martin-counter{padding:8px 10px;font-size:13px}.martin-counter>span{display:none}.martin-progress{gap:6px;margin:0 14px 12px}.martin-progress>div{padding:8px 12px;font-size:13px}.martin-progress>div>span{width:20px;height:20px;font-size:11px}.martin-wrap{padding:0 12px}.martin-art{border-radius:18px}.martin-art img{max-height:230px}.martin-art-caption{padding:14px}.martin-lanterns{gap:5px}.martin-lanterns svg{width:18px}.martin-art-caption>span{font-size:9px}.martin-paper{border-radius:18px;padding:20px 16px}.martin-paper h1{font-size:28px}.martin-lead,.martin-task,.martin-story{font-size:17px}.martin-controls{margin-left:-8px;margin-right:-8px}.martin-controls .grid.grid-cols-4{gap:4px}.martin-controls .grid.grid-cols-4 button{width:54px;height:54px}.martin-footer{align-items:center;font-size:11px}.martin-teacher{padding:18px}.martin-primary{font-size:17px}}@media (prefers-reduced-motion:reduce){.martin-game *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.martin-active .martin-header{max-width:none;padding:10px 22px}.martin-active .martin-brand{font-size:19px}.martin-active .martin-brand small{font-size:12px}.martin-active .martin-brand>svg{height:28px}.martin-active .martin-counter{padding:6px 12px}.martin-active .martin-progress{gap:6px;max-width:none;margin:0 20px 8px;padding:0}.martin-active .martin-progress>div{padding:6px 10px;font-size:13px}.martin-active .martin-progress>div>span{width:20px;height:20px}.martin-active .martin-wrap{max-width:1920px;padding:0 20px}.martin-playfield{min-width:0}.martin-scene-heading{justify-content:space-between;align-items:center;gap:12px;margin:8px 0;display:flex}.martin-scene-heading h1{outline:none;margin:0;font-size:clamp(20px,2vw,28px);font-weight:650;line-height:1.2}.martin-story-popover{z-index:5;flex-shrink:0;position:relative}.martin-story-popover summary{cursor:pointer;border:1px solid var(--martin-line);background:var(--martin-paper);border-radius:12px;align-items:center;gap:8px;min-height:44px;padding:8px 14px;list-style:none;display:flex}.martin-story-popover summary::-webkit-details-marker{display:none}.martin-story-popover p{background:var(--martin-paper);border:1px solid var(--martin-line);border-radius:14px;width:min(360px,85vw);margin:6px 0;padding:20px;font-size:17px;line-height:1.6;position:absolute;top:100%;right:0;box-shadow:0 10px 30px #382c2433}.martin-game-dock{align-items:center;gap:24px;padding:14px 4px;display:flex}.martin-mission{flex:1;min-width:0;font-size:17px;line-height:1.4}.martin-mission>span{letter-spacing:.12em;color:var(--martin-gold);font-size:10px;font-weight:650}.martin-mission p{margin:2px 0}.martin-open-lock{background:var(--martin-night);border:2px solid var(--martin-gold);flex-shrink:0;width:auto;min-width:210px;min-height:52px;box-shadow:0 3px #172a2e}.martin-active .martin-footer{padding:8px 0;font-size:11px}.martin-lock-dialog{border:1px solid var(--martin-line);background:var(--martin-paper);color:var(--martin-ink);scrollbar-color:var(--martin-gold) var(--martin-paper);border-radius:22px;width:min(520px,100vw - 20px);max-height:calc(100dvh - 24px);margin:auto;padding:0;font-family:Fredoka CZ,sans-serif;overflow:auto}.martin-lock-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#172523a6}.martin-lock-sheet{padding:18px}.martin-lock-sheet>header{justify-content:space-between;align-items:center;gap:8px;display:flex}.martin-lock-sheet h2{font-size:22px;font-weight:650}.martin-close{background:var(--martin-soft);border:1px solid var(--martin-line);cursor:pointer;border-radius:50%;flex-shrink:0;place-items:center;width:44px;height:44px;display:grid}.martin-lock-task{margin:10px 0;font-size:15px;line-height:1.45}.martin-lock-dialog .martin-controls{max-width:440px;margin:12px auto 0}.martin-lock-dialog .lk-shell{width:100%;max-width:100%;padding:12px;min-width:0!important}.martin-lock-dialog .martin-success{margin:12px 0 0}@media (width<=600px){.martin-active .martin-header{padding:8px 12px}.martin-active .martin-brand small{font-size:10px}.martin-active .martin-wrap{padding:0 8px}.martin-active .martin-progress{margin:0 8px 5px}.martin-active .martin-progress>div{flex:none;padding:6px 9px}.martin-scene-heading{margin:4px 0}.martin-scene-heading h1{font-size:20px}.martin-story-popover summary{padding:6px 10px;font-size:13px}.martin-game-dock{flex-direction:column;align-items:stretch;gap:10px;padding:10px 4px}.martin-mission{font-size:16px}.martin-open-lock{width:100%;min-height:48px}.martin-lock-sheet{padding:12px}.martin-lock-dialog .martin-controls{margin:12px 0 0}}.illustrated-player{--playfield-width:1280px;box-sizing:border-box;background:var(--martin-ground,#f4ebdd);overscroll-behavior:none;flex-direction:column;align-items:center;gap:8px;min-width:0;height:100dvh;min-height:0;padding:clamp(8px,1.5vh,16px);display:flex;overflow:hidden}.illustrated-player-embedded{width:100%;height:100%}.illustrated-player [data-inventory-bar]{display:none}.illustrated-player>div:not(.game-progress-rail){flex:1;width:100%;min-height:0}.illustrated-player>.game-progress-rail{width:100%;min-height:32px;max-width:var(--playfield-width);color:inherit;background:0 0;flex:none;height:auto!important;position:relative!important;inset:auto!important}.illustrated-player>.game-progress-rail>div{max-width:none;min-height:32px;padding:0}.illustrated-scene{width:100%;height:100%;overflow:hidden;min-height:0!important;padding:0!important}.illustrated-scene>.martin-playfield{width:100%;height:100%;min-height:0;max-width:var(--playfield-width);grid-template-rows:auto minmax(100px,1fr) auto;grid-template-columns:minmax(0,1fr);margin:auto;display:grid;container-type:inline-size}.illustrated-scene .martin-scene-heading{min-width:0;min-height:40px;margin:0 0 8px}.illustrated-scene .martin-scene-heading h1{overflow-wrap:anywhere;font-size:clamp(20px,2.2vw,28px)}.illustrated-scene .martin-story-popover{z-index:10}.illustrated-scene .scene-further-hint{border-top:1px solid var(--martin-line);margin-top:12px;padding-top:8px}.illustrated-scene .scene-further-hint>summary{cursor:pointer;min-height:44px;color:var(--martin-green);align-items:center;text-decoration:underline;display:flex}.illustrated-scene .scene-further-hint>summary:focus-visible{outline:2px solid var(--martin-green);outline-offset:2px}.illustrated-scene .martin-story-content{overscroll-behavior:contain;background:var(--martin-paper);border:1px solid var(--martin-line);overflow-wrap:anywhere;border-radius:14px;width:min(360px,100vw - 32px);max-height:55dvh;margin-top:6px;padding:18px;font-size:17px;line-height:1.5;position:absolute;top:100%;right:0;overflow:auto;box-shadow:0 8px 28px #30261d33}.illustrated-scene .martin-story-content p{width:auto;box-shadow:none;font:inherit;line-height:inherit;background:0 0;border:0;margin:0 0 .7em;padding:0;position:static}.illustrated-scene .martin-visual{border-radius:14px 14px 0 0;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.illustrated-scene .mv-tools{flex:none;gap:6px;padding:5px 8px}.illustrated-scene .mv-viewer{flex:1;min-height:0;container-type:size}.illustrated-scene .mv-scroll{justify-content:center;align-items:center;min-height:0;display:flex;overflow:hidden;height:100%!important}.illustrated-scene .mv-canvas{-webkit-user-select:none;user-select:none;touch-action:manipulation;width:100%;max-width:100%;height:100%;min-height:0;max-height:100%}.illustrated-scene .mv-canvas.mv-pan-active,.illustrated-scene .mv-canvas.mv-loupe-active{touch-action:none}.illustrated-scene .mv-instruction{text-align:right;max-width:220px;font-size:12px;line-height:1.3}.illustrated-scene .mv-fullscreen{border-radius:0;width:100vw!important;height:100dvh!important}.illustrated-scene .martin-game-dock{border:1px solid var(--martin-line);background:var(--martin-paper);border-top:0;border-radius:0 0 14px 14px;align-items:stretch;gap:14px;min-height:0;max-height:40dvh;margin:0;padding:12px 14px;overflow:hidden}.illustrated-scene .martin-mission{overscroll-behavior:contain;overflow-wrap:anywhere;min-height:0;font-size:16px;line-height:1.4;overflow:auto}.illustrated-scene .martin-mission p+p{margin-top:.6em}.illustrated-scene .martin-open-lock{align-self:center;width:auto;min-width:160px;min-height:48px;padding:10px 16px;font-size:16px}.illustrated-scene .martin-lock-dialog{overscroll-behavior:contain}.illustrated-scene[data-numeric-landscape] [data-numeric-keypad]>.grid{grid-template-columns:repeat(4,44px);justify-content:center}.illustrated-scene[data-numeric-landscape] [data-numeric-keypad]>.grid>:nth-child(10){grid-area:1/4}.illustrated-scene[data-numeric-landscape] [data-numeric-keypad]>.grid>:nth-child(11){grid-area:2/4}.illustrated-scene[data-numeric-landscape] [data-numeric-keypad]>.grid>:nth-child(12){grid-area:3/4}.illustrated-scene[data-numeric-landscape] [data-numeric-keypad] button{width:44px;min-width:44px;height:44px;min-height:44px}.illustrated-scene[data-numeric-landscape] [data-numeric-keypad]{margin-inline:auto}@media (height<=500px){.illustrated-scene [data-numeric-keypad]{padding:8px}.illustrated-scene .numeric-keypad-title{display:none}.illustrated-scene .numeric-keypad-display{margin-bottom:6px;padding-block:4px}}.illustrated-scene .martin-lock-dialog[data-adventure=luna]{--martin-paper:#071a26;--martin-soft:#123340;--martin-line:#458d98;--martin-ink:#e4f4f4;color:#e4f4f4;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;scrollbar-color:#458d98 #071a26}.illustrated-scene .martin-lock-dialog[data-adventure=luna] .martin-close{color:#e4f4f4;background:#123340;border-color:#458d98}.illustrated-scene .martin-lock-sheet>header{z-index:5;background:var(--martin-paper);padding:4px 0 8px;position:sticky;top:-1px}.illustrated-scene .martin-lock-sheet>p[role=status]:empty{display:none}.illustrated-scene .martin-lock-sheet>p[role=status]:not(:empty){margin:10px 0;font-size:16px;line-height:1.4}.illustrated-lock-beside{--playfield-width:1540px}.illustrated-lock-beside>.martin-playfield{grid-template-columns:minmax(0,1fr) clamp(300px,31%,380px);column-gap:14px}.illustrated-lock-beside .martin-scene-heading{grid-column:1/-1}.illustrated-lock-beside .martin-visual{grid-area:2/1}.illustrated-lock-beside .martin-game-dock{grid-area:3/1;max-height:30dvh}.illustrated-lock-beside .martin-open-lock{display:none}.illustrated-lock-beside .martin-lock-dialog[open]{grid-area:2/2/4;width:100%;max-width:none;height:100%;max-height:100%;margin:0;position:relative;inset:auto;overflow:auto}.illustrated-lock-beside .martin-lock-sheet{padding:10px}.illustrated-lock-beside .martin-lock-sheet h2{font-size:20px}.illustrated-lock-beside .mv-tool-buttons button>span,.illustrated-lock-beside .mv-instruction{display:none}.illustrated-lock-beside [data-lock-shell]>header{margin-bottom:8px}.illustrated-lock-beside .martin-wood-register{margin-bottom:12px}.illustrated-ending-actions{flex-direction:column;flex:0 300px;gap:8px;min-width:240px;min-height:0;display:flex;overflow:auto}.illustrated-complete{color:var(--martin-green);align-items:center;gap:7px;font-size:15px;font-weight:600;display:flex}.illustrated-ending-actions .martin-primary{min-height:48px;padding:10px 14px;font-size:16px}.illustrated-ending-links{color:var(--martin-green);flex-wrap:wrap;gap:8px;font-size:14px;display:flex}.illustrated-ending-links a,.illustrated-ending-links button{border:1px solid var(--martin-line);background:var(--martin-paper);border-radius:10px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:8px 12px;font-weight:600;display:flex}.certificate-ready{align-items:center;gap:6px;margin-top:8px;font-size:14px;text-decoration:underline;display:flex}.certificate-download [role=alert]{margin-top:8px;font-size:14px;line-height:1.4}.scene-edit-text{min-height:32px;color:var(--martin-green);margin-top:6px;font-size:13px;text-decoration:underline;display:block}@container (width<=760px){.illustrated-scene .mv-tool-buttons button>span,.illustrated-scene .mv-instruction{display:none}.illustrated-scene .mv-tool-buttons button{justify-content:center;width:44px;padding:7px}.illustrated-scene .martin-scene-heading h1{font-size:21px}.illustrated-scene .martin-game-dock{flex-direction:column;gap:8px;max-height:44dvh;padding:10px 12px}.illustrated-scene .martin-mission{flex:auto;max-height:18dvh}.illustrated-scene .martin-open-lock{flex-shrink:0;width:100%}.illustrated-ending-actions{flex:0 auto;min-width:0}.illustrated-complete{display:none}}@media (height<=550px){.illustrated-player{gap:4px;padding:6px}.illustrated-player>.game-progress-rail,.illustrated-player>.game-progress-rail>div{min-height:32px}.illustrated-scene .martin-scene-heading{min-height:32px;margin-bottom:4px}.illustrated-scene .martin-game-dock{max-height:32dvh}.illustrated-scene .mv-tools{padding:2px 6px}.illustrated-scene .mv-instruction{display:none}}.illustrated-scene[data-compact] .martin-visual{position:relative}.illustrated-scene[data-compact] .mv-tools{z-index:6;flex-direction:row;align-items:center;gap:4px;top:6px;left:6px;background:0 0!important;padding:0!important;position:absolute!important}.illustrated-scene[data-compact] .mv-tools .mv-tool-buttons{gap:4px;width:auto}.illustrated-scene[data-compact] .mv-tools button,.illustrated-scene[data-compact] .mv-tool-buttons button{color:#fff;border-color:#ffffff59;border-radius:8px;flex:0 0 44px;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;background:#140e0a8c!important}.illustrated-scene[data-compact] .mv-tool-buttons button>span,.illustrated-scene[data-compact] .mv-instruction{display:none}.illustrated-scene[data-compact] .mv-tool-buttons button>svg{width:17px;height:17px}.illustrated-scene[data-compact] .mv-fullscreen .mv-tools{top:10px;left:10px}.illustrated-scene[data-compact] .martin-scene-heading{min-height:0;margin-bottom:4px}.illustrated-scene[data-compact] .martin-scene-heading h1{font-size:18px;line-height:1.2}.illustrated-scene[data-heading=off] .martin-scene-heading{min-height:0;margin:0 0 4px}.illustrated-scene[data-heading=off] .martin-scene-heading h1{display:none}.illustrated-scene[data-layout=side]>.martin-playfield{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr) clamp(240px,34%,380px);gap:0 8px}.illustrated-scene[data-layout=side] .martin-scene-heading{grid-area:1/2}.illustrated-scene[data-layout=side] .martin-visual{border-radius:12px;grid-area:1/1/3}.illustrated-scene[data-layout=side] .martin-game-dock{border-top:1px solid var(--martin-line);border-radius:12px;flex-direction:column;grid-area:2/2;gap:6px;height:100%;max-height:none;padding:8px 10px}.illustrated-scene[data-layout=side] .martin-mission{flex:auto;min-height:0;max-height:none;overflow:auto}.illustrated-scene[data-layout=side] .martin-open-lock{flex-shrink:0;width:100%;min-width:0;min-height:44px}.illustrated-scene[data-layout=side].illustrated-lock-beside>.martin-playfield{grid-template-columns:minmax(0,1fr) clamp(260px,40%,420px)}.illustrated-scene[data-layout=side].illustrated-lock-beside .martin-scene-heading,.illustrated-scene[data-layout=side].illustrated-lock-beside .martin-game-dock{display:none}.illustrated-scene[data-layout=side].illustrated-lock-beside .martin-visual{grid-row:1/3}.illustrated-scene[data-layout=side].illustrated-lock-beside .martin-lock-dialog[open]{border-radius:12px;grid-area:1/2/3}.illustrated-scene[data-layout=side][data-compact].illustrated-lock-beside .martin-lock-sheet{padding:8px}.illustrated-scene[data-layout=side][data-compact].illustrated-lock-beside .martin-lock-sheet h2{font-size:17px}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-sheet{padding:8px 10px}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-sheet>header{margin-bottom:4px}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-sheet h2{font-size:16px}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-close{width:36px;height:36px}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-dialog [data-lock-shell]{border-radius:18px;padding:10px!important}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-dialog [data-lock-shell]>header{gap:6px;margin-bottom:8px;padding:2px 0 6px}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-dialog [data-lock-shell]>header>span:first-child,.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-dialog [data-lock-shell]>header h2{display:none}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-dialog [data-lock-shell]>header p{margin:0;font-size:13px}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-dialog [data-lock-shell]>header:not(:has(p,button)){display:none}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-sheet>p[role=status]:not(:empty){margin:6px 0;font-size:14px}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-wood-register{margin-bottom:10px;padding:8px}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-sheet{position:relative}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-sheet>header{clip-path:inset(50%);width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-sheet>header h2{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-close{width:44px;height:44px;box-shadow:0 1px 4px #0003}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-dialog [data-lock-shell]>header{justify-content:flex-end;align-items:center;min-height:44px;padding-right:0}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-dialog [data-lock-shell]>header>button[aria-label=Zavřít]{width:44px;height:44px}.illustrated-scene:is([data-compact],[data-layout=side]) .martin-lock-dialog [data-lock-shell]>header>div:empty{display:none}.illustrated-scene .lk-actions{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px;margin-top:12px;display:grid}.illustrated-scene .lk-actions>button{gap:4px;height:auto;min-height:48px;padding-inline:8px;font-size:13px}.illustrated-scene[data-layout=side] .martin-game-dock:has(.illustrated-ending-actions) .illustrated-ending-actions{flex:none;order:-1;min-width:0;overflow:visible}.illustrated-scene[data-layout=side] .martin-game-dock:has(.illustrated-ending-actions) .martin-mission{min-height:48px}.illustrated-scene[data-layout=side] .illustrated-ending-actions .martin-primary{min-height:44px}.scene-circuit-hud{flex-direction:column;flex:none;align-self:center;gap:8px;min-width:260px;max-width:420px;display:flex}.scene-circuit-valves{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.scene-circuit-valve{border:1.5px solid var(--martin-line);background:var(--martin-paper);border-radius:999px;align-items:center;gap:2px;padding:4px 8px 4px 5px;transition:background .3s,border-color .3s;display:inline-flex}.scene-circuit-valve[data-done]{background:color-mix(in srgb,#4fb3d9 16%,var(--martin-paper));border-color:#4fb3d9}.scene-circuit-count{margin-left:4px;font-size:15px}.scene-circuit-message{border-left:5px solid var(--martin-gold);background:color-mix(in srgb,var(--martin-gold) 10%,var(--martin-paper));border-radius:8px;margin:0;padding:8px 12px;font-size:15px;font-weight:700;line-height:1.35}.scene-circuit-hud[data-solved] .scene-circuit-message{background:color-mix(in srgb,#4fb3d9 18%,var(--martin-paper));border-color:#4fb3d9;font-size:17px}.scene-circuit-reset{border:1.5px solid var(--martin-line);background:var(--martin-paper);cursor:pointer;border-radius:10px;align-self:flex-start;min-height:40px;padding:6px 14px;font-weight:700}.scene-circuit-reset:disabled{opacity:.5;cursor:default}.illustrated-scene[data-layout=side] .scene-circuit-hud{width:100%;min-width:0;max-width:none}@media (width<=700px){.scene-circuit-hud{width:100%;min-width:0;max-width:none}}.author-lock-actions{flex-direction:column;flex-shrink:0;align-self:center;align-items:stretch;gap:6px;display:flex}.author-lock-settings{border:1.5px dashed var(--martin-line);background:var(--martin-paper);cursor:pointer;text-overflow:ellipsis;white-space:nowrap;border-radius:10px;max-width:260px;min-height:36px;padding:6px 12px;font-size:14px;font-weight:700;overflow:hidden}.author-lock-settings:hover{border-style:solid}.scene-circuit-fill{border:1.5px solid var(--martin-line);background:var(--martin-paper);border-radius:999px;height:22px;position:relative;overflow:hidden}.scene-circuit-fill>span{background:color-mix(in srgb,#4fb3d9 45%,var(--martin-paper));transition:width .25s;position:absolute;inset:0 auto 0 0}.scene-circuit-fill>em{text-align:center;font-size:13px;font-style:normal;font-weight:700;line-height:19px;display:block;position:relative}.scene-circuit-title{font-size:15px}.scene-circuit-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.scene-circuit-keys{opacity:.7;font-size:12px}.illustrated-scene .martin-game-dock{overscroll-behavior:contain;scrollbar-width:thin;overflow-y:auto}.illustrated-scene .martin-game-dock:has(.scene-circuit-hud) .martin-mission{flex:0 auto;min-height:64px;max-height:38%}.illustrated-scene[data-layout=side] .martin-game-dock:has(.scene-circuit-hud){justify-content:flex-start}.illustrated-scene .martin-game-dock .scene-circuit-hud,.illustrated-scene .martin-game-dock .author-lock-actions{flex-shrink:0}.illustrated-scene[data-scene-task][data-layout=stacked] .martin-game-dock{align-items:center;gap:10px;max-height:22dvh;padding:8px 14px}.illustrated-scene[data-scene-task][data-layout=stacked] .martin-mission{max-height:calc(22dvh - 16px);font-size:15px}.illustrated-scene[data-compact] .reading-caption>.reading-tools>button:not(.reading-open){display:none}.illustrated-scene[data-compact] .reading-caption>.reading-tools>.reading-open{border-color:#0000;min-width:44px;min-height:36px;padding:4px 8px}.illustrated-scene[data-compact] .reading-caption{margin-bottom:2px}.illustrated-scene[data-compact] .mv-tools button:disabled{display:none}.illustrated-scene[data-compact] .mv-tools button,.illustrated-scene[data-compact] .mv-tool-buttons button{border-radius:999px;flex-basis:40px;width:40px;min-width:40px;height:40px;min-height:40px}@media (orientation:portrait){.illustrated-scene[data-compact][data-layout=stacked]>.martin-playfield{grid-template-rows:auto auto minmax(0,1fr)}.illustrated-scene[data-compact][data-layout=stacked] .martin-visual:not(.mv-fullscreen){aspect-ratio:var(--scene-aspect,1.5);width:100%;max-height:58dvh}.illustrated-scene[data-compact][data-layout=stacked] .martin-game-dock{height:100%;max-height:none}.illustrated-scene[data-compact][data-layout=stacked] .martin-mission{flex:1 1 0;max-height:none}}.illustrated-lock-beside .martin-lock-sheet>header{clip-path:inset(50%);width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.illustrated-lock-beside .martin-lock-dialog [data-lock-shell]>header>button[aria-label=Zavřít]{width:44px;height:44px}.illustrated-scene .martin-visual[data-fill]:not(.mv-fullscreen) .mv-viewer{isolation:isolate;overflow:hidden}.illustrated-scene .martin-visual[data-fill]:not(.mv-fullscreen) .mv-viewer:before{content:"";z-index:-1;background:var(--scene-fill) center/cover no-repeat;filter:blur(22px)brightness(.55)saturate(1.1);pointer-events:none;position:absolute;inset:-28px}.illustrated-scene .martin-visual[data-fill]:not(.mv-fullscreen) .mv-scroll{background:0 0!important}.illustrated-lock-beside .martin-lock-dialog [data-lock-shell]>header>span:first-child,.illustrated-lock-beside .martin-lock-dialog [data-lock-shell]>header h2{display:none}.illustrated-lock-beside .martin-lock-dialog [data-lock-shell]>header{align-items:center;gap:6px;min-height:44px;margin-bottom:8px}.illustrated-lock-beside .martin-lock-dialog [data-lock-shell]>header p{margin:0;font-size:14px}.illustrated-scene[data-layout=stacked] .martin-game-dock .scene-circuit-hud{grid-template-columns:auto minmax(110px,1fr) auto;align-self:center;align-items:center;gap:6px 10px;max-width:560px;display:grid}.illustrated-scene[data-layout=stacked] .scene-circuit-hud .scene-circuit-valves{flex-wrap:nowrap;grid-area:1/1}.illustrated-scene[data-layout=stacked] .scene-circuit-hud .scene-circuit-fill{grid-area:1/2}.illustrated-scene[data-layout=stacked] .scene-circuit-hud .scene-circuit-actions{grid-area:1/3}.illustrated-scene[data-layout=stacked] .scene-circuit-hud .scene-circuit-message{grid-area:2/1/3/4;padding:6px 10px;font-size:15px;line-height:1.3}.illustrated-scene[data-layout=stacked] .scene-circuit-hud .scene-circuit-keys{display:none}.illustrated-scene[data-layout=stacked] .scene-circuit-hud .scene-circuit-reset{min-height:36px;padding:4px 12px}@media (width<=700px){.illustrated-scene[data-layout=stacked] .martin-game-dock .scene-circuit-hud{grid-template-columns:1fr auto;width:100%}.illustrated-scene[data-layout=stacked] .scene-circuit-hud .scene-circuit-valves{grid-area:1/1}.illustrated-scene[data-layout=stacked] .scene-circuit-hud .scene-circuit-actions{grid-area:1/2}.illustrated-scene[data-layout=stacked] .scene-circuit-hud .scene-circuit-fill{grid-area:2/1/3/3}.illustrated-scene[data-layout=stacked] .scene-circuit-hud .scene-circuit-message{grid-area:3/1/4/3}}.scene-card-board{--card-paper:var(--martin-paper);--card-ink:var(--martin-ink);--card-edge:var(--martin-line);--card-accent:var(--martin-green);font-family:Fredoka CZ,sans-serif}.scene-card-hit{cursor:pointer;touch-action:none;outline:none}.scene-card-hit[aria-disabled=true]{cursor:default}.scene-card-focus{fill:none;stroke:var(--card-accent);stroke-width:3px;opacity:0;pointer-events:none}.scene-card-hit:focus-visible .scene-card-focus,.scene-card-hit:focus-visible .scene-plaque-focus{opacity:1;stroke-width:4px}.scene-card-hit:not([aria-disabled=true]):hover .scene-card-focus{opacity:.75}.scene-card-stamp circle{fill:var(--card-accent);stroke:var(--card-paper);stroke-width:2px}.scene-card-stamp text{fill:var(--card-paper);font-size:22px;font-weight:600}.scene-tag-shadow{fill:var(--card-ink);opacity:.2}.scene-tag-paper{fill:var(--card-paper);stroke:var(--card-edge);stroke-width:1.5px}.scene-name-tag text{fill:var(--card-ink)}.scene-tag-rule{stroke:var(--card-edge);stroke-width:1px;opacity:.5}.scene-name-tag.is-selected .scene-tag-paper{stroke:var(--card-accent);stroke-width:4px}.scene-name-tag.is-selected{filter:drop-shadow(0 3px 2px color-mix(in srgb,var(--card-ink) 25%,transparent))}.scene-figure-hit{fill:#0000}.scene-plaque-focus{fill:none;stroke:var(--card-accent);stroke-width:2px;opacity:0}.scene-figure-target.is-ready .scene-plaque-focus{opacity:.75;stroke-dasharray:5 3}.scene-plaque-name,.scene-plaque-empty{fill:var(--card-ink)}.scene-plaque-empty{opacity:.55}.scene-pair-check{fill:none;stroke:var(--card-accent);stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}.scene-cards-hud{min-width:0;max-width:600px;color:var(--martin-ink);flex-direction:column;flex:420px;gap:7px;display:flex}.scene-cards-status{min-width:0;font-size:15px;line-height:1.4}.scene-cards-status small{opacity:.75;margin-top:3px;font-size:12px;display:block}.scene-cards-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.scene-cards-actions button,.scene-cards-hints summary{border:1px solid var(--martin-line);background:var(--martin-paper);min-height:44px;color:var(--martin-ink);cursor:pointer;white-space:normal;border-radius:7px;justify-content:center;align-items:center;gap:6px;padding:8px 12px;font:500 14px Fredoka CZ,sans-serif;display:inline-flex}.scene-cards-actions button:disabled{opacity:.4;cursor:default}.scene-cards-actions button:focus-visible,.scene-cards-hints summary:focus-visible{outline:2px solid var(--martin-green);outline-offset:3px}.scene-cards-actions .scene-cards-primary{background:var(--martin-green);color:var(--martin-paper);border-color:var(--martin-green)}.scene-cards-actions .scene-cards-reset{background:0 0;border-color:#0000;padding-inline:6px;font-size:12px}.scene-cards-hints{position:relative}.scene-cards-hints summary{list-style:none}.scene-cards-hints summary::-webkit-details-marker{display:none}.scene-cards-hints[open]>div{z-index:12;background:var(--martin-paper);border:1px solid var(--martin-line);width:min(340px,100vw - 40px);max-height:40dvh;box-shadow:0 5px 20px color-mix(in srgb,var(--martin-ink) 15%,transparent);scrollbar-color:var(--martin-line) var(--martin-paper);scrollbar-width:thin;border-radius:8px;padding:14px;font-size:15px;line-height:1.5;position:absolute;bottom:calc(100% + 8px);right:0;overflow:auto}.scene-cards-hints p+p{margin-top:10px}.illustrated-scene[data-scene-cards] .martin-game-dock{align-items:center;gap:18px;max-height:25dvh;padding:10px 14px;overflow:visible}.illustrated-scene[data-scene-cards] .martin-mission{flex:300px;max-height:18dvh;font-size:15px}.illustrated-scene[data-scene-cards] .reading-caption,.illustrated-scene[data-scene-cards] .mv-instruction{display:none}.illustrated-scene[data-scene-cards] .mv-tools{flex-wrap:wrap}.scene-mobile-tags{display:none}@media (width<=700px){.scene-name-bank{display:none}.mv-fullscreen .scene-name-bank{display:initial}.scene-mobile-tags{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.scene-mobile-tags button{border:1px solid var(--martin-line);background:var(--martin-paper);min-height:44px;color:var(--martin-ink);box-shadow:1px 2px 0 color-mix(in srgb,var(--martin-ink) 12%,transparent);border-radius:4px;justify-content:center;align-items:center;gap:5px;padding:8px 10px;font:500 16px Fredoka CZ,sans-serif;display:flex}.scene-mobile-tags button[aria-pressed=true]{outline:2px solid var(--martin-green);outline-offset:-2px}.scene-mobile-tags button:disabled{opacity:.4;box-shadow:none}.illustrated-scene[data-scene-cards] .martin-visual:not(.mv-fullscreen){flex:none;height:clamp(250px,38dvh,340px);min-height:0}.illustrated-scene[data-scene-cards] .martin-playfield{flex:none;min-height:0}.illustrated-scene[data-scene-cards] .mv-tools{position:relative}.illustrated-scene[data-scene-cards] .mv-viewer{min-height:0}.illustrated-scene[data-scene-cards] .martin-game-dock{flex-direction:column;align-items:stretch;gap:8px;max-height:none;padding:10px}.illustrated-scene[data-scene-cards] .martin-mission{flex:0 auto;max-height:none;font-size:14px}.scene-cards-hud{flex:0 auto;gap:5px;max-width:none}.scene-cards-status{font-size:14px}.scene-cards-status small{margin-left:8px;display:inline}.scene-cards-actions{gap:5px}.scene-cards-actions button,.scene-cards-hints summary{padding:7px 9px;font-size:13px}.illustrated-scene[data-scene-cards][data-scene-task][data-layout]>.martin-playfield{grid-template-rows:auto auto auto;align-content:start;height:auto}.illustrated-scene[data-scene-cards][data-scene-task][data-layout] .martin-game-dock{align-items:stretch;gap:8px;max-height:none;padding:10px;overflow:visible}.illustrated-scene[data-scene-cards][data-scene-task][data-layout] .martin-mission{flex:none;height:auto;min-height:min-content;max-height:none;overflow:visible}.illustrated-scene[data-scene-cards][data-compact] .mv-tools{flex:none;top:auto;left:auto;padding:5px 6px!important;position:relative!important}.illustrated-scene[data-scene-cards][data-compact] .mv-viewer{height:0;min-height:0}}@media (prefers-reduced-motion:reduce){.scene-card-board *{transition:none!important}}.scene-fullscreen-controls{background:var(--martin-paper);max-height:36dvh;color:var(--martin-ink);flex:none;justify-content:center;padding:8px 14px;display:flex;overflow:auto}.scene-stamps-board{--stamp-wood:var(--martin-gold);--stamp-ink:var(--martin-ink)}.stamp-target{cursor:crosshair;touch-action:none;outline:none}.stamp-target[aria-disabled=true]{cursor:default}.stamp-target-focus{fill:#0000;stroke:#0000;stroke-width:2px}.stamp-target.is-ready .stamp-target-focus{stroke:var(--martin-green);stroke-dasharray:4 4}.stamp-target:focus-visible .stamp-target-focus,.stamp-target.is-ready:hover .stamp-target-focus{stroke:var(--martin-green);stroke-width:4px;stroke-dasharray:none}.stamp-paper-cover{fill:var(--martin-paper)}.stamp-strike{pointer-events:none;fill:var(--martin-gold);stroke:var(--martin-ink);stroke-width:2px;animation:.55s ease-in-out both stamp-press}.stamp-imprint.arriving{animation:.55s ease-out both stamp-ink}@keyframes stamp-press{0%{opacity:0;translate:0 -35px}30%{opacity:1;translate:0}60%{opacity:1;translate:0 2px}to{opacity:0;translate:0 -35px}}@keyframes stamp-ink{0%,30%{opacity:0}65%,to{opacity:1}}.stamp-tray{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;display:grid}.stamp-tray button{min-width:0;min-height:64px;color:var(--martin-ink);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;flex-direction:column;align-items:center;gap:2px;padding:2px;display:flex}.stamp-tray button img{object-fit:contain;pointer-events:none;width:52px;height:52px}.stamp-tray button span{font-size:11px}.stamp-tray button[aria-pressed=true]{border-color:var(--martin-green);background:color-mix(in srgb,var(--martin-green) 12%,var(--martin-paper))}.stamp-tray button:disabled{opacity:.35;cursor:default}.stamp-tray button:focus-visible{outline:2px solid var(--martin-green)}.stamp-word{letter-spacing:.1em;color:var(--martin-green);font-size:21px;font-weight:600}.illustrated-scene[data-scene-cards=stamps][data-scene-task] .martin-game-dock{max-height:32dvh}.illustrated-scene[data-scene-cards=stamps] .stamp-hud{max-width:640px}@media (width<=700px){.stamp-tray button img{width:40px;height:40px}.stamp-tray button span{font-size:10px}.stamp-tray{gap:2px}.illustrated-scene[data-scene-cards=stamps][data-scene-task][data-layout] .martin-game-dock{max-height:none}.stamp-word{font-size:19px}}@media (prefers-reduced-motion:reduce){.stamp-strike{display:none}.stamp-imprint.arriving{animation:none}}.terraquest-scene{overscroll-behavior:contain;height:100dvh;padding:calc(var(--progress-rail-h,100px) + 24px) 20px max(28px,env(safe-area-inset-bottom));color:#292036;background:radial-gradient(at 15% 0,#e5d8fb 0,#0000 48%),radial-gradient(at 100% 100%,#f5e4d2 0,#0000 45%),#f8f5fc;overflow:auto}.terraquest-content{width:100%;max-width:720px;margin:0 auto}.terraquest-brand{letter-spacing:.12em;color:#5e3680;align-items:center;gap:10px;margin:0 4px 20px;font-size:14px;font-weight:600;display:flex}.terraquest-brand-caption{overflow-wrap:anywhere;text-align:right;letter-spacing:0;color:#70617e;min-width:0;max-width:55%;margin-left:auto;font-size:13px;font-weight:400}.terraquest-story{background:#fffdfa;border:1px solid #dfd1eb;border-radius:24px;padding:clamp(20px,4vw,36px);box-shadow:0 18px 60px #48205f12}.terraquest-story-heading{flex-wrap:wrap;align-items:flex-start;gap:12px;margin-bottom:20px;display:flex}.terraquest-story h1{flex:1;min-width:200px;font-size:clamp(25px,4vw,34px);font-weight:600;line-height:1.15}.terraquest-scene .game-reading-text{overflow-wrap:anywhere;font-size:18px;line-height:1.65!important}.terraquest-scene .game-reading-text p{margin-bottom:1em}.terraquest-scene .game-reading-text img{object-fit:contain;border-radius:14px;width:auto;max-width:100%;margin:4px auto 20px;max-height:360px!important}.terraquest-scene .game-reading-text a{color:#4b246e;overflow-wrap:anywhere;background:#ede2ff;border:1px solid #baa0dc;border-radius:12px;padding:10px 14px;font-size:16px;display:inline-block}.terraquest-scene .lk-shell{border-radius:24px;width:100%;min-width:0;max-width:100%;box-shadow:0 18px 60px #48205f20!important}.terraquest-scene .lk-body-frame{min-width:0;max-width:100%}.terraquest-scene .lk-shell h2{white-space:normal!important;overflow:visible!important}.terraquest-scene .lk-shell .overflow-y-auto{max-height:none!important;overflow:visible!important}.terraquest-scene .lk-shell .game-reading-text{padding:8px 4px 16px}.terraquest-scene input,.terraquest-scene textarea{min-height:48px;font-size:18px!important}.terraquest-scene button{min-height:44px}.terraquest-continue{color:#fff;background:#623d83;border-radius:14px;justify-content:center;align-items:center;gap:12px;width:100%;margin-top:26px;padding:14px 20px;font-size:18px;font-weight:500;display:flex}.terraquest-continue:hover{background:#4e2c6d}.terraquest-scene :focus-visible{outline-offset:4px;outline:3px solid #ac7de1}.terraquest-footer{text-align:center;color:#756980;margin:20px 12px 0;font-size:13px}.terraquest-trophy{color:#8d5d14;background:#f8e9c8;border-radius:50%;place-items:center;width:80px;height:80px;margin-bottom:24px;display:grid}.terraquest-team{margin-top:20px;font-weight:600}@media (width<=600px){.terraquest-scene .lk-shell>header{grid-template-columns:44px minmax(0,1fr);display:grid}.terraquest-scene .lk-shell>header>div.min-w-0{min-width:0}.terraquest-scene .lk-shell>header>[role=group]{grid-column:1/-1}.terraquest-scene .lk-shell>header>div.shrink-0{margin-left:auto}.terraquest-scene .lk-shell h2{font-size:19px}.terraquest-scene{padding-left:12px;padding-right:12px;padding-top:calc(var(--progress-rail-h,100px) + 16px)}.terraquest-brand{margin-bottom:14px}.terraquest-brand-caption{font-size:12px}.terraquest-story{border-radius:20px}.terraquest-scene .game-reading-text{font-size:17px}}.terraquest-scene.quest-appearance,.tq-author-device.quest-appearance,.quest-theme-sample.quest-appearance{--q-ground:var(--quest-classic-ground);--q-tint:var(--quest-classic-tint);--q-accent:var(--quest-classic-accent);--q-label:var(--q-accent);--q-line:var(--quest-line);color:hsl(var(--quest-ink));background-color:hsl(var(--q-ground));background-image:radial-gradient(ellipse at 0 0,hsl(var(--q-tint)/.75),transparent 60%),radial-gradient(ellipse at 100% 100%,hsl(var(--q-tint)/.35),transparent 50%);scrollbar-width:thin;scrollbar-color:hsl(var(--q-label)/.6) hsl(var(--q-ground))}.quest-appearance[data-quest-theme=parchment]{--q-ground:var(--quest-parchment-ground);--q-tint:var(--quest-parchment-tint);--q-accent:var(--quest-parchment-accent);background-image:linear-gradient(hsl(var(--q-accent)/.04) 1px,transparent 1px),linear-gradient(90deg,hsl(var(--q-accent)/.04) 1px,transparent 1px),radial-gradient(ellipse at 0 0,hsl(var(--q-tint)/.75),transparent 70%);background-size:32px 32px,32px 32px,100% 100%}.quest-appearance[data-quest-theme=midnight]{--q-ground:var(--quest-midnight-ground);--q-tint:var(--quest-midnight-tint);--q-accent:var(--quest-midnight-accent);--q-label:var(--quest-midnight-label);background-image:radial-gradient(circle at 85% 8%,hsl(var(--q-label)/.16),transparent 30%),radial-gradient(ellipse at 0 100%,hsl(var(--q-tint)),transparent 65%)}.quest-appearance[data-quest-theme=forest]{--q-ground:var(--quest-forest-ground);--q-tint:var(--quest-forest-tint);--q-accent:var(--quest-forest-accent);background-image:radial-gradient(ellipse at 0 0,hsl(var(--q-tint)/.8),transparent 65%),repeating-linear-gradient(125deg,transparent 0 48px,hsl(var(--q-accent)/.035) 48px 49px)}.quest-appearance .terraquest-brand,.quest-appearance .terraquest-brand-caption,.quest-appearance .terraquest-footer,.quest-appearance .tq-author-brand,.quest-appearance .tq-author-brand>span,.quest-appearance .tq-author-device-footer{color:hsl(var(--q-label))}.quest-appearance .terraquest-story,.quest-appearance .tq-author-card{background:hsl(var(--quest-paper));color:hsl(var(--quest-ink));border-color:hsl(var(--q-accent)/.22)}.quest-appearance .terraquest-continue,.quest-appearance .tq-author-submit{background:hsl(var(--q-accent));color:hsl(var(--primary-foreground))}.quest-appearance .terraquest-continue:hover,.quest-appearance .tq-author-submit:hover{filter:brightness(.92)}.quest-appearance .tq-author-kind,.quest-appearance .tq-author-kind>button,.quest-appearance .tq-author-edit-tag,.quest-appearance .tq-author-title>svg{color:hsl(var(--q-accent))}.quest-appearance .tq-author-kind>button,.quest-appearance .tq-author-mission{background:hsl(var(--q-ground));color:hsl(var(--q-label))}.quest-appearance .tq-author-mission span,.quest-appearance .tq-author-mission small{color:inherit}.quest-appearance .tq-author-edit:hover{background:hsl(var(--q-accent)/.05);border-color:hsl(var(--q-accent)/.5)}.quest-appearance .tq-author-progress{background:hsl(var(--q-label)/.18)}.quest-appearance .tq-author-progress span{background:hsl(var(--q-label))}.quest-appearance :focus-visible{outline:3px solid hsl(var(--q-accent));outline-offset:3px}.quest-appearance .terraquest-story h1{overflow-wrap:anywhere;min-width:min(200px,100%)}@media (width<=600px){.quest-appearance .terraquest-story-heading h1{flex-basis:100%;margin-bottom:4px}}.quest-theme-picker{border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--card-foreground));border-radius:12px}.quest-theme-picker summary{cursor:pointer;min-height:44px;padding:10px 12px;font-size:13px;font-weight:600}.quest-theme-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 12px 12px;display:grid}.quest-theme-options button{text-align:left;border:2px solid hsl(var(--border));border-radius:12px;min-width:0;padding:0;overflow:hidden}.quest-theme-options button[aria-pressed=true]{border-color:hsl(var(--primary));box-shadow:0 0 0 1px hsl(var(--primary))}.quest-theme-sample{justify-content:center;align-items:center;gap:8px;height:76px;padding:10px;display:flex}.quest-theme-sample>svg{color:hsl(var(--q-label));flex-shrink:0}.quest-theme-sample>span{background:hsl(var(--quest-paper));color:hsl(var(--quest-ink));border-radius:8px;padding:8px 12px;font-size:12px}.quest-theme-name{padding:7px 9px 0;font-size:12px;font-weight:600;display:block}.quest-theme-note{color:hsl(var(--muted-foreground));padding:2px 9px 9px;font-size:11px;line-height:1.4;display:block}.quest-theme-help{color:hsl(var(--muted-foreground));padding:0 12px 12px;font-size:12px;line-height:1.5}.tq-author-appearance{width:min(100%,720px);margin:0 auto 16px}@media (forced-colors:active){.quest-appearance,.quest-theme-options button{border:1px solid canvastext}.quest-theme-options button[aria-pressed=true]{outline:2px solid highlight}}.reward-stamp{z-index:90;cursor:pointer;background:radial-gradient(circle,#211a128c,#211a1233 60%,#0000 75%);place-content:center;justify-items:center;gap:14px;padding:16px;animation:2.6s both reward-stamp-veil;display:grid;position:fixed;inset:0}.reward-stamp-card{aspect-ratio:1;filter:drop-shadow(0 14px 22px #1d140c80);width:min(46vmin,260px);animation:2.6s cubic-bezier(.2,.9,.3,1) both reward-stamp-press;position:relative}.reward-stamp-card img{object-fit:contain;-webkit-user-select:none;user-select:none;width:100%;height:100%}.reward-stamp-emoji{background:#fff6dc;border-radius:12px;place-items:center;width:100%;height:100%;font-size:min(26vmin,150px);display:grid}.reward-stamp-card i{opacity:0;border:3px solid #f7e3bae6;border-radius:50%;animation:2.6s ease-out both reward-stamp-ring;position:absolute;inset:-14%}.reward-stamp p{color:#293d3d;text-align:center;background:#fffaf0;border-radius:999px;margin:0;padding:8px 16px;font-size:clamp(16px,2.6vmin,20px);animation:2.6s both reward-stamp-label;box-shadow:0 4px 14px #1d140c59}@keyframes reward-stamp-veil{0%,to{opacity:0}8%,86%{opacity:1}}@keyframes reward-stamp-press{0%{opacity:0;transform:scale(2.6)rotate(-16deg)}14%{opacity:1;transform:scale(.9)rotate(-5deg)}20%{transform:scale(1.06)rotate(-5deg)}26%,84%{opacity:1;transform:scale(1)rotate(-5deg)}to{opacity:0;transform:translateY(46vh)scale(.2)rotate(8deg)}}@keyframes reward-stamp-ring{0%,13%{opacity:0;transform:scale(.6)}16%{opacity:.9}40%,to{opacity:0;transform:scale(1.25)}}@keyframes reward-stamp-label{0%,22%{opacity:0;transform:translateY(8px)}32%,84%{opacity:1;transform:none}to{opacity:0}}@media (prefers-reduced-motion:reduce){.reward-stamp,.reward-stamp-card,.reward-stamp-card i,.reward-stamp p{animation:2.6s linear both reward-stamp-veil}.reward-stamp-card i{display:none}}
