.cannon-shell{aspect-ratio:auto;background:#dce6cc}.cannon-viewport{position:relative;aspect-ratio:16/9;overflow:hidden}#cannonCanvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none;cursor:crosshair}
.cannon-menu{align-items:flex-start;text-align:left;padding:6%;background:linear-gradient(90deg,#fff3d6f2,#fff3d6a3 43%,#fff3d600 80%)}.cannon-menu h2{font-size:clamp(36px,5vw,64px);line-height:1.02;letter-spacing:-2px;margin:14px 0}.cannon-menu h2 em{display:block}.cannon-menu p{max-width:270px;font-size:13px;line-height:1.5}.cannon-menu .panel-eyebrow{font-size:9px}.cannon-menu .play-button{min-height:48px}
.cannon-hud{display:flex;align-items:center;gap:15px;min-height:40px;padding:4px 14px;font-size:11px;background:#faf2db;color:#295e46}.cannon-hud strong{margin-left:auto;font:700 20px 'Rubik',sans-serif}.cannon-hud .hud-icon{width:38px;height:38px;background:#fff9e6;border-radius:50%}#cannonTurn{font-size:10px;color:#738261}
.cannon-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 16px;background:#f8efd6;border-top:1px solid #b4b99844}.cannon-aim-pad,.cannon-weapons{display:flex;gap:5px}.cannon-controls button{min-height:48px;border:1px solid #a5b18b;border-bottom:3px solid #8a9f77;border-radius:10px;background:#fff9e8;color:#356347;touch-action:none;user-select:none;-webkit-user-select:none}.cannon-aim-pad button{min-width:44px;font-size:23px}.cannon-weapons button{padding:8px 12px;font-size:10px;max-width:140px;overflow-wrap:anywhere}.cannon-weapons button[aria-pressed="true"]{background:#dbe9c9;border:2px solid #347950}.cannon-controls button.pressed{background:#e8d07c}.cannon-controls button:disabled{opacity:.4}.cannon-controls :focus-visible{outline:3px solid #d99f00;outline-offset:2px}#cannonBunchCount{padding:1px 4px;border-radius:4px;background:#3a7550;color:#fffbe9;margin-left:4px}#cannonLaunch{background:#f1cd58;border-color:#b5943c;min-width:90px;font-size:12px;padding:8px 12px}
.cannon-below{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.cannon-shell .glide-overlay{z-index:5}.cannon-shell .glide-result-card{max-width:500px;max-height:100%;overflow-y:auto}.cannon-shell .glide-result-card h2{font-size:25px}
.play-stage .cannon-shell{display:flex;flex-direction:column}.play-stage .cannon-viewport{flex:1;min-height:0;aspect-ratio:auto;overflow:visible;position:static}.play-stage #cannonCanvas{position:absolute;left:0;top:0;width:100%;height:calc(100% - 110px)}.play-stage .cannon-controls{position:absolute;bottom:0;left:0;right:0;height:74px}.play-stage .cannon-hud{position:absolute;bottom:74px;left:0;right:0;min-height:36px;padding:3px 12px}.play-stage #cannonPauseButton{display:none}.play-stage .cannon-menu{inset:0}
@media(max-width:600px){.cannon-below{grid-template-columns:1fr;gap:12px}.cannon-hud{gap:7px;font-size:9px;padding:5px 8px;flex-wrap:wrap}.cannon-hud strong{font-size:17px}#cannonTurn{display:none}.cannon-controls{padding:8px;gap:7px;flex-wrap:wrap}.cannon-aim-pad{order:2;flex:1;justify-content:space-between}.cannon-aim-pad button{flex:1;min-width:44px}.cannon-weapons{flex:1}.cannon-weapons button{flex:1;max-width:none;padding:6px 8px;min-height:46px}.cannon-controls #cannonLaunch{min-width:76px;min-height:46px}.play-stage .cannon-controls{height:116px}.play-stage .cannon-hud{bottom:116px}.play-stage #cannonCanvas{height:calc(100% - 152px)}.cannon-menu{padding:5%;justify-content:center;gap:8px}.cannon-menu h2{font-size:32px;margin:5px 0}.cannon-menu p{font-size:10px;margin:5px 0;max-width:215px}.cannon-menu .panel-eyebrow{font-size:7px}.cannon-menu .play-button{min-height:40px;padding:8px 14px;font-size:11px}.cannon-shell .glide-result-card{padding:16px}.cannon-shell .glide-result-card h2{font-size:20px}}
@media(any-pointer:coarse){.cannon-shell .score-entry input{font-size:16px}}
@media(max-width:600px) and (orientation:portrait){.cannon-viewport{aspect-ratio:1.05}.play-stage .cannon-menu{justify-content:center;align-items:center;text-align:center}.play-stage .cannon-menu p{max-width:270px}}
@media(max-height:530px) and (orientation:landscape){.play-stage .cannon-controls{height:60px;flex-wrap:nowrap;gap:8px;padding:5px 12px}.play-stage .cannon-hud{bottom:60px;min-height:30px}.play-stage #cannonCanvas{height:calc(100% - 90px)}.play-stage .cannon-aim-pad{order:0;flex:0}.play-stage .cannon-aim-pad button{min-width:44px;min-height:46px}.play-stage .cannon-weapons{flex:0}.play-stage .cannon-weapons button{min-height:46px;padding:6px 8px}.play-stage .cannon-menu{padding:3% 7%;gap:8px}.play-stage .cannon-menu h2{font-size:40px;margin:4px 0}.play-stage .cannon-menu p{margin:4px 0}}
