/* ============================================================
   DOPO STUDIOS — Brand stylesheet
   Play. Then dopo.
   Accent (Magenta / primary): #FF2E9A
   Accent (Purple / alt):       #8000A3
   Ink:  #0B0B0F   Paper: #FFFFFF
   Display: Rajdhani   Body: Poppins
   ============================================================ */

:root {
  --magenta: #FF2E9A;
  --magenta-soft: #ff5cb0;
  --purple: #8000A3;
  --purple-soft: #b23fd6;
  --ink: #0B0B0F;
  --ink-2: #131319;
  --ink-3: #1b1b24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --paper: #FFFFFF;
  --muted: #9a9aa8;
  --muted-2: #6c6c7a;

  --accent: var(--magenta);
  --accent-soft: var(--magenta-soft);

  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;

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

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: #ececef;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--magenta); color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.h-section {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 18px 0 22px;
}

p.lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 46, 154, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 46, 154, 0.5); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }

/* ---------- Logo lockup ---------- */
.lockup { display: inline-flex; align-items: center; gap: 12px; }
.lockup__mark { width: 34px; height: auto; }
.lockup__type { display: inline-flex; align-items: center; gap: 8px; }
.lockup__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: #fff;
  line-height: 1;
}
.lockup__studios {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  color: #fff;
  background: var(--accent);
  padding: 4px 8px 3px;
  border-radius: 5px;
  line-height: 1;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #cfcfd6;
  transition: color .25s var(--ease);
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; color: #fff;
}
.nav__toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__bg img,
.hero__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero__video { position: absolute; inset: 0; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 75% 40%, rgba(11,11,15,0) 0%, rgba(11,11,15,0.7) 55%, var(--ink) 100%),
    linear-gradient(180deg, rgba(11,11,15,0.6) 0%, rgba(11,11,15,0) 30%, var(--ink) 100%);
}
.hero__glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  left: -12vw; top: 8vh;
  background: radial-gradient(circle, rgba(255,46,154,0.28) 0%, rgba(255,46,154,0) 65%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero__tag {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(3.2rem, 10vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #d3d3db;
  max-width: 52ch;
  margin-bottom: 38px;
  font-weight: 300;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll .line { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--ink-2);
}
.marquee__track {
  display: flex; gap: 40px; width: max-content;
  animation: scroll-x 28s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #35353f;
  display: inline-flex; align-items: center; gap: 40px;
}
.marquee span b { color: var(--accent); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Generic section spacing ---------- */
.pad { padding: 120px 0; }
.pad-sm { padding: 80px 0; }

/* ---------- About / loop ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about__copy p { color: var(--muted); margin-top: 18px; }
.loop-visual {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,46,154,0.14), rgba(255,46,154,0) 60%),
    var(--ink-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.loop-visual img { width: 46%; filter: drop-shadow(0 0 40px rgba(255,46,154,0.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(-8px)} 50%{transform:translateY(8px)} }

/* ---------- Stat bar ---------- */
.statbar { background: var(--ink-2); border-bottom: 1px solid var(--line); }
.statbar .stats { border-top: none; border-bottom: none; }

/* ---------- Featured game ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
}
.featured__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
}
.featured__media img { width: 100%; height: 100%; object-fit: cover; }
.featured__badge {
  position: absolute; top: 18px; left: 18px;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700;
  background: var(--accent); color: #fff;
  padding: 6px 12px; border-radius: 999px;
}
.featured__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  text-transform: uppercase; margin-bottom: 16px;
}
.featured__copy p { color: var(--muted); margin-bottom: 18px; }
.featured__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.featured__list li {
  color: #d0d0d8; font-size: 0.95rem;
  padding-left: 26px; position: relative;
}
.featured__list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 44px 8px; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: #fff;
  line-height: 1;
}
.stat__num span { color: var(--accent); }
.stat__label { color: var(--muted); font-size: 0.85rem; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- Games ---------- */
.games__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 48px; }
.games__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.game {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.game:hover { transform: translateY(-8px); border-color: var(--accent); }
.game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.game:hover img { transform: scale(1.06); }
.game__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,15,0) 40%, rgba(11,11,15,0.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
}
.game__tag {
  align-self: flex-start;
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700;
  background: rgba(255,46,154,0.16); color: var(--magenta-soft);
  padding: 5px 10px; border-radius: 999px; margin-bottom: auto;
}
.game__name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; }
.game__meta { color: var(--muted); font-size: 0.82rem; }

/* ---------- Publishing / features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.feature {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.feature:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--ink-3); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255,46,154,0.12);
  color: var(--accent);
  margin-bottom: 22px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.35rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; counter-reset: step; }
.step { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; }
.step__n { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--accent); line-height: 1; }
.step h3 { font-size: 1.1rem; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 80px 40px;
  text-align: center;
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(255,46,154,0.35), rgba(255,46,154,0) 60%),
    linear-gradient(160deg, #1a0b16, var(--ink));
  border: 1px solid var(--line-strong);
}
.cta h2 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 18px; }
.cta p { color: var(--muted); max-width: 46ch; margin: 0 auto 34px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Store badges ---------- */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  background: #fff; color: var(--ink);
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.store-badge svg { flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: #555; }
.store-badge strong { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer__brand p { color: var(--muted); font-size: 0.9rem; margin-top: 20px; max-width: 32ch; }
.footer__col h4 { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer__col a { display: block; color: #c8c8d0; font-size: 0.92rem; padding: 6px 0; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 26px; flex-wrap: wrap; }
.footer__bottom p { color: var(--muted-2); font-size: 0.82rem; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: #c8c8d0; transition: .3s var(--ease); }
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.footer__social svg { width: 17px; height: 17px; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 150px 0 60px; border-bottom: 1px solid var(--line); background: radial-gradient(80% 120% at 20% 0%, rgba(255,46,154,0.12), rgba(255,46,154,0) 60%); }
.legal-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.legal-hero p { color: var(--muted); margin-top: 14px; }
.legal-body { padding: 70px 0 120px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.legal-toc a { display: block; color: #b7b7c0; font-size: 0.88rem; padding: 7px 0; border-left: 2px solid transparent; padding-left: 14px; margin-left: -14px; transition: .25s var(--ease); }
.legal-toc a:hover { color: #fff; border-color: var(--accent); }
.legal-content h2 { font-size: 1.6rem; margin: 46px 0 16px; color: #fff; scroll-margin-top: 100px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; text-transform: none; letter-spacing: 0; margin: 26px 0 10px; color: #fff; }
.legal-content p, .legal-content li { color: #c0c0c9; font-size: 0.96rem; margin-bottom: 14px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--accent); }
.legal-content strong { color: #fff; }
.legal-note { background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 20px 24px; margin: 24px 0; }
.legal-note p { margin: 0; font-size: 0.9rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .games__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .featured { grid-template-columns: 1fr; gap: 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .legal-toc { position: static; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 8px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(11,11,15,0.97); backdrop-filter: blur(16px);
    padding: 24px; border-bottom: 1px solid var(--line);
  }
  .nav.open .nav__links a { padding: 10px 0; font-size: 1.05rem; }
  .pad { padding: 80px 0; }
  .games__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .stat { padding: 30px 8px; }
  .cta { padding: 56px 22px; }
}

/* ---------- Purple colourway (add class="theme-purple" to <body>) ---------- */
body.theme-purple {
  --accent: var(--purple);
  --accent-soft: var(--purple-soft);
}

/* ============================================================
   ANIMATION & POLISH LAYER
   ============================================================ */

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--magenta), var(--purple-soft));
  z-index: 200; box-shadow: 0 0 12px var(--accent);
  transition: width .1s linear;
}

/* ---- Film grain texture ---- */
.grain {
  position: fixed; inset: 0; z-index: 190; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---- Language switch ---- */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 3px; gap: 2px; background: rgba(255,255,255,0.03);
}
.lang-switch button {
  font-family: var(--font-body); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.06em; color: var(--muted);
  background: none; border: none; cursor: pointer;
  padding: 5px 11px; border-radius: 999px; transition: all .25s var(--ease);
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: var(--accent); color: #fff; }

/* ---- Hero aurora blobs ---- */
.aurora { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.aurora__blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  mix-blend-mode: screen;
}
.aurora .a1 { width: 46vw; height: 46vw; left: -8vw; top: 4vh; background: radial-gradient(circle, var(--magenta), transparent 70%); animation: drift1 18s ease-in-out infinite; }
.aurora .a2 { width: 40vw; height: 40vw; right: -6vw; top: 18vh; background: radial-gradient(circle, var(--purple), transparent 70%); animation: drift2 22s ease-in-out infinite; }
.aurora .a3 { width: 34vw; height: 34vw; left: 34vw; bottom: -12vh; background: radial-gradient(circle, #ff2e9a, transparent 70%); opacity: .3; animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(6vw,4vh) scale(1.15)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-5vw,5vh) scale(1.1)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(3vw,-4vh) scale(1.2)} }

/* ---- Hero perspective grid floor ---- */
.grid-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45vh; z-index: 1;
  pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255,46,154,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,46,154,.35) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(340px) rotateX(68deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 92%);
  animation: gridmove 8s linear infinite;
}
@keyframes gridmove { to { background-position: 0 46px, 0 0; } }

/* ---- Hero entrance ---- */
.hero__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3.2rem, 10vw, 8rem); line-height: 0.92; margin-bottom: 24px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent { color: var(--accent); }

.anim-up { opacity: 0; transform: translateY(40px); }
.hero__title .line.anim-up > span { opacity: 0; transform: translateY(110%); display: inline-block; }
.loaded .anim-up { animation: heroUp .9s var(--ease) forwards; }
.loaded .hero__title .line.anim-up > span { animation: heroClip 1s var(--ease) forwards; }
.loaded .d1 { animation-delay: .15s } .loaded .d1 > span { animation-delay: .15s }
.loaded .d2 { animation-delay: .28s } .loaded .d2 > span { animation-delay: .28s }
.loaded .d3 { animation-delay: .5s }
.loaded .d4 { animation-delay: .65s }
@keyframes heroUp { to { opacity: 1; transform: none; } }
@keyframes heroClip { to { opacity: 1; transform: none; } }

/* ---- Gradient shimmer text ---- */
.gradient-text {
  background: linear-gradient(100deg, var(--magenta) 0%, #ff8fca 30%, var(--purple-soft) 55%, var(--magenta) 80%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* ---- Reveal (directional + stagger via JS) ---- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Section glow accents ---- */
.section-glow {
  position: absolute; top: -10%; right: -5%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(128,0,163,.22), transparent 65%);
  filter: blur(30px); pointer-events: none; z-index: 0;
}
#why { position: relative; overflow: hidden; }

/* ---- Tilt (JS-driven) ---- */
.tilt { transform-style: preserve-3d; transition: transform .3s var(--ease); will-change: transform; }

/* ---- Featured shine sweep ---- */
.featured__media { position: relative; }
.featured__shine {
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.featured__media:hover .featured__shine { animation: sweep 1.1s var(--ease); }
@keyframes sweep { to { left: 130%; } }

/* ---- Buttons: shine sweep on hover ---- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn:hover::after { left: 130%; }

/* ---- Feature card sheen ---- */
.feature { position: relative; overflow: hidden; }
.feature::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(255,46,154,.5), transparent 40%);
  -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 .4s var(--ease);
}
.feature:hover::before { opacity: 1; }
.feature__icon svg { transition: transform .4s var(--ease); }
.feature:hover .feature__icon svg { transform: scale(1.12) rotate(-6deg); }

/* ---- Step number gradient ---- */
.step { overflow: hidden; }
.step::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--magenta), var(--purple-soft));
  transition: width .5s var(--ease);
}
.step:hover::after { width: 100%; }
.step:hover .step__n { text-shadow: 0 0 24px var(--accent); }
.step__n { transition: text-shadow .4s var(--ease); }

/* ---- Game card foot + per-game store badges ---- */
.game { display: block; }
.game__foot { display: flex; flex-direction: column; }
.game__stores { display: flex; gap: 8px; margin-top: 12px; opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.game:hover .game__stores { opacity: 1; transform: none; }
.mini-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.95); color: #0b0b0f;
  border-radius: 8px; padding: 5px 9px; font-size: .62rem; font-weight: 600;
  letter-spacing: .01em; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.mini-badge svg { width: 13px; height: 13px; flex: none; }
.mini-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.5); }
.game--cta .game__meta { color: var(--magenta-soft); }

/* ---- Store row wrapper ---- */
.store-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Nav lockup mark subtle spin on hover ---- */
.lockup__mark { transition: transform .6s var(--ease), filter .4s var(--ease); }
.lockup:hover .lockup__mark { transform: rotate(180deg); filter: drop-shadow(0 0 10px var(--accent)); }

/* ---- Loop visual: rotating conic ring ---- */
.loop-visual::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: conic-gradient(from 0deg, transparent, var(--magenta), transparent 40%);
  opacity: .35; animation: spin 8s linear infinite;
}
.loop-visual::after {
  content: ""; position: absolute; inset: 1px; border-radius: inherit; background: var(--ink-2);
}
.loop-visual img { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a2a34; border-radius: 10px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .anim-up { opacity: 1 !important; transform: none !important; }
  .hero__title .line.anim-up > span { opacity: 1 !important; transform: none !important; }
}

/* ---- Mobile: keep language switch visible ---- */
@media (max-width: 720px) {
  .nav__cta { display: flex !important; }
  .nav__cta .btn { display: none; }
  .lang-switch { display: inline-flex; }
  .grid-floor { height: 30vh; }
  .game__stores { opacity: 1; transform: none; }
}

/* ============================================================
   LIGHT SECTIONS + MORE SCROLL MOTION
   ============================================================ */

/* ---- Light (white) themed sections ---- */
.section--light {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.section--light .h-section,
.section--light h2, .section--light h3, .section--light h4 { color: var(--ink); }
.section--light p,
.section--light p.lead { color: #55555f; }
.section--light .eyebrow { color: var(--purple); }
.section--light .eyebrow::before { background: var(--purple); }

/* light-mode step cards */
.section--light .step {
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  box-shadow: 0 10px 30px rgba(17,17,25,.05);
}
.section--light .step h3 { color: var(--ink); }
.section--light .step p { color: #6a6a74; }
.section--light .step__n { color: var(--magenta); }
.section--light .step:hover { box-shadow: 0 18px 44px rgba(255,46,154,.16); transform: translateY(-4px); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }

/* light-mode game tiles keep dark art; refine surround + shadow */
.section--light .game { box-shadow: 0 16px 40px rgba(17,17,25,.12); border-color: rgba(0,0,0,.06); }
.section--light .game:hover { border-color: var(--magenta); box-shadow: 0 24px 60px rgba(255,46,154,.22); }
.section--light .game__meta,
.section--light .game__name { color: #fff; }              /* text sits over dark overlay */
.section--light .game--cta .game__meta { color: var(--magenta-soft); }
.section--light .mini-badge { border: 1px solid rgba(0,0,0,.08); }

/* ---- Accent moving marquee band ---- */
.marquee--accent {
  background: var(--magenta);
  border: none;
  padding: 16px 0;
}
.marquee--accent .marquee__track { animation-duration: 22s; gap: 0; }
.marquee--accent span {
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  gap: 0;
  padding-right: 0;
}
.marquee--accent b { color: rgba(255,255,255,.55); margin: 0 26px; font-size: .8em; }

/* ---- Directional scroll reveals ---- */
.reveal.from-left  { transform: translateX(-46px); }
.reveal.from-right { transform: translateX(46px); }
.reveal.from-left.in,
.reveal.from-right.in { transform: none; }

/* ---- Parallax base ---- */
[data-parallax] { will-change: transform; }

/* ---- Hero fades/lifts as you scroll (set via JS var) ---- */
.hero__inner { transition: none; }

/* keep parallaxed cover-images edge-safe */
.featured__media img[data-parallax] { height: 128%; top: -14%; position: relative; }

/* ============================================================
   LANGUAGE PICKER · COMMUNITY · BIG FOOTER · SOCIAL
   ============================================================ */

/* ---- Language dropdown picker ---- */
.lang-picker { position: relative; }
.lang-picker__btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-strong);
  color: #dcdce2; padding: 8px 12px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .78rem; letter-spacing: .04em;
  cursor: pointer; transition: border-color .25s var(--ease), color .25s var(--ease);
}
.lang-picker__btn:hover { border-color: #fff; color: #fff; }
.lang-picker__chev { opacity: .7; transition: transform .25s var(--ease); }
.lang-picker.open .lang-picker__chev { transform: rotate(180deg); }
.lang-picker__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 156px;
  background: rgba(18,18,24,.98); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  box-shadow: 0 22px 54px rgba(0,0,0,.55); z-index: 130;
}
.lang-picker.open .lang-picker__menu { opacity: 1; visibility: visible; transform: none; }
.lang-picker__menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; background: none; border: none; color: #cfcfd6;
  font-family: var(--font-body); font-size: .9rem; font-weight: 500;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s;
}
.lang-picker__menu button:hover { background: rgba(255,255,255,.06); color: #fff; }
.lang-picker__menu button.active { color: #fff; }
.lang-picker__menu button.active::after { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---- Community / social section ---- */
.community__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.community__panel {
  background: var(--ink); border-radius: 26px; padding: 32px;
  border: 1px solid rgba(0,0,0,.06); box-shadow: 0 34px 80px rgba(17,17,25,.20);
}
.community__label {
  display: block; font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; font-size: .7rem;
  color: var(--muted); margin-bottom: 20px;
}
.social-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.social-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 1 / 1; background: var(--ink-3); border-radius: 20px; padding: 22px;
  color: var(--magenta-soft); transition: transform .35s var(--ease), background .35s var(--ease);
}
.social-tile--wide { grid-column: 1 / -1; aspect-ratio: auto; min-height: 132px; flex-direction: row; align-items: center; justify-content: space-between; }
.social-tile svg { width: 46px; height: 46px; position: relative; z-index: 1; }
.social-tile--wide svg { width: 58px; height: 58px; }
.social-tile__handle { font-family: var(--font-body); font-weight: 600; font-size: .82rem; color: #fff; position: relative; z-index: 1; }
.social-tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 72% 18%, rgba(255,46,154,.22), transparent 62%); opacity: 0; transition: opacity .35s var(--ease); }
.social-tile:hover { transform: translateY(-5px); background: #20202a; }
.social-tile:hover::after { opacity: 1; }

/* ---- Big footer ---- */
.footer--big { background: var(--ink-2); border-top: 1px solid var(--line); padding: 84px 0 40px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__wordmark { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer__mark { width: 46px; height: auto; }
.footer__word { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: .06em; color: #fff; line-height: 1; }
.footer__studios { font-family: var(--font-display); font-weight: 700; font-size: clamp(.9rem, 1.6vw, 1.1rem); letter-spacing: .28em; color: #fff; background: var(--accent); padding: 6px 12px 5px; border-radius: 6px; line-height: 1; }
.footer__slogan { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin: 22px 0 26px; -webkit-text-stroke: 1px rgba(255,255,255,.38); color: transparent; }
.footer__badges { display: flex; gap: 12px; flex-wrap: wrap; }
.footer--big .footer__col h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px; }
.footer--big .footer__col a { display: block; color: #c8c8d0; font-size: .92rem; padding: 7px 0; transition: color .25s var(--ease); }
.footer--big .footer__col a:hover { color: var(--accent); }
.social-row { display: flex !important; align-items: center; gap: 12px; }
.social-row__ic { width: 34px; height: 34px; border-radius: 9px; background: var(--ink-3); display: grid; place-items: center; color: var(--magenta-soft); flex: none; transition: background .25s var(--ease), color .25s var(--ease); }
.social-row__ic svg { width: 17px; height: 17px; }
.social-row:hover .social-row__ic { background: var(--accent); color: #fff; }
.footer--big .footer__bottom { display: flex; align-items: center; gap: 24px; padding-top: 28px; border: none; flex-wrap: wrap; }
.footer__email { color: #fff; font-weight: 600; font-size: .95rem; transition: color .25s var(--ease); }
.footer__email:hover { color: var(--accent); }
.footer--big .footer__bottom p { color: var(--muted-2); font-size: .82rem; margin-left: auto; }

@media (max-width: 1000px) {
  .community__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer--big .footer__bottom p { margin-left: 0; }
}

/* ============================================================
   RESPONSIVE REGRESSION FIXES
   ============================================================ */
html { overflow-x: hidden; }
body { max-width: 100%; }

/* Small phones: scale down oversized display type so nothing clips */
@media (max-width: 560px) {
  .hero h1, .hero__title { font-size: clamp(1.9rem, 9vw, 3.2rem) !important; line-height: 1.02; }
  .hero__sub { font-size: 1rem; }
  .h-section { font-size: clamp(1.85rem, 7.6vw, 2.6rem); }
  .featured__title { font-size: clamp(1.7rem, 7vw, 2.6rem); }
  .cta h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .stat__num { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .stat__label { font-size: .78rem; }
  .footer__word { font-size: clamp(2rem, 9vw, 3rem); }
  .footer__slogan { font-size: clamp(1.4rem, 6vw, 2.2rem); }
  .lang-picker__btn { padding: 7px 10px; }
  .nav__inner { height: 66px; }
  .marquee--accent span { font-size: .95rem; }
}

/* Extra-small: tighten container gutters a touch */
@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .hero h1, .hero__title { font-size: clamp(1.95rem, 10vw, 3rem) !important; }
}

/* Collapse nav to hamburger earlier so the tablet range (721–900px) doesn't overlap */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: flex !important; }
  .nav__cta .btn { display: none; }
  .lang-picker { display: inline-flex; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 8px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11,11,15,0.97); backdrop-filter: blur(16px);
    padding: 22px 24px; border-bottom: 1px solid var(--line);
  }
  .nav.open .nav__links a { padding: 10px 0; font-size: 1.05rem; }
}
