/* r217.css (#1014 / #1064) — Full-Page Diegetic Dark-Fantasy UI Grammar, Forged-Iron Secondary CTAs,
   9-Slice Codex Panels, Horizontal Realm Medallions, De-Pilled Callings Tabs, Grounded Sanctuary Stages,
   and 6-Slice Desktop/Mobile Balance.
   Loaded after r216.css. Strictly honors EVERY owner lock (copy, R08, R09, R31, R32, 0 step badges, spheres.html links). */

/* ============================================================================
   1. GLOBAL SHAPE GRAMMAR, LINKS, ANCHORS & CLEAN BRONZE MICRO-CONTROLS
   ============================================================================ */
html:root body :is(#world, #journey, #realms, #callings, #play) {
  scroll-margin-top: 76px !important;
}

/* Crisp underlined inline links (Spheres membership clears descenders) */
html:root body a.membership-inline-link,
html:root body footer#account.foot a.foot-meta-spheres {
  text-underline-offset: 4px !important;
  text-decoration-thickness: 1px !important;
}

/* Uniform warm-obsidian + brass-hairline nav/header micro-polish */
html:root body header#bar.bar.scrolled,
html:root body header#bar.bar.solid {
  background: rgba(15, 11, 8, 0.97) !important;
  border-bottom: 1px solid rgba(218, 180, 108, 0.24) !important;
}

/* Clean beveled fantasy frames replacing 999px SaaS oval pills globally */

html:root body #callings .lock-note {
  border-radius: 3px !important;
  background: rgba(18, 14, 10, 0.90) !important;
  border: 1px solid rgba(218, 180, 108, 0.26) !important;
}

/* 9-slice painted Gothic antique-bronze codex frames on Slice 2 & Slice 3/4 containers */
html:root body #journey figure.frame,
html:root body #realms .realm-media,
html:root body #realms #realm-card {
  background-color: #16110c !important;
  border: 10px solid transparent !important;
  border-image-source: url("ui/ui-frame-9slice.png") !important;
  border-image-slice: 106 !important;
  border-image-width: 10px !important;
  border-image-repeat: stretch !important;
  border-radius: 2px !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.68) !important;
}
html:root body #journey figure.frame {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
html:root body #journey figure.frame .clip {
  position: relative !important;
  background: #120e0a !important;
}
html:root body #journey #game-band figure.frame:first-child .clip img {
  object-position: 50% 18% !important;
}
/* Smooth painterly gradient melt into card caption (override r210.css inset:0 with 2-ID specificity -> zero top dark bar!) */
html:root body #journey #game-band figure.frame .clip::after,
html:root body #journey #journey-grid figure.frame .clip::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 0 0 0 !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 28px !important;
  box-shadow: none !important;
  background: linear-gradient(180deg, rgba(22, 17, 12, 0) 0%, #16110c 100%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
html:root body #journey figure.frame figcaption {
  position: relative !important;
  z-index: 3 !important;
  background: #16110c !important;
  border-top: 0 !important;
}

/* ============================================================================
   2. SLICE 3 REALMS — CRISP ELEMENTAL MEDALLIONS, NO REDUNDANT OVERLAYS,Codex PLAQUE
   ============================================================================ */
/* Swap blurry mini landscape crops for clean crystal-clear 256px elemental world orbs */
html:root body section#realms #realm-tabs > button.tab::before {
  background-position: 50% 50% !important;
  background-size: cover !important;
  border: 1.5px solid color-mix(in srgb, var(--rtint, #e2c278) 28%, #e2c278) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--rtint, #e2c278) 24%, transparent), inset 0 1px 0 rgba(255, 244, 210, 0.25) !important;
}
html:root body section#realms #realm-tabs > button#realm-tab-thalenyr::before {
  background-image: url("logo3d/realm-valley-256.webp") !important;
}
html:root body section#realms #realm-tabs > button#realm-tab-sky::before {
  background-image: url("logo3d/realm-sky-256.webp") !important;
  filter: brightness(0.90) contrast(1.10) saturate(1.10) !important;
}
html:root body section#realms #realm-tabs > button#realm-tab-fire::before {
  background-image: url("logo3d/realm-ember-256.webp") !important;
}
html:root body section#realms #realm-tabs > button#realm-tab-sea::before {
  background-image: url("logo3d/realm-sea-256.webp") !important;
}
html:root body section#realms #realm-tabs > button#realm-tab-stone::before {
  background-image: url("logo3d/realm-obsidian-256.webp") !important;
}

/* Hide redundant arrows & REALM 1 OF 5 overlay (tabs above already indicate selected realm) */
html:root body section#realms #realm-prev,
html:root body section#realms #realm-next,
html:root body section#realms #realm-counter {
  display: none !important;
}

/* Illuminated vs recessed realm tabs (consistent gold active vs deep obsidian inactive) */
html:root body section#realms #realm-tabs > button.tab[aria-selected="false"] {
  background: rgba(16, 12, 9, 0.90) !important;
  border: 1px solid rgba(196, 168, 112, 0.24) !important;
  color: #cbbba0 !important;
  border-radius: 3px !important;
}
html:root body section#realms #realm-tabs > button.tab[aria-selected="true"],
html:root body section#realms #realm-tabs > button#realm-tab-thalenyr[aria-selected="true"] {
  background-color: #2c2010 !important;
  background-image: linear-gradient(180deg, rgba(84, 61, 24, 0.95) 0%, rgba(34, 24, 11, 0.98) 100%) !important;
  border: 1.5px solid #f3d488 !important;
  color: #fffaf0 !important;
  border-radius: 3px !important;
  box-shadow: inset 0 1px 0 rgba(255, 242, 198, 0.36), 0 0 16px rgba(232, 199, 122, 0.18) !important;
}

/* Engraved codex plaque for Realm Origin / Law */
html:root body section#realms #realm-card p.law {
  border: 1px solid color-mix(in srgb, var(--tint, #e2c278) 20%, rgba(218, 180, 108, 0.34)) !important;
  border-left: 3px solid color-mix(in srgb, var(--tint, #e2c278) 26%, #e8c77a) !important;
  border-radius: 2px !important;
  background: linear-gradient(90deg, rgba(52, 38, 18, 0.68) 0%, rgba(20, 15, 10, 0.90) 100%) !important;
  padding: 11px 14px !important;
}
html:root body section#realms #realm-card p.law b {
  color: #e8c77a !important;
  letter-spacing: 0.10em !important;
  margin-right: 8px !important;
}

/* ============================================================================
   3. SLICE 4 CALLINGS — DE-PILLED TABS, GOLD ACTIVE FILL, GROUNDED PORTRAIT STAGES
   ============================================================================ */
/* Strip nested oval pill border inside Calling tabs so hierarchy breathes cleanly */
html:root body #callings #calling-row > button.calling {
  border-radius: 3px !important;
}
html:root body #callings #calling-row > button.calling[aria-selected="false"] {
  background: rgba(16, 12, 9, 0.90) !important;
  border: 1px solid rgba(196, 168, 112, 0.24) !important;
}
html:root body #callings #calling-row > button.calling[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(84, 61, 24, 0.95) 0%, rgba(34, 24, 11, 0.98) 100%) !important;
  border: 1.5px solid #f3d488 !important;
  box-shadow: inset 0 1px 0 rgba(255, 242, 198, 0.36), 0 0 18px rgba(232, 199, 122, 0.18) !important;
}
html:root body section#callings #calling-row > button.calling small.medal-cap,
html:root body section#callings #calling-row > button.calling small.medal-cap.open-cap,
html:root body section#callings #calling-row > button.calling small.medal-cap.lock-cap {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 2px 0 0 !important;
  border-radius: 0 !important;
  min-height: 0 !important;
  font-size: 10.5px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}
html:root body section#callings #calling-row > button.calling small.medal-cap.open-cap {
  color: #ebd092 !important;
}
html:root body section#callings #calling-row > button.calling small.medal-cap.lock-cap {
  color: #9e9178 !important;
}

/* Fix inverted Ancestry / Body / Path selection contrast:
   Active = illuminated warm brass-gold; Unselected = dark recessed obsidian! */
html:root body #callings #calling-panel button.cp-chip[aria-checked="false"],
html:root body #callings #calling-panel .cp-desk .cp-trow button.cp-chip[aria-checked="false"],
html:root body #callings #calling-panel .cp97 .cp-toggle .cp-trow button.cp-chip[aria-checked="false"],
html:root body #callings .adv-row .adv-btn[aria-selected="false"] {
  background: rgba(15, 11, 8, 0.92) !important;
  border: 1px solid rgba(196, 168, 112, 0.24) !important;
  color: #cbbba0 !important;
  box-shadow: none !important;
  border-radius: 3px !important;
}
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 #callings #calling-panel .cp97 .cp-toggle .cp-trow button.cp-chip[aria-checked="true"],
html:root body #callings .adv-row .adv-btn[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(92, 66, 26, 0.95) 0%, rgba(40, 28, 12, 0.98) 100%) !important;
  border: 1.5px solid #f4d68c !important;
  color: #fffaf0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 242, 198, 0.38), 0 0 16px rgba(232, 199, 122, 0.18) !important;
  border-radius: 3px !important;
}

/* Grounded Sanctuary Stone Spotlight Stage on BOTH desktop character slots (replaces empty brown box!) */
html:root body #callings #calling-panel .calling-base .adv-media.base-fig,
html:root body #callings #calling-panel .adv-card .adv-media.figure {
  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 76% 62% at 50% 42%, rgba(226, 182, 98, 0.22) 0%, rgba(16, 12, 9, 0.82) 64%, rgba(12, 9, 7, 0.98) 92%),
    url("art/band-skills-900.webp") !important;
  background-size: 100% 100%, 100% 100%, cover !important;
  background-position: center, center, 50% 34% !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(218, 180, 108, 0.26) !important;
  border-radius: 3px !important;
}
html:root body #callings #calling-panel .adv-media img.fig,
html:root body #callings #calling-panel .adv-media.base-fig img.cp-race {
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.85)) brightness(0.98) contrast(1.05) !important;
}

/* ============================================================================
   4. DESKTOP (>= 700px): IRON-PLATE SECONDARY CTAs, FRAMED CONTROLS, UPPERCASE PATHS
   ============================================================================ */
@media (min-width: 700px) {
  /* Sculpted Forged-Iron Plaque Secondary CTAs matching PLAY diamond bevel silhouette! */
  html:root body section#play.final .final-actions .final-sign#account-mount {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  html:root body #hero .hero-cta .btn-ghost,
  html:root body section#play.final #account-mount a#sign-in.final-signin {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: url("ui/ui-iron-plate.webp") center / 100% 100% no-repeat !important;
    color: #fff8e6 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.96) !important;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.88)) brightness(1.30) contrast(1.20) !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
  }
  html:root body #hero .hero-cta .btn-ghost {
    min-width: 246px !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 38px !important;
    font-size: 13px !important;
  }
  html:root body #play .final-copy .final-actions {
    gap: 18px !important;
  }
  html:root body #play .final-copy a.btn.btn-play,
  html:root body section#play.final #account-mount a#sign-in.final-signin {
    min-width: 214px !important;
    width: 214px !important;
    max-width: 214px !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 28px !important;
  }

  /* Replace Hero Promo pill with architectural left-brass plaque + clean chamfered scroll/pager chrome */
  html:root body #hero .cta-notes .promo {
    border-radius: 2px !important;
    border: 1px solid rgba(218, 180, 108, 0.24) !important;
    border-left: 2.5px solid #e8c77a !important;
    background: rgba(10, 8, 5, 0.82) !important;
    padding: 7px 18px !important;
  }
  html:root body #hero .hero-dots,
  html:root body #hero a.scroll-cue {
    border-radius: 3px !important;
    background: rgba(12, 9, 6, 0.86) !important;
    border: 1px solid rgba(218, 180, 108, 0.38) !important;
  }
  html:root body #hero a.scroll-cue {
    bottom: 20px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.72) !important;
  }
  html:root body #hero ul.hero-facts li {
    border-right: 1px solid rgba(232, 199, 122, 0.36) !important;
  }
  html:root body #hero ul.hero-facts li:last-child {
    border-right: 0 !important;
  }

  /* Slice 1: Chamfered obsidian chapter bar with brighter readable inactive labels */
  html:root body #world .sunder .s-marks {
    border-radius: 3px !important;
    background: rgba(12, 9, 6, 0.88) !important;
    border: 1px solid rgba(218, 180, 108, 0.36) !important;
  }
  html:root body #world .sunder .s-mark {
    border-radius: 2px !important;
    padding: 0 12px !important;
  }
  html:root body #world .sunder .s-mark::after {
    font-size: 12px !important;
    color: rgba(235, 221, 192, 0.84) !important;
  }
  html:root body #world .sunder .s-pause {
    border-radius: 3px !important;
    background: rgba(12, 9, 6, 0.88) !important;
    border: 1px solid rgba(218, 180, 108, 0.38) !important;
  }

  /* Slice 4: Uppercase Path buttons matching HUMAN/ELF/FEMALE/MALE + crisp combat role line */
  html:root body #callings #calling-panel {
    border-radius: 3px !important;
    border: 1px solid rgba(218, 180, 108, 0.28) !important;
    background: linear-gradient(180deg, rgba(24, 19, 13, 0.94) 0%, rgba(14, 11, 8, 0.98) 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(218, 180, 108, 0.10), 0 16px 36px rgba(0, 0, 0, 0.65) !important;
  }
  html:root body #callings .adv-row .adv-btn span {
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
  }
  html:root body #callings .adv-card {
    border-radius: 3px !important;
    border: 1px solid rgba(218, 180, 108, 0.24) !important;
  }
  html:root body #callings .adv-card p.role {
    display: block !important;
    margin: 8px 0 0 !important;
    font-family: var(--ui-sans) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: #e6c67c !important;
  }
}

/* ============================================================================
   5. DESKTOP (>= 1041px): 0px REALM SPLIT ALIGNMENT & EXACT 6-SLICE SECTION RHYTHM
   ============================================================================ */
@media (min-width: 1041px) {
  /* Slice 2 (y~1800..2700): Comfortable top bar clearance + div3 completely unclipped in Slice 2 */
  html:root body section#journey.band {
    padding: 64px 0 0 !important;
  }
  html:root body #journey .head {
    padding: 6px 0 10px !important;
    margin-bottom: 6px !important;
  }
  html:root body #game-band {
    margin-bottom: 10px !important;
  }
  html:root body #game-band,
  html:root body #journey-grid {
    gap: 16px !important;
  }
  html:root body #game-band figure.frame .clip,
  html:root body #journey-grid figure.frame .clip {
    aspect-ratio: 2.52 / 1 !important;
    min-height: 0 !important;
    max-height: 214px !important;
  }
  html:root body #game-band figure.frame figcaption,
  html:root body #journey-grid figure.frame figcaption {
    padding: 8px 14px 10px !important;
  }

  /* Slice 3 (y~2700..3600): Horizontal Realm tabs matching Calling tabs + 0px equal-height split + div4 in Slice 3! */
  html:root body section#realms.band {
    padding: 104px 0 16px !important;
  }
  html:root body section#realms .head {
    margin-bottom: 18px !important;
  }
  html:root body section#realms #realm-tabs {
    margin-bottom: 16px !important;
  }
  html:root body section#realms #realm-tabs > button.tab {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: 0 14px !important;
  }
  html:root body section#realms #realm-tabs > button.tab::before {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    margin: 0 !important;
  }
  html:root body section#realms #realm-stage {
    align-items: stretch !important;
    gap: 18px !important;
  }
  html:root body section#realms .realm-media,
  html:root body section#realms #realm-card {
    height: 416px !important;
    min-height: 416px !important;
    max-height: 416px !important;
    box-sizing: border-box !important;
  }
  html:root body section#realms .realm-media .realm-pics {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  html:root body section#realms #realm-card {
    padding: 26px 30px !important;
    justify-content: center !important;
    gap: 16px !important;
  }
  html:root body section#realms #realm-card ul {
    gap: 10px !important;
  }
  html:root body section#realms #realm-card ul li {
    padding-bottom: 9px !important;
  }

  /* Slice 4 & 5: Balanced Callings headroom (>3672px clear below sticky bar) + clean Slice 5 CTA keeping w1440 H <= 5396px */
  html:root body section#callings.band {
    padding: 118px 0 34px !important;
  }
  html:root body section#play.final {
    padding: 112px 0 88px !important;
  }
}

/* ============================================================================
   6. MOBILE (<= 699px): CLEAN CENTERED HERO, SOLID SUNDERING FADE, CALLINGS CLEARANCE
   ============================================================================ */
@media (max-width: 699px) {
  /* Top bar: generous breathing room between title and mini PLAY plaque */
  html:root body header#bar.bar a.bar-brand span {
    font-size: 12.5px !important;
    letter-spacing: 0.11em !important;
  }
  html:root body.scrolled:not(.at-cta) header#bar.bar a.btn.btn-play {
    height: 38px !important;
    min-height: 38px !important;
    min-width: 88px !important;
    padding: 0 14px !important;
  }
  html:root body header#bar.bar .menu-btn {
    border-radius: 3px !important;
    width: 42px !important;
    height: 42px !important;
  }
  html:root body header#bar.bar .bar-end {
    gap: 10px !important;
  }

  /* Slice 0 Hero: Kill oval smudge behind SUNDERED SPHERES; center-align copy axis + clear safe area */
  html:root body #hero .hero-shade {
    background: linear-gradient(180deg, rgba(8, 6, 4, 0.84) 0%, rgba(8, 6, 4, 0.42) 22%, rgba(8, 6, 4, 0.04) 38%, rgba(8, 6, 4, 0.12) 52%, rgba(10, 8, 5, 0.72) 66%, rgba(12, 9, 6, 0.92) 82%, #120e0a 100%) !important;
  }
  html:root body #hero .hero-logo::before {
    display: none !important;
  }
  html:root body #hero .hero-logo .wordmark {
    background: transparent !important;
    padding: 0 !important;
    margin: 2px auto 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.98), 0 0 22px rgba(0, 0, 0, 0.92) !important;
  }
  html:root body #hero .hero-copy {
    align-items: center !important;
    text-align: center !important;
  }
  html:root body section#hero.hero .hero-copy p#hero-eyebrow.eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 auto 8px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #ecd090 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95) !important;
  }
  html:root body section#hero.hero .hero-copy p#hero-eyebrow.eyebrow::before,
  html:root body section#hero.hero .hero-copy p#hero-eyebrow.eyebrow::after {
    content: "" !important;
    display: inline-block !important;
    width: 18px !important;
    height: 1px !important;
    background: rgba(232, 199, 122, 0.68) !important;
  }
  html:root body section#hero.hero .hero-copy h1#hero-title {
    font-size: 25px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    margin: 0 auto 14px !important;
    max-width: 16.5ch !important;
  }
  html:root body #hero .hero-dots {
    bottom: 24px !important;
    border-radius: 3px !important;
    border: 1px solid rgba(218, 180, 108, 0.34) !important;
    background: rgba(12, 9, 6, 0.88) !important;
  }
  html:root body #hero .motion-toggle {
    bottom: 20px !important;
    border-radius: 3px !important;
    border: 1px solid rgba(218, 180, 108, 0.38) !important;
    background: rgba(12, 9, 6, 0.88) !important;
  }

  /* Slice 1: Seamless solid dark fade all the way to bottom (zero horizontal seam at bottom:72px) */
  html:root body section#world.band .sunder::after {
    display: none !important;
    content: none !important;
  }
  html:root body section#world.band .sunder .s-copy {
    bottom: 0 !important;
    padding: 96px 18px 82px !important;
    z-index: 4 !important;
    background: linear-gradient(180deg, rgba(18, 14, 10, 0) 0%, rgba(18, 14, 10, 0.64) 38%, rgba(18, 14, 10, 0.95) 68%, #120e0a 84%, #120e0a 100%) !important;
  }
  html:root body section#world.band .sunder .s-marks,
  html:root body section#world.band .sunder .s-pause {
    z-index: 6 !important;
  }
  html:root body #world .sunder .s-marks,
  html:root body #world .sunder .s-mark,
  html:root body #world .sunder .s-pause {
    border-radius: 3px !important;
  }

  /* Slice 2: Single symmetrical < ◆ ◆ ◆ ◆ > carousel bar (diamond dots matching gold motif) */
  html:root body section#journey.band {
    padding: 52px 0 12px !important;
  }
  html:root body #journey .j-swipe {
    padding: 2px 16px 10px !important;
  }
  html:root body #journey .j-nav {
    border-radius: 3px !important;
    border: 1px solid rgba(218, 180, 108, 0.30) !important;
    background: rgba(14, 11, 8, 0.90) !important;
    padding: 4px 6px !important;
  }
  html:root body #journey .j-nav button {
    border-radius: 3px !important;
  }
  html:root body #journey .j-nav .j-dots > :is(button, i) {
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    min-height: 9px !important;
    border-radius: 1px !important;
    transform: rotate(45deg) !important;
  }
  html:root body #journey .j-nav .j-count {
    display: none !important;
  }

  /* Slice 3: Clear THE REALMS below sticky bar + single unified codex frame (matching .realm-media/.realm-pics 170px) */
  html:root body section#realms.band {
    padding: 156px 0 0 !important;
  }
  html:root body section#realms .head {
    margin-bottom: 8px !important;
  }
  html:root body section#realms #realm-tabs {
    margin-bottom: 8px !important;
  }
  html:root body section#realms #realm-tabs > button.tab {
    min-height: 44px !important;
    height: 44px !important;
    padding: 4px 10px !important;
  }
  html:root body section#realms #realm-stage {
    gap: 0 !important;
  }
  html:root body section#realms .realm-media,
  html:root body section#realms #realm-card {
    border-image: none !important;
    border: 1px solid rgba(218, 180, 108, 0.36) !important;
    box-shadow: none !important;
  }
  html:root body section#realms .realm-media {
    border-bottom: 0 !important;
    border-radius: 3px 3px 0 0 !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
    overflow: hidden !important;
  }
  html:root body section#realms .realm-media .realm-pics {
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
  }
  html:root body section#realms #realm-card {
    border-radius: 0 0 3px 3px !important;
    padding: 10px 16px !important;
  }
  html:root body section#realms #realm-card p.law {
    padding: 7px 12px !important;
    margin: 6px 0 !important;
  }
  html:root body section#realms #realm-card ul {
    gap: 5px !important;
  }
  html:root body section#realms #realm-card ul li {
    padding-bottom: 5px !important;
  }

  /* Slice 4: Clear FOUR CALLINGS below 58px sticky bar (~3445px) + unclipped #lock-note (<=4210px) */
  html:root body section#callings.band {
    padding: 60px 0 0 !important;
  }
  html:root body #callings #calling-row {
    gap: 6px !important;
    margin-bottom: 6px !important;
  }
  html:root body #callings #calling-row > button.calling {
    padding: 4px 8px 4px !important;
  }
  html:root body #callings #calling-panel .cp97 .v0 {
    gap: 5px !important;
    padding: 10px 12px !important;
  }
  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;
    border-radius: 3px !important;
    border: 1px solid rgba(218, 180, 108, 0.24) !important;
    background-color: #120e0a !important;
    background-image:
      radial-gradient(ellipse 38% 10% at 50% 93%, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0) 100%),
      radial-gradient(ellipse 62% 76% at 50% 44%, rgba(224, 178, 96, 0.24) 0%, rgba(16, 12, 9, 0.80) 64%, rgba(12, 9, 7, 0.98) 92%),
      url("art/band-skills-900.webp") !important;
    background-size: 100% 100%, 100% 100%, cover !important;
    background-position: center, center, 50% 34% !important;
  }
  html:root body #callings #calling-panel .cp97 .v0 .cp-fig > img,
  html:root body #callings #calling-panel .cp97 .cp-dfig > img {
    height: 122px !important;
    max-height: 122px !important;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.88)) !important;
  }
  html:root body #callings #calling-panel .cp97 .cp-chip {
    position: relative !important;
    justify-content: center !important;
  }
  html:root body #callings #calling-panel .cp97 .cp-chip .cp-lock {
    position: absolute !important;
    right: 9px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    color: #bfa674 !important;
  }
  /* Distinguish VIEW PATHS navigation drawer cleanly from HUMAN/MALE radio toggles */
  html:root body #callings #calling-panel .cp97 .v0 .cp-paths {
    border-radius: 3px !important;
    background: linear-gradient(90deg, rgba(44, 33, 18, 0.65) 0%, rgba(20, 15, 10, 0.92) 100%) !important;
    border: 1px solid rgba(218, 180, 108, 0.36) !important;
    box-shadow: none !important;
  }
  html:root body section#callings .lock-note#lock-note {
    padding: 6px 10px !important;
    font-size: 12px !important;
    margin-top: 5px !important;
  }

  /* Slice 5: Matching Forged-Iron SIGN IN plaque + clean div5 bar hide + strict 6-slice footer */
  html:root body section#play.final {
    padding: 36px 16px 14px !important;
  }
  html:root body section#play.final .final-actions .final-sign#account-mount {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
  }
  html:root body #play .final-copy a.btn.btn-play,
  html:root body section#play.final #account-mount a#sign-in.final-signin {
    width: 246px !important;
    min-width: 246px !important;
    max-width: 246px !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 24px !important;
    margin: 0 auto !important;
  }
  html:root body section#play.final #account-mount a#sign-in.final-signin {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: url("ui/ui-iron-plate.webp") center / 100% 100% no-repeat !important;
    color: #fff8e6 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.96) !important;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.88)) brightness(1.30) contrast(1.20) !important;
  }
  html:root body footer#account.foot {
    padding-top: 8px !important;
    padding-bottom: 6px !important;
  }
  html:root body footer#account.foot .foot-grid {
    padding-top: 14px !important;
    padding-bottom: 10px !important;
  }
  html:root body footer#account.foot .foot-notes .foot-links {
    row-gap: 8px !important;
  }
  html:root body footer#account.foot .foot-legal {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  html:root body footer#account.foot .foot-meta {
    padding-top: 4px !important;
    padding-bottom: 10px !important;
  }
}
