/* r214.css (#1014) — Restore Live WebGPU Hero + Clear Double Hero Blackout + Beat 3-ID THALENYR Specificity + Distinct Calling Stages + Aligned Phone BODY Grid.
   Loaded after r213.css. Honors ALL owner locks (copy, R08, R09, R31, R32, spheres.html links). */

/* ============================================================================
   1. GLOBAL HERO BLACKOUT REMOVAL & HIGH-CONTRAST 3-ID REALM TAB OVERRIDE
   ============================================================================ */
html:root body section#hero.hero :is(.hero-poster, .hero-canvas) {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
html:root body section#hero.hero .hero-art::after {
  height: 84px !important;
  background: linear-gradient(180deg, rgba(18, 14, 10, 0) 0%, #120e0a 100%) !important;
}

/* Beat bundle-r100.css:5012 3-ID specificity on active THALENYR tab (>11:1 white text contrast) */
html:root body section#realms #realm-tabs > button#realm-tab-thalenyr[aria-selected="true"],
html:root body section#realms #realm-tabs > button.tab[aria-selected="true"] {
  background-color: #1a140d !important;
  background-image: linear-gradient(180deg, rgba(64, 48, 22, 0.95) 0%, rgba(22, 16, 10, 0.99) 100%) !important;
  border: 1.5px solid #f0cf82 !important;
  color: #fff9eb !important;
  box-shadow: inset 0 1px 0 rgba(255, 236, 184, 0.30), 0 0 16px rgba(232, 199, 122, 0.18) !important;
}

/* Harmonize R09 --rtint/--tint with antique gold (distinct per-realm hues without harsh neon lime clash) */
html:root body section#realms #realm-tabs > button.tab::before {
  border-color: color-mix(in srgb, var(--rtint, #8fd98a) 42%, #dfc07a) !important;
  box-shadow: 0 0 8px color-mix(in srgb, var(--rtint, #8fd98a) 28%, transparent) !important;
}
html:root body section#realms #realm-card p.law {
  border-left: 2.5px solid color-mix(in srgb, var(--tint, #8fd98a) 42%, #dfc07a) !important;
  background: color-mix(in srgb, var(--tint, #8fd98a) 5%, rgba(24, 18, 12, 0.58)) !important;
}

/* ============================================================================
   2. DESKTOP HERO TARGET MATCH, SLICE 2 CADENCE & DISTINCT CALLING STAGES
   ============================================================================ */
@media (min-width: 700px) {
  html:root body #hero .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 6, 4, 0.78) 0%, rgba(8, 6, 4, 0.44) 34%, rgba(8, 6, 4, 0.06) 52%, rgba(8, 6, 4, 0) 64%),
      linear-gradient(180deg, rgba(8, 6, 4, 0.54) 0%, rgba(8, 6, 4, 0.10) 14%, rgba(8, 6, 4, 0) 48%, rgba(10, 8, 5, 0.12) 86%, rgba(16, 12, 9, 0.68) 95%, #120e0a 100%) !important;
  }

  /* Match target.png borderless horizontal smoke fades on stats bar & notice strip */
  html:root body #hero ul.hero-facts {
    border: 0 !important;
    border-image: none !important;
    background: linear-gradient(90deg, rgba(12, 9, 6, 0.66) 0%, rgba(12, 9, 6, 0.42) 68%, rgba(12, 9, 6, 0) 100%) !important;
  }
  html:root body #hero .cta-notes {
    border: 0 !important;
    box-shadow: none !important;
    background: linear-gradient(90deg, rgba(12, 9, 6, 0.60) 0%, rgba(12, 9, 6, 0.36) 80%, rgba(12, 9, 6, 0) 100%) !important;
  }
  html:root body #hero .cta-notes .promo {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* Keep div3 unclipped at bottom of w1440-slice-2 while keeping div4 clear below sticky navbar in Slice 4 */
  html:root body section#journey.band {
    padding: 40px 0 4px !important;
  }
  html:root body #game-band figure.frame figcaption,
  html:root body #journey-grid figure.frame figcaption {
    padding: 11px 16px 13px !important;
  }
  html:root body section#journey.band + .chapter-divider {
    margin: 4px auto 0 !important;
  }

  /* Distinct desktop Calling stages (eliminates bundle-r100.css:5788 shared pyramid & bystander duplication) */
  html:root body #callings #calling-panel .calling-base .adv-media.base-fig {
    background:
      radial-gradient(ellipse 72% 58% at 50% 38%, rgba(232, 190, 110, 0.22), rgba(0, 0, 0, 0) 72%),
      linear-gradient(180deg, rgba(16, 12, 9, 0.66) 0%, rgba(12, 9, 6, 0.96) 88%),
      url(art/band-skills-900.webp) 50% 36% / cover no-repeat !important;
  }
  html:root body #callings #calling-panel .adv-card .adv-media.figure {
    background:
      radial-gradient(ellipse 70% 60% at 50% 40%, rgba(218, 168, 82, 0.22), rgba(12, 9, 6, 0.96) 76%),
      linear-gradient(180deg, #1d160f 0%, #0d0a07 100%) !important;
  }
}

@media (min-width: 1041px) {
  html:root body section#realms.band {
    padding: 152px 0 102px !important;
  }
  html:root body section#callings.band {
    padding: 24px 0 22px !important;
  }
}

/* ============================================================================
   3. MOBILE HERO HALOS, SLICE 2 HEADLINE SUBTITLE, & CALLINGS GRID POLISH
   ============================================================================ */
@media (max-width: 699px) {
  html:root body #hero .hero-shade {
    background: linear-gradient(180deg, rgba(8, 6, 4, 0.78) 0%, rgba(8, 6, 4, 0.32) 20%, rgba(8, 6, 4, 0.04) 36%, rgba(8, 6, 4, 0.08) 54%, rgba(10, 8, 5, 0.68) 66%, rgba(12, 9, 6, 0.88) 78%, #120e0a 100%) !important;
  }
  html:root body #hero .hero-logo .emblem {
    filter: drop-shadow(0 0 18px rgba(145, 200, 245, 0.28)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.88)) !important;
  }
  html:root body #hero .hero-logo::before {
    background: radial-gradient(ellipse 56% 52% at 50% 56%, rgba(8, 10, 14, 0.86) 0%, rgba(8, 10, 14, 0.48) 48%, rgba(8, 10, 14, 0) 80%) !important;
  }
  html:root body #hero .hero-logo .wordmark {
    background: transparent !important;
    padding: 0 !important;
    margin: 2px auto 0 !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.98), 0 0 24px rgba(6, 8, 12, 0.94), 0 0 8px rgba(0, 0, 0, 0.96) !important;
  }
  html:root body.scrolled:not(.at-cta) header#bar.bar a.btn.btn-play {
    height: 42px !important;
    min-height: 42px !important;
    min-width: 104px !important;
    padding: 0 20px !important;
  }

  /* Beat bundle-r100.css:1733 (#journey.band .head vignette box & hidden lead subtitle) */
  html:root body main section#journey.band .head {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  html:root body main section#journey.band .head p,
  html:root body main section#journey.band .head .lead {
    display: block !important;
    font-size: 14.5px !important;
    line-height: 1.40 !important;
    color: #dfd1b5 !important;
    max-width: 32ch !important;
    margin: 4px auto 10px !important;
  }
  html:root body section#journey.band {
    padding: 74px 0 56px !important;
  }
  html:root body section#realms.band {
    padding: 98px 0 8px !important;
  }
  html:root body section#callings.band {
    padding: 72px 0 4px !important;
  }
  html:root body section#play.final {
    padding: 30px 16px 12px !important;
  }

  /* Compact Fighter stage + >=44px R32 skill pills + aligned 2-column BODY grid */
  html:root body #callings #calling-panel .cp97 .v0 .cp-fig {
    flex: 0 0 128px !important;
    height: 128px !important;
    min-height: 128px !important;
    max-height: 128px !important;
    background: radial-gradient(ellipse 56% 72% at 50% 54%, rgba(218, 174, 92, 0.16) 0%, rgba(14, 11, 8, 0) 74%) !important;
  }
  html:root body #callings #calling-panel .cp97 .v0 .cp-fig > img,
  html:root body #callings #calling-panel .cp97 .cp-dfig > img {
    height: 124px !important;
    max-height: 124px !important;
  }
  html:root body #callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  html:root body #callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type .cp-tlabel {
    grid-column: 1 / -1 !important;
  }
}
