/* ============================================================
   Texx Games — landing stylesheet
   Single committed dark theme: the brand world (ink, emerald,
   gold, X-motif) is dark by design, matching the game art.
   ============================================================ */

@import url("fonts/fonts.css");

:root {
  --ink: #0a0d14;
  --ink-2: #0d1120;
  --panel: #111624;
  --panel-2: #161c2e;
  --line: #232b3f;
  --line-2: #303a55;
  --text: #eaedf5;
  --muted: #97a1b9;
  --dim: #667090;
  --teal: #2ee6a6;
  --teal-deep: #17b57d;
  --gold: #edc56b;
  --gold-deep: #caa04b;
  --disp: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Saira", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto is load-bearing — the poster <img> tags carry width/height
   attributes, and without it the intrinsic height survives the CSS width. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Anchor targets clear the sticky header instead of hiding under it. */
[id] { scroll-margin-top: 108px; }

::selection { background: rgba(46, 230, 166, 0.28); }

/* ---------- typography ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow.gold, .eyebrow--gold { color: var(--gold); }

h1, h2, h3 { font-family: var(--disp); text-transform: uppercase; line-height: 1.02; text-wrap: balance; }

.display {
  font-size: clamp(52px, 8.5vw, 116px);
  font-weight: 800;
  letter-spacing: 0.005em;
}
.display .alt { color: var(--teal); }
.display .alt2 { color: var(--gold); }

h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; letter-spacing: 0.01em; }
h3 { font-size: 24px; font-weight: 700; letter-spacing: 0.02em; }

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 62ch;
}
.lead b, .lead strong { color: var(--text); font-weight: 600; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { position: relative; }
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 92px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 52px; width: auto; }
.head-nav { display: flex; gap: 26px; margin-left: auto; }
.head-nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}
.head-nav a:hover { color: var(--teal); }

/* Burger: hidden on desktop, becomes the whole nav on narrow screens. */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 13px 26px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.btn--solid {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #06130d;
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -14px rgba(46, 230, 166, 0.55);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #17110300;
  color: #1a1303;
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -14px rgba(237, 197, 107, 0.5);
}
.btn--ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--sm { font-size: 15px; padding: 9px 18px 10px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
/* the brand X: two crossing bands behind the headline */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240vw;
  height: clamp(90px, 16vw, 210px);
  pointer-events: none;
}
.hero::before {
  transform: translate(-38%, -66%) rotate(-24deg);
  background: linear-gradient(90deg, transparent 22%, rgba(46, 230, 166, 0.14) 50%, transparent 78%);
}
.hero::after {
  transform: translate(-58%, -30%) rotate(24deg);
  background: linear-gradient(90deg, transparent 24%, rgba(237, 197, 107, 0.09) 50%, transparent 76%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { display: block; margin-bottom: 18px; }
.hero .display { max-width: 12ch; }
.hero .lead { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px dashed var(--line-2);
}
.stat { min-width: 108px; }
.stat b {
  display: block;
  font-family: var(--disp);
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat b i { font-style: normal; color: var(--teal); }
.stat span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- ticker ---------- */

.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  padding: 13px 0;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: tick 46s linear infinite;
}
@keyframes tick {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
}
.ticker span {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker span b { color: var(--teal); font-weight: 600; }
.ticker span em { color: var(--gold); font-style: normal; font-weight: 600; }

/* ---------- sections ---------- */

.section { padding: 92px 0; }
.section--alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 46px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head .lead { margin-top: 16px; }

/* ---------- game cards (index) ---------- */

/* Capped so three columns land near the covers' native 300px — the shop
   covers only exist at 300x400 and upscaling shows. */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  max-width: 1030px;
}

.game-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
  box-shadow: 0 24px 60px -30px rgba(237, 197, 107, 0.4);
}
.game-card .cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.game-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.game-card:hover .cover img { transform: scale(1.04); }

/* ticket punch-holes on the divider between cover and body */
.game-card .punch {
  position: relative;
  border-top: 1px dashed var(--line-2);
}
.game-card .punch::before,
.game-card .punch::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line);
}
.game-card .punch::before { left: -10px; }
.game-card .punch::after { right: -10px; }

.game-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game-card h3 { font-size: 26px; }
.game-card .combo {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.game-card p { color: var(--muted); font-size: 15px; flex: 1; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 4px 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chip b { color: var(--teal); font-weight: 600; }
.chip.gold b { color: var(--gold); }

.game-card .actions { display: flex; gap: 10px; margin-top: 6px; }
.game-card .actions .btn { flex: 1; }

/* ---------- how it works / pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.pillar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
}
.pillar .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.14em;
}
.pillar h3 { margin: 12px 0 10px; font-size: 22px; }
.pillar p { color: var(--muted); font-size: 15px; }
.pillar p b { color: var(--text); font-weight: 600; }

/* ---------- integration ---------- */

.integ {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.integ-list { display: flex; flex-direction: column; gap: 0; }
.integ-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line-2);
}
.integ-item:last-child { border-bottom: none; }
.integ-item .tick {
  font-family: var(--mono);
  color: var(--teal);
  font-weight: 600;
  flex-shrink: 0;
}
.integ-item h4 { font-family: var(--disp); text-transform: uppercase; font-size: 19px; letter-spacing: 0.03em; }
.integ-item p { color: var(--muted); font-size: 14.5px; margin-top: 3px; }

.code-card {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-card .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.code-card .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; font-style: normal; }
.code-card pre {
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.7;
  color: var(--muted);
}
.code-card pre b { color: var(--teal); font-weight: 500; }
.code-card pre em { color: var(--gold); font-style: normal; }

/* ---------- game page ---------- */

.ghero {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.ghero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 62%;
  width: 160vw;
  height: clamp(80px, 13vw, 170px);
  transform: translate(-50%, -50%) rotate(-24deg);
  background: linear-gradient(90deg, transparent 20%, rgba(46, 230, 166, 0.12) 50%, transparent 80%);
  pointer-events: none;
}
.ghero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.ghero h1 { font-size: clamp(44px, 6.5vw, 86px); font-weight: 800; }
.ghero .eyebrow { display: block; margin-bottom: 14px; }
.ghero .lead { margin-top: 20px; font-size: 17px; }
.ghero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }

.ghero-art { position: relative; justify-self: center; width: min(430px, 80vw); }
.ghero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-deep);
  border-radius: 20px;
  transform: rotate(3.5deg) translate(10px, 8px);
  opacity: 0.55;
}
.ghero-art img {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  transform: rotate(-2.5deg);
  box-shadow: 0 40px 90px -30px rgba(46, 230, 166, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.spec {
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 118px;
}
.spec b {
  display: block;
  font-family: var(--disp);
  font-size: 23px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.spec.gold b { color: var(--gold); }
.spec span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* round anatomy timeline */
.timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 12px 0 8px; /* top padding keeps the BETS OPEN badges from clipping */
}
.phase {
  position: relative;
  flex: 1;
  min-width: 150px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: none;
  padding: 18px 18px 20px;
}
.phase:first-child { border-left: 1px solid var(--line); border-radius: 12px 0 0 12px; }
.phase:last-child { border-radius: 0 12px 12px 0; }
.phase.bet { background: linear-gradient(180deg, rgba(46, 230, 166, 0.09), rgba(46, 230, 166, 0.02)); }
.phase.bet::after {
  content: "BETS OPEN";
  position: absolute;
  top: -9px;
  left: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #06130d;
  background: var(--teal);
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 600;
}
.phase .t {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.phase h4 {
  font-family: var(--disp);
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.03em;
  margin: 6px 0 6px;
}
.phase p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* markets table */
.mk-table {
  width: 100%;
  /* Narrow screens scroll the table sideways inside .mk-wrap rather than
     squeezing every cell down to one word per line. */
  min-width: 620px;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mk-wrap { overflow-x: auto; border-radius: var(--radius); }
.mk-table th, .mk-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  vertical-align: top;
}
.mk-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--ink);
  font-weight: 500;
}
.mk-table tr:last-child td { border-bottom: none; }
.mk-table td:first-child { font-weight: 600; white-space: nowrap; }
.mk-table td { color: var(--muted); }
.mk-table .odds {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- provably fair ---------- */

/* The chain diagram keeps its own scroll on narrow screens rather than
   squeezing the labels into each other. */
.fair-chain {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 18px 4px;
  overflow-x: auto;
}
.fair-chain svg { display: block; width: 100%; min-width: 760px; height: auto; }

.fair-chain .node { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1; }
.fair-chain .node.head { fill: rgba(237, 197, 107, 0.08); stroke: var(--gold-deep); }
.fair-chain .lbl {
  font-family: var(--mono);
  font-size: 13.5px;
  fill: var(--text);
  dominant-baseline: middle;
}
.fair-chain .lbl.dim { fill: var(--dim); font-size: 18px; }
.fair-chain .note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  fill: var(--dim);
}
.fair-chain .note.gold-t { fill: var(--gold); }
.fair-chain .cap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--dim);
}
.fair-chain .link { stroke: var(--line-2); stroke-width: 1.6; }
.fair-chain .link.dash { stroke-dasharray: 5 5; }
.fair-chain .flow { stroke: var(--gold-deep); stroke-width: 1.4; stroke-dasharray: 7 6; }
.fair-chain .tick { stroke: var(--gold-deep); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.fair-chain .head-plain { fill: var(--line-2); }
.fair-chain .head-gold { fill: var(--gold-deep); }

.fair-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px 40px;
  margin: 26px 0 44px;
}
.fair-legend p {
  padding-left: 30px;
  text-indent: -30px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.fair-legend p b { color: var(--text); font-weight: 600; }
.fair-legend p i { font-style: normal; font-family: var(--mono); color: var(--teal); }
.fair-legend .ar {
  display: inline-block;
  width: 20px;
  text-indent: 0;
  font-size: 19px;
  color: var(--teal);
}
.fair-legend .ar.gold { color: var(--gold); }

.fair-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 40px;
}

.stages { display: flex; flex-direction: column; }
.stage {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line-2);
}
.stage:first-child { padding-top: 0; }
.stage:last-child { border-bottom: none; padding-bottom: 0; }
.stage .step {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.08em;
  padding-top: 3px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.stage h4 {
  font-family: var(--disp);
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 0.03em;
}
.stage p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.stage .chip { display: inline-block; margin: 10px 6px 0 0; }

@media (max-width: 900px) {
  .fair-grid { grid-template-columns: 1fr; gap: 34px; }
  .fair-legend { margin-bottom: 34px; }
}

/* combined mechanics callout */
.combo-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.combo-cell .eyebrow { display: block; margin-bottom: 8px; }
.combo-cell p { color: var(--muted); font-size: 14.5px; }
.combo-cell p b { color: var(--text); }

/* demo */
.demo-panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
/* The games render around 16:9. Don't add max-height here: with
   aspect-ratio the browser shrinks the width to keep the ratio, leaving a
   strip of panel showing beside the stage. */
.demo-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  background: var(--ink);
}
.demo-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(560px 320px at 50% 10%, rgba(46, 230, 166, 0.12), transparent 70%),
    var(--ink);
}
.demo-poster img {
  height: 240px;
  width: auto;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
}
.demo-poster p { color: var(--muted); font-size: 14px; max-width: 46ch; }
.demo-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 13px 20px;
  border-top: 1px dashed var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.demo-note b { color: var(--teal); font-weight: 500; }

/* prev/next game nav */
.gnav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.gnav a {
  font-family: var(--disp);
  text-transform: uppercase;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.15s;
}
.gnav a:hover { color: var(--teal); }
.gnav a span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--dim); margin-bottom: 2px; }

/* ---------- CTA band + footer ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 84px 0;
  text-align: center;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vw;
  height: 110px;
  pointer-events: none;
}
.cta-band::before {
  transform: translate(-46%, -60%) rotate(-24deg);
  background: linear-gradient(90deg, transparent 25%, rgba(46, 230, 166, 0.12) 50%, transparent 75%);
}
.cta-band::after {
  transform: translate(-54%, -40%) rotate(24deg);
  background: linear-gradient(90deg, transparent 25%, rgba(237, 197, 107, 0.08) 50%, transparent 75%);
}
.cta-band .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-band .lead { text-align: center; }

.site-foot {
  border-top: 1px solid var(--line);
  padding: 44px 0 40px;
  background: var(--ink);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 60px;
  align-items: flex-start;
}
.site-foot .logo img { height: 42px; opacity: 0.9; }
.foot-col h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
  font-weight: 500;
}
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; transition: color 0.15s; }
.foot-col a:hover { color: var(--teal); }
.foot-note { flex-basis: 100%; color: var(--dim); font-size: 12.5px; border-top: 1px dashed var(--line); padding-top: 20px; max-width: none; }

/* ---------- reveal on scroll ---------- */

/* hidden state applies only when JS is present (html.js set inline in <head>) */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .integ { grid-template-columns: 1fr; gap: 36px; }
  .ghero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .ghero-art { order: -1; width: min(300px, 66vw); }

  .nav-toggle { display: flex; }
  .head-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 6px 24px 14px;
    display: none;
  }
  .head-nav.open { display: flex; }
  .head-nav a {
    font-size: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--text);
  }
  .head-nav a:last-child { border-bottom: none; color: var(--teal); }
}
@media (max-width: 560px) {
  .site-head .wrap { height: 74px; }
  .logo img { height: 40px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 52px; }
  .game-card .actions { flex-direction: column; }
  .gnav { flex-direction: column; }
}
