/* Enclave — colours lifted straight off the logo: deep navy field, teal ring,
   orange stars, cream lettering. */
:root {
  --bg: #070b10;
  --bg-2: #0c141d;
  --panel: #111c27;
  --panel-2: #16242f;
  --line: #1f3442;
  --teal: #1f6f86;
  --teal-hi: #2d93ad;
  --orange: #e8772e;
  --orange-hi: #ff8f45;
  --cream: #f4eedc;
  --text: #d9dee3;
  --muted: #8a9aa6;
  --ok: #6fbf8e;
  --bad: #e0685c;
  --radius: 10px;
  --max: 1160px;
  --display: "Russo One", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
/* the logo's starfield, faint, behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, #ffffff55 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #ffffff44 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 64%, #ffffff33 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 58%, #ffffff44 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 82%, #ffffff33 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 34%, #ffffff2a 50%, transparent 51%),
    radial-gradient(ellipse at 50% -10%, #12303d 0%, transparent 60%),
    var(--bg);
}

a { color: var(--teal-hi); text-decoration: none; }
a:hover { color: var(--cream); }
img { max-width: 100%; display: block; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); }
.brand img { width: 38px; height: 38px; }
.brand span { font: 20px/1 var(--display); letter-spacing: .08em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--orange); }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--display); color: var(--cream); font-weight: 400; letter-spacing: .03em; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; }
h3 { font-size: 20px; }
.kicker { color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.lede { color: var(--text); font-size: 18px; max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; border: 1px solid transparent;
  font: 700 15px/1 var(--body); letter-spacing: .02em; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #1a0d04; }
.btn-primary:hover { background: var(--orange-hi); color: #1a0d04; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-hi); color: var(--cream); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-logo { width: min(360px, 100%); justify-self: center; filter: drop-shadow(0 20px 60px #1f6f8640); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------------------------------------------------------------- sections */
section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* featured game banner */
.feature {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); min-height: 340px;
  display: grid; align-items: end;
  background: var(--panel) center/cover no-repeat;
}
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #070b10f2 8%, #070b1066 55%, transparent); }
.feature-body { position: relative; z-index: 1; padding: 28px; max-width: 620px; }
.feature-body img.game-logo { width: min(320px, 70%); margin-bottom: 10px; }

/* ---------------------------------------------------------------- store */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.card-media { position: relative; aspect-ratio: 1232 / 706; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px; border-radius: 999px;
  font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  background: #070b10d9; color: var(--cream); border: 1px solid var(--line);
}
.badge.available { color: var(--ok); border-color: #2c5a3e; }
.badge.coming_soon { color: var(--orange); border-color: #6a3a18; }
.card-body { padding: 18px 18px 6px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body p { margin: 0; color: var(--text); font-size: 15px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.price { font: 20px/1 var(--display); color: var(--cream); }
.price .was { color: var(--muted); text-decoration: line-through; font: 14px var(--body); margin-right: 6px; }
.card-actions { display: flex; gap: 10px; padding: 12px 18px 16px; }
.card-actions .btn { flex: 1; }

/* ---- game "unit cards" (store grid): tall cover art, title, price, two buttons */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.gcard {
  display: flex; flex-direction: column;
  background: var(--panel); border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.gcard:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 10px 30px #0008; }
.gcard-art { position: relative; display: block; aspect-ratio: 2 / 3; background: var(--bg-2); overflow: hidden; }
.gcard-art img { width: 100%; height: 100%; object-fit: cover; }
.gcard-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(0deg, #0009, transparent); pointer-events: none; }
.gcard-plats { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: flex; gap: 6px; }
.gcard-plat {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
}
.gcard-plat svg { width: 13px; height: 13px; fill: #111; }
.gcard-off {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  padding: 4px 9px; border-radius: 999px;
  background: #e0443a; color: #fff; font: 700 12px/1 var(--body); letter-spacing: .02em;
}
.gcard-title {
  display: block; padding: 14px 12px 12px; min-height: 64px;
  color: #fff; font: 700 14px/1.5 var(--body); text-transform: uppercase; letter-spacing: .01em;
  border-bottom: 1px solid var(--line); margin: 0 10px 0;
  padding-inline: 2px;
}
.gcard-title:hover { color: var(--cream); }
.gcard-foot { padding: 16px 12px 14px; display: flex; flex-direction: column; gap: 16px; margin-top: auto; }
.gcard-price { font: 400 22px/1 var(--body); color: #fff; }
.gcard-price .was, .price .was { font-size: 14px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.gcard-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gbtn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 10px; border-radius: 3px;
  font: 600 13px/1 var(--body); letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.gbtn-line { background: transparent; color: #fff; border: 1px solid #fff; }
.gbtn-line:hover { background: #ffffff14; color: #fff; }
.gbtn-buy { background: #2fb37c; color: #fff; border: 1px solid #2fb37c; }
.gbtn-buy:hover { background: #38c78b; border-color: #38c78b; }
.gbtn[disabled] { cursor: not-allowed; }

/* not out yet: greyed out, COMING SOON across the art, Buy switched off */
.gcard.is-soon .gcard-art img { filter: grayscale(.85) brightness(.55); }
.gcard.is-soon .gcard-price { color: var(--muted); }
.gcard.is-soon .gbtn-buy { background: #3a4550; border-color: #3a4550; color: #9aa6b0; }
/* sits low on the art — below where the game logos live on both covers,
   clear of the platform icon */
.gcard-soon {
  position: absolute; left: 0; right: 0; top: 76%; transform: translateY(-50%); z-index: 1;
  padding: 10px 0; text-align: center;
  background: #070b10cc; border-block: 1px solid #ffffff22;
  color: var(--cream); font: 18px/1 var(--display); letter-spacing: .14em;
}
.buy-cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
/* a card is narrow — the EC input gets the full width, Redeem goes under it */
.gcard .ec { padding: 12px; }
.gcard .ec-row { flex-direction: column; }
.gcard .ec-row .btn { width: 100%; padding-block: 9px; }
.buy-panel .gbtn { flex: 1; }

/* the EC box that sits under every product */
.ec {
  border-top: 1px dashed var(--line);
  padding: 14px 18px 18px; background: var(--bg-2);
}
.ec label { display: block; font-weight: 700; font-size: 14px; color: var(--cream); margin-bottom: 8px; }
.ec label em { color: var(--orange); font-style: normal; }
.ec-row { display: flex; gap: 8px; }
.ec input {
  flex: 1; min-width: 0;
  padding: 10px 12px; border-radius: 8px;
  background: var(--bg); color: var(--cream); border: 1px solid var(--line);
  font: 14px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em;
}
.ec input:focus { outline: none; border-color: var(--teal-hi); box-shadow: 0 0 0 3px #2d93ad33; }
.ec input::placeholder { color: #5d6c77; }
.ec-msg { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.ec-msg.ok { color: var(--ok); }
.ec-msg.bad { color: var(--bad); }

/* ---------------------------------------------------------------- game page */
.game-hero { position: relative; min-height: 380px; display: grid; align-items: end; background: var(--panel) center/cover no-repeat; border-bottom: 1px solid var(--line); }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 4%, #070b1080 60%, transparent); }
.game-hero .wrap { position: relative; z-index: 1; padding: 40px 0 28px; }
.game-hero img.game-logo { width: min(420px, 80%); }
.game-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shots img { border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; cursor: zoom-in; }
.buy-panel { position: sticky; top: 84px; }

/* screenshot lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: #000d; display: none; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; border-radius: 8px; }

/* ---------------------------------------------------------------- how-it-works list */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--cream); font: 14px var(--display); margin-bottom: 10px; }
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.site-foot .brand img { width: 28px; height: 28px; }
.site-foot .brand span { font-size: 15px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { width: 220px; grid-row: 1; }
  .game-layout { grid-template-columns: 1fr; }
  .buy-panel { position: static; }
}
@media (max-width: 520px) {
  .nav { gap: 14px; }
  .brand span { display: none; }
  .grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .ec-row { flex-direction: column; }
}
