:root {
  --ink: #0d1210;
  --ink-2: #131a16;
  --ink-3: #1b2620;
  --paper: #f2ecdf;
  --paper-2: #f9f5ec;
  --paper-deep: #e4dcc9;
  --jade: #3f8a70;
  --jade-bright: #6db99a;
  --jade-dark: #23543f;
  --gold: #c8a45c;
  --gold-light: #e6cf96;
  --vermilion: #d04a33;
  --vermilion-dark: #a93424;
  --mist: #9db2a6;
  --text-dark: #232a26;
  --text-muted: #6c756f;
  --text-light: #e8e4da;
  --line-dark: rgba(224, 234, 227, 0.14);
  --line-paper: rgba(35, 42, 38, 0.16);
  --shadow-soft: 0 18px 50px rgba(7, 10, 8, 0.28);
  --shadow-card: 0 12px 30px rgba(8, 11, 9, 0.2);
  --radius: 8px;
  --font-display: "Noto Serif SC", "STSong", "SimSun", serif;
  --font-kai: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-light);
  background: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(200, 164, 92, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--text-dark);
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Nav */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(13, 18, 16, 0.86);
  border-bottom-color: var(--line-dark);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-seal,
.footer-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200, 164, 92, 0.7);
  color: var(--gold-light);
  font-family: var(--font-kai);
  font-size: 24px;
  border-radius: var(--radius);
  background: rgba(200, 164, 92, 0.08);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 14px;
  color: rgba(232, 228, 218, 0.78);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links .nav-cta {
  padding: 9px 16px;
  border: 1px solid rgba(208, 74, 51, 0.85);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(208, 74, 51, 0.9);
  font-weight: 700;
}

.nav-links .nav-cta:hover {
  background: var(--vermilion);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(13, 18, 16, 0.55);
  color: var(--text-light);
  font-size: 13px;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 150;
  width: min(360px, 88vw);
  padding: 88px 32px 32px;
  background: #111814;
  border-left: 1px solid var(--line-dark);
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

.nav-drawer.open {
  transform: translateX(0);
}

.drawer-close,
.modal-close,
.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(232, 228, 218, 0.08);
  color: var(--text-light);
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 20px;
}

.drawer-mark {
  margin: 0 0 28px;
  color: var(--gold);
  font-family: var(--font-kai);
  font-size: 26px;
}

.drawer-links {
  display: flex;
  flex-direction: column;
}

.drawer-links a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(232, 228, 218, 0.82);
  font-size: 16px;
}

.drawer-cta {
  display: block;
  margin-top: 28px;
  padding: 13px 18px;
  border-radius: var(--radius);
  background: var(--vermilion);
  color: #fff;
  text-align: center;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b100d;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.02);
  animation: heroZoom 18s ease-out both;
}

@keyframes heroZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.02);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 12, 0.96) 0%, rgba(10, 14, 12, 0.68) 46%, rgba(10, 14, 12, 0.12) 100%),
    linear-gradient(180deg, rgba(10, 14, 12, 0.38) 0%, rgba(10, 14, 12, 0.04) 34%, rgba(10, 14, 12, 0.88) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 96px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--gold-light);
  font-size: 14px;
}

.kicker-line {
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero-en {
  margin: 10px 0 0;
  color: rgba(232, 228, 218, 0.66);
  font-family: var(--font-display);
  font-size: 15px;
}

.hero-tagline {
  margin: 22px 0 0;
  color: var(--gold-light);
  font-family: var(--font-kai);
  font-size: 26px;
}

.hero-desc {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(232, 228, 218, 0.78);
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--vermilion);
  color: #fff;
  box-shadow: 0 12px 28px rgba(208, 74, 51, 0.26);
}

.btn-primary:hover {
  background: #e05a3f;
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgba(232, 228, 218, 0.38);
  color: var(--text-light);
  background: rgba(232, 228, 218, 0.06);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 58px;
  border-top: 1px solid rgba(232, 228, 218, 0.22);
}

.hero-stat {
  padding: 22px 18px 0 0;
}

.hero-stat + .hero-stat {
  border-left: 1px solid rgba(232, 228, 218, 0.16);
  padding-left: 22px;
}

.hero-stat strong {
  display: block;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
}

.hero-stat strong span {
  color: var(--gold-light);
  font-size: 18px;
  font-weight: 700;
}

.hero-stat small {
  display: block;
  margin-top: 4px;
  color: rgba(232, 228, 218, 0.58);
  font-size: 12px;
}

.hero-foot {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px max(28px, calc((100vw - 1240px) / 2));
  border-top: 1px solid rgba(232, 228, 218, 0.14);
  background: linear-gradient(180deg, transparent, rgba(8, 11, 9, 0.72));
  font-size: 13px;
  color: rgba(232, 228, 218, 0.66);
}

.hero-foot-label {
  color: var(--gold-light);
}

.hero-foot-quote {
  justify-self: end;
  font-family: var(--font-kai);
  font-size: 15px;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(232, 228, 218, 0.28);
  border-radius: 50%;
  animation: bob 2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 16px;
  height: 16px;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* Ticker */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: #0f1512;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  color: rgba(232, 228, 218, 0.7);
  font-family: var(--font-kai);
  font-size: 16px;
  white-space: nowrap;
}

.ticker-item::after {
  content: "◆";
  color: var(--gold);
  font-size: 9px;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Live data */
.section-live {
  background:
    linear-gradient(120deg, rgba(63, 138, 112, 0.13), transparent 42%),
    #101713;
}

.live-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.live-head .section-head {
  margin-bottom: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(109, 185, 154, 0.55);
  border-radius: var(--radius);
  color: var(--jade-bright);
  font-size: 13px;
  white-space: nowrap;
}

.live-badge svg {
  width: 16px;
  height: 16px;
}

.live-badge.offline {
  border-color: rgba(208, 74, 51, 0.6);
  color: #ff9b88;
}

.live-badge.pulse {
  animation: badgePulse 0.7s ease;
}

@keyframes badgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(109, 185, 154, 0.4);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(109, 185, 154, 0);
  }
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.live-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.live-label {
  color: rgba(232, 228, 218, 0.55);
  font-size: 12px;
}

.live-number {
  margin-top: 16px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.live-number span {
  color: var(--jade-bright);
  font-size: 16px;
  font-weight: 700;
}

.live-card.flash .live-number {
  animation: livePulse 0.8s ease;
}

.live-delta {
  margin: 12px 0 0;
  color: rgba(232, 228, 218, 0.6);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.live-delta.up {
  color: var(--jade-bright);
}

.live-delta.down {
  color: #ff9b88;
}

.live-delta.same {
  color: rgba(232, 228, 218, 0.34);
}

@keyframes livePulse {
  0% {
    color: #fff;
    transform: translateY(-2px);
  }
  100% {
    color: var(--gold-light);
    transform: translateY(0);
  }
}

.live-updated {
  margin: 18px 0 0;
  color: rgba(232, 228, 218, 0.48);
  font-size: 12px;
}

/* Sections */
.section {
  padding: 104px 0;
}

.section-paper {
  background: var(--paper);
  color: var(--text-dark);
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 24%),
    var(--ink-2);
}

.section-ink {
  background: #111713;
}

.section-scenes {
  background: var(--paper-deep);
  color: var(--text-dark);
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head-light {
  color: var(--text-light);
}

.section-index {
  margin: 0 0 12px;
  color: var(--vermilion);
  font-family: var(--font-kai);
  font-size: 15px;
}

.section-head-light .section-index {
  color: var(--gold-light);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.25;
}

.section-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.section-head-light .section-note {
  color: rgba(232, 228, 218, 0.56);
}

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 72px;
  align-items: center;
}

.story-copy p {
  margin: 0 0 18px;
  color: rgba(35, 42, 38, 0.82);
  font-size: 16px;
  line-height: 1.95;
}

.story-strong {
  display: block;
  padding-left: 18px;
  border-left: 3px solid var(--jade);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.story-tags span {
  padding: 6px 13px;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
}

.story-figure {
  margin: 0;
}

.figure-frame {
  padding: 8px;
  border: 1px solid var(--line-paper);
  background: var(--paper-2);
  box-shadow: var(--shadow-card);
}

.figure-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
}

.figure-frame figcaption {
  padding: 10px 4px 4px;
  color: var(--text-muted);
  font-family: var(--font-kai);
  font-size: 14px;
  text-align: right;
}

.story-figure blockquote {
  margin: 22px 0 0;
  color: var(--jade-dark);
  font-family: var(--font-kai);
  font-size: 22px;
  line-height: 1.7;
  text-align: center;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 88px;
  border-top: 1px solid var(--line-paper);
  border-bottom: 1px solid var(--line-paper);
}

.fact {
  padding: 22px 20px 22px 0;
}

.fact + .fact {
  padding-left: 20px;
  border-left: 1px solid var(--line-paper);
}

.fact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.fact strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

/* Realms */
.realm-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.realm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 6px;
}

.realm-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(232, 228, 218, 0.68);
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.realm-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-light);
}

.realm-item.active {
  border-color: rgba(109, 185, 154, 0.65);
  background: rgba(63, 138, 112, 0.16);
  color: #fff;
}

.realm-index {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 15px;
}

.realm-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.realm-stage {
  grid-column: 2;
  margin-top: -8px;
  color: rgba(232, 228, 218, 0.42);
  font-size: 12px;
}

.realm-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 440px;
  padding: 52px 56px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(63, 138, 112, 0.1), transparent 42%),
    #17201b;
}

.realm-panel::before {
  content: "";
  position: absolute;
  inset: 24px 24px auto auto;
  width: 64px;
  height: 64px;
  border-top: 1px solid rgba(200, 164, 92, 0.55);
  border-right: 1px solid rgba(200, 164, 92, 0.55);
}

.realm-panel::after {
  content: "";
  position: absolute;
  inset: auto auto 24px 24px;
  width: 64px;
  height: 64px;
  border-bottom: 1px solid rgba(200, 164, 92, 0.4);
  border-left: 1px solid rgba(200, 164, 92, 0.4);
}

.realm-kicker {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-family: var(--font-kai);
  font-size: 15px;
}

.realm-panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
}

.realm-subtitle {
  margin: 0 0 30px;
  color: var(--jade-bright);
  font-family: var(--font-kai);
  font-size: 20px;
}

.realm-desc {
  max-width: 620px;
  margin: 0;
  color: rgba(232, 228, 218, 0.78);
  font-size: 16px;
  line-height: 2;
}

.realm-mark {
  display: inline-block;
  margin-top: 32px;
  padding: 8px 14px;
  border: 1px solid rgba(208, 74, 51, 0.7);
  border-radius: var(--radius);
  color: #ffb9a9;
  font-size: 13px;
}

.realm-progress {
  display: grid;
  grid-template-columns: repeat(13, minmax(4px, 1fr));
  gap: 6px;
  max-width: 520px;
  margin-top: 38px;
}

.realm-progress-seg {
  height: 5px;
  border-radius: 3px;
  background: rgba(232, 228, 218, 0.16);
  transition: background 0.3s ease;
}

.realm-progress-seg.active {
  background: linear-gradient(90deg, var(--jade-bright), var(--gold));
}

.realm-next {
  margin: 38px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(224, 234, 227, 0.1);
  color: rgba(232, 228, 218, 0.52);
  font-family: var(--font-kai);
  font-size: 16px;
}

/* Characters */
.char-filter,
.ency-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.chip {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  border-color: var(--jade);
  color: var(--jade-dark);
}

.chip.active {
  border-color: var(--jade);
  background: var(--jade);
  color: #fff;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.char-card {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #18201b;
  color: var(--text-light);
  text-align: left;
  aspect-ratio: 3 / 4;
}

.char-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.char-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 12, 0.08) 34%, rgba(9, 13, 11, 0.97) 100%);
}

.char-card:hover img {
  transform: scale(1.06);
}

.char-info {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 18px 16px 16px;
}

.char-category {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold-light);
  font-family: var(--font-kai);
  font-size: 13px;
}

.char-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.char-identity {
  margin: 5px 0 0;
  color: rgba(232, 228, 218, 0.62);
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.char-quote {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding: 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(8, 11, 9, 0.98));
  color: var(--paper);
  font-family: var(--font-kai);
  font-size: 16px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.char-card:hover .char-quote,
.char-card:focus-visible .char-quote {
  opacity: 1;
  transform: translateY(0);
}

/* Arcs */
.arcs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -28px 0 22px;
}

.arcs-count {
  color: rgba(232, 228, 218, 0.52);
  font-family: var(--font-kai);
  font-size: 14px;
}

.arc-arrows {
  display: flex;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--gold);
  background: rgba(200, 164, 92, 0.12);
  color: var(--gold-light);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.arcs-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: none;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding: 4px 4px 20px;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 164, 92, 0.45) transparent;
  cursor: grab;
  user-select: none;
}

.arcs-track:active {
  cursor: grabbing;
}

.arc-card img,
.scene-card img {
  -webkit-user-drag: none;
  user-select: none;
}

.arcs-track::-webkit-scrollbar,
.scene-strip::-webkit-scrollbar {
  height: 6px;
}

.arcs-track::-webkit-scrollbar-thumb,
.scene-strip::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(200, 164, 92, 0.45);
}

.arcs-track::-webkit-scrollbar-track,
.scene-strip::-webkit-scrollbar-track {
  background: transparent;
}

.arc-card {
  flex: 0 0 360px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #17201b;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.arc-card:hover {
  border-color: rgba(200, 164, 92, 0.55);
  transform: translateY(-4px);
}

.arc-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.arc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.arc-card:hover .arc-media img {
  transform: scale(1.05);
}

.arc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(9, 13, 11, 0.9));
}

.arc-num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: rgba(13, 18, 16, 0.78);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 13px;
}

.arc-date {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: rgba(232, 228, 218, 0.72);
  font-size: 12px;
}

.arc-body {
  padding: 22px 22px 24px;
}

.arc-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
}

.arc-range {
  margin: 6px 0 0;
  color: var(--jade-bright);
  font-size: 13px;
}

.arc-desc {
  margin: 14px 0 0;
  color: rgba(232, 228, 218, 0.68);
  font-size: 14px;
  line-height: 1.8;
}

.arc-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.arc-events span {
  padding: 4px 10px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: rgba(232, 228, 218, 0.62);
  font-size: 12px;
}

.arcs-progress {
  height: 3px;
  margin-top: 4px;
  background: rgba(232, 228, 218, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.arcs-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--jade-bright), var(--gold));
  transition: width 0.25s ease;
}

/* World */
.world-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.world-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 8px 24px rgba(32, 38, 34, 0.05);
}

.world-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(63, 138, 112, 0.5);
  border-radius: var(--radius);
  background: rgba(63, 138, 112, 0.1);
  color: var(--jade-dark);
  font-family: var(--font-kai);
  font-size: 26px;
}

.world-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}

.world-tag {
  display: inline-block;
  margin: 6px 0 8px;
  color: var(--vermilion);
  font-size: 12px;
}

.world-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.85;
}

/* Moments */
.moment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.moment-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-paper);
  background: var(--paper-2);
  box-shadow: 0 10px 28px rgba(32, 38, 34, 0.08);
}

.moment-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.moment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.moment-card:hover .moment-media img {
  transform: scale(1.05);
}

.moment-body {
  padding: 18px 18px 20px;
}

.moment-tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--vermilion);
  font-size: 12px;
}

.moment-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
}

.moment-body p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.85;
}

/* Library */
.library-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(320px, 100%);
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-dark);
  font-size: 14px;
}

.ency-filter {
  margin-bottom: 0;
}

.ency-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.ency-card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: inherit;
  text-align: left;
  box-shadow: 0 8px 24px rgba(32, 38, 34, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ency-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(32, 38, 34, 0.12);
}

.ency-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e3ddcd;
}

.ency-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ency-card:hover .ency-media img {
  transform: scale(1.06);
}

.ency-body {
  padding: 16px;
}

.ency-category {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--vermilion);
  font-size: 12px;
}

.ency-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}

.ency-body p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-family: var(--font-kai);
  font-size: 14px;
  line-height: 1.8;
}

.empty-state {
  padding: 40px 0;
  color: var(--text-muted);
  text-align: center;
}

/* Scenes */
.scene-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: none;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding-bottom: 18px;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(63, 138, 112, 0.5) transparent;
  cursor: grab;
  user-select: none;
}

.scene-strip:active {
  cursor: grabbing;
}

.scene-card {
  flex: 0 0 270px;
  overflow: hidden;
  border: 1px solid rgba(35, 42, 38, 0.16);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.scene-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.scene-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-body {
  padding: 14px 16px 16px;
}

.scene-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}

.scene-body p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-family: var(--font-kai);
  font-size: 13px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: #141b17;
  padding: 0;
}

.gallery-item--feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 11, 9, 0.88));
  opacity: 0.72;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-meta {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 18px;
}

.gallery-type {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--gold-light);
  font-family: var(--font-kai);
  font-size: 13px;
}

.gallery-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

/* News */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 56px;
  align-items: start;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  padding: 24px;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.news-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.news-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: rgba(63, 138, 112, 0.12);
  color: var(--jade-dark);
  font-size: 12px;
  font-weight: 700;
}

.news-date {
  color: var(--text-muted);
  font-size: 12px;
}

.news-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
}

.news-card p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.broadcast-panel {
  padding: 28px;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.broadcast-panel h3 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
}

.broadcast-list {
  position: relative;
  padding-left: 22px;
  border-left: 1px solid var(--line-paper);
}

.broadcast-item {
  position: relative;
  padding: 0 0 18px;
}

.broadcast-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 4px rgba(63, 138, 112, 0.18);
}

.broadcast-date {
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.broadcast-note {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.latest-ep {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-paper);
}

.latest-label {
  display: block;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.latest-ep-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
}

.latest-ep-row img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
}

.latest-ep-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
}

.latest-ep-row span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

/* Spinoffs */
.spinoff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.spinoff-card {
  padding: 24px;
  border: 1px solid rgba(35, 42, 38, 0.16);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.spinoff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(32, 38, 34, 0.12);
}

.spinoff-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.spinoff-type {
  padding: 4px 10px;
  border-radius: var(--radius);
  background: rgba(63, 138, 112, 0.12);
  color: var(--jade-dark);
  font-size: 12px;
  font-weight: 700;
}

.spinoff-date {
  color: var(--text-muted);
  font-size: 12px;
}

.spinoff-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
}

.spinoff-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.85;
}

.spinoff-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--vermilion);
  font-size: 13px;
  font-weight: 700;
}

/* Credits */
.credits-headline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.credit-stat {
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.credit-stat span {
  display: block;
  margin-bottom: 8px;
  color: rgba(232, 228, 218, 0.5);
  font-size: 12px;
}

.credit-stat strong {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
}

.credits-sub {
  margin-bottom: 36px;
}

.credits-sub h3 {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.cast-grid,
.crew-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.cast-card,
.crew-card {
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.cast-card strong,
.crew-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.cast-card span,
.crew-card span {
  display: block;
  margin-top: 4px;
  color: rgba(232, 228, 218, 0.52);
  font-size: 12px;
}

.credits-details {
  margin-top: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.credits-details summary {
  padding: 18px 22px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.credits-details summary::before {
  content: "＋ ";
  color: var(--gold);
}

.credits-details[open] summary::before {
  content: "－ ";
}

.credits-details .credits-grid {
  padding: 8px 20px 22px;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.credit-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.credit-label {
  color: var(--gold-light);
  font-size: 13px;
}

.credit-value {
  color: rgba(232, 228, 218, 0.82);
  font-size: 14px;
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line-dark);
  background: #0a0e0c;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 17px;
}

.footer-brand p,
.footer-meta p {
  margin: 3px 0 0;
  color: rgba(232, 228, 218, 0.5);
  font-size: 12px;
}

.footer-meta {
  max-width: 560px;
  text-align: right;
}

.footer-meta a {
  color: var(--gold-light);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(7, 10, 8, 0.94);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
}

.lightbox-figure {
  max-width: min(1180px, 92vw);
  max-height: 88vh;
  margin: 0;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-figure figcaption {
  padding: 14px 4px 0;
  color: rgba(232, 228, 218, 0.76);
  font-family: var(--font-kai);
  font-size: 16px;
  text-align: center;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 8, 0.82);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  width: min(920px, 100%);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #17201b;
  box-shadow: var(--shadow-soft);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(13, 18, 16, 0.72);
}

.modal-media {
  min-height: 420px;
  background: #101612;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  padding: 46px 44px 40px;
}

.modal-kicker {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-family: var(--font-kai);
  font-size: 14px;
}

.modal-content h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
}

.modal-quote {
  margin: 0 0 22px;
  color: var(--jade-bright);
  font-family: var(--font-kai);
  font-size: 18px;
}

.modal-bio {
  margin: 0;
  color: rgba(232, 228, 218, 0.76);
  font-size: 15px;
  line-height: 2;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .char-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ency-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fact-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

  .world-grid,
  .moment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cast-grid,
  .crew-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .realm-layout {
    grid-template-columns: 1fr;
  }

  .realm-list {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .realm-item {
    flex: 0 0 150px;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .realm-stage {
    grid-column: 1;
    margin-top: 0;
  }

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

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

  .news-layout {
    grid-template-columns: 1fr;
  }

  .credits-grid {
    grid-template-columns: 1fr;
  }

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

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

  .credits-headline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .section-head h2 {
    font-size: 32px;
  }

  .hero-inner {
    padding: 112px 0 110px;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-tagline {
    font-size: 21px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
  }

  .hero-stat + .hero-stat {
    border-left: 1px solid rgba(232, 228, 218, 0.16);
    padding-left: 16px;
  }

  .hero-stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .hero-foot {
    grid-template-columns: 1fr auto;
  }

  .hero-foot-quote {
    display: none;
  }

  .fact-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact:nth-child(3),
  .fact:nth-child(5) {
    border-left: 0;
    padding-left: 0;
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .gallery-item--feature {
    grid-column: span 2;
    grid-row: span 2;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .world-grid,
  .moment-grid,
  .spinoff-grid {
    grid-template-columns: 1fr;
  }

  .cast-grid,
  .crew-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .arcs-toolbar {
    margin-top: -16px;
  }

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

  .live-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .realm-panel {
    min-height: 340px;
    padding: 40px 32px;
  }

  .realm-panel h3 {
    font-size: 34px;
  }


  .modal-card {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-media {
    min-height: 260px;
    max-height: 46vh;
  }

  .modal-content {
    padding: 32px 24px 30px;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: 42px;
  }

  .hero-en {
    font-size: 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .arc-card {
    flex-basis: 300px;
  }

  .char-grid {
    gap: 12px;
  }

  .char-info {
    padding: 13px 12px;
  }

  .char-name {
    font-size: 17px;
  }

  .char-identity {
    font-size: 11px;
  }

  .ency-grid {
    gap: 12px;
  }

  .ency-body {
    padding: 13px;
  }

  .scene-card {
    flex-basis: 230px;
  }

  .credit-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cast-grid,
  .crew-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credits-headline {
    grid-template-columns: 1fr;
  }

  .live-number {
    font-size: 21px;
  }

  .live-card {
    min-height: 132px;
    padding: 16px;
  }
}
