/* =============================================================
   Endless War 3 - page-specific styles

   The shared game.css has no same-category row, and this page
   carries a four-game "more action games" strip above the H1.
   The two data tables use the shared .compare-table styles.
   ============================================================= */

/* ------- Same-category row: four linked games above the H1 ------- */

.related-games-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.related-game-card {
  display: block;
  background: #0f0f1c;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.related-game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.related-game-card span {
  display: block;
  padding: 9px 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.related-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent2);
}

/* ------- Small screens: 2 columns ------- */

@media (max-width: 768px) {
  .related-games-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
