body {
  text-align: center;
  font-family: sans-serif;
  background-image: url('grass.png');
  background-repeat: repeat;
  background-size: 64px 64px;
  background-position: center;
  image-rendering: pixelated;
  color: rgb(68, 3, 96);
  cursor: url('hammer.png') 7 16, auto;
}

body,
button,
input,
select {
  cursor: url('hammer.png') 7 16, auto;
}

#hud h2 {
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  color: white;                         /* make text pop */
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
}

#gameBoard {
  display: grid;
  grid-template-columns: repeat(11, 64px);
  grid-template-rows: repeat(11, 64px);
  gap: 0px;
  margin: 30px auto;
  width: fit-content;
}

#startMenu {
  background: rgba(0, 100, 0, 0.95); /* deep green, mostly opaque */
  padding: 40px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 100px;
  z-index: 10000;
  position: center;
}

#initialsPrompt input {
  font-size: 1.2em;
  text-transform: uppercase;
  text-align: center;
}

#leaderboard {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 12px;
}

#highScoreList {
  display: inline-block;
  text-align: left;
  padding-left: 0;
  list-style-type: none;
  font-size: 1.1em;
}

#startButton {
  font-size: 20px;
  padding: 10px 20px;
  cursor: url('hammer.png') 7 16, auto;
  background-color: #69df69;
  border: none;
  border-radius: 8px;
  color: rgb(0, 0, 0);
}

#hud h2 {
  margin-bottom: 20px;
}

.tile {
  width: 64px;
  height: 64px;
  background-size: cover;
  image-rendering: pixelated;
}

.dirt {
  background-image: url('dirt.png');
  background-size: cover;
}

.grass {
  background-image: url('grass.png');
  background-size: 64px 64px;
}

.dirt.mole {
  background-image: url('mole0.png');
  background-size: 64px 64px;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  animation: pop 0.2s ease-out;
}

@keyframes pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#deathScreen {
  background-color: rgba(0, 0, 0, 0.85);
  color: rgb(255, 228, 184);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  z-index: 10000;
}

#playAgainButton {
  margin-top: 20px;
  font-size: 18px;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #cc3333;
  border: none;
  border-radius: 8px;
  color: white;
}
#globalCount {
  margin-top: 15px;
  font-weight: bold;
  color: #ffe4b8;
  font-size: 1.1em;
}

