/* ==========================================================================
   AdX / GAM Ads & Rewarded Overlay Styles (Ported from bytegame-clone)
   ========================================================================== */

/* Ad Badge styling on buttons */
.relativeButtonContainer {
  position: relative;
}

.cusBtnOption {
  position: relative;
}

.ad_Text {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Ad slots styling */
.header_space.ad-slot-top[data-ad-slot] {
  min-height: 270px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px auto;
  max-width: 100%;
  overflow: hidden;
}

.header_space.ad-slot-top[data-ad-slot] .gpt-display-slot {
  min-width: 300px;
  min-height: 270px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.header_space[data-ad-slot]:not(.ad-slot-top) {
  min-height: 270px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px auto;
}

.header_space[data-ad-slot]:not(.ad-slot-top) .gpt-display-slot {
  min-width: 300px;
  min-height: 50px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* Sticky anchor container */
.sticky_ads {
  position: fixed;
  bottom: 0;
  left: 50%;
  right: 50%;
  overflow: hidden;
  padding: 0 8px 0 5px;
  margin: 0 auto 10px;
  background-color: rgba(0, 0, 0, 0.76);
  transform: translate(-50%, 10%);
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  z-index: 50;
}

/* Blur background when reward overlay is open */
body.reward-overlay-open .app_wrapper {
  filter: blur(8px);
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Reward Overlay Modal */
.reward-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.reward-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reward-overlay-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 30px 24px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  color: #111827;
  text-align: center;
  animation: rewardModalPop 0.25s ease-out;
}

@keyframes rewardModalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.reward-overlay-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 12px;
}

.reward-overlay-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.reward-overlay-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 22px;
}

.reward-overlay-desc strong {
  color: #111827;
  font-weight: 600;
}

.reward-overlay-cta {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 13px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-align: center;
  color: #ffffff !important;
  background: linear-gradient(180deg, #2563eb, #1d4ed8) !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.reward-overlay-cta:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
}

.reward-overlay-cta:disabled {
  opacity: 0.65;
  cursor: wait;
}

.reward-overlay-footnote {
  margin-top: 15px;
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
  text-align: center;
}

.categories_box {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: center !important;
}

.categories_box .cusBtnOption {
  margin: 3px 2px;
}

/* ==========================================================================
   Temporarily Hide Play Games Button & Navigation Item
   ========================================================================== */
a[href*="html5gameslive"],
a[data-endpoint="Play Games"],
.cusBtnOption[href*="html5gameslive"],
.watchAdButton[href*="html5gameslive"] {
  display: none !important;
}

li:has(> a[data-endpoint="Play Games"]),
li:has(> a[href*="html5gameslive"]) {
  display: none !important;
}

