.games-page {
  align-items: stretch;
}

.games-area {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.game-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 360px));
  gap: 20px;
  margin-top: 32px;
}

.game-card {
  display: block;
  overflow: hidden;
  border: 1px solid #d7d7d1;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(20, 20, 18, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-2px);
  border-color: #969690;
  box-shadow: 0 14px 30px rgba(20, 20, 18, .1);
  outline: none;
}

.game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}

.game-card:hover img,
.game-card:focus-visible img {
  transform: scale(1.025);
}

.game-card h2 {
  margin: 0;
  padding: 15px 16px 16px;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .game-library {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card,
  .game-card img {
    transition: none;
  }
}
