/* Google Ad Manager slot chrome */

.ad-slot {
  width: 100%;
  max-width: 100%;
  margin: 1rem auto;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  box-sizing: border-box;
}

.ad-slot.is-empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.ad-label {
  display: block;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
  line-height: 1.2;
  padding: 0;
  margin: 0;
}

.ad-slot > [id^="div-gpt-ad-"] {
  align-self: center;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  display: flex !important;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.ad-slot > [id^="div-gpt-ad-"] > div,
.ad-slot > [id^="div-gpt-ad-"] iframe {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100%;
}

.ad-slot--banner > [id^="div-gpt-ad-"] {
  min-width: 0;
  width: 100%;
  min-height: 0;
}

/* Reserve 250px only after a creative actually fills — avoids empty holes */
.ad-slot--banner.is-filled > [id^="div-gpt-ad-"] {
  min-height: 250px;
}

.ad-slot--banner.is-empty > [id^="div-gpt-ad-"] {
  min-height: 0;
  min-width: 0;
}


.ad-slot--inline-home {
  margin: 1.25rem auto;
}

.ad-slot--quiz {
  margin: 0.85rem auto;
  max-width: 20.5rem;
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 0.75rem;
}

.ad-slot--quiz-top {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}

.ad-slot--quiz-mid {
  margin-top: 1.1rem;
  margin-bottom: 1.25rem;
}

.ad-slot--quiz-bottom {
  margin-top: 1.1rem;
  margin-bottom: 1.25rem;
}

.ad-slot--quiz-top[hidden],
.ad-slot--quiz-mid[hidden],
.ad-slot--quiz-bottom[hidden],
.ad-slot--result-unlocked[hidden] {
  display: none !important;
}

.ad-slot--result {
  margin: 1.1rem auto;
}

/* Quiz coach guide: hide ads so GPT iframes cannot punch through the mask */
body.coach-lock .ad-slot {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* Unlock waiting gate (result page) */
.unlock-gate {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 16, 24, 0.78);
  box-sizing: border-box;
}

.unlock-gate[hidden] {
  display: none !important;
}

.unlock-gate-panel {
  position: relative;
  width: min(100%, 22rem);
  background: #fff;
  border-radius: 1.15rem;
  padding: 1.35rem 1rem 1.1rem;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  max-height: min(92vh, 40rem);
  overflow: auto;
}

.unlock-gate-spinner {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 3px solid #efe8f4;
  border-top-color: #b45ad6;
  animation: unlock-spin 0.85s linear infinite;
}

.unlock-gate.is-ready .unlock-gate-spinner {
  animation: none;
  border-color: #43da84;
  border-top-color: #43da84;
  background: radial-gradient(circle at center, #43da84 0 42%, transparent 43%);
}

@keyframes unlock-spin {
  to { transform: rotate(360deg); }
}

.unlock-gate-title {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #2a2a2a;
  line-height: 1.3;
}

.unlock-gate-sub {
  margin: 0;
  font-size: 0.85rem;
  color: #6b6b6b;
  line-height: 1.4;
}

.ad-slot--unlock-gate {
  margin: 0.65rem auto 0.35rem;
  padding: 0.35rem 0;
  width: 100%;
}

.unlock-gate-continue {
  margin-top: 0.35rem;
  width: 100%;
  max-width: 16rem;
  height: 2.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e04cf4, #8c46e6);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.unlock-gate-continue:not(:disabled) {
  opacity: 1;
  pointer-events: auto;
}

.unlock-gate-continue:not(:disabled):active {
  transform: scale(0.98);
}
