/* ===== Rewarded Ad Screen ===== */
#rewardedAdScreen {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #00e6ff;
  font-family: "Courier New", monospace;
  text-align: center;
  overflow: hidden;
  animation: fadeIn 1s ease forwards;
}

.rewarded-ad-container {
  padding: 2rem 2.5rem;
  background: rgba(20, 20, 20, 0.55);
  border: 1px solid #00e6ff33;
  border-radius: 12px;
  box-shadow: 0 0 20px #00e6ff55, inset 0 0 15px #00e6ff22;
  max-width: 440px;
  animation: pulse 3s infinite alternate;
}

.rewarded-ad-title {
  font-size: 2.2rem;
  color: #00e6ff;
  letter-spacing: 1px;
  text-shadow: 0 0 12px #00e6ff, 0 0 24px #0099cc;
  margin-bottom: 1rem;
}

.rewarded-ad-message {
  color: #ccf6ff;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 0 4px #007799;
}

.rewarded-ad-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.rewarded-ad-buttons button {
  background: transparent;
  border: 1px solid #00e6ff;
  color: #00e6ff;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.rewarded-ad-buttons button:hover {
  background: #00e6ff;
  color: #000;
  box-shadow: 0 0 10px #00e6ff;
}

/* ===== Loading Overlay (Spinner from before) ===== */
#adLoadingOverlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.85);
  z-index: 20;
  animation: fadeIn 0.3s ease;
}

#adLoadingOverlay .loading-content {
  text-align: center;
  color: #00e6ff;
}

#adLoadingOverlay .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #00e6ff33;
  border-top-color: #00e6ff;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

#adLoadingOverlay p {
  letter-spacing: 1px;
  text-shadow: 0 0 8px #00e6ff;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px #00e6ff55, inset 0 0 15px #00e6ff22; }
  50% { box-shadow: 0 0 25px #00e6ffaa, inset 0 0 25px #00e6ff44; }
}