:root {
  --bg: #0a0908;
  --panel: #14110f;
  --ink: #f3e6d0;
  --muted: #9a8b78;
  --horde: #c23b22;
  --horde2: #e85a2a;
  --gold: #d4a017;
  --cyan: #22d3ee;
  --line: #2a221c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
}
body { display: flex; flex-direction: column; min-height: 100%; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
  border-bottom: 3px solid var(--horde);
  background: linear-gradient(180deg, #1a100e, #0a0908);
}
.top h1 {
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.08em;
  color: var(--horde2);
  font-weight: 900;
}
.top .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.top .badge {
  background: var(--horde); color: #fff; font-weight: 800;
  padding: 8px 12px; border-radius: 6px; letter-spacing: 0.08em; font-size: 12px;
}

.shell {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 0;
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: 55vh auto; }
}

.map-pane {
  position: relative;
  background: #000;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.map-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 70px);
}
.map-stage img.world {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hotspots .pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  z-index: 2;
}
.hotspots .pin .dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--horde);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #000, 0 4px 14px rgba(0,0,0,.6);
  color: #fff; font-weight: 900; font-size: 14px;
  display: grid; place-items: center;
  transition: transform .12s ease;
}
.hotspots .pin.forever .dot { background: var(--cyan); color: #0b0a09; }
.hotspots .pin:hover .dot,
.hotspots .pin:focus .dot,
.hotspots .pin.active .dot {
  transform: scale(1.18);
  outline: none;
}
.hotspots .pin .tip {
  position: absolute; left: 50%; top: calc(100% + 6px);
  transform: translateX(-50%);
  background: rgba(0,0,0,.88); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 4px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  border: 1px solid rgba(255,255,255,.2);
}
.hotspots .pin:hover .tip { opacity: 1; }

.side {
  border-left: 1px solid var(--line);
  background: var(--panel);
  overflow: auto;
  padding: 12px;
}
.side h2 {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.route-list { display: flex; flex-direction: column; gap: 6px; }
.route-list button {
  display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: center;
  text-align: left; width: 100%;
  background: #1c1714; border: 1px solid #332820; border-radius: 8px;
  color: var(--ink); padding: 6px 8px 6px 6px; cursor: pointer;
}
.route-list button:hover, .route-list button.active {
  border-color: var(--horde2);
  background: #241a16;
}
.route-list .n {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 900; background: var(--horde); color: #fff;
}
.route-list .n.forever { background: var(--cyan); color: #0b0a09; }
.route-list .z { font-weight: 800; font-size: 14px; }
.route-list .m { font-size: 11px; color: var(--muted); }
.side-note {
  font-size: 11px; color: var(--muted); line-height: 1.4;
  margin: 0 0 10px; padding: 8px; border-radius: 8px;
  background: #1c1714; border: 1px solid #332820;
}
.warrior-kit {
  margin: 0 0 12px; padding: 8px; border-radius: 8px;
  background: #1c1714; border: 1px solid #4a2818;
}
.warrior-kit h3 {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--horde2); margin-bottom: 6px;
}
.warrior-kit ol {
  margin: 0; padding-left: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.warrior-kit li { font-size: 10px; color: var(--ink); line-height: 1.35; }
.sources {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.sources h3 {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.sources ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sources li { font-size: 10px; color: var(--muted); line-height: 1.35; }

/* ZONE DETAIL OVERLAY */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.72);
  display: none; align-items: stretch; justify-content: center;
  padding: 24px;
}
.overlay.open { display: flex; }
.sheet {
  width: min(1100px, 100%);
  max-height: 100%;
  overflow: auto;
  background: #120f0d;
  border: 2px solid var(--horde);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 800px) {
  .sheet { grid-template-columns: 1fr; }
}
.sheet .zone-map {
  background: #000; border-right: 1px solid var(--line);
  display: grid; place-items: center; padding: 12px;
}
.sheet .zone-map img {
  max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 6px;
}
.sheet .body { padding: 16px 18px 20px; }
.sheet .body header {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  margin-bottom: 12px;
}
.sheet .body h3 {
  font-size: 26px; font-weight: 900; color: var(--horde2);
}
.sheet .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.sheet .close {
  background: var(--horde); color: #fff; border: 0; border-radius: 6px;
  font-weight: 800; padding: 8px 12px; cursor: pointer;
}
.tag {
  display: inline-block; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px; margin-right: 6px;
  background: #2a221c; color: var(--gold);
}
.tag.forever { background: rgba(34,211,238,.15); color: var(--cyan); }
.section { margin-top: 14px; }
.section h4 {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.section.where {
  padding: 10px 12px; border-radius: 8px;
  background: #0e1614; border: 1px solid #1a4a3a;
}
.section.where h4 { color: #3dd68c; }
.section.where ol { padding-left: 20px; margin: 0; }
.section.where li { margin: 6px 0; line-height: 1.4; font-size: 14px; font-weight: 600; }
.section.warrior {
  padding: 10px 12px; border-radius: 8px;
  background: #1a100e; border: 1px solid #4a2818;
}
.section.warrior h4 { color: var(--horde2); }
.section.items h4 { color: var(--cyan); }
.section ul { padding-left: 18px; }
.section li { margin: 4px 0; line-height: 1.35; font-size: 14px; }
.hubs { display: flex; flex-wrap: wrap; gap: 6px; }
.hubs span {
  background: #1c1714; border: 1px solid #3a2f28; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 700;
}
.nav-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.nav-row button {
  background: #1c1714; border: 1px solid #3a2f28; color: var(--ink);
  border-radius: 8px; padding: 10px 14px; font-weight: 800; cursor: pointer;
}
.nav-row button.primary { background: var(--horde); border-color: var(--horde); color: #fff; }

.foot {
  padding: 8px 16px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 11px;
}
