/* r257 Wave 2 AAA Upgrade — SUNDERED SPHERES (v3 3D-First Spec Lock 2026-11-29 18:10 ET)
   - Live animated rotatable 3D Character Viewport (Three.js GLTFLoader + OrbitControls + AnimationMixer)
   - ZERO 2D multi-panel turnaround sheets (class_sheet_*.jpg) in player UI
   - Lore-sourced Book-of-Life Path Profile & Primary Skills (NO invented numeric bars, NO Awakenings on Landing Page)
   - Clean Path Details & Gameplay Trailer Pop-Up Modal (Desktop + Mobile)
   - Four Playable Ancestries (#peoples) + Mobile Hero emblem framing fix */

/* ---- 0. Prevent duplicate view-transition-name console error from bundle-r100.css ---- */
html:root:root:root:root body #calling-panel.vt-scope .adv-card > *,
html:root:root:root:root body .adv-card.vt-scope > * {
  view-transition-name: none !important;
}

/* ---- 1. Mobile Hero Emblem Framing Fix (zero top clipping, dead-center) ---- */
@media (max-width: 699px) {
  html:root:root:root:root body #hero .hero-logo {
    top: max(22px, env(safe-area-inset-top, 22px)) !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    gap: 8px !important;
  }
  html:root:root:root:root body #hero .hero-logo .emblem {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto !important;
  }
  html:root:root:root:root body #hero .hero-logo .emblem img,
  html:root:root:root:root body #hero .hero-logo .emblem canvas {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
  }
}

/* ---- 2. Desktop Callings & 14-Path 3D Codex Layout (>= 700px ONLY so mobile .cp97 slider stays pristine) ---- */
@media (min-width: 700px) {
  html:root:root:root:root body #callings#callings #calling-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    padding: 24px !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    background: linear-gradient(180deg, rgba(22, 17, 13, 0.94) 0%, rgba(14, 11, 9, 0.97) 100%) !important;
    border: 1px solid rgba(218, 178, 102, 0.28) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(246, 217, 149, 0.14) !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base {
    display: grid !important;
    grid-template-columns: 196px minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
    padding: 0 0 22px 0 !important;
    margin: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(218, 178, 102, 0.22) !important;
    opacity: 1 !important;
    filter: none !important;
    overflow: visible !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base.locked,
  html:root:root:root:root body #callings#callings #calling-panel .calling-base.locked * {
    filter: none !important;
    opacity: 1 !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base .adv-media.base-fig {
    width: 196px !important;
    max-width: 196px !important;
    height: 236px !important;
    min-height: 236px !important;
    max-height: 236px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(218, 178, 102, 0.28) !important;
    background: radial-gradient(ellipse at 50% 35%, rgba(62, 46, 28, 0.52), rgba(14, 11, 9, 0.92)) !important;
    overflow: hidden !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base .adv-media.base-fig img.fig,
  html:root:root:root:root body #callings#callings #calling-panel .calling-base .adv-media.base-fig img.cp-race {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: 50% 25% !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-width: 0 !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base h3 {
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    color: #f6e7c5 !important;
    letter-spacing: 0.06em !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base .lock-line {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: fit-content !important;
    padding: 5px 12px !important;
    border-radius: 999px !important;
    background: rgba(94, 68, 30, 0.42) !important;
    border: 1px solid rgba(232, 194, 112, 0.42) !important;
    color: #f3dba0 !important;
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base .lock-line svg {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
    color: #e8be66 !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base .open-line {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    padding: 4px 11px !important;
    border-radius: 999px !important;
    background: rgba(46, 98, 62, 0.32) !important;
    border: 1px solid rgba(126, 214, 150, 0.42) !important;
    color: #a9efb8 !important;
    font-size: 12.5px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base dl {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 12px !important;
    margin: 0 !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base dl dd {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base .cp-toggle.cp-desk {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px 28px !important;
    margin-top: 2px !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base .cp-trow {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base .cp-tlabel {
    width: auto !important;
    margin: 0 4px 0 0 !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .calling-base .cp-chip {
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: 82px !important;
    padding: 6px 14px !important;
    min-height: 40px !important;
  }

  /* Full-Width 14-Path Selector & 3D Showcase Stage */
  html:root:root:root:root body #callings#callings #calling-panel .adv.adv-w2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .adv-row.adv-row-w2 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .adv-btn.adv-btn-w2 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 58px !important;
    padding: 7px 12px !important;
    border-radius: 10px !important;
    background: rgba(25, 20, 15, 0.88) !important;
    border: 1px solid rgba(218, 178, 102, 0.24) !important;
    color: #efe2c4 !important;
    text-align: left !important;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .adv-btn.adv-btn-w2:hover {
    border-color: rgba(242, 206, 130, 0.62) !important;
    background: rgba(42, 32, 21, 0.94) !important;
    transform: translateY(-1px) !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .adv-btn.adv-btn-w2[aria-selected="true"] {
    border-color: var(--ctint, #e8c06c) !important;
    background: linear-gradient(135deg, rgba(58, 43, 24, 0.92), rgba(28, 21, 15, 0.96)) !important;
    box-shadow: 0 0 0 1px rgba(246, 217, 149, 0.22), 0 8px 22px rgba(0, 0, 0, 0.4) !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .adv-btn-w2 img.adv-thumb {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1.5px solid rgba(232, 196, 120, 0.48) !important;
    background: #14100c !important;
  }

  html:root:root:root:root body #callings#callings #calling-panel .adv-btn-w2 .adv-btn-name {
    font-family: "Cinzel", Georgia, serif !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    color: #f7ebd0 !important;
    white-space: nowrap !important;
  }

  /* 2-Column 3D-First Path Showcase Card: Live 3D Model (Left 1.15fr) + Lore/Skills/Trailer (Right 1fr) */
  html:root:root:root:root body #callings#callings #calling-panel .adv-card.adv-card-w2 {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: stretch !important;
    padding: 20px !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    border-radius: 12px !important;
    background: linear-gradient(160deg, rgba(20, 16, 13, 0.96), rgba(11, 9, 8, 0.98)) !important;
    border: 1px solid rgba(218, 178, 102, 0.3) !important;
    box-shadow: inset 0 1px 0 rgba(255, 232, 180, 0.1) !important;
  }
}

/* ---- 3. Live Animated 3D Character Viewport (.p3d-stage) + Raised 3D Metallic Medallions ---- */
html:root:root:root:root body #callings button.calling img,
html:root:root:root:root body #callings .adv-btn-w2 img.adv-thumb,
html:root:root:root:root body #callings .cp-pthumb {
  border-radius: 50% !important;
  border: 2px solid #d9b15f !important;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.72),
    0 1px 0 rgba(255, 240, 196, 0.55) inset,
    0 -2px 5px rgba(0, 0, 0, 0.65) inset,
    0 0 12px rgba(218, 178, 102, 0.22) !important;
  background: radial-gradient(circle at 32% 26%, #4a3924 0%, #1c150e 68%, #0d0a07 100%) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

html:root:root:root:root body #callings button.calling[aria-selected="true"] img,
html:root:root:root:root body #callings .adv-btn-w2[aria-selected="true"] img.adv-thumb,
html:root:root:root:root body #callings .cp-pchip[aria-selected="true"] .cp-pthumb {
  border-color: #ffe092 !important;
  transform: scale(1.06) !important;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.78),
    0 1px 0 rgba(255, 246, 210, 0.75) inset,
    0 0 16px rgba(242, 198, 104, 0.52) !important;
}

.p3d-stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.p3d-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.p3d-skill-toast {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  padding: 6px 16px;
  border-radius: 0;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%); /* forged plaque, not a pill */
  background: linear-gradient(135deg, rgba(196, 146, 56, 0.94), rgba(114, 78, 24, 0.96));
  border: 1px solid rgba(255, 238, 188, 0.72);
  color: #140f09;
  font-family: "Cinzel", Georgia, serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.p3d-skill-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.p3d-viewport {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(232, 194, 118, 0.42);
  background:
    radial-gradient(ellipse 68% 58% at 50% 42%, rgba(126, 98, 66, 0.62) 0%, rgba(44, 34, 25, 0.92) 56%, #16120e 100%);
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.5), 0 16px 38px rgba(0, 0, 0, 0.5);
  cursor: grab;
}

.p3d-viewport:active {
  cursor: grabbing;
}

.p3d-canvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.p3d-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 45%;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1;
  transition: opacity 0.35s ease;
}

.p3d-viewport.p3d-ready .p3d-fallback {
  opacity: 0;
  pointer-events: none;
}

.p3d-hud-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.p3d-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.84);
  border: 1px solid rgba(235, 198, 118, 0.46);
  color: #f6e4bc;
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.p3d-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72e69c;
  box-shadow: 0 0 8px rgba(114, 230, 156, 0.85);
}

.p3d-rig-note {
  font-size: 11.5px;
  color: #e4d5b2;
  background: rgba(12, 10, 8, 0.76);
  border: 1px solid rgba(218, 178, 102, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
}

.p3d-anim-bar {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---- 4. Path Dossier (Right Column: Lore Profile, Primary Skills, Trailer CTA — NO Awakenings!) ---- */
html:root:root:root:root body #callings#callings .adv-info-w2 {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.adv-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html:root:root:root:root body #callings#callings .adv-info-w2 h4 {
  margin: 0 !important;
  font-family: "Cinzel", Georgia, serif !important;
  font-size: 26px !important;
  line-height: 1.12 !important;
  color: #fbf0d5 !important;
  letter-spacing: 0.04em !important;
}

html:root:root:root:root body #callings#callings .adv-info-w2 p.about {
  margin: 0 !important;
  font-size: 15.5px !important;
  line-height: 1.52 !important;
  color: #f0e3c6 !important;
}

.ps-box {
  padding: 13px 15px;
  border-radius: 10px;
  background: rgba(255, 240, 200, 0.04);
  border: 1px solid rgba(218, 178, 102, 0.2);
}

html:root:root:root:root body #callings#callings .ps-box-label {
  margin: 0 0 9px 0 !important;
  font-family: "Cinzel", Georgia, serif !important;
  font-size: 12px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #dfb96e !important;
}

.ps-lore-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ps-lore-row {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid rgba(218, 178, 102, 0.1);
  padding-bottom: 6px;
}

.ps-lore-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ps-lore-row dt {
  font-family: "Cinzel", Georgia, serif;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6b676;
}

.ps-lore-row dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.4;
  color: #f3e6ca;
}

.ps-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

html:root:root:root:root body #callings#callings .ps-skill-desc {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.48 !important;
  color: #e8dab9 !important;
}

.btn-trailer-modal {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid rgba(246, 212, 134, 0.65);
  background: linear-gradient(180deg, rgba(186, 138, 56, 0.92), rgba(126, 86, 28, 0.95));
  color: #140f09;
  font-family: "Cinzel", Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 242, 200, 0.45);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn-trailer-modal:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-trailer-desktop {
  margin-top: auto;
  width: 100%;
}

/* ---- 5. Path Details & Gameplay Trailer Pop-Up Modal ---- */
.path-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s 0.22s;
}

.path-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, visibility 0s;
}

.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 4, 0.88);
  backdrop-filter: blur(8px);
}

.pm-dialog {
  position: relative;
  z-index: 2;
  width: min(760px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a140f 0%, #100c09 100%);
  border: 1px solid rgba(232, 194, 114, 0.48);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.82);
}

.pm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(232, 194, 114, 0.45);
  background: rgba(16, 12, 9, 0.92);
  color: #f6e7c5;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pm-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 48px;
}

.pm-head .adv-state {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.pm-title {
  margin: 4px 0 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: 24px;
  color: #fbf0d5;
}

.pm-video-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(226, 188, 112, 0.36);
  background: radial-gradient(ellipse at 50% 45%, #261d14 0%, #0e0b08 100%);
}

.pm-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-video-coming {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pm-video-poster-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.70) contrast(1.06);
  transform: scale(1.02);
}

.pm-video-scrim {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 50%, rgba(12, 9, 6, 0.25), rgba(8, 6, 4, 0.72));
}

.pm-video-sigil {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  opacity: 0.82;
  border: 1.5px solid rgba(235, 198, 118, 0.45);
}

.pm-play-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  padding-left: 3px;
  color: #161009;
  background: linear-gradient(145deg, #f6d98f, #c28e38);
  box-shadow: 0 0 24px rgba(242, 198, 104, 0.42);
}

.pm-video-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 18px;
  color: #faf0d7;
}

.pm-video-sub {
  margin: 0;
  font-size: 13.5px;
  color: #dfd0ae;
  max-width: 44ch;
}

.pm-lore {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.52;
  color: #f0e3c6;
}

.pm-stats-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pm-stat-item {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 240, 200, 0.04);
  border: 1px solid rgba(218, 178, 102, 0.18);
}

.pm-stat-item dt {
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d6b676;
  margin-bottom: 4px;
}

.pm-stat-item dd {
  margin: 0;
  font-size: 14px;
  color: #f3e6ca;
  line-height: 1.4;
}

.pm-skills-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 240, 200, 0.035);
  border: 1px solid rgba(218, 178, 102, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pm-skill-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pm-skill-row strong {
  font-family: "Cinzel", Georgia, serif;
  font-size: 13.5px;
  color: #f7e6c0;
}

.pm-skill-row span {
  font-size: 14px;
  color: #dfd0ae;
  line-height: 1.42;
}

/* ---- 6. Four Playable Ancestries Section (#peoples) ---- */
.band.peoples {
  padding: 72px 0;
  position: relative;
}

.peoples-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.people-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 20, 15, 0.94), rgba(14, 11, 9, 0.98));
  border: 1px solid rgba(218, 178, 102, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.people-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 204, 126, 0.62);
}

.people-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: radial-gradient(ellipse 72% 58% at 50% 38%, rgba(89, 68, 46, 0.65) 0%, rgba(28, 21, 15, 0.94) 62%, #0e0b08 100%);
  border-bottom: 1px solid rgba(218, 178, 102, 0.2);
}

.people-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 48%;
  padding: 6px 6px 12px;
  box-sizing: border-box;
  display: block;
}

.people-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.people-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.people-top h3 {
  margin: 0 !important;
  font-family: "Cinzel", Georgia, serif !important;
  font-size: 20px !important;
  color: #f8ebd0 !important;
}

.people-badge {
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  text-decoration: none;
}

.people-badge.open {
  background: rgba(46, 98, 62, 0.34);
  border: 1px solid rgba(126, 214, 150, 0.42);
  color: #a9efb8;
}

.people-badge.lock {
  background: rgba(98, 70, 28, 0.44);
  border: 1px solid rgba(232, 194, 112, 0.46);
  color: #f3dba0;
}

html:root:root:root:root body .people-note {
  margin: 0 !important;
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #d7b670 !important;
}

html:root:root:root:root body .people-desc {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.48 !important;
  color: #e4d5b4 !important;
  flex: 1 1 auto;
}

.people-try {
  margin-top: 6px;
  appearance: none;
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(218, 178, 102, 0.36);
  background: rgba(218, 178, 102, 0.09);
  color: #f4e2bc;
  font-family: "Cinzel", Georgia, serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.people-try:hover {
  background: rgba(218, 178, 102, 0.22);
  border-color: rgba(242, 206, 130, 0.68);
}

/* ---- 7. Responsive Breakpoints (Tablet & Mobile 3D-First) ---- */
@media (max-width: 1080px) {
  html:root:root:root:root body #callings#callings #calling-panel .adv-card.adv-card-w2 {
    grid-template-columns: 1fr !important;
  }
  .peoples-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .p3d-rig-note {
    display: none !important;
  }
  .pm-video-scrim {
    gap: 5px !important;
    padding: 10px 14px !important;
  }
  .pm-video-sigil {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
  }
  .pm-play-orb {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    font-size: 15px !important;
  }
  .pm-video-title {
    font-size: 15px !important;
  }
  .pm-video-sub {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
  .pm-lore,
  .pm-stat-item dd,
  .pm-skill-row span {
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #f8eed8 !important;
  }
  .pm-stat-item dt {
    font-size: 12.5px !important;
    color: #e6c682 !important;
  }
  .cp-path-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 12px;
  }
  .cp-pchip {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 6px 10px;
    border-radius: 9px;
    background: rgba(24, 19, 14, 0.9);
    border: 1px solid rgba(218, 178, 102, 0.26);
    color: #efe2c4;
    font-family: "Cinzel", Georgia, serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
  }
  .cp-pchip[aria-selected="true"] {
    border-color: var(--ctint, #e8c06c);
    background: linear-gradient(135deg, rgba(64, 46, 24, 0.94), rgba(26, 20, 14, 0.96));
    color: #fff3d6;
  }
  .cp-pthumb {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid rgba(232, 196, 120, 0.45) !important;
  }
  .p3d-stage.is-compact .p3d-viewport {
    height: 330px;
  }
  .p3d-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(22, 17, 13, 0.94);
    border: 1px solid rgba(218, 178, 102, 0.26);
  }
  .p3d-mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .p3d-mobile-name {
    font-family: "Cinzel", Georgia, serif;
    font-size: 17px;
    color: #fbf0d5;
  }
  .p3d-mobile-bar .btn-trailer-modal {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 11.5px;
    white-space: nowrap;
  }
  .pm-stats-grid {
    grid-template-columns: 1fr;
  }
  .peoples-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .people-media {
    aspect-ratio: 4 / 5;
  }
}

.adv-info-brief {
  justify-content: center !important;
  gap: 14px !important;
}

/* ---- 8. Embedded 16:9 Gameplay Trailer Screen (Owner 2026-11-30: visual screen + on-screen Play icon, zero long bar buttons) ---- */
.embed-trailer-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  overflow: hidden;
  border: 1.5px solid rgba(232, 192, 108, 0.44);
  background: #0d0a07;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 236, 186, 0.16);
  cursor: pointer;
  margin-top: 4px;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.embed-trailer-screen:hover,
.embed-trailer-screen:focus-visible {
  border-color: rgba(255, 224, 146, 0.86);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 22px rgba(232, 192, 108, 0.22);
  outline: none;
}

.embed-trailer-img,
.embed-trailer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.86) contrast(1.06);
  transition: transform 0.35s ease, filter 0.25s ease;
}

.embed-trailer-screen:hover .embed-trailer-img {
  transform: scale(1.03);
  filter: brightness(0.96) contrast(1.08);
}

.embed-trailer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.14) 0%, rgba(10, 8, 6, 0.28) 55%, rgba(8, 6, 4, 0.78) 100%);
  pointer-events: none;
}

.embed-trailer-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  background: radial-gradient(circle at 35% 30%, #ffe6a6 0%, #d4a042 62%, #8e611c 100%);
  color: #161009;
  border: 2px solid rgba(255, 240, 196, 0.85);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.72), 0 0 0 6px rgba(232, 192, 108, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.embed-trailer-screen:hover .embed-trailer-play {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 0 10px rgba(232, 192, 108, 0.28);
}

.embed-trailer-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.embed-trailer-label {
  font-family: "Cinzel", Georgia, serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9edd0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.embed-trailer-pill {
  font-family: "Cinzel", Georgia, serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 12, 8, 0.78);
  border: 1px solid rgba(232, 192, 108, 0.48);
  color: #f3d796;
}

.p3d-mobile-brief {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(20, 16, 12, 0.94);
  border: 1px solid rgba(218, 178, 102, 0.26);
}

.p3d-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.p3d-mobile-lore {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #e9d9b8;
}

.embed-trailer-screen.is-compact .embed-trailer-play {
  width: 48px;
  height: 48px;
}

.path-modal .pm-backdrop {
  background: rgba(8, 7, 5, 0.74) !important;
  backdrop-filter: blur(8px) !important;
}

.path-modal .pm-dialog {
  border: 1.5px solid rgba(232, 192, 108, 0.48) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.82), 0 0 32px rgba(218, 178, 102, 0.14) !important;
}

.pm-video-poster-bg {
  filter: brightness(0.84) contrast(1.08) !important;
}

/* ---- 9. Raised 3D Sculpted Circular Ancestry & Body Portrait Medallions (Owner 2026-11-30 r257v6 fix) ---- */
html:root:root:root:root body #callings#callings #calling-panel .cp-toggle {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px 36px !important;
  height: auto !important;
  overflow: visible !important;
}

html:root:root:root:root body #callings#callings #calling-panel .cp-trow {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 14px !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

html:root:root:root:root body #callings#callings #calling-panel .cp-chip.cp-chip-medallion {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  padding: 4px 6px !important;
  width: auto !important;
  min-width: 70px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #efe2c4 !important;
  transition: transform 0.2s ease !important;
}

html:root:root:root:root body #callings#callings #calling-panel .cp-chip.cp-chip-medallion:hover {
  transform: translateY(-3px) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html:root:root:root:root body #callings#callings #calling-panel .cp-chip.cp-chip-medallion[aria-checked="true"] {
  background: transparent !important;
  border: 0 !important;
  color: #fff6de !important;
  box-shadow: none !important;
}

.cp-medallion {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #d4a64a;
  background: radial-gradient(circle at 35% 26%, #785b37 0%, #2e2115 62%, #120d09 100%);
  box-shadow:
    0 4px 0 #543b18,
    0 8px 18px rgba(0, 0, 0, 0.84),
    0 0 0 2px rgba(18, 13, 8, 0.92),
    inset 0 2px 3px rgba(255, 244, 206, 0.65);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.cp-sculpted-icon {
  border-radius: 50%;
}

.cp-chip.cp-chip-medallion:active .cp-medallion {
  transform: translateY(3px) scale(0.96) !important;
  box-shadow:
    0 1px 0 #543b18,
    0 3px 8px rgba(0, 0, 0, 0.8),
    0 0 0 2px rgba(18, 13, 8, 0.92) !important;
}

.cp-chip-medallion:hover .cp-medallion {
  border-color: #ffe399;
  transform: scale(1.06);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.86),
    0 0 18px rgba(242, 200, 110, 0.42),
    inset 0 2px 3px rgba(255, 248, 220, 0.78);
}

.cp-chip-medallion[aria-checked="true"] .cp-medallion {
  border-color: #ffeaac;
  transform: scale(1.08);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.88),
    0 0 0 2px rgba(18, 13, 8, 0.92),
    0 0 0 4px rgba(255, 218, 128, 0.72),
    0 0 22px rgba(242, 200, 110, 0.56),
    inset 0 2px 4px rgba(255, 250, 226, 0.88);
}

.cp-sculpted-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-chip.cp-chip-medallion:active .cp-medallion {
  transform: translateY(2px) scale(0.95) !important;
}

.cp-sex-medallion {
  color: #f6dc9b;
}

.cp-sex-medallion svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.78));
}

.cp-chip-medallion[aria-checked="true"] .cp-sex-medallion {
  color: #1a1209;
  background: radial-gradient(circle at 34% 26%, #ffebb0 0%, #d4a042 62%, #8e611c 100%);
}

.cp-chip-text {
  font-family: "Cinzel", Georgia, serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
}

/* Small bright forged-gold corner lock pip perched on the OUTER TOP-RIGHT rim (never covers the center icon, never pushes row down!) */
.cp-lock-pip {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at 35% 28%, #ffeaac 0%, #d9a441 68%, #8f6218 100%) !important;
  border: 2px solid #140e08 !important;
  color: #161008 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(255, 232, 168, 0.65) !important;
  pointer-events: none !important;
  z-index: 4 !important;
}

.cp-lock-pip svg {
  width: 11px !important;
  height: 11px !important;
}

.p3d-sfx-pill {
  appearance: none;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 192, 108, 0.42);
  background: rgba(24, 18, 12, 0.88);
  color: #f3d796;
  font-family: "Cinzel", Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.p3d-sfx-pill:hover {
  border-color: #ffe298;
  background: rgba(54, 40, 22, 0.94);
}

.p3d-sfx-pill.is-muted {
  opacity: 0.58;
}

/* ---- 9b. Sculpted 3D RPG Skill Icons on Starting Skill Chips (Cleaving Strike, Anchor Guard, etc.) ---- */


/* ---- 10. Pattern #2: True 3D Embossed Raised Forged-Gold/Bronze 3D Stage Action Bar & Buttons (w/ physical bezel depth, specular dome & click pulse) ---- */
.p3d-anim-bar {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  bottom: 14px !important;
  left: 14px !important;
  padding: 8px 14px 12px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(32, 24, 16, 0.92) 0%, rgba(14, 10, 7, 0.96) 100%) !important;
  border: 1.5px solid rgba(232, 192, 108, 0.42) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.84), inset 0 1px 0 rgba(255, 240, 196, 0.22) !important;
}

@keyframes skillClickPulse {
  0% {
    box-shadow: 0 1px 0 #8a6220, 0 0 0 0 rgba(255, 224, 138, 0.85), 0 0 18px rgba(242, 200, 110, 0.55);
  }
  100% {
    box-shadow: 0 6px 0 #8a6220, 0 0 0 16px rgba(255, 224, 138, 0), 0 8px 18px rgba(0, 0, 0, 0.88);
  }
}

/* ---- 11. Pattern #3: Instant Living Crossfade Transitions on Path Switch ---- */
@keyframes trailerCrossfade {
  from {
    opacity: 0.35;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.embed-trailer-screen {
  animation: trailerCrossfade 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 699px) {
  html:root:root:root:root body #callings#callings #calling-panel .cp-trow {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px 4px !important;
  }
  html:root:root:root:root body #callings#callings #calling-panel .cp-tlabel {
    width: 100% !important;
    margin: 0 0 2px 0 !important;
  }
  html:root:root:root:root body #callings#callings #calling-panel .cp-chip.cp-chip-medallion {
    flex: 0 0 auto !important;
    min-width: 66px !important;
    padding: 2px 2px !important;
    background: transparent !important;
    border: 0 !important;
  }
  .cp-medallion {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }
}
