/* ============================= MOCK ADS SYSTEM ============================= */

/* ── Overlay ── */
.ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ad-overlay.ad-visible { opacity: 1; }
.ad-overlay.ad-fade-out { opacity: 0; pointer-events: none; }

/* ── Close button ── */
.ad-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #666;
  background: rgba(40, 40, 40, 0.8);
  color: #aaa;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.ad-close-btn:hover {
  border-color: #d4a545;
  color: #d4a545;
  background: rgba(60, 50, 30, 0.8);
}

/* ── Panel ── */
.ad-panel {
  max-width: 420px;
  width: 90%;
  padding: 40px 32px;
  background: linear-gradient(160deg, #1a1510 0%, #2a2015 50%, #1a1510 100%);
  border: 2px solid #d4a545;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 60px rgba(212, 165, 69, 0.15), inset 0 1px 0 rgba(212, 165, 69, 0.1);
}

/* ── Mock label ── */
.ad-mock-label {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #d4a545;
  letter-spacing: 12px;
  text-shadow: 0 0 20px rgba(212, 165, 69, 0.4);
  margin-bottom: 4px;
}
.ad-mock-sublabel {
  font-family: 'Crimson Text', serif;
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-bottom: 28px;
}

/* ── Timer ring ── */
.ad-timer-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
}
.ad-timer-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ad-ring-bg {
  fill: none;
  stroke: #333;
  stroke-width: 6;
}
.ad-ring-fill {
  fill: none;
  stroke: #d4a545;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.ad-timer-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #d4a545;
}

/* ── Reward text ── */
.ad-reward-text {
  font-family: 'Crimson Text', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #999;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* ── Skip button ── */
.ad-skip-btn {
  display: inline-block;
  padding: 10px 28px;
  background: linear-gradient(180deg, #c9a23c, #a07828, #8a6420);
  border: 1px solid #d4a545;
  border-radius: 6px;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
  animation: adSkipFadeIn 0.4s ease;
}
.ad-skip-btn:hover {
  background: linear-gradient(180deg, #d4a545, #b08830, #9a7428);
  box-shadow: 0 0 16px rgba(212, 165, 69, 0.4);
}

@keyframes adSkipFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Ad offer button (used in game result screens) ── */
.ad-offer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(180deg, #2a4060, #1a2a40, #152030);
  border: 2px solid #4488cc;
  border-radius: 8px;
  color: #8ac;
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin: 8px;
}
.ad-offer-btn:hover {
  border-color: #66aaee;
  color: #acd;
  background: linear-gradient(180deg, #2e4870, #1e3050, #1a2840);
  box-shadow: 0 0 12px rgba(68, 136, 204, 0.3);
}
.ad-offer-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ad-offer-btn .ad-offer-icon {
  font-size: 1.2rem;
}

/* ── Free item button ── */
.ad-free-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(180deg, #2a5030, #1a3520, #152a18);
  border: 2px solid #44aa55;
  border-radius: 8px;
  color: #8c8;
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin: 8px;
}
.ad-free-btn:hover {
  border-color: #66cc77;
  color: #aea;
  box-shadow: 0 0 12px rgba(68, 170, 85, 0.3);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .ad-panel { padding: 28px 20px; }
  .ad-mock-label { font-size: 2.5rem; letter-spacing: 8px; }
  .ad-timer-wrap { width: 80px; height: 80px; }
  .ad-timer-num { font-size: 1.6rem; }
  .ad-close-btn { width: 38px; height: 38px; font-size: 1.1rem; top: 10px; right: 10px; }
}
