@charset "UTF-8";
/* ==========================================================================
   ペイントライン — スタイル
   明るくカジュアルなパズル。スマホ（縦持ち）を基準に、PC では横並びに広げる。
   ========================================================================== */

:root {
  /* 基本色（色覚特性に配慮して明度差もつけている） */
  --c-r: #e8453c;
  --c-b: #2f7bea;
  --c-y: #f6c344;
  --c-g: #24a35a;
  --c-p: #9757d7;
  --c-o: #f4802a;

  --bg: #eef1f7;
  --panel: #ffffff;
  --ink: #2b3245;
  --ink-sub: #6d7689;
  --line: #dde2ec;
  --accent: #ff7a3d;
  --accent-2: #4c6ef5;

  --radius: 16px;
  --shadow: 0 2px 10px rgba(43, 50, 69, .10);
  --shadow-lg: 0 12px 40px rgba(43, 50, 69, .22);

  --board: 320px;   /* 盤面の一辺（JS が実サイズを入れる） */
  --n: 4;           /* 盤面のマス数（JS が入れる） */
  --gap: 4px;

  /* フッター固定バナー広告ぶんの余白（js/ad-banner.js が更新する） */
  --ad-h: 0px;
  --ad-space: 0px;
}

html.has-ad-banner {
  --ad-space: calc(var(--ad-h, 0px) + env(safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
               "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

/* 盤面の操作でページが動かないようにする（スワイプ入力のため）
   広告ぶんの下余白は js/ad-banner.js が「はみ出したときだけ」足すので、ここの padding には入れない
   （ここでも足していたため二重になり、スマホでページ全体が数十px スクロールしていた）。
   盤面とツールバーの並びを従来どおりに保つため、min-height は広告2つぶんを引いた値にしている */
#app {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--sgh-top, 0px) - var(--ad-space, 0px) * 2);
  padding: 6px 10px 6px;
  padding-left: max(10px, env(safe-area-inset-left));
  padding-right: max(10px, env(safe-area-inset-right));
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- ヘッダー ---------- */
/* タイトルだけの帯は縦幅を圧迫するので隠す（ボタンは共通ヘッダーのメニューへ集約済み）。
   h1 と、共通ヘッダーが click() で押す元ボタンは DOM に残すため、display: none ではなく
   スクリーンリーダー向けの見えない形にする */
#topbar {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#logo {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .02em;
  background: linear-gradient(92deg, var(--accent), #ff5a8a 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#topbar-buttons { display: flex; gap: 6px; }

.icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease;
}
.icon-btn:active { transform: scale(.92); }

/* ---------- ステータス ---------- */
#status-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.status-box {
  flex: 1;
  background: var(--panel);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 5px 4px 6px;
  text-align: center;
  min-width: 0;
}
.status-label {
  display: block;
  font-size: 10px;
  color: var(--ink-sub);
  letter-spacing: .06em;
}
.status-value {
  display: block;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.status-value.over { color: var(--accent); }

#stage-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-sub);
}

/* ---------- プレイエリア ---------- */
#play {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
}

/* お手本 */
#sample {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 12px;
  width: 100%;
  max-width: var(--board);
}

.sample-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }

.sample-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-sub);
  letter-spacing: .08em;
}

#match-count {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#match-count.full { color: var(--c-g); }

#rule-note {
  font-size: 10.5px;
  color: var(--ink-sub);
  line-height: 1.3;
}

#sample-grid {
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  gap: 2px;
  width: 92px;
  height: 92px;
  flex: none;
  padding: 3px;
  background: #f1f3f8;
  border-radius: 8px;
}

#sample-grid .scell {
  border-radius: 22%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(43, 50, 69, .07);
  position: relative;
}

/* 盤面 */
#board-wrap {
  position: relative;
  flex: none;
}

#board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  grid-template-rows: repeat(var(--n), 1fr);
  gap: var(--gap);
  width: var(--board);
  height: var(--board);
  padding: var(--gap);
  background: #e2e7f1;
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 2px 6px rgba(43, 50, 69, .06);
  touch-action: none;             /* スワイプでページがスクロールしないように */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.cell {
  position: relative;
  border-radius: 22%;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(43, 50, 69, .06);
  overflow: hidden;
}

/* 色そのものは .fill に載せる（塗り替えアニメのため） */
.fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
}

/* 広がる塗り（新しい色が円形に広がってから定着する） */
.wave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  height: 160%;
  margin: -80% 0 0 -80%;
  border-radius: 50%;
  transform: scale(0);
  animation: wave-spread .19s ease-out forwards;
  pointer-events: none;
}
@keyframes wave-spread {
  from { transform: scale(0); opacity: .85; }
  to   { transform: scale(1); opacity: 1; }
}

.cell.bump { animation: cell-bump .22s ease-out; }
@keyframes cell-bump {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.13); }
  100% { transform: scale(1); }
}

.cell.wall {
  background: #aab3c4;
  box-shadow: inset 0 -3px 0 rgba(43, 50, 69, .18), inset 0 0 0 1.5px rgba(43, 50, 69, .12);
  background-image: repeating-linear-gradient(45deg,
      rgba(255, 255, 255, .28) 0 4px, rgba(255, 255, 255, 0) 4px 9px);
}

/* 色覚サポート（記号表示） */
.mark {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--board) / var(--n) * .42);
  font-weight: 900;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  pointer-events: none;
}
body.cud .mark { display: flex; }
body.cud #sample-grid .mark { font-size: 10px; text-shadow: none; }

/* ペンキ（しずく型）。正方形の左上だけを尖らせ、45度回すと上向きのしずくになる */
.can {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  height: 48%;
  margin: -24% 0 0 -24%;
  border-radius: 4% 50% 50% 50%;
  transform: rotate(45deg);
  box-shadow: inset -2px -3px 0 rgba(0, 0, 0, .16), 0 2px 5px rgba(43, 50, 69, .32);
  border: 2px solid rgba(255, 255, 255, .95);
  transition: transform .14s ease, opacity .2s ease;
  pointer-events: none;
}
/* しずくの中のハイライト */
.can::after {
  content: "";
  position: absolute;
  left: 42%;
  top: 42%;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}

.cell.selected .can { transform: rotate(45deg) scale(1.16); }
.cell.selected {
  box-shadow: inset 0 0 0 3px var(--accent), 0 0 0 3px rgba(255, 122, 61, .3);
  z-index: 3;
}

/* ヒントの点滅 */
.cell.hinted .can { animation: hint-blink .7s ease-in-out infinite; }
@keyframes hint-blink {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50%      { transform: rotate(45deg) scale(1.32); }
}
.cell.hinted { box-shadow: inset 0 0 0 3px #ffd23f, 0 0 0 4px rgba(255, 210, 63, .45); z-index: 3; }

/* 飛沫 */
.splash {
  position: absolute;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  pointer-events: none;
  animation: splash-fly .38s ease-out forwards;
  z-index: 4;
}
@keyframes splash-fly {
  from { transform: translate(0, 0) scale(1); opacity: .9; }
  to   { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; }
}

/* 方向ボタン（選択したペンキのまわりに出る） */
#arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.arrow {
  position: absolute;
  width: var(--cell);
  height: var(--cell);
  border: 0;
  padding: 0;
  border-radius: 26%;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 3px 10px rgba(43, 50, 69, .3);
  color: var(--accent);
  font-size: calc(var(--cell) * .58);
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  animation: arrow-in .16s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.arrow:active { transform: scale(.9); }
.arrow.dim { opacity: .3; cursor: default; }
@keyframes arrow-in {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- ツールバー ---------- */
#toolbar {
  display: flex;
  gap: 6px;
  padding: 10px 0 4px;
}

.tool-btn {
  flex: 1;
  border: 0;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 2px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 52px;
  justify-content: center;
  transition: transform .12s ease, opacity .12s ease;
  font-family: inherit;
}
.tool-btn:active { transform: scale(.95); }
.tool-btn:disabled { opacity: .4; cursor: default; }
.tool-icon { font-size: 17px; line-height: 1; }

/* ---------- フッター ---------- */
#footer {
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-sub);
  line-height: 1.7;
  padding: 6px 0 2px;
}
#footer a { color: var(--ink-sub); }

/* ---------- 汎用ボタン ---------- */
.btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s ease;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: linear-gradient(180deg, #ff8f57, var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 122, 61, .4);
}
.btn-sub { background: #eef1f7; color: var(--ink); }

/* ---------- オーバーレイ共通 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  top: var(--sgh-top, 0px);
  background: rgba(30, 35, 50, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + var(--ad-space, 0px));
  z-index: 60;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade-in .18s ease;
}
.overlay.hidden { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  background: var(--panel);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 20px 18px 18px;
  width: 100%;
  max-width: 380px;
  max-height: 100%;
  overflow-y: auto;
  animation: sheet-in .22s cubic-bezier(.2, .9, .3, 1.2);
  -webkit-overflow-scrolling: touch;
}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.sheet-title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
}

/* ---------- クリア画面 ---------- */
#result-sheet { text-align: center; }

#result-stage {
  font-size: 12px;
  color: var(--ink-sub);
  font-weight: 700;
}
#result-title {
  font-size: 27px;
  font-weight: 900;
  margin: 2px 0 10px;
  background: linear-gradient(92deg, var(--accent), #ff5a8a 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.star {
  font-size: 38px;
  line-height: 1;
  color: #dfe4ee;
  transform: scale(.6);
  opacity: .5;
}
.star.on {
  color: #ffc93c;
  animation: star-pop .38s cubic-bezier(.2, 1.4, .4, 1) forwards;
  text-shadow: 0 3px 8px rgba(255, 201, 60, .5);
}
@keyframes star-pop {
  0%   { transform: scale(.4) rotate(-25deg); opacity: 0; }
  60%  { transform: scale(1.25) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

#result-stats {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.rstat {
  flex: 1;
  background: #f4f6fb;
  border-radius: 12px;
  padding: 8px 4px;
}
.rstat-label { display: block; font-size: 10px; color: var(--ink-sub); }
.rstat-value { display: block; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }

#result-msg {
  font-size: 12.5px;
  color: var(--ink-sub);
  margin-bottom: 12px;
  min-height: 1.2em;
}

.sheet-buttons { display: flex; flex-direction: column; gap: 8px; }
.sheet-buttons .row { display: flex; gap: 8px; }
.sheet-buttons .row .btn { flex: 1; }

/* ---------- ステージ選択 ---------- */
#stage-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.stage-btn {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 14px;
  background: #f4f6fb;
  box-shadow: inset 0 0 0 2px var(--line);
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  transition: transform .12s ease;
}
.stage-btn:active { transform: scale(.94); }
.stage-btn .no { font-size: 17px; font-weight: 800; line-height: 1; }
.stage-btn .st { font-size: 9px; letter-spacing: -.5px; color: #ffc93c; height: 11px; line-height: 1; }
.stage-btn .bm { font-size: 8.5px; color: var(--ink-sub); line-height: 1; }
.stage-btn.cleared { background: #fff6e8; box-shadow: inset 0 0 0 2px #ffd9a8; }
.stage-btn.current { box-shadow: inset 0 0 0 3px var(--accent); }
.stage-btn.locked { color: #b9c0cf; background: #f0f2f7; box-shadow: inset 0 0 0 2px #e6e9f0; cursor: default; }

#progress-line {
  text-align: center;
  font-size: 12px;
  color: var(--ink-sub);
  margin-bottom: 12px;
}

/* ---------- 設定・遊び方 ---------- */
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
}
.menu-row small { display: block; font-size: 10.5px; color: var(--ink-sub); font-weight: 500; }

.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #d6dbe6;
  cursor: pointer;
  flex: none;
  transition: background .18s ease;
  padding: 0;
}
.toggle .knob {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .18s ease;
}
.toggle.on { background: var(--c-g); }
.toggle.on .knob { transform: translateX(20px); }

.howto {
  margin: 6px 0 12px;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink);
}
.howto li { margin-bottom: 4px; }
.howto b { color: var(--accent); }

.legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-sub);
  background: #f4f6fb;
  border-radius: 8px;
  padding: 3px 7px;
}
.legend-chip {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #fff;
  font-weight: 900;
}

/* ---------- チュートリアルの吹き出し ---------- */
#coach {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  width: min(340px, calc(100vw - 24px));
  pointer-events: none;
}
#coach.hidden { display: none; }

#coach-bubble {
  position: relative;
  background: #2b3245;
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px 12px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  line-height: 1.6;
  pointer-events: auto;
  animation: sheet-in .22s cubic-bezier(.2, .9, .3, 1.2);
}
#coach-bubble b { color: #ffd23f; }
#coach-text { margin-bottom: 8px; }
#coach-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#coach-step { font-size: 11px; color: #a8b0c2; }
#coach-next {
  border: 0;
  border-radius: 10px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
/* 吹き出しのしっぽ（下向き） */
#coach-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  margin-left: -9px;
  border: 9px solid transparent;
  border-top-color: #2b3245;
  border-bottom: 0;
}
#coach.point-up #coach-bubble::after {
  bottom: auto;
  top: -9px;
  border-top: 0;
  border-bottom: 9px solid #2b3245;
}

/* ---------- トースト ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--ad-space, 0px));
  transform: translateX(-50%);
  background: rgba(43, 50, 69, .95);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 70;
  box-shadow: var(--shadow-lg);
  animation: toast-in .2s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
  /* 「やり直し」「ヒント」や盤面の最下段に重なっても、タップを奪わない */
  pointer-events: none;
}
#toast.hidden { display: none; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 紙吹雪 ---------- */
#fx {
  position: fixed;
  inset: 0;
  top: var(--sgh-top, 0px);
  pointer-events: none;
  z-index: 65;
}
#fx.hidden { display: none; }

/* 盤面のクリア時の跳ね */
#board.clear-bounce { animation: board-bounce .5s ease-out; }
@keyframes board-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.05); }
  55%  { transform: scale(.98); }
  100% { transform: scale(1); }
}

/* ---------- PC・横長のときは、お手本を盤面の横に置く ---------- */
@media (min-width: 720px) {
  #play {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  #sample {
    flex-direction: column;
    align-items: stretch;
    width: 190px;
    max-width: 190px;
    gap: 8px;
    padding: 14px;
  }
  #sample-grid { width: 100%; height: auto; aspect-ratio: 1; }
  /* 縦並びのときは「お手本」ラベルをグリッドの上に出す */
  .sample-head { text-align: center; order: -1; flex: none; }
  #logo { font-size: 22px; }
  .tool-btn { font-size: 13px; }
}

/* ---------- 極小幅 ---------- */
@media (max-width: 340px) {
  .tool-btn { font-size: 10.5px; }
  .status-value { font-size: 15px; }
  #logo { font-size: 17px; }
  #sample-grid { width: 76px; height: 76px; }
}

/* 高さが足りない端末ではお手本をさらに小さく */
@media (max-height: 620px) and (max-width: 719px) {
  #sample-grid { width: 66px; height: 66px; }
  #sample { padding: 5px 10px; }
  #status-bar { margin-bottom: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   フッター固定バナー広告（スマホ表示時のみ / js/ad-banner.js が挿入する）
   --ad-h    : 広告そのものの高さ。広告なしのときは 0px
   --ad-space: レイアウトが空けるべき高さ（広告 + セーフエリア）
   ========================================================================== */
.ad-banner {
  /* height は広告そのものの高さ。セーフエリアぶんの padding は外側に足す */
  box-sizing: content-box;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* リザルト等の全画面オーバーレイ（2147483000）よりは下に置く */
  z-index: 2147482000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: var(--ad-h, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
  background: rgba(14, 16, 20, 0.86);
  /* border ではなく inset shadow にして、枠線ぶん高さがずれないようにする */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ad-banner__frame {
  display: block;
  width: 100%;
  height: var(--ad-h, 0px);
  border: 0;
  color-scheme: light;
}

@media print {
  .ad-banner { display: none; }
}
