/* ============================================================
   JADU GAME STUDIO — Main Stylesheet
   Pure vanilla CSS. Dark "gamer" aesthetic, vibrant accents.
   Zero dependencies. Mobile-first responsive (Flexbox + Grid).
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Backgrounds */
  --bg-0: #06060d;
  --bg-1: #0a0a16;
  --surface: #101024;
  --surface-2: #16162e;
  --surface-3: #1c1c3a;

  /* Text */
  --text: #f1f1fb;
  --muted: #a4a4c8;
  --faint: #6f6f96;

  /* Brand accents */
  --violet: #8b5cf6;
  --fuchsia: #d946ef;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --green: #34d399;
  --red: #f87171;
  --discord: #5865f2;

  --grad: linear-gradient(120deg, #8b5cf6 0%, #d946ef 48%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(139,92,246,.16), rgba(217,70,239,.16), rgba(34,211,238,.16));

  /* Lines */
  --border: rgba(148, 128, 255, 0.14);
  --border-strong: rgba(148, 128, 255, 0.34);

  /* Typography (system stack = zero dependencies.
     To upgrade, uncomment the Google Fonts <link> in each HTML
     <head> and add the family names below, e.g. "Orbitron".) */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shape & motion */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.45);
  --glow-violet: 0 0 32px rgba(139, 92, 246, 0.35);

  --header-h: 74px;
  --container: 1200px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(139, 92, 246, 0.13), transparent 60%),
    radial-gradient(900px 480px at -10% 30%, rgba(34, 211, 238, 0.07), transparent 55%),
    var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(139, 92, 246, 0.55); color: #fff; }

/* Thin themed scrollbar (WebKit) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #2a2a52; border-radius: 99px; border: 3px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 3. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); position: relative; }
.section-alt { background: var(--bg-1); border-block: 1px solid var(--border); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow::after,
.section-head.center .eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

.section-sub { color: var(--muted); margin: 0; font-size: 1.02rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background-color 0.25s, border-color 0.25s, color 0.25s, filter 0.25s;
}
.btn svg { flex: none; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 26px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 38px rgba(139, 92, 246, 0.55);
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
  background: rgba(139, 92, 246, 0.12);
  box-shadow: var(--glow-violet);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 8px 26px rgba(88, 101, 242, 0.42);
}
.btn-discord:hover {
  transform: translateY(-3px) scale(1.02);
  background: #4752f0;
  box-shadow: 0 14px 38px rgba(88, 101, 242, 0.6);
}

.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.text-link {
  color: var(--cyan);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.text-link svg { transition: transform 0.25s var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- 5. Chips & badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.status-badge {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.status-released { background: rgba(52, 211, 153, 0.16); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.45); }
.status-coming-soon { background: rgba(251, 191, 36, 0.16); color: var(--gold); border: 1px solid rgba(251, 191, 36, 0.45); }
.status-game-jam { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.5); }

.downloads-badge {
  position: absolute;
  bottom: 0.8rem; right: 0.8rem;
  padding: 0.26rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(6, 6, 13, 0.75);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.4);
  backdrop-filter: blur(6px);
  z-index: 2;
}

/* ---------- 6. Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.site-header.scrolled, body.nav-open .site-header {
  background: rgba(7, 7, 16, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none !important;
  color: var(--text);
}
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); box-shadow: 0 8px 26px rgba(217, 70, 239, 0.55); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.brand-text small {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--muted);
  margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 0.4rem; }
.site-nav a:not(.btn) {
  position: relative;
  padding: 0.55rem 0.95rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border-radius: 8px;
  transition: color 0.25s, background-color 0.25s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.95rem; right: 0.95rem; bottom: 0.28rem;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav a.active { color: var(--text); }
.site-nav a.active::after { transform: scaleX(1); }
.site-nav .btn { margin-left: 0.8rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  overflow: hidden;
}
.hero::before { /* faint grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 78%);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.orb-1 { width: 420px; height: 420px; top: -140px; left: -120px; background: rgba(139, 92, 246, 0.35); }
.orb-2 { width: 380px; height: 380px; bottom: -120px; right: -80px; background: rgba(34, 211, 238, 0.22); animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; top: 30%; left: 52%; background: rgba(217, 70, 239, 0.2); animation-delay: -9s; }

@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, -36px, 0) scale(1.12); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero-pill .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.hero-title .grad-text {
  filter: drop-shadow(0 0 26px rgba(217, 70, 239, 0.35));
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  max-width: 54ch;
  margin: 0 0 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
  color: var(--faint);
  font-size: 0.86rem;
}
.hero-note svg { color: var(--gold); flex: none; }

/* Floating cover art collage */
.hero-art {
  position: relative;
  height: 480px;
  perspective: 900px;
}
.float-card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.12);
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
}
.float-card img { width: 100%; height: 100%; object-fit: cover; }
.float-card-1 { width: 246px; aspect-ratio: 16/10; top: 34px; left: 12%; transform: rotate(-7deg); z-index: 3; }
.float-card-2 { width: 210px; aspect-ratio: 16/10; top: 42%; right: 6%; transform: rotate(5deg); z-index: 2; animation-delay: -2.4s; }
.float-card-3 { width: 188px; aspect-ratio: 16/10; bottom: 8px; left: 4%; transform: rotate(3deg); z-index: 1; animation-delay: -4.8s; }
.float-card-1::after, .float-card-2::after, .float-card-3::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.14), transparent 45%);
  pointer-events: none;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  pointer-events: none;
}
.mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--faint);
  border-radius: 14px;
  position: relative;
}
.mouse::after {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 7px;
  border-radius: 3px;
  background: var(--cyan);
  translate: -50% 0;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* ---------- 8. Stats band ---------- */
.stats-band {
  border-block: 1px solid var(--border);
  background:
    radial-gradient(700px 220px at 50% 0%, rgba(139, 92, 246, 0.14), transparent 70%),
    var(--bg-1);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: clamp(2.2rem, 4vw, 3.2rem);
}
.stat {
  text-align: center;
  padding: 0.6rem 1rem;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: linear-gradient(transparent, var(--border-strong), transparent);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.28));
}
.stat-label {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.stat-label strong { color: var(--text); }

/* ---------- 9. Game cards ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}

.game-card {
  position: relative;
  height: 100%;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.game-card:hover, .game-card:focus-within {
  transform: translateY(-8px) scale(1.012);
  border-color: var(--border-strong);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 34px rgba(139, 92, 246, 0.18);
}

.game-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
}

.game-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
}
.game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), filter 0.4s;
}
.game-card:hover .game-thumb img { transform: scale(1.07); filter: saturate(1.15); }

.game-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem 1.3rem;
}
.game-card-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--faint);
  font-weight: 600;
}
.game-card-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  color: var(--text);
  transition: color 0.25s;
}
.game-card:hover .game-card-title { color: #c4b5fd; }

.game-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-foot {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
}
.platform-icons { display: flex; gap: 0.55rem; color: var(--faint); }
.platform-icons .pf {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.pf svg { color: var(--violet); }

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--cyan);
}
.view-btn svg { transition: transform 0.25s var(--ease-out); }
.game-card:hover .view-btn svg { transform: translateX(5px); }

/* ---------- 10. Filter bar (catalog) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}
.filter-chip {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.25s var(--ease-out);
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.filter-chip.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}
.filter-count { margin-left: auto; color: var(--faint); font-size: 0.85rem; font-weight: 600; }

/* ---------- 11. Discord CTA panel ---------- */
.discord-cta {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px 300px at 15% 50%, rgba(88, 101, 242, 0.22), transparent 65%),
    radial-gradient(500px 300px at 90% 20%, rgba(139, 92, 246, 0.16), transparent 60%),
    var(--surface);
  padding: clamp(2.2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.discord-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(88, 101, 242, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(88, 101, 242, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.discord-cta-icon {
  width: 92px; height: 92px;
  display: grid; place-items: center;
  border-radius: 26px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.45);
  color: var(--discord);
  box-shadow: 0 0 44px rgba(88, 101, 242, 0.35);
}
.discord-cta-body { position: relative; }
.discord-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.discord-cta p { margin: 0 0 1rem; color: var(--muted); max-width: 56ch; }
.discord-perks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.discord-perks .chip { color: var(--text); background: rgba(88, 101, 242, 0.12); border-color: rgba(88, 101, 242, 0.35); }

/* ---------- 12. Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: 2.6rem;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 36ch; margin: 1rem 0 1.3rem; }
.footer-social { display: flex; gap: 0.7rem; }
.social-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease-out);
}
.social-btn:hover {
  color: #fff;
  transform: translateY(-4px);
  border-color: var(--violet);
  background: var(--surface-3);
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.3);
}
.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.25s;
}
.footer-col a:hover { color: var(--cyan); padding-left: 4px; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.84rem;
}

/* ---------- 13. Sub-page hero ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(2.6rem, 5vw, 4rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(800px 320px at 50% -10%, rgba(139, 92, 246, 0.16), transparent 65%), var(--bg-0);
}
.page-hero .page-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
}
.page-hero .page-sub { color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.05rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--faint);
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text); font-weight: 700; }

/* ---------- 14. Game details page ---------- */
.detail-banner {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.6rem, 6vw, 4.4rem)) 0 clamp(2.4rem, 5vw, 3.6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.detail-backdrop {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: blur(46px) saturate(1.2) brightness(0.32);
  transform: scale(1.25);
  z-index: -2;
}
.detail-backdrop::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 13, 0.55), rgba(6, 6, 13, 0.92) 78%, var(--bg-0));
}
.detail-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.6rem; }
.detail-cover {
  width: 190px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(139, 92, 246, 0.18);
}
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}
.detail-tagline { color: var(--muted); font-size: 1.08rem; margin: 0 0 1.1rem; max-width: 60ch; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: clamp(1.6rem, 3.5vw, 2.6rem);
  align-items: start;
  padding-block: clamp(2.2rem, 4vw, 3.2rem);
}
.detail-main { display: grid; gap: clamp(2.2rem, 4vw, 3rem); min-width: 0; }
.detail-aside { display: grid; gap: 1.4rem; position: sticky; top: calc(var(--header-h) + 1.2rem); }

.panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.8rem);
}
.panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.panel-title::before {
  content: "";
  width: 4px; height: 1.1em;
  border-radius: 4px;
  background: var(--grad);
}

/* Trailer (click-to-load YouTube facade) */
.trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #000;
  cursor: pointer;
}
.trailer-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: transform 0.5s var(--ease-out), opacity 0.3s; }
.trailer-frame:hover img { transform: scale(1.04); opacity: 1; }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.trailer-play-btn {
  width: 86px; height: 60px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(6, 6, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 0 46px rgba(139, 92, 246, 0.5);
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
}
.trailer-frame:hover .trailer-play-btn { transform: scale(1.12); background: rgba(139, 92, 246, 0.75); }
.trailer-hint {
  position: absolute;
  left: 1rem; bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* Description prose */
.prose-game p { color: var(--muted); margin: 0 0 1rem; font-size: 1.02rem; }
.prose-game p:last-child { margin-bottom: 0; }
.prose-game strong { color: var(--text); }

/* Screenshot gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}
.shot {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-3);
  padding: 0;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease-out); }
.shot:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); }
.shot:hover img { transform: scale(1.06); }
.shot::after {
  content: "⤢";
  position: absolute;
  right: 0.7rem; bottom: 0.55rem;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(6, 6, 13, 0.72);
  color: var(--cyan);
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.25s;
}
.shot:hover::after { opacity: 1; }

/* Credits — first-letter avatars */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.credit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
  padding: 1.35rem 0.9rem 1.15rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.credit-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
}
/* The circular CSS avatar. Background color is injected inline by JS. */
.credit-avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 0.7rem;
  transition: transform 0.3s var(--ease-out);
}
.credit-card:hover .credit-avatar { transform: scale(1.08) rotate(-4deg); }
.credit-name { font-weight: 800; font-size: 0.98rem; line-height: 1.3; color: var(--text); }
.credit-role { font-size: 0.8rem; color: var(--muted); line-height: 1.4; margin-top: 0.1rem; }
.credit-card .credit-link-hint {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

/* Info card (aside) */
.info-list { display: grid; gap: 0; margin: 0; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--faint); font-weight: 600; margin: 0; }
.info-row dd { margin: 0; color: var(--text); font-weight: 700; text-align: right; }

/* Store buttons */
.store-buttons { display: grid; gap: 0.8rem; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none !important;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s, background-color 0.25s;
}
.store-btn:hover {
  transform: translateY(-3px);
  background: var(--surface-3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.store-btn .store-icon {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
}
.store-btn .store-name { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.store-btn .store-action { display: block; font-weight: 800; font-size: 0.98rem; line-height: 1.2; }
.store-google .store-icon { background: rgba(52, 211, 153, 0.14); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.35); }
.store-google:hover { border-color: rgba(52, 211, 153, 0.55); }
.store-itch .store-icon { background: rgba(217, 70, 239, 0.14); color: var(--fuchsia); border: 1px solid rgba(217, 70, 239, 0.35); }
.store-itch:hover { border-color: rgba(217, 70, 239, 0.55); }
.store-playgama .store-icon { background: rgba(34, 211, 238, 0.14); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.35); }
.store-playgama:hover { border-color: rgba(34, 211, 238, 0.55); }

.privacy-link-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--cyan);
}

/* Related games */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }

/* States */
.state-box {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.state-box .big { font-size: 2.6rem; margin-bottom: 0.6rem; }
.state-box h2 { font-family: var(--font-display); margin: 0 0 0.5rem; }
.state-box p { color: var(--muted); margin: 0 0 1.4rem; }

.loading-grid { min-height: 260px; display: grid; place-items: center; color: var(--faint); font-weight: 600; }
.spinner {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px solid var(--surface-3);
  border-top-color: var(--violet);
  animation: spin 0.9s linear infinite;
  margin: 0 auto 0.9rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 15. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  background: rgba(4, 4, 10, 0.93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: clamp(1rem, 4vw, 2.5rem);
}
.lightbox.open { display: grid; animation: fadeIn 0.25s ease; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
  animation: zoomIn 0.3s var(--ease-out);
}
@keyframes zoomIn { from { transform: scale(0.94); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 16, 36, 0.8);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--violet);
  border-color: var(--violet);
  transform: scale(1.08);
}
.lightbox-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox-prev { left: clamp(0.6rem, 2vw, 2rem); top: 50%; translate: 0 -50%; }
.lightbox-next { right: clamp(0.6rem, 2vw, 2rem); top: 50%; translate: 0 -50%; }
.lightbox-counter {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%; translate: -50% 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ---------- 16. About page ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.pillar {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.pillar:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.14);
}
.pillar-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  color: var(--violet);
  margin-bottom: 1.1rem;
}
.pillar h3 { font-family: var(--font-display); margin: 0 0 0.5rem; font-size: 1.2rem; font-weight: 800; }
.pillar p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 2.2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--violet), var(--fuchsia), var(--cyan));
  border-radius: 2px;
  opacity: 0.6;
}
.timeline-item { position: relative; padding-bottom: 2.1rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.2rem; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 3px solid var(--violet);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
}
.timeline-item .tl-year {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.timeline-item h3 { margin: 0.15rem 0 0.35rem; font-size: 1.12rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- 17. Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(1.6rem, 3.5vw, 2.6rem);
  align-items: start;
}
.form-grid { display: grid; gap: 1.1rem; }
.form-field { display: grid; gap: 0.45rem; }
.form-field label { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.form-field label .req { color: var(--fuchsia); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text);
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; cursor: pointer; }
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}
.form-field input.invalid, .form-field textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15); }
.field-error { color: var(--red); font-size: 0.8rem; font-weight: 600; min-height: 1em; }

.form-alert {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid;
}
.form-alert.show { display: block; animation: fadeIn 0.3s ease; }
.form-alert.success { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.4); color: var(--green); }
.form-alert.error { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.4); color: var(--red); }
.form-alert.info { background: rgba(34, 211, 238, 0.08); border-color: rgba(34, 211, 238, 0.35); color: var(--cyan); }

.contact-aside { display: grid; gap: 1.3rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .cc-icon {
  width: 48px; height: 48px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
}
.contact-card h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }

/* ---------- 18. Privacy / legal prose ---------- */
.prose { max-width: 800px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2.4rem 0 0.8rem;
  padding-left: 0.9rem;
  border-left: 4px solid;
  border-image: var(--grad) 1;
}
.prose h2:first-of-type { margin-top: 1.6rem; }
.prose p, .prose ul { color: var(--muted); font-size: 0.99rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--text); }
.prose a { font-weight: 600; }
.policy-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
}
.policy-meta svg { color: var(--gold); }

/* ---------- 19. Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-art { display: none; }
  .discord-cta { grid-template-columns: 1fr; text-align: center; }
  .discord-cta-icon { margin-inline: auto; }
  .discord-perks { justify-content: center; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1.1rem 1.3rem 1.5rem;
    background: rgba(7, 7, 16, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-strong);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s var(--ease-out), opacity 0.3s, visibility 0.3s;
  }
  body.nav-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav a:not(.btn) { padding: 0.85rem 1rem; font-size: 1.05rem; border-radius: 10px; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a.active { background: var(--grad-soft); border: 1px solid var(--border-strong); }
  .site-nav .btn { margin: 0.6rem 0 0; justify-content: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }

  .pillars-grid { grid-template-columns: 1fr; }
  .detail-head { flex-direction: column; align-items: flex-start; }
  .detail-cover { width: 150px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .filter-count { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .hero-actions .btn { width: 100%; }
  .store-btn { flex-direction: column; text-align: center; }
  .credits-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
