/* ===============================
   Game Cards Block
   =============================== */

.game-cards {
  margin-top: 100px;
}

.game-cards__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.game-cards__viewmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 137px;
  max-width: fit-content;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 150%;
  text-decoration: none;
  transition: all ease 0.3s;

  border-radius: 12px;
  border: 1px solid var(--color-emerald-5);
  background: var(
    --gradients,
    linear-gradient(180deg, #00332a 0%, #001a16 100%)
  );
}

.game-cards__viewmore:hover {
  opacity: 0.9;
}

.game-cards__row {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
}

.game-card {
  flex-basis: calc((100% - 92px) / 5);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.game-card__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
}

.game-card__title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.game-card__buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.game-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 15px;
  text-align: center;
  text-decoration: none;
  transition: all ease 0.3s;
}

.game-card__btn--info {
  background: transparent;
  border: 1px solid var(--color-emerald-5);
  color: #fff;
  min-width: 71px;
}

.game-card__btn--play {
  border: 1px solid var(--stroke-button-secondary-1);
  background: var(--gradients);
  color: #fff;
  min-width: 112px;
}

@media screen and (max-width: 1024px) {
  .game-card {
    flex-basis: calc((100% - 46px) / 3); /* 3 cards per row */
  }
}

.game-cards__viewmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 137px;
  max-width: fit-content;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 150%;
  text-decoration: none;
  transition: all ease 0.3s;

  border-radius: 12px;
  border: 1px solid var(--color-emerald-5);
  background: var(
    --gradients,
    linear-gradient(180deg, #00332a 0%, #001a16 100%)
  );
}

.game-cards__viewmore:hover {
  opacity: 0.9;
}

@media screen and (max-width: 768px) {
  .game-card {
    flex-basis: calc((100% - 46px) / 3); /* 3 картки в ряд */
  }

  .game-card__buttons {
    flex-direction: column;
    gap: 10px;
  }

  .game-card__btn {
    width: 100%; /* кожна кнопка розтягується */
  }

  .game-cards__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .game-cards__viewmore {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }
}
