/* Game popup ad overlay and modal */
.popup-ad-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-ad-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.popup-ad-modal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.popup-ad-overlay.is-visible .popup-ad-modal {
  transform: scale(1);
}

.popup-ad-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.popup-ad-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

.popup-ad-body {
  padding: 28px 24px 24px;
  color: #fff;
  text-align: center;
}

.popup-ad-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.95;
}

.popup-ad-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.popup-ad-desc {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0 0 20px;
  line-height: 1.4;
}

.popup-ad-cta {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-ad-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.popup-ad-label {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
