/* AdSense presentation — quiet, not spammy */
.ad-slot {
  margin: 0.75rem 0 1rem;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
}
.ad-slot.ad-rendered {
  min-height: 90px;
  border: 1px solid var(--border, #2a3544);
  background: rgba(15, 20, 25, 0.35);
  padding: 0.5rem;
}
.ad-landing {
  max-width: 720px;
}
.ad-close-results {
  margin: 0.5rem 0 0;
  padding: 0 0.25rem;
}
.ad-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6f8299;
  font-weight: 700;
}
.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(6px);
}
.ad-modal.hidden { display: none !important; }
.ad-modal-card {
  width: min(480px, 100%);
  background: linear-gradient(180deg, #1c2430, #171d25);
  border: 1px solid #2a3544;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.ad-modal-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}
.ad-modal-text {
  margin: 0 0 0.75rem;
  color: #8b9bb0;
  font-size: 0.92rem;
}
.ad-gate-body {
  min-height: 100px;
  margin-bottom: 0.85rem;
}
.ad-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.ad-modal-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Result modal polish if missing */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal.hidden { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.65);
}
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #1c2430;
  border: 1px solid #2a3544;
  border-radius: 16px;
  padding: 1rem 1.15rem 1.15rem;
  z-index: 1;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.modal-head h2 { margin: 0; }
.icon-btn {
  font-size: 1.5rem;
  line-height: 1;
  color: #8b9bb0;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
}
.icon-btn:hover { background: #171d25; color: #e8eef6; }
.modal-body { margin: 0.75rem 0; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
