/* My Past Life — quiz + fiction result */
.past-life-page {
  background: radial-gradient(100% 70% at 50% 0%, rgba(32, 28, 48, 0.5), transparent 55%),
    linear-gradient(180deg, #0a080e 0%, #121018 50%, #08060c 100%);
  color: rgba(245, 240, 255, 0.94);
}

.past-life-page .app-shell {
  background: transparent;
}

/* Global `.legal-card` sets dark `color` for white panels — force light text on this dark card. */
.past-life-page .past-life-root.legal-card {
  max-width: 46rem;
  margin-inline: auto;
  padding: 1.5rem 1.25rem 2rem;
  background: linear-gradient(165deg, rgba(28, 22, 38, 0.96), rgba(10, 8, 18, 0.98));
  border: 1px solid rgba(180, 140, 220, 0.22);
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  color: rgba(245, 240, 255, 0.96);
}

.past-life-page .past-life-root.legal-card .muted-copy,
.past-life-page .past-life-root.legal-card .section-heading p {
  color: rgba(228, 220, 252, 0.9);
}

.past-life-page .past-life-root.legal-card a {
  color: #d8c8ff;
}

.past-life-page .past-life-root.legal-card a:hover {
  color: #f0e8ff;
}

.past-life-page-title {
  margin: 0 0 0.35rem;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  letter-spacing: 0.05em;
  color: #e8d8ff;
}

.past-life-banner {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(200, 160, 255, 0.35);
  background: rgba(20, 14, 32, 0.85);
}

.past-life-banner strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #f0e0ff;
}

.past-life-prereq {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(60, 30, 30, 0.35);
  border: 1px solid rgba(255, 160, 140, 0.35);
}

.past-life-prereq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.past-life-prereq-links a {
  color: #c8b4ff;
  font-weight: 600;
}

.past-life-cooldown-panel {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 180, 120, 0.45);
  background: rgba(48, 22, 18, 0.55);
}

.past-life-cooldown-panel strong {
  color: #ffd8c8;
}

.past-life-cooldown-panel.hidden {
  display: none;
}

.past-life-quiz-progress {
  font-size: 0.9rem;
  color: rgba(230, 220, 255, 0.75);
  margin-bottom: 0.75rem;
}

.past-life-question-text {
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  color: #f4ecff;
  font-weight: 600;
}

.past-life-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.past-life-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(160, 130, 200, 0.35);
  background: rgba(18, 14, 28, 0.9);
  color: rgba(252, 248, 255, 0.98);
  -webkit-text-fill-color: rgba(252, 248, 255, 0.98);
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  line-height: 1.45;
}

.past-life-option:hover,
.past-life-option:focus-visible {
  border-color: rgba(220, 180, 255, 0.65);
  outline: none;
}

.past-life-option.selected {
  border-color: rgba(160, 240, 200, 0.7);
  box-shadow: 0 0 0 1px rgba(100, 200, 160, 0.25);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.past-life-quiz-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  align-items: center;
}

.past-life-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(80, 24, 24, 0.45);
  border: 1px solid rgba(255, 140, 120, 0.4);
  color: #ffd8d0;
}

.past-life-error.hidden {
  display: none;
}

.past-life-report-lang-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.past-life-inline-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(230, 218, 255, 0.95);
}

.past-life-page .past-life-language-select {
  min-width: 10rem;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(160, 130, 200, 0.45);
  background: rgba(18, 14, 28, 0.95);
  color: rgba(252, 248, 255, 0.98);
  font: inherit;
}

.past-life-page .past-life-language-select:disabled {
  opacity: 0.85;
  cursor: default;
}

.past-life-generate-wrap {
  margin-bottom: 0.5rem;
}

.past-life-generate-lead {
  margin: 0 0 0.85rem;
}

.past-life-generate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.past-life-composed-wrap {
  position: relative;
  padding-bottom: 2.75rem;
}

.past-life-report-close {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(180, 150, 220, 0.45);
  background: rgba(36, 28, 52, 0.95);
  color: rgba(245, 236, 255, 0.95);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.past-life-report-close:hover,
.past-life-report-close:focus-visible {
  border-color: rgba(220, 180, 255, 0.75);
  outline: none;
}

.past-life-results {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(180, 150, 220, 0.2);
}

.past-life-results.hidden {
  display: none;
}

.past-life-result-title {
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: #f2e8ff;
}

.past-life-era {
  font-size: 0.95rem;
  color: rgba(220, 200, 255, 0.85);
  margin-bottom: 1rem;
}

.past-life-narrative {
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 0.98rem;
  color: rgba(245, 240, 255, 0.94);
}

.past-life-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(220, 210, 240, 0.8);
  font-style: italic;
}

