.section-games {
  padding: 80px 0;
  background: var(--color-white);
}

.section-games .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-games .section-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #0a005e;
  margin-bottom: 16px;
}

.section-games .section-header p {
  font-size: 16px;
  color: #0a005e;
  max-width: 600px;
  margin: 0 auto;
}

.games-grid {
  display: grid;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.game-card {
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background: var(--color-bg-card-solid);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(124, 255, 1, 0.15);
}

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

.game-card.hidden-game {
  display: none;
}

.games-grid.show-all .game-card.hidden-game {
  display: block;
}

.section-games .btn-wrap {
  text-align: center;
}

.game-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-modal {
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #0a005e;
}

.game-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #0a005e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.game-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.game-modal-close:hover {
  opacity: 1;
}

.game-modal-body {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.game-modal-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .section-games .section-header h2 {
    font-size: 28px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
