canvas.invaders {
  display: block;
  margin: 5px auto;
  border: 2px solid #0f0;
  image-rendering: pixelated;
  background: black;
  max-width: 90vw;    /* scale down on small screens */
  z-index: 1;
}

#score, #level, #lives {
  color:#0f0;
  margin-top:5px;
}

#leaderboard, #leaderboard-screen {
  margin-top:10px;
  line-height: 4;
  color:#ffb86b;
}

#power {
  margin-top:3px;
  color:#ffb86b;
}

/* Mobile controls container */
#mobile-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px auto;
  text-align: center;
}

/* Buttons default size */
#mobile-controls button {
  width: 80px;
  height: 80px;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: transparent;
  color: #ffb86b;
  border: 1px solid #ffb86b;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  image-rendering: pixelated;
  transition: all 0.2s ease-in-out;
}

#mobile-controls button:active {
  background-color: blue;
}

#startBtn, #startBtnLeaderboard {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 8px 16px;
  background-color: transparent;
  color: #ffb86b;
  border: 1px solid #ffb86b;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  image-rendering: pixelated;
  transition: all 0.2s ease-in-out;
}

/* Hover effect for all buttons */
#startBtn:hover, #startBtnLeaderboard:hover {
  background-color: #ffb86b;
  color: #282a36; /* adjust if your background differs */
  image-rendering: pixelated;
}

/* --- Mobile scaling --- */
@media screen and (max-width: 800px) {
  /* Mobile buttons */
  #mobile-controls {
    display: flex !important;          /* show buttons on small screens */
    justify-content: center;
    gap: 10vw;
  }

  #mobile-controls button {
    width: 25vw;
    height: 25vw;
    font-size: 5vw;
  }

  /* Hide header on mobile */
  h1 {
    display: none;
  }
}