:root {
  --bg: #05070f;
  --bg-top: #111526;
  --panel: rgba(11, 15, 28, 0.92);
  --panel-soft: rgba(18, 22, 37, 0.88);
  --border: rgba(182, 148, 78, 0.55);
  --border-strong: rgba(237, 205, 131, 0.7);
  --gold: #e8d091;
  --gold-bright: #f6e7bc;
  --muted: #bfcae1;
  --text: #edf1fb;
  --danger: #b85f63;
  --danger-deep: rgba(91, 27, 33, 0.4);
  --forest: #70915f;
  --forest-deep: rgba(42, 70, 34, 0.4);
  --arcane: #7e8ad4;
  --arcane-deep: rgba(38, 50, 109, 0.4);
  --sand: #9b8963;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(65, 76, 136, 0.16), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(136, 74, 52, 0.14), transparent 22%),
    linear-gradient(180deg, #101426 0%, #090c17 38%, #05070f 100%);
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(255, 241, 204, 0.26) 0 1px, transparent 1.8px),
    radial-gradient(circle at 70% 20%, rgba(255, 241, 204, 0.18) 0 1px, transparent 1.7px),
    radial-gradient(circle at 35% 75%, rgba(255, 241, 204, 0.14) 0 1px, transparent 1.7px),
    radial-gradient(circle at 85% 60%, rgba(255, 241, 204, 0.2) 0 1px, transparent 1.8px);
  background-size: 320px 240px;
  opacity: 0.22;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
}

p,
ul,
ol,
dl {
  margin: 0;
}

strong {
  color: var(--gold-bright);
}

.wiki-page {
  position: relative;
  z-index: 2;
}

.wiki-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(246, 231, 188, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 12, 22, 0.5), rgba(8, 12, 22, 0.82)),
    radial-gradient(circle at center, rgba(81, 99, 180, 0.18), transparent 35%);
}

.moon {
  position: fixed;
  top: 6rem;
  right: clamp(1rem, 7vw, 4rem);
  width: clamp(180px, 20vw, 250px);
  aspect-ratio: 1;
  z-index: 4;
  pointer-events: none;
  opacity: 0.98;
  filter: drop-shadow(0 0 18px rgba(244, 212, 67, 0.2));
  animation: moonDrift 12s ease-in-out infinite alternate;
  transition: z-index 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.moon--behind {
  z-index: 1;
  opacity: 0.88;
  filter: drop-shadow(0 0 12px rgba(244, 212, 67, 0.14));
}

.moon__body,
.moon__shadow,
.moon__glow,
.moon__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.moon__body {
  background: radial-gradient(circle at 35% 30%, rgba(248, 238, 184, 0.94) 0%, rgba(228, 213, 139, 0.92) 55%, rgba(190, 164, 75, 0.9) 100%);
  box-shadow: 0 0 28px rgba(244, 212, 67, 0.22);
}

.moon__shadow {
  inset: 8%;
  background: rgba(61, 61, 66, 0.84);
  transform: translateX(-18%);
}

.moon__glow {
  inset: -18%;
  background: radial-gradient(circle, rgba(243, 220, 134, 0.22) 0%, rgba(243, 220, 134, 0) 72%);
  animation: pulseGlow 4s ease-in-out infinite;
}

.moon__ring {
  border: 2px solid rgba(212, 183, 104, 0.62);
}

.moon__ring--outer {
  inset: -4%;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 80% 60%, 80% 100%, 0 100%);
}

.moon__ring--inner {
  inset: 6%;
  clip-path: polygon(0 38%, 32% 38%, 32% 100%, 0 100%);
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.78;
  }

  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@keyframes moonDrift {
  from {
    transform: translateY(0) translateX(0);
  }

  to {
    transform: translateY(14px) translateX(-10px);
  }
}

.wiki-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background:
    linear-gradient(180deg, rgba(5, 7, 15, 0) 0%, rgba(5, 7, 15, 0.96) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0 10%, transparent 10% 90%, rgba(0, 0, 0, 0.6) 90% 100%);
  opacity: 0.7;
}

.wiki-hero__inner,
.wiki-shell {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
}

.wiki-hero__inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0 6rem;
  text-align: center;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-size: 0.78rem;
}

h1 {
  margin-top: 0.75rem;
  font-size: clamp(3rem, 7vw, 5.6rem);
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(232, 208, 145, 0.18);
}

.hero-copy {
  width: min(860px, 100%);
  margin: 1.4rem auto 0;
  line-height: 1.85;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.wiki-hero__menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.menu-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 31, 0.76);
  color: var(--muted);
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: rgba(20, 26, 47, 0.86);
}

.menu-card strong {
  color: var(--gold-bright);
  font-family: 'Cinzel', serif;
  font-size: 1.02rem;
}

.menu-card span {
  line-height: 1.65;
}

.menu-card__eyebrow {
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-card--primary {
  background: linear-gradient(180deg, rgba(120, 92, 35, 0.26), rgba(13, 17, 31, 0.82));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.95rem 1.45rem;
  border: 1px solid var(--border-strong);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.button--primary {
  color: #fff7da;
  background: linear-gradient(180deg, rgba(112, 93, 38, 0.95), rgba(67, 51, 18, 0.95));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.button--secondary {
  color: var(--text);
  background: rgba(28, 36, 63, 0.56);
}

.wiki-shell {
  padding: 2rem 0 4rem;
}

.top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(89, 70, 31, 0.08), rgba(89, 70, 31, 0)),
    linear-gradient(180deg, var(--panel-soft), var(--panel));
  box-shadow: var(--shadow);
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 235, 192, 0.08), transparent 28%);
}

.toc-panel h2,
.infobox h2,
.section-panel h2 {
  color: var(--gold-bright);
}

.toc-list {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.toc-list li {
  margin: 0;
}

.toc-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 31, 0.68);
  color: var(--muted);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.toc-list a:hover {
  color: var(--gold-bright);
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(18, 23, 40, 0.82);
}

.toc-list strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gold-bright);
  font-family: 'Cinzel', serif;
}

.toc-list small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.toc-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(232, 208, 145, 0.25);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  background: rgba(53, 42, 17, 0.3);
}

.info-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.info-grid div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-grid dt {
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-grid dd {
  color: var(--muted);
  line-height: 1.7;
}

.section-panel {
  margin-top: 1.5rem;
}

.section-panel h2 {
  margin-top: 0.45rem;
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.section-panel p {
  color: var(--muted);
  line-height: 1.85;
}

.section-panel p + p {
  margin-top: 1rem;
}

.callout-grid,
.pillar-grid,
.faction-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}


.stat-grid,
.dual-panel-grid,
.diplomacy-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.stat-grid,
.diplomacy-grid,
.three-up-tight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dual-panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pillar-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.summary-strip div {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 31, 0.7);
}

.summary-strip strong {
  display: block;
  margin-bottom: 0.45rem;
}

.summary-strip span {
  color: var(--muted);
  line-height: 1.65;
}

.callout-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.callout-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.callout,
.pillar,
.mini-panel,
.faction-card {
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 31, 0.7);
}

.callout h3,
.pillar h3,
.mini-panel h3,
.faction-card h3 {
  margin-bottom: 0.7rem;
  color: var(--gold-bright);
}

.callout p,
.pillar p,
.mini-panel p,
.faction-card p {
  line-height: 1.75;
  color: var(--muted);
}

.callout--gold {
  background: linear-gradient(180deg, rgba(120, 92, 35, 0.24), rgba(13, 17, 31, 0.78));
}

.callout--green {
  background: linear-gradient(180deg, rgba(57, 92, 44, 0.24), rgba(13, 17, 31, 0.78));
}

.callout--red {
  background: linear-gradient(180deg, rgba(108, 42, 47, 0.28), rgba(13, 17, 31, 0.78));
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 1.2rem;
  align-items: start;
}

.feature-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
  line-height: 1.7;
}

.moon-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.4rem;
}

.moon-card {
  position: relative;
  min-height: 100%;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 31, 0.72);
}

.moon-card--visual {
  display: grid;
  place-items: center;
  min-height: 260px;
  background:
    radial-gradient(circle at center, rgba(120, 141, 216, 0.14), transparent 60%),
    rgba(13, 17, 31, 0.72);
}

.moon-card--copy p + p {
  margin-top: 1rem;
}

.moon-disc {
  position: relative;
  width: min(100%, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(225, 232, 255, 0.94) 50%, rgba(163, 176, 222, 0.88) 76%, rgba(67, 78, 122, 0.32) 100%);
  box-shadow:
    0 0 45px rgba(173, 193, 255, 0.24),
    inset -16px -18px 32px rgba(92, 103, 143, 0.28);
}

.moon-crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(118, 130, 175, 0.26);
  box-shadow: inset 0 0 8px rgba(66, 76, 114, 0.15);
}

.moon-crater--one {
  top: 24%;
  left: 22%;
  width: 22%;
  height: 22%;
}

.moon-crater--two {
  top: 52%;
  left: 28%;
  width: 12%;
  height: 12%;
}

.moon-crater--three {
  right: 20%;
  bottom: 22%;
  width: 18%;
  height: 18%;
}

.compact-list {
  margin-top: 0.85rem;
}

.mini-panel {
  background: linear-gradient(180deg, rgba(41, 52, 96, 0.24), rgba(13, 17, 31, 0.8));
}

.mini-panel--accent {
  background: linear-gradient(180deg, rgba(78, 97, 48, 0.24), rgba(13, 17, 31, 0.8));
}

.table-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold-bright);
  background: rgba(59, 45, 19, 0.42);
  font-family: 'Cinzel', serif;
}

td {
  color: var(--muted);
  background: rgba(9, 13, 24, 0.72);
  line-height: 1.65;
}

.pillar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.faction-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faction-card {
  min-height: 100%;
}

.faction-tag {
  margin-bottom: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.faction-notes {
  margin-top: 0.9rem;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.faction-card--qeynos {
  background: linear-gradient(180deg, rgba(68, 86, 133, 0.25), rgba(13, 17, 31, 0.82));
}

.faction-card--neriak {
  background: linear-gradient(180deg, rgba(93, 28, 41, 0.3), rgba(13, 17, 31, 0.82));
}

.faction-card--tunare {
  background: linear-gradient(180deg, rgba(47, 86, 53, 0.28), rgba(13, 17, 31, 0.82));
}

.faction-card--freeport {
  background: linear-gradient(180deg, rgba(110, 92, 55, 0.26), rgba(13, 17, 31, 0.82));
}

.faction-card--horde {
  background: linear-gradient(180deg, rgba(93, 57, 31, 0.26), rgba(13, 17, 31, 0.82));
}

.section-panel--final {
  margin-bottom: 1rem;
}

@media (max-width: 1080px) {
  .callout-grid,
  .pillar-grid,
  .faction-grid,
  .moon-grid,
  .callout-grid.two-up,
  .top-grid,
  .split-layout,
  .stat-grid,
  .dual-panel-grid,
  .diplomacy-grid,
  .summary-strip,
  .three-up-tight,
  .pillar-grid--three,
  .wiki-hero__menu {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .atlas-workbench__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wiki-hero__inner {
    padding: 4rem 0 5rem;
  }

  .wiki-shell,
  .wiki-hero__inner {
    width: min(100% - 1rem, 1220px);
  }

  .moon {
    top: 1rem;
    right: 0.75rem;
    width: 120px;
  }

  .panel {
    padding: 1.25rem;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  table {
    min-width: 640px;
  }
}

.atlas-diagram {
  margin-top: 1.5rem;
}

.atlas-tools {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 16, 29, 0.74);
}

.atlas-tools__label {
  font-family: 'Cinzel', serif;
  color: var(--gold-bright);
}

.atlas-tools__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.atlas-tools__hint {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.atlas-filter {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(17, 23, 40, 0.9);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.atlas-filter:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: rgba(29, 37, 65, 0.92);
}

.atlas-filter.is-active {
  border-color: var(--gold-bright);
  background: rgba(95, 75, 38, 0.5);
}

.atlas-diagram__intro {
  display: grid;
  gap: 1rem;
}

.atlas-diagram__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.atlas-diagram__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.legend-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.legend-dot--lane {
  background: linear-gradient(180deg, rgba(232, 208, 145, 0.95), rgba(86, 74, 46, 0.95));
}

.legend-dot--hub {
  background: linear-gradient(180deg, rgba(232, 208, 145, 0.95), rgba(146, 112, 39, 0.95));
}

.legend-dot--ring {
  background: linear-gradient(180deg, rgba(117, 188, 125, 0.95), rgba(52, 104, 52, 0.95));
}

.legend-dot--spire {
  background: linear-gradient(180deg, rgba(144, 162, 245, 0.95), rgba(63, 83, 173, 0.95));
}

.legend-dot--core {
  background: linear-gradient(180deg, rgba(214, 108, 108, 0.95), rgba(121, 36, 36, 0.95));
}

.atlas-callouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.atlas-callout {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 16, 29, 0.72);
}

.atlas-callout strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif;
}

.atlas-callout p {
  color: var(--muted);
  line-height: 1.65;
}

.atlas-diagram__board {
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(180deg, rgba(16, 22, 39, 0.96), rgba(10, 14, 25, 0.96));
}

.atlas-diagram__board--eqmap {
  padding: 1rem;
}

.atlas-grid {
  min-width: 1080px;
}

.atlas-grid--headers,
.atlas-grid--board {
  display: grid;
  grid-template-columns: 140px repeat(5, minmax(148px, 1fr)) minmax(210px, 1.15fr);
  gap: 0.85rem;
}

.atlas-grid--board {
  margin-top: 0.85rem;
}

.atlas-grid__corner,
.atlas-grid__header,
.atlas-grid__band,
.atlas-square {
  position: relative;
  min-height: 138px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.atlas-grid__corner,
.atlas-grid__header {
  min-height: 74px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: 'Cinzel', serif;
  color: var(--gold-bright);
  background: rgba(18, 24, 42, 0.94);
}

.atlas-grid__corner {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-grid__header--qeynos {
  background: linear-gradient(180deg, rgba(106, 84, 37, 0.52), rgba(18, 24, 42, 0.96));
}

.atlas-grid__header--neriak {
  background: linear-gradient(180deg, rgba(86, 35, 61, 0.52), rgba(18, 24, 42, 0.96));
}

.atlas-grid__header--tunare {
  background: linear-gradient(180deg, rgba(58, 102, 58, 0.48), rgba(18, 24, 42, 0.96));
}

.atlas-grid__header--freeport {
  background: linear-gradient(180deg, rgba(110, 82, 48, 0.46), rgba(18, 24, 42, 0.96));
}

.atlas-grid__header--horde {
  background: linear-gradient(180deg, rgba(109, 55, 36, 0.48), rgba(18, 24, 42, 0.96));
}

.atlas-grid__header--travel {
  background: linear-gradient(180deg, rgba(68, 73, 118, 0.44), rgba(18, 24, 42, 0.96));
}

.atlas-grid__band {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(232, 208, 145, 0.12), rgba(13, 17, 31, 0.88)),
    rgba(13, 17, 31, 0.88);
}

.atlas-grid__band strong {
  font-family: 'Cinzel', serif;
  color: var(--gold-bright);
  font-size: 1rem;
}

.atlas-grid__band small {
  color: var(--muted);
  line-height: 1.5;
}

.atlas-square {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
    rgba(11, 16, 29, 0.9);
  transition: transform 170ms ease, opacity 170ms ease, filter 170ms ease, box-shadow 170ms ease;
}

.atlas-square::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
}

.atlas-square__tier {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 9, 18, 0.55);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-square strong,
.atlas-square small {
  position: relative;
  z-index: 1;
}

.atlas-square strong {
  color: #fff7da;
  font-family: 'Cinzel', serif;
  line-height: 1.35;
  font-size: 1rem;
}

.atlas-square small {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.82rem;
}

.atlas-square--qeynos {
  border-color: rgba(212, 176, 96, 0.38);
  background-color: rgba(44, 31, 14, 0.92);
}

.atlas-square--neriak {
  border-color: rgba(149, 80, 132, 0.38);
  background-color: rgba(36, 18, 29, 0.92);
}

.atlas-square--tunare {
  border-color: rgba(103, 154, 94, 0.4);
  background-color: rgba(19, 34, 22, 0.92);
}

.atlas-square--freeport {
  border-color: rgba(175, 126, 78, 0.36);
  background-color: rgba(42, 27, 16, 0.92);
}

.atlas-square--horde {
  border-color: rgba(164, 86, 58, 0.38);
  background-color: rgba(42, 20, 14, 0.92);
}

.atlas-square--hub {
  border-color: rgba(232, 208, 145, 0.4);
  background-color: rgba(46, 35, 15, 0.94);
}

.atlas-square--ring {
  box-shadow: inset 0 0 0 1px rgba(117, 188, 125, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.atlas-square--spire {
  box-shadow: inset 0 0 0 1px rgba(144, 162, 245, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.atlas-square--core {
  border-color: rgba(214, 108, 108, 0.48);
  background-color: rgba(50, 17, 17, 0.96);
}

.atlas-grid--board.is-filtered .atlas-square {
  opacity: 0.24;
  filter: saturate(0.75);
}

.atlas-grid--board.is-filtered .atlas-square.is-match,
.atlas-grid--board.is-filtered .atlas-square[data-route='hub'],
.atlas-grid--board.is-filtered .atlas-square[data-route='core'] {
  opacity: 1;
  filter: saturate(1.06);
}

.atlas-square.is-hovered,
.atlas-grid--board.is-filtered .atlas-square.is-match {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(246, 231, 188, 0.33), 0 10px 20px rgba(0, 0, 0, 0.26);
}

.atlas-workbench {
  margin-top: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 13, 22, 0.86);
  padding: 1rem;
  overflow-x: auto;
}

.atlas-workbench__header h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: var(--gold-bright);
}

.atlas-workbench__header p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.atlas-workbench__actions {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.atlas-workbench__layout {
  display: grid;
  grid-template-columns: minmax(780px, 1fr) 300px;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.atlas-workbench__button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(24, 31, 53, 0.82);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.atlas-workbench__noscript {
  margin: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(21, 29, 48, 0.82);
  color: var(--text);
  font-size: 0.9rem;
}

.atlas-workbench__canvas {
  position: relative;
  margin-top: 0.9rem;
  width: max-content;
  min-width: 100%;
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 35%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 28px),
    radial-gradient(circle at 20% 0%, rgba(209, 169, 93, 0.24), transparent 36%),
    #131722;
  overflow: hidden;
}

.map-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.map-links path {
  stroke: rgba(231, 197, 125, 0.82);
  stroke-width: 2.2;
  fill: none;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(215, 157, 67, 0.35));
}

.map-block {
  position: absolute;
  z-index: 2;
  min-width: 128px;
  max-width: 176px;
  padding: 0.45rem 0.58rem;
  border: 1px solid rgba(51, 39, 16, 0.55);
  background: linear-gradient(180deg, #f3e5b9 0%, #dfc98e 100%);
  color: #2a2011;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.24);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.map-block strong,
.map-block small {
  display: block;
}

.map-block small {
  margin-top: 0.16rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.66rem;
  color: rgba(45, 35, 18, 0.88);
  line-height: 1.2;
}

.map-block:active {
  cursor: grabbing;
}

.map-block--band {
  background: linear-gradient(180deg, #efe3c4 0%, #d5c39a 100%);
  border-color: rgba(74, 58, 33, 0.55);
}

.map-block--zone {
  background: linear-gradient(180deg, #f6eecf 0%, #e0c68f 100%);
  border-color: rgba(114, 80, 26, 0.5);
}

.map-block--hub {
  background: linear-gradient(180deg, #e3e9f7 0%, #b8c7ec 100%);
  border-color: rgba(53, 73, 126, 0.54);
}

.map-block--core {
  background: linear-gradient(180deg, #f6d3d3 0%, #d18d8d 100%);
  border-color: rgba(130, 44, 44, 0.6);
}

.map-block--druid-ring {
  box-shadow: 0 0 0 2px rgba(182, 255, 182, 0.9), 0 0 20px rgba(144, 255, 168, 0.55);
}

.map-block--wizard-spire {
  box-shadow: 0 0 0 2px rgba(190, 138, 255, 0.95), 0 0 20px rgba(176, 112, 255, 0.52);
}

.map-block.is-dragging {
  z-index: 20;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
}

.map-block.is-selected {
  outline: 2px solid rgba(89, 146, 255, 0.9);
  outline-offset: 2px;
}

.atlas-zone-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 18, 30, 0.92);
  padding: 0.85rem;
}

.atlas-zone-panel h4 {
  margin: 0 0 0.7rem;
  color: var(--gold-bright);
}

.atlas-zone-panel p {
  margin: 0;
  color: var(--muted);
}

.atlas-zone-panel dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.atlas-zone-panel dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: rgba(225, 201, 145, 0.92);
  margin-bottom: 0.15rem;
}

.atlas-zone-panel dd {
  margin: 0;
  color: var(--text);
  line-height: 1.35;
}

@media (max-width: 960px) {
  .atlas-callouts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .atlas-diagram__board--eqmap {
    padding: 0.85rem;
  }

  .atlas-grid--headers,
  .atlas-grid--board {
    gap: 0.65rem;
  }

  .atlas-grid__corner,
  .atlas-grid__header,
  .atlas-grid__band,
  .atlas-square {
    min-height: 126px;
    padding: 0.85rem;
  }

  .atlas-workbench__canvas {
    min-height: 520px;
  }
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.travel-card {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 31, 0.72);
}

.travel-card--ring {
  background: linear-gradient(180deg, rgba(57, 92, 44, 0.22), rgba(13, 17, 31, 0.78));
}

.travel-card--spire {
  background: linear-gradient(180deg, rgba(55, 68, 130, 0.24), rgba(13, 17, 31, 0.78));
}

.travel-card h3 {
  margin-bottom: 0.7rem;
  color: var(--gold-bright);
}

.feature-list--compact {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .travel-grid {
    grid-template-columns: 1fr;
  }
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 190, 110, 0.45);
  background: linear-gradient(180deg, rgba(9, 13, 31, 0.9), rgba(5, 8, 20, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 225, 156, 0.14), 0 10px 22px rgba(0, 0, 0, 0.35);
}

.language-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(226, 233, 255, 0.9);
  padding: 0.38rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.language-btn:hover {
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(245, 221, 146, 0.45);
  color: #fff9e6;
}

.language-btn.is-active {
  border-color: rgba(245, 221, 146, 0.95);
  background: linear-gradient(180deg, rgba(184, 139, 68, 0.34), rgba(118, 82, 33, 0.28));
  color: #fff4cf;
  box-shadow: 0 0 0 2px rgba(245, 221, 146, 0.15);
}

.wiki-hero__inner .language-switcher {
  position: absolute;
  top: 1.15rem;
  right: 0;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .wiki-hero__inner .language-switcher {
    position: static;
    margin: 0 auto 1.1rem;
  }
}
