/* Dead Raid – guide pages (public/pages/*.html, built by tools/build_pages.mjs).
   Same look as the landing page (landing-v2.css): Rajdhani, flat smoked panels, hairline borders, pale khaki highlight, red only for DEAD.
   Stands on its own: these pages load this one file, no script, so they open fast from a search result. */
:root {
  --ui: 'Rajdhani', 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --bg: #0a0a09; --bg2: #0f0f0e; --tx: #ece8de; --tx2: #c4c0b6; --tx3: #8f8c84;
  --hl: #d9d29a; --hl2: #efe8b6; --red: #d8392a;
  --pn: rgba(46, 46, 44, .42); --pn-h: rgba(78, 76, 66, .5); --bd: rgba(255, 255, 255, .12); --bd2: rgba(255, 255, 255, .24);
  --navh: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navh) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 500 18px/1.55 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--hl); text-underline-offset: 3px; }
a:hover { color: var(--hl2); }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--hl); color: #111; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 44px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(12, 12, 11, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--bd); }
.nav-in { display: flex; align-items: center; gap: 22px; min-height: var(--navh); max-width: 1480px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 40px); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand small { font: 700 10px/1 var(--ui); letter-spacing: .5em; color: #cfc9b2; margin-bottom: 3px; white-space: nowrap; }
.brand b { font: 700 22px/1 var(--ui); letter-spacing: .06em; color: #f4f1ea; white-space: nowrap; }
.brand em { font-style: normal; color: var(--red); }
.links { display: flex; gap: 2px; margin-right: auto; }
.links a { position: relative; padding: 10px 13px; font: 600 16px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: #cfcbc2; white-space: nowrap; }
.links a::after { content: ''; position: absolute; left: 13px; right: 100%; bottom: 3px; height: 2px; background: var(--hl); transition: right .25s; }
.links a:hover, .links a[aria-current] { color: #fff; }
.links a:hover::after, .links a[aria-current]::after { right: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--bd2); background: rgba(20, 20, 19, .55); color: #ece8de;
  font: 700 15px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 12px 18px; white-space: nowrap; transition: background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn.hl { background: var(--hl); border-color: var(--hl); color: #111; }
.btn.hl:hover { background: var(--hl2); border-color: var(--hl2); color: #111; box-shadow: 0 10px 40px -10px rgba(217, 210, 154, .6); }
.btn.lg { padding: 17px 28px; font-size: 18px; }
.btn svg { width: 20px; height: 20px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--hl); outline-offset: 3px; }

/* ---------- page head ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--bd); background: #0b0b0a; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 35%); opacity: .72; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 9, .97) 0%, rgba(10, 10, 9, .86) 40%, rgba(10, 10, 9, .3) 78%, rgba(10, 10, 9, .12) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 38%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(34px, 6vw, 76px); padding-bottom: clamp(34px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 700 13px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--tx3); }
.crumbs a { color: var(--hl); text-decoration: none; }
.crumbs i { font-style: normal; color: #5f5d57; }
h1 { margin: 16px 0 0; max-width: 980px; font: 700 clamp(36px, 5.4vw, 72px)/.98 var(--ui); letter-spacing: .01em; text-transform: uppercase; color: #f4f1ea; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--hl); }
.lead { margin: 18px 0 0; max-width: 760px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: #d8d4ca; }
.lead strong, p strong, li strong { color: #f4f1ea; font-weight: 700; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.ctas small { font: 600 14px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; }
.chips li { padding: 7px 12px 6px; border: 1px solid var(--bd); background: rgba(20, 20, 19, .6); font: 600 14px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #dcd8ce; }
.chips b { color: var(--hl); font-weight: 700; }

/* the trailer page: the video is the first and biggest thing on it */
.hero.watch::after { display: none; }
.hero.watch .wrap { padding-top: clamp(22px, 3vw, 40px); }
.hero.watch h1 { font-size: clamp(30px, 3.6vw, 52px); margin-top: 12px; }
.player { margin-top: clamp(14px, 2vw, 24px); max-width: 1120px; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--bd2); box-shadow: 0 24px 70px rgba(0, 0, 0, .6); }
.player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ---------- sections ---------- */
.toc { border-bottom: 1px solid var(--bd); background: var(--bg2); }
.toc .wrap { display: flex; gap: 6px 22px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.toc a { font: 600 15px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--tx2); }
.toc a:hover { color: var(--hl); }
.sec { padding: clamp(46px, 6.5vw, 88px) 0; }
.sec.alt { background: var(--bg2); border-block: 1px solid var(--bd); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--hl); }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--hl); }
h2 { margin: 12px 0 0; font: 700 clamp(30px, 3.8vw, 50px)/1 var(--ui); letter-spacing: .01em; text-transform: uppercase; color: #f4f1ea; text-wrap: balance; }
h3 { margin: 0; font: 700 23px/1.1 var(--ui); letter-spacing: .03em; text-transform: uppercase; color: #f4f1ea; }
.sub { margin: 12px 0 0; max-width: 820px; color: var(--tx2); }
.sec-h { margin-bottom: clamp(22px, 3vw, 36px); }
.prose { max-width: 820px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: #d2cec4; }
.prose li { margin-bottom: 6px; }
.prose h3 { margin: 28px 0 10px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: start; }
.cols > img, .fig img { width: 100%; border: 1px solid var(--bd); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.fig { margin: 0; }
.fig figcaption { margin-top: 8px; font-size: 15px; color: var(--tx3); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 6px; }
.c { position: relative; display: flex; flex-direction: column; background: var(--pn); border: 1px solid var(--bd); overflow: hidden; }
.c-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.c p { margin: 0; font-size: 16.5px; line-height: 1.45; color: var(--tx2); }
.tag { display: inline-block; font: 700 12px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--hl); }
.c-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.c-h .tag { flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--bd); border: 1px solid var(--bd); }
.stats div { background: #121211; padding: 8px 6px 7px; text-align: center; }
.stats dt { font: 700 11px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--tx3); }
.stats dd { margin: 4px 0 0; font: 700 19px/1 var(--ui); color: #f4f1ea; }
.stats dd small { font-size: 13px; color: var(--tx3); font-weight: 600; }
.get { font-size: 15.5px !important; color: var(--tx3) !important; }
.get b { color: #dcd8ce; font-weight: 600; }

/* guns: the render sits on a lit backdrop */
.gun-im { position: relative; aspect-ratio: 16 / 7.4; background: radial-gradient(ellipse 70% 80% at 50% 55%, rgba(217, 210, 154, .13), transparent 70%), #111110; border-bottom: 1px solid var(--bd); }
.gun-im img { position: absolute; left: 18px; top: 14px; width: calc(100% - 36px); height: calc(100% - 28px); max-width: none; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); }
.c.rail { border-color: rgba(64, 224, 255, .45); }
.c.rail .gun-im { background: radial-gradient(ellipse 70% 80% at 50% 55%, rgba(64, 224, 255, .2), transparent 70%), #0e1214; }
.c.rail .tag { color: #6fe6ff; }

/* zombies: portrait on top, the type's own colour as accent */
.zom-im { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; border-bottom: 2px solid var(--a, var(--hl)); }
.zom-im img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.zom-im::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 9, .92) 0%, transparent 38%); }
.zom-im h3 { position: absolute; left: 16px; bottom: 12px; z-index: 1; font-size: 30px; text-shadow: 0 2px 10px #000; }
.zom-im .rd { position: absolute; right: 12px; top: 12px; z-index: 1; padding: 6px 9px 5px; background: rgba(10, 10, 9, .82); border: 1px solid var(--bd2); font: 700 13px/1 var(--ui); letter-spacing: .14em; color: #f4f1ea; }
.tip { padding-left: 12px; border-left: 2px solid var(--a, var(--hl)); color: #dcd8ce !important; }
.tip b { font-weight: 700; color: var(--hl); letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }

/* classes */
.cls { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); padding: clamp(18px, 2.4vw, 30px); background: var(--pn); border: 1px solid var(--bd); border-left: 3px solid var(--a); margin-bottom: 8px; }
.cls > img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 22%; border: 1px solid var(--bd); }
.cls h2 { color: var(--a); margin-top: 6px; }
.cls .abil { margin: 14px 0 6px; font: 700 20px/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: #f4f1ea; }
.cls .abil kbd { margin-left: 8px; }
.cls p { margin: 0 0 12px; color: #d2cec4; }
.paths { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.paths li { padding: 12px 14px; background: #121211; border: 1px solid var(--bd); }
.paths b { display: block; font: 700 18px/1.1 var(--ui); letter-spacing: .05em; text-transform: uppercase; color: #f4f1ea; }
.paths span { display: block; margin-top: 3px; font-size: 15.5px; color: var(--a); }
.paths small { display: block; margin-top: 7px; font-size: 15px; line-height: 1.4; color: var(--tx2); }
.paths small i { font-style: normal; font-weight: 700; color: #dcd8ce; }
kbd { display: inline-block; min-width: 26px; padding: 3px 7px 2px; border: 1px solid var(--bd2); border-bottom-width: 2px; background: #171716; font: 700 14px/1.2 var(--ui); text-align: center; color: #f4f1ea; }

/* tables */
.tbl-w { overflow-x: auto; border: 1px solid var(--bd); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 16.5px; }
caption { caption-side: top; text-align: left; padding: 12px 14px; font: 700 14px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--hl); background: #121211; border-bottom: 1px solid var(--bd); }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--bd); white-space: nowrap; }
td.w { white-space: normal; min-width: 240px; }
thead th { font: 700 13px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--tx3); background: #121211; }
tbody th { font-weight: 700; color: #f4f1ea; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover > * { background: rgba(255, 255, 255, .03); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }

/* lists */
.keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.keys li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--pn); border: 1px solid var(--bd); color: #dcd8ce; }
.keys span { margin-left: auto; text-align: right; }
.keys .k { margin: 0; text-align: left; white-space: nowrap; color: var(--tx3); font-size: 15px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 6px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 70px; background: var(--pn); border: 1px solid var(--bd); color: #d2cec4; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 18px; top: 14px; font: 700 28px/1 var(--ui); color: var(--hl); }
.steps b { display: block; font: 700 20px/1.15 var(--ui); letter-spacing: .04em; text-transform: uppercase; color: #f4f1ea; margin-bottom: 3px; }
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.faq details { border: 1px solid var(--bd); background: var(--pn); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 600 22px/1 var(--ui); color: var(--hl); }
.faq details[open] summary::after { content: '–'; }
.faq h3 { font-size: 19px; letter-spacing: .02em; text-transform: none; }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--tx2); }

/* more guides + closing call */
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px; }
.more a { display: block; padding: 20px 20px 22px; background: var(--pn); border: 1px solid var(--bd); text-decoration: none; transition: background .2s, border-color .2s; }
.more a:hover { background: var(--pn-h); border-color: var(--bd2); }
.more b { display: block; font: 700 22px/1.1 var(--ui); letter-spacing: .04em; text-transform: uppercase; color: #f4f1ea; }
.more span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.4; color: var(--tx2); }
.more i { display: block; margin-top: 12px; font: 700 13px/1 var(--ui); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--hl); }
.final { position: relative; padding: clamp(64px, 9vw, 120px) 20px; text-align: center; border-top: 1px solid var(--bd); background: linear-gradient(0deg, #0a0a09, rgba(10, 10, 9, .8) 40%, rgba(10, 10, 9, .8) 60%, #0a0a09), url(/media/final-bg.jpg) center / cover; }
.final img { width: 84px; height: 84px; margin: 0 auto 16px; filter: drop-shadow(0 0 16px rgba(208, 42, 29, .28)) drop-shadow(0 4px 10px rgba(0, 0, 0, .75)); }
.final h2 { font-size: clamp(36px, 5.4vw, 76px); }
.final p { margin: 14px 0 28px; color: var(--tx2); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding: 26px clamp(16px, 4vw, 44px) calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bd); font: 600 15px/1.3 var(--ui); letter-spacing: .08em; color: var(--tx3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: #a5a29a; text-decoration: none; }
.foot a:hover { color: var(--hl); }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  :root { --navh: 104px; }
  .nav-in { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; justify-content: space-between; }
  .brand img { width: 34px; height: 34px; } .brand b { font-size: 19px; } .brand small { font-size: 9px; letter-spacing: .4em; }
  .nav .btn { padding: 10px 14px; font-size: 14px; }
  .links { order: 3; width: calc(100% + 24px); margin: 6px -12px 0; padding: 0 4px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--bd); }
  .links::-webkit-scrollbar { display: none; }
  .links a { padding: 13px 10px 12px; font-size: 15px; } .links a::after { left: 10px; bottom: 6px; } .links a:hover::after, .links a[aria-current]::after { right: 10px; }
  .cols, .cls { grid-template-columns: 1fr; }
  .cls > img { max-width: 420px; aspect-ratio: 16 / 11; object-position: 50% 18%; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .cards.one { grid-template-columns: 1fr; }
  .c-b { padding: 12px 12px 14px; gap: 8px; } .c p { font-size: 15.5px; }
  h3 { font-size: 19px; } .zom-im h3 { font-size: 22px; left: 12px; bottom: 9px; } .zom-im .rd { font-size: 11px; right: 8px; top: 8px; }
  .c-h { flex-direction: column; gap: 4px; }
  .stats dd { font-size: 16px; } .stats dt { font-size: 11px; letter-spacing: .03em; } .stats div { padding: 7px 2px 6px; } .stats .u { display: none; }
  .gun-im { aspect-ratio: 16 / 9; } .gun-im img { left: 10px; top: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .paths, .shots { grid-template-columns: 1fr; }
  .btn.lg { padding: 15px 20px; font-size: 16px; width: 100%; }
  .steps li { padding: 14px 14px 14px 56px; } .steps li::before { left: 14px; font-size: 24px; }
  .foot { justify-content: center; text-align: center; } .foot nav { justify-content: center; }
  th, td { padding: 9px 10px; font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
