.wiki-body {
  --wiki-shell: min(1320px, calc(100% - 32px));
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 14%, rgba(120, 16, 33, 0.16), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(97, 14, 29, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(18, 7, 11, 0.98), rgba(9, 4, 7, 1) 54%, rgba(7, 3, 5, 1));
}

.wiki-body .haunt-whisper {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.wiki-header .menu li.is-current {
  color: #fff4f7;
  border-color: rgba(163, 34, 56, 0.34);
  background: linear-gradient(180deg, rgba(55, 14, 24, 0.86), rgba(22, 7, 12, 0.92));
  box-shadow:
    0 0 0 1px rgba(112, 20, 38, 0.18),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.wiki-header__actions {
  margin-left: auto;
  flex: 0 0 auto;
}

@media (min-width: 1141px) {
  .wiki-body .header-nav {
    justify-content: flex-end;
  }

  .wiki-body .menu {
    left: calc(50% - 18px);
    max-width: calc(100% - 430px);
  }
}

.wiki-main {
  width: var(--wiki-shell);
  margin: 0 auto;
  padding: 146px 0 88px;
}

.wiki-hero,
.wiki-timeline,
.wiki-map-section,
.wiki-related {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(120, 20, 40, 0.22);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(31, 11, 17, 0.96), rgba(12, 5, 8, 0.98)),
    radial-gradient(circle at top, rgba(119, 20, 39, 0.08), transparent 48%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 54px rgba(0, 0, 0, 0.28);
}

.wiki-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  padding: 42px;
  margin-bottom: 26px;
}

.wiki-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(141, 30, 49, 0.34);
  background: linear-gradient(180deg, rgba(47, 14, 22, 0.76), rgba(19, 8, 12, 0.9));
  color: rgba(232, 205, 212, 0.82);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.wiki-chip--ghost {
  background: rgba(21, 9, 13, 0.68);
}

.wiki-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.wiki-hero h1,
.wiki-section-head h2,
.wiki-toc h2,
.wiki-related-card h3,
.wiki-map__detail h3,
.wiki-chapter h2 {
  color: #f6edf0;
}

.wiki-hero h1 {
  margin: 20px 0 12px;
  font-size: clamp(3rem, 5.2vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wiki-hero__meta {
  margin: 0 0 18px;
  color: rgba(224, 198, 205, 0.72);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wiki-hero__lead {
  max-width: 760px;
  margin: 0 0 16px;
  color: rgba(223, 212, 216, 0.84);
  font-size: 1.05rem;
  line-height: 1.82;
}

.wiki-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.wiki-book-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 24px;
  border: 1px solid rgba(150, 31, 51, 0.36);
  border-radius: 18px;
  background: linear-gradient(180deg, #761322 0%, #2e0810 100%);
  color: #fdf0f3;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.wiki-book-toggle:hover,
.wiki-book-toggle.is-active {
  transform: translateY(-2px);
  border-color: rgba(211, 90, 117, 0.58);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.32),
    0 0 18px rgba(111, 12, 30, 0.22);
}

.wiki-hero__artifact {
  display: flex;
  align-items: stretch;
}

.wiki-hero__plate {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(115, 20, 39, 0.24);
  border-radius: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(142, 22, 45, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(36, 12, 18, 0.96), rgba(10, 5, 7, 0.98));
}

.wiki-hero__plate::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(155, 44, 66, 0.16);
  pointer-events: none;
}

.wiki-hero__plate-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 22px;
  color: rgba(224, 198, 205, 0.64);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.wiki-hero__moon {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(90, 10, 22, 0.55), rgba(10, 3, 6, 0) 60%),
    linear-gradient(180deg, #05020a 0%, #0b030a 55%, #1a070e 100%);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.75),
    inset 0 0 120px rgba(80, 8, 20, 0.35);
}

.moon-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.moon-stars i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffe6ea;
  box-shadow: 0 0 6px rgba(255, 180, 200, 0.8);
  opacity: 0.85;
  animation: moon-twinkle var(--d, 3s) ease-in-out infinite;
  animation-delay: var(--s, 0s);
}

@keyframes moon-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1.2); }
}

.moon-halo {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 82%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(220, 40, 70, 0.55) 0%, rgba(140, 18, 36, 0.28) 34%, rgba(40, 6, 14, 0) 68%);
  filter: blur(4px);
  animation: moon-halo-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes moon-halo-pulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

.moon-body {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 50%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, #ffd8de 0%, #f67087 14%, #c21a38 42%, #740a1e 78%, #2a0510 100%);
  box-shadow:
    0 0 40px rgba(230, 50, 80, 0.55),
    0 0 90px rgba(160, 20, 40, 0.38),
    inset -12px -16px 32px rgba(20, 2, 6, 0.85),
    inset 8px 10px 24px rgba(255, 180, 200, 0.18);
  animation: moon-glow 6s ease-in-out infinite;
}

@keyframes moon-glow {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.12); }
}

.moon-crater {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, rgba(28, 4, 10, 0.7), rgba(90, 12, 28, 0.25) 70%, transparent 100%);
  box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.moon-crater--a { width: 18%; height: 18%; top: 22%; left: 30%; }
.moon-crater--b { width: 12%; height: 12%; top: 56%; left: 56%; }
.moon-crater--c { width: 9%;  height: 9%;  top: 40%; left: 62%; }
.moon-crater--d { width: 14%; height: 14%; top: 66%; left: 26%; }

.moon-shadow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 72% 68%, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
  pointer-events: none;
}

.moon-cloud {
  position: absolute;
  left: -40%;
  width: 180%;
  height: 14%;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(10, 3, 6, 0.9) 20%, rgba(20, 6, 10, 0.95) 45%, rgba(10, 3, 6, 0.88) 70%, transparent 100%);
  filter: blur(8px);
  pointer-events: none;
}

.moon-cloud--back  { top: 30%; height: 10%; opacity: 0.7; animation: moon-drift 22s linear infinite; }
.moon-cloud--mid   { top: 44%; height: 16%; opacity: 0.85; animation: moon-drift 16s linear infinite reverse; animation-delay: -4s; }
.moon-cloud--front { top: 58%; height: 12%; opacity: 0.9; animation: moon-drift 12s linear infinite; animation-delay: -7s; }

@keyframes moon-drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(28%); }
}

.moon-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(120, 14, 32, 0.55) 0%, rgba(10, 3, 6, 0) 70%),
    linear-gradient(180deg, rgba(10, 3, 6, 0), rgba(4, 1, 3, 1));
  pointer-events: none;
}

.moon-ground::before,
.moon-ground::after {
  content: "";
  position: absolute;
  bottom: 0;
  background: #04010a;
  filter: drop-shadow(0 -2px 6px rgba(0, 0, 0, 0.7));
}

.moon-ground::before {
  left: 8%;
  width: 38%;
  height: 60%;
  clip-path: polygon(0% 100%, 8% 40%, 18% 60%, 30% 22%, 44% 48%, 58% 30%, 72% 56%, 86% 38%, 100% 64%, 100% 100%);
}

.moon-ground::after {
  right: 4%;
  width: 46%;
  height: 80%;
  clip-path: polygon(0% 100%, 6% 62%, 16% 36%, 26% 54%, 40% 18%, 54% 44%, 68% 28%, 82% 52%, 94% 30%, 100% 58%, 100% 100%);
}

@media (prefers-reduced-motion: reduce) {
  .moon-stars i,
  .moon-halo,
  .moon-body,
  .moon-cloud {
    animation: none;
  }
}

.wiki-hero__sigil {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
}

.wiki-hero__sigil-ring,
.wiki-hero__sigil-line,
.wiki-hero__sigil-core,
.wiki-hero__sigil-halo,
.wiki-hero__sigil-pulse,
.wiki-hero__sigil-ticks,
.wiki-hero__sigil-runes,
.wiki-hero__sigil-shard {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wiki-hero__sigil-halo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 36, 58, 0.22), rgba(40, 6, 14, 0) 62%);
  animation: world-halo 6s ease-in-out infinite;
}

.wiki-hero__sigil-ring {
  border-radius: 50%;
  border: 1px solid rgba(168, 48, 71, 0.24);
}

.wiki-hero__sigil-ring--outer {
  width: 92%;
  height: 92%;
  border-color: rgba(168, 48, 71, 0.28);
  border-top-color: rgba(255, 186, 200, 0.55);
  border-right-color: rgba(222, 112, 134, 0.35);
  animation: world-spin 18s linear infinite;
}

.wiki-hero__sigil-ring--mid {
  width: 72%;
  height: 72%;
  border-style: dashed;
  border-color: rgba(220, 90, 118, 0.22);
  animation: world-spin 28s linear infinite reverse;
}

.wiki-hero__sigil-ring--inner {
  width: 50%;
  height: 50%;
  border-color: rgba(222, 112, 134, 0.32);
  border-bottom-color: rgba(255, 186, 200, 0.58);
  animation: world-spin 11s linear infinite;
}

.wiki-hero__sigil-ticks {
  width: 84%;
  height: 84%;
  border-radius: 50%;
  animation: world-spin 40s linear infinite;
}

.wiki-hero__sigil-ticks i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 8px;
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(255, 186, 200, 0.7), rgba(222, 112, 134, 0));
  transform-origin: 1px calc(42% * 2);
}

.wiki-hero__sigil-ticks i:nth-child(1)  { transform: rotate(0deg); }
.wiki-hero__sigil-ticks i:nth-child(2)  { transform: rotate(30deg); }
.wiki-hero__sigil-ticks i:nth-child(3)  { transform: rotate(60deg); }
.wiki-hero__sigil-ticks i:nth-child(4)  { transform: rotate(90deg); }
.wiki-hero__sigil-ticks i:nth-child(5)  { transform: rotate(120deg); }
.wiki-hero__sigil-ticks i:nth-child(6)  { transform: rotate(150deg); }
.wiki-hero__sigil-ticks i:nth-child(7)  { transform: rotate(180deg); }
.wiki-hero__sigil-ticks i:nth-child(8)  { transform: rotate(210deg); }
.wiki-hero__sigil-ticks i:nth-child(9)  { transform: rotate(240deg); }
.wiki-hero__sigil-ticks i:nth-child(10) { transform: rotate(270deg); }
.wiki-hero__sigil-ticks i:nth-child(11) { transform: rotate(300deg); }
.wiki-hero__sigil-ticks i:nth-child(12) { transform: rotate(330deg); }

.wiki-hero__sigil-runes {
  width: 66%;
  height: 66%;
  border-radius: 50%;
  animation: world-spin 24s linear infinite reverse;
}

.wiki-hero__sigil-runes b {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -55%);
  color: rgba(255, 200, 214, 0.72);
  font-size: 14px;
  letter-spacing: 0;
  text-shadow: 0 0 8px rgba(180, 36, 58, 0.55);
}

.wiki-hero__sigil-runes b:nth-child(1) { transform-origin: 50% 150%; transform: translate(-50%, -55%) rotate(0deg); }
.wiki-hero__sigil-runes b:nth-child(2) { transform-origin: 50% 150%; transform: translate(-50%, -55%) rotate(60deg); }
.wiki-hero__sigil-runes b:nth-child(3) { transform-origin: 50% 150%; transform: translate(-50%, -55%) rotate(120deg); }
.wiki-hero__sigil-runes b:nth-child(4) { transform-origin: 50% 150%; transform: translate(-50%, -55%) rotate(180deg); }
.wiki-hero__sigil-runes b:nth-child(5) { transform-origin: 50% 150%; transform: translate(-50%, -55%) rotate(240deg); }
.wiki-hero__sigil-runes b:nth-child(6) { transform-origin: 50% 150%; transform: translate(-50%, -55%) rotate(300deg); }

.wiki-hero__sigil-core {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(254, 227, 231, 0.92), rgba(220, 90, 118, 0.5) 34%, rgba(67, 11, 22, 0.2) 62%, transparent 80%);
  box-shadow:
    0 0 32px rgba(160, 23, 46, 0.28),
    0 0 74px rgba(82, 10, 22, 0.22);
  animation: world-core-pulse 3.2s ease-in-out infinite;
}

.wiki-hero__sigil-pulse {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(255, 186, 200, 0.45);
  animation: world-pulse-out 3.2s ease-out infinite;
}

.wiki-hero__sigil-line {
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(222, 112, 134, 0.42), transparent);
  animation: world-spin 14s linear infinite;
  transform-origin: center;
}

.wiki-hero__sigil-line--two {
  transform: translate(-50%, -50%) rotate(90deg);
  animation-delay: -3.5s;
}

.wiki-hero__sigil-shard {
  width: 10px;
  height: 10px;
  background: rgba(60, 10, 20, 0.85);
  border: 1px solid rgba(222, 112, 134, 0.55);
  box-shadow: 0 0 10px rgba(180, 36, 58, 0.45);
}

.wiki-hero__sigil-shard--a { animation: world-shard-a 9s linear infinite; }
.wiki-hero__sigil-shard--b { animation: world-shard-b 13s linear infinite; }
.wiki-hero__sigil-shard--c { animation: world-shard-c 17s linear infinite; }

@keyframes world-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes world-halo {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes world-core-pulse {
  0%, 100% { box-shadow: 0 0 32px rgba(160, 23, 46, 0.28), 0 0 74px rgba(82, 10, 22, 0.22); }
  50%      { box-shadow: 0 0 48px rgba(230, 70, 100, 0.55), 0 0 110px rgba(120, 15, 32, 0.42); }
}

@keyframes world-pulse-out {
  0%   { opacity: 0.8; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(2.6); }
}

@keyframes world-shard-a {
  0%   { transform: translate(-50%, -50%) rotate(0deg)   translate(118px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translate(118px) rotate(-360deg); }
}

@keyframes world-shard-b {
  0%   { transform: translate(-50%, -50%) rotate(120deg) translate(96px) rotate(-120deg); }
  100% { transform: translate(-50%, -50%) rotate(-240deg) translate(96px) rotate(240deg); }
}

@keyframes world-shard-c {
  0%   { transform: translate(-50%, -50%) rotate(240deg) translate(132px) rotate(-240deg); }
  100% { transform: translate(-50%, -50%) rotate(600deg) translate(132px) rotate(-600deg); }
}

@media (prefers-reduced-motion: reduce) {
  .wiki-hero__sigil-halo,
  .wiki-hero__sigil-ring,
  .wiki-hero__sigil-ticks,
  .wiki-hero__sigil-runes,
  .wiki-hero__sigil-core,
  .wiki-hero__sigil-pulse,
  .wiki-hero__sigil-line,
  .wiki-hero__sigil-shard {
    animation: none;
  }
}

.wiki-hero__fragments {
  display: grid;
  gap: 10px;
  color: rgba(228, 206, 212, 0.74);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.wiki-layout {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
}

.wiki-toc {
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 136px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 80, 104, 0.52) transparent;
  transition:
    top 0.28s ease,
    transform 0.28s ease,
    opacity 0.28s ease;
  will-change: top, transform;
}

.wiki-toc::-webkit-scrollbar {
  width: 8px;
}

.wiki-toc::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(184, 64, 89, 0.52), rgba(103, 22, 39, 0.66));
}

.wiki-toc::-webkit-scrollbar-track {
  background: rgba(17, 7, 10, 0.24);
}

.wiki-toc__inner,
.wiki-chronicle,
.wiki-era-card,
.wiki-map__detail,
.wiki-related-card {
  border: 1px solid rgba(116, 20, 39, 0.22);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(29, 11, 16, 0.96), rgba(10, 5, 7, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

.wiki-toc__inner {
  padding: 24px 20px;
}

.wiki-toc h2 {
  margin: 16px 0 18px;
  font-size: 2rem;
  text-transform: uppercase;
}

.wiki-toc__nav {
  display: grid;
  gap: 10px;
}

.wiki-toc__nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(223, 208, 213, 0.76);
  text-decoration: none;
  line-height: 1.45;
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
  border: 1px solid transparent;
}

.wiki-toc__nav a:hover,
.wiki-toc__nav a.is-active {
  color: #fff6f8;
  border-color: rgba(144, 29, 48, 0.28);
  background: linear-gradient(180deg, rgba(49, 14, 22, 0.84), rgba(21, 8, 12, 0.9));
  transform: translateX(3px);
}

.wiki-chronicle {
  padding: 32px;
}

.wiki-chapter {
  padding: 28px 0;
  border-bottom: 1px solid rgba(115, 18, 34, 0.18);
  scroll-margin-top: 120px;
}

.wiki-chapter:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}

.wiki-chapter__eyebrow,
.wiki-related-card__tag,
.wiki-map__detail-tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: rgba(224, 199, 206, 0.58);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wiki-chapter h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
}

.wiki-chapter p,
.wiki-related-card p,
.wiki-map__detail p {
  margin: 0 0 16px;
  color: rgba(223, 214, 217, 0.82);
  line-height: 1.88;
  font-size: 1rem;
}

.wiki-chapter__art {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(120, 25, 44, 0.24);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(31, 11, 17, 0.96), rgba(9, 5, 7, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 38px rgba(0, 0, 0, 0.24);
}

.wiki-chapter__art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  filter: saturate(0.94) brightness(0.84);
}

.wiki-chapter__art figcaption {
  padding: 14px 18px 16px;
  color: rgba(227, 204, 211, 0.64);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  line-height: 1.5;
}

.wiki-note,
.wiki-gap {
  color: rgba(241, 220, 225, 0.92);
}

.wiki-quote {
  margin: 24px 0;
  padding: 18px 20px 18px 24px;
  border-left: 2px solid rgba(165, 45, 68, 0.48);
  background: linear-gradient(180deg, rgba(56, 16, 25, 0.5), rgba(18, 8, 11, 0.82));
  border-radius: 0 18px 18px 0;
}

.wiki-quote cite {
  display: block;
  margin-top: 14px;
  color: rgba(226, 200, 207, 0.6);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.wiki-damage {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(153, 36, 57, 0.24);
  background: linear-gradient(180deg, rgba(62, 17, 27, 0.52), rgba(17, 8, 11, 0.9));
}

.wiki-damage strong {
  display: block;
  margin-bottom: 8px;
  color: #ffeef1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.wiki-damage--strong,
.wiki-damage--lost {
  border-style: dashed;
}

.wiki-chapter--damaged,
.wiki-chapter--lost {
  position: relative;
}

.wiki-void {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.wiki-void span {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168, 53, 76, 0.24), transparent);
}

.wiki-signature {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  color: rgba(236, 218, 222, 0.84);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wiki-section-head {
  margin-bottom: 24px;
}

.wiki-section-head--timeline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.wiki-section-head h2 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.04;
  text-transform: uppercase;
}

.wiki-section-head p {
  color: rgba(218, 198, 204, 0.64);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.wiki-timeline,
.wiki-map-section,
.wiki-related {
  padding: 32px;
  margin-bottom: 26px;
}

.wiki-timeline__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wiki-timeline__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(144, 29, 48, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(40, 13, 19, 0.98), rgba(12, 6, 9, 0.98));
  color: #fff4f7;
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.wiki-timeline__button:hover {
  transform: translateY(-1px);
  border-color: rgba(188, 66, 92, 0.52);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.26),
    0 0 18px rgba(103, 15, 33, 0.16);
}

.wiki-timeline__button:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.wiki-timeline__status {
  min-width: 88px;
  color: rgba(233, 214, 219, 0.78);
  text-align: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.wiki-timeline-slider {
  overflow: hidden;
}

.wiki-timeline-slider__viewport {
  overflow: hidden;
}

.wiki-timeline__track {
  display: flex;
  gap: 16px;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.wiki-era-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: calc((100% - 32px) / 3);
  min-height: 220px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(118, 21, 38, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(132, 18, 37, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(28, 10, 16, 0.86), rgba(10, 5, 8, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 32px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease,
    background 0.26s ease,
    opacity 0.26s ease;
}

.wiki-era-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(173, 42, 64, 0.86), transparent 78%);
}

.wiki-era-card span {
  display: block;
  margin-bottom: 12px;
  color: #fff2f5;
  font-size: 1.18rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.18;
}

.wiki-era-card p {
  margin: 0;
  color: rgba(224, 211, 216, 0.78);
  line-height: 1.88;
}

.wiki-era-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 160' fill='none'%3E%3Cpath d='M18 26l24 10-12 18 26 14-18 22 31 15-14 25 28 15' stroke='%23ffe7ed' stroke-opacity='.12' stroke-width='1.1'/%3E%3Cpath d='M42 35l15-16M62 53l18-9M80 91l22 8M112 109l16-10M140 118l18 10' stroke='%23981b30' stroke-opacity='.4' stroke-width='1'/%3E%3C/svg%3E");
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: 42% 42%;
  opacity: 0.38;
}

.wiki-era-card:hover,
.wiki-era-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(150, 31, 51, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(82, 9, 20, 0.08);
}

.wiki-era-card--current {
  border-color: rgba(171, 42, 63, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 38px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(95, 13, 28, 0.16);
}

.wiki-era-card--current.is-active {
  border-color: rgba(183, 55, 78, 0.42);
  background:
    radial-gradient(circle at top right, rgba(155, 24, 47, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(31, 11, 17, 0.92), rgba(9, 4, 7, 0.98));
}

.wiki-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
}

.wiki-map {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(117, 21, 40, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 16%, rgba(111, 16, 31, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(32, 12, 17, 0.96), rgba(11, 5, 7, 0.98));
}

.wiki-map__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 46%;
  opacity: 0.62;
  filter: saturate(0.76) brightness(0.48) contrast(1.06);
}

.wiki-map::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 62% 20%, rgba(101, 13, 29, 0.14), transparent 18%),
    linear-gradient(135deg, transparent 0 26%, rgba(79, 12, 24, 0.16) 26% 28%, transparent 28% 100%),
    radial-gradient(circle at 46% 66%, rgba(255, 216, 224, 0.04), rgba(255, 216, 224, 0.01) 28%, transparent 40%);
  box-shadow: inset 0 0 0 1px rgba(150, 51, 73, 0.08);
}

.wiki-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 6, 9, 0.08), rgba(10, 5, 7, 0.34));
  pointer-events: none;
}

.wiki-map__north,
.wiki-map__glyphs {
  position: absolute;
  z-index: 2;
  left: 24px;
  color: rgba(230, 207, 214, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.wiki-map__north {
  top: 18px;
}

.wiki-map__glyphs {
  bottom: 18px;
  font-size: 0.72rem;
}

.wiki-map__detail {
  padding: 28px;
}

.wiki-map__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.wiki-map__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(135, 30, 47, 0.24);
  border-radius: 999px;
  background: rgba(24, 10, 14, 0.82);
  color: rgba(232, 214, 219, 0.76);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.wiki-map__tab:hover,
.wiki-map__tab.is-active {
  color: #fff7f9;
  border-color: rgba(182, 62, 88, 0.44);
  background: linear-gradient(180deg, rgba(55, 16, 25, 0.9), rgba(18, 8, 11, 0.94));
  transform: translateY(-1px);
}

.wiki-map__tab--danger:hover,
.wiki-map__tab--danger.is-active {
  border-color: rgba(210, 88, 114, 0.48);
}

.wiki-map__detail h3 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.wiki-map__detail strong {
  display: block;
  margin-bottom: 16px;
  color: rgba(244, 228, 233, 0.82);
  line-height: 1.5;
}

.wiki-map__meta {
  color: rgba(227, 205, 212, 0.66);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.wiki-related-card {
  padding: 26px;
}

.wiki-related-card h3 {
  margin: 0 0 12px;
  font-size: 2rem;
  text-transform: uppercase;
}

.wiki-related-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.wiki-related-card li {
  position: relative;
  padding-left: 18px;
  color: rgba(226, 214, 218, 0.8);
  line-height: 1.6;
}

.wiki-related-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(196, 62, 88, 0.78);
  box-shadow: 0 0 14px rgba(163, 20, 44, 0.24);
}

.wiki-related__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.wiki-related__nav a {
  color: rgba(246, 231, 235, 0.82);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.22s ease, transform 0.22s ease;
}

.wiki-related__nav a:hover {
  color: #fff7f9;
  transform: translateX(2px);
}

.wiki-body.is-book-mode {
  background:
    radial-gradient(circle at 16% 12%, rgba(124, 37, 52, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(20, 10, 12, 0.98), rgba(8, 5, 7, 1));
}

.wiki-body.is-book-mode .wiki-layout {
  grid-template-columns: 1fr;
}

.wiki-body.is-book-mode .wiki-toc {
  display: none;
}

.site-header.is-compact ~ .wiki-main .wiki-toc {
  top: 100px;
  max-height: calc(100vh - 114px);
}

.wiki-body.is-book-mode .wiki-chronicle {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 44px;
  background:
    linear-gradient(180deg, rgba(37, 20, 23, 0.96), rgba(14, 9, 11, 0.98)),
    radial-gradient(circle at top, rgba(166, 122, 103, 0.08), transparent 44%);
}

.wiki-body.is-book-mode .wiki-chapter p,
.wiki-body.is-book-mode .wiki-related-card p,
.wiki-body.is-book-mode .wiki-map__detail p {
  font-size: 1.08rem;
  line-height: 2;
  color: rgba(241, 230, 233, 0.9);
}

.wiki-body.is-book-mode .wiki-hero,
.wiki-body.is-book-mode .wiki-timeline,
.wiki-body.is-book-mode .wiki-map-section,
.wiki-body.is-book-mode .wiki-related {
  border-color: rgba(145, 74, 62, 0.18);
}

@media (max-width: 1180px) {
  .wiki-hero,
  .wiki-map-layout,
  .wiki-layout {
    grid-template-columns: 1fr;
  }

  .wiki-toc {
    position: relative;
    top: 0;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .wiki-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .wiki-main {
    width: calc(100% - 16px);
    padding-top: 132px;
    padding-bottom: 72px;
  }

  .wiki-hero,
  .wiki-timeline,
  .wiki-map-section,
  .wiki-related,
  .wiki-chronicle,
  .wiki-toc__inner,
  .wiki-map,
  .wiki-map__detail,
  .wiki-related-card {
    border-radius: 26px;
  }

  .wiki-hero,
  .wiki-timeline,
  .wiki-map-section,
  .wiki-related,
  .wiki-chronicle {
    padding: 24px 18px;
  }

  .wiki-hero h1 {
    font-size: clamp(2.5rem, 16vw, 4.2rem);
  }

  .wiki-hero__actions {
    width: 100%;
  }

  .wiki-book-toggle,
  .wiki-hero__actions .action-button,
  .wiki-header__actions .action-button {
    width: 100%;
  }

  .wiki-map {
    min-height: 420px;
  }

  .wiki-chapter__art img {
    max-height: 280px;
  }

  .wiki-era-card {
    flex-basis: 100%;
    min-width: 100%;
    min-height: 0;
  }

  .wiki-section-head--timeline {
    align-items: flex-start;
  }

  .wiki-timeline__controls {
    width: 100%;
    justify-content: space-between;
  }

  .wiki-related__nav {
    flex-direction: column;
  }
}

/* World page alignment with index atmosphere */
.world-era-section {
  padding: 0 20px 92px;
}

.world-era-shell {
  width: min(1500px, 100%);
}

.world-era-head {
  margin-bottom: 34px;
}

.world-era-slide {
  min-height: 430px;
}

.world-era-slide__art {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.72) brightness(0.52);
  transform: scale(1.04);
}

.world-slider--coverflow .world-slide.is-active .world-era-slide__art {
  filter: saturate(0.82) brightness(0.68);
  transform: scale(1.08);
}

.world-era-slide__art--golden {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 219, 151, 0.28), transparent 24%),
    linear-gradient(180deg, rgba(67, 38, 18, 0.24), rgba(13, 6, 5, 0.92)),
    url("img/map.png");
}

.world-era-slide__art--exodus {
  background-image: linear-gradient(180deg, rgba(6, 10, 18, 0.18), rgba(8, 4, 7, 0.92)), url("img/ice-sea.jpg");
}

.world-era-slide__art--wild {
  background:
    radial-gradient(circle at 40% 42%, rgba(57, 120, 74, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(16, 22, 12, 0.24), rgba(8, 4, 7, 0.92)),
    url("img/map.png");
  background-position: 52% 58%;
}

.world-era-slide__art--roots {
  background:
    linear-gradient(180deg, rgba(24, 18, 11, 0.12), rgba(9, 4, 7, 0.9)),
    url("img/port-kray.jpg");
}

.world-era-slide__art--depths {
  background:
    radial-gradient(circle at 50% 16%, rgba(151, 22, 46, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(17, 10, 14, 0.3), rgba(8, 4, 7, 0.94)),
    url("img/shadow-north.jpg");
  background-position: 44% 42%;
}

.world-era-slide__art--firstborn {
  background:
    radial-gradient(circle at 52% 22%, rgba(179, 88, 114, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(24, 11, 18, 0.18), rgba(8, 4, 7, 0.94)),
    url("img/ice-sea.jpg");
  background-position: 50% 34%;
}

.world-era-slide__art--shadow {
  background-image: linear-gradient(180deg, rgba(6, 10, 18, 0.1), rgba(8, 4, 7, 0.92)), url("img/shadow-north.jpg");
}

.world-era-slide__art--port {
  background-image: linear-gradient(180deg, rgba(16, 11, 14, 0.12), rgba(8, 4, 7, 0.9)), url("img/port-kray.jpg");
}

.world-era-slide__art--return {
  background:
    radial-gradient(circle at 50% 22%, rgba(180, 214, 232, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(10, 18, 26, 0.18), rgba(8, 4, 7, 0.92)),
    url("img/ice-sea.jpg");
}

.world-era-slide__art--current {
  background:
    radial-gradient(circle at 50% 14%, rgba(172, 27, 49, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(14, 10, 17, 0.18), rgba(8, 4, 7, 0.94)),
    url("img/port-kray.jpg");
  background-position: center top;
}

.wiki-hero,
.wiki-toc__inner,
.wiki-chronicle,
.wiki-map-section,
.wiki-map__detail,
.wiki-related,
.wiki-related-card,
.world-era-slide {
  position: relative;
  isolation: isolate;
}

.wiki-hero::after,
.wiki-toc__inner::after,
.wiki-chronicle::after,
.wiki-map-section::after,
.wiki-map__detail::after,
.wiki-related::after,
.wiki-related-card::after,
.world-era-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 160' fill='none'%3E%3Cpath d='M18 26l24 10-12 18 26 14-18 22 31 15-14 25 28 15' stroke='%23ffe7ed' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M42 35l15-16M62 53l18-9M80 91l22 8M112 109l16-10M140 118l18 10' stroke='%23981b30' stroke-opacity='.58' stroke-width='1'/%3E%3Cpath d='M32 73l14-8M98 76l18-8M134 92l15-9' stroke='%23ffd8df' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 160' fill='none'%3E%3Cpath d='M36 16l18 18-8 18 28 14-15 20 26 20-11 19 22 16' stroke='%23ffedf1' stroke-opacity='.18' stroke-width='1.15'/%3E%3Cpath d='M54 30l18-11M70 49l18-5M84 78l20 9M107 106l18-5M133 126l18 7' stroke='%238d162c' stroke-opacity='.5' stroke-width='1'/%3E%3Cpath d='M43 61l13-10M92 61l15-8M120 91l18-8' stroke='%23ffd9df' stroke-opacity='.14' stroke-width='1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 160' fill='none'%3E%3Cpath d='M30 18l20 11-10 19 24 12-16 22 28 15-12 26 25 14' stroke='%23ffeff3' stroke-opacity='.2' stroke-width='1.18'/%3E%3Cpath d='M48 28l14-14M58 49l20-7M76 82l22 10M106 102l16-8M132 118l20 8' stroke='%2396172b' stroke-opacity='.54' stroke-width='1'/%3E%3Cpath d='M40 70l14-8M92 72l15-7M136 92l16-10' stroke='%23ffdce3' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E");
  background-position: 8% 12%, 74% 24%, 36% 70%;
  background-size: 35% 35%, 32% 32%, 34% 34%;
  background-repeat: no-repeat;
  opacity: calc(var(--crack-progress) * 0.78);
  mix-blend-mode: screen;
}

.wiki-hero h1,
.wiki-hero p,
.wiki-toc h2,
.wiki-toc__nav a,
.wiki-chapter h2,
.wiki-chapter p,
.wiki-map__detail h3,
.wiki-map__detail p,
.wiki-related-card h3,
.wiki-related-card p,
.world-era-slide h3,
.world-era-slide p {
  text-shadow:
    calc(var(--crack-progress) * 0.35px) calc(var(--crack-progress) * -0.25px) 0 rgba(255, 222, 228, 0.16),
    calc(var(--crack-progress) * -0.45px) calc(var(--crack-progress) * 0.3px) 0 rgba(132, 22, 38, 0.3);
}

@media (max-width: 900px) {
  .world-era-section {
    padding: 0 0 76px;
  }
}
.world-page .wiki-main {
  padding-top: 146px;
}

.world-main {
  display: grid;
  gap: 26px;
}

.world-hero-panel,
.world-atlas-grid,
.world-related,
.world-related-card {
  position: relative;
  overflow: hidden;
}

.world-hero-panel,
.world-atlas-card,
.world-related-card {
  border: 1px solid rgba(120, 20, 40, 0.22);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(31, 11, 17, 0.96), rgba(12, 5, 8, 0.98)),
    radial-gradient(circle at top, rgba(119, 20, 39, 0.08), transparent 48%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 54px rgba(0, 0, 0, 0.28);
}

.world-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 42px;
}

.world-hero-panel__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.world-hero-panel h1 {
  margin: 18px 0 14px;
  color: #f6edf0;
  font-size: clamp(3.2rem, 5.7vw, 5.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.world-hero-panel__meta,
.world-hero-panel__lead {
  color: rgba(226, 210, 216, 0.82);
}

.world-hero-panel__meta {
  margin: 0 0 18px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.world-hero-panel__lead {
  margin: 0;
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.82;
}

.world-hero-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.world-hero-panel__frame {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(121, 25, 43, 0.24);
  background: rgba(18, 6, 10, 0.92);
}

.world-hero-panel__frame img,
.world-atlas-card__media img,
.world-related-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-hero-panel__frame img {
  min-height: 460px;
  filter: saturate(0.84) brightness(0.72);
}

.world-hero-panel__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 8px;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(10, 4, 7, 0.94) 38%, rgba(10, 4, 7, 1));
}

.world-hero-panel__overlay span,
.world-atlas-card__copy .wiki-chip {
  width: fit-content;
}

.world-hero-panel__overlay span {
  color: rgba(234, 205, 214, 0.76);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.world-hero-panel__overlay strong,
.world-atlas-card__copy h2,
.world-atlas-card__copy h3,
.world-related-card h3 {
  color: #f6edf0;
}

.world-hero-panel__overlay strong {
  font-size: 1.6rem;
  line-height: 1.15;
}

.world-hero-panel__overlay p,
.world-atlas-card__copy p,
.world-related-card p {
  color: rgba(223, 208, 214, 0.78);
  line-height: 1.72;
}

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

.world-atlas-card {
  overflow: hidden;
}

.world-atlas-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.world-atlas-card__media {
  min-height: 320px;
}

.world-atlas-card__media img {
  filter: saturate(0.84) brightness(0.74);
}

.world-atlas-card__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 30px;
}

.world-atlas-card__copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.world-atlas-card__copy h3 {
  font-size: 1.8rem;
  line-height: 1.05;
}

.world-layout {
  align-items: start;
}

.world-chronicle .wiki-chapter {
  position: relative;
  padding: 0 0 28px;
}

.world-chronicle .wiki-chapter + .wiki-chapter {
  margin-top: 28px;
  border-top: 1px solid rgba(126, 28, 47, 0.16);
  padding-top: 28px;
}

.world-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.world-related-card {
  display: flex;
  flex-direction: column;
}

.world-related-card img {
  aspect-ratio: 16 / 11;
  border-bottom: 1px solid rgba(121, 22, 41, 0.18);
  filter: saturate(0.8) brightness(0.72);
}

.world-related-card .wiki-related-card__tag,
.world-related-card h3,
.world-related-card p {
  padding-left: 24px;
  padding-right: 24px;
}

.world-related-card .wiki-related-card__tag {
  margin-top: 22px;
}

.world-related-card h3 {
  margin-top: 10px;
}

.world-related-card p {
  margin-top: 12px;
  margin-bottom: 24px;
}

@media (max-width: 1080px) {
  .world-hero-panel,
  .world-atlas-card--wide {
    grid-template-columns: 1fr;
  }

  .world-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .world-atlas-grid {
    grid-template-columns: 1fr;
  }

  .world-hero-panel,
  .world-atlas-card__copy {
    padding: 24px;
  }

  .world-hero-panel__frame img {
    min-height: 320px;
  }
}
.world-page p,
.world-page .world-hero-panel__meta,
.world-page .world-hero-panel__lead,
.world-page .wiki-note,
.world-page .wiki-gap,

.wiki-toc__nav a.is-damaged {
  color: rgba(228, 195, 202, 0.62);
}

.world-prologue {
  margin-bottom: 30px;
  padding: 22px 24px;
  border: 1px solid rgba(132, 28, 46, 0.2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(42, 14, 20, 0.76), rgba(18, 7, 11, 0.9));
}

.world-prologue p:last-child {
  margin-bottom: 0;
}

.world-redacted {
  color: rgba(238, 221, 225, 0.58);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.world-map-points {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.world-map-point {
  position: absolute;
  left: var(--point-x);
  top: var(--point-y);
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.world-map-point__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(244, 224, 230, 0.96);
  box-shadow:
    0 0 0 5px rgba(173, 42, 64, 0.18),
    0 0 18px rgba(192, 67, 93, 0.42);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease;
}

.world-map-point__label {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 5, 8, 0.84);
  color: rgba(250, 239, 242, 0.82);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  white-space: nowrap;
  border: 1px solid rgba(144, 29, 48, 0.22);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

.world-map-point:hover .world-map-point__dot,
.world-map-point.is-active .world-map-point__dot {
  transform: scale(1.2);
  box-shadow:
    0 0 0 7px rgba(178, 60, 84, 0.22),
    0 0 26px rgba(220, 92, 118, 0.56);
}

.world-map-point:hover .world-map-point__label,
.world-map-point.is-active .world-map-point__label {
  transform: translateY(-2px);
  color: #fff7f9;
  border-color: rgba(191, 69, 95, 0.46);
}

.world-map-point--danger .world-map-point__dot {
  background: #ffb3c2;
  box-shadow:
    0 0 0 5px rgba(135, 18, 38, 0.22),
    0 0 20px rgba(184, 36, 63, 0.5);
}

.world-map-point--capital .world-map-point__dot {
  width: 18px;
  height: 18px;
}

.world-map__hint {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 3;
  color: rgba(230, 204, 211, 0.64);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.wiki-related__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.wiki-related__footer a {
  color: rgba(246, 231, 235, 0.82);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.22s ease, transform 0.22s ease;
}

.wiki-related__footer a:hover {
  color: #fff7f9;
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .world-map-point__label {
    font-size: 0.58rem;
    padding: 5px 8px;
    letter-spacing: 0.1em;
  }

  .world-map__hint {
    left: 18px;
    right: 18px;
    bottom: 16px;
    font-size: 0.62rem;
  }

  .wiki-related__footer {
    flex-direction: column;
  }
}

/* World page refresh: scar timeline + silent map */
.wiki-timeline-slider--scar {
  overflow: hidden;
  padding: 8px 0 2px;
}

.wiki-timeline-slider--scar .wiki-timeline-slider__viewport {
  overflow: hidden;
  padding: 12px 0;
}

.wiki-timeline__track--scar {
  position: relative;
  display: flex;
  gap: 0;
  padding: 0 18px;
}

.wiki-timeline__track--scar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 156px;
  height: 2px;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(110, 24, 40, 0.48) 5%,
      rgba(215, 103, 129, 0.36) 30%,
      rgba(121, 24, 41, 0.52) 60%,
      rgba(213, 96, 121, 0.3) 84%,
      transparent 100%);
  box-shadow: 0 0 18px rgba(120, 23, 42, 0.18);
}

.wiki-timeline__track--scar .wiki-era-card {
  position: relative;
  flex: 0 0 286px;
  min-width: 286px;
  min-height: 328px;
  padding: 0 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  opacity: 0.46;
  transform: none;
}

.wiki-timeline__track--scar .wiki-era-card::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 148px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(246, 226, 231, 0.94);
  box-shadow:
    0 0 0 6px rgba(129, 23, 41, 0.14),
    0 0 20px rgba(201, 79, 105, 0.34);
  z-index: 2;
}

.wiki-timeline__track--scar .wiki-era-card::after {
  content: "";
  position: absolute;
  left: 28px;
  width: 1px;
  background: linear-gradient(180deg, rgba(210, 109, 133, 0.44), rgba(94, 18, 31, 0));
}

.wiki-timeline__track--scar .wiki-era-card:nth-child(odd)::after {
  top: 86px;
  height: 62px;
}

.wiki-timeline__track--scar .wiki-era-card:nth-child(even)::after {
  top: 162px;
  height: 58px;
}

.wiki-era-card__content {
  position: absolute;
  left: 18px;
  right: 18px;
  max-width: 220px;
  padding-left: 18px;
}

.wiki-timeline__track--scar .wiki-era-card:nth-child(odd) .wiki-era-card__content {
  top: 18px;
}

.wiki-timeline__track--scar .wiki-era-card:nth-child(even) .wiki-era-card__content {
  top: 184px;
}

.wiki-era-card__stamp {
  display: inline-flex;
  margin-bottom: 10px;
  color: rgba(232, 203, 210, 0.52);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.wiki-era-card__title {
  display: block;
  color: rgba(248, 238, 241, 0.92);
  font-size: 1.2rem;
  line-height: 1.12;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wiki-timeline__track--scar .wiki-era-card p {
  margin-top: 10px;
  color: rgba(226, 213, 217, 0.76);
  line-height: 1.72;
  font-size: 0.95rem;
}

.wiki-timeline__track--scar .wiki-era-card:nth-child(3n) .wiki-era-card__content {
  transform: rotate(-1.2deg);
}

.wiki-timeline__track--scar .wiki-era-card:nth-child(4n) .wiki-era-card__content {
  transform: rotate(1.4deg);
}

.wiki-timeline__track--scar .wiki-era-card:hover,
.wiki-timeline__track--scar .wiki-era-card.is-active {
  opacity: 1;
}

.wiki-timeline__track--scar .wiki-era-card:hover::before,
.wiki-timeline__track--scar .wiki-era-card.is-active::before {
  box-shadow:
    0 0 0 8px rgba(146, 31, 52, 0.18),
    0 0 28px rgba(228, 110, 136, 0.48);
}

.wiki-timeline__track--scar .wiki-era-card:hover .wiki-era-card__title,
.wiki-timeline__track--scar .wiki-era-card.is-active .wiki-era-card__title {
  color: #fff8fa;
  text-shadow: 0 0 16px rgba(128, 21, 40, 0.18);
}

.wiki-timeline__track--scar .wiki-era-card:hover p,
.wiki-timeline__track--scar .wiki-era-card.is-active p {
  color: rgba(244, 234, 237, 0.9);
}

.wiki-era-card--current .wiki-era-card__title {
  color: #ffdfe6;
}

.wiki-map--silent {
  min-height: 560px;
}

.world-map-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.world-map-label {
  position: absolute;
  color: rgba(246, 234, 238, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow:
    0 0 14px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(89, 14, 29, 0.18);
}

.world-map-label::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, rgba(244, 213, 221, 0.52), transparent);
}

.world-map-label--north {
  left: 49%;
  top: 8%;
}

.world-map-label--sea {
  left: 42%;
  top: 24%;
  transform: rotate(-9deg);
}

.world-map-label--west {
  left: 19%;
  top: 38%;
}

.world-map-label--center {
  left: 49%;
  top: 50%;
}

.world-map-label--east {
  left: 68%;
  top: 55%;
}

.world-map-label--south {
  left: 38%;
  top: 71%;
}

.world-map-label--far-south {
  left: 15%;
  top: 84%;
}

.wiki-map__detail--atlas {
  display: flex;
  flex-direction: column;
}

.wiki-map__facts {
  display: grid;
  gap: 12px;
  margin: 6px 0 20px;
  padding: 0;
  list-style: none;
}

.wiki-map__facts li {
  position: relative;
  padding-left: 18px;
  color: rgba(229, 217, 222, 0.8);
  line-height: 1.68;
}

.wiki-map__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(223, 115, 139, 0.72);
  box-shadow: 0 0 12px rgba(141, 29, 50, 0.18);
}

@media (max-width: 980px) {
  .wiki-timeline__track--scar .wiki-era-card {
    flex-basis: calc(100vw - 96px);
    min-width: calc(100vw - 96px);
  }

  .wiki-era-card__content {
    max-width: none;
  }

  .world-map-label {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 720px) {
  .wiki-timeline__track--scar {
    padding: 0 10px;
  }

  .wiki-timeline__track--scar::before {
    top: 148px;
  }

  .wiki-timeline__track--scar .wiki-era-card {
    flex-basis: calc(100vw - 52px);
    min-width: calc(100vw - 52px);
    min-height: 316px;
  }

  .wiki-timeline__track--scar .wiki-era-card::before {
    top: 140px;
  }

  .wiki-timeline__track--scar .wiki-era-card:nth-child(odd)::after {
    top: 82px;
    height: 58px;
  }

  .wiki-timeline__track--scar .wiki-era-card:nth-child(even)::after {
    top: 154px;
    height: 56px;
  }

  .wiki-timeline__track--scar .wiki-era-card:nth-child(even) .wiki-era-card__content {
    top: 176px;
  }

  .wiki-map--silent {
    min-height: 420px;
  }

  .world-map-label {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .world-map-label::after {
    width: 28px;
  }
}

/* Final world layout: plain map image + vertical chronology */
.world-chronology-section {
  position: relative;
}

.world-chronology-shell {
  position: relative;
  overflow: hidden;
  max-height: var(--chronology-preview-height, none);
  transition: max-height 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.world-chronology-shell.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 7, 11, 0), rgba(18, 7, 11, 0.92) 72%, rgba(18, 7, 11, 1));
}

.world-chronology-shell.is-expanded {
  max-height: var(--chronology-full-height, none);
}

.world-chronology-shell.is-expanded::after {
  opacity: 0;
}

.world-chronology {
  position: relative;
  display: grid;
  gap: 0;
  padding: 10px 0 4px;
}

.world-chronology::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 190px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(199, 95, 120, 0.3) 8%,
    rgba(118, 20, 39, 0.46) 55%,
    transparent 100%
  );
  box-shadow: 0 0 18px rgba(116, 22, 39, 0.12);
}

.world-chronology__entry {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 46px;
  padding: 24px 0 28px;
}

.world-chronology__entry::before {
  content: "";
  position: absolute;
  left: 184px;
  top: 34px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(248, 233, 237, 0.94);
  box-shadow:
    0 0 0 6px rgba(140, 29, 48, 0.14),
    0 0 18px rgba(202, 90, 115, 0.34);
}

.world-chronology__entry::after {
  content: "";
  position: absolute;
  left: 190px;
  top: 47px;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(210, 111, 136, 0.5), transparent);
}

.world-chronology__year {
  padding-top: 22px;
  justify-self: end;
  color: rgba(227, 200, 207, 0.6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  line-height: 1.4;
}

.world-chronology__body {
  position: relative;
  padding: 16px 0 0 12px;
  border-top: 1px solid rgba(127, 23, 42, 0.18);
}

.world-chronology__entry:nth-child(even) .world-chronology__body {
  padding-left: 20px;
}

.world-chronology__entry:nth-child(3n) .world-chronology__body {
  transform: translateX(8px);
}

.world-chronology__entry:nth-child(4n) .world-chronology__body {
  transform: translateX(-6px);
}

.world-chronology__body h3 {
  margin: 0 0 10px;
  color: #fff3f6;
  font-size: 1.34rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.world-chronology__body p {
  margin: 0;
  max-width: 720px;
  color: rgba(226, 214, 218, 0.82);
  line-height: 1.8;
}

.world-chronology__entry--current .world-chronology__year,
.world-chronology__entry--current .world-chronology__body h3 {
  color: #ffe9ee;
}

.world-chronology__entry--current::before {
  box-shadow:
    0 0 0 8px rgba(163, 41, 63, 0.16),
    0 0 24px rgba(226, 113, 138, 0.46);
}

.world-chronology__actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.world-chronology__toggle {
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid rgba(154, 39, 60, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(54, 15, 24, 0.88), rgba(19, 8, 12, 0.94));
  color: #fff3f6;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.world-chronology__toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(202, 88, 112, 0.48);
  background: linear-gradient(180deg, rgba(69, 18, 29, 0.92), rgba(24, 9, 14, 0.98));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(111, 21, 39, 0.12);
}

.world-map-section--image .wiki-section-head {
  margin-bottom: 18px;
}

.world-map-frame {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(118, 22, 40, 0.22);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(29, 11, 16, 0.96), rgba(10, 5, 7, 0.98)),
    radial-gradient(circle at top, rgba(119, 20, 39, 0.08), transparent 48%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 40px rgba(0, 0, 0, 0.26);
}

.world-map-frame::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(150, 52, 74, 0.08);
  pointer-events: none;
}

.world-map-frame__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  filter: saturate(0.84) brightness(0.76) contrast(1.02);
}

@media (max-width: 900px) {
  .world-chronology-shell.is-collapsed::after {
    height: 120px;
  }

  .world-chronology::before {
    left: 16px;
  }

  .world-chronology__entry {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0 22px 40px;
  }

  .world-chronology__entry::before {
    left: 10px;
    top: 22px;
  }

  .world-chronology__entry::after {
    left: 16px;
    top: 35px;
    width: 18px;
  }

  .world-chronology__year {
    justify-self: start;
    padding-top: 0;
  }

  .world-chronology__body,
  .world-chronology__entry:nth-child(even) .world-chronology__body,
  .world-chronology__entry:nth-child(3n) .world-chronology__body,
  .world-chronology__entry:nth-child(4n) .world-chronology__body {
    padding: 12px 0 0 10px;
    transform: none;
  }

  .world-map-frame {
    padding: 12px;
    border-radius: 24px;
  }

  .world-map-frame::before {
    inset: 12px;
    border-radius: 18px;
  }

  .world-map-frame__image {
    border-radius: 18px;
  }
}
