/* ============================================================
   LUPO GAME — cosmic showcase
   Mobile-first. Deep space aesthetic.
============================================================ */

/* ---------- Fonts (self-hosted, GDPR) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter var';
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --bg: #05060d;
  --bg-deep: #030309;
  --ink: #e9ecff;
  --muted: #9aa0c6;
  --faint: #6b7099;
  --line: rgba(150, 165, 255, 0.12);
  --card: rgba(19, 22, 40, 0.55);
  --card-hi: rgba(30, 35, 62, 0.72);

  --c-cyan: #33e1ff;
  --c-violet: #a970ff;
  --c-magenta: #ec5fc0;
  --brand-grad: linear-gradient(100deg, #33e1ff 0%, #7d7bff 46%, #ec5fc0 100%);

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter var', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Cosmic backdrop ---------- */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  display: block;
  background:
    radial-gradient(120% 80% at 50% -10%, #0b0f24 0%, #06070f 45%, #030309 100%);
}

.nebula {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  will-change: transform;
}
.neb-1 {
  width: 60vw; height: 60vw;
  top: -14vw; left: -12vw;
  background: radial-gradient(circle, rgba(51,225,255,0.36), transparent 62%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.neb-2 {
  width: 66vw; height: 66vw;
  top: 8vh; right: -20vw;
  background: radial-gradient(circle, rgba(236,95,192,0.30), transparent 62%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.neb-3 {
  width: 70vw; height: 70vw;
  bottom: -26vw; left: 12vw;
  background: radial-gradient(circle, rgba(140,110,255,0.26), transparent 64%);
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-5vw, 6vh, 0) scale(1.15); } }
@keyframes drift3 { to { transform: translate3d(4vw, -5vh, 0) scale(1.1); } }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 40px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 7, 15, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(120,150,255,0.5));
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 72%);
  mask-image: radial-gradient(circle, #000 60%, transparent 72%);
}
.brand-word {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.02rem;
  color: var(--ink);
}
.brand-word span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 2px;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.25s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.nav-cta) { display: none; }
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(120,140,255,0.08);
  color: var(--ink) !important;
  font-weight: 500;
}
.nav-cta:hover { border-color: var(--c-cyan); box-shadow: 0 0 20px rgba(51,225,255,0.25); }

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(120,140,255,0.06);
  border: 1px solid var(--line);
}
.lang-switch button {
  min-height: 38px;
  min-width: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active {
  color: #06070f;
  background: var(--brand-grad);
  box-shadow: 0 2px 12px rgba(120,140,255,0.4);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 92px clamp(18px, 6vw, 40px) 60px;
  position: relative;
}
.hero-emblem-wrap {
  position: relative;
  width: min(74vw, 340px);
  aspect-ratio: 1;
  margin-bottom: 6px;
  display: grid;
  place-items: center;
}
.hero-emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 8px 40px rgba(80,120,255,0.35));
  will-change: transform;
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 74%);
  mask-image: radial-gradient(circle, #000 62%, transparent 74%);
}
.emblem-halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,130,255,0.30), transparent 65%);
  filter: blur(26px);
  animation: pulse 5.5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes pulse { 0%,100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.08); } }

.hero-kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  color: var(--c-cyan);
  margin: 10px 0 4px;
  padding-left: 0.42em;
}
.hero-wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.9rem, 15vw, 6.4rem);
  letter-spacing: 0.02em;
  line-height: 0.94;
  margin: 0;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(90,130,255,0.25);
}
.hero-word-2 {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 5.4vw, 1.9rem);
  line-height: 1.2;
  margin: 20px 0 0;
  color: var(--ink);
}
.grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.6vw, 1.08rem);
  margin: 16px auto 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #06070f;
  background: var(--brand-grad);
  box-shadow: 0 8px 30px rgba(90,130,255,0.4);
  font-weight: 700;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(120,150,255,0.55); }
.btn-ghost {
  color: var(--ink);
  background: rgba(120,140,255,0.06);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--c-cyan); box-shadow: 0 0 24px rgba(51,225,255,0.28); transform: translateY(-3px); }

/* ---------- Scroll hint ---------- */
.scroll-hint {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: rotate(45deg) translate(0,0); opacity: 0.5; } 50% { transform: rotate(45deg) translate(3px,3px); opacity: 1; } }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.72rem;
  color: var(--c-magenta);
  margin: 0 0 12px;
  padding-left: 0.34em;
}
.section-head h2, .manifesto h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--muted); margin: 16px 0 0; font-size: 1.02rem; }

/* ---------- Games grid ---------- */
.games { padding: clamp(60px, 12vw, 120px) clamp(16px, 5vw, 40px); max-width: var(--maxw); margin: 0 auto; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
  isolation: isolate;
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--accent, #7d7bff), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
  pointer-events: none;
}
.card:hover, .card:focus-within {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 24px 60px -20px var(--accent-glow, rgba(120,140,255,0.5));
}
.card:hover::before, .card:focus-within::before { opacity: 1; }

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(8,9,18,0.55) 72%, rgba(5,6,13,0.96) 100%);
}
.card-accent-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 20% 0%, var(--accent-soft, rgba(120,140,255,0.22)), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.85;
  z-index: 1;
}
.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(8,9,18,0.6);
  border: 1px solid var(--accent, var(--line));
  backdrop-filter: blur(6px);
}
.card-live {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #b8ffcf;
  text-transform: uppercase;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  background: rgba(8,20,14,0.6);
  border: 1px solid rgba(80,230,140,0.35);
}
.card-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #35e08a;
  box-shadow: 0 0 8px #35e08a;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

.card-body { position: relative; padding: 22px clamp(18px, 4vw, 26px) 24px; z-index: 3; margin-top: -46px; }
.card-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  color: var(--accent, var(--ink));
  text-shadow: 0 2px 24px var(--accent-glow, rgba(0,0,0,0.5));
}
.card-tag { color: var(--ink); font-weight: 500; margin: 8px 0 0; font-size: 0.98rem; opacity: 0.92; }
.card-desc { color: var(--muted); font-size: 0.94rem; margin: 12px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; }
.chip {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.card-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(51, 225, 255, 0.12);
  border: 1px solid rgba(51, 225, 255, 0.3);
  color: var(--c-cyan);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  min-height: 40px;
}

.card-link:hover {
  background: rgba(51, 225, 255, 0.2);
  border-color: rgba(51, 225, 255, 0.5);
}

.card-play {
  flex: 1;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  color: #06070f;
  background: var(--accent, #7d7bff);
  transition: transform 0.25s var(--ease), box-shadow 0.3s, gap 0.25s;
  box-shadow: 0 6px 24px -6px var(--accent-glow, rgba(120,140,255,0.6));
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.card-play:hover { transform: translateY(-2px); gap: 13px; box-shadow: 0 12px 32px -8px var(--accent-glow, rgba(120,140,255,0.8)); }
.card-play .arw { transition: transform 0.25s; }
.card-play:hover .arw { transform: translateX(3px); }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(50px, 10vw, 110px) clamp(18px, 6vw, 40px); }
.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(32px, 6vw, 64px) clamp(22px, 5vw, 56px);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(24,28,52,0.5), rgba(12,14,28,0.35));
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.manifesto-inner::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: 80%; height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(120,140,255,0.16), transparent 66%);
  pointer-events: none;
}
.manifesto p { color: var(--muted); font-size: 1.06rem; margin: 20px auto 0; max-width: 54ch; }
.stats {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 12px;
}
.stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stats strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span { font-size: 0.8rem; color: var(--faint); letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px clamp(18px, 6vw, 40px) 40px;
  max-width: var(--maxw);
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img {
  width: 48px; height: 48px; mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(120,150,255,0.5));
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 72%);
  mask-image: radial-gradient(circle, #000 60%, transparent 72%);
}
.footer-brand > div { text-align: left; }
.footer-tag { margin: 2px 0 0; color: var(--faint); font-size: 0.82rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--ink); }
.copyright { color: var(--faint); font-size: 0.82rem; margin: 0; }

/* ---------- Reveal ---------- */
.reveal, .card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in, .card.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 760px) {
  .nav-links a:not(.nav-cta) { display: inline-flex; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .card-word { font-size: 2.1rem; }
  .footer { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-links { justify-content: flex-end; }
}
@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .card-word { font-size: 1.95rem; }
}

/* Cards stagger */
.card:nth-child(2) { transition-delay: 0.06s; }
.card:nth-child(3) { transition-delay: 0.12s; }
.card:nth-child(4) { transition-delay: 0.06s; }
.card:nth-child(5) { transition-delay: 0.12s; }
.card:nth-child(6) { transition-delay: 0.18s; }

/* ---------- Gallery modal ---------- */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(2px);
}
.gallery-container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gallery-carousel {
  position: relative;
  width: 100%;
  max-width: 90vw;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 12px;
}
.gallery-images {
  display: flex;
  width: 100%;
  transition: transform 0.4s var(--ease);
}
.gallery-image {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 80vh;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(51, 225, 255, 0.2);
  border: 1px solid rgba(51, 225, 255, 0.4);
  color: var(--c-cyan);
  font-size: 1.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
}
.gallery-nav:hover {
  background: rgba(51, 225, 255, 0.3);
  border-color: rgba(51, 225, 255, 0.6);
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(51, 225, 255, 0.15);
  border: 1px solid rgba(51, 225, 255, 0.3);
  color: var(--c-cyan);
  font-size: 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 20;
}
.gallery-close:hover {
  background: rgba(51, 225, 255, 0.25);
  border-color: rgba(51, 225, 255, 0.5);
}
.gallery-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  z-index: 10;
}
.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(233, 236, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-dot.active {
  background: var(--c-cyan);
}
.gallery-dot:hover {
  background: rgba(51, 225, 255, 0.6);
}

/* Make card-media clickable */
.card-media {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-media:hover { transform: scale(1.02); }
.card-media:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }

@media (max-width: 600px) {
  .gallery-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .gallery-close { width: 36px; height: 36px; font-size: 1.6rem; }
}

/* ---------- HOME REDESIGN: Hero + Featured Showcase ---------- */
.hero-showcase {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 60px 20px;
}

.hero-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.featured-game {
  background: var(--card-hi);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 24px;
  margin-top: 40px;
}

.featured-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.featured-header h2 {
  font-size: 1.2rem;
  color: var(--c-cyan);
  margin: 0;
}

.featured-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.featured-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.featured-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(51, 225, 255, 0.2);
  border: 1px solid rgba(51, 225, 255, 0.5);
  color: var(--c-cyan);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.featured-info h3 {
  font-size: 2.4rem;
  margin: 0 0 8px 0;
  color: var(--ink);
  font-family: var(--display);
}

.featured-tagline {
  font-size: 1.3rem;
  color: var(--c-cyan);
  margin: 0 0 16px 0;
  font-weight: 600;
}

.featured-desc {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px 0;
  font-size: 0.95rem;
}

.featured-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.featured-chips span {
  background: rgba(51, 225, 255, 0.12);
  border: 1px solid rgba(51, 225, 255, 0.3);
  color: var(--c-cyan);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.featured-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .featured-container {
    grid-template-columns: 1fr;
  }
}

/* ---------- GAME DETAIL PAGES ---------- */
.game-hero {
  position: relative;
  padding: 120px 20px;
  text-align: center;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 150% 120% at 50% 0%, rgba(51,225,255,0.15) 0%, transparent 40%),
              radial-gradient(ellipse 120% 150% at 100% 100%, rgba(236,95,192,0.1) 0%, transparent 50%);
  border-bottom: 1px solid var(--line);
}

.game-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.12;
  filter: blur(2px);
}

.game-hero-content {
  max-width: 800px;
  width: 90%;
  backdrop-filter: blur(12px);
  background: rgba(5, 6, 13, 0.75);
  padding: 60px 40px;
  border-radius: 16px;
  border: 1px solid rgba(150, 165, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.game-hero-content .breadcrumb {
  display: block;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.game-hero-content h1 {
  font-size: 2.8rem;
  margin: 0 0 8px 0 !important;
  line-height: 1.1;
}

.game-hero-content .game-badge {
  margin: 12px 0 16px 0;
}

.game-hero-content .game-tagline {
  font-size: 1.5rem;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.game-hero-content .game-short {
  font-size: 0.95rem;
  margin: 0 0 28px 0;
  color: var(--muted);
}

.game-hero-cta {
  gap: 12px;
}

.breadcrumb {
  display: inline-block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.breadcrumb:hover {
  color: var(--ink);
}

.game-hero h1 {
  font-size: 3.2rem;
  margin: 0 0 12px 0;
  color: var(--ink);
}

.game-badge {
  display: inline-block;
  background: rgba(51, 225, 255, 0.15);
  border: 1px solid rgba(51, 225, 255, 0.4);
  color: var(--c-cyan);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin: 0 0 20px 0;
  font-weight: 600;
}

.game-tagline {
  font-size: 1.8rem;
  color: var(--c-cyan);
  margin: 0 0 16px 0;
  font-weight: 600;
  font-family: var(--display);
}

.game-short {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.game-hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-large {
  padding: 14px 32px !important;
  font-size: 1.05rem !important;
}

.game-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.game-container {
  width: 100%;
}

.game-section h2 {
  font-size: 2rem;
  margin: 0 0 32px 0;
  color: var(--ink);
}

.game-long {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 0;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.features-list li {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech-info {
  background: var(--card-hi);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 8px;
}

.tech-info p {
  margin: 0 0 16px 0;
  color: var(--muted);
  line-height: 1.7;
}

.tech-info strong {
  color: var(--ink);
}

.tech-explain {
  color: var(--faint);
  font-size: 0.95rem;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gallery-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  aspect-ratio: 4 / 3;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.cta-back {
  text-align: center;
}

.cta-back p {
  color: var(--muted);
  margin: 0 0 20px 0;
  font-size: 0.95rem;
}

.games-section {
  padding: 80px 20px;
}

@media (max-width: 768px) {
  .game-hero {
    padding: 60px 20px;
  }

  .game-hero h1 {
    font-size: 2.4rem;
  }

  .game-tagline {
    font-size: 1.4rem;
  }

  .featured-container {
    grid-template-columns: 1fr;
  }
}

/* ---------- GAME DETAIL PAGE — V3.0 PREMIUM REDESIGN ---------- */

/* Hero Stats Grid (Quick Facts) — NEON GLOW */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 40px 0 0 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(51, 225, 255, 0.08) 0%, rgba(120, 140, 255, 0.04) 100%);
  border: 1px solid rgba(51, 225, 255, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(20px);
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  background: rgba(5, 6, 13, 0.4);
  border: 1.5px solid var(--c-cyan);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 0 20px -10px var(--c-cyan);
}

.hero-stat-card:hover {
  transform: translateY(-6px);
  background: rgba(51, 225, 255, 0.12);
  box-shadow: 0 0 30px -5px var(--c-cyan), inset 0 0 20px -15px var(--c-cyan);
}

.stat-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(51, 225, 255, 0.6));
}

.stat-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-cyan);
  text-shadow: 0 0 10px rgba(51, 225, 255, 0.8);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* Comparison Box */
.comparison-box {
  background: linear-gradient(135deg, rgba(51, 225, 255, 0.08), rgba(236, 95, 192, 0.06));
  border: 1px solid rgba(150, 165, 255, 0.25);
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
  border-left: 3px solid var(--c-cyan);
}

.comparison-label {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin: 0 0 8px 0;
}

.comparison-text {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.7;
}

/* Player Journey Timeline — CINEMATIC */
.game-journey {
  background: linear-gradient(180deg, rgba(120, 140, 255, 0.06) 0%, rgba(236, 95, 192, 0.04) 100%);
  border-top: 1px solid rgba(51, 225, 255, 0.2);
  border-bottom: 1px solid rgba(236, 95, 192, 0.2);
  padding: 80px 20px !important;
}

.journey-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--c-cyan) 0%, rgba(120, 140, 255, 0.4) 50%, rgba(236, 95, 192, 0.3) 100%);
  box-shadow: 0 0 20px rgba(51, 225, 255, 0.5);
}

.journey-step {
  display: flex;
  gap: 32px;
  padding-left: 60px;
  position: relative;
  animation: slideInLeft 0.8s var(--ease) both;
}

.journey-step:nth-child(2) { animation-delay: 0.1s; }
.journey-step:nth-child(3) { animation-delay: 0.2s; }
.journey-step:nth-child(4) { animation-delay: 0.3s; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.journey-step-marker {
  position: absolute;
  left: 2px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--c-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-cyan);
  box-shadow: 0 0 20px -5px var(--c-cyan), inset 0 0 15px -10px var(--c-cyan);
  transition: all 0.3s var(--ease);
}

.journey-step:hover .journey-step-marker {
  transform: scale(1.2);
  box-shadow: 0 0 30px var(--c-cyan), inset 0 0 20px -8px var(--c-cyan);
}

.journey-step-content {
  padding: 24px;
  background: linear-gradient(135deg, rgba(51, 225, 255, 0.06) 0%, rgba(120, 140, 255, 0.04) 100%);
  border: 1px solid rgba(51, 225, 255, 0.15);
  border-radius: 12px;
  border-left: 3px solid var(--c-cyan);
  transition: all 0.3s var(--ease);
}

.journey-step:hover .journey-step-content {
  background: linear-gradient(135deg, rgba(51, 225, 255, 0.12) 0%, rgba(120, 140, 255, 0.08) 100%);
  border-color: rgba(51, 225, 255, 0.3);
  transform: translateX(8px);
  box-shadow: 0 8px 32px -8px rgba(51, 225, 255, 0.3);
}

.journey-step-content h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 10px 0;
  color: var(--c-cyan);
  font-weight: 700;
}

.journey-step-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Features Detail Showcase — GRID OF POWER */
.game-features-detail {
  background: linear-gradient(180deg, rgba(51, 225, 255, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(120, 140, 255, 0.15);
}

.features-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-item {
  background: linear-gradient(135deg, rgba(51, 225, 255, 0.05) 0%, rgba(120, 140, 255, 0.02) 100%);
  border: 1.5px solid rgba(51, 225, 255, 0.2);
  padding: 28px;
  border-radius: 14px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(45deg, var(--c-cyan), var(--c-magenta), var(--c-cyan));
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
}

.feature-item:hover {
  border-color: var(--c-cyan);
  background: linear-gradient(135deg, rgba(51, 225, 255, 0.15) 0%, rgba(120, 140, 255, 0.08) 100%);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px -8px rgba(51, 225, 255, 0.35);
}

.feature-item h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 12px 0;
  color: var(--c-cyan);
  font-weight: 700;
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Video Section */
.game-video {
  background: radial-gradient(ellipse 120% 100% at 50% 100%, rgba(236, 95, 192, 0.08) 0%, transparent 60%);
  border: 1px solid rgba(236, 95, 192, 0.15);
  margin: 40px 0;
}

/* Gallery Section — PREMIUM LIGHTBOX */
.game-gallery-section {
  background: linear-gradient(180deg, transparent 0%, rgba(236, 95, 192, 0.03) 100%);
  border-top: 1px solid rgba(236, 95, 192, 0.15);
  border-bottom: 1px solid rgba(236, 95, 192, 0.15);
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.gallery-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  aspect-ratio: 4 / 3;
  border: 1.5px solid rgba(236, 95, 192, 0.3);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  background: rgba(12, 14, 28, 0.5);
}

.gallery-thumb:hover {
  border-color: var(--c-magenta);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px -10px rgba(236, 95, 192, 0.4);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gallery-thumb:hover img {
  transform: scale(1.12) rotate(1deg);
}

.gallery-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--c-magenta);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(236, 95, 192, 0.4);
}

.gallery-thumb:hover .gallery-label {
  opacity: 1;
  transform: translateY(-4px);
}

/* Stats Grid (Large) — METRICS OF GLORY */
.game-stats {
  background: linear-gradient(135deg, rgba(51, 225, 255, 0.1) 0%, rgba(120, 140, 255, 0.06) 50%, rgba(236, 95, 192, 0.06) 100%);
  border: 1.5px solid rgba(51, 225, 255, 0.25);
  border-radius: 18px;
  margin: 60px 0;
  padding: 40px 20px !important;
}

.stats-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
}

.stat-card-large {
  background: linear-gradient(135deg, rgba(12, 14, 28, 0.4) 0%, rgba(51, 225, 255, 0.08) 100%);
  border: 1.5px solid rgba(51, 225, 255, 0.3);
  padding: 32px 20px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card-large::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(51, 225, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.stat-card-large:hover {
  border-color: var(--c-cyan);
  background: linear-gradient(135deg, rgba(51, 225, 255, 0.15) 0%, rgba(120, 140, 255, 0.1) 100%);
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 20px 50px -12px rgba(51, 225, 255, 0.4), inset 0 0 30px -20px rgba(51, 225, 255, 0.2);
}

.stat-card-large:hover::before {
  opacity: 1;
}

.stat-icon-large {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(51, 225, 255, 0.6));
  transition: filter 0.3s var(--ease);
}

.stat-card-large:hover .stat-icon-large {
  filter: drop-shadow(0 0 20px rgba(51, 225, 255, 1));
}

.stat-value-large {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(51, 225, 255, 0.3);
}

.stat-label-large {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Tech Stack — CODE SHOWCASE */
.game-tech {
  background: linear-gradient(135deg, rgba(51, 225, 255, 0.08) 0%, rgba(120, 140, 255, 0.04) 100%);
  border: 1.5px solid rgba(51, 225, 255, 0.2);
  border-radius: 14px;
  border-left: 3px solid var(--c-cyan);
}

.tech-stack {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 18px 0;
}

.tech-explain {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

/* Comparison Card (Large) — THE HOOK */
.game-comparison {
  background: linear-gradient(135deg, rgba(51, 225, 255, 0.15) 0%, rgba(236, 95, 192, 0.12) 100%);
  border: 2px solid var(--c-magenta);
  border-radius: 18px;
  margin: 60px 0;
  overflow: hidden;
  position: relative;
}

.game-comparison::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(51, 225, 255, 0.1) 0%, transparent 70%);
  animation: drift2 8s ease-in-out infinite;
  pointer-events: none;
}

.comparison-card {
  padding: 48px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.comparison-quote {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  margin: 0;
  line-height: 1.9;
  font-weight: 500;
}

.comparison-quote::before {
  content: '✦';
  font-size: 2.2rem;
  color: var(--c-magenta);
  display: block;
  margin-bottom: 16px;
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(236, 95, 192, 0.6));
}

/* Final CTA — CALL TO ACTION PREMIUM */
.game-final-cta {
  background: linear-gradient(180deg, rgba(51, 225, 255, 0.12) 0%, rgba(236, 95, 192, 0.08) 100%);
  border: 1.5px solid rgba(51, 225, 255, 0.3);
  border-radius: 18px;
  margin: 80px 0 0 0;
  position: relative;
  overflow: hidden;
}

.game-final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(51, 225, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.cta-final {
  text-align: center;
  padding: 56px 32px;
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  margin: 0 0 16px 0;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-final p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 40px 0;
  line-height: 1.8;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Lightbox Modal — CINEMA */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  width: 90vw;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  animation: zoomIn 0.3s var(--ease);
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(51, 225, 255, 0.2);
  color: var(--c-cyan);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(51, 225, 255, 0.4);
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(51, 225, 255, 0.3);
  background: rgba(5, 6, 13, 0.6);
  color: var(--c-cyan);
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(51, 225, 255, 0.2);
  box-shadow: 0 0 20px rgba(51, 225, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--display);
  background: rgba(5, 6, 13, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(51, 225, 255, 0.2);
  backdrop-filter: blur(10px);
}

.lightbox-counter .current {
  color: var(--c-cyan);
  font-weight: 700;
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

/* Responsive adjustments for game detail */
@media (max-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-stat-card {
    padding: 10px;
    font-size: 0.9rem;
  }

  .journey-timeline::before {
    left: -12px;
  }

  .journey-step {
    padding-left: 28px;
  }

  .journey-step-marker {
    left: -14px;
    width: 18px;
    height: 18px;
  }

  .features-showcase {
    grid-template-columns: 1fr;
  }

  .stats-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-quote {
    font-size: 1.1rem;
  }

  .final-cta-buttons {
    flex-direction: column;
  }

  .final-cta-buttons .btn {
    width: 100%;
  }
}

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