@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent: #d8aa4f;
  --accent-strong: #f4c873;
  --ink: #fff7e6;
  --muted: #d9d0bc;
  --panel: rgba(14, 12, 10, 0.58);
  --panel-strong: rgba(17, 14, 11, 0.78);
  --line: rgba(255, 239, 198, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #100f0d;
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.lore-shell,
.story-stage {
  min-height: 100vh;
}

.story-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px clamp(18px, 3vw, 48px) 230px;
}

.background-layers,
.bg-image,
.bg-vignette {
  position: absolute;
  inset: 0;
}

.background-layers {
  z-index: -2;
  background: #100f0d;
}

.bg-image {
  background-image: var(--active-bg);
  background-position: center;
  background-size: cover;
  filter: saturate(1.06) contrast(1.04);
  opacity: 0.98;
  transform: scale(1.02);
  transition:
    background-image 240ms ease,
    transform 700ms ease,
    filter 700ms ease;
}

.bg-image.is-shifting {
  transform: scale(1.045);
  filter: saturate(1.18) contrast(1.08);
}

.bg-vignette {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 8, 7, 0.92), rgba(12, 9, 7, 0.55) 38%, rgba(12, 9, 7, 0.16) 72%),
    linear-gradient(0deg, rgba(8, 7, 6, 0.92), rgba(8, 7, 6, 0.1) 42%, rgba(8, 7, 6, 0.54));
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font-family: 'Cinzel', Georgia, serif;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-name { line-height: 1.1; }
.brand-tagline {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: #d8bd88;
  text-transform: none;
}

.fan-note {
  margin: 0;
  color: rgba(255, 247, 230, 0.72);
  font-size: 0.86rem;
  text-align: right;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(244, 200, 115, 0.36);
  border-radius: 8px;
  background: rgba(14, 12, 10, 0.56);
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--accent-strong);
  outline: none;
}

.event-copy {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
  margin-top: clamp(48px, 10vh, 120px);
}

.event-era {
  font-family: 'Cinzel', Georgia, serif;
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: rgba(12, 10, 8, 0.46);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-family: 'Cinzel', Georgia, serif;
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.1rem, 9vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 22px 42px rgba(0, 0, 0, 0.44);
}

.event-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 247, 230, 0.92);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.event-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.detail-block {
  min-width: 0;
  min-height: 152px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.detail-block span {
  font-family: 'Cinzel', Georgia, serif;
  display: block;
  margin-bottom: 9px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.champion-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.champion-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(244, 200, 115, 0.45);
  border-radius: 8px;
  background: rgba(216, 170, 79, 0.17);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.champion-chip:hover,
.champion-chip:focus-visible {
  border-color: var(--accent-strong);
  background: rgba(216, 170, 79, 0.28);
  outline: none;
  transform: translateY(-1px);
}

.champion-chip.is-disabled {
  border-color: rgba(255, 247, 230, 0.14);
  background: rgba(255, 247, 230, 0.07);
  color: rgba(255, 247, 230, 0.42);
  cursor: not-allowed;
  transform: none;
}

.champion-panel {
  position: fixed;
  z-index: 5;
  right: clamp(18px, 4vw, 54px);
  top: 50%;
  left: auto;
  margin: 0;
  padding: 0;
  color: var(--ink);
  transform: translateY(-50%);
  width: min(360px, calc(100vw - 36px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(244, 200, 115, 0.38);
  border-radius: 8px;
  background: rgba(14, 12, 10, 0.84);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.champion-panel::backdrop { background: rgba(3, 7, 12, 0.74); backdrop-filter: blur(5px); }
.champion-panel .panel-close { position: sticky; float: right; top: 10px; margin: 10px 10px -54px 0; width: 44px; height: 44px; }
html:has(.champion-panel[open]) { overflow: hidden; }
.mobile-story-art { display: none; }
.champion-view-options { display: none; }

.champion-panel:not([hidden]) {
  display: block;
}

.champion-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.champion-panel-copy {
  padding: 18px;
}

.champion-panel-copy span {
  font-family: 'Cinzel', Georgia, serif;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.champion-panel-copy h2 {
  font-family: 'Cinzel', Georgia, serif;
  margin: 7px 0 8px;
  font-size: 1.5rem;
}

.champion-panel-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel-read-more {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 16px;
  padding: 0 13px;
  border: 1px solid rgba(244, 200, 115, 0.45);
  border-radius: 8px;
  background: rgba(216, 170, 79, 0.17);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.panel-read-more:hover,
.panel-read-more:focus-visible {
  border-color: var(--accent-strong);
  background: rgba(216, 170, 79, 0.28);
  outline: none;
}

.panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 247, 230, 0.28);
  border-radius: 8px;
  background: rgba(9, 8, 7, 0.72);
  cursor: pointer;
}

.champion-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: visible;
  padding: 28px clamp(18px, 3vw, 48px) 56px;
}

.champion-background,
.champion-bg-image,
.champion-bg-vignette {
  position: absolute;
  inset: 0;
}

.champion-background {
  z-index: -2;
  background: #100f0d;
}

.champion-bg-image {
  background-image: var(--champion-bg);
  background-position: center;
  background-size: cover;
  filter: saturate(1.08) contrast(1.04);
  opacity: 0.96;
  transform: scale(1.02);
}

.champion-bg-vignette {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 8, 7, 0.94), rgba(12, 9, 7, 0.62) 44%, rgba(12, 9, 7, 0.2) 76%),
    linear-gradient(0deg, rgba(8, 7, 6, 0.95), rgba(8, 7, 6, 0.14) 44%, rgba(8, 7, 6, 0.5));
}

.champion-site-header,
.champion-hero {
  position: relative;
  z-index: 2;
}

.timeline-return {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(244, 200, 115, 0.36);
  border-radius: 8px;
  background: rgba(14, 12, 10, 0.56);
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.timeline-return:hover,
.timeline-return:focus-visible {
  border-color: var(--accent-strong);
  outline: none;
}

.champion-hero {
  width: min(1180px, 100%);
  min-height: calc(100vh - 120px);
  padding-top: clamp(52px, 9vh, 118px);
}

.champion-hero-copy {
  width: min(720px, 100%);
  min-width: 0;
}

.champion-hero-copy h1 {
  max-width: 10ch;
}

.champion-hero-copy .event-lead {
  white-space: pre-line;
  line-height: 1.75;
}

.champion-sources:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
}

.champion-sources a {
  color: var(--accent-strong);
  font-size: 0.82rem;
  text-underline-offset: 4px;
}

.champion-related-lore:not([hidden]) { display: grid; gap: 24px; margin-top: 36px; }
.related-lore-record { scroll-margin-top: 24px; padding: clamp(16px, 3vw, 28px); border: 1px solid #d8aa4f55; border-radius: 8px; background: #0a1015c4; }
.related-lore-title { margin: 0 0 14px; font-family: 'Cinzel', Georgia, serif; font-size: clamp(1.4rem, 4.5vw, 2rem); line-height: 1.35; overflow-wrap: anywhere; }
.related-lore-context { color: #f4dba7; font-size: .94rem; line-height: 1.75; }
.related-lore-age { color: var(--muted); font-size: .86rem; line-height: 1.6; }
.related-lore-record .event-era { margin-top: 24px; }
.related-lore-record .relationship-board { padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }

@media (max-width: 700px) {
  body.is-champion-mode { scrollbar-gutter: auto; }
}

.champion-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 26px;
}

.champion-facts .detail-block {
  min-height: 128px;
}

.relationship-board {
  position: relative;
  display: grid;
  width: min(720px, 100%);
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(216, 170, 79, 0.25);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.78), rgba(14, 12, 10, 0.92));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

.relationship-column {
  min-width: 0;
  padding: 0;
}

.relationship-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-family: 'Cinzel', Georgia, serif;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.relationship-heading strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(244, 200, 115, 0.34);
  border-radius: 50%;
  background: rgba(216, 170, 79, 0.16);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.relationship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.relationship-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 74px;
  overflow: hidden;
  border: 1px solid rgba(255, 239, 198, 0.18);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.07);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.relationship-card:hover,
.relationship-card:focus-visible {
  border-color: rgba(244, 200, 115, 0.66);
  background: rgba(216, 170, 79, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.relationship-card[aria-disabled="true"] {
  cursor: default;
}

.relationship-card[aria-disabled="true"]:hover {
  border-color: rgba(255, 239, 198, 0.18);
  background: rgba(255, 247, 230, 0.07);
  transform: none;
}

.relationship-card.no-image {
  grid-template-columns: minmax(0, 1fr);
}

article.relationship-card:hover {
  transform: none;
  border-color: rgba(255, 239, 198, 0.18);
  background: rgba(255, 247, 230, 0.07);
}

.relationship-card img {
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  min-height: 74px;
  object-fit: cover;
}

.relationship-card span,
.relationship-card strong {
  min-width: 0;
  padding-inline: 12px;
  overflow-wrap: break-word;
}

.relationship-card span {
  align-self: end;
  padding-top: 12px;
  color: rgba(255, 247, 230, 0.64);
  font-size: 0.76rem;
  line-height: 1.3;
}

.relationship-card strong {
  align-self: start;
  padding-bottom: 12px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.08rem;
}

.relationship-empty {
  margin: 0;
  color: rgba(255, 247, 230, 0.62);
  font-size: 0.92rem;
  line-height: 1.5;
}

.champion-list-page {
  position: relative;
  min-height: 100vh;
  padding: 28px clamp(18px, 3vw, 48px) 56px;
  background:
    linear-gradient(180deg, rgba(16, 15, 13, 0.54), #100f0d 420px),
    radial-gradient(circle at 20% 0%, rgba(216, 170, 79, 0.16), transparent 34%),
    #100f0d;
}

.champion-list-page:not([hidden]) {
  display: block;
}

.champion-list-header,
.champion-list-hero {
  position: relative;
  z-index: 2;
}

.champion-list-title, .champion-search { min-width: 0; }

.champion-list-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 24px;
  width: min(1180px, 100%);
  margin: clamp(44px, 8vh, 86px) auto 28px;
}

.champion-list-title h1 {
  max-width: none;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
}

.champion-search {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(216, 170, 79, 0.25);
  border-radius: 8px;
  background: rgba(14, 12, 10, 0.74);
  backdrop-filter: blur(18px);
}

.champion-search span {
  font-family: 'Cinzel', Georgia, serif;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.champion-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 239, 198, 0.22);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.08);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.champion-search input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(216, 170, 79, 0.14);
}

.champion-list-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.champion-list-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 239, 198, 0.18);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.07);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.champion-list-card:hover,
.champion-list-card:focus-visible {
  border-color: rgba(244, 200, 115, 0.7);
  background: rgba(216, 170, 79, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.champion-list-card::after {
  content: none;
}

.champion-list-card img {
  width: 100%;
  height: 100%;
  min-height: 248px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.champion-list-card:hover img,
.champion-list-card:focus-visible img {
  transform: none;
}

.champion-list-card span,
.champion-list-card strong {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  overflow-wrap: break-word;
}

.champion-list-card span {
  bottom: 48px;
  color: rgba(255, 247, 230, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

.champion-list-card strong {
  bottom: 16px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.05;
}

.champion-list-card.no-image {
  display: grid;
  align-content: end;
  padding: 14px;
}

.champion-list-card picture { position: relative; display: block; flex: none; aspect-ratio: 308 / 560; background: #0a1015; overflow: hidden; }
.champion-list-card picture img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }
.champion-card-copy { position: relative; z-index: 1; display: grid; align-content: start; flex: 1; gap: 7px; padding: 14px; background: linear-gradient(135deg, #191c21, #0c1015); }
.champion-list-card .champion-card-copy :is(span, strong) { position: static; padding: 0; }

.timeline-dock {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, calc(100vw - 36px));
  z-index: 4;
  padding: 16px 28px;
  border: 1px solid rgba(216, 170, 79, 0.25);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.8), rgba(14, 12, 10, 0.92));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  --steps: 12;
  --thumb-width: 16px;
  --half-thumb: 8px;
}

.timeline-labels {
  position: relative;
  width: 100%;
  height: 18px;
  padding: 0;
}

.timeline-label-item {
  position: absolute;
  top: 0;
  left: var(--timeline-position);
  transform: translateX(-50%);
  text-align: center;
  border: none;
  background: transparent;
  color: var(--accent);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
  padding: 4px;
  user-select: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.timeline-label-item:hover {
  opacity: 0.8;
  color: var(--accent-strong);
}

.timeline-label-item.active {
  opacity: 1;
  color: var(--accent-strong);
  text-shadow: 0 0 8px rgba(244, 200, 115, 0.5);
  transform: translateX(-50%) scale(1.04);
}

.timeline-slider-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0;
}

.timeline-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  background: transparent;
  outline: none;
  margin: 0;
  cursor: pointer;
}

/* Slider Track */
.timeline-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  background: rgba(216, 170, 79, 0.25);
  border-radius: 1px;
  transition: background 0.3s;
}

.timeline-range::-moz-range-track {
  width: 100%;
  height: 2px;
  background: rgba(216, 170, 79, 0.25);
  border-radius: 1px;
  transition: background 0.3s;
}

.timeline-range:hover::-webkit-slider-runnable-track {
  background: rgba(216, 170, 79, 0.4);
}

.timeline-range:hover::-moz-range-track {
  background: rgba(216, 170, 79, 0.4);
}

/* Slider Thumb */
.timeline-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f4c873;
  border: 2px solid #100f0d;
  box-shadow: 0 0 8px rgba(244, 200, 115, 0.8), 0 0 15px rgba(244, 200, 115, 0.4);
  margin-top: -7px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.timeline-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f4c873;
  border: 2px solid #100f0d;
  box-shadow: 0 0 8px rgba(244, 200, 115, 0.8), 0 0 15px rgba(244, 200, 115, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

.timeline-range:active::-webkit-slider-thumb {
  transform: scale(1.2);
  background: #fff;
}

.timeline-range:active::-moz-range-thumb {
  transform: scale(1.2);
  background: #fff;
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .story-stage {
    height: auto;
    min-height: 100svh;
    padding-bottom: 250px;
  }

  .mobile-story-art {
    display: block;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 24px auto 0;
    border: 1px solid rgba(216, 170, 79, 0.25);
    border-radius: 8px;
    overflow: hidden;
    background: #0d141e;
  }
  .mobile-story-art img { display: block; width: 100%; aspect-ratio: 1215 / 717; height: auto; object-fit: contain; }
  .background-layers, .champion-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: #0b1015;
  }
  .story-stage .bg-image, .champion-bg-image {
    display: block;
    inset: -24px;
    filter: blur(20px) saturate(1.35) brightness(.85);
    opacity: .78;
    transform: none;
    transition: none;
  }
  .story-stage .bg-vignette, .champion-bg-vignette {
    background: linear-gradient(180deg, #080d157a, #0b1015a8 45%, #100f0dc4);
  }

  .event-copy {
    width: calc(100vw - 36px);
    max-width: 100%;
    max-height: none;
    margin-top: 44px;
    overflow: visible;
    padding-right: 0;
  }

  h1 {
    max-width: 10ch;
  }

  .champion-panel {
    top: 50%;
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    max-width: 560px;
    margin-inline: auto;
  }

  .timeline-label-item {
    font-size: 0.5rem;
    letter-spacing: 0;
    padding: 2px;
  }

  .champion-page {
    min-height: 100svh;
    overflow: visible;
    padding-bottom: 56px;
  }

  .champion-hero {
    min-height: auto;
    padding-top: 44px;
  }

  .relationship-board {
    position: relative;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .fan-note {
    text-align: left;
  }

  .event-details {
    grid-template-columns: 1fr;
  }

  .event-copy {
    width: min(calc(100vw - 36px), 350px);
  }

  h1 {
    font-size: clamp(2.2rem, 7vw, 2.9rem);
    line-height: 1;
  }

  .detail-block {
    min-height: auto;
  }

  .timeline-return {
    min-height: 34px;
    font-size: 0.82rem;
  }

  .champion-facts {
    grid-template-columns: 1fr;
  }

  .story-stage .site-header, .champion-site-header, .champion-list-header { gap: 16px; }
  :is(.story-stage, .champion-page, .champion-list-page) .site-nav { margin-left: 0; justify-content: flex-start; gap: 8px; }
  :is(.story-stage, .champion-page, .champion-list-page) .site-nav a { min-height: 42px; padding-inline: 11px; font-size: .76rem; }
  .story-stage .event-copy { width: 100%; margin-top: 28px; }
  .champion-hero { padding-top: 28px; }
  .champion-panel-copy { padding: 16px; }
  .champion-panel-copy p { font-size: .93rem; line-height: 1.65; }
  .champion-panel .panel-close { position: sticky; float: right; margin: 10px 10px -54px 0; width: 44px; height: 44px; }
  .champion-panel img { max-height: 28dvh; object-fit: contain; background: #0d141e; }
  .panel-read-more { min-height: 44px; }
  .champion-list-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 34px; align-items: start; }
  .champion-list-title h1 { font-size: clamp(2.15rem, 8.3vw, 3.1rem); line-height: 1.15; }
  #championListLead { width: 100%; max-width: none; margin-top: 14px; font-size: .9rem; overflow-wrap: normal; }
  .champion-search { width: 100%; }
  .champion-view-options { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 0; margin: 0 0 18px; border: 0; }
  .champion-view-options legend { float: left; margin-right: auto; padding: 0; color: var(--muted); font-size: .78rem; }
  .champion-view-options button { min-height: 44px; padding: 0 16px; border: 1px solid #d8aa4f55; border-radius: 6px; background: #ffffff06; color: var(--muted); cursor: pointer; }
  .champion-view-options button[aria-pressed="true"] { border-color: var(--accent); color: #f6dda7; background: #d8aa4f1a; }
  .champion-view-options button:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
  .champion-list-grid { grid-template-columns: minmax(0, 1fr); }
  .champion-list-card { min-height: 0; aspect-ratio: auto; }
  .champion-list-grid[data-layout="double"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .champion-list-grid[data-layout="double"] .champion-list-card { aspect-ratio: auto; }
  .champion-list-grid[data-layout="double"] .champion-card-copy { gap: 6px; padding: 12px 10px; }
  .champion-list-grid[data-layout="double"] .champion-card-copy span { font-size: .64rem; line-height: 1.4; }
  .champion-list-grid[data-layout="double"] .champion-card-copy strong { font-size: clamp(.9rem, 3.5vw, 1.15rem); line-height: 1.2; }
}

@media (max-width: 600px) {
  .timeline-labels {
    height: 20px;
  }
  .timeline-label-item {
    display: none;
    flex: none;
  }
  .timeline-label-item.active {
    display: block;
    left: 50%;
    font-size: 0.82rem;
  }
}

@media (max-width: 430px) {
  .story-stage {
    padding-inline: 14px;
  }

  .event-copy {
    width: min(calc(100vw - 40px), 350px);
    margin-top: 34px;
  }

  h1 {
    font-size: clamp(2.2rem, 10.4vw, 2.85rem);
    line-height: 1;
  }

  .event-lead {
    line-height: 1.55;
  }

  .champion-page {
    padding-inline: 14px;
  }

  .champion-hero {
    padding-top: 34px;
  }

  .relationship-column {
    padding: 12px;
  }

  .relationship-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}


/* ============================================================
   RUNETERRA INTERACTIVE MAP & REGION MODAL STYLES
   ============================================================ */

.map-page {
  min-height: 100vh;
  padding: 24px clamp(16px, 3.5vw, 48px) 32px;
  background: radial-gradient(ellipse at 45% 0%, #21231c, #101615 55%, #0b100f);
}

.map-site-header { margin-bottom: 28px; }
.site-nav a.active { color: var(--accent-strong); border-color: var(--accent); }
.map-hero-intro { max-width: 1440px; margin: 0 auto 18px; }
.map-title-wrap .event-era { font-size: 0.7rem; letter-spacing: 0.18em; }
.map-title-wrap h1 {
  max-width: none;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 600;
  margin: 10px 0;
  color: #eee5cc;
}
.map-title-wrap .event-lead {
  max-width: 720px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #b9beb0;
}
.map-quick-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.map-filter-chip {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 3px;
  padding: 8px 11px;
  color: #b4bbaa;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 160ms, background 160ms, border-color 160ms;
}
.map-filter-chip:hover { color: #fff2cf; background: #ffffff08; }
.map-filter-chip.active { color: #ead6a2; border-color: #ac8c4a70; background: #b38c3410; }
.map-filter-chip:focus-visible,
.map-controls button:focus-visible,
.map-realm-link:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }

.map-viewport-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  border: 1px solid #9e8d5c66;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 44px #0005;
}
.map-container {
  position: relative;
  width: 100%;
  height: clamp(380px, 66vh, 760px);
  overflow: hidden;
  background: #142329;
  user-select: none;
  touch-action: none;
  cursor: grab;
  isolation: isolate;
}
.map-container:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: -3px; }
.map-container.is-dragging { cursor: grabbing; }
.map-scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.runeterra-map-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.map-markers-layer { position: absolute; inset: 0; pointer-events: none; }
.map-marker-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%) scale(var(--marker-scale, 1));
  pointer-events: auto;
  cursor: pointer;
  z-index: 1;
}
.marker-dot {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid #ecdcab;
  border-radius: 50%;
  background: #14201e;
  box-shadow: 0 2px 8px #000b, 0 0 0 3px #14201e80;
}
.marker-dot::after { content: ''; display: block; width: 6px; height: 6px; margin: 4px; border-radius: 50%; background: #d8bd76; }
.marker-label {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 2px;
  background: #0c181bba;
  color: #f7ebcd;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 3px #000;
  transition: background 160ms, color 160ms;
}
.map-marker-pin:hover,
.map-marker-pin:focus-visible,
.map-marker-pin.is-focused { z-index: 5; outline: none; }
.map-marker-pin:hover .marker-dot,
.map-marker-pin:focus-visible .marker-dot,
.map-marker-pin.is-focused .marker-dot { background: #c2a359; box-shadow: 0 0 0 5px #d2b96b40, 0 2px 8px #000b; }
.map-marker-pin:hover .marker-dot::after,
.map-marker-pin:focus-visible .marker-dot::after,
.map-marker-pin.is-focused .marker-dot::after { background: #fff5dc; }
.map-marker-pin:hover .marker-label,
.map-marker-pin:focus-visible .marker-label,
.map-marker-pin.is-focused .marker-label { background: #172721f2; color: #fff2c4; }
.map-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid #b6a17066;
  border-radius: 4px;
  background: #0c171de8;
  box-shadow: 0 4px 16px #0004;
  cursor: default;
  z-index: 10;
}
.map-controls button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 2px; background: transparent; color: #eee1c0; font-size: 1.4rem; cursor: pointer; }
.map-controls button:hover { background: #dbc68818; }
.map-controls button:disabled { opacity: 0.3; cursor: default; }
.map-controls output { min-width: 50px; font-size: 0.68rem; text-align: center; color: #cec4aa; font-variant-numeric: tabular-nums; }
.map-gesture-hint { position: absolute; bottom: 12px; left: 16px; margin: 0; padding: 5px 8px; border-radius: 2px; background: #0c171dbb; color: #bfc3b7; font-size: 0.68rem; pointer-events: none; }
.map-gesture-hint span { padding: 0 5px; color: #968058; }
.map-image-error { position: absolute; inset: 35% 12% auto; color: #e5d4a8; font-size: 0.9rem; text-align: center; }
.map-footer { max-width: 1440px; margin: 14px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.map-realms { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.map-realms-label { color: #89948b; font-size: 0.7rem; }
.map-realm-links { display: flex; gap: 8px; }
.map-realm-link { border: 1px solid #b6a17030; border-radius: 3px; padding: 7px 11px; background: #ffffff03; color: #c4cbbd; font-size: 0.75rem; cursor: pointer; }
.map-realm-link:hover { color: #f1dfaf; border-color: #b6a17080; }
.map-source-credit { font-size: 0.66rem; color: #939e92; text-decoration: none; }
.map-source-credit:hover { color: #ead6a2; }

/* Floating Hover Card */
.map-hover-card {
  position: absolute;
  width: min(300px, calc(100% - 24px));
  background: rgba(12, 23, 27, 0.97);
  border: 1px solid var(--card-accent, var(--accent));
  border-radius: 5px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  z-index: 30;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: popHover 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popHover {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hover-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hover-region-icon {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.hover-card-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  margin: 0 0 3px;
  color: #fff;
}

.hover-region-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hover-region-short {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #d8dee8;
  margin: 0 0 14px;
}

.hover-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hover-champ-count {
  font-size: 0.8rem;
  color: var(--accent-strong);
  font-weight: 500;
}

.hover-read-more-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  transition: transform 0.2s;
}

.map-hover-card:hover .hover-read-more-btn {
  transform: translateX(4px);
  color: var(--accent-strong);
}

/* ============================================================
   REGION DETAILED MODAL STYLES
   ============================================================ */

body.modal-open {
  overflow: hidden;
}

.region-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(14px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px clamp(16px, 4vw, 40px);
  animation: fadeInBackdrop 0.25s ease-out;
}

.region-modal-backdrop[hidden] {
  display: none !important;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.region-modal {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 88vh;
  background: linear-gradient(180deg, #131924 0%, #0b0f16 100%);
  border: 1px solid rgba(216, 170, 79, 0.35);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(216, 170, 79, 0.15);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.region-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 9999;
  pointer-events: auto;
}

.region-modal-close:hover {
  background: rgba(200, 48, 48, 0.7);
  border-color: #ff5555;
  transform: rotate(90deg);
}

.region-modal-hero {
  padding: 32px 36px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 10% 20%, rgba(216, 170, 79, 0.08), transparent 45%);
}

.region-modal-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.region-modal-icon {
  font-size: 1.8rem;
}

.region-modal-badge {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.region-modal-champs-count {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--muted);
}

.region-modal-hero h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
}

.region-modal-subtitle {
  font-size: 1.05rem;
  color: var(--accent-strong);
  margin: 0;
}

.region-modal-body {
  padding: 28px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.region-modal-story-wrap h3,
.champions-section-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  margin: 0 0 14px;
  color: #fff;
}

.region-modal-long-story {
  font-size: 1rem;
  line-height: 1.75;
  color: #dbe2ef;
  background: rgba(18, 24, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0;
}

.champions-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.champions-section-header span {
  font-size: 0.88rem;
  color: var(--accent);
  background: rgba(216, 170, 79, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(216, 170, 79, 0.2);
}

.region-champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.region-champ-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 24, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px 8px 8px;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.region-champ-card:hover {
  background: rgba(30, 42, 60, 0.95);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.region-champ-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--accent);
  flex-shrink: 0;
}

.region-champ-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.region-champ-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.region-champ-info strong {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.region-champ-info span {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.champ-card-arrow {
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

.region-champ-card:hover .champ-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.region-no-champs {
  color: var(--muted);
  font-style: italic;
  padding: 20px;
  text-align: center;
}

/* Responsive map and region detail */
@media (max-width: 900px) {
  .map-site-header { flex-wrap: wrap; margin-bottom: 22px; }
  .map-site-header .timeline-return { margin-left: 0; }
  .map-container { height: clamp(350px, 58vh, 620px); }
}
@media (max-width: 600px) {
  .map-page { padding-inline: 14px; }
  .map-site-header { gap: 12px; }
  .map-site-header { flex-direction: column; align-items: flex-start; }
  .map-site-header .brand { font-size: 1.5rem; }
  .map-site-header .site-nav { gap: 6px; }
  .map-site-header .site-nav a, .map-site-header .timeline-return { font-size: 0.72rem; }
  .map-title-wrap h1 { font-size: 1.8rem; }
  .map-title-wrap .event-lead { font-size: 0.8rem; }
  .map-quick-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .map-filter-chip { flex: 0 0 auto; padding-inline: 9px; }
  .map-container { height: 380px; }
  .marker-label { font-size: 0.6rem; padding: 3px 5px; }
  .map-controls { top: 10px; right: 10px; }
  .map-controls button { width: 32px; height: 32px; }
  .map-gesture-hint { left: 10px; bottom: 10px; font-size: 0.58rem; }
  .map-footer { gap: 12px; }
  .map-realms { gap: 9px; }
  .region-modal-hero, .region-modal-body { padding-inline: 20px; }
  .region-champions-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .map-page *, .region-modal, .region-modal-backdrop { animation: none; transition: none; }
}
