.game-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 56px);
  padding: 12px;
  background: radial-gradient(ellipse at top, #1b3a1b 0%, #0a1a0a 70%);
}

#board {
  display: block;
  background: linear-gradient(to bottom, #87ceeb 0%, #b8e0d2 60%, #6b8e4e 100%);
  border: 2px solid #2d4a1e;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  image-rendering: pixelated;
  max-width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  text-align: center;
  pointer-events: auto;
}

.overlay h2 {
  margin: 0;
  font-size: 32px;
  color: #ffd54a;
  text-shadow: 2px 2px 0 #000;
}

.overlay p {
  margin: 0;
  font-size: 15px;
  max-width: 320px;
}

.overlay button {
  margin-top: 6px;
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  background: #ffd54a;
  color: #2d1a00;
  cursor: pointer;
  box-shadow: 0 3px 0 #b08520;
}

.overlay button:hover {
  background: #ffe066;
}

.overlay button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #b08520;
}

.overlay .hint {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.75;
}

.score .sep {
  margin: 0 8px;
  opacity: 0.5;
}

.hidden {
  display: none !important;
}