:root{color:#17324d;background:#b9ecf4;font-family:ui-rounded,Arial Rounded MT Bold,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0;overflow:hidden}#game-root{width:100vw;height:100vh;background:#b9ecf4;place-items:center;height:100dvh;display:grid;position:relative}canvas{object-fit:contain;image-rendering:pixelated;width:min(100vw,1280px)!important;height:min(100vh,720px)!important;height:min(100dvh,720px)!important}#hud{pointer-events:none;text-shadow:0 2px #fff;justify-content:space-between;align-items:flex-start;width:min(94vw,1180px);font-size:clamp(13px,2vw,18px);font-weight:800;display:flex;position:fixed;top:16px;left:50%;transform:translate(-50%)}.hud-status,.hud-actions{flex-wrap:wrap;gap:8px;display:flex}.hud-status span,.help-menu summary,.settings-menu summary,.hud-message{background:#fff9dcdd;border:3px solid #e8b74e;border-radius:999px;padding:7px 12px}.hud-checkpoint{text-transform:capitalize}.hud-message{text-align:center;color:#17324d;max-width:min(86vw,680px);position:absolute;top:54px;left:50%;transform:translate(-50%);box-shadow:0 3px #c58b36}.hud-message:empty{display:none}.help-menu,.settings-menu{pointer-events:auto;position:relative}.help-menu summary,.settings-menu summary{cursor:pointer;place-items:center;width:38px;height:38px;padding:0;font-size:22px;line-height:1;list-style:none;display:grid}.help-menu summary::-webkit-details-marker{display:none}.settings-menu summary::-webkit-details-marker{display:none}.help-menu summary:focus-visible,.settings-menu summary:focus-visible{outline-offset:3px;outline:3px solid #17324d}.help-panel,.settings-panel{z-index:2;color:#17324d;width:min(340px,88vw);text-shadow:none;background:#fff9dc;border:3px solid #e8b74e;border-radius:16px;padding:14px 16px;font-size:14px;line-height:1.4;position:absolute;top:46px;right:0;box-shadow:0 5px #c58b36}.help-panel strong{margin-bottom:6px;font-size:16px;display:block}.help-panel p{margin:7px 0}.help-panel kbd{color:#17324d;text-align:center;background:#fff;border:1px solid #a87439;border-bottom-width:3px;border-radius:4px;min-width:1.5em;padding:1px 4px;font:700 .9em ui-monospace,monospace;display:inline-block}.help-gamepad{color:#4a5966}.settings-panel strong,.settings-panel label{display:block}.settings-panel label{cursor:pointer;margin-top:8px}.settings-panel input{accent-color:#397c58}#hud[data-high-contrast] .hud-status span,#hud[data-high-contrast] .hud-message,#hud[data-high-contrast] summary,#hud[data-high-contrast] .pause-button{color:#102c40;text-shadow:none;background:#fff;border-color:#17324d}.hud-icon{vertical-align:-.18em;width:1.1em;height:1.1em;image-rendering:pixelated}@media (max-width:700px){#hud{width:calc(100vw - 18px);font-size:12px;top:9px}.hud-status{gap:5px;max-width:calc(100% - 82px)}.hud-actions{gap:5px}.hud-status span{padding:5px 8px}.hud-checkpoint{display:none}.help-menu summary,.settings-menu summary{width:34px;height:34px}.hud-message{padding:5px 10px;font-size:12px;top:45px}}#debug-overlay{color:#b9ffcc;white-space:pre;pointer-events:none;background:#172033e8;border-radius:8px;padding:10px;font:12px/1.45 ui-monospace,monospace;position:fixed;bottom:12px;left:12px}#screen-overlay{text-align:center;pointer-events:none;color:#fff9dc;text-shadow:0 2px #17324d;background:#17324d99;place-content:center;gap:12px;display:grid;position:fixed;inset:0}#screen-overlay[hidden]{display:none}#screen-overlay strong{letter-spacing:.04em;font-size:clamp(32px,7vw,68px)}#screen-overlay small{font-size:clamp(15px,2vw,22px);font-weight:800}.screen-replay{width:40px;height:40px;image-rendering:pixelated;justify-self:center}.pause-button,.screen-actions button{font:inherit;color:#17324d;cursor:pointer;pointer-events:auto;background:#fff9dc;border:3px solid #e8b74e;border-radius:999px;font-weight:800}.pause-button{width:38px;height:38px;padding:0}.pause-button:disabled{opacity:.5;cursor:default}.pause-button:focus-visible,.screen-actions button:focus-visible{outline-offset:3px;outline:3px solid #17324d}.screen-actions{justify-content:center;gap:12px;display:flex}.screen-actions button{padding:10px 20px}#screen-overlay{z-index:3;padding:20px}#hud{z-index:4}@media (max-width:700px){.hud-status{max-width:calc(100% - 122px)}.pause-button{width:34px;height:34px}}#loading{font-weight:800;position:absolute}#touch-controls,.help-touch{display:none}.touch-enabled{padding:calc(112px + env(safe-area-inset-top)) env(safe-area-inset-right) calc(156px + env(safe-area-inset-bottom)) env(safe-area-inset-left)}.touch-enabled canvas{touch-action:none;min-height:0;width:min(100%,1280px)!important;height:100%!important}.touch-enabled #hud{top:calc(12px + env(safe-area-inset-top));width:min(calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)), 1180px)}.touch-enabled .help-touch{display:block}.touch-enabled .pause-button,.touch-enabled summary{width:48px;height:48px}.touch-enabled .hud-message{top:62px}.touch-enabled #touch-controls:not([hidden]){display:grid}#touch-controls{z-index:2;bottom:calc(18px + env(safe-area-inset-bottom));left:calc(24px + env(safe-area-inset-left));right:calc(24px + env(safe-area-inset-right));pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;grid-template-rows:repeat(2,56px);grid-template-columns:repeat(3,64px) 1fr repeat(3,64px);gap:10px;position:fixed}#touch-controls button{touch-action:none;pointer-events:auto;color:#17324d;background:#fff9dc;border:3px solid #b78033;border-radius:18px;font:800 16px ui-rounded,system-ui,sans-serif;box-shadow:0 4px #a87534}#touch-controls button.held{background:#e8b74e;transform:translateY(3px);box-shadow:0 1px #a87534}#touch-controls button:focus-visible{outline-offset:3px;outline:3px solid #17324d}#touch-controls [data-touch=left]{grid-area:2/1;font-size:28px}#touch-controls [data-touch=down]{grid-area:2/2;font-size:28px}#touch-controls [data-touch=right]{grid-area:2/3;font-size:28px}#touch-controls [data-touch=petPressed]{grid-area:1/5}#touch-controls [data-touch=transformPressed]{grid-area:1/6}#touch-controls [data-touch=dashPressed]{grid-area:2/5/3/7}#touch-controls [data-touch=jumpHeld]{background:#d0edac;grid-area:1/7/3/8}#touch-controls.high-contrast button{color:#102c40;background:#fff;border-color:#17324d}#touch-controls.high-contrast button.held{background:#ffe17d}.touch-enabled .help-panel,.touch-enabled .settings-panel{max-height:calc(100dvh - 100px - env(safe-area-inset-top));overflow-y:auto}@media (max-width:700px){#touch-controls{left:calc(10px + env(safe-area-inset-left));right:calc(10px + env(safe-area-inset-right));grid-template-columns:repeat(3,minmax(40px,1fr)) 8px repeat(3,minmax(40px,1fr));gap:5px}#touch-controls button{font-size:12px}.touch-enabled .hud-status{max-width:calc(100% - 160px)}.touch-enabled .hud-checkpoint{display:none}}@media (max-height:550px) and (min-width:701px){.touch-enabled{padding-top:85px;padding-bottom:132px}#touch-controls{bottom:calc(10px + env(safe-area-inset-bottom));grid-template-rows:repeat(2,48px)}}.hud-powers{z-index:2;color:#17324d;text-align:center;pointer-events:none;background:#fff9dc;border:2px solid #e8b74e;border-radius:12px;max-width:calc(100% - 24px);padding:5px 10px;font-size:12px;font-weight:800;position:fixed;bottom:12px;left:50%;transform:translate(-50%)}.touch-enabled .hud-powers{bottom:calc(156px + env(safe-area-inset-bottom))}#game-root:has(#hud[data-high-contrast]) .hud-powers{color:#102c40;background:#fff;border-color:#17324d}@media (max-height:550px) and (min-width:701px){.touch-enabled .hud-powers{bottom:calc(132px + env(safe-area-inset-bottom))}}
