body {
  margin: 0;
  background: #72c3fc;
  font-family: Arial, sans-serif;
  overflow: hidden;
  text-align: center;
  touch-action: manipulation;
}

#gameCanvas {
  display: block;
  margin: auto;
  background: linear-gradient(#72c3fc, #ffffff 80%);
}

#startScreen,
#gameOverScreen,
#leaderboard {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffffee;
  padding: 30px 40px;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.hidden { display: none; }

.missionText {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.startImage {
  width: 200px;
  max-width: 90%;
  border-radius: 12px;
  margin-bottom: 15px;
}

button {
  padding: 12px 28px;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  min-width: 160px;
  min-height: 44px;
  margin-top: 10px;
}

#startBtn { background: #0077ff; color: white; }
#restartBtn { background: #54b846; color: white; }

#pauseBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffcc00;
}

#closeBoardBtn { background: #6c757d; color: white; }
#clearBoardBtn { background: #c82333; color: white; }

input, select {
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  width: 200px;
  text-align: center;
}

#leaderboard ol {
  text-align: left;
  padding-left: 20px;
}
/* ===== LEADERBOARD OVERLAY ===== */
.leaderboard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.leaderboard-card {
  background: #ffffff;
  width: 90%;
  max-width: 360px;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  text-align: center;
}

/* ===== TABLE ===== */
.table-container {
  max-height: 260px;
  overflow-y: auto;
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

#leaderboardTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#leaderboardTable th {
  background: #222;
  color: #fff;
  padding: 8px;
  position: sticky;
  top: 0;
}

#leaderboardTable td {
  padding: 8px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

#leaderboardTable tr:nth-child(even) {
  background: #f7f7f7;
}

#leaderboardTable tr.current-player {
  background: gold !important;
  font-weight: bold;
}

/* ===== BUTTON ===== */
.close-btn {
  margin-top: 14px;
  padding: 10px;
  width: 100%;
  border-radius: 12px;
  border: none;
  background: #6c757d;
  color: #fff;
  font-size: 16px;
}

/* ===== HIDE CLASS ===== */
.hidden {
  display: none !important;
}


