.world-controls-help{--controls-help-top: max(12px, env(safe-area-inset-top, 0px));--controls-help-right: max(12px, env(safe-area-inset-right, 0px));--controls-help-bottom: max(12px, env(safe-area-inset-bottom, 0px));--controls-help-left: max(12px, env(safe-area-inset-left, 0px));position:fixed;inset:var(--controls-help-top) var(--controls-help-right) var(--controls-help-bottom) var(--controls-help-left);box-sizing:border-box;margin:auto;width:min(480px,calc(100vw - var(--controls-help-left) - var(--controls-help-right)));height:fit-content;max-width:none;max-height:calc(100dvh - var(--controls-help-top) - var(--controls-help-bottom));padding:0;overflow:hidden;border:3px solid #bc845d;background:#202d43;color:#f5efd3;font:14px/1.5 monospace;box-shadow:0 6px #191f35}.world-controls-help[open]{display:flex;flex-direction:column}.world-controls-help::backdrop{background:#191f35d9}.world-controls-help h2{margin:0;padding:12px 16px 6px;color:#ffe29a;font-size:20px;flex:none}.world-controls-content{padding:0 16px 12px;overflow:auto;min-height:0;overscroll-behavior:contain}.world-controls-content dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:8px 14px;margin:8px 0 16px}.world-controls-content dt{font-weight:700;color:#ffe29a}.world-controls-content dd{margin:0;overflow-wrap:anywhere}.world-controls-content p{margin:0}.world-controls-content h3{margin:16px 0 6px;color:#ffe29a;font-size:14px}.world-controls-help footer{flex:none;padding:8px 12px;border-top:1px solid #637888}.world-controls-help .world-controls-footer-hint{margin:0 0 8px;font-size:12px;line-height:1.4;color:#ffe29a}.world-controls-help button{display:block;min-height:44px;width:100%;padding:8px 12px;border:2px solid #bc845d;background:#334b62;color:#fff3be;font:700 14px/1.3 monospace;cursor:pointer;touch-action:manipulation}.world-controls-help :focus-visible{outline:3px solid #ffe29a;outline-offset:-3px}.world-controls-help button:hover{background:#405f7d}@media(max-width:359px){.world-controls-content dl{grid-template-columns:1fr;gap:0}.world-controls-content dd{margin-bottom:10px}}@media(forced-colors:active){.world-controls-help{border-color:CanvasText;background:Canvas;color:CanvasText}.world-controls-help :is(h2,h3,dt){color:CanvasText}.world-controls-help button{border-color:ButtonText;background:ButtonFace;color:ButtonText}.world-controls-help :focus-visible{outline-color:Highlight}}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#101d29;color:#f5efd3;font-family:system-ui,sans-serif}#guaira-chapter-root{width:100%;height:100%;min-height:0}body.chapter-game{display:flex;align-items:center;justify-content:center;overflow:hidden}body.chapter-game #guaira-chapter-root{display:flex;align-items:center;justify-content:center}body.chapter-game #game-canvas{image-rendering:pixelated;touch-action:none;max-width:100%;outline-offset:3px;box-shadow:0 0 60px #803a5e30}.chapter-game-toolbar{--chapter-toolbar-padding: 10px;--chapter-toolbar-gutter: 12px;max-height:100svh;overflow:auto;position:fixed;z-index:20;top:0;left:0;right:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:max(var(--chapter-toolbar-padding),env(safe-area-inset-top)) max(var(--chapter-toolbar-gutter),env(safe-area-inset-right)) var(--chapter-toolbar-padding) max(var(--chapter-toolbar-gutter),env(safe-area-inset-left));background:#123547;border-bottom:2px solid #98703b;font-size:12px}.chapter-game-toolbar button{display:inline-flex;flex:none;align-items:center;justify-content:center;min-height:44px;min-width:44px;max-width:100%;padding:0;color:#f5efd3;background:#123547;border:0;border-radius:0;cursor:pointer;touch-action:manipulation}.chapter-game-toolbar #lab-status{flex:1;min-width:0;line-height:18px;overflow-wrap:anywhere}.chapter-game-toolbar .lab-action-art{display:block;max-width:100%;height:auto;image-rendering:pixelated;pointer-events:none}.chapter-game-toolbar .lab-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.chapter-game-toolbar button:focus-visible{outline:3px solid #ffe29a;outline-offset:2px}.chapter-game-toolbar button:disabled{opacity:.55;cursor:default}.chapter-game-toolbar button:not(:disabled):hover{filter:brightness(1.16)}.chapter-game-toolbar button:not(:disabled):active .lab-action-art{transform:translateY(2px)}[hidden]{display:none!important}@media(max-width:620px){.chapter-game-toolbar{--chapter-toolbar-padding: 6px;--chapter-toolbar-gutter: 6px;gap:4px}.chapter-game-toolbar #lab-status{font-size:11px;line-height:16px}}@media(forced-colors:active){.chapter-game-toolbar .lab-action-art{display:none}.chapter-game-toolbar .lab-sr{position:static;width:auto;height:auto;min-width:0;margin:0;clip-path:none;white-space:normal;overflow-wrap:anywhere}.chapter-game-toolbar button{padding:6px;border:1px solid ButtonText}}#chapter-controls-help .world-controls-content p+p{margin-top:10px}.chapter-game-toolbar[data-scene-overlay]{position:fixed;right:auto;bottom:auto;padding:0;border:0;display:grid;place-items:center;max-height:none;overflow:visible;background:transparent;pointer-events:none}.chapter-game-toolbar[data-scene-overlay] #lab-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.chapter-scene-menu{display:contents}.chapter-scene-actions,.chapter-game-options{display:grid;justify-items:center;gap:8px}.chapter-scene-heading{margin:0 0 16px}.chapter-game-toolbar[data-scene-overlay] button{background:transparent;pointer-events:auto}.chapter-game-toolbar[data-state=paused]{left:0!important;top:0!important;width:100%!important;height:calc(100% - var(--scene-touch-height, 0px))!important;background:#101d29b8;pointer-events:auto}.chapter-game-toolbar[data-state=paused] .chapter-scene-menu{display:flex;flex-direction:column;align-items:center;max-width:calc(100% - 16px);max-height:calc(100% - 16px);overflow:auto;padding:24px;background:#123547;border:1px solid #98703b}.chapter-game-toolbar[data-state=playing] #chapter-primary{position:absolute;top:0;right:0;width:6.25%;height:12.8%;min-width:44px;min-height:44px;color:transparent}.chapter-game-toolbar[data-state=playing] #chapter-primary .lab-action-art{visibility:hidden}.chapter-game-toolbar[data-state=playing] #chapter-primary:focus-visible{outline-offset:-3px}.chapter-game-toolbar[data-state=complete] .chapter-scene-actions{position:absolute;bottom:12px;right:12px;max-width:calc(100% - 24px);display:flex;flex-wrap:wrap;justify-content:flex-end}.chapter-game-toolbar[data-state=loading] :is(#chapter-primary,#chapter-options){display:none}.chapter-game-toolbar[data-state=loading] #lab-status{position:static;width:auto;height:auto;margin:0;clip-path:none;white-space:normal}.chapter-save-warning{position:absolute;bottom:12px;left:12px;max-width:min(40ch,calc(100% - 24px));margin:0;padding:8px 12px;color:#ffe29a;background:#101d29;font:13px/1.4 system-ui,sans-serif}.chapter-game-toolbar[data-state=complete] .chapter-save-warning{top:28px;bottom:auto}.chapter-game-toolbar:not([data-scene-overlay]){top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:min(480px,calc(100% - 32px));padding:24px;border:1px solid #648591}@media(max-height:450px){.chapter-game-toolbar[data-state=paused] .chapter-scene-menu{padding:12px}.chapter-scene-heading{margin-bottom:8px}.chapter-scene-actions,.chapter-game-options{gap:4px}}@media(forced-colors:active){.chapter-game-toolbar[data-state=paused],.chapter-game-toolbar[data-state=paused] .chapter-scene-menu{background:Canvas}.chapter-game-toolbar[data-state=playing] #chapter-primary{color:ButtonText;background:ButtonFace}}
