.google-ads-muschel[hidden],
.google-ads-muschel-privacy[hidden] {
  display: none !important;
}

.google-ads-muschel {
  grid-column: 1 / -1;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 16px 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: rgba(207, 220, 237, 0.72);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.google-ads-muschel-label {
  display: block;
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
}

.google-ads-muschel-slot {
  display: flex;
  max-width: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.google-ads-muschel-slot > .adsbygoogle {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.google-ads-leuchtturm-direct {
  margin: 8px 0;
}

.google-ads-leuchtturm-direct:not([hidden]) + .lb-point-guide {
  margin-top: 8px;
}

.lb-page .lb-site-footer {
  flex-wrap: wrap;
}

/* Spielseiten brauchen deutlichen Abstand zu Spielfeld und Bedienelementen. */
.google-ads-perlenflipper-direct {
  width: min(1240px, calc(100% - 32px));
  margin: clamp(24px, 3vw, 40px) auto 8px;
}

.google-ads-perlenflipper-direct:not([hidden]) + .pf-hall-of-fame {
  padding-top: 16px;
}

.google-ads-muschelflipper-direct {
  width: min(1240px, calc(100% - 32px));
  margin: clamp(24px, 3vw, 40px) auto 8px;
}

.google-ads-muschelflipper-direct:not([hidden]) + .mf-hall-of-fame {
  padding-top: 16px;
}

.google-ads-kokoskullern-direct {
  width: min(1370px, 100%);
  margin: 24px auto 0;
}

.google-ads-kokoskullern-direct:not([hidden]) + .kk-information {
  margin-top: 16px;
}

.google-ads-inselwurf-direct {
  width: min(1240px, 100%);
  margin: 24px auto 0;
}

.google-ads-inselwurf-direct:not([hidden]) + .iw-game-section {
  padding-top: 16px;
}

/* Preserve the original game-to-courses gap while the banner is hidden. */
.ig-game-section:has(+ .google-ads-inselgolf-direct:not([hidden])) {
  padding-bottom: 16px;
}

.google-ads-inselgolf-direct {
  width: min(1240px, 100%);
  margin: 24px auto 16px;
}

.google-ads-perlenflipper-panel {
  margin: 34px 0 120px;
  padding: 0 16px;
}

/* Keep the wheel ad distinct without leaving a large empty band around it. */
.google-ads-muschel-wheel-home {
  margin: 32px auto 8px;
}

.google-ads-muschel-wheel-home:not([hidden]) ~ .game-dashboard {
  padding-top: 24px;
}

.google-ads-muschel-wheel-direct {
  /* The landing-page grid already adds 34px between sections. */
  margin: 24px auto -14px;
}

.google-ads-muschelgraben-direct {
  width: min(1120px, 100%);
  margin: clamp(24px, 3vw, 40px) auto 8px;
}

.google-ads-muschel-pirat-direct {
  /* Keep a clear gap to the machine without doubling the landing-page grid gap. */
  margin: 24px auto -14px;
}

.google-ads-bubbles-direct {
  /* The landing-page grid supplies the remaining space to the rule cards. */
  margin: 24px auto -14px;
}

.google-ads-suchbild-direct {
  /* Match the compact game-to-cards rhythm on the standalone Suchbild page. */
  margin: 24px auto -14px;
}

.google-ads-memory-direct {
  /* Keep the Memory banner compact between the cards and the rule panels. */
  margin: 24px auto -14px;
}

.google-ads-vier-gewinnt-direct {
  /* Keep the game-to-rules rhythm compact on the standalone 4-gewinnt page. */
  margin: 24px auto -14px;
}

.google-ads-inselschach-direct {
  margin: 24px auto -14px;
}

.google-ads-backgammon-direct {
  width: min(1580px, 100%);
  margin: 24px auto 0;
}

.google-ads-backgammon-direct:not([hidden]) + .bg-information {
  margin-top: 16px;
}

.bg-page .bg-site-footer {
  flex-wrap: wrap;
}

.google-ads-roulette-direct {
  width: min(1200px, 100%);
  margin: 24px auto 8px;
}

.google-ads-hafenlauf-direct {
  width: min(1240px, 100%);
  margin: 24px auto 0;
}

.google-ads-hafenlauf-direct:not([hidden]) + .hl-rankings {
  margin-top: 16px;
}

.google-ads-bowling-direct {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
}

.google-ads-bowling-direct:not([hidden]) + .ib-hall-of-fame {
  margin-top: 20px;
}

.ib-footer {
  flex-wrap: wrap;
  align-items: center;
}

.hl-island > .google-ads-muschel-privacy:not([hidden]) {
  display: block;
  width: fit-content;
  margin: 24px 0 0 auto;
}

.muschel-games-page .site-footer {
  align-items: center;
  flex-wrap: wrap;
}

.perlenflipper-page .pf-footer {
  align-items: center;
  flex-wrap: wrap;
}

.mg-page .mg-footer {
  flex-wrap: wrap;
}

.roulette-page .site-footer {
  align-items: center;
  flex-wrap: wrap;
}

.mf-ads-footer {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

.mf-ads-footer .google-ads-muschel-privacy:not([hidden]) {
  margin-bottom: 24px;
}

.kk-page .kk-site-footer .google-ads-muschel-privacy {
  box-shadow: none;
  border-radius: 0;
}

.google-ads-muschel-privacy {
  appearance: none;
  padding: 0;
  color: #dffdfa;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(50, 213, 200, 0.48);
  text-underline-offset: 3px;
  cursor: pointer;
}

.google-ads-muschel-privacy:hover,
.google-ads-muschel-privacy:focus-visible {
  color: #fff3c4;
  text-decoration-color: currentColor;
}

.google-ads-muschel-privacy:focus-visible {
  outline: 2px solid #32d5c8;
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 499px) {
  .muschel-games-page {
    overflow-x: hidden;
  }

  .google-ads-muschel {
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    overflow: hidden;
  }
}

@media (max-width: 299px) {
  .google-ads-muschel {
    display: none !important;
  }
}
