/* CDS Lore Experience */
.cds-lore-app {
  --lore-void: #07060a;
  --lore-stone: #121018;
  --lore-metal: #1b1814;
  --lore-paper: #e8e0d0;
  --lore-paper-dim: #c9c0ad;
  --lore-muted: #8c8578;
  --lore-gold: #c4a36a;
  --lore-signal: #6a9eaa;
  --lore-violet: #6e5a8a;
  --lore-crimson: #8a3a44;
  --lore-ink: #16130f;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(196, 163, 106, 0.07), transparent 60%),
    radial-gradient(900px 500px at 80% 110%, rgba(106, 158, 170, 0.04), transparent 55%),
    linear-gradient(180deg, #0b0a10 0%, var(--lore-void) 40%, #0a0908 100%);
  color: var(--lore-paper);
  isolation: isolate;
}

.cds-lore-app *,
.cds-lore-app *::before,
.cds-lore-app *::after {
  box-sizing: border-box;
}

.cds-lore-app button {
  font: inherit;
}

.cds-lore-app button:not(:disabled) {
  cursor: pointer;
}

.cds-lore-app h1,
.cds-lore-app h2,
.cds-lore-app h3,
.cds-lore-app strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  text-wrap: balance;
}

.cds-lore-eyebrow {
  margin: 0;
  color: var(--lore-muted);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.6;
  text-transform: uppercase;
}

.cds-lore-crimson {
  color: var(--lore-crimson);
}

.cds-lore-muted {
  max-width: 44rem;
  color: var(--lore-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.cds-lore-lead {
  max-width: 46rem;
  color: var(--lore-paper-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-style: italic;
  line-height: 1.45;
}

.cds-lore-gold-rule {
  width: min(27rem, 100%);
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, rgba(196, 163, 106, 0.58), transparent);
}

.cds-lore-ribs {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.8;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 88px,
    rgba(232, 224, 208, 0.018) 88px,
    rgba(232, 224, 208, 0.018) 89px
  );
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.cds-lore-picture {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  background: #09070d;
}

.cds-lore-picture picture,
.cds-lore-picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.cds-lore-picture img {
  object-fit: cover;
}

.cds-lore-picture--banner {
  width: 100%;
  max-width: 74rem;
  border: 1px solid rgba(232, 224, 208, 0.1);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

.cds-lore-picture--banner picture {
  aspect-ratio: 9 / 16;
}

.cds-lore-picture--bleed,
.cds-lore-picture--whisper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 0;
}

.cds-lore-picture--bleed img {
  opacity: 0.72;
}

.cds-lore-presence-card .cds-lore-picture--bleed img {
  opacity: 0.94;
  filter: none;
}

.cds-lore-picture--bleed::after,
.cds-lore-picture--whisper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 10, 0.78), rgba(7, 6, 10, 0.24) 44%, rgba(7, 6, 10, 0.8)),
    linear-gradient(180deg, rgba(7, 6, 10, 0.08), rgba(7, 6, 10, 0.82));
}

.cds-lore-presence-card .cds-lore-picture--bleed::after {
  background:
    linear-gradient(90deg, rgba(7, 6, 10, 0.58), rgba(7, 6, 10, 0.08) 52%, rgba(7, 6, 10, 0.52)),
    linear-gradient(180deg, rgba(7, 6, 10, 0.02) 38%, rgba(7, 6, 10, 0.72));
}

.cds-lore-picture--whisper img {
  opacity: 0.24;
}

.cds-lore-threshold {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.25rem, 5vw, 6rem) clamp(4rem, 7vw, 7rem);
  overflow: hidden;
}

.cds-lore-threshold-copy {
  position: relative;
  z-index: 1;
  width: min(58rem, 100%);
}

.cds-lore-threshold h1 {
  margin: 1.8rem 0 0;
  color: var(--lore-paper);
  font-size: clamp(4rem, 13vw, 9.4rem);
  letter-spacing: 0;
  line-height: 0.82;
}

.cds-lore-threshold-line {
  max-width: 40rem;
  color: var(--lore-paper-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-style: italic;
  line-height: 1.2;
}

.cds-lore-years {
  position: absolute;
  top: 7rem;
  right: clamp(1rem, 5vw, 5rem);
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  color: rgba(201, 192, 173, 0.65);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.cds-lore-primary,
.cds-lore-secondary,
.cds-lore-chip,
.cds-lore-choice,
.cds-lore-bob-offer {
  min-height: 2.9rem;
  border: 1px solid rgba(196, 163, 106, 0.35);
  background: rgba(11, 9, 15, 0.66);
  color: var(--lore-gold);
  padding: 0.82rem 1rem;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.cds-lore-primary {
  background: linear-gradient(135deg, rgba(196, 163, 106, 0.28), rgba(106, 158, 170, 0.08));
  color: #f5dfaf;
}

.cds-lore-secondary {
  border-color: rgba(232, 224, 208, 0.12);
  color: var(--lore-muted);
}

.cds-lore-primary:hover,
.cds-lore-primary:focus-visible,
.cds-lore-secondary:hover,
.cds-lore-secondary:focus-visible,
.cds-lore-chip:hover,
.cds-lore-chip:focus-visible,
.cds-lore-choice:hover,
.cds-lore-choice:focus-visible,
.cds-lore-bob-offer:hover,
.cds-lore-bob-offer:focus-visible {
  border-color: rgba(196, 163, 106, 0.74);
  background: rgba(196, 163, 106, 0.12);
  color: var(--lore-paper);
  outline: none;
  transform: translateY(-1px);
}

.cds-lore-primary:focus-visible,
.cds-lore-secondary:focus-visible,
.cds-lore-chip:focus-visible,
.cds-lore-choice:focus-visible,
.cds-lore-bob-offer:focus-visible,
.cds-lore-path-button:focus-visible,
.cds-lore-line-link:focus-visible,
.cds-lore-link:focus-visible,
.cds-lore-door:focus-visible,
.cds-lore-gateway-door:focus-visible,
.cds-lore-volume:focus-visible,
.cds-lore-slip:focus-visible,
.cds-lore-notice:focus-visible,
.cds-lore-presence-card:focus-visible,
.cds-lore-pillar:focus-visible,
.cds-lore-sequence-link:focus-visible {
  outline: 2px solid rgba(196, 163, 106, 0.8);
  outline-offset: 3px;
}

.cds-lore-signal {
  position: relative;
  z-index: 1;
  width: min(100%, 38rem);
  margin-top: clamp(2rem, 5vw, 3.8rem);
  padding: 1.2rem;
  border: 1px solid rgba(232, 224, 208, 0.09);
  background: rgba(10, 9, 13, 0.62);
  box-shadow: inset 0 0 40px rgba(196, 163, 106, 0.03);
}

.cds-lore-signal p {
  margin: 0.45rem 0 0;
  color: var(--lore-paper-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
}

.cds-lore-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 2rem;
}

.cds-lore-signal-grid span {
  display: block;
  color: rgba(196, 163, 106, 0.72);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cds-lore-signal-grid strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--lore-gold);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1;
}

.cds-lore-signal-foot {
  color: rgba(196, 163, 106, 0.78) !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 0.68rem !important;
  font-style: normal !important;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cds-lore-hall,
.cds-lore-chamber,
.cds-lore-reader,
.cds-lore-presence-view,
.cds-lore-gate-shell {
  position: relative;
  min-height: 70vh;
}

.cds-lore-hall {
  padding: clamp(5.8rem, 9vw, 8rem) clamp(1rem, 4vw, 4rem) clamp(5rem, 8vw, 8rem);
}

.cds-lore-hall-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.2rem;
  align-items: end;
  max-width: 78rem;
  margin: 0 auto;
}

.cds-lore-hall-head h1,
.cds-lore-chamber-hero h1,
.cds-lore-reader h1,
.cds-lore-presence-view h1,
.cds-lore-gate-card h1 {
  margin: 0.55rem 0 0;
  color: var(--lore-paper);
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.96;
}

.cds-lore-hall-head h1 em {
  color: var(--lore-paper-dim);
  font-style: italic;
}

.cds-lore-hall-head > p {
  max-width: 30rem;
  color: var(--lore-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

.cds-lore-year-row,
.cds-lore-year-cluster {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 1.2rem;
  max-width: 78rem;
  margin: 2rem auto 0;
  padding: 1rem 0;
  border-block: 1px solid rgba(232, 224, 208, 0.08);
}

.cds-lore-year,
.cds-lore-year-link {
  border: 0;
  background: transparent;
  color: var(--lore-paper-dim);
  padding: 0.4rem 0.2rem;
  text-align: left;
}

.cds-lore-year strong {
  display: block;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  line-height: 1;
}

.cds-lore-year span,
.cds-lore-year-link {
  display: block;
  margin-top: 0.3rem;
  color: var(--lore-muted);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cds-lore-year:hover,
.cds-lore-year:focus-visible,
.cds-lore-year-link:hover,
.cds-lore-year-link:focus-visible {
  color: var(--lore-gold);
}

.cds-lore-hall > .cds-lore-signal {
  max-width: 78rem;
  width: 100%;
  margin-inline: auto;
}

.cds-lore-door-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 78rem;
  margin: 1rem auto 0;
}

.cds-lore-door,
.cds-lore-gateway-door,
.cds-lore-presence-card {
  position: relative;
  min-height: 17rem;
  overflow: hidden;
  border: 1px solid rgba(232, 224, 208, 0.1);
  background:
    linear-gradient(180deg, rgba(196, 163, 106, 0.07), transparent 40%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent),
    var(--lore-metal);
  color: var(--lore-paper);
  padding: 1.35rem;
  text-align: left;
  transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.cds-lore-door > *:not(.cds-lore-picture),
.cds-lore-presence-card > *:not(.cds-lore-picture) {
  position: relative;
  z-index: 1;
}

.cds-lore-door strong,
.cds-lore-gateway-door strong,
.cds-lore-presence-card strong {
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 0.96;
}

.cds-lore-door em,
.cds-lore-gateway-door em,
.cds-lore-presence-card em,
.cds-lore-pillar em {
  display: block;
  max-width: 34rem;
  margin-top: 0.8rem;
  color: var(--lore-paper-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.4;
}

.cds-lore-door:hover,
.cds-lore-door:focus-visible,
.cds-lore-gateway-door:hover,
.cds-lore-gateway-door:focus-visible,
.cds-lore-presence-card:hover,
.cds-lore-presence-card:focus-visible {
  border-color: rgba(196, 163, 106, 0.55);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38), inset 0 0 50px rgba(196, 163, 106, 0.03);
  transform: translateY(-2px);
}

.cds-lore-gateway-door {
  min-height: 12rem;
  background:
    radial-gradient(2px 80px at 50% 50%, rgba(196, 163, 106, 0.35), transparent 70%),
    linear-gradient(90deg, #16141a 0%, #0e0d12 46%, #1a1814 54%, #121018 100%);
}

.cds-lore-gateway-door strong {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.cds-lore-opened-dot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--lore-gold);
  box-shadow: 0 0 12px rgba(196, 163, 106, 0.78);
}

.cds-lore-margin,
.cds-lore-entry-collection {
  max-width: 78rem;
  margin: clamp(2.2rem, 5vw, 4rem) auto 0;
}

.cds-lore-slip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.2rem;
}

.cds-lore-slip {
  width: min(100%, 17rem);
  min-height: 7rem;
  border: 0;
  background: linear-gradient(180deg, #cbb892, #bba575);
  color: var(--lore-ink);
  padding: 0.9rem 1rem 1rem;
  text-align: left;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 160ms ease, filter 160ms ease;
}

.cds-lore-slip span,
.cds-lore-volume span,
.cds-lore-notice span {
  display: block;
  color: rgba(22, 19, 15, 0.75);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cds-lore-slip strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--lore-ink);
  font-size: 1.25rem;
  line-height: 1.08;
}

.cds-lore-slip:hover,
.cds-lore-slip:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-3px) rotate(0deg);
}

.cds-lore-path {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(232, 224, 208, 0.08);
  background: rgba(7, 6, 10, 0.88);
  backdrop-filter: blur(18px);
}

.cds-lore-path nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}

.cds-lore-path i,
.cds-lore-path span,
.cds-lore-path p,
.cds-lore-path-button {
  color: var(--lore-muted);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
}

.cds-lore-path p {
  display: none;
  margin: 0;
}

.cds-lore-path span {
  color: var(--lore-gold);
}

.cds-lore-path-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.cds-lore-path-button:hover,
.cds-lore-path-button:focus-visible {
  color: var(--lore-gold);
}

.cds-lore-chamber {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(5rem, 8vw, 7rem);
}

.cds-lore-chamber-hero,
.cds-lore-article,
.cds-lore-reader,
.cds-lore-presence-view,
.cds-lore-gate-card,
.cds-lore-gateway-panel {
  max-width: 78rem;
  margin-inline: auto;
}

.cds-lore-chamber-hero > .cds-lore-picture {
  margin-top: 2rem;
}

.cds-lore-chamber--undercity {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(138, 58, 68, 0.11), transparent 62%),
    linear-gradient(180deg, rgba(28, 16, 12, 0.36), transparent 36%);
}

.cds-lore-actions,
.cds-lore-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.cds-lore-chip.is-active {
  border-color: rgba(196, 163, 106, 0.72);
  color: var(--lore-paper);
  background: rgba(196, 163, 106, 0.12);
}

.cds-lore-districts {
  max-width: 78rem;
  margin: clamp(2.4rem, 5vw, 4.5rem) auto 0;
  padding-block: 1.2rem;
  border-block: 1px solid rgba(232, 224, 208, 0.08);
}

.cds-lore-district-focus {
  margin-top: 1.8rem;
}

.cds-lore-district-focus p {
  max-width: 42rem;
  color: var(--lore-paper-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
}

.cds-lore-district-focus .cds-lore-picture {
  margin-top: 1.3rem;
}

.cds-lore-volume-grid,
.cds-lore-notice-grid,
.cds-lore-extra-grid,
.cds-lore-presence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1rem;
}

.cds-lore-volume,
.cds-lore-notice,
.cds-lore-pillar {
  min-height: 10rem;
  border: 1px solid rgba(232, 224, 208, 0.1);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 18%),
    rgba(18, 16, 24, 0.92);
  color: var(--lore-paper);
  padding: 1rem;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.cds-lore-volume span,
.cds-lore-notice span {
  color: rgba(196, 163, 106, 0.72);
}

.cds-lore-volume strong,
.cds-lore-notice strong,
.cds-lore-pillar strong {
  display: block;
  margin-top: 0.75rem;
  color: var(--lore-paper);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.1;
}

.cds-lore-volume em,
.cds-lore-notice em {
  display: block;
  margin-top: 0.7rem;
  color: var(--lore-muted);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.5;
}

.cds-lore-volume:hover,
.cds-lore-volume:focus-visible,
.cds-lore-notice:hover,
.cds-lore-notice:focus-visible,
.cds-lore-pillar:hover,
.cds-lore-pillar:focus-visible {
  border-color: rgba(196, 163, 106, 0.42);
  background: rgba(27, 24, 20, 0.96);
  transform: translateY(-2px);
}

.cds-lore-line-list {
  display: grid;
  gap: 0;
  margin-top: 0.8rem;
}

.cds-lore-line-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1.2rem;
  min-height: 3.4rem;
  border: 0;
  border-bottom: 1px solid rgba(232, 224, 208, 0.08);
  background: transparent;
  color: var(--lore-paper);
  padding: 0.85rem 0.1rem;
  text-align: left;
}

.cds-lore-line-link span {
  flex: 1 1 16rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.25;
}

.cds-lore-line-link em {
  flex: 0 1 18rem;
  color: var(--lore-muted);
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cds-lore-line-link:hover,
.cds-lore-line-link:focus-visible {
  border-bottom-color: rgba(196, 163, 106, 0.42);
  color: var(--lore-gold);
}

.cds-lore-sequence {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.cds-lore-sequence-link {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.7rem 1rem;
  width: 100%;
  min-height: 4rem;
  border: 0;
  border-bottom: 1px solid rgba(232, 224, 208, 0.08);
  background: transparent;
  color: var(--lore-paper);
  padding: 0.8rem 0;
  text-align: left;
}

.cds-lore-sequence-link span {
  color: rgba(196, 163, 106, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.cds-lore-sequence-link strong {
  color: inherit;
  font-size: 1.25rem;
  line-height: 1.2;
}

.cds-lore-sequence-link em {
  grid-column: 2;
  color: var(--lore-muted);
  font-size: 0.74rem;
  font-style: normal;
  letter-spacing: 0.09em;
  line-height: 1.45;
  text-transform: uppercase;
}

.cds-lore-sequence-link:hover,
.cds-lore-sequence-link:focus-visible {
  color: var(--lore-gold);
}

.cds-lore-presence-grid {
  max-width: 78rem;
  margin: 2rem auto 0;
}

.cds-lore-presence-card {
  min-height: 20rem;
}

.cds-lore-presence-card p {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  color: var(--lore-muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.cds-lore-pillar {
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.cds-lore-pillar--callizto {
  background: linear-gradient(180deg, rgba(110, 90, 138, 0.16), transparent 42%), #121018;
}

.cds-lore-pillar--seraphina {
  background: linear-gradient(180deg, rgba(106, 158, 170, 0.14), transparent 42%), #12171b;
}

.cds-lore-pillar--scarlett {
  background: linear-gradient(180deg, rgba(138, 58, 68, 0.18), transparent 42%), #161010;
}

.cds-lore-split-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cds-lore-chamber--misalignment.is-corrected {
  background: linear-gradient(180deg, #e8e6e1, #d8d6d0);
  color: #242320;
}

.cds-lore-chamber--misalignment.is-corrected h1,
.cds-lore-chamber--misalignment.is-corrected .cds-lore-lead,
.cds-lore-chamber--misalignment.is-corrected .cds-lore-prose,
.cds-lore-chamber--misalignment.is-corrected .cds-lore-muted {
  color: #242320;
}

.cds-lore-reader,
.cds-lore-presence-view {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(5rem, 8vw, 7rem);
}

.cds-lore-reader-main {
  min-width: 0;
}

.cds-lore-location,
.cds-lore-tone {
  color: var(--lore-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
}

.cds-lore-teaser {
  max-width: 62ch;
  margin-top: 1.6rem;
  border-left: 1px solid rgba(196, 163, 106, 0.42);
  color: var(--lore-paper-dim);
  padding-left: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.55;
}

.cds-lore-reader-main > .cds-lore-picture {
  margin-bottom: 2.2rem;
}

.cds-lore-prose {
  max-width: 66ch;
  color: var(--lore-paper-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  line-height: 1.75;
}

.cds-lore-prose p,
.cds-lore-prose blockquote,
.cds-lore-prose details {
  margin: 0 0 1.1rem;
}

.cds-lore-prose h3,
.cds-lore-inline-heading {
  display: block;
  margin: 1.5rem 0 0.5rem;
  color: var(--lore-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.cds-lore-prose blockquote {
  border-left: 1px solid rgba(196, 163, 106, 0.45);
  color: var(--lore-paper);
  padding-left: 1rem;
  font-style: italic;
}

.cds-lore-prose hr,
.cds-lore-inline-rule {
  display: block;
  width: 5rem;
  height: 1px;
  margin: 1.5rem 0;
  border: 0;
  background: rgba(196, 163, 106, 0.25);
}

.cds-lore-link {
  display: inline;
  border: 0;
  background: transparent;
  color: var(--lore-gold);
  padding: 0;
  font: inherit;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(196, 163, 106, 0.16);
}

.cds-lore-link:hover,
.cds-lore-link:focus-visible {
  color: #f0d49b;
}

.cds-lore-paper {
  max-width: 58rem;
  background: linear-gradient(180deg, #cbb892, #bba575);
  color: var(--lore-ink);
  padding: clamp(1.25rem, 4vw, 2.4rem);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.35);
}

.cds-lore-paper .cds-lore-prose,
.cds-lore-paper .cds-lore-prose h3,
.cds-lore-paper .cds-lore-link {
  color: var(--lore-ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.98rem;
  line-height: 1.7;
}

.cds-lore-paper-label {
  margin: 0 0 1.5rem;
  color: rgba(22, 19, 15, 0.72);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cds-lore-quote {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: var(--lore-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-style: italic;
  line-height: 1.2;
}

.cds-lore-reader-side {
  min-width: 0;
}

.cds-lore-side-block,
.cds-lore-related {
  margin-bottom: 2.2rem;
}

.cds-lore-side-block ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--lore-muted);
  line-height: 1.55;
}

.cds-lore-cant summary {
  display: inline-flex;
  align-items: center;
  color: var(--lore-gold);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  list-style: none;
  text-transform: uppercase;
}

.cds-lore-cant summary::-webkit-details-marker {
  display: none;
}

.cds-lore-cant summary::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.45rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}

.cds-lore-cant[open] summary::before {
  transform: rotate(45deg);
}

.cds-lore-cant p {
  margin-top: 0.4rem;
  color: var(--lore-muted);
  font-size: 0.95rem;
}

.cds-lore-gateway-panel {
  margin-top: 2rem;
  border: 1px solid rgba(232, 224, 208, 0.1);
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(196, 163, 106, 0.08), transparent 65%),
    rgba(10, 9, 13, 0.76);
  padding: clamp(1.4rem, 5vw, 3rem);
}

.cds-lore-gateway-panel p {
  max-width: 40rem;
  color: var(--lore-paper-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.55;
}

.cds-lore-gate-shell {
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(5rem, 8vw, 7rem);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(196, 163, 106, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(18, 12, 10, 0.4), transparent 40%);
}

.cds-lore-gate-shell.is-bad {
  animation: cds-lore-gate-bad 420ms ease-out;
}

@keyframes cds-lore-gate-bad {
  30% {
    filter: saturate(0.65) brightness(1.14);
  }
}

.cds-lore-gate-card {
  max-width: 42rem;
}

.cds-lore-gate-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  border-bottom: 1px solid rgba(196, 163, 106, 0.2);
  padding-bottom: 1.2rem;
}

.cds-lore-gate-card h1 span {
  display: inline-block;
  margin-left: 0.75rem;
  color: var(--lore-muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cds-lore-question {
  position: relative;
  margin-top: 2rem;
}

.cds-lore-cant-prompt {
  margin: 0.7rem 0 0;
  color: var(--lore-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.1;
}

.cds-lore-choice-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.cds-lore-choice {
  width: 100%;
  text-align: left;
  color: var(--lore-paper-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.cds-lore-scar {
  border-left: 1px solid rgba(110, 90, 138, 0.5);
  color: var(--lore-muted);
  padding-left: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.cds-lore-nyx-axe {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: rgba(7, 6, 10, 0.78);
  backdrop-filter: blur(2px);
  padding: 1.5rem;
}

.cds-lore-nyx-axe > span {
  width: 4rem;
  height: 8rem;
  background: linear-gradient(150deg, #2a1c34, #8f6bc0 42%, #16121a);
  clip-path: polygon(28% 0, 92% 16%, 78% 38%, 42% 33%, 54% 100%, 38% 100%, 31% 36%, 4% 30%);
  transform: rotate(-28deg);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
}

.cds-lore-nyx-axe p {
  width: min(14rem, 100%);
  margin: 1.2rem 0 0;
  background: var(--lore-paper);
  color: var(--lore-ink);
  padding: 0.7rem 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  transform: rotate(-3deg);
}

.cds-lore-nyx-axe small {
  display: block;
  margin-top: 0.35rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cds-lore-bob-slot {
  min-height: 2.5rem;
  margin-top: 2rem;
}

.cds-lore-bob-idle {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(196, 163, 106, 0.32);
  box-shadow: 0 0 0 1px rgba(196, 163, 106, 0.4);
}

.cds-lore-bob-idle.is-pulsing {
  animation: cds-lore-bob 1.6s ease-in-out infinite;
}

@keyframes cds-lore-bob {
  50% {
    opacity: 1;
    box-shadow: 0 0 18px rgba(196, 163, 106, 0.42);
  }
}

.cds-lore-bob-panel,
.cds-lore-gate-glass {
  border: 1px solid rgba(196, 163, 106, 0.24);
  background: rgba(18, 16, 24, 0.78);
  padding: 1rem;
}

.cds-lore-gate-glass {
  margin-top: 2rem;
  border-color: rgba(138, 58, 68, 0.45);
}

.cds-lore-gate-glass p {
  color: var(--lore-muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cds-lore-finding-tab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  min-height: 3rem;
  border: 1px solid rgba(196, 163, 106, 0.4);
  background: rgba(7, 6, 10, 0.92);
  color: var(--lore-gold);
  padding: 0.75rem 1rem;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.cds-lore-finding-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
  background: rgba(7, 6, 10, 0.58);
}

.cds-lore-finding-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.cds-lore-finding-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 30rem);
  height: min(88vh, 46rem);
  margin-left: auto;
  border: 1px solid rgba(232, 224, 208, 0.1);
  background: rgba(18, 16, 24, 0.98);
  padding: 1rem;
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.45);
}

.cds-lore-finding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cds-lore-search {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--lore-muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cds-lore-search input {
  min-height: 3rem;
  border: 0;
  border-bottom: 1px solid rgba(232, 224, 208, 0.16);
  background: transparent;
  color: var(--lore-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  outline: none;
}

.cds-lore-search input:focus {
  border-bottom-color: rgba(196, 163, 106, 0.6);
}

.cds-lore-finding-list {
  flex: 1;
  overflow: auto;
  margin-top: 1rem;
  padding-right: 0.35rem;
}

.cds-lore-finding-list section {
  margin-bottom: 1.5rem;
}

.cds-lore-finding-list button {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  min-height: 2.8rem;
  border: 0;
  border-bottom: 1px solid rgba(232, 224, 208, 0.07);
  background: transparent;
  color: var(--lore-paper-dim);
  padding: 0.45rem 0;
  text-align: left;
}

.cds-lore-finding-list button:hover,
.cds-lore-finding-list button:focus-visible {
  color: var(--lore-gold);
}

.cds-lore-finding-list span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
}

.cds-lore-finding-foot {
  margin: 0;
  border-top: 1px solid rgba(232, 224, 208, 0.08);
  color: var(--lore-muted);
  padding-top: 0.8rem;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.55;
  text-transform: uppercase;
}

.lore-signal-archive,
.lore-wiki-bridge {
  position: relative;
  z-index: 1;
}

.lore-signal-archive.is-lore-route-hidden,
.lore-wiki-bridge.is-lore-route-hidden {
  display: none !important;
}

.lore-wiki-bridge {
  border-block: 1px solid rgba(214, 221, 235, 0.1);
  background:
    radial-gradient(circle at 85% 10%, rgba(168, 92, 255, 0.1), transparent 24rem),
    linear-gradient(135deg, rgba(5, 6, 10, 0.96), rgba(142, 22, 44, 0.08));
}

@media (min-width: 640px) {
  .cds-lore-volume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cds-lore-notice-grid,
  .cds-lore-extra-grid,
  .cds-lore-presence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) {
  .cds-lore-picture--banner picture {
    aspect-ratio: 16 / 9;
  }

  .cds-lore-years {
    display: flex;
  }

  .cds-lore-hall-head {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.42fr);
  }

  .cds-lore-door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cds-lore-door--wide {
    grid-column: span 2;
  }

  .cds-lore-reader,
  .cds-lore-presence-view {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  }

  .cds-lore-reader-side {
    position: sticky;
    top: 5rem;
    align-self: start;
  }

  .cds-lore-path p {
    display: block;
  }
}

@media (min-width: 980px) {
  .cds-lore-door-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .cds-lore-door {
    grid-column: span 6;
  }

  .cds-lore-door--wide {
    grid-column: span 8;
  }

  .cds-lore-door--wide + .cds-lore-door {
    grid-column: span 4;
  }

  .cds-lore-gateway-door {
    grid-column: span 3;
  }

  .cds-lore-volume-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cds-lore-notice-grid,
  .cds-lore-extra-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cds-lore-threshold {
    align-items: end;
    min-height: 92vh;
  }

  .cds-lore-signal-grid {
    grid-template-columns: 1fr;
  }

  .cds-lore-door,
  .cds-lore-presence-card {
    min-height: 15rem;
  }

  .cds-lore-door strong,
  .cds-lore-presence-card strong {
    font-size: 2rem;
  }

  .cds-lore-path {
    position: relative;
  }

  .cds-lore-finding-panel {
    height: min(90vh, 44rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cds-lore-app *,
  .cds-lore-app *::before,
  .cds-lore-app *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
