.games-section {
  padding: 70px 0;
  background: #111;
  text-align: center;
}

.games-section h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 2rem;
  color: var(--accent3);
  margin-bottom: 30px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  justify-items: center;
}

.game-card {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  transition: transform .25s ease, box-shadow .25s ease;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.game-card:hover img {
  transform: scale(1.08);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: all .3s ease;
}

.overlay span {
  color: var(--accent3);
  font-weight: 700;
  font-size: .95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}

.game-card:hover .overlay {
  background: rgba(0, 0, 0, 0.65);
  opacity: 1;
}

.game-card:hover .overlay span {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  .game-card {
    width: 120px;
    height: 120px;
  }
  .overlay span {
    font-size: .85rem;
  }
}
