.game-screen .story-dialog[open]{grid-template-columns:minmax(74px,21%) minmax(0,1fr);align-items:end;gap:8px 14px;display:grid}.story-dialog .story-portrait{aspect-ratio:160/144;width:100%;height:auto;box-shadow:none;background:0 0;border:0}.story-dialog .story-face{align-self:end}.story-dialog .story-face strong{margin:3px 0 0}.story-dialog .story-text{color:#322725;background:#fff3d4;border:1px solid #a68a62;border-radius:12px 12px 12px 2px;min-height:3em;margin:0 0 8px;padding:9px 13px;font-size:clamp(16px,1.4vw,20px);line-height:1.4;position:relative}.story-dialog[data-illustrated=true]{max-height:min(78dvh,590px)}.story-prints{aspect-ratio:3/2;grid-column:1/-1;width:min(92%,41vh);margin:3px auto 5px;position:relative}.story-print{background-repeat:no-repeat;background-size:200% 200%;background-origin:padding-box;border:4px solid #fff2d6;position:absolute;inset:0;box-shadow:1px 3px 5px #34221b66}.story-print.previous{transform:translate(-2%,-1%)rotate(-5deg)}.story-print.current{transform:rotate(1deg)}.story-dialog[data-calm=false] .story-print.current{animation:.32s ease-out both paper-arrive}@keyframes paper-arrive{0%{opacity:.2;transform:translate(4%,-5%)rotate(5deg)}to{opacity:1;transform:rotate(1deg)}}@media (prefers-reduced-motion:reduce){.story-dialog[data-calm] .story-print.current{animation:none}}@media (width<=600px){.game-screen .story-dialog[open]{grid-template-columns:66px minmax(0,1fr);gap:5px 8px}.story-dialog .story-actions{flex-wrap:wrap;gap:4px}.story-dialog .story-actions button{min-width:0;padding:5px}}.game-screen .story-dialog[data-illustrated=true]{box-shadow:none;background:0 0;border:none;outline:none;max-height:82dvh;padding:8px;overflow-y:auto}.story-dialog[data-illustrated=true] .story-prints{width:min(91%,57vh);margin:8px 0 3px 4%}.story-dialog[data-illustrated=true] .story-face{filter:drop-shadow(0 2px 2px #1f191d)}.story-dialog[data-illustrated=true] .story-face strong{color:#ffebc5;background:#2f2522;border-radius:2px;padding:2px 9px;display:inline-block}.story-dialog[data-illustrated=true] .story-actions{background:#352a27f2;border-radius:3px;padding:3px 6px}.story-dialog[data-illustrated=true] .story-actions>span,.story-dialog[data-illustrated=true] .story-skip{color:#f0dfc0}:root{color:#f0dfb9;font-synthesis:none;background:#211d27;font-family:Trebuchet MS,Arial,sans-serif;font-size:16px}*{box-sizing:border-box}body{background:#211d27;margin:0}button,select{font:inherit}button{cursor:pointer;color:#fae9c8;background:linear-gradient(#65513f,#483a34);border:1px solid #9a7954;border-radius:4px;min-height:44px;padding:10px 15px;transition:filter .15s,transform .15s;box-shadow:inset 0 1px #c4a37655,0 2px #19162280}button:hover:not(:disabled){filter:brightness(1.16);transform:translateY(-1px)}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline-offset:4px;outline:3px solid #f6d58b}.primary{color:#3e302c;background:linear-gradient(#ead29a,#cba56e);border-color:#fae2ad;font-weight:700;box-shadow:inset 0 1px #fff0ce,0 3px #594338}.primary:hover:not(:disabled){background:linear-gradient(#f4dfb2,#dcb67c)}main{isolation:isolate;max-width:1600px;min-height:100vh;margin:auto;padding:0 28px;position:relative}main:before{content:"";z-index:-1;pointer-events:none;background:linear-gradient(#1b172470,#1617228c),url(/art/cave-title-v2.png) 50%/cover no-repeat;position:fixed;inset:0}.game-screen:before{background:linear-gradient(#1d1929ed,#211d27ed),url(/art/cave-title-v2.png) 50%/cover no-repeat}.topbar{border-bottom:1px solid #ccb08130;align-items:center;gap:25px;height:60px;display:flex}.brand{color:#f7e7c4;letter-spacing:-.5px;text-shadow:0 2px #17131e;align-items:center;gap:11px;font-size:21px;text-decoration:none;display:flex}.brand b{color:#c9b589;font-weight:400}.brand-mark{color:#243d38;background:#a5b38b;border:1px solid #d0dab6;border-radius:4px;place-items:center;width:33px;height:33px;font-size:29px;font-weight:700;display:grid;position:relative;box-shadow:0 2px #4a5b4a}.brand-mark span{font-size:16px;position:absolute;top:-8px;right:0}.chapter{color:#cbbd9f;border-left:1px solid #bfa37455;padding-left:24px;font-size:14px}.edition{color:#baae96;margin-left:auto;font-size:12px}.eyebrow{letter-spacing:2.8px;color:#cebc86;font-size:10px;font-weight:700}.menu{text-align:center;background:radial-gradient(#1817219c,#0000 72%);border-radius:8px;max-width:740px;margin:32px auto 0;padding:18px 30px 20px}.menu h1{letter-spacing:-1px;color:#f6e7c6;text-shadow:0 3px #221a20,0 0 25px #1c172a;margin:16px 0;font-family:Georgia,serif;font-size:44px;line-height:1.1}.menu em{color:#efd19a;font-style:normal}.intro{color:#e5d5b7;text-shadow:0 2px #241c26;margin:16px 0 20px;font-size:15px;line-height:1.5}.menu h2{margin-bottom:16px;font-size:16px;font-weight:400}.characters{justify-content:center;gap:22px;display:flex}.character{background:linear-gradient(#403630e6,#2e2c2fea);border:1px solid #947b58;flex-direction:column;align-items:center;width:186px;height:224px;padding:8px;display:flex;position:relative;box-shadow:inset 0 0 0 3px #2d272c,inset 0 0 0 4px #7b68484d,0 8px 22px #100f1c66}.character.selected{background:linear-gradient(#68503bdd,#342e32ee);border:2px solid #efcf94;box-shadow:inset 0 0 0 3px #2f2930,inset 0 0 0 4px #d5ab6577,0 0 25px #e4bf6b22}.character strong{color:#f1deba;font-family:Georgia,serif;font-size:22px}.character>span{color:#c9b997;margin-top:5px;font-size:11px}.character .selection{color:#efd19a;font-style:normal;position:absolute;top:12px;right:13px}.portrait{place-items:center;width:100%;height:158px;display:grid;position:relative}.sprite-portrait{width:144px;height:192px;image-rendering:pixelated;z-index:1;transform-origin:bottom;background:url(/art/heroes-v2.png) 0 0/1152px 768px no-repeat;animation:3s steps(2,end) infinite portrait-breathe;position:absolute;bottom:1px}.Emilia .sprite-portrait{background-position:-576px 0}.ground{background:#18151f80;border-radius:50%;width:74px;height:13px;position:absolute;bottom:8px}.begin{justify-content:space-between;gap:25px;min-width:280px;margin-top:22px;padding:13px 24px;display:inline-flex}.menu-note{color:#d4c4a1;text-shadow:0 2px #201923;margin-top:17px;font-size:12px}.game-heading{justify-content:space-between;align-items:center;height:104px;display:flex}.game-heading h1{color:#f3deba;margin:8px 0;font-family:Georgia,serif;font-size:29px;line-height:1}.game-heading p{color:#cabb9d;margin:0;font-size:14px}.game-heading nav{gap:8px;display:flex}.game-heading nav button{width:43px;padding:5px}.game-heading nav .active{color:#362e29;background:#d9be88;border-color:#e8d2a9}.game-layout{grid-template-columns:1.4fr 1fr;align-items:stretch;gap:18px;display:grid}.world-panel,.code-panel{background:#332c31;border:1px solid #997951;border-radius:5px;min-width:0;overflow:hidden;box-shadow:0 0 0 3px #1b1923,0 0 0 4px #6d57403b,0 8px 25px #100d1880}.panel-top{color:#dfc69e;letter-spacing:1px;background:linear-gradient(#4a3b34,#382e30);border-bottom:1px solid #94745177;justify-content:space-between;align-items:center;height:40px;padding:0 17px;font-size:11px;display:flex}.hero-badge{color:#cccca0;letter-spacing:0;font-size:11px}.tag{color:#d8caa7;letter-spacing:0;background:#221e2677;border:1px solid #9b80524d;border-radius:3px;padding:4px 10px}.cave{background:#211b26;justify-content:center;align-items:center;width:100%;height:330px;display:flex;position:relative;overflow:hidden}.cave canvas{image-rendering:pixelated;max-width:100%;display:block}.story{background:linear-gradient(#493a32,#392e2e);border-top:1px solid #a0865555;align-items:center;gap:12px;min-height:57px;margin:0;padding:10px 18px;display:flex;box-shadow:inset 0 1px #d7bd8022}.story .quote{color:#ceb07c;font-family:Georgia,serif;font-size:33px;line-height:1}.story small{color:#d1b885;text-transform:uppercase;letter-spacing:1.5px;font-size:9px}.story p{color:#edddbd;margin:4px 0 0;font-size:13px}.legend{color:#bbae92;background:#30282d;gap:20px;padding:7px 18px 8px;font-size:10px;display:flex}.legend span:last-child{margin-left:auto}.code-panel{background:#e0d4b9}.editor-guide{color:#6a5746;background:#e7dbc1;border-bottom:1px solid #beac87;margin:0;padding:12px 16px;font-size:12px}.workspace-wrap{height:300px;position:relative}.blockly-host{width:100%;height:100%}.workspace-lock{z-index:10;cursor:wait;background:#ffffff06;position:absolute;inset:0}.blocklyMainBackground{stroke:none!important;fill:#eee4cd!important}.blocklyFlyoutBackground{fill:#d5c7a8!important;fill-opacity:1!important}.toolbar{background:linear-gradient(#4a3b34,#382e30);border-top:1px solid #93754e;gap:6px;padding:11px 9px;display:flex}.toolbar button{padding:9px 10px;font-size:12px}.toolbar .primary{flex:1}.feedback{background:linear-gradient(#494034,#3c3430);border:1px solid #8d7956;border-radius:4px;align-items:center;gap:13px;min-height:51px;margin-top:13px;padding:8px 16px;display:flex;box-shadow:inset 0 1px #e0c58d22}.feedback>span{color:#e2c48b;font-size:23px}.feedback p{color:#ecdbb8;flex:1;margin:0;font-size:13px}.feedback button{min-height:34px;padding:7px 12px;font-size:12px}.feedback.success{background:linear-gradient(#455040,#343e36);border-color:#abb281}.game-footer{color:#bbaf97;justify-content:space-between;align-items:center;gap:15px;padding:11px 0 15px;font-size:11px;display:flex}.hints{align-items:center;gap:13px;max-width:65%;display:flex}.hints button{white-space:nowrap;color:#d8c18e;background:#3a302e;border-color:#796345;min-height:39px;font-size:11px}.settings{align-items:center;gap:14px;display:flex}.settings label{white-space:nowrap;align-items:center;gap:6px;display:flex}.settings select{color:#edd7af;background:#3b322f;border:1px solid #89704c;border-radius:3px;padding:5px}.settings input{accent-color:#d8bf8c}@keyframes portrait-breathe{50%{transform:scaleY(1.008)}}@media (width>=1450px){.cave{height:380px}.workspace-wrap{height:350px}.game-heading{height:116px}.menu{margin-top:50px}}@media (width<=1100px){main{padding:0 18px}.game-layout{grid-template-columns:1.15fr 1fr;gap:14px}.toolbar{flex-wrap:wrap}.toolbar button{padding:8px}.legend{gap:9px}.legend span:last-child,.edition{display:none}.settings{gap:8px}.hints{max-width:52%}}@media (width<=760px){.game-layout{grid-template-columns:1fr}.chapter{display:none}.menu{margin-top:18px;padding:15px 0}.menu h1{font-size:34px}.character{width:160px}.game-heading{height:105px}.cave,.workspace-wrap{height:300px}.game-footer{flex-direction:column;align-items:flex-start}.hints{max-width:100%}.settings,.feedback{flex-wrap:wrap}}@media (prefers-reduced-motion:reduce){.sprite-portrait{animation:none}*{transition:none!important}}.sprite-portrait{transform-origin:bottom;background:0 0;height:158px;animation:4s ease-in-out infinite portrait-breathe;bottom:0}.Emilia .sprite-portrait{background:0 0}.title-atmosphere{z-index:-1;pointer-events:none;width:100vw;height:100vh;image-rendering:pixelated;position:fixed;inset:0}@media (prefers-reduced-motion:reduce){.sprite-portrait{animation:none}}[data-reduced-motion=true] .sprite-portrait{animation:none}.game-screen{flex-direction:column;max-width:none;height:100dvh;min-height:0;padding:0 12px 5px;display:flex;overflow:hidden}.game-screen .topbar{flex:0 0 40px;gap:18px;height:40px}.game-screen .brand{gap:9px;font-size:17px}.game-screen .brand-mark{width:26px;height:26px;font-size:23px}.game-screen .chapter{padding-left:18px;font-size:12px}.menu-button{min-height:30px;margin-left:auto;padding:4px 13px;font-size:12px}.game-screen .game-heading{flex:0 0 52px;gap:12px;height:52px}.game-screen .game-heading>div{flex:1;align-items:baseline;gap:18px;min-width:0;display:flex}.game-screen .game-heading h1{white-space:nowrap;margin:0;font:22px Georgia,serif}.game-screen .game-heading p{margin:0;font-size:13px}.game-screen .game-heading nav{gap:5px}.game-screen .game-heading nav button{width:32px;min-height:32px;font-size:12px}.editor-toggle{min-height:32px;padding:5px 12px;font-size:12px}.editor-toggle[aria-expanded=true]{color:#332c29;background:#bfa477}.game-screen .game-layout{flex:1;grid-template-columns:minmax(0,1fr) clamp(340px,28vw,390px);gap:10px;min-height:0}.game-screen .world-panel{min-height:0;box-shadow:none;border-radius:3px;display:block;position:relative}.game-screen .cave{width:100%;height:100%;display:block;position:absolute;inset:0}.game-screen .cave canvas{max-width:100%;display:block}.game-screen .code-panel{min-height:0;box-shadow:none;border-radius:3px;flex-direction:column;display:flex}.game-screen .code-panel[hidden]{display:none}.game-screen .code-panel .panel-top{letter-spacing:0;height:32px;min-height:32px;padding:0 12px;font-size:12px}.game-screen .editor-guide{padding:8px 12px;font-size:12px}.game-screen .workspace-wrap{flex:1;height:auto;min-height:0}.player-tag{color:#e8d8b7;pointer-events:none;background:#201c29a6;border:1px solid #d0b17b33;border-radius:3px;padding:5px 9px;font-size:11px;position:absolute;top:10px;left:10px}.game-screen .feedback{min-height:43px;box-shadow:none;background:#302b2aea;gap:10px;margin:0;padding:6px 12px;position:absolute;bottom:10px;left:10px;right:10px}.game-screen .feedback.success{background:#344438eb}.game-screen .feedback>span{font-size:19px}.game-screen .feedback p{font-size:13px}.hint-panel{color:#3c332c;background:#e1d0aef5;border:1px solid #9a7d50;border-radius:3px;align-items:center;gap:14px;max-width:min(460px,80%);padding:11px 12px;display:flex;position:absolute;bottom:65px;left:10px;box-shadow:0 4px 15px #0004}.hint-panel p{margin:0;font-size:14px;line-height:1.4}.hint-panel button{color:#524333;width:28px;min-height:28px;box-shadow:none;background:0 0;border:0;padding:0;font-size:20px}.game-screen .game-footer{flex:0 0 53px;align-items:center;gap:10px;min-height:53px;padding:6px 0 0;display:flex}.game-screen .toolbar{background:0 0;border:0;flex-wrap:nowrap;gap:6px;padding:0;display:flex}.game-screen .toolbar button{min-height:42px;padding:8px 13px;font-size:13px}.game-screen .toolbar .primary{flex:initial;min-width:112px}.game-screen .game-footer .hints{max-width:none}.game-screen .game-footer .hints button{min-height:42px;padding:8px 12px;font-size:12px}.game-screen .settings{margin-left:auto;font-size:11px}.menu h1{margin:12px 0 28px;font-size:36px}.menu{margin-top:9vh}@media (width<=900px){.game-screen{height:auto;min-height:100dvh;overflow:visible}.game-screen .game-heading{flex-wrap:wrap;height:auto;min-height:58px;padding:8px 0}.game-screen .game-heading>div{display:block}.game-screen .game-heading h1{margin-bottom:5px;font-size:20px}.game-screen .game-heading p{font-size:12px}.game-screen .game-layout{flex:initial;grid-template-columns:1fr}.game-screen .world-panel{height:62dvh;min-height:300px}.game-screen .code-panel{height:360px}.game-screen .game-footer{flex-wrap:wrap;min-height:100px;padding:9px 0}.game-screen .settings{margin-left:0}.game-screen .chapter{display:none}}.game-screen .game-layout{grid-template-columns:minmax(0, 1fr) 12px var(--editor-width,clamp(360px, 28vw, 390px));gap:0}.game-screen .game-layout.editor-hidden{grid-template-columns:minmax(0,1fr)}.pane-divider{cursor:col-resize;touch-action:none;-webkit-user-select:none;user-select:none;outline-offset:-2px;background:0 0;border-radius:3px;justify-content:center;align-items:center;min-width:0;display:flex;position:relative}.pane-divider:before{content:"";background:#ad93613d;width:1px;position:absolute;top:10px;bottom:10px}.pane-divider span{pointer-events:none;background:radial-gradient(circle,#c7ae7c 1.4px,#0000 1.7px) 50%/3px 7px repeat-y;width:3px;height:33px;position:relative}.pane-divider:hover,.pane-divider:focus-visible,.is-resizing .pane-divider{background:#bda47936}.pane-divider:focus-visible{outline:2px solid #e2c992}.pane-divider[hidden]{display:none}.game-layout.is-resizing,.game-layout.is-resizing *{cursor:col-resize!important;-webkit-user-select:none!important;user-select:none!important}@media (width<=900px){.game-screen .game-layout{grid-template-columns:1fr;gap:10px}.pane-divider{display:none}}.story-dialog{color:#392a25;background:#ead7ad;border:3px solid #705132;border-radius:2px;outline:2px solid #efd9a5;max-width:none;max-height:min(45dvh,260px);margin:0;padding:14px;font-family:Trebuchet MS,sans-serif;position:fixed;top:auto;box-shadow:inset 0 0 0 3px #ba925d,inset 0 0 0 5px #f7e8bf,0 7px #241c2599}.story-dialog[open]{gap:18px;display:flex}.story-dialog::backdrop{background:#100c161c}.story-face{text-align:center;flex:0 0 112px}.story-portrait{width:104px;height:104px;image-rendering:pixelated;background:#bda57d;border:2px solid #87623e;display:block;box-shadow:inset 0 0 0 3px #d9bc88}.story-face strong{margin-top:6px;font-size:14px;display:block}.story-content{flex-direction:column;flex:1;min-width:0;display:flex}.story-text{letter-spacing:.25px;white-space:pre-wrap;min-height:65px;margin:4px 0 12px;font-size:clamp(16px,1.7vw,21px);line-height:1.55}.story-actions{align-items:center;gap:12px;margin-top:auto;display:flex}.story-actions>span{color:#705538;margin-left:auto;font-size:12px}.story-actions button{border-radius:1px;min-height:34px;padding:5px 12px;font-size:14px}.story-skip{color:#6e543b;box-shadow:none;background:0 0;border-color:#0000}.story-next{background:#725339;border-color:#523b29;min-width:90px}.game-heading .level-picker{color:#ecd8b1;background:#332b2c;border:1px solid #9a7954;border-radius:3px;max-width:235px;min-height:34px;padding:5px 8px;font-size:13px}.game-heading .story-replay{min-height:34px;padding:5px 9px;font-size:12px}.game-screen .editor-guide{min-height:48px;line-height:1.4}.code-panel[data-guide=drag] .blocklyFlyout .blocklyPath{stroke:#f7c66e;stroke-width:2px}.toolbar .tutorial-target{outline-offset:2px;outline:2px solid #f6d58b}.surface{background:#53694c;position:absolute;inset:0;overflow:hidden}.surface canvas{display:block}.act-ending{background:linear-gradient(#0000 45%,#16251cbb);justify-content:center;align-items:end;padding:20px;display:flex;position:absolute;inset:0}.act-ending>div{text-align:center;color:#f1ddb1;background:#342e26ed;border:2px solid #c5aa75;padding:20px 28px}.act-ending h2{letter-spacing:2px;margin:0 0 16px;font-size:23px}.act-ending button{margin:4px}.act2-checkpoint{color:#f1ddb1;background:#342e26ed;border:1px solid #c5aa75;padding:12px 16px;position:absolute;bottom:16px;left:16px;right:16px}.act2-checkpoint p{margin:0 0 8px}.act2-checkpoint button{margin-right:8px}@media (width<=900px){.story-face{flex-basis:76px}.story-portrait{width:76px;height:76px}.story-dialog{padding:12px}.story-dialog[open]{gap:12px}.story-text{font-size:16px}.game-heading .level-picker{max-width:160px}}.game-screen .panel-top{justify-content:space-between;align-items:center;display:flex}.game-screen .fit-program{min-height:24px;box-shadow:none;background:#493b30;border-color:#8f7451;padding:2px 8px;font-size:11px;line-height:1}.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.game-screen .program-controls{background:#e5d7b6;border-bottom:1px solid #bcaa83;padding:8px}.game-screen .program-controls .toolbar{grid-template-columns:1.2fr 1.15fr 1fr;gap:5px;display:grid}.game-screen .program-controls .toolbar button{white-space:nowrap;min-width:0;min-height:36px;padding:6px 3px;font-size:12px}.game-screen .code-panel .panel-top .hints{max-width:none;margin-left:auto;margin-right:8px}.game-screen .code-panel .panel-top .hints button{min-height:24px;padding:2px 7px;font-size:11px}.game-screen .game-footer{flex:0 0 30px;justify-content:flex-end;min-height:30px;padding-top:3px}@media (width<=900px){.game-screen .game-footer{min-height:36px;padding:5px 0}}
