/* Anime Krillion Monetize Subdomain Ad Styles (anime.growagardenonline.com)
   Strictly scoped to companion subdomain (body.ak-monetize-host).
   Sticky dual 160x600 desktop rails (>=1000px right, >=1220px both);
   >=28px vertical clearance on result-top; Bottom Anchor safe inset (--ak-bottom-ad-space). */
:root {
  --ak-bottom-ad-space: 0px;
}

body.ak-monetize-host {
  padding-bottom: var(--ak-bottom-ad-space, 0px);
}

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

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

.ak-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(216, 198, 240, 0.62);
  margin-bottom: 4px;
  text-align: center;
  user-select: none;
}

/* Post-round result-top slot container with strict >=28px vertical clearance above & below */
.ak-result-ad-slot {
  width: 100%;
  max-width: 640px;
  margin: 28px auto;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ak-ad-box--result-top {
  margin: 0 auto;
  width: 100%;
  max-width: 640px;
  min-height: 100px;
}

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

/* Compact summary card spacing on monetize host so result-top + primary CTA stay cleanly visible */
body.ak-monetize-host .ak-stage-summary-card {
  gap: 0.42rem;
  padding: 0.95rem 1.15rem;
}

body.ak-monetize-host .ak-stage-persona-box {
  padding: 0.48rem 0.85rem;
}

body.ak-monetize-host .ak-stage-summary-bars {
  gap: 0.28rem;
}

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

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

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

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

  /* Reserve 188px right gutter so 160x600 rail has 0px overlap with HUD, vertical ruler, stage, header, or prose */
  body.ak-monetize-host {
    padding-right: 188px;
  }

  body.ak-monetize-host .ak-stage-arena {
    width: 100%;
    max-width: 100%;
  }

  body.ak-monetize-host .ak-stage-ruler {
    right: 14px;
  }

  body.ak-monetize-host .ak-stage-center-zone,
  body.ak-monetize-host .ak-stage-dock-wrap {
    max-width: min(640px, calc(100% - 92px));
    padding-right: 78px;
  }
}

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

  /* Reserve symmetric 188px gutters on both sides for dual 160x600 rails */
  body.ak-monetize-host {
    padding-left: 188px;
    padding-right: 188px;
  }

  body.ak-monetize-host .ak-stage-center-zone,
  body.ak-monetize-host .ak-stage-dock-wrap {
    max-width: min(660px, calc(100% - 92px));
    padding-right: 78px;
  }
}

@media (max-width: 999px) {
  .ak-ad-rail {
    display: none !important;
  }

  body.ak-monetize-host .ak-stage-arena {
    padding-bottom: var(--ak-bottom-ad-space, 0px);
  }

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

  body.ak-monetize-host main#ak-explore {
    padding-bottom: calc(3.25rem + var(--ak-bottom-ad-space, 0px));
  }
}

@media (max-width: 600px) {
  body.ak-monetize-host .ak-stage-summary-card {
    padding: 0.85rem 0.9rem;
  }

  body.ak-monetize-host .ak-result-ad-slot {
    margin: 28px auto;
  }
}

/* Native continuation anchor button polish */
.ak-monetize-nav-cta {
  text-decoration: none;
}

.ak-monetize-nav-btn {
  text-decoration: none;
}
