body {
  margin: 0;
  padding: 0;
  background-color: #1e1f00;
  font-family: monospace;
  color: yellow;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#title {
  color: #665c00;
  font-size: 6.8vw;
  text-align: center;
  margin: 40px 0 20px;
  text-transform: lowercase;
}

#search {
  width: 300px;
  padding: 10px;
  font-family: monospace;
  font-size: 1em;
  border-radius: 10px;
  border: none;
  outline: none;
  margin-bottom: 30px;
  background-color: #2a2a00;
  color: yellow;
  box-shadow: 0 0 10px #222;
  text-align: center;
}

/* Grid layout: exactly 4 per row on desktop */
.game-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 30px;
  border-radius: 25px;
  background-color: #2a2a00;
  box-shadow: 0 0 20px #111;
  width: 100%;
  max-width: 1000px; /* widen to fit larger buttons */
  justify-items: center; /* center buttons in their grid cells */
}

/* Bigger buttons */
.game-button {
  width: 160px;
  height: 160px;
  background: #908200;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: yellow;
  font-size: 18px;
  text-transform: lowercase;
  box-shadow: 0 0 10px #222;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px yellow;
}

/* Larger icon to match bigger button */
.game-button img {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  filter: brightness(1.2) contrast(1.1);
  border-radius: 25%;
  object-fit: cover;
}

.back-button {
  display: inline-block;
  margin: 20px 0;
  padding: 10px 18px;
  font-family: monospace;
  font-size: 1em;
  color: yellow;
  background-color: #908200;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 10px #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px yellow;
}

/* Responsive fallbacks: keep rows clean on smaller screens */
@media (max-width: 1024px) {
  .game-container { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .game-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .game-container { grid-template-columns: 1fr; }
}
