.games {
  background: #0d0d0d;
  position: relative;
  padding: 64px 0;
}

.games::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  mix-blend-mode: color-burn;
  pointer-events: none;
}

.games-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.games-header {
  text-align: center;
  max-width: 820px;
}

.games-header h2 {
  font-size: 56px;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 8px;
}

.games-header p {
  font-family: "Syne", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  color: #fff;
}

.games-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.games-row {
  display: flex;
  gap: 16px;
}

.game-card {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(5, 88, 255, 0.3);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.game-modal.active {
  display: flex;
}

.game-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.game-modal-content {
  position: relative;
  width: 95%;
  max-width: 1400px;
  background: #1e1e1e;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  color: #fff;
  z-index: 10;
  line-height: 1;
  padding: 4px 8px;
}

.game-modal-title {
  padding: 16px 24px;
  font-size: 20px;
  font-weight: 700;
  background: #0d0d0d;
}

.game-modal-iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

@media (max-width: 1024px) {
  .games-header h2 {
    font-size: 40px;
  }

  .games-header p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .games {
    padding: 40px 0;
  }

  .games-inner {
    padding: 0 20px;
    gap: 24px;
  }

  .games-header h2 {
    font-size: 28px;
  }

  .games-header p {
    font-size: 16px;
    line-height: 24px;
  }

  .games-row {
    flex-wrap: wrap;
  }

  .game-modal-content {
    width: 98%;
    border-radius: 10px;
  }
}
