.card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  color: #fff;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Dark overlay for text readability */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 10, 35, 0.7);
  z-index: 0;
  pointer-events: none; /* 🧠 ← ДОБАВЬ ЭТО */
}

.card * {
  position: relative;
  z-index: 1;
}

/* Individual background images */
.card-grayditch {
  background-image: url('../Pictures/grayditch.jpg');
}

.card-guardian {
  background-image: url('../Pictures/guardian.jpg');
}

.card-snowless {
  background-image: url('../Pictures/snowless.jpg');
}

.card:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
  background: rgba(10, 8, 25, 0.55);
}


.card:hover h4,
.card:hover p {
  color: #ffffff;
}

.game-cards a.card {
  text-decoration: none;
  display: block;
  border-radius: 8px;
}
.game-cards a.card:focus {
  outline: none;
}

a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

