/* Fonts are self-hosted (SIL Open Font License, see /fonts), so no visitor data goes to Google. */
@font-face { font-family: 'Lilita One'; src: url('../fonts/LilitaOne-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }

/* CLNT Studios / Conquest Rush. Plain CSS, no build step. */

:root {
  --bg: #16121c;
  --panel: #231d2b;
  --panel-hi: #2c2436;
  --ink: #0d0a11;
  --text: #efe3c8;
  --muted: #c2b59a;
  --gold: #f2b632;
  --gold-hi: #ffd56b;
  --gold-lo: #d98f1a;
  --btn-text: #2b1d14;
  --link: #ff8a5c;
  --ribbon: #b8372f;
  --radius: 22px;
  --gutter: 16px;
  --col: 980px;
  --head: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* fine paper grain, painted over panels */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .75 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fixed painted backdrop: Bronze Age on the left, Atomic Age on the right. A fixed pseudo-element
   instead of background-attachment: fixed, which mobile browsers ignore. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg);
  background-image: url("../img/bg.jpg");
  background-image: image-set(url("../img/bg.webp") type("image/webp"), url("../img/bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 50% 70%;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 35%, rgba(22, 18, 28, 0) 0%, rgba(22, 18, 28, .55) 100%),
    linear-gradient(180deg, rgba(22, 18, 28, .15) 0%, rgba(22, 18, 28, .35) 55%, rgba(22, 18, 28, .85) 100%);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #ffb08f; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  color: var(--gold);
  line-height: 1.15;
  letter-spacing: .01em;
  /* inked outline + drop, like the game's titles */
  text-shadow:
    -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink),
    0 2px 0 var(--ink), 0 -2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink),
    0 5px 0 var(--ink);
}
h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.15rem); margin: 0 0 .6em; }
h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; }

p { margin: 0 0 1em; }
strong { color: #ffe1a1; font-weight: 800; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  background: var(--gold);
  color: var(--btn-text);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 800;
}
.skip:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: calc(800px + 2 * var(--gutter)); }

/* ---------- Header ---------- */

.site-header { padding: 14px 0 0; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--head);
  font-size: 1.35rem;
  letter-spacing: .02em;
  text-shadow: 0 2px 0 var(--ink);
}
.brand:hover { color: var(--gold); }
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}

.nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: .95rem;
  background: rgba(13, 10, 17, .55);
  border: 2px solid rgba(13, 10, 17, .8);
}
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); border-color: rgba(242, 182, 50, .55); }

/* ---------- Panels: rounded "wood and ink" boards ---------- */

.panel {
  position: relative;
  margin: 0 0 34px;
  padding: 28px 30px 26px;
  border-radius: var(--radius);
  background:
    var(--grain),
    linear-gradient(180deg, rgba(255, 236, 200, .055) 0%, rgba(255, 236, 200, 0) 38%),
    linear-gradient(180deg, var(--panel-hi) 0%, var(--panel) 30%, #1f1a27 100%);
  border: 3px solid var(--ink);
  box-shadow:
    inset 0 0 0 2px rgba(242, 182, 50, .16),
    inset 0 3px 0 2px rgba(255, 236, 200, .07),
    0 8px 0 rgba(13, 10, 17, .85),
    0 22px 40px rgba(0, 0, 0, .45);
}
/* little brass studs in the corners */
.panel::before, .panel::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #c98a1b 60%, #6b4310);
  box-shadow: 0 1px 0 var(--ink);
}
.panel::before { left: 12px; }
.panel::after { right: 12px; }

.panel > :last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .panel { padding: 22px 18px 20px; border-radius: 18px; margin-bottom: 26px; }
  .panel::before, .panel::after { top: 9px; width: 7px; height: 7px; }
  .panel::before { left: 9px; }
  .panel::after { right: 9px; }
}

/* A red banner ribbon, echoing the logo's "From Bronze to Atoms" scroll. */
.ribbon {
  display: inline-block;
  position: relative;
  margin: 0 0 16px;
  padding: 4px 18px 5px;
  font-family: var(--head);
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff3dc;
  background: linear-gradient(180deg, #d24a3f, var(--ribbon) 60%, #93281f);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 3px 0 var(--ink);
  text-shadow: 0 2px 0 rgba(13, 10, 17, .7);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 24px 13px;
  font-family: var(--head);
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  color: var(--btn-text);
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 48%, var(--gold-lo) 100%);
  border: 3px solid var(--btn-text);
  border-radius: 18px;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, .5),
    inset 0 -4px 0 rgba(140, 70, 0, .35),
    0 6px 0 var(--btn-text),
    0 12px 22px rgba(0, 0, 0, .4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
a.btn:hover { color: var(--btn-text); filter: brightness(1.06); transform: translateY(-1px); }
a.btn:active {
  transform: translateY(5px);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(140, 70, 0, .35), 0 1px 0 var(--btn-text), 0 4px 8px rgba(0, 0, 0, .4);
}
.btn svg { width: 22px; height: 22px; flex: none; }

/* Not a link yet: the Google Play release is coming. */
.btn--soon {
  color: var(--text);
  background: linear-gradient(180deg, #3d3349 0%, #2d2537 55%, #241d2c 100%);
  border-color: var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .08), inset 0 -4px 0 rgba(0, 0, 0, .25), 0 6px 0 var(--ink), 0 12px 22px rgba(0, 0, 0, .35);
  text-shadow: 0 2px 0 var(--ink);
  cursor: default;
}
.btn--soon .tag {
  font-size: .72rem;
  letter-spacing: .08em;
  padding: 3px 7px 2px;
  border-radius: 6px;
  color: #fff3dc;
  background: var(--ribbon);
  border: 2px solid var(--ink);
  text-shadow: none;
}

.btn--small { min-height: 46px; font-size: 1.1rem; padding: 9px 18px 10px; border-radius: 15px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 16px;
  margin: 26px 0 10px;
}
@media (max-width: 520px) {
  .cta-row .btn { width: 100%; font-size: 1.06rem; padding: 11px 12px 12px; gap: 8px; min-height: 52px; }
  .btn svg { width: 19px; height: 19px; }
}
.btn, .pitch, .subpitch, .fineprint, h1, h2 { text-wrap: balance; }

/* ---------- Hero ---------- */

.hero { text-align: center; padding: 18px 0 34px; }
.hero .logo {
  width: min(100%, 620px);
  margin: 0 auto -6px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .55));
}
.pitch {
  max-width: 34ch;
  margin: 0 auto .35em;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  line-height: 1.25;
  color: var(--text);
  text-shadow: 0 2px 0 var(--ink), 0 0 18px rgba(0, 0, 0, .8);
}
.subpitch {
  margin: 0 auto;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 2px 0 var(--ink), 0 0 12px rgba(0, 0, 0, .9);
}
.fineprint { font-size: .9rem; color: var(--muted); margin-top: 6px; text-shadow: 0 1px 0 var(--ink); }

/* ---------- The march: 5 ages, 15 bases ---------- */

.march {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.march::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 11px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #d9a35b, #8fb8d8, #e58aa0, #b98a5a, #63d6c6);
  border: 2px solid var(--ink);
}
.march li { flex: 1; text-align: center; position: relative; min-width: 0; }
.march .bases { display: flex; justify-content: center; gap: 5px; height: 28px; align-items: center; }
.march .bases span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--age);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45);
}
.march .bases span:last-child { width: 18px; height: 18px; }
.march .age {
  display: block;
  margin-top: 6px;
  font-family: var(--head);
  font-size: 1.05rem;
  color: var(--age);
  text-shadow: 0 2px 0 var(--ink);
}
.march .era { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.age-bronze { --age: #e2ab5f; }
.age-viking { --age: #9cc4e4; }
.age-samurai { --age: #f095ab; }
.age-steam { --age: #cf9a64; }
.age-atomic { --age: #6fe3d3; }
@media (max-width: 600px) {
  .march .bases { gap: 3px; }
  .march .bases span { width: 9px; height: 9px; }
  .march .bases span:last-child { width: 12px; height: 12px; }
  .march .age { font-size: .82rem; }
  .march .era { display: none; }
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
.gallery figure { margin: 0; }
.shot {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 10px 18px rgba(0, 0, 0, .35);
  background: #0f0c14;
  aspect-ratio: 16 / 9;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.shot:hover img { transform: scale(1.03); }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 11px;
  box-shadow: inset 0 0 0 2px rgba(242, 182, 50, .22);
  pointer-events: none;
}
.gallery figcaption {
  margin-top: 9px;
  font-weight: 800;
  font-size: .95rem;
  color: var(--muted);
}
.gallery figcaption b { color: var(--gold); font-family: var(--head); font-weight: 400; letter-spacing: .02em; }

/* ---------- Feature list with Conquest Tree hexes ---------- */

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 30px; }
@media (min-width: 820px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { position: relative; padding-left: 40px; }
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 26px;
  height: 29px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--ink);
}
.features li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6.5px;
  width: 20px;
  height: 22px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: radial-gradient(circle at 50% 30%, #ffe08a 0%, var(--gold) 45%, #b9740f 100%);
}
.features strong { display: block; font-family: var(--head); font-weight: 400; font-size: 1.15rem; color: var(--gold); letter-spacing: .015em; }

.steps { margin: 0; padding-left: 1.3em; }
.steps li { margin-bottom: .45em; }
.steps li::marker { color: var(--gold); font-family: var(--head); }

.two-col { display: grid; gap: 0 34px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Long-form pages (privacy, support) ---------- */

.page-title { text-align: center; padding: 26px 0 8px; }
.page-title p { color: var(--muted); font-weight: 700; text-shadow: 0 1px 0 var(--ink); }

.prose h2 { font-size: clamp(1.4rem, 4vw, 1.75rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold); }

.callout {
  margin: 0 0 1.4em;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(13, 10, 17, .45);
  border: 2px dashed rgba(242, 182, 50, .45);
}
.callout ul { margin: 0; }

/* FAQ uses <details>, so it works without JavaScript */
.faq details {
  margin: 0 0 12px;
  border-radius: 14px;
  background: rgba(13, 10, 17, .42);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 46px 13px 16px;
  font-family: var(--head);
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: .015em;
  position: relative;
  text-shadow: 0 2px 0 var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border-radius: 7px;
  background: var(--gold);
  color: var(--btn-text);
  border: 2px solid var(--btn-text);
  text-shadow: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 16px 14px; }
.faq .answer > :last-child { margin-bottom: 0; }
.faq ol, .faq ul { padding-left: 1.3em; margin: 0 0 1em; }

.mail {
  display: inline-block;
  font-weight: 800;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

/* ---------- 404 ---------- */

.lost { text-align: center; margin-top: 6vh; }
.lost .code {
  font-family: var(--head);
  font-size: clamp(5rem, 22vw, 9rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 3px 3px 0 var(--ink), 0 9px 0 var(--ink);
  margin: 0 0 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 10px;
  padding: 26px 0 34px;
  background: linear-gradient(180deg, rgba(13, 10, 17, 0) 0%, rgba(13, 10, 17, .82) 35%);
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
}
.site-footer ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  font-weight: 800;
}
.site-footer p { margin: 0; }

/* ---------- Lightbox (only when JS runs) ---------- */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 8, 14, .97);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(10, 8, 14, .85); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; padding: 56px var(--gutter) 16px; max-width: 1600px; width: 100%; }
.lightbox img {
  width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  border-radius: 12px;
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  background: #0f0c14;
}
.lightbox figcaption { text-align: center; margin-top: 12px; font-weight: 800; }
.lightbox .lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  font-family: var(--head);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--btn-text);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo));
  border: 3px solid var(--btn-text);
  border-radius: 14px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 4px 0 var(--btn-text);
  cursor: pointer;
}
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(13, 10, 17, .55);
  overflow-wrap: anywhere;
}

/* Keep the footer at the bottom on short pages */
body { display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
