.lore-hero {
  position: relative;
}

.lore-hero__grid {
  align-items: center;
}

.lore-hero__content {
  max-width: 34rem;
}

.lore-hero__kicker {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary-strong);
  margin-bottom: var(--space-2);
}

.lore-hero__actions {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.lore-hero__visual {
  min-height: 260px;
}

.lore-hero__breadcrumbs {
  margin-top: var(--space-6);
}

.lore-breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.lore-breadcrumbs li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--color-gray-600);
}

.lore-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.lore-section__header {
  margin-bottom: var(--space-6);
}

.lore-section__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lore-section__media {
  display: flex;
  align-items: center;
}

.lore-section__cta {
  margin-top: var(--space-2);
}

.lore-section__footer {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.lore-section__footer--stack {
  flex-direction: column;
  align-items: flex-start;
}

.lore-image-wrapper {
  width: 100%;
}

.lore-image {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-subtle);
}

.lore-image__caption {
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.lore-section--reverse {
  grid-auto-flow: dense;
}

.lore-section--reverse .lore-section__text {
  order: 2;
}

.lore-section--reverse .lore-section__media {
  order: 1;
}

.lore-kingdoms-grid {
  margin-top: var(--space-4);
}

.lore-kingdoms__title {
  font-size: var(--font-size-lg);
}

.lore-factions-grid,
.lore-heroes-grid,
.lore-places-grid {
  margin-top: var(--space-4);
}

.lore-magic-grid {
  align-items: flex-start;
}

.lore-list {
  list-style: disc;
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.lore-timeline-grid {
  align-items: flex-start;
}

.lore-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  padding-left: var(--space-5);
}

.lore-timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(127, 92, 255, 0.8),
    rgba(50, 215, 161, 0.4)
  );
}

.lore-timeline__item {
  position: relative;
}

.lore-timeline__item::before {
  content: "";
  position: absolute;
  left: -0.15rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-background);
  border: 2px solid var(--color-primary-strong);
  box-shadow: 0 0 10px rgba(127, 92, 255, 0.75);
}

.lore-footer-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 960px) {
  .lore-section__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .lore-section--reverse .lore-section__text,
  .lore-section--reverse .lore-section__media {
    order: initial;
  }
}

@media (max-width: 640px) {
  .lore-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .lore-breadcrumbs {
    font-size: var(--font-size-xs);
  }
}