/* Succession Dispute modal — heirless death where a living sibling inherits.
   Single-sibling: portrait + statement + Continue. Multi-sibling: a horizontal
   carousel of clickable sibling portraits + a per-sibling button row. Palette
   flows through the styles.css design tokens; reading text >= 1rem per CLAUDE.md.
   See ui/modals/SuccessionDisputeModal.js. */

.succession-dispute {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

/* Multi-claimant variant fills the half-screen sheet so the choose-row's
   margin-top:auto has slack to drop it to the floor (see .succession-choose-row).
   flex:1 0 auto = grow to fill, never shrink below content. */
.succession-dispute-multi {
  flex: 1 0 auto;
}

.succession-dispute-title {
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--font-color-1);
  margin: 0;
}

.succession-dispute-text {
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--font-color-1);
  margin: 0;
}

/* Single heir / rival portrait — centered above the prose. */
.succession-dispute-heir-icon {
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.succession-dispute-heir-icon img,
.succession-dispute-heir-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.succession-dispute-continue {
  width: 100%;
  margin-top: 0.25rem;
}

/* ----- Multi-sibling: portrait carousel ----- */
/* Same overflow behavior as .badge-carousel: centered while the cards fit,
   scrolls sideways once they overflow the modal width. */
.succession-sib-carousel {
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.succession-sib-carousel::-webkit-scrollbar { display: none; }

.succession-sib-track {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  width: max-content;
  margin: 0 auto;
  padding: 0.1rem 0;
}

/* A clickable portrait card — opens the full NPC modal. Borderless,
   transparent button so the portrait reads as the affordance. font-family:
   inherit because <button> elements don't inherit the page font on their own
   (same reason .button-primary sets it) — without it the name renders in the
   browser's default sans, not House's serif. */
.succession-sib-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  font-family: inherit;
  /* Narrow, fixed footprint so the name + relationship caption WRAP (e.g.
     "Louis" / "Son of" / "Geoffrey") and all three claimants fit across the
     half-screen modal without the carousel needing to scroll. 3 × 5.5rem +
     gaps (~283px) fits the modal's usable width on phones ≥390px; 4+ claimants
     still overflow into the carousel as before. */
  width: 5.5rem;
  box-sizing: border-box;
  text-align: center;
}

.succession-sib-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.succession-sib-icon img,
.succession-sib-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.succession-sib-name {
  font-size: 1rem;
  line-height: 1.2;
  color: var(--font-color-1);
  /* Wrap within the narrow card; break a very long single name as a last
     resort so it never widens the card. */
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Relationship caption under the name ("Daughter of Charles" / "Brother of
   Charles") so the player can tell the claimants apart at a glance. Wraps
   across lines within the narrow card ("Son of" / "Geoffrey"). */
.succession-sib-claim {
  font-size: 1rem;
  line-height: 1.2;
  color: var(--font-color-2);
  margin-top: 0.15rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ----- Multi-sibling: choose-button row ----- */
/* Full-width stacked choices, mirroring the kc-event choices. The button LOOK
   comes from .button-primary; the row only stretches them. */
/* Bottom-anchored choice buttons, like the other full-/half-screen sheets:
   margin-top:auto drops the row to the sheet floor (thumb reach); position:
   sticky bottom:0 keeps it pinned if a very short phone pushes the title /
   reason / claimant carousel tall enough to scroll behind it. */
.succession-choose-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: stretch;
  margin-top: auto;
  position: sticky;
  bottom: 0;
}
.succession-choose-btn { width: 100%; }
.succession-choose-btn:disabled { opacity: 0.5; cursor: not-allowed; }
