/* r229.css (#1014 / #1064) — Complete Craft, Contrast, Centering & Mobile Callings Rescue:
   1. Global: Forged 45deg diamond skill sockets with active first-skill state; brushed antique-brass CTAs;
      WCAG AA (>=4.5:1) locked labels & brightened STALKER emblem; inner dark matte vignettes on Slice 2/3 cards.
   2. Desktop (>= 1041px): True 1fr auto 1fr centered .bar-nav (720px); target.png Slice 0 champagne H1 / pill CTA /
      pill promo; Slice 1 112px/124px top/bottom dissolves; Slice 3 42px medallions & editorial p.law rule;
      Slice 4 348px 3-col Callings with uniform 11.5px labels, 12-16px skill-to-Ancestry gap & framed .adv-card;
      Slice 5 borderless p.req caption.
   3. Mobile (<= 699px): Slice 0 wordmark legibility shadow, centered promo & 44px capsule; Slice 1 >=44px sticky buttons
      & crisp active tab; Slice 2 274px clip & 10-12px diamond pips (kills 113px void); Slice 3/4 +18-24px sticky
      clearance, restored STARTING SKILLS, unified 10.5px ANCESTRY/BODY, 152px R31 stage & 16px outer gutter;
      Slice 5 width-matched CTAs, seamless #0e0b08 footer, 1-line tagline & restored EXPLORE nav header.
   Preserves all sacred owner locks (content.js verbatim copy, 0 step badges, .chapter-divider, R08/R09/R31/R32, spheres.html). */

/* ============================================================================
   1. GLOBAL POLISH: FORGED SKILL SOCKETS, BRUSHED BRASS, WCAG LOCK CONTRAST & VIGNETTES
   ============================================================================ */
/* Brushed antique-brass CTA text & surface refinement */
html:root body header#bar.bar a.btn.btn-play,
html:root body #hero .hero-cta a.btn.btn-play,
html:root body #play .final-copy a.btn.btn-play {
  filter: saturate(0.92) contrast(1.03) !important;
  color: #1c1104 !important;
}
html:root body #hero .hero-cta a.btn.btn-play span,
html:root body #play .final-copy a.btn.btn-play span {
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  color: #1c1104 !important;
  text-shadow: 0 1px 0 rgba(255, 244, 210, 0.45) !important;
}

/* Forged 45deg diamond skill sockets (replaces generic audio-player play triangle) */


/* WCAG AA >=4.5:1 legible locked contrast & brighter STALKER emblem */
html:root body main section#callings #calling-row > button.calling.locked[aria-selected="false"] {
  opacity: 0.90 !important;
  border: 1px dashed rgba(196, 168, 114, 0.32) !important;
  color: #cec0a6 !important;
}
html:root body main section#callings #calling-row > button.calling.locked .medal img {
  filter: saturate(0.76) brightness(1.18) contrast(1.06) !important;
  opacity: 0.95 !important;
}
html:root body main section#callings #calling-row > button.calling.locked small.medal-cap,
html:root body main section#callings #calling-row > button.calling.locked small.medal-cap.lock-cap {
  color: #d8c08e !important;
  opacity: 1 !important;
  font-size: 9.5px !important;
}
html:root body main section#callings #calling-panel button.cp-chip[aria-checked="false"]:is([data-v="dwarf"], [data-v="halfling"]),
html:root body main section#callings #calling-panel button.cp-chip[aria-checked="false"]:has(.cp-lock),
html:root body main section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow button.cp-chip[aria-checked="false"]:is([data-v="dwarf"], [data-v="halfling"]) {
  background: rgba(11, 8, 6, 0.94) !important;
  border: 1px dashed rgba(186, 160, 112, 0.30) !important;
  color: #bcae94 !important;
  opacity: 1 !important;
}
html:root body main section#callings #calling-panel button.cp-chip:has(.cp-lock) .cp-lock {
  display: inline-flex !important;
  align-items: center !important;
  width: 12px !important;
  height: 12px !important;
  flex: 0 0 12px !important;
  color: #ceb276 !important;
  opacity: 0.96 !important;
}
html:root body section#callings #lock-note {
  color: #dfd0b6 !important;
}
html:root body footer#account.foot .wrap.foot-meta .foot-copy,
html:root body footer#account.foot .wrap.foot-meta a[href="#top"] {
  color: rgba(232, 218, 192, 0.88) !important;
}
html:root body footer#account.foot .wrap.foot-meta a[href="#top"] {
  text-decoration: underline !important;
  text-decoration-color: rgba(232, 218, 192, 0.42) !important;
  text-underline-offset: 3px !important;
}

/* Unified inner dark vignette matte across Slice 2 & Slice 3 showcase frames */
html:root body #journey figure.frame > .clip,
html:root body section#realms .realm-pics {
  position: relative !important;
}
html:root body #journey figure.frame > .clip::after,
html:root body section#realms .realm-pics::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  box-shadow: inset 0 0 28px rgba(10, 8, 5, 0.72), inset 0 -24px 32px rgba(12, 9, 6, 0.78) !important;
  z-index: 2 !important;
}

/* ============================================================================
   2. DESKTOP (>= 1041px): OPTICAL 720PX NAV, TARGET HERO, SLICE 1 DISSOLVE, 348PX CALLINGS
   ============================================================================ */
@media (min-width: 1041px) {
  /* Optical centering of center navigation track on 1440px viewport (720px center) */
  html:root body header#bar.bar {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    column-gap: 20px !important;
  }
  html:root body header#bar.bar .bar-brand {
    justify-self: start !important;
  }
  html:root body header#bar.bar .bar-nav {
    justify-self: center !important;
    margin-inline: 0 !important;
    width: auto !important;
  }
  html:root body header#bar.bar .bar-end {
    justify-self: end !important;
  }

  /* Slice 0: Target-aligned champagne gold H1, rounded pill SEE THE WORLD & pill starter promo */
  html:root body section#hero.hero .hero-copy h1#hero-title span:last-child {
    color: #ebd094 !important;
  }
  html:root body #hero .hero-cta a.btn.btn-ghost {
    border-radius: 10px !important;
    border: 1px solid rgba(226, 194, 128, 0.36) !important;
    background: rgba(12, 9, 6, 0.72) !important;
  }
  html:root body section#hero.hero .cta-notes p.note#hero-note,
  html:root body #hero .cta-notes .promo {
    border: 1px solid rgba(218, 184, 116, 0.26) !important;
    border-left: 1px solid rgba(218, 184, 116, 0.26) !important;
    border-radius: 999px !important;
    background: rgba(11, 8, 6, 0.80) !important;
    padding: 6px 16px 6px 13px !important;
    width: fit-content !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  }
  html:root body main section#hero.hero .hero-copy ul.hero-facts {
    border: 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(226, 194, 128, 0.16) !important;
    border-bottom: 1px solid rgba(226, 194, 128, 0.12) !important;
    background: linear-gradient(90deg, rgba(8, 6, 4, 0.76) 0%, rgba(8, 6, 4, 0.50) 76%, rgba(8, 6, 4, 0) 100%) !important;
    padding: 10px 28px 10px 0 !important;
    margin-top: 26px !important;
    color: #dfd2ba !important;
  }

  /* Slice 1: Smooth top & bottom obsidian dissolves eliminating hard horizontal landscape crops */
  html:root body section#world.band .sunder {
    position: relative !important;
  }
  html:root body section#world.band .sunder::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 112px !important;
    background: linear-gradient(180deg, #0e0b08 0%, rgba(14, 11, 8, 0.68) 44%, rgba(14, 11, 8, 0) 100%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }
  html:root body section#world.band .sunder::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 124px !important;
    background: linear-gradient(180deg, rgba(14, 11, 8, 0) 0%, rgba(14, 11, 8, 0.66) 56%, #0e0b08 100%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }
  html:root body section#world.band .sunder .s-copy,
  html:root body section#world.band .sunder .s-marks,
  html:root body section#world.band .sunder .s-pause {
    z-index: 4 !important;
  }

  /* Slice 3: 42px medallions, balanced 300px height & editorial p.law rule (zero fake button box) */
  html:root body section#realms.band {
    padding: 96px 0 96px !important;
  }
  html:root body section#realms #realm-tabs > button.tab::before {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border: 1.5px solid rgba(226, 192, 118, 0.52) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65) !important;
  }
  html:root body section#realms .realm-media,
  html:root body section#realms .realm-pics,
  html:root body section#realms #realm-card {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
  }
  html:root body section#realms #realm-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 11px !important;
    padding: 20px 28px !important;
  }
  html:root body section#realms #realm-stage #realm-card p.law,
  html:root body section#realms #realm-card p.law {
    background: transparent !important;
    border: 0 !important;
    border-left: 2px solid #e0ba6c !important;
    border-radius: 0 !important;
    padding: 2px 0 2px 12px !important;
    margin: 2px 0 4px 0 !important;
  }
  html:root body section#realms #realm-card ul {
    gap: 9px !important;
    margin: 0 !important;
  }

  /* Slice 4: Balanced 348px lockup, 12-16px skill->Ancestry breathing room & framed WARRIOR plate */
  html:root body section#callings.band {
    padding: 206px 0 58px !important;
  }
  html:root body #callings #calling-panel .calling-base dl dt,
  html:root body #callings #calling-panel .cp-desk .cp-tlabel,
  html:root body #callings #calling-panel .adv .adv-label {
    font-family: var(--ui-sans) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #dfc07c !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  html:root body #callings #calling-panel .calling-base > .adv-media.base-fig,
  html:root body #callings #calling-panel .calling-base > div:not(.adv-media),
  html:root body #callings #calling-panel > .adv {
    height: 348px !important;
    min-height: 348px !important;
    max-height: 348px !important;
  }
  html:root body #callings #calling-panel .calling-base > div:not(.adv-media) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }
  html:root body #callings #calling-panel .calling-base dl {
    margin: 6px 0 0 0 !important;
  }
  html:root body #callings #calling-panel .calling-base dl dd {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
  }
  html:root body #callings #calling-panel .calling-base .cp-toggle.cp-desk {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 6px !important;
  }
  html:root body #callings #calling-panel .cp-desk .cp-trow {
    gap: 6px !important;
  }
  html:root body #callings #calling-panel .cp-desk .cp-trow button.cp-chip {
    min-height: 37px !important;
    height: 37px !important;
  }
  html:root body #callings #calling-panel > .adv > .adv-card {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin-top: 10px !important;
    padding: 12px 16px 12px 12px !important;
    border-radius: 3px !important;
    background: linear-gradient(180deg, rgba(24, 18, 12, 0.72) 0%, rgba(13, 10, 7, 0.90) 100%) !important;
    border: 1px solid rgba(218, 180, 108, 0.22) !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  html:root body #callings #calling-panel .adv-card .adv-media.figure {
    width: 176px !important;
    min-width: 176px !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    align-self: stretch !important;
  }
  html:root body #callings #calling-panel .adv-card > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  /* Slice 5: Borderless WebGPU static caption over clean stone shadow */
  html:root body section#play.final .final-copy p.req {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 2px 0 !important;
    color: rgba(236, 224, 198, 0.88) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.96), 0 0 18px rgba(0, 0, 0, 0.92) !important;
  }
}

/* ============================================================================
   3. MOBILE (<= 699px): CRISPER HERO, ZERO SLICE 2 VOID, +20PX CALLINGS CLEARANCE & UNIFIED FOOTER
   ============================================================================ */
@media (max-width: 699px) {
  /* Slice 0: Wordmark crispness over lightning haze, natural lower robe fold, centered promo & >=44px dots */
  html:root body #hero .hero-logo .wordmark {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 24px rgba(0, 0, 0, 0.88) !important;
  }
  html:root body #hero .hero-shade {
    background:
      radial-gradient(ellipse 58% 28% at 84% 16%, rgba(255, 146, 54, 0.30) 0%, rgba(214, 96, 30, 0.10) 52%, rgba(0, 0, 0, 0) 100%),
      radial-gradient(ellipse 32% 18% at 10% 54%, rgba(16, 12, 8, 0.88) 0%, rgba(16, 12, 8, 0) 100%),
      radial-gradient(ellipse 68% 18% at 50% 13%, rgba(8, 6, 4, 0.46) 0%, rgba(8, 6, 4, 0) 100%),
      linear-gradient(180deg, rgba(8, 6, 4, 0.42) 0%, rgba(8, 6, 4, 0) 24%, rgba(8, 6, 4, 0) 48%, rgba(16, 12, 8, 0.78) 66%, rgba(16, 12, 8, 0.92) 80%, #0e0b08 92%, #0e0b08 100%) !important;
  }
  html:root body #hero .hero-copy {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 84px !important;
  }
  html:root body #hero .hero-cta a.btn.btn-play {
    width: 318px !important;
    max-width: calc(100% - 24px) !important;
    margin-inline: auto !important;
  }
  html:root body #hero .hero-cta .promo {
    display: block !important;
    text-align: center !important;
    max-width: 296px !important;
    margin: 8px auto 0 !important;
    line-height: 1.38 !important;
    color: rgba(243, 228, 194, 0.92) !important;
  }
  html:root body #hero .hero-cta .promo .promo-gem {
    display: inline-block !important;
    vertical-align: 1px !important;
    margin-right: 5px !important;
  }
  html:root body #hero .hero-dots {
    height: 44px !important;
    min-height: 44px !important;
    gap: 10px !important;
    padding: 0 16px !important;
    bottom: 24px !important;
  }
  html:root body #hero .motion-toggle {
    bottom: 24px !important;
  }

  /* Slice 1: >=44px sticky controls with bold Cinzel weight & crisp 4-tab active state */
  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 {
    height: 44px !important;
    min-height: 44px !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    letter-spacing: 0.12em !important;
  }
  html:root body section#world.band .sunder .s-mark[aria-current="true"] {
    background: linear-gradient(180deg, rgba(228, 190, 108, 0.26) 0%, rgba(32, 23, 12, 0.94) 100%) !important;
    border-top: 2px solid #f2ce7e !important;
    color: #fffaf0 !important;
  }
  html:root body #world .sunder .s-mark::after {
    font-size: 9.2px !important;
    letter-spacing: 0.01em !important;
  }

  /* Slice 2: 274px lush portrait clip + bright 10-12px diamond pips (kills 113px bottom void) */
  html:root body section#journey.band {
    padding: 82px 0 36px !important;
  }
  html:root body #journey .j-swipe figure.frame > .clip {
    min-height: 274px !important;
    height: 274px !important;
  }
  html:root body #journey .j-dots {
    gap: 18px !important;
    min-height: 44px !important;
  }
  html:root body #journey .j-dots i {
    position: relative !important;
    width: 10px !important;
    height: 10px !important;
    background: rgba(218, 184, 116, 0.28) !important;
    border: 1.5px solid rgba(232, 199, 122, 0.72) !important;
  }
  html:root body #journey .j-dots i::before {
    content: "" !important;
    position: absolute !important;
    inset: -14px -8px !important;
  }
  html:root body #journey .j-dots i.on {
    width: 12px !important;
    height: 12px !important;
    background: #f2cf7e !important;
    border-color: #fff3d1 !important;
    box-shadow: 0 0 8px rgba(242, 207, 126, 0.55) !important;
  }

  /* Slice 3: 16px outer gutter, clear CENTRAL label contrast & +13px sticky clearance */
  html:root body section#realms.band {
    padding: 114px 0 2px !important;
  }
  html:root body main section#realms.band > .wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
  html:root body section#realms .head {
    margin-bottom: 6px !important;
  }
  html:root body section#realms #realm-tabs {
    margin-bottom: 6px !important;
  }
  html:root body section#realms #realm-tabs > button.tab {
    padding: 7px 10px !important;
  }
  html:root body section#realms #realm-tabs > button#realm-tab-thalenyr::after {
    color: #e6c882 !important;
  }
  html:root body section#realms #realm-card p.law {
    background: rgba(218, 180, 108, 0.06) !important;
    border: 0 !important;
    border-left: 2.5px solid #e0ba6c !important;
    border-radius: 0 !important;
    padding: 4px 0 4px 10px !important;
  }

  /* Slice 4: >=18px sticky clearance, restored STARTING SKILLS, unified 10.5px labels & >=16px bottom safe margin */
  html:root body section#callings.band {
    padding: 92px 0 0 !important;
  }
  html:root body main section#callings.band > .wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
  html:root body section#callings .head {
    margin-bottom: 4px !important;
  }
  html:root body section#callings #calling-row {
    gap: 5px !important;
    margin-bottom: 5px !important;
  }
  html:root body section#callings #calling-row > button.calling {
    min-height: 42px !important;
    padding: 5px 10px !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 {
    padding: 0 12px 4px 12px !important;
    gap: 2px !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-fig {
    margin: 0 -12px 2px -12px !important;
    width: calc(100% + 24px) !important;
    flex: 0 0 124px !important;
    height: 124px !important;
    min-height: 124px !important;
    max-height: 124px !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;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-text h3 {
    margin: 0 !important;
    line-height: 1.12 !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-text .role {
    margin: 0 !important;
    line-height: 1.25 !important;
  }
  html:root body main section#callings #calling-panel .cp97 .v0 .cp-skills .cp-slabel,
  html:root body main #callings #calling-panel .cp97 .v0 .cp-skills .cp-slabel {
    display: block !important;
    grid-column: 1 / -1 !important;
    font-family: var(--ui-sans) !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase !important;
    color: #dfc07c !important;
    margin: 1px 0 0 0 !important;
    line-height: 1.15 !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:first-of-type .cp-tlabel,
  html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type .cp-tlabel {
    font-family: var(--ui-sans) !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase !important;
    color: #dfc07c !important;
    line-height: 1.15 !important;
    margin: 1px 0 2px 0 !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow button.cp-chip {
    min-height: 35px !important;
    height: 35px !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-paths {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
  }
  html:root body section#callings #lock-note {
    padding: 2px 0 0 !important;
    min-height: 0 !important;
  }

  /* Slice 5 Mobile: Matched PLAY/SIGN IN visual widths, seamless #0e0b08 ground, 16px outer gutter & EXPLORE label */
  html:root body section#play.final {
    padding: 44px 16px 16px !important;
  }
  html:root body section#play.final::after {
    background: linear-gradient(180deg, rgba(14, 11, 8, 0) 0%, #0e0b08 100%) !important;
  }
  html:root body #play .final-copy a.btn.btn-play {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
  }
  html:root body section#play.final #account-mount a#sign-in.final-signin {
    width: 306px !important;
    min-width: 306px !important;
    max-width: 306px !important;
    height: 48px !important;
    font-family: var(--display, "Soul Cinzel", "Cinzel", Georgia, serif) !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
  }
  html:root body footer#account.foot {
    padding: 12px 0 8px 0 !important;
    background-color: #0e0b08 !important;
    border-top: 1px solid rgba(218, 180, 108, 0.20) !important;
  }
  html:root body footer#account.foot .wrap,
  html:root body footer#account.foot .wrap.foot-grid,
  html:root body footer#account.foot .wrap.foot-legal,
  html:root body footer#account.foot .wrap.foot-meta {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  html:root body footer#account.foot .foot-brand {
    align-items: center !important;
    gap: 12px !important;
  }
  html:root body footer#account.foot .foot-tagline {
    font-size: 13px !important;
    max-width: none !important;
    line-height: 1.35 !important;
  }
  html:root body footer#account.foot .foot-notes {
    gap: 2px !important;
  }
  html:root body footer#account.foot .foot-notes h3 {
    display: block !important;
    font-family: var(--ui-sans) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: rgba(226, 194, 122, 0.82) !important;
    margin: 2px 0 -4px 0 !important;
  }
  html:root body footer#account.foot .foot-notes .foot-links a {
    min-height: 44px !important;
    border-bottom: 0 !important;
  }
}
