/* Wide run-and-gun playfield; shared menus and score controls stay in the arcade. */
.arcade-switch{grid-template-columns:repeat(4,minmax(0,1fr))}.arcade-tab b{font-size:13px}
.commando-shell{aspect-ratio:auto;background:#e9e1c2}.commando-viewport{position:relative;aspect-ratio:16/9;overflow:hidden}#commandoCanvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none}
.commando-menu{align-items:flex-start;text-align:left;padding:6% 6%;background:linear-gradient(90deg,#fff3d6f0,#fff3d6a1 46%,#fff3d600 75%)}.commando-menu h2{font-size:clamp(38px,5vw,64px);line-height:1.02;letter-spacing:-2px;margin:14px 0}.commando-menu h2 em{display:block}.commando-menu p{max-width:290px;font-size:13px;line-height:1.5}.commando-menu .panel-eyebrow{font-size:9px}.commando-menu .play-button{min-height:48px}
.commando-hud{display:flex;align-items:center;gap:15px;min-height:43px;padding:5px 14px;font-size:11px;background:#faf2db;color:#295e46}.commando-hud strong{margin-left:auto;font:700 20px 'Rubik',sans-serif}.commando-hud .hud-icon{width:38px;height:38px;background:#fff9e6;border-radius:50%}#commandoHealth{font-size:17px;letter-spacing:2px;color:#b46042;white-space:nowrap}.commando-weapon{display:flex;align-items:center;gap:5px}.commando-weapon small{opacity:.65;font-variant-numeric:tabular-nums}
.commando-controls{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:8px 14px;background:#f8efd6;border-top:1px solid #a5ac863d}.commando-pad,.commando-actions{display:flex;gap:7px}.commando-controls button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:56px;min-height:50px;max-width:90px;padding:5px 8px;border:1px solid #9aaa80;border-bottom:3px solid #80956c;border-radius:11px;background:#fff9e9;color:#296347;touch-action:none;user-select:none;-webkit-user-select:none}.commando-controls button span{font-size:24px;line-height:1}.commando-controls button small{font-size:9px;line-height:1.1;margin-top:4px;overflow-wrap:anywhere;max-width:100%}.commando-controls button.pressed{background:#e4c560;border-bottom-width:1px;transform:translateY(2px)}.commando-controls button:disabled{opacity:.45}#commandoControlFire{background:#f3ce5e;border-color:#b99639;min-width:80px}#commandoControlBurst{background:#e0ead8}.commando-controls button:focus-visible{outline:3px solid #1f7e57;outline-offset:2px}
.commando-below{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.commando-shell .glide-overlay{z-index:5}.commando-shell .glide-result-card{max-width:500px;max-height:100%;overflow-y:auto}.commando-shell .glide-result-card h2{font-size:25px}
.play-stage .commando-shell{display:flex;flex-direction:column;background:#d7dfc0}.play-stage .commando-viewport{flex:1;min-height:0;aspect-ratio:auto;overflow:visible;position:static}.play-stage #commandoCanvas{position:absolute;left:0;top:0;width:100%;height:calc(100% - 104px)}.play-stage .commando-controls{position:absolute;bottom:0;left:0;right:0;padding:8px 14px;height:68px}.play-stage .commando-hud{position:absolute;bottom:68px;left:0;right:0;min-height:36px;padding:3px 12px}.play-stage #commandoPauseButton{display:none}.play-stage .commando-menu{inset:0;background:linear-gradient(90deg,#fff3d6e8,#fff3d677);align-items:flex-start}.play-stage .commando-menu h2{font-size:clamp(36px,7vw,62px)}
@media(max-width:900px){.arcade-switch{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.arcade-switch{grid-template-columns:repeat(2,minmax(0,1fr))}#brawlTab{grid-column:auto}#commandoTab{grid-column:1/-1}.commando-below{grid-template-columns:1fr;gap:12px}.commando-hud{gap:8px;font-size:9px;padding:5px 8px}.commando-hud strong{font-size:17px}#commandoBursts{display:none}.commando-controls{padding:8px 7px;gap:9px}.commando-pad,.commando-actions{gap:4px}.commando-controls button{min-width:42px;min-height:48px;padding:4px;max-width:58px}#commandoControlFire{min-width:52px}.commando-controls button small{font-size:8px}.commando-menu{padding:5%;justify-content:center;gap:8px}.commando-menu h2{font-size:34px;margin:5px 0}.commando-menu p{font-size:10px;margin:5px 0;max-width:220px}.commando-menu .panel-eyebrow{font-size:7px}.commando-menu .play-button{min-height:40px;padding:8px 14px;font-size:11px}.commando-shell .glide-result-card h2{font-size:20px}.commando-shell .glide-result-card{padding:16px}.play-stage .commando-controls{padding:8px 7px}.play-stage .commando-hud{padding:3px 8px;font-size:9px}.play-stage .commando-hud strong{font-size:17px}}
@media(any-pointer:coarse){.arcade-switch{display:flex}.commando-controls button{min-height:48px}.commando-shell .score-entry input{font-size:16px}.play-stage .commando-controls button small{font-size:9px}}
@media(max-height:530px) and (orientation:landscape){.play-stage .commando-controls{height:64px;padding:5px 16px}.play-stage .commando-hud{bottom:64px;min-height:32px}.play-stage #commandoCanvas{height:calc(100% - 96px)}.play-stage .commando-menu{padding:4% 7%;gap:10px}.play-stage .commando-menu h2{font-size:42px;margin:4px 0}.play-stage .commando-menu p{margin:4px 0}.play-stage .commando-controls button{min-width:58px;min-height:48px}}
@media(prefers-reduced-motion:reduce){.commando-controls button.pressed{transform:none}}
@media(max-width:600px) and (orientation:portrait){.commando-pad{display:grid;grid-template-columns:repeat(3,44px);grid-template-areas:". up ." "left duck right";gap:4px}.commando-pad button{width:44px;min-height:46px}.commando-actions button{min-width:46px;min-height:55px}#commandoControlUp{grid-area:up}#commandoControlLeft{grid-area:left}#commandoControlRight{grid-area:right}#commandoControlDuck{grid-area:duck}.commando-controls{gap:6px}.play-stage .commando-controls{height:116px}.play-stage .commando-hud{bottom:116px}.play-stage #commandoCanvas{height:calc(100% - 152px)}.play-stage .commando-menu{justify-content:center;align-items:center;text-align:center}.play-stage .commando-menu p{max-width:280px}}

#commandoBurstCount{font:700 11px 'DM Sans',sans-serif;vertical-align:middle;padding:1px 4px;background:#2b6849;color:#fff8df;border-radius:5px}
