:root {
  --ink: #0c0d0f;
  --slate: #16181c;
  --panel: rgba(12, 11, 10, 0.78);
  --cream: #e6dcc8;
  --cream-dim: rgba(230, 220, 200, 0.72);
  --amber: #e0a04a;
  --blood: #8b2e2e;
  --blood-hot: #a63a36;
  --line: rgba(230, 220, 200, 0.18);
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --roman: "Cinzel", Palatino, "Times New Roman", serif;
  --body: "Barlow", "Segoe UI", sans-serif;
  --bar: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--blood); color: var(--cream); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 22vh;
  background: #050506;
  z-index: 70;
  pointer-events: none;
  transition: height 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body::before { top: 0; }
body::after { bottom: 0; }
body.ready::before,
body.ready::after { height: var(--bar); }

.grain {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 55;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

#intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #050506;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#intro.out { opacity: 0; visibility: hidden; }
.intro-card { width: min(440px, calc(100% - 40px)); text-align: center; }
.roman-kicker, .eyebrow {
  font-family: var(--roman);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--amber);
  margin: 0 0 10px;
}
.intro-title {
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 84px);
  letter-spacing: 0.04em;
  line-height: 0.9;
  margin: 0;
}
.intro-sub {
  margin: 12px 0 18px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--cream-dim);
}
.load-bar {
  height: 3px;
  background: rgba(230, 220, 200, 0.15);
  overflow: hidden;
}
.load-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blood), var(--amber));
}
#skip-intro {
  margin-top: 18px;
  background: none;
  border: 0;
  color: var(--cream-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--body);
  font-size: 12px;
  cursor: pointer;
}
#skip-intro:hover, #skip-intro:focus-visible { color: var(--cream); }

.site-nav {
  position: fixed;
  top: 22vh;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4vw;
  transition: top 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease;
}
body.ready .site-nav { top: var(--bar); }
.site-nav.scrolled {
  background: rgba(8, 8, 9, 0.88);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 26px;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}
.intro-mark {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active { color: var(--cream); }
.nav-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--cream);
}
.nav-icon svg { width: 15px; height: 15px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 100%; height: 100%; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #14161c;
}
#battlefield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 18%, transparent 70%, rgba(0, 0, 0, 0.45));
}

.hud-top {
  position: absolute;
  z-index: 2;
  top: calc(var(--bar) + 72px);
  left: 4vw;
  right: 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--roman);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.pips { display: flex; gap: 5px; }
.pips i {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border: 1px solid var(--amber);
  display: block;
}
.pips i:nth-child(-n + 3) { background: var(--amber); }

.mission {
  position: absolute;
  z-index: 3;
  left: 4vw;
  bottom: 12vh;
  width: min(460px, 44vw);
  padding: 22px 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  backdrop-filter: blur(6px);
}
.mission h1 {
  font-family: var(--display);
  font-size: clamp(68px, 8vw, 104px);
  line-height: 0.82;
  margin: 0;
  letter-spacing: 0.02em;
}
.tag {
  font-family: var(--roman);
  letter-spacing: 0.28em;
  text-transform: lowercase;
  margin: 8px 0 0;
  color: var(--amber);
  font-size: 13px;
}
.brief {
  margin: 14px 0 0;
  color: var(--cream-dim);
  max-width: 38ch;
}
.ca {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--body);
  text-align: left;
  cursor: pointer;
}
.ca-label, .ca-action { flex: none; letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; }
.ca-label { color: var(--amber); }
.ca code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
  color: var(--cream-dim);
}
.ca-action { margin-left: auto; color: var(--cream); }
.ca.copied .ca-action { color: var(--amber); }
.fine code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
  color: var(--cream);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 22px;
  line-height: 1;
  padding: 13px 18px;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.pump-mark { display: block; }
.btn .pump-mark { width: 20px; height: 20px; }
.card .pump-mark { width: 44px; height: 44px; margin-bottom: 16px; }
.steps .pump-mark { width: 28px; height: 28px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; }
.foot-links .pump-mark { width: 16px; height: 16px; }
.btn-primary {
  background: var(--blood);
  color: #f6efe2;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--blood-hot); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28), transparent 70%);
  transform: translateX(-130%);
}
.btn-primary:hover::after { animation: sheen 0.7s ease; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
  font-size: 18px;
  padding: 12px 16px;
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--cream); }
.btn:focus-visible, .nav-links a:focus-visible, .nav-toggle:focus-visible, #skip-intro:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.objective {
  position: absolute;
  z-index: 2;
  left: 62%;
  top: 38%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  letter-spacing: 0.16em;
  font-size: 18px;
  color: var(--cream);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.diamond {
  width: 14px;
  height: 14px;
  background: var(--amber);
  transform: rotate(45deg);
  box-shadow: 0 0 0 0 rgba(224, 160, 74, 0.6);
  animation: ping 2.2s ease-out infinite;
}

.minimap {
  position: absolute;
  z-index: 2;
  right: 3vw;
  top: calc(var(--bar) + 108px);
  width: 124px;
  height: 124px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(230, 220, 200, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.map-terrain {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 60% 55%, rgba(224, 160, 74, 0.35), transparent 18%),
    linear-gradient(#3d4a38, #3d4a38) 20% 62% / 70% 8%,
    linear-gradient(#2a241c, #2a241c) 10% 40% / 30% 22%,
    linear-gradient(160deg, #1d3a4a 0%, #6a5438 46%, #3e4a28 47%, #2a2418 100%);
  background-repeat: no-repeat;
}
.map-sweep {
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(230, 220, 200, 0.22) 100%);
  animation: spin 7s linear infinite;
}
.blip {
  position: absolute;
  left: 58%;
  top: 52%;
  width: 8px;
  height: 8px;
  margin: -4px;
  background: var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(230, 220, 200, 0.25);
}
.map-tag {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-family: var(--display);
  letter-spacing: 0.14em;
  font-size: 14px;
}

.ticker {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: calc(var(--bar) + 8px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}
.ticker span {
  font-family: var(--display);
  letter-spacing: 0.16em;
  font-size: 16px;
  padding: 6px 0;
  color: var(--cream-dim);
}

.section {
  padding: 96px 6vw 48px;
  position: relative;
  background: #0e0d0c;
  scroll-margin-top: 84px;
}
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2, .buy-panel h2 {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin: 0;
  font-weight: 400;
}

.lore-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: stretch;
}
.still {
  margin: 0;
  border: 1px solid var(--line);
  background: #111;
}
.still img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.05);
}
.still figcaption {
  padding: 10px 14px 12px;
  font-family: var(--display);
  letter-spacing: 0.16em;
  color: var(--cream-dim);
}
.orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.orders li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.orders li:last-child { border-bottom: 0; }
.order-id {
  font-family: var(--roman);
  color: var(--amber);
  font-size: 18px;
}
.orders h3, .card h3, .steps h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.06em;
  font-weight: 400;
}
.orders p, .card p, .steps p { margin: 0; color: var(--cream-dim); }
.status {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d2c4a4;
  border: 1px solid var(--line);
  padding: 4px 8px;
  height: fit-content;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(230, 220, 200, 0.04), transparent 40%),
    #12110f;
  min-height: 240px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.card svg { width: 42px; height: 42px; color: var(--amber); margin-bottom: 16px; }
.card:hover { transform: translateY(-6px); border-color: rgba(224, 160, 74, 0.55); }

.buy { padding-bottom: 80px; }
.buy-panel {
  border: 1px solid var(--line);
  padding: 32px 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(139, 46, 46, 0.28), transparent 32%),
    #12110f;
  display: grid;
  gap: 22px;
}
.buy-lead { color: var(--cream-dim); max-width: 48ch; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.steps svg { width: 28px; height: 28px; color: var(--amber); margin-top: 4px; }
.btn-large { justify-self: start; font-size: 26px; padding: 16px 22px; }

.site-foot {
  padding: 28px 6vw 36px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a {
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 20px;
  text-decoration: none;
  color: var(--cream-dim);
}
.foot-links a:hover, .foot-links a:focus-visible { color: var(--cream); }
.fine { margin: 0; max-width: 68ch; color: rgba(230, 220, 200, 0.55); font-size: 13px; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s ease forwards;
  animation-play-state: paused;
}
.reveal.in { animation-play-state: running; }

@keyframes sheen { to { transform: translateX(130%); } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(224, 160, 74, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(224, 160, 74, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .lore-grid, .cards, .steps { grid-template-columns: 1fr; }
  .mission { width: min(460px, calc(100% - 32px)); }
  .objective { left: auto; right: 6vw; top: 22%; }
  .minimap { display: none; }
}

@media (max-width: 720px) {
  :root { --bar: 0px; }
  body.ready::before, body.ready::after { height: 0; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 4vw 18px;
    background: rgba(8, 8, 9, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .mission {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: 48px;
  }
  .mission h1 { font-size: 72px; }
  .hud-top { top: 76px; }
  .objective { display: none; }
  .still img { aspect-ratio: 3 / 1; height: auto; }
  .status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .ticker-track, .map-sweep, .diamond, .btn-primary::after { animation: none; }
  body::before, body::after, .site-nav { transition: none; }
  .card:hover { transform: none; }
}
