/* ---------- Reset e corpo ---------- */
body {
  margin: 0;
  background: #0b1020;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #fff;
}

/* ---------- Canvas ---------- */
#gameContainer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

canvas {
  border: 2px solid #22d3ee;
  background: #0b1020;
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- Menu ---------- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 16, 32, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.overlay h1, .overlay h2 {
  margin-bottom: 20px;
}

.overlay button {
  margin: 10px;
  padding: 12px 24px;
  font-size: 18px;
  background: #22d3ee;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #000;
  transition: 0.2s;
}

.overlay button:hover {
  background: #0ff;
}

/* ---------- Controles Touch ---------- */
#touchControls {
  display: none; /* Escondido por padrão */
  margin-top: 10px;
  gap: 15px;
}

#touchControls button {
  padding: 15px 25px;
  font-size: 22px;
  border-radius: 8px;
  border: none;
  background: #22d3ee;
  color: #000;
  cursor: pointer;
}

/* ---------- Footer ---------- */
#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  color: #fff;
  z-index: 5;
}

/* ---------- Responsividade ---------- */
@media (max-width: 768px) {
  #touchControls {
    display: flex; /* Mostra apenas no celular */
  }

  #touchControls button {
    padding: 12px 18px;
    font-size: 20px;
  }

  .overlay button {
    font-size: 16px;
    padding: 10px 20px;
  }
}
