.ba210-teaser{display:flex;align-items:center;gap:18px;padding:18px;margin:24px 0;background:#f3efdf;border-radius:12px;color:#30482c}.ba210-teaser>span{font-size:42px}.ba210-teaser>div{flex:1}.ba210-teaser h2,.ba210-teaser p{margin:0 0 5px}.ba210-game{max-width:1000px;margin:auto;padding:16px}.ba210-game canvas{width:100%;height:auto;display:block;border-radius:14px;touch-action:none;background:#d7e9dc;outline-offset:3px}.ba210-game button,.ba210-game select{font:inherit;padding:9px 13px;border:1px solid #aebba4;border-radius:8px;background:#fff;color:#30482c;cursor:pointer}.ba210-game button:disabled{opacity:.5}.ba210-game #g210-ui,.ba210-game #g210-controls,.ba210-game #g210-shop{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.ba210-game #g210-shop{padding:12px;background:#f4f1e7;border-radius:10px}.ba210-game:fullscreen{background:#f8f6ed;overflow:auto;max-width:none}.ba210-game:fullscreen canvas{max-height:65vh;object-fit:contain}@media(max-width:600px){.ba210-teaser{gap:9px;padding:12px;flex-wrap:wrap}.ba210-teaser>span{font-size:32px}.ba210-teaser .btn{margin-left:auto}}
/* 2.1.1: touch interaction and larger mobile playfield */
.ba210-game,.ba210-game *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.ba210-game canvas{touch-action:none;overscroll-behavior:contain;cursor:pointer;-webkit-tap-highlight-color:transparent}.ba210-game #g210-stat{flex:1 0 100%;font-size:clamp(13px,3.8vw,19px)}.ba210-game #g210-controls{gap:6px}.ba210-game #g210-controls button{font-size:14px;padding:8px 10px;min-height:40px}.ba210-game #g210-controls input[type=range]{width:90px;max-width:30%}.ba210-game.g-expanded{position:fixed;inset:0;z-index:2147483640;background:#f8f6ed;overflow:auto;max-width:none;width:100%;margin:0;padding:12px;box-sizing:border-box}.g-lock{overflow:hidden!important}.ba210-game.g-expanded h1,.ba210-game.g-expanded>p{display:none}.ba210-game.g-expanded canvas{max-height:70dvh;object-fit:contain;background:#30482c}.ba210-game.g-expanded #g210-shop{display:none}@media(max-width:650px){.ba210-game{padding:8px 0;margin:0 calc((100% - 100vw)/2 + 5px);width:calc(100vw - 10px);max-width:none;box-sizing:border-box}.ba210-game h1{font-size:25px;margin:6px 6px}.ba210-game>p{font-size:14px;margin:6px}.ba210-game #g210-ui,.ba210-game #g210-controls{margin:6px 4px;gap:6px}.ba210-game #g210-ui select{font-size:14px;padding:5px 8px}.ba210-game canvas{border-radius:8px}.ba210-game #g210-shop{margin:8px 4px;padding:8px}}@media(orientation:landscape) and (max-height:550px){.ba210-game.g-expanded canvas{max-height:65dvh}.ba210-game.g-expanded #g210-ui{margin:0}.ba210-game.g-expanded #g210-controls{margin:3px}}
/* 2.1.2: tutorial and touch controls */
.ba210-game #g210-touch{display:flex;gap:10px;margin:8px 4px 10px;justify-content:center}.ba210-game .g210-touch-btn{flex:1 1 0;min-height:50px;font-size:16px;font-weight:700}.ba210-game .g210-jump{background:#e7f2d6}.ba210-game .g210-shoot{background:#f6ead1}.ba210-game #g210-tutorial-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:10px 0 12px}.ba210-game #g210-tutorial-actions button{background:#fff7e7;font-weight:700}.ba210-game #g210-controls button:first-child{font-weight:700}.ba210-game #g210-ui strong{display:block}.ba210-game #g210-shop span{font-size:14px}.ba210-game canvas{box-shadow:0 8px 24px rgba(0,0,0,.12)}
@media(min-width:760px){.ba210-game #g210-touch{max-width:560px;margin-left:auto;margin-right:auto}}
@media(min-width:681px){.ba210-game #g210-touch{display:none}}
@media(max-width:680px){.ba210-game #g210-controls button,.ba210-game #g210-ui select{font-size:13px}.ba210-game #g210-controls input[type=range]{width:72px;max-width:24%}.ba210-game #g210-tutorial-actions button{min-height:42px}.ba210-game #g210-stat{padding:0 4px}.ba210-game #g210-shop{font-size:13px}}
/* 2.1.3: permanent legend and responsive tutorial */
.ba210-game [hidden]{display:none!important}.ba210-game #g210-touch{display:flex;touch-action:manipulation}.ba210-game #g210-touch button{touch-action:manipulation}.ba210-game #g213-legend{display:flex;gap:6px;flex-wrap:wrap;margin:8px 4px;font-size:clamp(11px,2.8vw,15px)}.ba210-game #g213-legend span{flex:1 1 140px;padding:6px 8px;border-radius:8px}.ba210-game .g213-good{background:#e8f3e5;color:#245b2d}.ba210-game .g213-bad{background:#fbe8e6;color:#962c39}.ba210-game #g213-guide{background:#fffaf0;color:#263a30;border:1px solid #d5dacb;border-radius:12px;padding:clamp(12px,3vw,24px);margin:8px 4px}.ba210-game #g213-guide h2,.ba210-game #g213-guide h3{margin:8px 0}.ba210-game #g213-guide p{margin:6px 0;font-size:15px;line-height:1.45;overflow-wrap:anywhere}.ba210-game .g213-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ba210-game .g213-guide-grid>div{padding:10px;border-radius:8px}.ba210-game .g213-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.ba210-game .g213-actions button{min-height:44px}.ba210-game .g213-actions button:first-child{background:#46652e;color:white}.ba210-game.g-expanded #g213-guide{max-height:70dvh;overflow:auto}@media(max-width:390px){.ba210-game .g213-guide-grid{grid-template-columns:1fr}}
/* 2.1.4: landscape immersive mobile layout */
#g214-top{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#30482c;color:white;padding:5px 10px;border-radius:8px}#g214-top a{color:white;text-decoration:none;font-weight:700}#g214-top button{min-width:44px;min-height:36px;padding:4px 10px}#g214-rotate{text-align:center;padding:24px;color:#30482c;margin:auto}#g214-rotate span{display:block;font-size:58px}.g214-lock{overflow:hidden!important}.ba210-game.g214-mobile{position:fixed!important;inset:0!important;z-index:2147483640!important;width:100%!important;height:100dvh;max-width:none!important;margin:0!important;box-sizing:border-box;padding:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;background:#f8f6ed;display:flex;flex-direction:column;gap:4px;overflow:auto;overscroll-behavior:contain}.g214-mobile h1,.g214-mobile>p{display:none!important}.g214-mobile #g214-top{flex:none}.g214-mobile #g210-ui,.g214-mobile #g210-controls,.g214-mobile #g213-legend,.g214-mobile #g210-touch,.g214-mobile #g210-shop{margin:0;gap:4px;flex-shrink:0}.g214-mobile #g210-stat{flex:1 1 auto;font-size:13px}.g214-mobile #g210-ui select{padding:3px 6px;font-size:12px}.g214-mobile #g210-controls button{min-height:34px;padding:3px 7px;font-size:12px}.g214-mobile #g213-legend span{padding:2px 6px;font-size:12px}.g214-mobile canvas{flex:1 1 0;min-height:100px;width:100%;height:100%;max-height:none!important;aspect-ratio:auto!important;object-fit:fill!important;border-radius:6px;box-shadow:none}.g214-mobile #g210-touch{max-width:none!important;display:flex;justify-content:space-between}.g214-mobile #g210-touch button{flex:0 1 42%;min-height:44px;padding:5px;font-size:16px;touch-action:none}.g214-mobile #g210-shop{padding:3px 6px;font-size:12px}.g214-mobile.g214-playing #g210-shop,.g214-mobile.g214-playing #g210-ui select,.g214-mobile.g214-playing #g210-controls button:nth-child(n+3),.g214-mobile.g214-playing #g210-controls input{display:none}.g214-mobile #g213-guide{flex:1 1 auto;min-height:0;overflow:auto;margin:0;padding:8px;max-height:none!important}.g214-mobile #g213-guide p{font-size:13px;margin:3px 0}.g214-mobile #g213-guide h2,.g214-mobile #g213-guide h3{margin:4px 0}.g214-mobile #g213-guide .g213-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.g214-mobile.g214-portrait>*:not(#g214-top):not(#g214-rotate){display:none!important}.g214-mobile.g214-portrait #g214-rotate{display:block!important}.g214-mobile #g210-controls button[aria-label]{min-width:36px}.g214-mobile #g210-controls button:nth-last-child(3){display:none}.ba210-game:fullscreen{width:100%;height:100%;background:#f8f6ed}
.g214-mobile.g214-playing #g210-controls button:nth-child(3),.g214-mobile.g214-playing #g210-controls button:nth-child(4){display:inline-block}.g214-mobile #g210-controls button:nth-last-child(3){display:none}.g214-mobile #g210-controls button:last-child{display:none}.g214-mobile #g210-touch button{min-height:44px}.g214-mobile.g214-playing #g210-ui{min-height:18px}.g214-mobile #g214-rotate span{animation:g214-turn 2s ease-in-out infinite}@keyframes g214-turn{0%,100%{transform:rotate(0)}50%{transform:rotate(90deg)}}@media(prefers-reduced-motion:reduce){.g214-mobile #g214-rotate span{animation:none}}
/* 2.1.5: more playfield, compact HUD and controls */
.ba210-game #g213-legend{display:none!important}.g214-mobile.g214-playing #g214-top{position:absolute;top:4px;right:8px;z-index:2;background:transparent;padding:0;gap:4px}.g214-mobile.g214-playing #g214-top strong{display:none}.g214-mobile.g214-playing #g214-top a{font-size:11px;color:#30482c;background:#f8f6ed;padding:4px;border-radius:4px}.g214-mobile.g214-playing #g214-full{min-width:30px;min-height:26px;padding:2px 6px}.g214-mobile.g214-playing #g210-ui{padding-right:125px;min-height:24px}.g214-mobile.g214-playing #g210-stat{font-size:clamp(11px,2.2vw,15px);line-height:1.15}.g214-mobile.g214-playing #g210-controls{position:absolute;top:auto;bottom:calc(50px + env(safe-area-inset-bottom));left:12px;z-index:2;gap:3px}.g214-mobile.g214-playing #g210-controls button{min-height:27px;font-size:11px;padding:2px 6px;background:#ffffffdf}.g214-mobile.g214-playing canvas{min-height:0!important;height:0!important;flex:1 1 0!important}.g214-mobile.g214-playing #g210-touch{flex:0 0 44px}.g214-mobile #g210-touch button{flex:0 1 46%;min-height:44px}.g214-mobile.g214-playing{overflow:hidden;gap:3px}.ba210-game canvas,.ba210-game #g210-touch{-webkit-user-select:none;user-select:none;touch-action:none}

/* 2.1.7: local touch gesture protection; menus and guide remain scrollable. */
.ba210-game{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ba210-game #g210-canvas,.ba210-game #g210-touch,.ba210-game #g210-touch .g210-touch-btn{touch-action:none!important;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:none}
.ba210-game button,.ba210-game a{touch-action:manipulation}
.ba210-game #g213-guide,.ba210-game #g210-shop{touch-action:pan-y}
.ba210-game.g214-playing{overscroll-behavior:none}
