html,body { height:100%; margin:0; }
body { background:#1e1e1e; display:flex; align-items:center; justify-content:center; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; color:#fff; }
.container { position:relative; width:480px; height:640px; }
#gameCanvas { background:#dfffe0; display:block; width:100%; height:100%; border:2px solid #333; box-sizing:border-box; }
#hud { position:absolute; left:12px; top:12px; z-index:10; display:flex; gap:8px; align-items:center; }
#score { font-size:16px; font-weight:600; color: blue; }
button { background:#2b6cff; color:#fff; border:none; padding:6px 10px; border-radius:6px; cursor:pointer; font-size:14px; }
button:active { transform:translateY(1px); }
#overlay { position:absolute; left:0; top:0; width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.6); flex-direction:column; gap:12px; z-index:20; }
#overlay.hidden { display:none; }
.hidden { display:none; }

/* Mobile on-screen controls */
#mobileControls { position:absolute; left:0; right:0; bottom:14px; z-index:15; pointer-events:none; display:flex; justify-content:space-between; padding:0 12px; }
.mobile-control { pointer-events:auto; width:96px; height:64px; border-radius:12px; background:rgba(0,0,0,0.45); color:#fff; border:1px solid rgba(255,255,255,0.08); font-size:28px; display:flex; align-items:center; justify-content:center; user-select:none; -webkit-user-select:none; touch-action:none; }
.mobile-control:active { background:rgba(0,0,0,0.6); transform:translateY(1px); }

/* Always show mobile controls (visible on all screen sizes) */

/* Prevent default touch scrolling/zoom when interacting with canvas */
#gameCanvas { touch-action: none; }
#gameOverText { font-size:28px; font-weight:700; }
#finalScore { font-size:18px; color: blue; }
