/* =========================
   🌌 PREMIUM POPUP
========================= */
.popup-overlay {
  position: fixed;
  inset: 0;

  background: radial-gradient(circle at center, rgba(0,0,0,0.7), #000);
  backdrop-filter: blur(8px);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

/* Main container */
.popup-content {
  position: relative;

  width: 380px;
  max-width: 95%;

  padding: 28px;
  border-radius: 20px;

  background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
  color: white;

  box-shadow: 0 30px 80px rgba(0,0,0,0.6);

  animation: premiumPop 0.35s ease;
}

/* Smooth entrance */
@keyframes premiumPop {
  from {
    transform: translateY(50px) scale(0.85);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Close button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;

  width: 32px;
  height: 32px;

  border-radius: 50%;
  border: none;

  background: rgba(255,255,255,0.1);
  color: white;

  cursor: pointer;
  transition: 0.2s;
}

.close-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* =========================
   🎮 GAME SELECT (PREMIUM)
========================= */
.game-select {
  text-align: center;
}

.game-select h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.game-select p {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 20px;
}

/* Grid */
.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Cards */
.game-card {
  padding: 22px 15px;
  border-radius: 16px;

  background: linear-gradient(135deg, #2f2f2f, #1c1c1c);
  border: 1px solid rgba(255,255,255,0.08);

  cursor: pointer;
  transition: all 0.3s ease;

  text-align: center;
}

/* Glow hover */
.game-card:hover {
  transform: translateY(-6px) scale(1.05);
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 0 25px rgba(102,126,234,0.5);
}

/* Emoji */
.game-card span {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

/* Label */
.game-card h4 {
  margin: 0;
  font-size: 14px;
}

/* =========================
   🎮 GAME SCREEN
========================= */
.game-container {
  text-align: center;
}

/* Back button */
.back-btn {
  margin-bottom: 12px;
  padding: 6px 12px;

  border: none;
  border-radius: 8px;

  background: rgba(255,255,255,0.1);
  color: white;

  cursor: pointer;
}

.back-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* =========================
   📱 MOBILE
========================= */
@media (max-width: 480px) {
  .popup-content {
    width: 92%;
    padding: 22px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }
}