/* ----- Παιχνίδια: φορτώνεται ΜΕΤΑ το style.css ----- */

nav a.active {
  color: #FFD700;
}

.games-box {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px 32px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 2px solid #FFD700;
  border-radius: 8px;
  text-align: center;
}

.games-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid #FFD700;
  font-size: 30px;
  color: #e9d7a6;
}

.games-intro {
  margin: 0 0 26px;
  font-size: 18px;
  color: #d8d8dc;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.game-card {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  border-color: #FFD700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  outline: none;
}

.game-thumb {
  overflow: hidden;
  border: 1px solid #4a4a4f;
  border-radius: 6px;
}

.game-thumb svg {
  display: block;
  width: 100%;
  height: auto;
}

.game-card h2 {
  margin: 14px 0 6px;
  font-size: 24px;
  color: #e9d7a6;
  transition: color 0.3s ease;
}

.game-card:hover h2,
.game-card:focus-visible h2 {
  color: #FFD700;
}

.game-card p {
  flex: 1;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #b5b5ba;
}

.game-play {
  color: #FFD700;
  font-size: 17px;
  font-weight: bold;
}

@media (max-width: 900px) {
  .games-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .games-box {
    padding: 18px 12px 24px;
  }
  .games-title {
    font-size: 25px;
  }
}
