/* Keep AdSense away from the playable piano.
   Format allow/deny still lives in the AdSense dashboard (prefer side rails;
   disable anchors + vignettes). This file only protects interaction. */

.studio-instrument,
#practice-start[data-studio] {
  position: relative;
  z-index: 30;
  isolation: isolate;
}

/* Never render auto ads inside the instrument shell. */
.studio-instrument ins.adsbygoogle,
.studio-instrument .google-auto-placed,
.studio-instrument iframe[id^="google_ads_iframe"],
.studio-instrument [id^="aswift_"],
#practice-start[data-studio] ins.adsbygoogle,
#practice-start[data-studio] .google-auto-placed,
#practice-start[data-studio] iframe[id^="google_ads_iframe"],
#practice-start[data-studio] [id^="aswift_"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* While playing / focused practice: hide sticky overlays that steal clicks. */
html.piano-ad-free-mode ins.adsbygoogle,
html.piano-ad-free-mode .google-auto-placed,
html.piano-ad-free-mode iframe[id^="google_ads_iframe"],
html.piano-ad-free-mode iframe[name^="google_ads_iframe"],
html.piano-ad-free-mode [id^="aswift_"],
html.piano-ad-free-mode #google_vignette,
body.studio-focus ins.adsbygoogle,
body.studio-focus .google-auto-placed,
body.studio-focus iframe[id^="google_ads_iframe"],
body.studio-focus [id^="aswift_"],
body.studio-focus #google_vignette {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
