/* =========================================================
   BRANSVILLE: THE DEAD RISE — matches the game's own look
   ========================================================= */

:root {
  --bg: #161614;
  --bg-2: #1c1c1a;
  --panel: #242422;
  --panel-2: #2b2b28;
  --line: rgba(233, 229, 217, .1);
  --line-olive: rgba(160, 175, 80, .35);

  --text: #e9e5d9;
  --muted: #a7a395;
  --dim: #77746a;

  --olive: #7b8a37;
  --olive-hi: #c3cf5c;
  --rust: #8f3a2e;
  --red: #c4533f;

  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --type: "Special Elite", "Courier New", monospace;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(123, 138, 55, .08), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .06;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--olive); color: #fff; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .01em; margin-bottom: 18px; }
h3 { font-size: 1.25rem; letter-spacing: .03em; }
p { margin: 0 0 1em; }

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--head); font-weight: 500; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.muted { color: var(--muted); }
.type { font-family: var(--type); }

/* ---------- Buttons (like the in-game ones) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: 14px 26px;
  border-radius: 14px;
  font-family: var(--body); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; text-align: center;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid rgba(233, 229, 217, .12);
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn small { font-weight: 400; opacity: .8; }
.btn--olive { background: var(--olive); border-color: #94a548; color: #fff; }
.btn--rust { background: var(--rust); border-color: #b04a3a; color: #fff; }
.btn.is-soon, .btn--olive.is-soon {
  cursor: default;
  color: var(--muted);
  background: rgba(123, 138, 55, .08);
  border: 1px dashed rgba(195, 207, 92, .45);
}
.btn.is-soon:hover { filter: none; transform: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(22, 22, 20, .9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__logo img { height: 34px; width: auto; }
.topbar nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 26px); }
.topbar nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.topbar nav a:not(.btn):hover { color: var(--text); }
.topbar .btn { padding: 8px 16px; font-size: .95rem; border-radius: 10px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding-top: clamp(72px, 11vw, 120px); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split--flip > :first-child { order: 2; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* ---------- Phone frame ---------- */
.phone {
  width: 100%; max-width: 300px; margin: 0 auto;
  aspect-ratio: 720 / 1558;
  border-radius: 30px; overflow: hidden;
  border: 6px solid #0c0c0b;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, .55);
  background: var(--bg-2);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Banner (feature graphic on a black band that fades into the page) ---------- */
.banner { position: relative; background: #000; }
.banner img { width: min(1024px, 100%); height: auto; margin: 0 auto; }
.banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7%; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.banner h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 56px); }
.hero__logo { width: min(560px, 100%); height: auto; margin: 6px 0 22px; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .6)); }
.hero__tag {
  font-family: var(--head); font-weight: 500; text-transform: uppercase;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem); letter-spacing: .04em; margin-bottom: 18px;
}
.hero__story p { color: var(--muted); }
.hero__story .type { color: var(--text); font-size: 1.15rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero__facts { font-size: .95rem; color: var(--dim); letter-spacing: .04em; margin-bottom: 14px; }
.tribute {
  display: inline-block; margin: 0;
  padding: 8px 14px; border: 1px dashed var(--line-olive); border-radius: 10px;
  font-family: var(--type); font-size: .95rem; color: var(--muted);
}
.tribute a { color: var(--olive-hi); text-underline-offset: 3px; }

/* ---------- Town ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0; }
.stat { padding: 16px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.stat b { display: block; font-family: var(--head); font-size: 2rem; line-height: 1; color: var(--olive-hi); }
.stat span { font-size: .9rem; color: var(--muted); }
.places { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.places li {
  font-family: var(--head); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--line-olive); border-radius: 6px; color: var(--text);
}
.note {
  font-family: var(--type); font-size: 1.05rem; line-height: 1.55;
  padding: 18px 20px; margin: 0;
  background: var(--panel); border-left: 3px solid var(--olive); border-radius: 0 12px 12px 0;
}

/* ---------- Sides ---------- */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.side { padding: 26px 26px 18px; background: var(--panel); border-radius: 18px; border: 1px solid var(--line); }
.side--survivor { border-top: 4px solid var(--olive); }
.side--zombie { border-top: 4px solid var(--rust); }
.side h3 { font-size: 1.6rem; margin-bottom: 4px; }
.side--survivor h3 { color: var(--olive-hi); }
.side--zombie h3 { color: var(--red); }
.side > p { color: var(--muted); }
.side ul { list-style: none; padding: 0; margin: 0; }
.side li { padding: 12px 0; border-top: 1px solid var(--line); }
.side li b { display: block; font-weight: 600; }
.side li span { color: var(--muted); font-size: .95rem; }
.rise {
  margin-top: 18px; padding: 18px 22px; text-align: center;
  font-family: var(--type); font-size: 1.1rem;
  background: linear-gradient(90deg, rgba(123, 138, 55, .18), rgba(143, 58, 46, .22));
  border: 1px solid var(--line); border-radius: 14px;
}

/* ---------- Characters ---------- */
.roster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.char { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.char b { display: block; font-family: var(--head); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.char span { font-size: .93rem; color: var(--muted); line-height: 1.45; display: block; }
.char--zombie { border-color: rgba(196, 83, 63, .45); background: linear-gradient(135deg, rgba(143, 58, 46, .25), var(--panel)); }
.char--zombie b { color: var(--red); }
.skills { margin-top: 22px; color: var(--muted); }
.skills b { color: var(--text); font-weight: 600; }

/* ---------- AP ---------- */
.ap {
  margin: 26px 0 8px; padding: 20px 22px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  max-width: 460px;
}
.ap__row { display: flex; align-items: baseline; gap: 18px; font-weight: 600; color: var(--muted); }
.ap__row b { font-size: 2.2rem; color: var(--text); margin-left: 6px; }
.ap__bar { height: 8px; border-radius: 8px; background: #3a3a36; margin: 12px 0 10px; overflow: hidden; }
.ap__bar i { display: block; height: 100%; background: var(--olive-hi); border-radius: 8px; transition: width .6s ease; }
.ap__foot { display: flex; justify-content: space-between; font-size: .95rem; color: var(--muted); }

/* ---------- Together ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 8px; }
.feature { padding: 20px 20px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.feature h3 { margin-bottom: 8px; color: var(--olive-hi); }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 32px); margin-top: 40px; }
.gallery figure { margin: 0; }
.gallery figcaption { text-align: center; margin-top: 12px; font-size: .9rem; color: var(--dim); }
.gallery .phone { max-width: 260px; }

/* ---------- Never empty ---------- */
.weather { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 22px; }
.wx { padding: 18px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.wx b { display: block; font-family: var(--head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.wx span { color: var(--muted); font-size: .95rem; }
.wx--night { background: linear-gradient(160deg, #1d2030, var(--panel)); }
.wx--snow { background: linear-gradient(160deg, #343836, var(--panel)); }
.wx--rain { background: linear-gradient(160deg, #222c2e, var(--panel)); }
.wx--fog { background: linear-gradient(160deg, #3a3a36, var(--panel)); }
.heli { font-family: var(--type); font-size: 1.2rem; text-align: center; color: var(--text); margin-top: 10px; }

/* ---------- Free ---------- */
.free {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 44px);
  background: var(--panel); border: 1px solid var(--line-olive); border-radius: 22px;
}
.free__big { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: .95; }
.free__big span { display: block; color: var(--olive-hi); }
.free ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--muted); }
.free li { margin-bottom: 4px; }

/* ---------- Where to play ---------- */
.platforms { display: grid; gap: 12px; margin: 26px 0 20px; }
.platform {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.platform h3 { font-size: 1.3rem; }
.platform p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.age { font-size: .95rem; color: var(--dim); }

/* ---------- Privacy policy ---------- */
.doc { max-width: 820px; padding-top: clamp(40px, 7vw, 72px); }
.doc h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); margin-bottom: 6px; }
.doc__updated { color: var(--dim); margin-bottom: 28px; }
.doc p, .doc li, .doc td { color: var(--muted); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--olive-hi); text-underline-offset: 3px; }
.doc h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 56px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.doc h2 span { color: var(--red); margin-right: .3em; }
.doc h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--olive-hi); scroll-margin-top: 80px; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--olive); }
.doc code { font-family: var(--type); color: var(--text); background: var(--panel-2); padding: 1px 6px; border-radius: 4px; }
.doc__short { margin: 28px 0; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line-olive); border-left: 4px solid var(--olive); border-radius: 0 16px 16px 0; }
.doc__short h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 1.3rem; }
.doc__short p { margin: 0; color: var(--text); }
.doc__toc { margin: 0 0 8px; padding: 18px 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.doc__toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.doc__toc li { margin-bottom: 4px; }
.doc__toc a { color: var(--text); text-decoration: none; }
.doc__toc a:hover { color: var(--olive-hi); text-decoration: underline; }
.doc__table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.doc th { text-align: left; font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text); background: var(--panel); padding: 12px 16px; }
.doc td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.doc td:first-child { color: var(--text); width: 52%; }
.doc__contact { font-style: normal; color: var(--text); line-height: 1.8; padding: 16px 20px; background: var(--panel); border-radius: 14px; border: 1px solid var(--line); }
.todo { background: rgba(196, 83, 63, .22); color: #ffd2c8; padding: 1px 6px; border-radius: 4px; border: 1px dashed var(--red); font-family: var(--body); }
@media (max-width: 640px) {
  .doc__toc ol { columns: 1; }
  .doc td, .doc th { padding: 10px 12px; }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(80px, 12vw, 130px);
  padding: 32px 16px 40px; text-align: center;
  border-top: 1px solid var(--line);
  color: var(--dim); font-size: .92rem;
}
.footer p { margin: 0 0 6px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .split .phone { max-width: 260px; }
  .stats, .weather { grid-template-columns: 1fr 1fr; }
  .free { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar nav a:not(.btn) { display: none; }
  .sides, .roster { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; max-width: 260px; margin-left: auto; margin-right: auto; }
  .hero__ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
