/* Zombies Aren't Real Wiki — visual theme matched to the game's UI.
   Dark slate ground like the game's map view, city-tan text, infection purple,
   safe-zone cyan, troop green. Monospace UI labels with [KEY] chips, mirroring
   the in-game command bar. System fonts only. */

:root {
  --bg: #161a21;
  --bg-2: #1e242e;
  --bg-3: #262e3a;
  --line: #38414e;
  --line-soft: #2b333e;
  --text: #e8e4d6;
  --text-dim: #9aa3af;
  --text-faint: #6f7885;
  --city: #c9bfa8;
  --purple: #a06ce0;
  --magenta: #d94fa0;
  --cyan: #64cfe8;
  --green: #8fd14f;
  --blue: #4d6fa8;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --shell: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px) 0 0 / 28px 100%,
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--cyan); text-underline-offset: 2px; }
a:hover { color: #8fdff2; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cyan); color: #10202a; padding: .5rem 1rem; z-index: 50; font-weight: 600;
}
.skip:focus { left: 0; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 20px; }

/* ---------- masthead ---------- */
.masthead {
  background: rgba(22,26,33,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.masthead-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-top: 13px; padding-bottom: 13px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em;
  background: var(--cyan); color: #10202a; padding: 6px 7px; border-radius: 2px; font-weight: 700;
}
.brand-name {
  font-family: var(--sans); font-size: 1.16rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em;
}
.brand-name em { font-style: normal; color: var(--cyan); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.nav a {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none; padding: 7px 10px; border-radius: 2px;
}
.nav a:hover { color: var(--text); background: var(--bg-3); }
.masthead-cta {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: #10230a; background: var(--green); padding: 9px 14px; border-radius: 2px; text-decoration: none; font-weight: 700;
}
.masthead-cta:hover { background: #a3e06b; color: #10230a; }
.nav-toggle {
  display: none; margin-left: auto; font-family: var(--mono); font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; background: var(--bg-3);
  color: var(--text); border: 1px solid var(--line); border-radius: 2px; padding: 8px 12px; cursor: pointer;
}
.ruler {
  height: 26px; display: flex; align-items: stretch; overflow: hidden;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; color: var(--text-faint);
}
.ruler i {
  flex: 1; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--line-soft); white-space: nowrap; padding: 0 6px;
}
.ruler i:nth-child(1) { border-left: 0; }

/* ---------- shared type ---------- */
.kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 .6rem;
}
h1 {
  font-family: var(--sans); font-size: clamp(2.2rem, 5.4vw, 3.3rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.02em; margin: 0 0 .8rem;
}
h2 {
  font-family: var(--sans); font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  font-weight: 750; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .9rem;
}
h3 {
  font-family: var(--sans); font-size: 1.08rem; font-weight: 700; line-height: 1.3;
  margin: 1.9rem 0 .45rem;
}
.lede { font-size: 1.06rem; color: var(--text-dim); max-width: 60ch; margin: 0 0 1.4rem; }
.badge {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  color: var(--city); margin: 0 0 1rem;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 8px; overflow: hidden; }
.hero-watermark {
  position: absolute; inset-inline: 0; top: 6px; text-align: center;
  font-family: var(--sans); font-weight: 800; font-size: 15vw; line-height: 1;
  color: rgba(232,228,214,0.035); pointer-events: none; user-select: none; white-space: nowrap;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px; align-items: center;
}
.hero-copy { position: relative; }
.hero-copy .lede { margin-bottom: 1.5rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-status {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; color: var(--city);
  margin: 1.6rem 0 0; border-top: 1px dashed var(--line); padding-top: .9rem;
}
.hero-map {
  background: var(--bg-2); border: 1px solid var(--line); padding: 10px;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.35);
}
.hero-map svg { display: block; }
.hero-map-caption {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; color: var(--text-faint);
  margin: 8px 2px 2px; text-align: center;
}

/* ---------- player plate ---------- */
.plate { padding-top: 30px; }
.stage {
  position: relative; width: 100%; height: 208px;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.35); overflow: hidden;
}
.stage iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--bg-2); }
.cover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 26px; padding: 16px 22px;
}
.cover-art {
  max-height: 148px; width: auto; max-width: 40%;
  border: 1px solid var(--line); box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}
.cover-inner { text-align: left; max-width: 460px; }
.cover-kicker {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--magenta); margin: 0 0 .45rem;
}
.cover-title {
  font-family: var(--sans); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800;
  letter-spacing: -.01em; margin: 0 0 .35rem;
}
.cover-tag {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--text-dim);
  margin: 0 0 1rem;
}
.play-btn {
  font-family: var(--mono); font-size: .84rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--green); color: #10230a; border: 0; border-radius: 2px;
  padding: 12px 22px; cursor: pointer; font-weight: 700;
}
.play-btn:hover { background: #a3e06b; }
.play-btn:focus-visible, .btn:focus-visible, .pill:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.loader {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  background: var(--bg-2); padding: 24px;
}
.loader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 84px; margin: 0 auto .8rem; }
.loader-grid i { aspect-ratio: 1; background: var(--line); animation: tick 1.1s infinite ease-in-out; }
.loader-grid i:nth-child(2) { animation-delay: .12s; }
.loader-grid i:nth-child(3) { animation-delay: .24s; }
.loader-grid i:nth-child(4) { animation-delay: .36s; }
.loader-grid i:nth-child(5) { animation-delay: .48s; background: var(--cyan); }
.loader-grid i:nth-child(6) { animation-delay: .6s; }
.loader-grid i:nth-child(7) { animation-delay: .72s; }
.loader-grid i:nth-child(8) { animation-delay: .84s; }
.loader-grid i:nth-child(9) { animation-delay: .96s; }
@keyframes tick {
  0%, 70%, 100% { background: var(--line); transform: scale(.9); }
  35% { background: var(--cyan); transform: scale(1); }
}
.loader-text { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; color: var(--text-dim); margin: 0; }
.stage-error {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: var(--bg-2); padding: 24px;
}
.stage-error[hidden] { display: none; }
.stage-error-title { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin: 0 0 .4rem; }
.stage-error-hint { font-size: .88rem; color: var(--text-dim); max-width: 44ch; margin: 0 auto 1rem; }
.stage-error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.plate-note {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .02em; color: var(--text-faint);
  max-width: 74ch; margin: 12px 0 0; line-height: 1.6;
}
.engage { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0 0; }

/* ---------- sections ---------- */
.section { padding: 44px 0 0; }
.section > h2:first-of-type { margin-top: 0; }

/* ---------- quick start ---------- */
.qs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qs-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px;
  padding: 16px 16px 18px; text-decoration: none; color: var(--text);
}
.qs-card:hover { border-color: var(--cyan); }
.qs-num {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--magenta);
}
.qs-title { font-size: 1.08rem; font-weight: 700; line-height: 1.25; }
.qs-text { font-size: .87rem; color: var(--text-dim); line-height: 1.5; }
.qs-open {
  margin-top: auto; padding-top: 8px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.qs-card:hover .qs-open { color: #8fdff2; }

/* ---------- two column ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; align-items: start; }
.mod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mod-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px;
  padding: 16px 16px 18px; text-decoration: none; color: var(--text);
}
.mod-card:hover { border-color: var(--magenta); }
.mod-card h3 { margin: 0; font-size: 1.05rem; }
.mod-card p { margin: 0; font-size: .87rem; color: var(--text-dim); line-height: 1.5; }
.chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 2px;
  padding: 4px 8px; color: var(--city);
}
.chips-tags li { color: var(--text-dim); }
.chip-key { color: var(--magenta); font-weight: 700; }

.side-head {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line);
}
.side-links { display: flex; flex-direction: column; gap: 2px; margin-bottom: 1.4rem; }
.side-links a {
  font-size: .92rem; color: var(--text); text-decoration: none; padding: 7px 9px;
  border-left: 2px solid transparent;
}
.side-links a:hover { background: var(--bg-2); border-left-color: var(--cyan); }
.side-facts { background: var(--bg-2); border: 1px solid var(--line); padding: 12px 14px; }
.side-facts-head {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 .6rem;
}
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dotted var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .82rem; color: var(--text-faint); }
.facts dd { font-size: .84rem; margin: 0; text-align: right; font-weight: 600; }

/* ---------- prose ---------- */
.prose { max-width: 74ch; }
.prose p { margin: 0 0 1.05rem; }
.prose ul, .prose ol { margin: 0 0 1.05rem; padding-left: 1.35rem; }
.prose li { margin: 0 0 .45rem; }
.prose h2 {
  margin-top: 2.4rem; padding-top: .4rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
}
.prose h2:first-of-type { border-top: 0; margin-top: 2.6rem; }
.prose h3 { margin-top: 1.6rem; }
.prose strong { font-weight: 700; color: #fff; }
.prose blockquote {
  margin: 1.2rem 0; padding: .2rem 0 .2rem 1rem;
  border-left: 3px solid var(--purple); color: var(--text-dim);
}
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.2rem 0 1.4rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose thead th {
  background: var(--bg-3); font-family: var(--mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--city);
}
.prose tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.prose code {
  font-family: var(--mono); font-size: .86em; background: var(--bg-3);
  border: 1px solid var(--line); border-radius: 2px; padding: 1px 5px;
}

.page { padding: 40px 0 10px; }

/* ---------- wiki layout (sidebar + article) ---------- */
.wiki {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px; padding-top: 38px; padding-bottom: 10px; align-items: start;
}
.wiki .prose { max-width: none; }
.wiki-shot { margin: 1.1rem 0 1.6rem; }
.wiki-shot img { border: 1px solid var(--line); }
.wiki-shot figcaption {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em;
  color: var(--text-faint); margin-top: .5rem; line-height: 1.55;
}
.wiki-side { position: sticky; top: 18px; }
.wiki-side .side-nav { display: flex; flex-direction: column; gap: 2px; }
.wiki-side .side-nav a {
  font-size: .94rem; color: var(--text); text-decoration: none; padding: 7px 9px;
  border-left: 2px solid transparent;
}
.wiki-side .side-nav a:hover { background: var(--bg-2); border-left-color: var(--cyan); }
.wiki-side .side-head + .side-nav { margin-bottom: 1.4rem; }
.wiki-side .side-nav-plain a { color: var(--text-dim); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.4rem; }
.faq h3 { margin-top: 1.7rem; }

/* ---------- talk (likes + comments) ---------- */
.talk { border-top: 1px solid var(--line); }
.talk-lede { font-size: .95rem; color: var(--text-dim); max-width: 58ch; margin: 0 0 1.1rem; }
.like-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 1.4rem; }
.pill {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .06em;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 2px; padding: 8px 16px; cursor: pointer;
}
.pill:hover { border-color: var(--cyan); color: #fff; }
.pill[aria-pressed="true"], .pill[data-gf-liked] { background: var(--green); color: #10230a; border-color: var(--green); }
.pill .num { margin-left: 2px; }
.engage-msg { font-size: .85rem; color: var(--green); }
.talk-box { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.4rem; }
.talk-box[data-gf-empty]::before {
  content: "No notes yet. What did you build first on your last run?";
  display: block; font-size: .9rem; color: var(--text-faint); margin-bottom: .4rem;
}
.talk-box[data-gf-off] { display: none; }
.comment {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--cyan);
  padding: 12px 14px;
}
.comment[data-gf-owner] { border-left-color: var(--magenta); background: var(--bg-3); }
.comment-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 .3rem; }
.comment-name { font-weight: 700; font-size: .92rem; color: #fff; }
.comment-time { font-family: var(--mono); font-size: .72rem; color: var(--text-faint); }
.comment-owner {
  display: none; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--magenta); color: #fff; padding: 2px 6px; border-radius: 2px;
}
.comment[data-gf-owner] .comment-owner { display: inline-block; }
.comment-owner[hidden] { display: none !important; }
.comment-to { font-size: .82rem; color: var(--text-faint); }
.comment-sub { margin-left: 22px; }
.comment-text { font-size: .93rem; }
.comment-text p { margin: 0 0 .4rem; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 0; color: var(--cyan); cursor: pointer; padding: 0; margin-top: .4rem;
}
.comment-reply:hover { color: #8fdff2; }
.comment-replies { display: flex; flex-direction: column; gap: 8px; margin-top: .7rem; }
.talk-form { max-width: 620px; }
.talk-form-row { margin-bottom: .7rem; }
.talk-label {
  display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: .3rem;
}
.talk-label span { color: var(--text-faint); text-transform: none; letter-spacing: 0; }
.talk-input {
  width: 100%; font-family: var(--sans); font-size: .94rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px; padding: 9px 11px;
}
.talk-input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.talk-area { resize: vertical; min-height: 74px; }
.talk-form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.talk-replying { font-size: .85rem; color: var(--magenta); margin: 0 0 .6rem; }
.talk-cancel {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 0; color: var(--text-dim); cursor: pointer; padding: 0;
}
.talk-cancel:hover { color: var(--cyan); }
.btn {
  font-family: var(--mono); font-size: .84rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 2px; padding: 10px 16px; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--cyan); color: #fff; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #5a7fc0; }
.btn.ghost { background: transparent; }
.btn.solid { background: var(--green); border-color: var(--green); color: #10230a; }
.btn.solid:hover { background: #a3e06b; color: #10230a; }
.talk-msg { font-size: .88rem; margin: 0; color: var(--green); }

/* ---------- closing ---------- */
.closing { padding-bottom: 8px; }
.closing-box {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--cyan);
  padding: 24px 26px;
}
.closing-box h2 { margin-bottom: .5rem; }
.closing-box p { color: var(--text-dim); max-width: 56ch; margin: 0 0 1.1rem; }

/* ---------- footer ---------- */
.foot { margin-top: 56px; background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-top: 34px; padding-bottom: 10px;
}
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-head {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 .4rem;
}
.foot-brand { font-size: 1.05rem; font-weight: 700; margin: 0; }
.foot-brand em { font-style: normal; color: var(--cyan); }
.foot-tag { font-size: .9rem; color: var(--text-dim); margin: 0; max-width: 42ch; }
.foot-note { font-size: .8rem; color: var(--text-faint); margin: .4rem 0 0; max-width: 46ch; line-height: 1.55; }
.foot-col a { font-size: .9rem; color: var(--text-dim); text-decoration: none; }
.foot-col a:hover { color: var(--cyan); text-decoration: underline; }
.foot-price { font-size: .8rem; color: var(--text-faint); margin: .3rem 0 0; }
.foot-copy {
  max-width: var(--shell); margin: 0 auto; padding: 6px 20px 20px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--text-faint);
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .qs-grid { grid-template-columns: repeat(2, 1fr); }
  .mod-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .wiki { grid-template-columns: 1fr; gap: 26px; }
  .wiki-side { position: static; }
  .wiki-side .side-nav, .side-links { flex-direction: row; flex-wrap: wrap; }
  .wiki-side .side-nav a, .side-links a { border-left: 0; border: 1px solid var(--line); border-radius: 2px; padding: 6px 10px; }
  .side-facts { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; width: 100%; flex-direction: column; gap: 2px;
    order: 5; padding-bottom: 10px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 9px 10px; }
  .masthead-cta { order: 4; width: 100%; text-align: center; }
  .hero { padding-top: 34px; }
  .hero-watermark { font-size: 20vw; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .qs-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .ruler i:nth-child(n+5) { display: none; }
}
