/* 広告枠プレースホルダのスタイル。
   AdSense 未承認のため、実広告は表示しない。枠の位置とサイズだけを確定させ、
   承認後にこの枠へ広告コードを差し込む。
   原則（計画書・追補7）：プレイ中・判定表示中には広告を出さない。 */
.ad-slot {
  border: 2px dashed var(--line, #e4d3ae);
  border-radius: 12px;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 10px,
    rgba(128, 128, 128, 0.05) 10px 20px
  );
  color: var(--ink-soft, #5a6a8c);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
}
.ad-slot .ad-label { font-size: 10px; letter-spacing: 0.2em; }
.ad-slot .ad-note { font-size: 11px; font-weight: 700; opacity: 0.75; }
.ad-slot.hidden { display: none !important; }

/* 結果カード下のバナー枠（ゲームページ） */
.ad-banner-result {
  width: 100%;
  min-height: 64px;
  margin-top: 2px;
  padding: 8px 10px;
}
/* ポータルトップのバナー枠 */
.ad-banner-portal {
  width: 100%;
  min-height: 90px;
  margin-top: 18px;
  padding: 10px;
}

/* 全画面広告（インタースティシャル）の差し込み機構。
   出すのは「もう一回遊ぶ」を押した直後など、判定表示が終わったタイミングだけ。 */
.ad-interstitial {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 14, 26, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.ad-interstitial.show { display: flex; }
.ad-interstitial-box {
  width: min(560px, 100%);
  min-height: 320px;
  border-radius: 16px;
  padding: 18px;
  position: relative;
}
.ad-interstitial-close {
  margin-top: 14px;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  border: none;
  border-radius: 999px;
  min-height: 46px;
  padding: 8px 26px;
  cursor: pointer;
  background: var(--gold, #f2a81d);
  color: #3a2a00;
}
.ad-interstitial-close:disabled { opacity: 0.45; cursor: default; }
.ad-interstitial-wrap { text-align: center; }
