/* Rewarded Ad Overlay — reusable template */

.rewarded-ad-root {
  --ra-blue: #1a73e8;
  --ra-chrome: rgba(32, 32, 32, 0.72);
  --ra-pill: rgba(48, 48, 48, 0.92);
  --ra-text: #ffffff;
  --ra-z: 10000;
  position: fixed;
  inset: 0;
  z-index: var(--ra-z);
  display: none;
  font-family: Roboto, "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.rewarded-ad-root.is-open {
  display: block;
}

.rewarded-ad-root.is-open ~ * {
  pointer-events: none;
}

.rewarded-ad-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.rewarded-ad-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 6px 10px 6px 8px;
  box-sizing: border-box;
  background: var(--ra-chrome);
}

.rewarded-ad-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rewarded-ad-more span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.rewarded-ad-close-cluster {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 2px;
  border-radius: 4px;
  color: var(--ra-text);
  user-select: none;
}

.rewarded-ad-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.rewarded-ad-close svg {
  display: block;
}

.rewarded-ad-stage {
  position: absolute;
  inset: 44px 0 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 24px;
  box-sizing: border-box;
}

.rewarded-ad-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.rewarded-ad-loading[hidden] {
  display: none;
}

.rewarded-ad-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rewarded-ad-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation: rewarded-ad-dot 0.9s ease-in-out infinite;
}

.rewarded-ad-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.rewarded-ad-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes rewarded-ad-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.85);
  }
  40% {
    opacity: 1;
    transform: translateY(-8px) scale(1);
  }
}

.rewarded-ad-slot {
  position: relative;
  width: min(92vw, 336px);
  overflow: hidden;
}

.rewarded-ad-slot.is-loading {
  min-height: 250px;
  visibility: hidden;
}

.rewarded-ad-slot iframe,
.rewarded-ad-slot > div {
  margin: 0 auto;
}

.rewarded-ad-slot-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 24px 16px;
  text-align: center;
  color: #80868b;
  box-sizing: border-box;
}

.rewarded-ad-slot.is-empty .rewarded-ad-slot-fallback {
  display: flex;
}

.rewarded-ad-slot-fallback-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa0a6;
  margin-bottom: 8px;
}

.rewarded-ad-slot-fallback-size {
  font-size: 14px;
  color: #5f6368;
}

body.rewarded-ad-lock {
  overflow: hidden;
}

@media (min-width: 768px) {
  .rewarded-ad-slot {
    width: 336px;
  }
}
