@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;color:#17151c;overscroll-behavior:none;-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none}button:focus-visible{outline:3px solid #fff9b2;outline-offset:4px}button:disabled{cursor:default}[hidden]{display:none!important}.game-frame{height:100%;height:100dvh;width:100%;display:grid;place-items:center;background:#000}.viewport{width:min(100vw,177.777778vh);width:min(100vw,177.777778dvh);aspect-ratio:16/9;position:relative;overflow:hidden;container-type:inline-size;background:#b7ce9c;isolation:isolate;touch-action:manipulation}canvas{display:block;width:100%;height:100%;image-rendering:pixelated;outline:none;touch-action:none}.screen{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;pointer-events:none;z-index:4}.screen>*{pointer-events:auto}.corner-controls{position:absolute;top:1.2cqw;left:1.2cqw;right:1.2cqw;display:flex;justify-content:space-between;pointer-events:none}.corner-controls>*{pointer-events:auto}.square-button{width:5cqw;height:5cqw;min-width:48px;min-height:48px;padding:0;display:inline-grid;place-items:center;background:#fff;border:.3cqw solid #29262b;border-radius:.5cqw;box-shadow:inset 0 -.4cqw #d8dde0,0 .3cqw #29262b;font-size:3cqw;color:#18151d}.square-button:hover{background:#fff5c1}.square-button:active{transform:translateY(.25cqw);box-shadow:inset 0 -.2cqw #d8dde0}.title-content{position:absolute;top:9.7cqw;left:0;right:0;display:flex;align-items:center;flex-direction:column}.game-title{display:flex;align-items:center;justify-content:center;gap:4cqw;font:7cqw/1.6 Pixel,monospace;letter-spacing:.07em;white-space:nowrap;color:#fff65e;margin:0;padding:0 2cqw;text-shadow:-.18cqw -.18cqw #151219,.18cqw -.18cqw #151219,-.18cqw .18cqw #151219,.18cqw .35cqw #151219,0 .6cqw #b96b3f;-webkit-text-stroke:.22cqw #141218;paint-order:stroke fill}.title-word{display:inline-block}.game-subtitle{font:2.4cqw/1.6 Pixel,monospace;letter-spacing:.05em;margin:.3cqw 0 0;color:#141a14}.pixel-button{border:.38cqw solid #23212b;background:#ffdb65;color:#201d26;min-width:48px;min-height:48px;padding:1.4cqw 3cqw;box-shadow:inset .45cqw .45cqw #fff7ba,inset -.45cqw -.65cqw #e59a42,0 .4cqw #27212b;border-radius:1.4cqw;font:2.8cqw/1.4 Pixel,monospace}.pixel-button:hover{filter:brightness(1.08)}.pixel-button:active{transform:translateY(.3cqw)}.pixel-button.secondary{background:#fff;box-shadow:inset 0 -.5cqw #d7dbde,0 .3cqw #27212b}.play-button{position:absolute;top:30cqw;left:50%;transform:translateX(-50%);min-width:20cqw;padding:1.3cqw 3.3cqw}.play-button:active{transform:translate(-50%,.3cqw)}.select-content{position:absolute;inset:0;padding:7cqw 9cqw}.select-title{font:5.3cqw/1.5 Pixel,monospace;letter-spacing:.08em;margin:0;color:#fff46a;text-shadow:.15cqw .3cqw #a74435;-webkit-text-stroke:.25cqw #15131c;paint-order:stroke fill}.level-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:7cqw;margin-top:7cqw}.level-card{aspect-ratio:1;width:100%;background:#fff;border:.35cqw solid #1c1b20;border-radius:2.4cqw;box-shadow:inset 0 -.7cqw #d8dde0,0 .4cqw #1c1b20;color:#fff56a;display:grid;place-items:center;padding:0}.level-card b{font:9cqw/1 Pixel,monospace;text-shadow:.2cqw .4cqw #b45040;-webkit-text-stroke:.3cqw #111;paint-order:stroke fill;letter-spacing:0}.level-card:disabled b{color:#92968f;text-shadow:.1cqw .3cqw #282724}.level-card:hover:enabled{background:#fff9d7}.level-card small,.level-card strong{display:none}.overlay-shade{position:absolute;inset:0;background:#000b;pointer-events:none!important}.panel{position:relative;width:32cqw;max-height:48cqw;overflow:auto;padding:4cqw 2.5cqw 2cqw;background:#c4c6cc;border:.4cqw solid #3e3b45;box-shadow:inset 0 0 0 .5cqw #a4a7b4,0 .5cqw #22222a;border-radius:.2cqw;scrollbar-width:thin}.panel h2{position:relative;margin:-3.3cqw -4cqw 2.5cqw;padding:1cqw .5cqw;background:#c45541;border:.25cqw solid #40343d;box-shadow:inset 0 .5cqw #e38164,0 .4cqw #793832;font:1.6cqw/1.5 Pixel,monospace;color:#fff566;text-shadow:.15cqw .2cqw #252129;letter-spacing:.04em}.panel p{font:1.05cqw/1.8 Pixel,monospace;margin:1cqw 0 2cqw;color:#26242b}.panel .overline{display:none}.panel .actions{display:flex;gap:1.5cqw;justify-content:center;margin:2cqw 0 .5cqw}.panel .pixel-button{font-size:1cqw;border-radius:.3cqw;padding:1cqw 1.5cqw;max-width:100%}.panel .text-button{background:#fff;border:.2cqw solid #68646f;font-size:.85cqw;min-height:48px;padding:.7cqw;margin:.6cqw;color:#322c35}.title-links{display:flex;justify-content:center}.panel .stat-row{display:flex;gap:2.4cqw;justify-content:center;margin:2cqw 0}.stat-row div{font:1cqw/1.6 Pixel,monospace}.stat-row strong{font:1.8cqw/1.6 Pixel,monospace;display:block;color:#fff}.result-trophy{width:5cqw;image-rendering:pixelated}.instructions-grid{font:1cqw/1.7 Pixel,monospace;display:grid;grid-template-columns:1fr;gap:1.4cqw;text-align:left}.instructions-grid b{display:block;margin-bottom:.4cqw}.instructions-grid img{width:2.5cqw;image-rendering:pixelated;vertical-align:middle}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:2cqw;font:1cqw Pixel,monospace;margin:1cqw 0}.settings-row button{min-width:48px;min-height:48px;background:#fff;border:.2cqw solid #696373;font:1cqw Pixel,monospace;box-shadow:inset 0 -.4cqw #d8dde0}.settings-row button[aria-pressed=false]{color:#7a6b77;text-decoration:line-through}.hud{position:absolute;top:0;left:0;right:0;height:5cqw;min-height:36px;background:#000;display:flex;align-items:center;justify-content:space-between;gap:1cqw;padding:0 1.2cqw 0 3cqw;z-index:3;color:#fff;font:2.1cqw Pixel,monospace}.hud-hearts{display:flex;gap:.6cqw;width:22%}.hud-hearts img{width:2.5cqw;min-width:11px;image-rendering:pixelated}.hud-hearts .empty{visibility:hidden}.hud-time{color:#fff36f;font-weight:normal;letter-spacing:.2cqw}.hud-berries{display:flex;gap:.5cqw;align-items:center;color:#fff36f;margin:auto}.hud-berries img{width:2.5cqw;image-rendering:pixelated}.hud-score{font-weight:normal;letter-spacing:.25cqw}.hud-pause{font-size:3cqw;width:4cqw;height:4cqw;min-width:32px;min-height:32px;border-width:.22cqw;margin-left:.8cqw}.touch-controls{position:absolute;left:5.5cqw;right:3cqw;bottom:2.5cqw;display:flex;justify-content:space-between;z-index:2;pointer-events:none}.touch-controls>div{display:flex;gap:5.7cqw}.touch-controls button{width:11cqw;height:11cqw;min-width:48px;min-height:48px;background:#fff1;border:.3cqw solid #fff8;border-radius:.6cqw;padding:3cqw;touch-action:none;pointer-events:auto}.touch-controls button.pressed{background:#ffec8177;border-color:#fff8bd}.touch-controls img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}.toast{position:absolute;bottom:1cqw;left:50%;transform:translateX(-50%);background:#191b20e8;color:#fff5ba;font:1cqw/1.6 Pixel,monospace;padding:1cqw;opacity:0;z-index:6;pointer-events:none}.toast.show{opacity:1}.fullscreen-button{position:absolute;bottom:0;left:50%;transform:translateX(-50%);min-width:48px;min-height:32px;background:transparent;border:0;color:#ffffff55;font-size:20px;z-index:7}.viewport:fullscreen{width:min(100vw,177.777778vh);width:min(100vw,177.777778dvh);height:auto;aspect-ratio:16/9;margin:auto}.viewport::backdrop{background:#000}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.square-button{position:relative}.square-button::after{content:"";position:absolute;width:48px;height:48px;left:50%;top:50%;transform:translate(-50%,-50%)}

.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:2cqw}.settings-grid .settings-row{flex-direction:column;gap:1cqw;margin:0}.settings-grid button{min-width:64px;min-height:48px}.panel .icon-action{width:5cqw;height:5cqw;padding:.7cqw;min-width:48px;min-height:48px}.icon-action img{width:100%;height:100%;display:block;image-rendering:pixelated}.panel{touch-action:pan-y}.level-panel{width:55cqw}

.settings-row button{position:relative;display:grid;place-items:center}.toggle-icon{width:32px;height:32px}.settings-row button[aria-pressed=false] .toggle-icon{opacity:.45}.settings-row button[aria-pressed=false]::after{content:"";position:absolute;inset:7px;background:linear-gradient(135deg,transparent 46%,#b4403d 46%,#b4403d 54%,transparent 54%)}
.select-title,.level-card b{text-shadow:-.25cqw -.25cqw #15131c,.25cqw -.25cqw #15131c,-.25cqw .25cqw #15131c,.25cqw .25cqw #15131c,0 .55cqw #9d4939}
