/* r225.css (#1014 / #1064) — Focused Contrast, Playable/Active/Lock Hierarchy, & Mobile Polishing Pass:
   1. Distinct interactive taxonomy in Slice 4: pill playable skill triggers with solid-gold play discs vs rectangular Ancestry & BODY tiles.
   2. Unmistakable active selection glow on HUMAN, MALE, WARRIOR (beats r224.css mobile BODY border override) + WCAG-AA dashed lock grammar on MAGE/STALKER/DWARF/HALFLING.
   3. Cohesive Path/Realm hues (calms neon Monk & tropical Sea orb, dusk-harmonizes Thalenyr, raises REALM OF & role micro-label legibility).
   4. Desktop refinements: Priest Card 1 centered crop (22%), lighter Hero crowd scrim + chamfered promo plate + bright scroll cue, Callings footer breathing room, clean WebGPU note & gold footer top hairline.
   5. Mobile (<= 699px): consistent chiseled sticky PLAY across Slices 1-5, smooth Slice 1 sky fade under navbar + uppercase tabs, 126px full-bleed Calling stage, inline BODY grid with 6px gap, eliminated Slice 2 bottom void, aligned PLAY/SIGN IN CTA widths, & 30px iOS-safe bottom Hero controls.
   Preserves all sacred owner locks (content.js verbatim copy, 0 step badges, .chapter-divider, R08/R09/R31/R32, spheres.html). */

/* ============================================================================
   1. GLOBAL POLISH: SKILL PILLS, ACTIVE/LOCK HIERARCHY, PATH/REALM HARMONY & FOOTER
   ============================================================================ */
/* Playable Skill Triggers: distinct obsidian capsule + solid gold circular play disc */


/* Unmistakable Active State for HUMAN / ELF & FEMALE / MALE on BOTH Desktop & Phone */
html:root body #callings #calling-panel button.cp-chip[aria-checked="true"],
html:root body #callings #calling-panel .cp-desk .cp-trow button.cp-chip[aria-checked="true"],
html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow button.cp-chip[aria-checked="true"],
html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type button.cp-chip[aria-checked="true"],
html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type button.cp-chip[aria-checked="true"]:first-of-type,
html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type button.cp-chip[aria-checked="true"]:last-of-type {
  border: 1.5px solid #f0cb78 !important;
  border-left: 1.5px solid #f0cb78 !important;
  border-right: 1.5px solid #f0cb78 !important;
  background: linear-gradient(180deg, rgba(94, 66, 26, 0.92) 0%, rgba(42, 28, 13, 0.96) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 242, 200, 0.30), 0 0 10px rgba(218, 176, 92, 0.18) !important;
  color: #fff9eb !important;
  font-weight: 700 !important;
}
html:root body #callings #calling-panel button.cp-chip[aria-checked="false"]:not([data-v="dwarf"]):not([data-v="halfling"]):not(:has(.cp-lock)),
html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type button.cp-chip[aria-checked="false"] {
  border: 1px solid rgba(218, 180, 108, 0.26) !important;
  border-left: 1px solid rgba(218, 180, 108, 0.26) !important;
  border-right: 1px solid rgba(218, 180, 108, 0.26) !important;
  background: rgba(18, 13, 9, 0.86) !important;
  color: #cfc0a2 !important;
  box-shadow: none !important;
}

/* Legible WCAG-AA Locked States + Uniform Dashed Lock Grammar (Callings + Ancestries) */
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(12, 9, 6, 0.88) !important;
  border-width: 1px !important;
  border-style: dashed !important;
  border-color: rgba(214, 180, 112, 0.44) !important;
  color: #c6b79c !important;
}
html:root body section#callings #calling-row > button.calling.locked[aria-selected="false"] .medal img {
  filter: saturate(0.68) brightness(0.95) !important;
  opacity: 0.94 !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: #e0bb6a !important;
  opacity: 1 !important;
}

/* Raised Role/Preview/Realm Micro-Label Contrast & Harmonized Monk/Sea/Thalenyr Colors */
html:root body #callings #calling-panel .calling-role,
html:root body #callings #calling-panel .cp97 .cp-role,
html:root body #callings #calling-panel .calling-base dt::after,
html:root body #callings #calling-panel .cp97 .cp-skills .cp-slabel::after {
  color: rgba(226, 206, 166, 0.88) !important;
}
html:root body section#realms #realm-tabs > button.tab .rof {
  font-size: 9px !important;
  color: rgba(226, 206, 166, 0.88) !important;
}
html:root body #callings #calling-panel .adv-row .adv-btn:nth-child(4) img {
  filter: hue-rotate(-14deg) saturate(0.58) brightness(0.92) !important;
}
html:root body section#realms #realm-tabs > button#realm-tab-sea::before {
  filter: saturate(0.78) contrast(1.06) brightness(0.94) !important;
}
html:root body section#realms .realm-pics img[src*="thalenyr"] {
  filter: brightness(0.84) contrast(1.08) saturate(0.86) sepia(0.11) !important;
}

/* Seamless Top Fade on Slice 1 (both Desktop & Mobile — kills hard horizon seam under sticky bar) */
html:root body section#world.band .sunder::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 112px !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, rgba(14, 11, 8, 0.96) 0%, rgba(14, 11, 8, 0.56) 54%, rgba(14, 11, 8, 0) 100%) !important;
}

/* Unboxed Legible WebGPU Note & Sculpted Footer Horizon Border */
html:root body #play .final-copy p.req,
html:root body section#play.final .final-copy p.req,
html:root body #play p.req {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 2px 4px !important;
  color: rgba(228, 214, 188, 0.88) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.96), 0 0 18px rgba(0, 0, 0, 0.88) !important;
}
html:root body footer#account.foot {
  border-top: 1px solid rgba(218, 180, 108, 0.36) !important;
  box-shadow: inset 0 1px 0 rgba(255, 238, 192, 0.08) !important;
}

/* ============================================================================
   2. DESKTOP (>= 1041px): HERO POLISH, PRIEST CARD CROP, & CALLINGS BREATHING ROOM
   ============================================================================ */
@media (min-width: 1041px) {
  html:root body #game-band figure.frame:first-child .clip img {
    object-position: 50% 22% !important;
  }
  html:root body #hero .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 8, 6, 0.84) 0%, rgba(10, 8, 6, 0.44) 42%, rgba(10, 8, 6, 0.08) 76%, rgba(10, 8, 6, 0.16) 100%),
      linear-gradient(180deg, rgba(10, 8, 6, 0.44) 0%, rgba(10, 8, 6, 0) 24%, rgba(10, 8, 6, 0) 68%, #100c08 100%) !important;
  }
  html:root body #hero .cta-notes .promo {
    border-radius: 4px !important;
    border: 1px solid rgba(218, 180, 108, 0.18) !important;
    background: rgba(12, 9, 6, 0.72) !important;
  }
  html:root body #hero .hero-cta .btn-ghost {
    border-radius: 4px !important;
  }
  html:root body #hero a.scroll-cue {
    background: rgba(10, 8, 5, 0.84) !important;
    border: 1px solid rgba(218, 180, 108, 0.48) !important;
    color: #f2d78e !important;
  }
  html:root body section#callings.band {
    padding: 156px 0 0 !important;
  }
  html:root body section#callings .lock-note#lock-note {
    margin: 8px auto 12px !important;
  }
  html:root body section#play.final {
    padding: 132px 0 124px !important;
  }
}

/* ============================================================================
   3. MOBILE (<= 699px): CONSISTENT STICKY PLAY, 126px STAGE, INLINE BODY & SAFE AREAS
   ============================================================================ */
@media (max-width: 699px) {
  /* Hide sticky PLAY at scrollY=0 (Slice 0), then keep identical 40px chiseled gold PLAY across ALL Slices 1-5 */
  html:root body:not(.scrolled) header#bar.bar a.btn.btn-play,
  html:root body:not(.scrolled).at-cta header#bar.bar a.btn.btn-play {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html:root body.scrolled header#bar.bar:not(.open) a.btn.btn-play,
  html:root body.scrolled.at-cta header#bar.bar:not(.open) a.btn.btn-play,
  html:root body.scrolled header#bar.bar.cta-gone:not(.open) a.btn.btn-play,
  html:root body.scrolled:not(.at-cta) header#bar.bar:not(.open) a.btn.btn-play {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background-color: transparent !important;
    background-image: linear-gradient(180deg, #eed392 0%, #c79c46 52%, #9a7226 100%) !important;
    border: 1px solid #f6dfa4 !important;
    border-image: none !important;
    border-radius: 3px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 15px !important;
    color: #160e04 !important;
    font-family: var(--display, "Cinzel", Georgia, serif) !important;
    font-weight: 700 !important;
    letter-spacing: 0.10em !important;
    box-shadow: inset 0 0 0 1px rgba(46, 28, 6, 0.52), inset 0 1px 0 rgba(255, 250, 224, 0.65), 0 2px 8px rgba(0, 0, 0, 0.68) !important;
  }
  html:root body.scrolled header#bar.bar a.btn.btn-play::before,
  html:root body.scrolled header#bar.bar a.btn.btn-play::after {
    display: none !important;
    content: none !important;
  }

  /* Hero Mobile: taller upper crest scrim, borderless pill, 30px iOS safe-area bottom clearance */
  html:root body #hero .hero-logo {
    top: 14px !important;
    padding: 8px 18px 10px !important;
    background: radial-gradient(ellipse 80% 76% at 50% 48%, rgba(10, 8, 5, 0.72) 0%, rgba(10, 8, 5, 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,
  html:root body #hero .hero-logo .emblem img {
    width: 82px !important;
    height: 82px !important;
    max-width: 82px !important;
    max-height: 82px !important;
    flex: 0 0 82px !important;
  }
  html:root body #hero .hero-logo .wordmark {
    font-size: 26px !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.96), 0 0 24px rgba(0, 0, 0, 0.88) !important;
  }
  html:root body #hero .hero-copy {
    padding-bottom: 72px !important;
  }
  html:root body section#hero.hero .hero-copy p#hero-eyebrow.eyebrow {
    border: 1px solid rgba(218, 180, 108, 0.16) !important;
    background: rgba(10, 8, 5, 0.76) !important;
  }
  html:root body #hero .hero-dots,
  html:root body #hero .motion-toggle {
    bottom: 30px !important;
  }

  /* Slice 1 Mobile: Uppercase Chapter tabs + crisp legible inactive contrast */
  html:root body #world .sunder .s-mark::after {
    text-transform: uppercase !important;
    font-size: 9px !important;
    letter-spacing: 0.05em !important;
    color: rgba(226, 212, 184, 0.88) !important;
  }
  html:root body #world .sunder .s-mark.on::after,
  html:root body #world .sunder .s-mark[aria-selected="true"]::after {
    color: #f6e2ab !important;
  }

  /* Slice 2 Mobile: Priest HUD-free crop + eliminate 109px bottom dead void */
  html:root body #journey .j-swipe figure.frame .clip img {
    object-position: 50% 22% !important;
  }
  html:root body section#journey.band {
    padding: 88px 0 26px !important;
  }
  html:root body section#realms.band {
    padding: 142px 0 0 !important;
  }

  /* Slice 4 Mobile: Prominent 120px Full-Bleed Calling Portrait + Inline 50/50 BODY Toggle */
  html:root body section#callings.band {
    padding: 92px 0 0 !important;
  }
  html:root body section#callings .head {
    margin-bottom: 5px !important;
  }
  html:root body section#callings #calling-row {
    margin-bottom: 5px !important;
  }
  html:root body section#callings #calling-row > button.calling {
    min-height: 46px !important;
    padding: 5px 8px !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 {
    gap: 2px !important;
    padding: 3px 11px 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 120px !important;
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    background: radial-gradient(ellipse 64% 76% at 50% 48%, rgba(204, 158, 82, 0.22) 0%, rgba(28, 20, 13, 0.62) 58%, #140f0b 100%), linear-gradient(180deg, #1c150e 0%, #140f0b 100%) !important;
    background-image: radial-gradient(ellipse 64% 76% at 50% 48%, rgba(204, 158, 82, 0.22) 0%, rgba(28, 20, 13, 0.62) 58%, #140f0b 100%), url("art/hv-soul-well-900.webp") !important;
    background-size: 100% 100%, cover !important;
    background-position: 0 0, 50% 38% !important;
    border-bottom: 1px solid rgba(218, 180, 108, 0.14) !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: 116px !important;
    max-height: 116px !important;
    width: auto !important;
    object-fit: contain !important;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 88%, rgba(0, 0, 0, 0) 100%) !important;
    mask-image: linear-gradient(180deg, #000 0%, #000 88%, rgba(0, 0, 0, 0) 100%) !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 6px !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type .cp-tlabel {
    grid-column: auto !important;
    width: auto !important;
    margin: 0 !important;
    font-size: 9.5px !important;
    line-height: 1.05 !important;
  }
  html:root body section#callings .lock-note#lock-note {
    margin: 3px auto 5px !important;
    padding: 2px 6px !important;
  }
  html:root body section#callings.band + .chapter-divider {
    height: 28px !important;
    min-height: 28px !important;
    margin-top: 0 !important;
    padding: 0 16px !important;
  }
  html:root body section#callings.band + .chapter-divider img {
    height: 22px !important;
    max-height: 22px !important;
  }

  /* Slice 5 Mobile: Aligned PLAY / SIGN IN width, balanced spacing & >=36px Back-to-top tap area */
  html:root body section#play.final {
    padding: 92px 16px 52px !important;
  }
  html:root body #play .final-cta a.btn-ghost {
    min-width: 248px !important;
  }
  html:root body footer#account.foot a.foot-top,
  html:root body footer#account.foot .foot-meta a {
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}
