/* Ads live outside editor panes and never participate in the canvas renderer. */
body[data-ads="off"] [data-ad-mount] {
  display: none;
}
[data-ad-mount] {
  height: 156px;
  margin: 0 0 34px;
}
[data-ad-mount="homeBottom"] {
  margin-top: 36px;
  margin-bottom: 0;
}
.adSlot {
  height: 100%;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #15181b;
  padding: 31px 20px 15px;
  overflow: hidden;
}
.adLabel {
  position: absolute;
  top: 12px;
  left: 18px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.adCreative {
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  contain: layout paint;
}
.adFallback {
  text-align: center;
  color: #a1a8ae;
  display: grid;
  gap: 7px;
  font-size: 12px;
}
.adFallback small {
  color: #646d75;
  font-size: 10px;
}
.adProviderContent {
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.adDialog {
  position: fixed;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  padding: 32px;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-shadow: 0 24px 100px #0008;
}
.adDialog::backdrop {
  background: #090c10d9;
}
.adDialog h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0 24px 12px 0;
  font-weight: 600;
}
.adDialog p {
  color: #969fa7;
  margin: 0 0 24px;
  line-height: 1.65;
}
.adDialog .wide {
  margin-top: 10px;
  min-height: 42px;
  width: 100%;
}
.adClose {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 20px;
  background: transparent;
  color: #a4acb4;
}
.adUpgrade {
  background: transparent;
  border: 0;
  color: #aabb91;
  font-size: 11px;
  display: block;
  margin: 20px auto 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.adDialog .adUpgradeInfo {
  font-size: 11px;
  margin: 15px 0 0;
}
.adFullscreen {
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: clamp(24px, 5vw, 70px);
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.adFullscreen:not([open]) {
  display: none;
}
.adFullscreen h2 {
  align-self: flex-start;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.adFullscreen .adSlot {
  width: min(900px, 100%);
  height: min(52dvh, 440px);
  flex: none;
}
.adFullscreen .adClose {
  right: 24px;
  top: 24px;
}
.adFullscreen .adCountdown {
  text-align: center;
  margin: 20px 0 12px;
  font-size: 11px;
}
.adSkip {
  min-height: 40px;
  padding: 8px 22px;
}
.adMock {
  text-align: center;
  padding: 20px;
}
.adMock strong {
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.6px;
  max-width: 540px;
}
.adMock p {
  font-size: 11px;
  margin: 15px 0 0;
  max-width: 440px;
}
.adMock {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.adDialog button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 600px) {
  [data-ad-mount] {
    height: 168px;
    margin-bottom: 24px;
  }
  .adSlot {
    padding-inline: 12px;
  }
  .adDialog {
    padding: 28px 22px;
  }
  .adFullscreen {
    padding: 24px 18px;
  }
  .adFullscreen .adSlot {
    height: 45dvh;
  }
  .adFallback small {
    max-width: 220px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .adDialog * {
    animation: none !important;
    transition: none !important;
  }
}
