.permainan {
  padding: 100px 20px;
  background: linear-gradient(135deg, #061a3a, #0d47a1);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.permainan::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,150,255,0.25), transparent);
  top: -150px;
  left: -150px;
}

.permainan::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,200,255,0.2), transparent);
  bottom: -150px;
  right: -150px;
}

/* HEADER */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.section-header h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.section-header span {
  color: #4fc3ff;
  text-shadow: 0 0 10px rgba(79,195,255,0.7);
}

.section-header p {
  color: #cfd8dc;
  max-width: 600px;
  margin: auto;
}

/* GRID */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  position: relative;
  z-index: 2;
}

/* CARD */
.game-card {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

/* LIGHT SWEEP EFFECT */
.game-card::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(0,180,255,0.3), transparent);
  top: -50%;
  left: -50%;
  transform: rotate(25deg);
  opacity: 0;
  transition: 0.5s;
}

.game-card:hover::before {
  opacity: 1;
}

/* HOVER */
.game-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: #4fc3ff;
  box-shadow: 0 15px 40px rgba(79,195,255,0.4);
}

/* ICON */
.game-icon {
  font-size: 42px;
  margin-bottom: 15px;
}

/* TEXT */
.game-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.game-card p {
  font-size: 14px;
  color: #b0bec5;
  margin-bottom: 20px;
}

/* ============================= */
/* STYLE BUTTON PREMIUM */
/* ============================= */

.btn-main {
  padding: 12px 28px;
  background: linear-gradient(90deg, #2196f3, #4fc3ff);
  color: #000;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgb(79, 195, 255);
}

/* Hover effect */
.btn-main:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgb(79, 195, 255);
}

/* Klik effect */
.btn-main:active {
  transform: scale(0.95);
}

/* ============================= */
/* FIX GLOBAL AGAR BUTTON BISA DIKLIK */
/* ============================= */

/* Pastikan semua tombol bisa diklik */
.btn-main,
.btn-main * {
  pointer-events: auto !important;
}

/* Hindari ketimpa layer lain */
.btn-main {
  position: relative;
  z-index: 9999 !important;
  display: inline-block;
  cursor: pointer;
}

/* Hilangkan efek block dari parent */
.section-permainan,
.card-game,
.game-item {
  position: relative;
  z-index: 1;
}

/* Kalau ada overlay gelap / layer efek */
.overlay,
.overlay-dark,
.card-overlay,
.bg-overlay {
  pointer-events: none !important;
}


/* Pastikan tidak ketutup image */
img {
  pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 26px;
  }
}

.btn-main:active {
  transform: scale(0.95);
}