/* r218.css (#1014 / #1064) — NEW-APPROACH Full-Page Polish:
   - Restores dominant sculpted gold PLAY plaque vs sleek dark-obsidian + brass-hairline ghost SEE THE WORLD & SIGN IN buttons.
   - Restores left-aligned phone Hero (3-line H1 + smoke pill over deeper lower scrim + two-tone wordmark + sky halo + clean bar gap).
   - De-boxes Hero Promo, Slice 3 BORN OF:, Slice 4 nested containers, and Slice 4 lock-note; marks interactive skill pills with ▶.
   - Removes desktop Slice 1 dark top band & redundant pause button; adds desktop tapering filigree hairlines; aligns 384px Realms panel;
     smooths mobile Realm bottom feather & 2x2 icon axes; unifies footer seam & link hierarchy.
   Loaded after r217.css. Strictly honors EVERY owner lock (copy, R08, R09, R31, R32, 0 step badges, spheres.html links). */

/* ============================================================================
   1. SHARED / GLOBAL: CHAPTER DIVIDERS, DE-BOXED REALM LAW, PLAYABLE SKILL PILLS
   ============================================================================ */
/* Crisp borderless antique-brass lock + clean inline link underlines */


/* Remove 4-sided <input>-like box around BORN OF: — replace with clean engraved left brass accent rule */
html:root body section#realms #realm-card p.law {
  border: 0 !important;
  border-left: 2.5px solid color-mix(in srgb, var(--tint, #e2c278) 38%, #e8c77a) !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, rgba(56, 42, 20, 0.28) 0%, rgba(20, 15, 10, 0) 100%) !important;
  padding: 3px 0 3px 14px !important;
}

/* Subtly dim unselected locked Callings tabs so FIGHTER / PRIEST playable options lead clearly */
html:root body section#callings #calling-row > button.calling.locked[aria-selected="false"] {
  opacity: 0.84 !important;
}
html:root body section#callings #calling-row > button.calling.locked[aria-selected="false"] img {
  filter: saturate(0.76) brightness(0.88) !important;
}
html:root body section#callings #calling-row > button.calling[aria-selected="true"] {
  box-shadow: inset 0 1px 0 rgba(255, 242, 198, 0.36), 0 0 10px rgba(232, 199, 122, 0.16) !important;
}

/* Remove redundant box around bottom lock-note (clean understated brass hairline row) */
html:root body section#callings .lock-note#lock-note {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(218, 180, 108, 0.18) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Remove redundant pause button on Chapter carousel (Slice 0 already carries main ambient pause) */
html:root body section#world.band .sunder .s-pause {
  display: none !important;
}

/* Subtle Slice 2 bottom fade margin so sunlit golden-hour landscapes stay 92% crisp artwork */
html:root body #journey #game-band figure.frame .clip::after,
html:root body #journey #journey-grid figure.frame .clip::after {
  height: 18px !important;
}

/* Uniform warm obsidian footer + muted Back to top */
html:root body footer#account.foot {
  background: #0f0b08 !important;
}
html:root body footer#account.foot a[href="#top"] {
  color: #9e917b !important;
}
html:root body footer#account.foot a[href="#top"]:hover {
  color: #e8c77a !important;
}

/* ============================================================================
   2. DESKTOP (>= 700px): DOMINANT PLAY vs SLEEK GHOST SECONDARY, CLEAN GRID & DIVS
   ============================================================================ */
@media (min-width: 700px) {
  /* Tapering 1px filigree hairlines anchoring chapter dividers to 1160px grid width */
  html:root body .chapter-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    width: min(1160px, 100% - 48px) !important;
    margin: 2px auto 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html:root body .chapter-divider img {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: min(440px, 56vw) !important;
  }
  html:root body .chapter-divider::before,
  html:root body .chapter-divider::after {
    content: "" !important;
    flex: 1 1 0 !important;
    height: 1px !important;
  }
  html:root body .chapter-divider::before {
    background: linear-gradient(90deg, rgba(218, 180, 108, 0) 0%, rgba(218, 180, 108, 0.36) 100%) !important;
  }
  html:root body .chapter-divider::after {
    background: linear-gradient(90deg, rgba(218, 180, 108, 0.36) 0%, rgba(218, 180, 108, 0) 100%) !important;
  }

  /* Slice 0 Desktop Hero: Dominant PLAY plaque + sleek obsidian-brass ghost SEE THE WORLD */
  html:root body #hero .hero-shade {
    background:
      radial-gradient(ellipse 68% 58% at 24% 68%, rgba(10, 8, 5, 0.72) 0%, rgba(10, 8, 5, 0.30) 64%, rgba(10, 8, 5, 0) 100%),
      linear-gradient(180deg, rgba(12, 9, 6, 0.56) 0%, rgba(12, 9, 6, 0.08) 26%, rgba(12, 9, 6, 0.14) 56%, rgba(12, 9, 6, 0.80) 84%, #120e0a 100%) !important;
  }
  html:root body #hero .hero-cta a.btn.btn-play {
    min-width: 242px !important;
    width: 242px !important;
    height: 60px !important;
    min-height: 60px !important;
  }
  html:root body #hero .hero-cta .btn-ghost {
    min-width: 214px !important;
    width: 214px !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 22px !important;
    font-size: 12.5px !important;
    letter-spacing: 0.13em !important;
    border-radius: 5px !important;
    background: linear-gradient(180deg, rgba(26, 20, 13, 0.86) 0%, rgba(11, 8, 5, 0.94) 100%) !important;
    border: 1px solid rgba(218, 180, 108, 0.54) !important;
    box-shadow: inset 0 1px 0 rgba(255, 238, 190, 0.16), 0 8px 20px rgba(0, 0, 0, 0.74) !important;
    filter: none !important;
    color: #f6ead0 !important;
  }
  html:root body #hero .cta-notes .promo {
    border: 0 !important;
    border-left: 2px solid #e8c77a !important;
    border-radius: 0 !important;
    background: linear-gradient(90deg, rgba(12, 9, 6, 0.80) 0%, rgba(12, 9, 6, 0.44) 78%, rgba(12, 9, 6, 0) 100%) !important;
    padding: 5px 16px !important;
    max-width: 472px !important;
  }
  html:root body #hero ul.hero-facts {
    gap: 0 !important;
  }
  html:root body #hero ul.hero-facts li {
    padding: 0 26px !important;
    border-right: 1px solid rgba(232, 199, 122, 0.36) !important;
  }
  html:root body #hero ul.hero-facts li:first-child {
    padding-left: 0 !important;
  }
  html:root body #hero ul.hero-facts li:last-child {
    padding-right: 0 !important;
    border-right: 0 !important;
  }
  html:root body #hero .hero-dots {
    border-radius: 999px !important;
    padding: 8px 14px !important;
  }
  html:root body #hero a.scroll-cue {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    bottom: 24px !important;
    background: rgba(10, 8, 5, 0.90) !important;
  }

  /* Slice 1: Remove hard solid top band below navbar — seamless fade from navbar dark into mountains */
  html:root body #world .sunder::before {
    height: 44px !important;
    background: linear-gradient(180deg, rgba(15, 11, 8, 0.82) 0%, rgba(15, 11, 8, 0) 100%) !important;
  }
  html:root body section#world.band .sunder .s-marks {
    right: 28px !important;
  }

  /* Slice 4: De-box inner right-column Path card & separate Base vs Leads-to cleanly */
  html:root body #callings #calling-panel .calling-base {
    padding-right: 12px !important;
  }
  html:root body #callings #calling-panel .calling-base > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  html:root body #callings #calling-panel .adv {
    border: 0 !important;
    border-left: 1px solid rgba(218, 180, 108, 0.18) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 2px 0 0 28px !important;
  }
  html:root body #callings #calling-panel .adv-card {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 0 0 !important;
    align-items: flex-start !important;
  }
  html:root body #callings #calling-panel .adv-card > div {
    padding-top: 10px !important;
  }

  /* Slice 5 Desktop: Dominant gold PLAY plaque vs sleek obsidian-brass SIGN IN + smooth footer fade */
  html:root body section#play.final .final-copy a.btn.btn-play {
    min-width: 236px !important;
    width: 236px !important;
    max-width: 236px !important;
    height: 58px !important;
    min-height: 58px !important;
  }
  html:root body section#play.final #account-mount a#sign-in.final-signin {
    min-width: 204px !important;
    width: 204px !important;
    max-width: 204px !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 22px !important;
    border-radius: 5px !important;
    background: linear-gradient(180deg, rgba(24, 18, 12, 0.88) 0%, rgba(10, 8, 5, 0.95) 100%) !important;
    border: 1px solid rgba(218, 180, 108, 0.54) !important;
    box-shadow: inset 0 1px 0 rgba(255, 238, 190, 0.16), 0 8px 20px rgba(0, 0, 0, 0.72) !important;
    filter: none !important;
    color: #f6ead0 !important;
  }
  html:root body section#play.final::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 112px !important;
    background: linear-gradient(180deg, rgba(15, 11, 8, 0) 0%, rgba(15, 11, 8, 0.78) 65%, #0f0b08 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }
}

/* ============================================================================
   3. DESKTOP (>= 1041px): 6-SLICE RHYTHM, BREATHING DIVIDER, ZERO REALMS VOID
   ============================================================================ */
@media (min-width: 1041px) {
  html:root body section#journey.band {
    padding: 64px 0 18px !important;
  }
  html:root body #game-band figure.frame .clip,
  html:root body #journey-grid figure.frame .clip {
    aspect-ratio: 2.38 / 1 !important;
    min-height: 0 !important;
    max-height: 214px !important;
  }
  html:root body section#realms.band {
    padding: 108px 0 22px !important;
  }
  html:root body section#realms #realm-tabs {
    max-width: 1020px !important;
    margin: 0 auto 18px !important;
  }
  html:root body section#realms #realm-tabs > button.tab {
    justify-content: center !important;
    height: 60px !important;
    min-height: 60px !important;
  }
  html:root body section#realms #realm-tabs > button.tab::before {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
  }
  html:root body section#realms .realm-media,
  html:root body section#realms #realm-card {
    height: 396px !important;
    min-height: 396px !important;
    max-height: 396px !important;
  }
  html:root body section#realms #realm-card {
    padding: 24px 30px !important;
    justify-content: center !important;
    gap: 14px !important;
  }
  html:root body section#callings.band {
    padding: 128px 0 36px !important;
  }
  html:root body section#play.final {
    padding: 108px 0 88px !important;
  }
}

/* ============================================================================
   4. MOBILE (<= 699px): TARGET-PHONE HERO MATCH (LEFT-ALIGNED 3-LINE H1 + HALO),
      SPACIOUS STICKY BAR, REALM FEATHER, PLAYABLE SKILL PILLS, CLEAN FOOTER
   ============================================================================ */
@media (max-width: 699px) {
  /* Sticky header: generous 24px air between two-tone title and mini PLAY plaque */
  html:root body header#bar.bar a.bar-brand img {
    width: 32px !important;
    height: 32px !important;
  }
  html:root body header#bar.bar a.bar-brand span {
    font-size: 11.5px !important;
    letter-spacing: 0.08em !important;
  }
  html:root body.scrolled:not(.at-cta) header#bar.bar a.btn.btn-play {
    height: 40px !important;
    min-height: 40px !important;
    min-width: 82px !important;
    padding: 0 12px !important;
  }
  html:root body header#bar.bar .menu-btn {
    border-radius: 5px !important;
    width: 40px !important;
    height: 40px !important;
  }

  /* Slice 0 Hero: Soft upper sky halo + two-tone SUNDERED (ivory) / SPHERES (gold) + left-aligned 3-line H1 */
  html:root body #hero .hero-shade {
    background:
      radial-gradient(ellipse 68% 22% at 50% 18%, rgba(8, 6, 4, 0.54) 0%, rgba(8, 6, 4, 0) 100%),
      linear-gradient(180deg, rgba(8, 6, 4, 0.72) 0%, rgba(8, 6, 4, 0.28) 24%, rgba(8, 6, 4, 0.04) 40%, rgba(8, 6, 4, 0.24) 56%, rgba(10, 8, 5, 0.84) 70%, rgba(12, 9, 6, 0.96) 84%, #120e0a 100%) !important;
  }
  html:root body #hero .hero-logo::before {
    display: block !important;
    width: 340px !important;
    height: 210px !important;
    top: 44% !important;
    background: radial-gradient(ellipse 58% 54% at 50% 48%, rgba(8, 6, 4, 0.72) 0%, rgba(8, 6, 4, 0.34) 52%, rgba(8, 6, 4, 0) 82%) !important;
  }
  html:root body #hero .hero-logo .wordmark {
    color: #fbf2dd !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.98), 0 0 24px rgba(0, 0, 0, 0.94) !important;
  }
  html:root body #hero .hero-logo .wordmark span {
    color: #e8c77a !important;
  }
  html:root body #hero .hero-copy {
    align-items: flex-start !important;
    text-align: left !important;
  }
  html:root body section#hero.hero .hero-copy p#hero-eyebrow.eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 0 8px 0 !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    background: rgba(12, 9, 6, 0.76) !important;
    border: 1px solid rgba(232, 199, 122, 0.28) !important;
    color: #ecd090 !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 {
    display: none !important;
    content: none !important;
  }
  html:root body section#hero.hero .hero-copy h1#hero-title {
    font-size: 25.5px !important;
    line-height: 1.13 !important;
    text-align: left !important;
    margin: 0 0 14px 0 !important;
    max-width: 100% !important;
  }
  html:root body section#hero.hero .hero-copy h1#hero-title span:first-child,
  html:root body section#hero.hero .hero-copy h1#hero-title span:last-child {
    color: #f6ebd1 !important;
  }
  html:root body #hero .hero-cta {
    width: 100% !important;
    align-items: center !important;
  }
  html:root body #hero .hero-cta a.btn.btn-play {
    width: min(304px, 84vw) !important;
    min-width: 0 !important;
    max-width: 304px !important;
    margin: 0 auto !important;
  }
  html:root body #hero .hero-dots {
    border-radius: 999px !important;
    padding: 7px 14px !important;
  }
  html:root body #hero .motion-toggle {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
  }

  /* Slice 1 Mobile: Fit chapter switcher neatly to its 4 Roman numerals (zero empty trailing box) */
  html:root body section#world.band .sunder .s-marks {
    left: 18px !important;
    right: auto !important;
    width: auto !important;
  }

  /* Slice 2 Mobile: Remove heavy outer box around < ◆ ◇ ◇ ◇ > carousel chrome */
  html:root body #journey .j-nav {
    border: 0 !important;
    background: transparent !important;
    padding: 4px 0 !important;
  }
  html:root body #journey .j-nav button.j-prev,
  html:root body #journey .j-nav button.j-next {
    border: 1px solid rgba(218, 180, 108, 0.34) !important;
    background: rgba(14, 11, 8, 0.88) !important;
    border-radius: 4px !important;
  }

  /* Slice 3 Mobile: Uniform left-aligned 2x2 Realm orbs + 36px bottom landscape feather */
  html:root body section#realms.band {
    padding: 162px 0 0 !important;
  }
  html:root body section#callings.band {
    padding: 66px 0 0 !important;
  }
  html:root body section#realms #realm-tabs > button.tab:not(#realm-tab-thalenyr) {
    justify-content: flex-start !important;
    padding-left: 22px !important;
    gap: 12px !important;
  }
  html:root body section#realms .realm-media {
    position: relative !important;
  }
  html:root body section#realms .realm-media::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 36px !important;
    background: linear-gradient(180deg, rgba(22, 17, 12, 0) 0%, #16110c 100%) !important;
    pointer-events: none !important;
    z-index: 3 !important;
  }

  /* Slice 4 Mobile: Rounded ▶ skill pills, clean segmented BODY toggle, inline Dwarf/Halfling locks, dot-free VIEW PATHS */

  html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type {
    gap: 0 !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type .cp-tlabel {
    margin-bottom: 5px !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type button.cp-chip:first-of-type {
    border-radius: 3px 0 0 3px !important;
    border-right: 0 !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-toggle .cp-trow:last-of-type button.cp-chip:last-of-type {
    border-radius: 0 3px 3px 0 !important;
  }
  html:root body #callings #calling-panel .cp97 .cp-chip .cp-lock {
    position: static !important;
    transform: none !important;
    margin-left: 6px !important;
    display: inline-flex !important;
  }
  html:root body #callings #calling-panel .cp97 .v0 .cp-paths {
    border: 0 !important;
    border-top: 1px solid rgba(218, 180, 108, 0.24) !important;
    border-radius: 3px !important;
    background: linear-gradient(90deg, rgba(44, 33, 18, 0.42) 0%, rgba(20, 15, 10, 0.72) 100%) !important;
    padding: 9px 12px !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-paths .cp-pwrap .cp-pn {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 2px 6px !important;
    max-width: none !important;
    width: 100% !important;
    margin-top: 3px !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-paths .cp-pwrap .cp-pn .cp-pitem {
    display: inline-flex !important;
    align-items: center !important;
    color: #d6c8ae !important;
  }
  html:root body section#callings #calling-panel .cp97 .v0 .cp-paths .cp-pwrap .cp-pn .cp-pitem:not(:last-child)::after {
    content: "," !important;
    color: #9e8f75 !important;
  }

  /* Slice 5 Mobile: Dominant gold PLAY vs sleek obsidian-brass SIGN IN + smooth footer single hairline */
  html:root body section#play.final {
    padding: 34px 16px 18px !important;
  }
  html:root body #play .final-copy .final-actions {
    gap: 12px !important;
  }
  html:root body #play .final-copy a.btn.btn-play {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: 54px !important;
    min-height: 54px !important;
  }
  html:root body section#play.final #account-mount a#sign-in.final-signin {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 20px !important;
    border-radius: 5px !important;
    background: linear-gradient(180deg, rgba(24, 18, 12, 0.88) 0%, rgba(10, 8, 5, 0.95) 100%) !important;
    border: 1px solid rgba(218, 180, 108, 0.52) !important;
    box-shadow: inset 0 1px 0 rgba(255, 238, 190, 0.14), 0 6px 16px rgba(0, 0, 0, 0.70) !important;
    filter: none !important;
    color: #f6ead0 !important;
  }
  html:root body section#play.final::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 76px !important;
    background: linear-gradient(180deg, rgba(15, 11, 8, 0) 0%, #0f0b08 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }
  html:root body footer#account.foot .foot-notes .foot-links a:not(.foot-play-link) {
    color: #ddd2be !important;
  }
  html:root body footer#account.foot .foot-legal {
    border-bottom: 0 !important;
  }
}
