/* Fate Choice Play — shared overlay & inline panel */

.fate-choice {
  --fate-gold: #d4af37;
  --fate-room: #0a0908;
  --fate-ivory: #f4f1ea;
  --fate-muted: rgba(244, 241, 234, 0.55);
  font-family: Georgia, "Times New Roman", Times, serif;
}

.fate-choice__cta {
  display: block;
  width: 100%;
  margin: 1.25rem 0 0.5rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 2px;
  background: rgba(212, 175, 55, 0.06);
  color: var(--fate-gold, #d4af37);
  font-family: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.fate-choice__cta:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.15);
}

.fate-choice__panel {
  margin-top: 1rem;
  padding: 1.1rem 1rem 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 2px;
  background: rgba(10, 9, 8, 0.72);
  color: var(--fate-ivory, #f4f1ea);
}

html[data-theme="light"] .fate-choice__panel--inline {
  background: rgba(18, 18, 18, 0.92);
}

.fate-choice__phase {
  margin: 0 0 0.65rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fate-gold, #d4af37);
}

.fate-choice__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.fate-choice__pov {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  color: var(--fate-muted);
  font-style: italic;
}

.fate-choice__act {
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fate-muted);
}

.fate-choice__stem {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--fate-ivory, #f4f1ea);
}

.fate-choice__options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fate-choice__option {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 2px;
  background: rgba(212, 175, 55, 0.04);
  color: var(--fate-ivory, #f4f1ea);
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.fate-choice__option:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateX(2px);
}

.fate-choice__outcome {
  margin-top: 0.5rem;
  padding: 0.9rem;
  border-left: 2px solid rgba(196, 92, 74, 0.75);
  background: rgba(196, 92, 74, 0.08);
}

.fate-choice__outcome.is-moira {
  border-left-color: rgba(212, 175, 55, 0.75);
  background: rgba(212, 175, 55, 0.08);
}

.fate-choice__outcome-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8a090;
}

.fate-choice__outcome.is-moira .fate-choice__outcome-title {
  color: var(--fate-gold, #d4af37);
}

.fate-choice__outcome-body {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.fate-choice__moira {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--fate-muted);
}

.fate-choice__continue {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: transparent;
  color: var(--fate-gold, #d4af37);
  font-family: inherit;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.fate-choice__continue:hover {
  background: rgba(212, 175, 55, 0.1);
}

.fate-choice__epilogue {
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.fate-choice__epilogue p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.fate-choice__meta {
  margin: 0;
  font-size: 0.68rem;
  color: var(--fate-muted);
}

.fate-choice__close {
  margin-top: 0.85rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--fate-muted);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fate-choice__close:hover {
  color: var(--fate-gold, #d4af37);
}

/* Full-screen theater overlay (unified stage B1) */
.fate-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(212, 175, 55, 0.08), transparent 55%),
    rgba(4, 3, 2, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.fate-choice-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fate-choice-overlay__dialog {
  width: min(40rem, 100%);
  max-height: min(90vh, 44rem);
  overflow-y: auto;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.85rem) 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: var(--fate-room, #0a0908);
  color: var(--fate-ivory, #f4f1ea);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
}

.fate-choice-overlay__dialog .fate-choice__panel,
.fate-choice-overlay__dialog .fate-choice__panel--theater {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.fate-choice__progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.fate-choice__dot {
  flex: 1;
  height: 2px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 1px;
}

.fate-choice__dot.is-done {
  background: rgba(212, 175, 55, 0.65);
}

.fate-choice__dot.is-current {
  background: var(--fate-gold, #d4af37);
}

/* Lives HUD */
.fate-choice__lives {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}

.fate-choice__lives-label {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fate-muted);
}

.fate-choice__lives-dots {
  display: flex;
  gap: 0.35rem;
}

.fate-choice__life {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: transparent;
}

.fate-choice__life.is-lit {
  background: rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

/* POV shift notice */
.fate-choice__pov-shift {
  margin: 0 0 0.85rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(126, 168, 196, 0.35);
  border-bottom: 1px solid rgba(126, 168, 196, 0.35);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #8eb4d4;
  font-style: italic;
}

.fate-choice__phase--fail {
  color: #e8a090;
}

/* Hub picker */
.fate-choice__hub {
  color: var(--fate-ivory, #f4f1ea);
}

.fate-choice__hub-sub {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--fate-muted);
}

.fate-choice__hub-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.fate-choice__hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 2px;
  background: rgba(212, 175, 55, 0.04);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.fate-choice__hub-card:hover,
.fate-choice__hub-card:focus-visible {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateX(2px);
  outline: none;
}

.fate-choice__hub-card-title {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--fate-ivory, #f4f1ea);
}

.fate-choice__hub-card-blurb {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--fate-muted);
}

.fate-choice__hub-card-meta {
  margin-top: 0.15rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.75);
}

.fate-choice-overlay__dialog {
  width: min(42rem, 100%);
}

.fate-choice-overlay[data-fate-kind="hub"] .fate-choice-overlay__dialog {
  width: min(36rem, 100%);
  max-height: min(92vh, 48rem);
}
