@font-face {
  font-family: "Coolvetica";
  src: url("../fonts/coolvetica-bold.ttf") format("opentype");
  font-weight: 400;
}
@font-face {
  font-family: "Coolvetica";
  src: url("../fonts/coolvetica-bold.ttf") format("opentype");
  font-weight: 700;
}

/* Стили карусели */
.carousel-container {
  width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 50%;
  box-sizing: border-box;
  padding: 0 10px;
}

.carousel-slide img {
  width: 100%;
  border-radius: 16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.dot {
  width: 30px;
  height: 7px;
  background-color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #ff66cc;
}

/* Раздел популярных игр */
.live-games {
  width: 950px;
  margin: 40px auto; /* Центрирование и отступы */
  text-align: left;
}

/* Заголовок со встроенной линией */
.live-games h2 {
  display: inline-block;
  font-family: Coolvetica;
  font-size: 18px;
  margin-bottom: 20px;
  color: white;
  vertical-align: middle;
  position: relative;
}

.live-games h2::after {
  content: "";
  border-radius: 15px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px; /* расстояние между текстом и линией */
  height: 8px; /* толщина линии */
  width: 200px; /* длина линии – можно регулировать */
  min-width: 100px;
  background: linear-gradient(
    to right,
    #800080 0%,
    #800080 0%,
    transparent 100%
  );
}

/* Сетка популярных игр */
.live-games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 колонок */
  gap: 30px; /* Расстояние между изображениями */
}

.live-games-grid .game-item img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Делаем изображение квадратным */
  border-radius: 16px; /* Скруглённые углы */
  object-fit: cover; /* Изображение заполняет блок */
  transition: transform 0.3s;
}

.game-item {
  border-radius: 15px;
}

.live-games-grid .game-item:hover img {
  transform: scale(1.05); /* Эффект увеличения при наведении */
}

/* Адаптивность */
@media (max-width: 1200px) {
  .carousel-container,
  .live-games {
    width: 90%;
    margin: 20px auto;
  }

  /* При экранах от 801px до 1200px сетка становится 4 колонки */
  .live-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Для планшетов (от 801px до 1200px) – 3 колонки */
@media (max-width: 1200px) and (min-width: 801px) {
  .live-games-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
  }
}

/* Для мобильных (до 800px) – 2 колонки */
@media (max-width: 800px) {
  .live-games-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
  }
}