@font-face{font-family:Pixel;src:url('../assets/fonts/PressStart2P-Regular.ttf') format('truetype');font-display:swap}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#000}body{font-family:Pixel,'Courier New',monospace;overscroll-behavior:none;-webkit-tap-highlight-color:transparent;color:#fff76c}button{font:inherit;cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:manipulation}button:focus-visible{outline:3px solid #fff;outline-offset:3px}[hidden]{display:none!important}#frame{position:fixed;inset:0;background:#000;overflow:hidden}.stage{position:absolute;container-type:inline-size;overflow:hidden;touch-action:manipulation;--safe-top:0px;--safe-left:0px;--safe-right:0px;--safe-bottom:0px}canvas{display:block;width:100%;height:100%;image-rendering:pixelated;touch-action:none;outline:none}.toolbar{position:absolute;left:calc(var(--safe-left) + max(6px,env(safe-area-inset-left)));right:calc(var(--safe-right) + max(6px,env(safe-area-inset-right)));top:calc(var(--safe-top) + max(6px,env(safe-area-inset-top)));display:flex;justify-content:space-between;align-items:flex-start;z-index:5;pointer-events:none}.menu-tools,.run-tools{display:flex;gap:.7cqw;pointer-events:auto}.run-tools{margin-left:auto}.gold-button{border:.35cqw solid #d7a643;border-radius:1.3cqw;background:linear-gradient(130deg,#ffdf75 0%,#f8cc57 28%,#efb83d 100%);box-shadow:inset .4cqw .4cqw 0 #ffe888,inset -.4cqw -.4cqw 0 #deb04a,0 .3cqw 0 #a99355;color:#fffb70;display:inline-grid;place-items:center;padding:1cqw}.gold-button:hover{filter:brightness(1.08)}.gold-button:active{filter:brightness(.98);transform:translateY(2px)}.tool{width:6cqw;height:6cqw;min-width:44px;min-height:44px;border-radius:1.1cqw;padding:.7cqw}.gold-button img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.tool.exit img{filter:brightness(.62) sepia(1) saturate(8) hue-rotate(322deg)}.sound.muted::after{content:'×';position:absolute;color:#ee7857;font:bold 20px Arial;right:3px;top:4px}.sound{position:relative}.hud{position:absolute;top:calc(var(--safe-top) + max(6px,env(safe-area-inset-top)));left:calc(var(--safe-left) + max(6px,env(safe-area-inset-left)));width:29cqw;min-width:132px;height:10.5cqw;min-height:56px;background:#f4c34f;border:.35cqw solid #d5a54a;border-radius:1.4cqw;padding:1cqw 1.3cqw;font:2.6cqw/1.4 Pixel,monospace;text-shadow:.18cqw .18cqw #8c803b;display:flex;flex-direction:column;justify-content:center;gap:.5cqw;z-index:3}.hud>div{display:flex;align-items:center;gap:1cqw}.hud img{width:3cqw;height:3cqw;min-width:14px;min-height:14px}.hud .heart{filter:brightness(.65) sepia(1) saturate(7) hue-rotate(315deg)}.floor-card{position:absolute;right:calc(var(--safe-right) + max(8px,env(safe-area-inset-right)));bottom:calc(var(--safe-bottom) + max(8px,env(safe-area-inset-bottom)));width:6.4cqw;min-width:42px;height:11.8cqw;min-height:68px;padding:.7cqw;background:#f6c850;border:.3cqw solid #d8a73d;border-radius:1.5cqw;box-shadow:inset .3cqw .3cqw #ffe78d;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.floor-card span{font:3.1cqw Pixel,monospace;text-shadow:.18cqw .2cqw #aa8b31}.floor-card img{width:85%;height:58%;object-fit:contain}.feedback{position:absolute;top:calc(var(--safe-top) + 3cqw);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;text-align:center;gap:1.8cqw;z-index:3;pointer-events:none;white-space:nowrap;font:3.5cqw/1.4 Pixel,monospace;color:#fff96b;text-shadow:-.18cqw -.18cqw #4a5537,.18cqw .18cqw #4a5537,.24cqw .32cqw #4a5537}.screen{position:absolute;inset:0;pointer-events:none;z-index:4}.screen>*{pointer-events:auto}.play-button{position:absolute;left:40%;top:38.02%;width:20%;aspect-ratio:1;min-width:72px;min-height:72px;padding:3cqw;border-radius:2cqw}.play-button img{filter:drop-shadow(0 2px #ffff6755)}.screen-shade{position:absolute;inset:0;background:#0a1b26c9;pointer-events:none!important}.safe-screen{position:absolute;top:calc(var(--safe-top) + 8cqw);bottom:calc(var(--safe-bottom) + 4cqw);left:calc(var(--safe-left) + 2cqw);right:calc(var(--safe-right) + 2cqw);display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:auto;text-align:center;touch-action:pan-y}.help{justify-content:space-around;gap:3cqw;padding:1.5cqw 0;cursor:pointer}.help p{font:2.65cqw/1.35 Pixel,monospace;margin:0 auto 2.4cqw;max-width:85cqw;color:#fff975;text-shadow:.2cqw .2cqw #3a4a35}.help figure{margin:0;width:100%;display:flex;align-items:center;flex-direction:column}.help img{width:27cqw;max-height:33cqw;object-fit:contain;image-rendering:pixelated}.help img.align{width:33cqw;max-height:25cqw}.help .continue{font:1.8cqw/1.6 Pixel,monospace;color:#ffe47a;min-height:44px;border:0;background:none;padding:1cqw}.result-wrap{position:absolute;inset:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3cqw}.result-card{background:#f5c34d;border:.45cqw solid #dcad48;box-shadow:inset .4cqw .4cqw #ffe07a,0 .6cqw #b29a5d;border-radius:2cqw;width:42cqw;min-width:220px;padding:4cqw 1.7cqw 3.3cqw;text-align:center;color:#ffe76a;text-shadow:-.18cqw -.18cqw #b27f32,.2cqw .2cqw #b27f32,.3cqw .35cqw #b27f32}.result-card h2{font:3.3cqw/1.4 Pixel,monospace;margin:0 0 4cqw}.result-card p{font:3.8cqw/1.5 Pixel,monospace;margin:1cqw 0}.result-card strong{display:block;font:4.4cqw/1.5 Pixel,monospace}.result-card small{display:block;font:1.7cqw/1.5 Pixel,monospace;margin-top:3cqw;color:#fff78e}.result-actions{display:flex;gap:6cqw;justify-content:center}.result-actions button{width:16cqw;height:16cqw;min-width:68px;min-height:68px;padding:3cqw}.result-actions button:first-child img{filter:brightness(.65) sepia(1) saturate(8) hue-rotate(315deg)}.transition{pointer-events:none!important}.transition .result-card{width:58cqw;max-width:90%}.transition .result-card h2{margin-bottom:2cqw;font-size:3cqw}.transition .result-card p{font-size:2.8cqw}.credits-card{width:65cqw;max-width:95%;padding:4cqw 3cqw}.credits-card h2{font-size:2.6cqw;margin-bottom:3cqw}.credits-card p{font-size:1.9cqw;line-height:1.8;margin:2cqw 0}.credits-card .credit-name{color:#fffbd1;font-size:2.7cqw}.credits-card button{font-size:1.8cqw;min-height:44px;margin-top:2cqw;padding:1.5cqw 2.4cqw}.loading{position:absolute;inset:0;display:grid;place-content:center;text-align:center;gap:2cqw;background:#000;color:#fff;font:2.2cqw/1.8 Pixel,monospace}.loading img{width:15cqw;margin:auto;image-rendering:pixelated}.loading p{margin:0}.error{font:1.9cqw/1.7 Pixel,monospace;color:#523d2e}.error p{font:inherit}.error button{font:1.8cqw Pixel,monospace;padding:2cqw;min-height:44px;margin-top:2cqw}.stage:fullscreen{position:absolute;inset:auto}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.notice{position:absolute;left:50%;top:calc(var(--safe-top) + 17cqw);transform:translateX(-50%);max-width:80cqw;padding:2cqw;background:#233d4ee8;color:#fff38b;font:1.8cqw/1.6 Pixel,monospace;text-align:center;z-index:8;pointer-events:none}

.error{overflow-wrap:anywhere}
