/* DigitalDNA Games site stylesheet
   ---------------------------------------------------------------- */

:root {
  --bg: #0b0d10;
  --bg-rgb: 11, 13, 16;
  --bg-2: #101317;
  --panel: #161a20;
  --panel-2: #1c2129;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ecebe8;
  --text-2: #b9bcc2;
  --muted: #858c96;
  --heading: #ffffff;
  --accent: #e84118;
  --accent-2: #ff5a30;
  --accent-ink: #ffffff;
  --blue: #169bb6;
  --blue-2: #3fb8d1;
  --ghost-bg: rgba(255, 255, 255, 0.06);
  --ghost-bg-hover: rgba(255, 255, 255, 0.12);
  --hero-text: #ffffff;
  --hero-text-2: #b9bcc2;
  --hero-poster: url("../images/hero-poster.jpg");
  --stat-bg: rgba(11, 13, 16, 0.75);
  --steam: #1b2838;
  --xbox: #107c10;
  --radius: 6px;
  --container: 1200px;
  --nav-h: 72px;
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video, iframe { max-width: 100%; }
img { display: block; height: auto; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--heading); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  color: var(--heading);
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--text-2); max-width: 62ch; }
.muted { color: var(--muted); }
.accent { color: var(--accent-2); }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: 2.5rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.6rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.7rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--accent); color: #fff; padding: 0.5rem 1rem; z-index: 1000;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 1.2em; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-ghost { background: var(--ghost-bg); border-color: var(--line-2); color: var(--heading); }
.btn-ghost:hover { background: var(--ghost-bg-hover); border-color: var(--heading); color: var(--heading); }
.btn-steam { background: var(--steam); color: #fff; border-color: #2a475e; }
.btn-steam:hover { background: #2a475e; color: #fff; }
.btn-xbox { background: var(--xbox); color: #fff; }
.btn-xbox:hover { background: #169416; color: #fff; }
.btn-sm { font-size: 0.95rem; padding: 0.6rem 1rem; }
.btn-lg { font-size: 1.25rem; padding: 1rem 1.9rem; }
.btn-store { flex-direction: row; text-align: left; line-height: 1.05; }
.btn-store small { display: block; font-size: 0.7em; letter-spacing: 0.12em; opacity: 0.85; font-weight: 600; }

/* Header
   ---------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(var(--bg-rgb), 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}
.nav-bar {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-text);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.brand:hover { color: var(--hero-text); }
.is-scrolled .brand, .is-open .brand { color: var(--heading); }
.brand .accent { color: var(--accent-2); }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08), 0 4px 14px rgba(0,0,0,0.5);
}
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-text-2);
  border-radius: var(--radius);
}
.is-scrolled .nav-links a, .is-open .nav-links a { color: var(--text-2); }
.nav-links a:hover, .is-scrolled .nav-links a:hover { color: var(--heading); }
.nav-links a.is-active, .is-scrolled .nav-links a.is-active { color: var(--heading); }
.nav-links .nav-cta { margin-left: 0.75rem; }
.nav-links .nav-cta a {
  background: var(--accent); color: #fff; padding: 0.55rem 1rem;
}
.nav-links .nav-cta a:hover { background: var(--accent-2); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 0.4rem; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--heading); transition: transform 0.25s, opacity 0.2s, top 0.25s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.is-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(var(--bg-rgb), 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }
  .is-open .nav-links { display: flex; }
  .nav-links a { padding: 0.8rem 0.5rem; font-size: 1.25rem; }
  .nav-links .nav-cta { margin: 0.5rem 0 0; }
  .nav-links .nav-cta a { text-align: center; }
}

/* Hero
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background: var(--bg) var(--hero-poster) center / cover no-repeat;
}
.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-media video.is-playing { opacity: 1; }
/* YouTube fallback: an iframe cannot object-fit, so we oversize it to cover */
.hero-media iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
  opacity: 0; transition: opacity 1s ease;
}
.hero-media iframe.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),0.72) 28%, rgba(var(--bg-rgb),0.35) 55%, rgba(var(--bg-rgb),0.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: calc(var(--nav-h) + 3rem) 0 0;
  text-align: left;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  font-size: 0.95rem; color: var(--hero-text-2);
  margin-bottom: 1rem;
}
.hero-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue-2);
  box-shadow: 0 0 0 4px rgba(22,155,182,0.28);
}
.hero h1 {
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  line-height: 0.95;
  margin-bottom: 0.35em;
  color: var(--hero-text);
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
.hero h1 .accent { color: var(--accent-2); }
.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--hero-text-2);
  max-width: 58ch;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 3rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.hero-stats > div {
  background: var(--stat-bg);
  padding: 1.1rem 1.25rem;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800; font-size: 2rem; line-height: 1;
  color: var(--hero-text);
}
.hero-stats span { font-size: 0.9rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.hero-scroll {
  position: absolute; right: 1.5rem; bottom: 1.25rem; z-index: 3;
  color: var(--muted); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-scroll { display: none; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Featured game (CMZ:R)
   ---------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.feature-copy p { color: var(--text-2); }
.feature-list {
  list-style: none; margin: 1.5rem 0 2rem; padding: 0;
  display: grid; gap: 1rem;
}
.feature-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start;
}
.feature-list .ico {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--panel-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--accent-2); font-size: 1.15rem;
}
.feature-list h4 {
  font-size: 1.15rem; margin: 0 0 0.15rem; letter-spacing: 0.04em;
}
.feature-list p { margin: 0; color: var(--text-2); font-size: 0.98rem; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.wishlist-badge {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-2);
}
.wishlist-badge strong { font-size: 1.6rem; color: var(--heading); }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.shot-grid a:first-child { grid-column: 1 / -1; }
.shot {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--panel); aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.shot:hover img { transform: scale(1.04); }
.shot::after {
  content: "\f00e";
  font-family: "Font Awesome 7 Free"; font-weight: 900;
  position: absolute; right: 0.75rem; bottom: 0.6rem;
  color: #fff; opacity: 0; transition: opacity 0.3s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.shot:hover::after { opacity: 1; }
.steam-widget {
  margin-top: 0.75rem;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel);
}
.steam-widget iframe { display: block; width: 100%; height: 190px; border: 0; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Gallery
   ---------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Game catalog
   ---------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  cursor: pointer; transition: all 0.2s;
}
.chip:hover { color: #fff; border-color: #fff; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.game-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.game-card.is-hidden { display: none; }
.game-media {
  position: relative; display: block; aspect-ratio: 465 / 350; overflow: hidden; background: #000;
}
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.3s; }
.game-media:hover img { transform: scale(1.04); opacity: 0.85; }
.game-media .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 1rem;
}
.game-media .play span {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(11,13,16,0.65); border: 2px solid rgba(255,255,255,0.7);
  transition: background 0.2s, transform 0.2s;
}
.game-media .play i { font-size: 1.4rem; margin-left: 4px; }
.game-media:hover .play span { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.game-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { margin-bottom: 0.15rem; }
.game-tag { color: var(--accent-2); font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.game-desc { color: var(--text-2); font-size: 1rem; flex: 1; }
.game-desc button {
  background: none; border: 0; padding: 0; color: var(--accent-2); cursor: pointer;
  font: inherit; font-weight: 600;
}
.game-desc button:hover { color: var(--heading); }
.game-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.badges { display: flex; gap: 0.5rem; margin-left: auto; flex-wrap: wrap; }
.badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 78px; padding: 0.45rem 0.7rem;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; line-height: 1.1;
}
.badge strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--heading); }
.badge span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.badge .stars { color: var(--accent-2); font-size: 0.75rem; letter-spacing: 0.05em; }
@media (max-width: 800px) {
  .game-grid { grid-template-columns: 1fr; }
}

/* CastleMiner Z (original)
   ---------------------------------------------------------------- */
.cmz-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center;
}
.cmz-media {
  border-radius: var(--radius); border: 1px solid var(--line);
}
.cmz-copy p { color: var(--text-2); }
.cmz-copy .game-tag { font-size: 1.05rem; }
.cmz-copy .game-foot { margin-top: 1.5rem; }
@media (max-width: 900px) {
  .cmz-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* History archive tiles
   ---------------------------------------------------------------- */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.archive-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.archive-item .game-media { aspect-ratio: 465 / 350; }
.archive-item .game-media .play span { width: 44px; height: 44px; }
.archive-item .game-media .play i { font-size: 1rem; }
.archive-body { padding: 0.75rem 1rem 0.75rem 0; }
.archive-body h4 { font-size: 1.15rem; margin: 0 0 0.2rem; letter-spacing: 0.04em; }
.archive-body p { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.5rem; }
.archive-link {
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); display: inline-flex; align-items: center; gap: 0.4rem;
}
.archive-link:hover { color: var(--blue-2); }
@media (max-width: 1000px) { .archive-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .archive-item { grid-template-columns: 110px 1fr; } }

.archive .legacy-grid { margin-top: 1.25rem; }
.archive .legacy-grid img { filter: saturate(0.85); }

/* Studio / stats
   ---------------------------------------------------------------- */
.studio { position: relative; overflow: hidden; }
.studio-robot {
  position: absolute; right: -2%; bottom: -6%; height: 110%; width: auto; max-width: none;
  opacity: 0.045; pointer-events: none; user-select: none;
  filter: invert(1);
}
.studio .container { position: relative; }
.studio-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.studio-copy p { color: var(--text-2); }
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  border-top: 3px solid var(--accent);
}
.stat strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--heading); margin-bottom: 0.3rem;
}
.stat span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Team
   ---------------------------------------------------------------- */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.person {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.person img { width: 100%; height: auto; filter: saturate(0.9); }
.person-body { padding: 1.1rem 1.2rem 1.25rem; }
.person h3 { font-size: 1.35rem; margin-bottom: 0.1rem; }
.person .role { color: var(--accent-2); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.6rem; }
.person p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 0.75rem; }
.person .links { display: flex; gap: 0.5rem; }
.person .links a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2);
}
.person .links a:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

/* Legacy
   ---------------------------------------------------------------- */
.sub-head { margin-bottom: 1rem; }
.xblig { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.xblig .sub-head { font-size: 1.25rem; margin-bottom: 0.25rem; }
.xblig > p { max-width: 70ch; margin-bottom: 1.25rem; font-size: 0.95rem; }
.legacy-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.5rem;
}
.xblig .legacy-grid a { opacity: 0.7; transition: opacity 0.25s; }
.xblig .legacy-grid a:hover { opacity: 1; }
.legacy-grid a {
  display: block; overflow: hidden; border-radius: 4px; border: 1px solid var(--line);
  aspect-ratio: 584 / 700; background: var(--panel);
}
.legacy-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.legacy-grid a:hover img { transform: scale(1.05); }
@media (max-width: 1000px) { .legacy-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .legacy-grid { grid-template-columns: repeat(3, 1fr); } }

/* Contact / partners
   ---------------------------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start;
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem;
}
.card + .card { margin-top: 1.25rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-2); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.contact-list li a {
  display: flex; align-items: center; gap: 0.8rem; color: var(--text); padding: 0.35rem 0;
}
.contact-list li a:hover { color: var(--accent-2); }
.contact-list i {
  width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--accent-2);
}
.social-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.social-row a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2);
}
.social-row a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

form .field { margin-bottom: 1rem; }
label { display: block; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; }
.form-msg { margin-top: 0.75rem; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #6fd36f; }
.form-msg.err { color: var(--accent-2); }
.newsletter-form { display: flex; gap: 0.6rem; }
.newsletter-form input { flex: 1; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .newsletter-form { flex-direction: column; }
}

/* CTA band
   ---------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: #000 url("../images/games/cmzre/ss2.jpg") center / cover no-repeat;
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(11,13,16,0.82), rgba(11,13,16,0.82));
}
.cta-band .container { position: relative; }
.cta-band h2 { margin-bottom: 0.4em; color: #fff; }
.cta-band p { color: #c9ccd2; max-width: 60ch; margin: 0 auto 1.5rem; }
.cta-band .btn-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: #fff; }
.cta-band .hero-actions { justify-content: center; margin: 0; }

/* Footer
   ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted); font-size: 0.9rem;
}
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--heading); }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; }
.footer-brand img { width: 22px; height: 28px; flex: 0 0 auto; filter: invert(1); opacity: 0.7; }

/* Dialogs (video / lightbox / details)
   ---------------------------------------------------------------- */
dialog {
  border: 0; padding: 0; background: transparent; color: var(--text);
  max-width: min(1100px, 94vw); width: 100%;
  margin: auto;
}
dialog::backdrop { background: rgba(0,0,0,0.85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg-inner {
  position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden;
}
.dlg-close {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 1.1rem; display: grid; place-items: center;
}
.dlg-close:hover { background: var(--accent); }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.lightbox .dlg-inner { background: #000; }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; object-fit: contain; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px; border: 0; cursor: pointer;
  background: rgba(0,0,0,0.5); color: #fff; font-size: 1.4rem;
}
.lightbox .dlg-close { background: rgba(0,0,0,0.6); color: #fff; }
.lb-nav:hover { background: var(--accent); }
.lb-prev { left: 0; border-radius: 0 6px 6px 0; }
.lb-next { right: 0; border-radius: 6px 0 0 6px; }
.lb-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: var(--text-2); font-size: 0.9rem; text-align: center;
}

.details .dlg-inner { max-height: 90vh; overflow-y: auto; }
.details-head {
  padding: 2rem 2rem 1rem;
  background: linear-gradient(to bottom, var(--panel-2), var(--panel));
  border-bottom: 1px solid var(--line);
}
.details-head h2 { margin: 0; }
.details-body { padding: 1.5rem 2rem 2rem; }
.details-body h3 { margin-top: 1.5rem; }
.details-body h3:first-child { margin-top: 0; }
.details-body p { color: var(--text-2); }
.details-body img { border-radius: var(--radius); border: 1px solid var(--line); margin: 0.5rem 0 1rem; width: 100%; }
@media (max-width: 600px) {
  .details-head, .details-body { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* Reveal on scroll
   ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Screenshot debug mode (/?shot) */
.shot .hero { min-height: 900px; height: 900px; }
.shot .reveal { opacity: 1; transform: none; transition: none; }

/* 404
   ---------------------------------------------------------------- */
.page-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 6rem 0; }
.page-404 h1 { font-size: clamp(5rem, 18vw, 12rem); line-height: 0.9; }
