#reward-ads-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 2147483646;
  display: none;
  overflow: hidden;
}

#reward-ads-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  width: 95%;
  max-width: 600px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  overflow: hidden;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#reward-ads-content {
  width: 100%;
}

#reward-ads-content ins.adsbygoogle {
  display: block !important;
  margin: 0 auto !important;
  width: 100% !important;
  min-height: 250px;
  max-height: 80vh;
  z-index: 2147483647 !important;
  position: relative !important;
}

#reward-ads-close {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 14px;
  cursor: pointer;
  font-size: 18px;
  z-index: 2147483647;
}

#reward-ads-close:hover {
  background: #222;
}

body.reward-ads-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  #reward-ads-box {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  #reward-ads-content ins.adsbygoogle {
    min-height: 200px;
  }

  #reward-ads-close {
    font-size: 14px;
    padding: 12px;
  }
}
