/* Music Krillion Monetize Subdomain Ad Styles (music.growagardenonline.com) */
:root {
  --bottom-ad-space: 0px;
}

body.mk-monetize-host {
  padding-bottom: calc(16px + var(--bottom-ad-space, 0px));
}

.mk-ad-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
  clear: both;
}

.mk-ad-box[hidden],
.mk-ad-box[data-ad-collapsed="true"] {
  display: none !important;
}

.mk-ad-label {
  display: block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(186, 200, 224, 0.68);
  margin-bottom: 5px;
  text-align: center;
  user-select: none;
}

/* Post-round result-top slot with strict >= 28px clearance above and below */
.mk-result-ad-slot {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  flex-shrink: 0;
}

.mk-ad-box--result-top {
  margin: 28px auto;
  width: 100%;
  max-width: 640px;
  min-height: 110px;
  flex-shrink: 0;
}

.mk-ad-box--result-top[data-ad-status="unfill-optimized"] {
  min-height: 0;
  margin: 0 auto;
}

.mk-ad-box[data-ad-status="unfill-optimized"] .mk-ad-label {
  display: none;
}

/* Sticky desktop 160x600 rails: right >= 1000px, dual >= 1220px */
.mk-ad-rail {
  display: none;
  position: fixed;
  top: 72px;
  width: 164px;
  z-index: 35;
  margin: 0;
  pointer-events: auto;
}

.mk-ad-rail--right {
  right: 12px;
}

.mk-ad-rail--left {
  left: 12px;
}

@media (min-width: 1000px) {
  .mk-ad-rail--right {
    display: flex;
  }

  body.mk-monetize-host {
    padding-right: 184px;
  }
}

@media (min-width: 1220px) {
  .mk-ad-rail--left {
    display: flex;
  }

  body.mk-monetize-host {
    padding-left: 184px;
    padding-right: 184px;
  }
}

/* Mobile & tablet (<1000px) bottom anchor protection & unobstructed scroll on summary */
@media (max-width: 999px) {
  .mk-ad-rail {
    display: none !important;
  }

  body.mk-monetize-host .mk-stage-arena {
    height: auto;
    max-height: none;
    min-height: calc(100dvh - var(--bottom-ad-space, 0px));
  }

  body.mk-monetize-host .mk-stage-overlay {
    padding-bottom: calc(0.95rem + env(safe-area-inset-bottom, 0px) + var(--bottom-ad-space, 0px));
  }

  body.mk-monetize-host .mk-stage-summary-card {
    max-height: calc(100dvh - 148px - var(--bottom-ad-space, 0px));
  }
}

@media (max-width: 760px) {
  body.mk-monetize-host .mk-stage-summary-card {
    max-height: none;
    overflow-y: visible;
  }
}
