body{
  margin:0;
  background:#0f172a;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#gameWrap{
  position:relative;
  width:400px;
  max-width:95vw;
}

/* garante que o canvas não fique “por cima” dos botões */
canvas{
  width:100%;
  height:auto;
  background:#1e293b;
  border:3px solid #ffffff22;
  display:block;
  position:relative;
  z-index:1;
}

/* botões sempre por cima */
#mobileControls{
  position:absolute;
  left:0;
  right:0;
  bottom:18px;
  display:flex;
  justify-content:space-between;
  padding:0 22px;
  z-index:9999;          /* 🔥 isso faz aparecer por cima */
  pointer-events:none;   /* só os botões clicam */
}

.mBtn{
  pointer-events:auto;
  width:78px;
  height:78px;
  border-radius:18px;
  border:2px solid rgba(255,255,255,0.25);
  background:rgba(0,0,0,0.45);
  color:rgba(255,255,255,0.95);
  font-size:34px;
  font-weight:800;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mBtn:active{
  transform:scale(0.98);
  background:rgba(255,255,255,0.18);
}