/* r226.css (#1014 / #1064) — Cohesive Material Grammar, Title-Case Rhythm, Zero Void & Target-Phone Hero Crest/Crop:
   1. Global: Consistent Title-Case small-caps display headings; angular 3px recessed skill preview plaques; unified solid
      muted-pewter lock borders (zero dashed wireframes/bright locks); warm bronze-gold BORN OF rule; seamless Slice 5 top fade;
      crisp WebGPU note; subtle golden glow behind Footer crest.
   2. Desktop (>= 1041px): Card 1 generous headroom (8%), transparent seamless .hero-facts strip, soft bordered promo capsule,
      high-contrast scroll disc, zero Slice 3 Realms void (296px card) & zero Slice 4 middle-column bottom void.
   3. Mobile (<= 699px): Larger target-phone top crest (136px canvas / 88px sphere at top:6px) & lifted Hero painting clearing
      central woman's face & red-robed figure; dark vaulted sanctuary backdrop (art/band-skills-900.webp) behind Fighter
      (0 Soul Well repetition); aligned 50/50 stacked BODY grid matching ANCESTRY above.
   Preserves all sacred owner locks (content.js verbatim copy, 0 step badges, .chapter-divider, R08/R09/R31/R32, spheres.html). */

/* ============================================================================
   1. GLOBAL POLISH: TITLE-CASE HEADINGS, 3PX SKILL PLAQUES, SOLID MUTED LOCKS & SLICE 5 FINISH
   ============================================================================ */
html:root body section.band .head h2,
html:root body section.final h2 {
  text-transform: capitalize !important;
}

/* Replace 999px skill capsules with angular 3px recessed obsidian preview plaques matching UI geometry */


/* Unified Solid Muted-Pewter Lock Grammar (eliminates dashed wireframes & bright distracting locks) */
html:root body section#callings #calling-row > button.calling.locked[aria-selected="false"],
html:root body #callings #calling-panel button.cp-chip[aria-checked="false"]:is([data-v="dwarf"], [data-v="halfling"]),
html:root body #callings #calling-panel button.cp-chip[aria-checked="false"]:has(.cp-lock),
html:root body section#callings #calling-panel button.cp-chip[data-v="dwarf"][aria-checked="false"],
html:root body section#callings #calling-panel button.cp-chip[data-v="halfling"][aria-checked="false"] {
  opacity: 1 !important;
  filter: none !important;
  background: rgba(11, 9, 7, 0.88) !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgba(164, 146, 116, 0.24) !important;
  color: #aba08c !important;
}
html:root body section#callings #calling-row > button.calling.locked[aria-selected="false"] .medal img {
  filter: saturate(0.54) brightness(0.86) !important;
  opacity: 0.88 !important;
}
html:root body section#callings #calling-row > button.calling.locked small.medal-cap,
html:root body section#callings #calling-row > button.calling.locked small.medal-cap.lock-cap,
html:root body #callings #calling-panel button.cp-chip:has(.cp-lock) .cp-lock {
  color: #9c8e76 !important;
  opacity: 0.92 !important;
}

/* Warm antique-gold BORN OF accent bar + Slice 5 top vignette + crisp WebGPU note + Footer crest halo */
html:root body section#realms #realm-stage #realm-card p.law,
html:root body section#realms #realm-card p.law {
  border-left: 2px solid #d8b46a !important;
  border-radius: 0 3px 3px 0 !important;
}
html:root body section#play.final {
  position: relative !important;
}
html:root body section#play.final::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 76px !important;
  background: linear-gradient(180deg, #0d0a07 0%, rgba(13, 10, 7, 0.48) 54%, rgba(13, 10, 7, 0) 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
html:root body #play .final-copy p.req,
html:root body section#play.final .final-copy p.req,
html:root body #play p.req {
  color: #eadcc2 !important;
  font-size: 12.5px !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.98), 0 0 20px rgba(0, 0, 0, 0.92) !important;
}
html:root body footer#account.foot .foot-brand img {
  filter: drop-shadow(0 0 10px rgba(218, 180, 108, 0.34)) !important;
}

/* ============================================================================
   2. DESKTOP (>= 1041px): HEADROOM CROP, SEAMLESS HERO FACTS, ZERO REALMS & CALLINGS VOIDS
   ============================================================================ */
@media (min-width: 1041px) {
  html:root body #game-band figure.frame:first-child .clip img {
    object-position: 50% 8% !important;
  }
  html:root body #hero .hero-facts {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-left: 0 !important;
  }
  html:root body #hero .hero-facts > div,
  html:root body #hero .hero-facts li {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.96), 0 0 22px rgba(0, 0, 0, 0.90) !important;
  }
  html:root body #hero .cta-notes .promo {
    border-radius: 999px !important;
    border: 1px solid rgba(255, 240, 205, 0.14) !important;
    background: rgba(10, 8, 6, 0.64) !important;
  }
  html:root body #hero .hero-cta .btn-ghost {
    border-radius: 6px !important;
  }
  html:root body #hero a.scroll-cue {
    background: rgba(8, 6, 4, 0.92) !important;
    border: 1.5px solid rgba(236, 200, 120, 0.72) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.92) !important;
    color: #f6dc96 !important;
  }

  /* Slice 3 Realms: 316px card prevents 3rd bullet from touching bottom border while eliminating void */
  html:root body section#realms.band {
    padding: 104px 0 124px !important;
  }
  html:root body section#realms .realm-media,
  html:root body section#realms .realm-pics,
  html:root body section#realms #realm-card {
    height: 316px !important;
    min-height: 316px !important;
    max-height: 316px !important;
    box-sizing: border-box !important;
  }
  html:root body section#realms #realm-card {
    padding: 20px 28px !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  /* Slice 4 Desktop: middle column BODY aligns flush with left Fighter portrait & right Warrior card */
  html:root body #callings #calling-panel .calling-base > div:not(.adv-media) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-self: stretch !important;
    padding: 2px 0 !important;
  }
}

/* ============================================================================
   3. MOBILE (<= 699px): TARGET-PHONE CREST & HERO CROP, CATHEDRAL CALLINGS STAGE & ALIGNED BODY
   ============================================================================ */
@media (max-width: 699px) {
  /* Target-Phone Hero: overlap-free top crest (112px canvas / 86px img, margin-bottom:2px) & shifted art clearing faces */
  html:root body #hero .hero-art {
    transform: translateY(-54px) scale(1.08) !important;
    transform-origin: center center !important;
  }
  html:root body #hero .hero-logo {
    top: 8px !important;
    padding: 4px 18px 8px !important;
    background: radial-gradient(ellipse 76% 70% at 50% 46%, rgba(8, 6, 4, 0.56) 0%, rgba(8, 6, 4, 0) 100%) !important;
  }
  html:root body #hero .hero-logo .emblem,
  html:root body #hero .hero-logo .emblem .sse-emblem,
  html:root body #hero .hero-logo .emblem canvas {
    width: 112px !important;
    height: 112px !important;
    max-width: 112px !important;
    max-height: 112px !important;
    flex: 0 0 112px !important;
    margin-bottom: 2px !important;
  }
  html:root body #hero .hero-logo .emblem img {
    width: 86px !important;
    height: 86px !important;
    max-width: 86px !important;
    max-height: 86px !important;
  }
  html:root body #hero .hero-logo .wordmark {
    font-size: 27px !important;
    margin-top: 0 !important;
  }
  html:root body section#hero.hero .hero-copy p#hero-eyebrow.eyebrow {
    border: 0 !important;
    background: rgba(10, 8, 6, 0.74) !important;
    padding: 5px 14px !important;
  }

  /* Slice 2 Mobile: Priest headroom crop */
  html:root body #journey .j-swipe figure.frame .clip img {
    object-position: 50% 10% !important;
  }

  /* Slice 4 Mobile: Dark Vaulted Cathedral Backdrop (0 Soul Well repetition) + Stacked 50/50 BODY Grid */
  html:root body section#callings.band {
    padding: 80px 0 0 !important;
  }
  html:root body section#callings #calling-row {
    margin-bottom: 4px !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-fig {
    margin: -3px -11px 3px -11px !important;
    width: calc(100% + 22px) !important;
    flex: 0 0 118px !important;
    height: 118px !important;
    min-height: 118px !important;
    max-height: 118px !important;
    background-color: #120e0a !important;
    background-image:
      radial-gradient(ellipse 52% 14% at 50% 93%, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 100%),
      radial-gradient(ellipse 74% 66% at 50% 42%, rgba(226, 182, 98, 0.22) 0%, rgba(16, 12, 9, 0.84) 64%, #140f0b 96%),
      url("art/band-skills-900.webp") !important;
    background-size: 100% 100%, 100% 100%, cover !important;
    background-position: center, center, 50% 34% !important;
    border-bottom: 1px solid rgba(218, 180, 108, 0.16) !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-fig > img,
  html:root body #callings #calling-panel .cp97 .v0 .cp-fig > img,
  html:root body #callings #calling-panel .cp97 .cp-dfig > img {
    height: 108px !important;
    max-height: 108px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.88)) !important;
  }
  html:root body section#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 section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type .cp-tlabel {
    grid-column: 1 / -1 !important;
    width: auto !important;
    margin: 1px 0 0 0 !important;
    font-size: 9.5px !important;
    line-height: 1.05 !important;
  }
  html:root body section#callings .lock-note#lock-note {
    margin: 2px auto 4px !important;
    padding: 2px 6px !important;
  }
  html:root body section#play.final {
    padding: 90px 16px 48px !important;
  }
}
