.ap-game{--game-lime:#dfff69;box-sizing:border-box;width:min(420px,calc(100% - 20px));max-height:calc(100dvh - 20px);margin:auto;padding:20px;border:1px solid #304c3d;border-radius:26px;background:#0b1b13;color:#f3fff6;font-family:Inter,system-ui,sans-serif;box-shadow:0 30px 90px #0008;overflow:auto;overscroll-behavior:contain}.ap-game::backdrop{background:#020906dc;backdrop-filter:blur(10px)}.ap-game *{box-sizing:border-box}.ap-game button{font:inherit;color:inherit;cursor:pointer;min-height:44px;touch-action:none;-webkit-user-select:none;user-select:none}.ap-game button:focus-visible{outline:2px solid var(--game-lime);outline-offset:3px}.ap-game-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.ap-game-kicker{font-size:12px;letter-spacing:.12em;color:#9eb5a5}.ap-game h2{font-size:26px;letter-spacing:-.04em;margin:3px 0 0}.ap-game-close{width:44px;border:1px solid #35523f;border-radius:50%;background:#14291c;font-size:25px!important}.ap-game-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:14px}.ap-game-pause{background:none;border:1px solid #35523f;border-radius:10px;padding:6px 14px}.ap-game-board{display:grid;place-items:center;background:#07130e;border-radius:16px;overflow:hidden}.ap-game canvas{display:block;width:auto;height:auto;max-width:100%;max-height:clamp(160px,calc(100dvh - 330px),480px);touch-action:none;user-select:none;-webkit-user-select:none}.ap-game-help{font-size:14px;line-height:1.4;color:#abc2b1;text-align:center;margin:10px 0}.ap-game-controls{display:grid;justify-content:center;gap:8px}.ap-game-controls button{min-width:48px;height:48px;background:#1c3425;border:1px solid #37543f;border-radius:13px;font-size:22px}.ap-game-controls button:active{background:#dfff69;color:#07130e}.ap-game-controls.snake{grid-template-columns:repeat(3,56px)}.ap-game-controls.snake [data-action=up]{grid-column:2}.ap-game-controls.snake [data-action=left]{grid-column:1}.ap-game-controls.tetris{grid-template-columns:repeat(5,minmax(44px,1fr))}.ap-game-restart{width:100%;border:0;border-radius:13px;margin-top:12px;background:var(--game-lime);color:#0b1b13!important;font-weight:750!important}.ap-game-status{font-size:14px;margin:8px 0 0;text-align:center}.ap-game-status:empty{display:none}@media(max-height:620px){.ap-game{padding:12px}.ap-game-head{margin-bottom:4px}.ap-game-help{margin:6px 0}.ap-game-controls.snake{grid-template-columns:repeat(4,1fr)}.ap-game-controls.snake [data-action]{grid-column:auto}.ap-game canvas{max-height:calc(100dvh - 270px)}}
