/* Command Base Assault website: the game's own look (dark olive, amber, stencil headings). */
@font-face { font-family: "Saira Stencil One"; src: url("fonts/SairaStencilOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("fonts/BarlowSemiCondensed-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("fonts/BarlowSemiCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #13150f;
  --bg-2: #1a1d15;
  --panel: rgba(26, 29, 21, 0.92);
  --line: rgba(226, 219, 186, 0.14);
  --line-strong: rgba(226, 219, 186, 0.3);
  --fg: #ebe6cf;
  --muted: #a6a287;
  --amber: #f2c14e;
  --amber-ink: #241c05;
  --blue: #3f8cff;
  --red: #ff5b4d;
  --ok: #8fd16a;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Barlow SC", "Barlow Semi Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(12, 14, 9, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; flex-direction: column; line-height: 1; color: var(--fg); }
.logo:hover { text-decoration: none; }
.logo-a { font-weight: 700; font-size: 11px; letter-spacing: 6px; color: var(--amber); margin-left: 2px; }
.logo-b { font-family: "Saira Stencil One", sans-serif; font-size: 25px; margin-top: 2px; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; }
.nav a:hover, .nav a.on { color: var(--fg); text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; background: #0d0f0a url("img/keyart.jpg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 8, 0.92) 0%, rgba(10, 12, 8, 0.6) 45%, rgba(10, 12, 8, 0.1) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(19, 21, 15, 0) 40%); }
.hero .wrap { position: relative; padding-bottom: 72px; padding-top: 96px; }
.kicker { font-weight: 700; letter-spacing: 5px; font-size: 14px; color: var(--amber); text-transform: uppercase; margin: 0 0 10px; }
h1 { font-family: "Saira Stencil One", sans-serif; font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: 1; margin: 0 0 18px; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6); }
.lead { font-size: clamp(18px, 2.1vw, 22px); max-width: 560px; margin: 0 0 28px; color: #f3efdd; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 12px; background: #0b0c08; border: 1px solid var(--line-strong); color: var(--fg); min-width: 200px; }
.store:hover { text-decoration: none; border-color: var(--amber); }
.store svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 12px; color: var(--muted); letter-spacing: 1px; line-height: 1.2; }
.store b { display: block; font-size: 21px; line-height: 1.1; }
.store.soon { cursor: default; }
.store.soon small { color: var(--amber); }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-k { font-weight: 700; letter-spacing: 5px; font-size: 13px; color: var(--amber); text-transform: uppercase; margin: 0 0 6px; }
h2 { font-family: "Saira Stencil One", sans-serif; font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin: 0 0 14px; }
.intro { max-width: 680px; color: var(--muted); margin: 0 0 36px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card-art { aspect-ratio: 552 / 376; background: radial-gradient(ellipse at 50% 70%, #3a4228 0%, #1a1d15 75%); display: flex; align-items: center; justify-content: center; }
.card-art img { width: 100%; height: 100%; object-fit: contain; }
.card-art.row { gap: 0; padding: 0 6px; }
.card-art.row img { width: 33.3%; height: auto; }
.card-body { padding: 16px 20px 20px; }
.card h3 { font-family: "Saira Stencil One", sans-serif; font-weight: 400; font-size: 23px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16.5px; }

/* screenshots: one at a time, big, in a phone's rounded frame; swipe or use the arrows */
.shots { padding-top: 64px; }
.gallery { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; border-radius: 28px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; min-width: 0; }
.slide img { width: 100%; height: auto; aspect-ratio: 2400 / 1104; border-radius: 28px; border: 8px solid #0b0c08; box-shadow: 0 0 0 1px rgba(226, 219, 186, 0.16); background: #0b0c08; }
.slide figcaption { margin: 16px 6px 0; color: var(--muted); font-size: 17px; max-width: 760px; }
.slide figcaption b { display: block; color: var(--fg); font-family: "Saira Stencil One", sans-serif; font-weight: 400; font-size: 24px; margin-bottom: 2px; }
.nav-btn { position: absolute; top: calc((100% - 70px) / 2); transform: translateY(-50%); width: 48px; height: 48px; border-radius: 24px; padding: 0; font-size: 30px; line-height: 44px; color: var(--fg); background: rgba(12, 14, 9, 0.72); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-btn:hover { border-color: var(--amber); color: var(--amber); }
.nav-btn.prev { left: -22px; }
.nav-btn.next { right: -22px; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 5px; background: var(--line-strong); }
.dots button.on { width: 26px; background: var(--amber); }

.army { background: linear-gradient(180deg, var(--bg) 0%, #181b12 100%); }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.unit { background: #22261a; border: 2px solid rgba(226, 219, 186, 0.16); border-radius: 12px; padding: 6px 6px 10px; text-align: center; }
.unit img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.unit b { display: block; font-size: 17px; }
.unit span { color: var(--muted); font-size: 14px; }

.cta { text-align: center; }
.cta .icon { width: 132px; height: 132px; border-radius: 30px; margin: 0 auto 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.cta .stores { justify-content: center; }

/* ---------- text pages (privacy, deletion, support) ---------- */
.page { padding: 56px 0 72px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(38px, 6vw, 56px); text-shadow: none; }
.page h2 { font-size: 27px; margin: 40px 0 10px; }
.page h3 { font-size: 19px; margin: 24px 0 6px; font-weight: 700; }
.page p, .page li { color: #d9d4bd; }
.page .meta { color: var(--muted); font-size: 15px; margin: -6px 0 28px; }
.page ul { padding-left: 22px; }
.page li { margin: 4px 0; }
.box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 22px 0; }
.box.warn { border-color: rgba(255, 91, 77, 0.45); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 12px 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 15px; background: var(--amber); color: var(--amber-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 16px; }

form { display: grid; gap: 12px; margin-top: 14px; }
label { font-size: 15px; color: var(--muted); }
input[type=email], input[type=password], input[type=text] { width: 100%; font: inherit; color: var(--fg); background: #0c0e09; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; }
input:focus { outline: none; border-color: var(--amber); }
.check { display: flex; gap: 10px; align-items: flex-start; color: #d9d4bd; font-size: 16px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--red); }
button { font: inherit; font-weight: 700; letter-spacing: 1px; border: 0; border-radius: 10px; padding: 13px 18px; cursor: pointer; }
.btn-danger { background: var(--red); color: #fff; }
.btn-amber { background: var(--amber); color: var(--amber-ink); margin-top: 6px; }
.btn-amber:disabled { opacity: 0.55; cursor: default; }
.narrow-page { max-width: 560px !important; }
.btn-danger:disabled { opacity: 0.45; cursor: default; }
.msg { min-height: 1.4em; font-size: 16px; }
.msg.bad { color: #ff8f84; }
.msg.good { color: var(--ok); }

details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--fg); }
details p { margin: 10px 0 2px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fg); }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .top .wrap { height: 58px; gap: 12px; }
  .logo-b { font-size: 20px; }
  .nav { gap: 14px; }
  .nav a { font-size: 13px; letter-spacing: 1px; }
  .nav .wide { display: none; }
  .hero { min-height: 560px; background-image: url("img/keyart-sm.jpg"); }
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 12, 8, 0.75) 55%, rgba(10, 12, 8, 0.35) 100%); }
  .hero .wrap { padding-bottom: 44px; }
  .store { min-width: 0; flex: 1 1 180px; }
  section { padding: 52px 0; }
  .foot nav { margin-left: 0; }
  .slide img { border-radius: 16px; border-width: 4px; }
  .slides { border-radius: 16px; }
  .nav-btn { display: none; }
  .slide figcaption { font-size: 15.5px; }
  .slide figcaption b { font-size: 20px; }
}
