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

:root {
  --bg: #05070f;
  --bg2: #0a1020;
  --surface: #10182b;
  --border: rgba(98, 233, 255, 0.18);
  --cobalt: #0a4fc4;
  --navy: #061e55;
  --cyan: #62e9ff;
  --cyan-dim: #3aa8c4;
  --magenta: #ff4d7a;
  --green: #22c55e;
  --text: #e8eef8;
  --muted: #8aa0bd;
  --ice: #c5d8f0;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", monospace;
  --max: 1180px;
}

html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--text); }

body {
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.12;
}

a { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: #041018;
  padding: 0.6rem 1rem;
  z-index: 2000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── Nav ── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 1.5rem;
  background: rgba(5, 7, 15, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ice);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-right: auto;
}
.nav-brand img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(98, 233, 255, 0.08);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: clamp(280px, 42vw, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.05) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,15,0.15) 0%, rgba(5,7,15,0.55) 55%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 70%, rgba(10,79,196,0.28), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 2rem;
}

.hero-logo {
  width: min(640px, 92%);
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.55));
}

.hero-kicker {
  font-family: var(--font-pixel);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

/* ── Layout ── */
.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.store-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.trailer {
  position: relative;
  background: #000;
}
.trailer-poster {
  width: 100%;
  aspect-ratio: 1232 / 706;
  object-fit: cover;
}
.trailer-cta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.82));
}

.steam-widget {
  width: 100%;
  min-height: 190px;
  border: 0;
  background: #1b2838;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.55rem;
  background: var(--bg2);
}
.shots button {
  appearance: none;
  border: 1px solid transparent;
  padding: 0;
  background: #000;
  cursor: zoom-in;
  border-radius: 4px;
  overflow: hidden;
}
.shots button:hover,
.shots button:focus-visible {
  border-color: var(--cyan);
  outline: none;
}
.shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.sidebar {
  padding: 1.15rem 1.2rem 1.35rem;
  background:
    linear-gradient(180deg, rgba(10,79,196,0.16), transparent 38%),
    var(--surface);
}

.sidebar-logo {
  width: min(100%, 340px);
  margin: 0 auto 1rem;
}

.short {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ice);
  margin-bottom: 1rem;
}

.meta {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.82rem;
  margin: 1rem 0 1.15rem;
}
.meta dt { color: var(--muted); }
.meta dd { color: var(--text); font-weight: 600; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.2rem;
}
.chips li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border);
  background: rgba(98, 233, 255, 0.06);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.78rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--cobalt), #1a7dff);
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 79, 196, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(98, 233, 255, 0.22); }
.btn-secondary {
  background: rgba(98, 233, 255, 0.08);
  color: var(--cyan);
  border-color: var(--border);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: rgba(255,255,255,0.08);
  font-weight: 600;
}

/* ── About ── */
.about {
  padding: 0.5rem 0 4rem;
}
.section-label {
  font-family: var(--font-pixel);
  font-size: 0.52rem;
  color: var(--cyan);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.about h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 2.4rem 0 0.8rem;
}
.about h2:first-of-type { margin-top: 0.4rem; }
.about p, .about li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}
.about p { margin-bottom: 0.9rem; max-width: 72ch; }
.about ul {
  margin: 0.4rem 0 0.6rem 1.15rem;
  display: grid;
  gap: 0.55rem;
  max-width: 72ch;
}

/* ── Help ── */
.help-hero {
  padding: 2.4rem 0 1.2rem;
}
.help-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 0.45rem;
}
.help-hero p { color: var(--muted); max-width: 62ch; line-height: 1.6; }

.schematic-wrap {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 0.5rem 0 1.75rem;
}
.schematic-wrap img,
.schematic-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

table.binds {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 2rem;
  font-size: 0.92rem;
}
table.binds th,
table.binds td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.binds th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(98, 233, 255, 0.05);
}
table.binds td:first-child { font-weight: 700; color: var(--ice); }
table.binds td:nth-child(2) { color: var(--cyan); white-space: nowrap; }
table.binds td:nth-child(3) { color: var(--muted); }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(2, 4, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1600px, 96vw);
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 0 2.8rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-pixel);
  font-size: 0.46rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  line-height: 2;
}
.footer-brand span { color: var(--cyan); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  width: 100%;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.55;
  margin-top: 0.4rem;
}

@media (max-width: 860px) {
  .store-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav { padding: 0.8rem 1rem; }
  .wrap, .hero-inner { width: min(var(--max), calc(100% - 1.6rem)); }
  table.binds td:nth-child(2) { white-space: normal; }
}

@media (max-width: 520px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 240px; }
  .nav-brand span { display: none; }
}
