@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
  color: white;
  background: #1e1e1e;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  image-rendering: pixelated;
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.screen.active {
  display: flex;
}

button {
  font-size: 1rem;
  padding: 1rem 2rem;
  border: 5px solid #fff;
  background: #ff4f4f;
  color: white;
  cursor: pointer;
  font-family: 'Press Start 2P', monospace;
}

.header {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 32px);
  grid-template-rows: repeat(5, 32px);
  gap: 6px;
  background: #000;
  padding: 4px;
  box-sizing: content-box;
}

.square.tap-available {
  background: #ef5350; /* bright red */
  cursor: pointer;
}

.square.tap-available:active {
  background: #d32f2f;
}

#date-display {
  margin-top: 1rem;
  color: white;
  font-size: 0.75rem;
}

#final-score {
  font-size: 1rem;
  color: white;
  margin-top: 1rem;
}

.square {
  width: 32px;
  height: 32px;
  border: 1px solid #222;
  background-color: #333;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.square.player-location {
  outline: 2px solid #fff700;
}

.square.tappable {
  outline: 2px dashed #ffa726;
  cursor: pointer;
}

.square.stepped {
  filter: brightness(1.2) contrast(1.5);
  box-shadow: inset 0 0 0 4px #ef5350;
}

.square.damaged {
 filter: brightness(1.5) saturate(0.6);
}

