:root {
  --gb-void: #08080f;
  --gb-dark: #0d0d18;
  --gb-surface: #12121f;
  --gb-card: #181828;
  --gb-elevated: #1f1f35;
  --gb-border: #2a2a45;
  --gb-muted: #3a3a5c;

  --gb-purple-400: #a855f7;
  --gb-purple-500: #9333ea;
  --gb-purple-600: #7c3aed;
  --gb-purple-700: #6d28d9;

  --gb-neon: #c084fc;
  --gb-green: #22d3a0;
  --gb-red: #f04f6a;
  --gb-yellow: #fbbf24;
  --gb-blue: #38bdf8;

  --gb-text: #e2e8f0;
  --gb-text-muted: #94a3b8;
  --gb-text-dim: #64748b;

  --gradient-neon: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
  --shadow-neon-sm: 0 0 8px rgba(168, 85, 247, 0.4);
  --shadow-neon-md: 0 0 16px rgba(168, 85, 247, 0.5);
  --shadow-neon-lg: 0 0 32px rgba(168, 85, 247, 0.6);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.6);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--gb-dark);
  color: var(--gb-text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.85rem;
  color: var(--gb-text-muted);
}
.nav-links a:hover { color: var(--gb-text); }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4.5rem 0 3.5rem;
}
.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 1.75rem;
  box-shadow: var(--shadow-neon-lg);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.hero p.tagline {
  font-size: 1.05rem;
  color: var(--gb-text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ─── Download buttons ───────────────────────────────────────────────────── */
.download-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.9rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient-neon);
  color: #fff;
  box-shadow: var(--shadow-neon-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-neon-md); }
.btn-secondary {
  background: var(--gb-card);
  color: var(--gb-text-muted);
  border-color: var(--gb-border);
}
.btn-secondary:hover { color: var(--gb-text); border-color: var(--gb-muted); }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.other-platforms {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.release-meta {
  font-size: 0.78rem;
  color: var(--gb-text-dim);
  min-height: 1.2em;
}
.release-meta a { color: var(--gb-purple-400); text-decoration: underline; }

/* ─── Cards / sections ───────────────────────────────────────────────────── */
.card {
  background: var(--gb-card);
  border: 1px solid var(--gb-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  padding: 3rem 0;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.7rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--gb-purple-400);
}
.feature-icon svg { width: 20px; height: 20px; }
.features h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--gb-text);
}
.features p {
  font-size: 0.82rem;
  color: var(--gb-text-muted);
  line-height: 1.55;
}

/* ─── Section heading (reused above the games grid) ─────────────────────── */
.section-heading {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 2.25rem;
}
.section-heading .eyebrow {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gb-purple-400);
  margin-bottom: 0.7rem;
}
.section-heading h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 0.75rem;
}
.section-heading .section-sub {
  color: var(--gb-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ─── Games — the primary showcase, not an afterthought ──────────────────── */
.games-section {
  padding: 2.5rem 0 4.5rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto;
}

.game-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  padding: 1.25rem 0.9rem 1.1rem;
  background: var(--gb-card);
  border: 1px solid var(--gb-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* A soft glow of the game's own brand color, centered high in the card like a poster's key
   art would sit — this is the "theme" a real logo would otherwise carry. */
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 26%, var(--game-color) 0%, transparent 62%);
  opacity: 0.18;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--game-color);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.game-card:hover::before { opacity: 0.34; }

.game-card-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.game-card-art svg {
  width: 40%;
  max-width: 52px;
  height: auto;
  color: var(--game-color);
  filter: drop-shadow(0 0 12px currentColor);
  opacity: 0.92;
  transition: transform 0.25s ease;
}
.game-card:hover .game-card-art svg { transform: scale(1.1); }

.game-card-body { position: relative; width: 100%; }
.game-card-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 0.55rem;
  line-height: 1.25;
}
.game-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--game-color);
  border: 1px solid currentColor;
}

.requirements {
  padding: 0 0 3.5rem;
}
.requirements .card {
  max-width: 640px;
  margin: 0 auto;
}
.requirements h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--gb-text-muted);
}
.req-grid dt { color: var(--gb-text); font-weight: 600; margin-bottom: 0.15rem; }
.req-grid dd { margin-bottom: 0.8rem; }

footer {
  border-top: 1px solid var(--gb-border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gb-text-dim);
}
footer a { color: var(--gb-text-muted); }
footer a:hover { color: var(--gb-text); }
footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  margin-bottom: 0.9rem;
}

/* ─── Sub-pages (policies, email-link pages) ──────────────────────────────── */
.page { max-width: 760px; margin: 0 auto; padding: 1rem 0 4rem; }
.doc { line-height: 1.7; color: var(--gb-text-muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.doc h1 { font-size: clamp(1.4rem, 4vw, 2rem); color: var(--gb-text); margin: 0.5rem 0 1rem; }
.doc h2 { font-size: 1.05rem; color: var(--gb-text); margin: 2.2rem 0 0.7rem; }
.doc h3 { font-size: 0.95rem; color: var(--gb-text); margin: 1.6rem 0 0.5rem; }
.doc p, .doc ul, .doc ol { margin-bottom: 1rem; }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc strong { color: var(--gb-text); }
.doc a { color: var(--gb-neon); text-decoration: underline; }
.doc blockquote { border-left: 3px solid var(--gb-yellow); background: var(--gb-surface); padding: 0.8rem 1rem; margin-bottom: 1.5rem; border-radius: 0 8px 8px 0; }
.doc blockquote p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.85rem; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--gb-border); padding: 0.4rem 0.6rem; text-align: left; }
.doc code { font-size: 0.85em; }
.doc-meta { font-size: 0.8rem; color: var(--gb-text-dim); margin-bottom: 1rem; }

.card { background: var(--gb-card); border: 1px solid var(--gb-border); border-radius: 16px; padding: 2rem 1.5rem; box-shadow: var(--shadow-card); max-width: 440px; margin: 2rem auto; }
.card h1 { font-size: 1.3rem; margin-bottom: 0.75rem; text-align: center; }
.card p { color: var(--gb-text-muted); font-size: 0.92rem; line-height: 1.6; text-align: center; }
.card form { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
.card label { display: grid; gap: 0.35rem; font-size: 0.82rem; color: var(--gb-text-muted); }
.card input { background: var(--gb-surface); border: 1px solid var(--gb-border); color: var(--gb-text); border-radius: 10px; padding: 0.7rem 0.8rem; font: inherit; font-size: 16px; }
.card input:focus { outline: 2px solid var(--gb-purple-500); border-color: transparent; }
.card .btn { width: 100%; justify-content: center; }
.status { margin-top: 1rem; font-size: 0.88rem; text-align: center; min-height: 1.2em; }
.status.ok { color: var(--gb-green); }
.status.err { color: var(--gb-red); }
.hint { font-size: 0.75rem; color: var(--gb-text-dim); }

/* 16 games / 4 columns = four even rows on desktop; below this, 4 columns gets too cramped
   for the icon + label, so it drops to 2 columns (still even rows). */
@media (max-width: 860px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .req-grid { grid-template-columns: 1fr; }
  .games-grid { gap: 0.75rem; }
  .game-card { padding: 1.1rem 0.75rem 1rem; }
  .game-card-body h3 { font-size: 0.82rem; }
}
