/* Zed Head Games — site styles (mobile-first). Original palette kept: bone ink, gold, blood red, graveyard green. */
@font-face {
  font-family: "Anton";
  src: url("anton-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --bg: #070807;
  --bg2: #0e1110;
  --ink: #efe7d6;
  --muted: #bdb3a0;
  --red: #e0141e;
  --red2: #8b0000;
  --gold: #d7c08a;
  --green: rgba(40, 180, 70, 0.22);
  --line: rgba(215, 192, 138, 0.24);
  --max: 1120px;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px; line-height: 1.55;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(20, 48, 31, 0.9) 0%, rgba(7, 8, 7, 0) 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(90, 0, 0, 0.35) 0%, rgba(7, 8, 7, 0) 70%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
a { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
img, video { max-width: 100%; display: block; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(7, 8, 7, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--gold); text-decoration: none; font-family: var(--display); letter-spacing: 0.12em; font-size: 15px; white-space: nowrap; flex: none; }
.brand img { width: 30px; height: 30px; border-radius: 6px; }
.nav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li a { display: block; padding: 8px 8px; color: var(--ink); text-decoration: none; font-family: var(--ui); font-size: 13px; letter-spacing: 0.04em; white-space: nowrap; border-radius: 6px; }
.nav li a:hover, .nav li a[aria-current="page"] { color: var(--gold); }
@media (max-width: 420px) { .brand span { display: none; } .nav { padding: 8px 10px; gap: 6px; } .nav li a { padding: 8px 6px; font-size: 12.5px; letter-spacing: 0.02em; } }
@media (min-width: 720px) { .nav { padding: 12px 24px; } .nav li a { font-size: 14px; padding: 8px 12px; } }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; line-height: 1.02; }
h1 { color: var(--red); font-size: clamp(48px, 13vw, 104px); margin: 6px 0 10px; text-transform: uppercase; text-shadow: 0 0 28px rgba(224, 20, 30, 0.35), 0 3px 0 #000; }
h2 { color: var(--red); font-size: clamp(32px, 7vw, 52px); margin: 0 0 12px; text-transform: uppercase; text-shadow: 0 2px 0 #000; }
h3 { font-size: 22px; margin: 0 0 6px; color: var(--ink); }
.kicker { font-family: var(--ui); letter-spacing: 0.28em; color: var(--gold); font-size: 12px; font-weight: 600; text-transform: uppercase; margin: 0; }
.lead { color: var(--muted); max-width: 68ch; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 40px 0 16px; }
@media (min-width: 900px) { .section { padding: 64px 0 24px; } }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 28px 16px 8px; }
.hero .logo { width: min(220px, 56vw); height: auto; aspect-ratio: 1; margin: 0 auto 14px; border-radius: 14px; box-shadow: 0 0 48px var(--green), 0 0 0 1px var(--line); }
.hero .tag { color: var(--muted); margin: 0 auto 22px; max-width: 34ch; font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 52px; padding: 8px 20px; border-radius: 10px; text-decoration: none;
  font-family: var(--ui); font-weight: 700; font-size: 16px; color: #fff; line-height: 1.15;
}
.btn small { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.btn-play { background: #000; border: 1px solid #cfcfcf; }
.btn-play:hover { border-color: #fff; background: #111; }
.btn-ghost { background: var(--red2); border: 1px solid var(--red); }
.btn-ghost:hover { background: var(--red); }
/* Free demo button (itch.io): the loudest button on the page */
.btn-demo { background: #FF2828; border: 1px solid #FF2828; color: #000; box-shadow: 0 0 22px rgba(255, 40, 40, 0.35); }
.btn-demo:hover { background: #000; color: #FF2828; }
.btn-demo:hover small { color: var(--ink); }
.btn-demo small { opacity: 1; color: #1a0000; }
.btn-demo { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: 0.05em; text-transform: uppercase; }
.btn-demo small { font-family: var(--ui); font-weight: 700; }
.cta-note { font-family: var(--ui); font-size: 14px; color: var(--muted); margin: 12px auto 0; max-width: 46ch; }
@media (max-width: 420px) { .hero .cta-row .btn { flex: 1 1 100%; } .hero .cta-row .btn-play, .hero .cta-row .btn-ghost { flex: 1 1 40%; } }
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; text-align: left; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 56px 0 16px; }
  .hero .logo { width: 300px; margin: 0; }
  .hero .tag { margin-left: 0; max-width: 44ch; }
  .hero .cta-note { margin-left: 0; max-width: 60ch; }
  .cta-row { justify-content: flex-start; }
}

/* ---------- Trailer ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 18px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(224,20,30,0.15); }
.video-frame video { width: 100%; height: 100%; object-fit: contain; }
.note { color: var(--muted); font-family: var(--ui); font-size: 14px; margin: 10px 0 0; }
details.teasers { margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: rgba(0,0,0,0.3); }
details.teasers summary { cursor: pointer; padding: 14px 0; color: var(--gold); font-family: var(--ui); font-size: 15px; }
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-bottom: 16px; }
.teaser-grid figure { margin: 0; }
.teaser-grid video { width: 100%; max-height: 70vh; aspect-ratio: 9 / 16; background: #000; border-radius: 10px; border: 1px solid var(--line); }
.teaser-grid figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; font-family: var(--ui); }

/* ---------- Features ---------- */
.features { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) { .features li.wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; } .features li.wide .diff { margin-top: 0; } }
.features li { border: 1px solid var(--line); border-left: 3px solid var(--red); background: rgba(0,0,0,0.38); border-radius: 10px; padding: 14px 16px; }
.features h3 { color: var(--ink); font-size: 22px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }
.diff { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 0; list-style: none; }
.diff li { border: 0; padding: 2px 8px; border-radius: 999px; font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #1d1d1b; color: var(--ink); }
.diff li.hard { background: #5a1010; } .diff li.nm { background: var(--red); color: #fff; }

/* ---------- Story cards (original copy) ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0 8px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); background: rgba(0,0,0,0.35); border-radius: 10px; padding: 14px 16px; }
.card h3 { color: var(--red); font-size: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Gallery ---------- */
.gallery { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 599px) { .gallery .cap { font-size: 11px; padding: 5px 6px 7px; line-height: 1.3; } }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.gallery button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #0b0d0c; box-sizing: border-box; }
.gallery button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 444 / 749; object-fit: cover; transition: transform .25s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .cap { display: block; padding: 7px 9px 9px; color: var(--gold); font-family: var(--ui); font-size: 12.5px; letter-spacing: 0.03em; }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
dialog.lightbox::backdrop { background: rgba(0,0,0,0.92); }
.lb-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; }
.lb-inner img { max-height: calc(100vh - 110px); width: auto; border-radius: 10px; border: 1px solid var(--line); }
.lb-cap { color: var(--ink); font-family: var(--ui); font-size: 15px; margin: 0; text-align: center; }
.lb-btn { position: fixed; background: rgba(0,0,0,0.7); color: #fff; border: 1px solid var(--line); border-radius: 999px; width: 48px; height: 48px; font-size: 22px; cursor: pointer; }
.lb-close { top: 12px; right: 12px; } .lb-prev { left: 10px; top: 50%; } .lb-next { right: 10px; top: 50%; }

/* ---------- Play CTA ---------- */
.play-cta { text-align: center; margin: 32px 0 8px; padding: 32px 18px; border-radius: 14px; border: 1px solid rgba(224,20,30,0.45); background: linear-gradient(180deg, rgba(90,0,0,0.35), rgba(0,0,0,0.5)); }
.play-cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; }
.play-cta .cta-row { justify-content: center; }
.play-cta .cta-note { margin: 14px auto 0; }

/* ---------- Footer / sub-pages ---------- */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 16px 32px; text-align: center; color: var(--muted); font-family: var(--ui); font-size: 14px; }
footer a { color: var(--gold); }
footer p { margin: 4px 0; }
.page { padding: 28px 0 40px; max-width: 760px; }
.page h1 { font-size: clamp(40px, 10vw, 64px); }
.page p, .page li { color: var(--ink); line-height: 1.6; }
.page h2 { margin-top: 28px; font-size: 28px; }

.kicker .pre { display: none; }
@media (min-width: 600px) { .kicker .pre { display: inline; } }

/* App Store button (iOS launch, Nov 2026) */
.btn-appstore { display:inline-flex; flex-direction:row; align-items:center; justify-content:center; text-align:left; gap:10px; background:#fff; color:#000; border:1px solid #fff; }
.btn-appstore span { display:flex; flex-direction:column; line-height:1.05; }
.btn-appstore small { color:#222; opacity:1; }
.btn-appstore .apple { width:22px; height:26px; flex:0 0 auto; }
.btn-appstore:hover { background:#000; color:#fff; }
.btn-appstore:hover small { color:#ddd; }
/* LAUNCH SALE note: remove with the commented block in index.html after Nov 13, 2026 */
.sale-note { font-family:var(--ui); display:inline-block; margin:10px 0 0; padding:6px 12px; border:1px dashed #FF2828; color:#ffd9d9; font-size:14px; }
.sale-note b { color:#FF2828; }
