/* Popup background overlay */
#mobileGamePopup {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Popup box */
.popup-content {
  position: relative;
  background: linear-gradient(135deg, #1b1b1b, #2d2d2d);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 25px 20px 30px;
  width: 85%;
  max-width: 380px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.3);
  animation: fadeIn 0.4s ease;
}

.popup-content h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.popup-content p {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.3em;
  cursor: pointer;
  transition: 0.2s;
}

.close-btn:hover {
  color: #00e5ff;
  transform: scale(1.2);
}

/* Action button */
#playAnotherGame {
  background: linear-gradient(135deg, #00e5ff, #6f00ff);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

#playAnotherGame:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,229,255,0.6);
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

/* Only show popup on mobile */
@media (max-width: 768px) {
  #mobileGamePopup {
    display: flex;
  }
}