/* r215.css (#1014) — Hero Rift Framing, Clean Capture Cards, Unified Dark-Sanctuary Callings, Warm-Gold Pills & Seamless Footer.
   Loaded after r214.css. Honors ALL owner locks (copy, R08, R09, R31, R32, spheres.html links). */

/* ============================================================================
   1. GLOBAL HARMONIZED REALMS R09 TINT, DARK-FANTASY PILLS & SEAMLESS FOOTER
   ============================================================================ */
/* Subdue chartreuse mix (42% -> 18% with antique gold) while keeping distinct R09 per-realm hue */
html:root body section#realms #realm-tabs > button.tab::before {
  border-color: color-mix(in srgb, var(--rtint, #8fd98a) 18%, #e2c278) !important;
  box-shadow: 0 0 8px color-mix(in srgb, var(--rtint, #8fd98a) 20%, transparent) !important;
}
html:root body section#realms #realm-card p.law {
  border-left: 2.5px solid color-mix(in srgb, var(--tint, #8fd98a) 18%, #e2c278) !important;
  background: rgba(24, 18, 12, 0.66) !important;
}

/* Dark-fantasy champagne-gold Playable vs muted pewter Members pills (replaces bright green SaaS tags) */
html:root body #callings #calling-row > button.calling small.medal-cap.open-cap {
  background: rgba(218, 180, 108, 0.16) !important;
  border: 1px solid rgba(232, 199, 122, 0.52) !important;
  color: #f7e8c6 !important;
}
html:root body #callings #calling-row > button.calling small.medal-cap.lock-cap {
  background: rgba(22, 18, 14, 0.92) !important;
  border: 1px solid rgba(168, 148, 114, 0.28) !important;
  color: #bfb196 !important;
}

/* Seamless #play -> footer#account.foot transition (suppress legacy bundle-r100.css .foot-art/::before/::after diagonal streaks) */
html:root body section#play.final .final-art {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
html:root body section#play.final .final-art::after {
  background:
    radial-gradient(ellipse 64% 58% at 50% 46%, rgba(14, 10, 7, 0.54) 0%, rgba(14, 10, 7, 0.28) 58%, rgba(14, 10, 7, 0.72) 100%),
    linear-gradient(180deg, #120e0a 0%, rgba(18, 14, 10, 0.16) 18%, rgba(18, 14, 10, 0.24) 74%, #120e0a 100%) !important;
}
html:root body footer#account.foot {
  background: #120e0a !important;
  background-image: none !important;
  border-top: 1px solid rgba(218, 180, 108, 0.22) !important;
}
html:root body footer#account.foot .foot-art,
html:root body footer#account.foot::before,
html:root body footer#account.foot::after {
  display: none !important;
  content: none !important;
  background: none !important;
  animation: none !important;
}

/* Center WebGPU emblem canvases on BOTH header & footer brands (restores exact 1.72x / -36% shard-emblem geometry instead of cropped/offset -17px) */
html:root body footer#account.foot .foot-brand .logo-live .sse-emblem {
  width: 100% !important;
  height: 100% !important;
}
html:root body footer#account.foot .foot-brand .logo-live .sse-emblem canvas {
  width: 118% !important;
  height: 118% !important;
  max-width: none !important;
  max-height: none !important;
  left: -9% !important;
  top: -9% !important;
  right: auto !important;
  bottom: auto !important;
  inset: -9% auto auto -9% !important;
}

/* ============================================================================
   2. DESKTOP HERO TARGET MATCH, UNCLIPPED SLICE 2 & UNIFIED CALLING STAGES
   ============================================================================ */
@media (min-width: 700px) {
  /* Match r94.js mount size (38x38) with centered 172% bleed canvas inside 68px bar so canvas bottom stays <68px */
  html:root body header#bar.bar a.bar-brand .logo-live,
  html:root body header#bar.bar a.bar-brand > img {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
  }
  html:root body header#bar.bar a.bar-brand .logo-live .sse-emblem {
    width: 100% !important;
    height: 100% !important;
  }
  html:root body header#bar.bar a.bar-brand .logo-live .sse-emblem canvas {
    width: 172% !important;
    height: 172% !important;
    max-width: none !important;
    max-height: none !important;
    left: -36% !important;
    top: -36% !important;
    right: auto !important;
    bottom: auto !important;
    inset: -36% auto auto -36% !important;
  }

  html:root body #hero .hero-shade {
    background:
      radial-gradient(ellipse 46% 38% at 17% 80%, rgba(8, 6, 4, 0.84) 0%, rgba(8, 6, 4, 0.48) 58%, rgba(8, 6, 4, 0) 100%),
      linear-gradient(90deg, rgba(8, 6, 4, 0.78) 0%, rgba(8, 6, 4, 0.44) 34%, rgba(8, 6, 4, 0.05) 50%, rgba(8, 6, 4, 0) 62%),
      linear-gradient(180deg, rgba(8, 6, 4, 0.56) 0%, rgba(8, 6, 4, 0.10) 15%, rgba(8, 6, 4, 0) 50%, rgba(10, 8, 5, 0.14) 86%, rgba(16, 12, 9, 0.72) 95%, #120e0a 100%) !important;
  }

  /* Match target.png rounded dark promo pill & crisp wide smoke-fade hero-facts strip */
  html:root body #hero .cta-notes {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  html:root body #hero .cta-notes .promo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(10, 8, 5, 0.78) !important;
    border: 1px solid rgba(232, 199, 122, 0.24) !important;
    border-radius: 999px !important;
    padding: 7px 18px !important;
    color: #f5e8cc !important;
  }
  html:root body #hero ul.hero-facts {
    border: 0 !important;
    border-image: none !important;
    margin: 12px 0 0 -18px !important;
    padding: 13px 48px 13px 18px !important;
    background: linear-gradient(90deg, rgba(10, 8, 5, 0.84) 0%, rgba(10, 8, 5, 0.64) 68%, rgba(10, 8, 5, 0) 100%) !important;
  }
  html:root body #hero ul.hero-facts li {
    padding: 0 26px !important;
    white-space: nowrap !important;
    border-right: 1px solid rgba(232, 199, 122, 0.28) !important;
  }
  html:root body #hero ul.hero-facts li:first-child {
    padding-left: 0 !important;
  }
  html:root body #hero ul.hero-facts li:last-child {
    border-right: 0 !important;
    padding-right: 0 !important;
  }

  /* Keep YOUR FIRST HOUR clearly 15px+ below sticky bar (NEVER .under-bar) AND div3 100% unclipped inside w1440-slice-2.png */
  html:root body section#journey.band {
    padding: 58px 0 0 !important;
  }
  html:root body #journey .wrap {
    max-width: 916px !important;
  }
  html:root body #journey .head {
    padding: 8px 0 8px !important;
    margin-bottom: 4px !important;
  }
  html:root body #journey .head h2 {
    margin-bottom: 2px !important;
  }
  html:root body #game-band {
    margin-bottom: 8px !important;
  }
  html:root body #game-band,
  html:root body #journey-grid {
    gap: 12px !important;
  }
  html:root body #game-band figure.frame figcaption,
  html:root body #journey-grid figure.frame figcaption {
    padding: 8px 16px 10px !important;
  }
  html:root body section#journey.band + .chapter-divider {
    padding: 6px 24px !important;
    min-height: 36px !important;
    margin: 2px auto 0 !important;
  }

  /* Unified dark-sanctuary obsidian-amber spotlight stages for Fighter & Warrior */
  html:root body #callings #calling-panel .calling-base .adv-media.base-fig {
    background:
      radial-gradient(ellipse 56% 14% at 50% 92%, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 100%),
      radial-gradient(ellipse 76% 58% at 50% 36%, rgba(226, 182, 98, 0.24) 0%, rgba(46, 33, 18, 0.42) 52%, rgba(14, 11, 8, 0.96) 82%),
      linear-gradient(180deg, #1f170f 0%, #100c08 100%) !important;
  }
  html:root body #callings #calling-panel .adv-card .adv-media.figure {
    background:
      radial-gradient(ellipse 56% 14% at 50% 92%, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 100%),
      radial-gradient(ellipse 72% 58% at 50% 40%, rgba(208, 156, 76, 0.22) 0%, rgba(40, 29, 16, 0.38) 54%, rgba(13, 10, 7, 0.96) 82%),
      linear-gradient(180deg, #1b140d 0%, #0e0b08 100%) !important;
  }
}

@media (min-width: 1041px) {
  /* Compensate for slightly tighter Slice 2 so Slice 3 & Slice 4 stay squarely centered below sticky bar */
  html:root body section#realms.band {
    padding: 204px 0 102px !important;
  }
}

/* ============================================================================
   3. MOBILE SLICE 2 SHADOW CLEANUP, GROUNDED R31 STAGE & 6-SLICE CADENCE
   ============================================================================ */
@media (max-width: 699px) {
  html:root body #journey .j-swipe {
    padding: 4px 16px 16px !important;
  }
  html:root body #journey .j-swipe figure.frame {
    border-radius: 8px !important;
    box-shadow: inset 0 0 0 1px rgba(14, 11, 8, 0.65), 0 8px 18px rgba(0, 0, 0, 0.46) !important;
  }
  html:root body section#journey.band {
    padding: 70px 0 46px !important;
  }
  html:root body section#realms.band {
    padding: 100px 0 8px !important;
  }

  /* Grounded R31 Fighter stage (138px, zero side text, warm sanctuary aura + floor shadow) */
  html:root body #callings #calling-panel .cp97 .v0 .cp-fig {
    flex: 0 0 138px !important;
    height: 138px !important;
    min-height: 138px !important;
    max-height: 138px !important;
    border-radius: 6px !important;
    border-bottom: 1px solid rgba(218, 180, 108, 0.14) !important;
    background:
      radial-gradient(ellipse 34% 9% at 50% 93%, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%),
      radial-gradient(ellipse 56% 78% at 50% 48%, rgba(224, 178, 96, 0.22) 0%, rgba(36, 26, 15, 0.36) 56%, rgba(14, 11, 8, 0.72) 100%) !important;
  }
  html:root body #callings #calling-panel .cp97 .v0 .cp-fig > img,
  html:root body #callings #calling-panel .cp97 .cp-dfig > img {
    height: 134px !important;
    max-height: 134px !important;
  }
  html:root body section#play.final {
    padding: 28px 16px 10px !important;
  }
}
