/* Layout for /games — uses adderoaks parent style.css for the card visuals,
   theme, and header. Cards here are anchors with no background image — the
   accent color carries the visual weight. */

.site-name {
  text-decoration: none;
  color: inherit;
}

.games-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

.games-title {
  font-size: 2.2rem;
  margin: 8px 0 6px;
}

.games-intro {
  margin: 0 0 26px;
  opacity: 0.78;
  max-width: 56ch;
  line-height: 1.5;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.games-card {
  text-decoration: none;
  color: inherit;
  min-height: 180px;
  /* Fallback fill in case the screencap fails to load. The .card-bg
     image + .card-overlay (from parent style.css) sit on top. */
  background: rgba(var(--card-accent), 0.6);
}

.games-card .card-content {
  color: #fff;
}

.games-card .card-title {
  font-size: 1.25rem;
}

@media (max-width: 520px) {
  .games-main {
    padding: 20px 14px 56px;
  }
  .games-title {
    font-size: 1.7rem;
  }
  .games-card {
    min-height: 140px;
  }
}
