/* ----- SSK Industries — shared styles ----- */

:root {
  --cream: #F6EFE0;
  --cream-deep: #EFE5D2;
  --paper: #FBF7EE;
  --ink: #141318;
  --ink-soft: #2A2730;
  --muted: #7A6F6A;
  --line: #1413180F;
  --line-strong: #14131820;
  --purple: #5B4FFF;
  --purple-deep: #3D32E0;
  --purple-soft: #E6E3FF;

  --font-display: 'Bricolage Grotesque', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --pad-x: clamp(20px, 4vw, 64px);
  --gap: clamp(48px, 6vw, 96px);

  --t-h1: clamp(64px, 11vw, 200px);
  --t-h2: clamp(40px, 6.5vw, 112px);
  --t-h3: clamp(28px, 3vw, 48px);
  --t-body: 17px;
  --t-mono: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}
body { overflow-x: hidden; }

/* ---------- Desktop / tablet (landscape) only gate ---------- */
.ssk-mobile-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  color: var(--cream);
  padding: 32px 28px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.ssk-mobile-gate .gate-mark {
  width: 56px; height: 56px;
  background: var(--purple);
  border-radius: 8px;
  position: relative;
  margin-bottom: 8px;
}
.ssk-mobile-gate .gate-mark::after {
  content: "";
  position: absolute; inset: 14px;
  background: var(--cream);
  border-radius: 2px;
}
.ssk-mobile-gate h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 40px);
  letter-spacing: -.02em;
  line-height: 1;
  max-width: 18ch;
}
.ssk-mobile-gate p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: #c8c0b3;
  max-width: 32ch;
}
.ssk-mobile-gate .gate-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #888;
  margin-top: 8px;
}
.ssk-mobile-gate .gate-rotate {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid #4a474f;
  padding: 10px 16px;
  border-radius: 999px;
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 10px;
}
.ssk-mobile-gate .gate-rotate::before {
  content: "↻";
  font-size: 14px;
  color: var(--purple);
  display: inline-block;
  animation: gate-rot 2.4s linear infinite;
}
@keyframes gate-rot {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Show the gate on viewports too small / portrait phones */
/* ═══════════════════════════════════════════════
   MOBILE — index.html responsive (< 900px)
   No gate on the studio landing page.
   Game-specific pages keep their own notice.
   ═══════════════════════════════════════════════ */
@media (max-width: 899px) {
  /* Gate hidden on landing — site is fully browsable */
  .ssk-mobile-gate { display: none !important; }
  body { overflow-x: hidden; height: auto; }

  /* ── Nav ── */
  .nav-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0;
    padding: 14px var(--pad-x);
    align-items: center;
  }
  .nav-meta { display: none; }
  .nav-links {
    grid-column: 1 / -1;
    gap: 0;
    border-top: 1px solid var(--line-strong);
    padding-top: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 4px 18px;
  }
  .nav-links a { font-size: 12px; padding: 4px 0; }
  .nav-links a.nav-cagnotte { padding: 4px 10px; }

  /* ── Hero ── */
  .hero-meta-row { flex-direction: column; gap: 4px; }
  .hero-meta-row .col:last-child { text-align: left; }
  .hero-foot {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stat-num { font-size: clamp(48px, 16vw, 80px); }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .cta-row .btn { width: 100%; text-align: center; justify-content: center; }

  /* ── Games ── */
  .game {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0;
  }
  .game-art { aspect-ratio: 16 / 9; }
  .chrom-game .chrom-art-wrap { aspect-ratio: 16 / 9; }
  .game-meta { grid-template-columns: 1fr 1fr; }
  .game-actions { flex-direction: column; }
  .game-actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* ── RBA — no-art card ── */
  .rba-game-noart { grid-template-columns: 1fr; }

  /* ── Section heads ── */
  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .section-head .kicker.muted { text-align: left !important; }

  /* ── Contact ── */
  .contact .wrap { grid-template-columns: 1fr !important; gap: 32px; }
  .col-2 { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* ── Marquee — smaller on mobile ── */
  .marquee-track { animation-duration: 18s; }

  /* ── Name note ── */
  .name-note { padding: 28px var(--pad-x); }

  /* ── General spacing ── */
  section.wrap { padding-top: clamp(40px, 8vw, 64px); padding-bottom: clamp(40px, 8vw, 64px); }
}

@media (max-width: 480px) {
  /* Extra small phones */
  .game-meta { grid-template-columns: 1fr; }
  .nav-links { gap: 2px 14px; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--purple); color: var(--paper); }

/* ----- LAYOUT ----- */
.wrap { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.rule { height: 1px; background: var(--ink); opacity: .15; width: 100%; }
.rule-strong { height: 1px; background: var(--ink); width: 100%; }

/* ----- TYPE ----- */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.kicker .dim { color: var(--muted); }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-h1);
  line-height: .88;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-h2);
  line-height: .92;
  letter-spacing: -.03em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1;
  letter-spacing: -.02em;
}
.purple { color: var(--purple); }
.muted { color: var(--muted); }
.italic { font-style: italic; font-family: 'Bricolage Grotesque', serif; }

/* ----- NAV ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  padding-left: var(--pad-x); padding-right: var(--pad-x);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 28px; height: 24px; background: var(--purple);
  clip-path: polygon(0 0, 100% 0, 75% 50%, 100% 100%, 0 100%);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
}
.brand-name .sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-left: 8px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 0; position: relative;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a.nav-cagnotte {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--purple);
  color: var(--purple);
}
.nav-links a.nav-cagnotte::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 6px var(--purple);
}
.nav-links a.nav-cagnotte:hover {
  background: var(--purple);
  color: var(--paper);
}
.nav-links a.nav-cagnotte:hover::before {
  background: var(--paper);
  box-shadow: 0 0 6px var(--paper);
}
.nav-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
/* Mobile nav hidden — gate handles small viewports, so we don't keep the .nav-links hide rule anymore. */

/* ----- HERO ----- */
.hero {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 5vw, 64px);
  position: relative;
}
.hero-meta-row {
  display: flex; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
  flex-wrap: wrap;
}
.hero-meta-row .col { flex: 1; min-width: 180px; }
.hero h1 .word { display: inline-block; }
.hero h1 .flag {
  display: inline-block;
  background: var(--purple);
  color: var(--paper);
  padding: 0 .12em .04em;
  margin-right: .05em;
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
  padding-right: .3em;
}
.hero-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.hero-foot p { max-width: 44ch; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-lbl {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 8px;
}
@media (max-width: 720px) {
  .hero-foot { grid-template-columns: 1fr; }
}

/* ----- CTA ----- */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--purple); border-color: var(--purple); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn.purple-btn { background: var(--purple); border-color: var(--purple); color: var(--paper); }
.btn.purple-btn:hover { background: var(--purple-deep); border-color: var(--purple-deep); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ----- MARQUEE ----- */
.marquee {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 56px);
  letter-spacing: -.02em;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--purple); display: inline-block;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- SECTIONS ----- */
section { padding-top: var(--gap); padding-bottom: var(--gap); }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head .idx {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.section-head h2 { grid-column: 1 / -1; margin-top: 12px; }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ----- GAMES ----- */
.games { display: grid; gap: 24px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.game {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--ink);
  align-items: stretch;
  min-width: 0;
}
/* Critical — without this, the H3's min-content blows the grid wider than its parent. */
.game > * { min-width: 0; }
.game:last-child { border-bottom: 1px solid var(--ink); }
.game-art {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  align-self: start;
}
.game-art image-slot {
  width: 100%; height: 100%; display: block;
  --image-slot-bg: #1a1820;
  --image-slot-text: #6b6678;
  --image-slot-border: transparent;
}
.game-art .badge {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px;
  background: var(--paper); color: var(--ink);
  z-index: 2;
}
.game-art .badge.dev { background: var(--purple); color: var(--paper); }
.game-info { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.game-info .top { display: flex; flex-direction: column; gap: 16px; }
.game-info .genre {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.game-info h3 {
  font-size: clamp(36px, 4.4vw, 72px);
  word-break: break-word;
  hyphens: auto;
}
.game-info p { max-width: 50ch; color: var(--ink-soft); }
.game-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
}
.game-meta dt {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.game-meta dd { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; margin-top: 4px; }
.game-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; }
}

/* CHROMATIC game-card art — dark cosmic with RGB orbs */
.chrom-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, #6b0e1a 0, transparent 45%),
    radial-gradient(ellipse at 80% 60%, #0e2b6b 0, transparent 45%),
    radial-gradient(ellipse at 55% 80%, #0e6b2e 0, transparent 40%),
    #07060c;
}
.chrom-art::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, #ffffff90 0, transparent 0.4px),
    radial-gradient(circle at 35% 70%, #ffffff70 0, transparent 0.4px),
    radial-gradient(circle at 65% 30%, #ffffff90 0, transparent 0.4px),
    radial-gradient(circle at 80% 80%, #ffffff60 0, transparent 0.4px),
    radial-gradient(circle at 90% 15%, #ffffff80 0, transparent 0.4px),
    radial-gradient(circle at 5% 90%, #ffffff70 0, transparent 0.4px);
  background-size: 100% 100%;
  filter: blur(0.4px);
}
.chrom-shapes {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.chrom-shapes .orb {
  width: 14%; aspect-ratio: 1; border-radius: 50%;
  position: absolute;
  filter: blur(1px);
}
.chrom-shapes .orb.r { background: #FF4750; box-shadow: 0 0 24px 6px #FF475080; top: 28%; left: 22%; }
.chrom-shapes .orb.b { background: #4A8CFF; box-shadow: 0 0 24px 6px #4A8CFF80; top: 42%; left: 50%; }
.chrom-shapes .orb.g { background: #4DE36F; box-shadow: 0 0 24px 6px #4DE36F80; top: 30%; left: 76%; }
.chrom-shapes .line {
  position: absolute;
  left: 22%; right: 22%;
  top: 36%;
  height: 1px;
  background: linear-gradient(90deg, #FF475040, #4A8CFF40, #4DE36F40);
}
.chrom-shapes .geo {
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid #F6EFE040;
}
.chrom-shapes .geo.c { border-radius: 50%; top: 12%; left: 8%; width: 36px; height: 36px; }
.chrom-shapes .geo.s { top: 78%; right: 8%; transform: rotate(15deg); }

/* ============================================================ */
/* RBA — Royale Arena game card art (voxel battle royale)       */
/* ============================================================ */
.rba-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, #0a3a5a 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, #001428 0%, transparent 55%),
    linear-gradient(180deg, #010810 0%, #020a14 100%);
  overflow: hidden;
}
.rba-art::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,217,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,255,.08) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center bottom;
  transform: perspective(400px) rotateX(60deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
}
.rba-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 40%, #00000060 75%),
    radial-gradient(circle at 50% 60%, #00d9ff20 0, transparent 35%);
}

/* ============================================================ */
/* CHROMATIC — game card branding overrides (v7 splash aesthetic) */
/* ============================================================ */
.chrom-game .chrom-art-wrap {
  background: #030508;
  display: block;
  position: relative;
}
.chrom-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #030508;
  padding: 6%;
  box-sizing: border-box;
}
.chrom-game .chrom-badge {
  background: #00000099;
  color: var(--cream);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #ffffff20;
}
.chrom-game .chrom-genre {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chrom-r { color: #FF4750; text-shadow: 0 0 6px #FF475080; }
.chrom-b { color: #4A8CFF; text-shadow: 0 0 6px #4A8CFF80; }
.chrom-g { color: #4DE36F; text-shadow: 0 0 6px #4DE36F80; }
.chrom-dot {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: middle;
}
.chrom-game .chrom-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .88;
}
.chrom-l-r { color: #FF4750; text-shadow: 0 0 24px #FF475040; }
.chrom-l-b { color: #4A8CFF; text-shadow: 0 0 24px #4A8CFF40; }
.chrom-l-g { color: #4DE36F; text-shadow: 0 0 24px #4DE36F40; }

/* ============================================================ */
/* RBA — Royale Arena card */
/* ============================================================ */
.rba-game .rba-art-wrap {
  background: #010810;
}
.rba-game h3.rba-title {
  font-family: 'Orbitron', 'Bricolage Grotesque', sans-serif;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: .82;
  font-size: clamp(40px, 4.6vw, 76px);
  text-transform: uppercase;
  word-break: break-word;
}
.rba-game .rba-cyan-dot {
  color: #00d9ff;
  text-shadow: 0 0 12px rgba(0, 217, 255, .7);
}
.rba-game .rba-genre {
  font-family: 'Orbitron', var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .22em;
  color: #00d9ff;
  opacity: .9;
}
.rba-game .rba-pitch {
  max-width: 52ch;
  color: var(--ink-soft);
}
.rba-game .rba-pitch strong {
  font-weight: 600;
  color: var(--ink);
}
.rba-game .rba-meta dd {
  font-family: 'Orbitron', var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
}
.rba-game .rba-cta {
  position: relative;
  overflow: hidden;
}
.rba-game .rba-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 217, 255, .12) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .4s ease;
}
.rba-game .rba-cta:hover {
  border-color: #00d9ff;
  color: #00d9ff;
}
.rba-game .rba-cta:hover::before { transform: translateX(100%); }
.gp-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, #1a1004 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, #0a1218 0%, transparent 50%),
    linear-gradient(170deg, #060402 0%, #0a0806 50%, #060402 100%);
  overflow: hidden;
}
.gp-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, #e8a94a08 3px 4px);
  pointer-events: none;
}
.gp-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 50%, #00000080 100%);
}

/* override the .badge.dev variant to NOT show on these custom cards */
.game-art.has-custom .badge.dev { display: none; }

/* ============================================================ */
/* GP — Ghost Protocol cover image                              */
/* ============================================================ */
.gp-art-wrap { background: #060402; cursor: default; }
.gp-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================ */
/* RBA no-art layout — card without the image square            */
/* ============================================================ */
.rba-game-noart { grid-template-columns: 1fr; }
.rba-game-noart .game-info { max-width: 78ch; }

/* ----- NEWS ----- */
.news-list { display: grid; gap: 0; }
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr 100px 32px;
  gap: 24px;
  padding: 28px 0;
  align-items: center;
  border-top: 1px solid var(--line-strong);
  cursor: pointer;
  transition: padding-left .25s ease;
}
.news-list .news-item:last-child { border-bottom: 1px solid var(--line-strong); }
.news-item:hover { padding-left: 12px; }
.news-item:hover .news-title { color: var(--purple); }
.news-date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.news-tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  text-align: right;
}
.news-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -.01em;
  transition: color .2s ease;
}
.news-arrow {
  font-family: var(--font-mono); font-size: 18px; color: var(--ink);
  text-align: right;
  transition: transform .25s ease;
}
.news-item:hover .news-arrow { transform: translateX(6px); }
@media (max-width: 720px) {
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-tag, .news-arrow { text-align: left; }
}

/* ----- PRESS ----- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.press-tile {
  background: var(--cream);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 32px;
  min-height: 220px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  position: relative;
}
.press-tile:hover { background: var(--ink); color: var(--cream); }
.press-tile:hover .press-meta { color: #999; }
.press-tile .press-meta {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between;
}
.press-tile .press-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2vw, 30px); letter-spacing: -.01em; line-height: 1.05;
}
.press-tile .press-arrow {
  font-family: var(--font-mono); font-size: 14px;
  display: flex; justify-content: space-between; align-items: end;
}
@media (max-width: 860px) { .press-grid { grid-template-columns: 1fr; } }

/* ----- CONTACT / FOOTER ----- */
.contact {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(64px, 8vw, 120px) 0 0;
}
.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(64px, 8vw, 120px);
}
.contact h2 .purple { color: #B9B0FF; }
.contact .email-box {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 0;
  border-top: 1px solid #ffffff20;
  border-bottom: 1px solid #ffffff20;
  margin: 24px 0;
}
.contact .email-box .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #999; }
.contact .email-box a {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -.01em;
  transition: color .2s ease;
  word-break: break-all;
}
.contact .email-box a:hover { color: #B9B0FF; }
.contact .col-2 ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact .col-2 li {
  display: flex; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid #ffffff15; padding-bottom: 12px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
}
.contact .col-2 li .k { color: #999; text-transform: uppercase; font-size: 11px; letter-spacing: .14em; }
@media (max-width: 720px) { .contact .wrap { grid-template-columns: 1fr; } }

.name-note {
  border-top: 1px solid #ffffff15;
  padding: 32px var(--pad-x);
  max-width: 880px;
  margin: 0 auto;
  color: #c9c6bf;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.name-note-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8a8780;
}
.name-note p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
}
.name-note strong { color: var(--cream); font-weight: 600; }
.name-note em { font-style: italic; color: #d6d2c8; }

.footer-bar {
  border-top: 1px solid #ffffff15;
  padding: 20px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: #888;
  letter-spacing: .1em; text-transform: uppercase;
  gap: 12px; flex-wrap: wrap;
}
.footer-bar .brand-mark { background: var(--purple); }

/* ----- REVEAL ANIMATION ----- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ----- GAME DETAIL PAGE ----- */
.chrom-hero {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 5vw, 64px);
  position: relative;
}
.chrom-hero .back {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 32px;
}
.chrom-hero .back:hover { color: var(--purple); }
.chrom-hero .meta-row {
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
  margin-top: 32px;
}
.chrom-hero .meta-row .item .v { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.chrom-hero .meta-row .item .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

.chrom-banner {
  height: clamp(280px, 50vh, 560px);
  position: relative;
  overflow: hidden;
  background: var(--ink);
  margin-top: 24px;
}
.chrom-banner image-slot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  --image-slot-bg: #1a1820;
  --image-slot-text: #6b6678;
  --image-slot-border: transparent;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--ink);
  background: var(--ink);
  gap: 1px;
}
.feature-cell {
  background: var(--cream);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 220px;
}
.feature-cell .num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; color: var(--muted);
}
.feature-cell h4 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2vw, 32px); letter-spacing: -.01em; line-height: 1; }
.feature-cell p { color: var(--ink-soft); max-width: 40ch; }
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.stat-strip .cell {
  background: var(--cream);
  padding: 32px 24px;
}
.stat-strip .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 4vw, 64px); letter-spacing: -.03em; line-height: 1; color: var(--purple); }
.stat-strip .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: 1fr 1fr; } }

/* Screenshots — horizontal gallery, one image at a time, never cropped.
   Each slide keeps its screenshot's native aspect ratio; fit=contain on the
   image-slot guarantees the full frame is shown without crop or distortion. */
.screen-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.screen-scroll::-webkit-scrollbar { height: 8px; }
.screen-scroll::-webkit-scrollbar-thumb {
  background: var(--muted); border-radius: 8px;
}
.screen-scroll .shot {
  flex: 0 0 auto;
  height: clamp(380px, 68vh, 720px);
  scroll-snap-align: center;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1820;
}
.screen-scroll image-slot {
  width: 100%; height: 100%; display: block;
  --image-slot-bg: #1a1820;
  --image-slot-text: #6b6678;
  --image-slot-border: transparent;
}
@media (max-width: 720px) {
  .screen-scroll .shot { height: clamp(320px, 78vh, 620px); }
}

.rank-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.rank {
  background: var(--cream);
  padding: 20px 16px;
  text-align: center;
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center;
  min-height: 120px;
}
.rank .badge {
  width: 36px; height: 36px;
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 14px;
  transform: rotate(45deg);
}
.rank .badge span { transform: rotate(-45deg); }
.rank.peak .badge { background: var(--purple); border-color: var(--purple); color: var(--paper); }
.rank-name {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
}
@media (max-width: 720px) { .rank-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .rank-row { grid-template-columns: repeat(2, 1fr); } }
