*{box-sizing:border-box}body{margin:0;background:#23161f;color:#f6e7c9;font-family:Arial,Helvetica,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #f3b951;outline-offset:4px}[hidden]{display:none!important}#app{max-width:1440px;margin:auto;padding:24px 5vw}.topbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff22;padding-bottom:20px}.brand{color:inherit;text-decoration:none;font-size:36px;font-weight:900;letter-spacing:-3px}.brand span{display:block;font-size:8px;letter-spacing:2px;text-align:center;margin-top:3px}.edition{font:11px monospace;letter-spacing:2px}.edition span{display:block;color:#ae938e;margin-top:6px}.topbar button{background:transparent;border:1px solid #715253;color:#e5cab4;border-radius:20px;padding:9px 14px;font-size:11px}.screen{display:grid;grid-template-columns:1fr 1.1fr;gap:7vw;padding:48px 0 36px}.eyebrow,.section-label{font:11px monospace;letter-spacing:1.5px;color:#edb557}h1{font-size:clamp(55px,7.8vw,110px);line-height:.91;letter-spacing:-5px;margin:25px 0;font-weight:900;font-style:italic}h1 span{color:#edb557}p{font-size:17px;line-height:1.6;color:#d2b8ae}.mission{display:flex;gap:25px;align-items:center;margin:28px 0;padding:20px 0;border-block:1px solid #ffffff20;font:13px monospace;line-height:1.6}.mission b{color:#edb557;white-space:nowrap}.small{font-size:11px;color:#ae938e;max-width:320px}.selection{padding-top:6px}.characters{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:28px}.character{background:#322029;border:1px solid #735050;color:#d2b8ae;padding:16px 2px 12px;min-width:0;transition:transform .15s,border .15s}.character canvas{width:100%;height:130px;object-fit:contain;image-rendering:pixelated}.character b{font:12px monospace;letter-spacing:1px}.character[aria-pressed=true]{background:#683339;border:2px solid #edb557;transform:translateY(-7px);color:#edb557}.selected-info{margin:24px 0 26px;min-height:45px}.selected-info b{font-size:24px;display:block}.selected-info span{font-size:13px;color:#d2b8ae;display:block;margin-top:6px}.primary{border:0;background:#edb557;color:#29151e;font-weight:900;letter-spacing:1px;padding:20px 24px;width:100%;box-shadow:4px 4px 0 #9f6732}.primary:hover{background:#f9ce79}.instructions{font:11px monospace;line-height:1.8;color:#ae938e;margin-top:20px}.foot{border-top:1px solid #ffffff22;padding-top:20px;display:flex;justify-content:space-between;font:10px monospace;letter-spacing:1.5px;color:#ae938e}.hud{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 12px;background:#321e27;margin-top:20px}.label{font:11px monospace;display:block;margin-bottom:6px;color:#edb557}#health{font-size:25px;color:#ee776b;letter-spacing:4px}.supplies{display:flex;gap:16px;font:12px monospace}.supplies span{color:#c4a596}.supplies span.done{color:#a3cda4}.numbers{text-align:right;display:flex;flex-direction:column;font:16px monospace}.numbers span{color:#edb557;margin-top:5px}.hud button{background:#49303a;color:#f6e7c9;border:0;padding:10px;font-size:20px}.stage{position:relative;aspect-ratio:2/1;background:#3b2b3c;overflow:hidden;touch-action:none;user-select:none}#canvas{display:block;width:100%;height:100%;image-rendering:pixelated}#toast{position:absolute;top:16px;left:50%;transform:translateX(-50%);background:#23161fe8;padding:10px 16px;font:12px monospace;border:1px solid #edb557;opacity:0;pointer-events:none;max-width:80%;text-align:center}#toast.visible{opacity:1}.controls{position:absolute;bottom:15px;left:18px;right:18px;display:flex;justify-content:space-between;pointer-events:none}.controls>div{display:flex;gap:12px}.controls button{pointer-events:auto;touch-action:none;width:64px;height:64px;border:2px solid #f6e7c955;border-radius:50%;background:#23161f99;color:#f6e7c9;font-size:25px;display:flex;flex-direction:column;justify-content:center;align-items:center;user-select:none}.controls button.active{background:#edb557;color:#23161f}.controls small{font:8px monospace;margin-top:3px}.controls .fire{background:#a04449bb;border-color:#f2a699}.overlay{position:absolute;inset:0;display:grid;place-items:center;background:#23161fee;z-index:3;text-align:center;padding:24px}.overlay>div{max-width:450px}.overlay h2{font-size:36px;line-height:1;letter-spacing:-1px;color:#edb557;margin:20px 0}.overlay p{font-size:14px}.secondary{background:transparent;color:#f6e7c9;border:0;border-bottom:1px solid #715253;padding:13px;margin-top:12px}.game-footer{display:flex;justify-content:space-between;padding:15px 0;font:10px monospace;color:#ae938e;gap:15px}.game-footer span:first-child{color:#edb557}.rotate{display:none}.rotate span{font-size:80px;color:#edb557}@media(max-width:900px){#app{padding:14px 3vw}.screen{gap:4vw;padding-top:30px}h1{letter-spacing:-3px}.characters{gap:5px}.character canvas{height:95px}.supplies{gap:9px;font-size:10px}.game-footer span:last-child{display:none}}@media(max-width:600px){.screen{grid-template-columns:1fr}.edition{display:none}.pitch p{font-size:15px}.pitch h1{font-size:65px}.mission{margin:15px 0}.small{max-width:100%}.characters{margin-top:18px}.character canvas{height:105px}.foot span:last-child{display:none}}@media(orientation:portrait) and (pointer:coarse){body:has(#game:not([hidden])) .rotate{position:fixed;inset:0;z-index:10;background:#23161f;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}}@media(orientation:landscape) and (max-height:550px){body:has(#game:not([hidden])) #app{padding:0}body:has(#game:not([hidden])) .topbar,body:has(#game:not([hidden])) .foot,body:has(#game:not([hidden])) .game-footer{display:none}#game{height:100dvh;display:flex;flex-direction:column}.hud{margin:0;padding:5px 14px;min-height:48px}.label{display:inline;margin-right:10px}#health{font-size:19px}.supplies{font-size:10px}.numbers{font-size:12px;flex-direction:row;gap:12px}.stage{flex:1;min-height:0;aspect-ratio:auto}#canvas{object-fit:contain}.controls{bottom:max(8px,env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right))}.controls button{width:56px;height:56px}.overlay h2{font-size:27px;margin:10px}.overlay p{margin:8px}.primary{padding:14px}.secondary{padding:8px;margin-top:8px}}
/* Introduzione in tre vignette, con il gioco fermo sullo sfondo. */
.story-panel{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:flex-end;padding:18px;background:linear-gradient(90deg,transparent 30%,#23161f60 62%,#23161f99)}
.story-card{width:47%;max-width:430px;max-height:100%;overflow-y:auto;padding:22px;background:#251923f5;border:2px solid #e3b26a;box-shadow:5px 5px 0 #17101999;text-align:left}
.story-card h2{font-size:clamp(19px,2.5vw,29px);line-height:1.05;letter-spacing:-1px;margin:15px 0 18px;color:#ffe3ab;font-weight:900}
.story-dialogue b{font:10px monospace;letter-spacing:1px;color:#edb557}.story-dialogue p{font-size:14px;line-height:1.5;margin:9px 0 15px;color:#f2dfc3}
.story-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0 18px;font:10px monospace}.story-list span{border:1px solid #aa826950;padding:9px;background:#49303a}.story-list b{color:#edb557;margin-right:5px}
.story-actions .primary{font-size:12px;padding:14px 10px}.story-actions .secondary{display:block;font-size:11px;margin:10px auto 0;padding:6px}.hud button:disabled{opacity:.35;cursor:default}
@media(orientation:landscape) and (max-height:550px){.story-panel{padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left))}.story-card{width:46%;padding:14px;max-height:100%;overflow-y:auto}.story-card h2{font-size:23px;margin:10px 0 12px}.story-card .eyebrow{font-size:9px}.story-dialogue p{font-size:12px;line-height:1.4;margin:7px 0 12px}.story-list{margin:8px 0 12px;gap:5px}.story-list span{padding:7px}.story-actions .primary{padding:11px}.story-actions .secondary{margin-top:8px;padding:4px}}
@media(prefers-reduced-motion:reduce){.character{transition:none}}

#boss-trial{display:block;margin:12px auto 0;padding:10px;font:11px monospace;}
/* La sessione occupa il viewport; il mondo 2:1 mantiene le proporzioni. */
html.play-active,html.play-active body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#171019}
html.play-active #app{position:fixed;inset:var(--play-top,0px) 0 auto;width:var(--play-width,100vw);height:var(--play-height,100dvh);max-width:none;margin:0;padding:0;overflow:hidden}
html.play-active .topbar,html.play-active .foot,html.play-active .game-footer{display:none}
html.play-active #game:not([hidden]){display:flex;flex-direction:column;width:100%;height:100%;min-height:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden}
html.play-active .hud{flex:none;margin:0;padding:5px 12px;min-height:44px;gap:10px;overflow:hidden}
html.play-active .hud>div:first-child{white-space:nowrap}html.play-active .label{display:inline;margin-right:8px}html.play-active #health{font-size:19px;letter-spacing:2px}
html.play-active .supplies{flex:1;justify-content:center;gap:12px;font-size:11px}html.play-active .numbers{font-size:12px;flex-direction:row;gap:10px;white-space:nowrap}html.play-active .numbers span{margin:0}
html.play-active .hud button{flex:none;padding:7px 10px;font-size:17px}html.play-active #exit-game{font-size:12px}html.play-fullscreen #fullscreen{display:none}
html.play-active .stage{flex:1;min-height:0;aspect-ratio:auto;width:100%;background:#171019}
html.play-active #canvas{width:100%;height:100%;object-fit:contain}
html.play-active .controls{bottom:max(8px,env(safe-area-inset-bottom));left:14px;right:14px}html.play-active .controls button{width:clamp(44px,9vh,64px);height:clamp(44px,9vh,64px)}
html.play-active.play-portrait .rotate{position:fixed;inset:0;width:var(--play-width,100vw);height:var(--play-height,100dvh);z-index:20;background:#23161f;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center}
html.play-active .story-card{overflow:hidden}.fullscreen-help{font-size:11px!important;color:#ae938e}.play-fullscreen .fullscreen-help{display:none}
@media(orientation:landscape) and (max-height:550px){html.play-active .hud{min-height:40px;padding:3px 10px;gap:8px}html.play-active .supplies{font-size:10px;gap:8px}html.play-active .overlay{padding:10px}html.play-active .overlay h2{font-size:26px;margin:8px}html.play-active .overlay p{margin:6px}html.play-active .story-card{padding:10px 14px;overflow:hidden}html.play-active .story-card h2{font-size:19px;margin:6px 0}html.play-active .story-dialogue p{font-size:11px;line-height:1.3;margin:5px 0 8px}html.play-active .story-list{gap:4px;margin:5px 0 8px}html.play-active .story-list span{padding:5px}html.play-active .story-actions .primary{padding:9px}html.play-active .story-actions .secondary{margin-top:4px}}
@media(orientation:landscape) and (max-height:330px){html.play-active .story-card{width:55%}html.play-active .story-card h2{font-size:16px}html.play-active .story-card .eyebrow{font-size:8px}html.play-active .story-list{grid-template-columns:repeat(4,1fr);font-size:8px}html.play-active .supplies{gap:5px;font-size:9px}html.play-active .hud{gap:5px}html.play-active .label{font-size:9px;margin-right:4px}html.play-active .hud button{padding:5px 8px}}
/* Impugnatura orizzontale: due zone dei pollici, distanti dai bordi. */
@media(any-pointer:coarse),(max-width:1000px){
 html.play-active .controls{--touch-size:72px;--touch-gap:22px;left:max(44px,env(safe-area-inset-left));right:max(44px,env(safe-area-inset-right));bottom:32px;align-items:flex-end}
 html.play-active .controls>div{gap:var(--touch-gap);align-items:flex-end}
 html.play-active .controls button{width:var(--touch-size);height:var(--touch-size);min-width:var(--touch-size);flex:none;border:2px solid #f6e7c9aa;background:#23161fe6;box-shadow:0 3px 0 #100b10,0 0 0 4px #17101955;font-size:29px}
 html.play-active .controls .move button{border-radius:22px}
 html.play-active .controls .actions{gap:20px}
 html.play-active .controls [data-control=jump]{transform:translateY(-28px);background:#38484fe6}
 html.play-active .controls .fire{width:80px;height:80px;background:#a04449ed;border-color:#ffc0bc}
 html.play-active .controls small{font-size:10px;margin-top:5px;letter-spacing:.4px}
 html.play-active .controls button.active{background:#edb557;color:#23161f;box-shadow:0 1px 0 #100b10,0 0 0 4px #edb55766}
}
@media(max-height:340px) and (orientation:landscape){
 html.play-active .controls{--touch-size:64px;--touch-gap:18px;left:max(32px,env(safe-area-inset-left));right:max(32px,env(safe-area-inset-right));bottom:24px}
 html.play-active .controls .fire{width:72px;height:72px}
 html.play-active .controls [data-control=jump]{transform:translateY(-22px)}
}
/* Sequenza arcade: titolo, selezione, tavole e briefing. */
body:has(.arcade-menu:not([hidden])){overflow:hidden}
body:has(.arcade-menu:not([hidden])) #app{padding:0;max-width:none;height:100dvh;overflow:hidden}
body:has(.arcade-menu:not([hidden])) .topbar,body:has(.arcade-menu:not([hidden])) .foot{display:none}
.arcade-menu.screen{display:block;padding:0;width:100%;height:100%;position:relative;background:#161426 url('assets/piazza-vittoria-v3.webp') center/cover;isolation:isolate}
.arcade-menu:before{content:'';position:absolute;inset:0;background:linear-gradient(#17112299,#171122bb);z-index:-1}
.pixel-word{height:1em;display:inline-block;vertical-align:baseline;overflow:visible;max-width:100%}
.arcade-title{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:clamp(12px,3vh,28px);padding:20px}
.arcade-kicker{color:#fff1c1;font-size:clamp(10px,2vw,18px);letter-spacing:3px}
.arcade-title h1{font-size:clamp(38px,8vw,96px);font-style:normal;line-height:1.3;margin:0;color:#ffca54;filter:drop-shadow(4px 4px #8e352c) drop-shadow(4px 4px #100e1c);letter-spacing:0}
.arcade-title p{font-size:clamp(9px,1.5vw,14px);margin:0;color:#fff1cf;line-height:2}
.arcade-start{color:#fff7df;border:0;background:transparent;font-size:clamp(16px,3vw,26px);padding:20px;animation:start-blink 1.4s steps(2,end) infinite;min-height:56px}
@keyframes start-blink{50%{color:#ffc04a}}
.arcade-credit{color:#ceb995;font-size:9px}
.selection{height:100%;max-width:1100px;margin:auto;padding:clamp(12px,3vh,30px) 4vw;display:flex;flex-direction:column;justify-content:center;gap:14px}
.selection-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.selection-heading h2{font-size:clamp(13px,2.4vw,28px);margin:0;color:#ffce6c;filter:drop-shadow(3px 3px #34151d)}
.selection-heading button{background:#19162d;border:2px solid #f5cf81;color:#fff4d2;min-width:48px;min-height:44px}
.selection-heading>span{color:#fc7956;font-size:20px}
.selection .characters{margin:0;gap:12px;flex-shrink:1;min-height:0}
.selection .character{position:relative;border:3px solid #70617c;box-shadow:4px 4px #0a0912;padding:0 0 12px;background:linear-gradient(#17172c,#49344b);transition:none}
.selection .character canvas{height:clamp(100px,32vh,290px);width:100%;object-fit:contain}
.selection .character[aria-pressed=true]{transform:none;border-color:#ffce6c;background:linear-gradient(#755638,#292031);box-shadow:4px 4px #ad6436}
.selection .character[aria-pressed=true]:before{content:'P1';position:absolute;top:8px;left:8px;color:#ffcd65;background:#1c1427;padding:4px;font: bold 14px monospace}
.selection .character b{font-size:clamp(10px,1.5vw,16px)}
.selection .selected-info{margin:0;text-align:center;min-height:0}
.selection .selected-info b{font-size:16px;color:#ffcd65}.selection .selected-info span{font-size:9px;line-height:1.6}
.selection .primary,.selection .secondary{width:auto;align-self:center;padding:14px 24px;border-radius:0;font-size:12px;margin:0;min-height:44px}
.selection .secondary{font-size:8px;background:#20182c;color:#e4d4b6;border:1px solid #9b8296;box-shadow:none}
.selection .instructions{margin:0;text-align:center;font-size:8px}
.story-panel{position:absolute;inset:0;padding:0;display:block;background:#171527;z-index:8}
#story-art{width:100%;height:100%;object-fit:cover;image-rendering:pixelated;display:block}
.story-panel .story-card{position:absolute;inset:0;width:auto;max-width:none;max-height:none;border:none;box-shadow:none;padding:18px 4%;background:transparent;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;overflow:hidden}
.story-card #story-step{position:absolute;left:4%;top:18px;background:#171527df;padding:10px;color:#ffcb66;font-size:9px}
.story-card h2{font-size:clamp(14px,2.3vw,26px);margin:0;color:#ffcc63;filter:drop-shadow(3px 3px #211021);line-height:1.4}
.story-dialogue{background:#f8e9bd;color:#251626;border:4px solid #322238;box-shadow:4px 4px #100c1b;padding:12px 16px;max-width:760px;position:relative}
.story-dialogue b{color:#9e3935;font-size:10px}.story-dialogue p{color:#251626;font-size:clamp(10px,1.4vw,14px);line-height:2;margin:10px 0 0;max-width:none}
.story-actions{display:flex;gap:20px;justify-content:flex-end}.story-actions .primary,.story-actions .secondary{width:auto;font-size:10px;padding:14px 20px;margin:0;border-radius:0;min-height:44px}
.story-actions .secondary{background:#1d182ddd;border:2px solid #a895a4;color:#e5d6bf;font-size:8px}
.story-list{gap:12px;margin:0}.story-list span{border:2px solid #ecb65b;background:#282237;padding:14px;color:#fff0c6;font:bold 14px monospace;text-align:center}
#game:has(#story-panel:not([hidden])) .hud{display:none}
@media(max-height:500px){.arcade-title{gap:14px}.arcade-title h1{font-size:clamp(30px,7vw,56px)}.selection{gap:8px;padding:10px 4vw}.selection .character canvas{height:clamp(72px,29vh,140px)}.selection .character{padding-bottom:6px}.selection .selected-info b{font-size:12px}.selection .primary,.selection .secondary{padding:10px 16px;min-height:40px}.selection .instructions{display:none}.story-panel .story-card{padding:12px 4%;gap:8px}.story-card #story-step{top:12px;padding:6px;font-size:8px}.story-dialogue{padding:8px 12px}.story-dialogue p{font-size:10px;line-height:1.8;margin-top:6px}.story-actions .primary,.story-actions .secondary{padding:10px 14px}.story-list span{padding:8px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.arcade-start{animation:none}}
.pixel-space{display:inline-block;width:.5em}
.arcade-title h1 span{color:inherit}
.story-list .pixel-word{font-size:12px}
html.play-active .story-panel .story-card{inset:0;width:100%;max-width:none}
@media(orientation:landscape) and (max-height:550px){html.play-active .story-panel .story-card{padding:12px 4%;gap:8px}html.play-active .story-panel .story-card h2{font-size:16px;margin:0}html.play-active .story-panel .story-dialogue p{font-size:11px;line-height:1.7;margin:6px 0 0}html.play-active .story-list{grid-template-columns:repeat(4,1fr);margin:0;gap:8px}}
@media(orientation:landscape) and (max-height:330px){html.play-active .story-panel .story-card h2{font-size:12px}html.play-active .story-panel .story-dialogue p{font-size:10px;line-height:1.6}.selection{gap:6px}.selection .character canvas{height:76px}.selection .selected-info span{font-size:8px}}
.selection .selected-info .pixel-space{display:inline-block;margin:0}
.supply-icon{display:block;width:42px;height:48px;margin:0 auto 10px}
@media(max-height:550px){.supply-icon{width:26px;height:30px;margin-bottom:6px}.story-list .pixel-word{font-size:9px}}
.story-list .pixel-space{border:0;background:none;box-shadow:none;padding:0;margin:0;width:.5em;display:inline-block;font:inherit;color:inherit}
.selection .character canvas{object-fit:cover;object-position:center top}

/* Schede verticali: un ritratto intero e il nome sotto, vicini al centro. */
.selection .characters{width:min(95%,calc(5 * clamp(55px,17vh,145px) + 32px));gap:8px;align-self:center;flex-shrink:0}
.selection .character canvas{width:100%;height:auto;aspect-ratio:1/2;object-fit:contain;object-position:center}
.selection .character b{display:block;margin:8px 0 2px;font-size:clamp(9px,1.5vh,16px)}
.selection-actions{display:flex;align-items:center;justify-content:center;gap:16px}
.selection #boss-trial{margin:0}
html.play-active .story-actions .secondary{flex:0 0 auto;margin:0;width:auto}
@media(max-height:330px){.selection-actions{gap:8px}.selection-actions .secondary{font-size:8px}.selection .character b{margin:5px 0 1px}}

/* Finale illustrato: proporzioni preservate e comandi sul bordo inferiore. */
.end-actions{display:flex;gap:16px;justify-content:center;align-items:center}
.end-actions .primary,.end-actions .secondary{width:auto;margin:0}
#end.victory{padding:0;background:#171019;overflow:hidden}
#victory-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
#end.victory .end-content{position:absolute;inset:0;max-width:none;width:100%;display:flex;flex-direction:column;align-items:center;padding:16px 4%;background:linear-gradient(#171019d9,transparent 28%,transparent 65%,#171019ef)}
#end.victory #end-kicker{font-size:clamp(14px,3vh,28px);color:#ffe195;text-shadow:3px 3px #171019}
#end.victory h2{font-size:clamp(16px,3vh,26px);margin:8px 0;color:#fff2cc}
#end.victory #end-detail{margin:auto 0 12px;font-size:clamp(9px,1.8vh,15px);color:#fff2cc;max-width:850px;line-height:1.7;background:#171019cc;padding:6px 12px}
#end.victory .end-actions button{font-size:clamp(9px,1.6vh,13px);padding:12px 18px;min-height:44px}
#game:has(#end.victory:not([hidden])) .hud{display:none}
@media(max-height:400px){#end.victory .end-content{padding:10px 4%}#end.victory h2{margin:5px 0}#end.victory #end-detail{margin-bottom:8px}#end.victory .end-actions{gap:12px}#end.victory .end-actions button{padding:10px 14px}}

/* Controlli grafici: nessun glifo emoji e nessuna selezione al tocco prolungato. */
.stage,.stage *,#touch-controls,#touch-controls *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#touch-controls,#touch-controls *{touch-action:none}
.control-icon{display:block;width:29px;height:29px;flex:none;pointer-events:none;shape-rendering:crispEdges}
/* Solo il fallback iOS sblocca lo scroll, prima che le barre si ritirino. */
html.play-active.ios-scroll-unlock,html.play-active.ios-scroll-unlock body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:auto}
html.play-active.ios-scroll-ready,html.play-active.ios-scroll-ready body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:none;scrollbar-width:none}
html.ios-scroll-ready::-webkit-scrollbar,html.ios-scroll-ready body::-webkit-scrollbar{display:none}
html.ios-scroll-unlock .ios-scroll-spacer,html.ios-scroll-ready .ios-scroll-spacer{height:200vh;width:1px;pointer-events:none}
.ios-scroll-guide{position:fixed;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;background:#171019e8;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;padding:24px env(safe-area-inset-right) 24px env(safe-area-inset-left);text-align:center}
.ios-scroll-message{max-width:440px;padding:16px;font-family:monospace;color:#f6e7c9}
.ios-scroll-message h2{font-size:20px;color:#edb557;margin:0 0 12px}
.ios-scroll-message p{font-size:15px;line-height:1.4;margin:0 0 12px}
.ios-scroll-message button{background:#322029;color:#f6e7c9;border:2px solid #715253;padding:12px 16px;font:12px monospace;touch-action:manipulation}
.ios-swipe{width:24px;height:32px;margin:12px auto 20px;background:#edb557;clip-path:polygon(40% 0,60% 0,60% 15%,80% 15%,80% 30%,100% 30%,100% 45%,65% 45%,65% 100%,35% 100%,35% 45%,0 45%,0 30%,20% 30%,20% 15%,40% 15%)}

/* Il campo di gioco comprende anche gli spazi fra i pulsanti. */
.stage,.stage #canvas,.stage .controls,.stage .controls *{touch-action:none}
.arcade-menu,.arcade-menu button,.overlay button,.rotate button{touch-action:manipulation}

/* Niente trascinamento di immagini o selezione nel campo di gioco. */
.stage canvas,.stage img,.stage svg{-webkit-user-drag:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.stage{overscroll-behavior:none}
@media(any-pointer:coarse){
 html.play-active .hud button{min-width:44px;min-height:44px;touch-action:manipulation}
}
/* Su tablet i pollici restano lontani dalle gesture laterali e dalla barra Home. */
@media(any-pointer:coarse) and (orientation:landscape) and (min-width:1000px){
 html.play-active .controls{left:max(64px,env(safe-area-inset-left));right:max(64px,env(safe-area-inset-right));bottom:max(40px,calc(env(safe-area-inset-bottom) + 16px));--touch-size:76px;--touch-gap:24px}
 html.play-active .controls .fire{width:84px;height:84px}
}
