/* ============ NEXUS — cinematic gaming site ============ */
:root {
  --bg: #050507;
  --bg2: #0a0a0f;
  --text: #f2f2f5;
  --muted: #8b8b96;
  --ps: #00a2ff;
  --xb: #16d970;
  --pc: #b86bff;
  --glow: #00e0ff;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s ease, visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: .35em; margin-bottom: 24px; text-align: center;
  background: linear-gradient(90deg, var(--ps), var(--glow), var(--pc));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .55; } }
.loader-bar { width: 220px; height: 2px; background: #1c1c24; border-radius: 2px; overflow: hidden; }
.loader-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--ps), var(--glow)); transition: width .3s ease; }

/* ---------- Background canvas ---------- */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

/* ---------- Glowing path ---------- */
.glow-path {
  position: absolute; top: 0; left: 0; width: 100%; z-index: 1;
  pointer-events: none; overflow: visible;
}
#pathLine {
  stroke: rgba(0, 224, 255, .9); stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(0,224,255,.9)) drop-shadow(0 0 18px rgba(0,162,255,.5));
}
#pathGlow {
  stroke: rgba(0, 224, 255, .12); stroke-width: 22;
  filter: blur(8px);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  background: linear-gradient(to bottom, rgba(5,5,7,.85), transparent);
  backdrop-filter: blur(2px);
}
.nav-logo { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; letter-spacing: .25em; cursor: pointer; }
.dot { color: var(--glow); }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  transition: width .35s ease;
}
.nav-links a[data-color="ps"]:hover { color: var(--ps); } .nav-links a[data-color="ps"]:hover::after { width: 100%; background: var(--ps); }
.nav-links a[data-color="xb"]:hover { color: var(--xb); } .nav-links a[data-color="xb"]:hover::after { width: 100%; background: var(--xb); }
.nav-links a[data-color="pc"]:hover { color: var(--pc); } .nav-links a[data-color="pc"]:hover::after { width: 100%; background: var(--pc); }
/* Home button — always reads as the way back to the locked splash */
.nav-home { color: var(--glow); font-weight: 700; }
.nav-home:hover { color: #fff; } .nav-home:hover::after { width: 100%; background: var(--glow); }
/* scroll-spy active state for the top nav (replaces the old left side rail) */
.nav-links a.active { color: var(--text); } .nav-links a.active::after { width: 100%; background: currentColor; }
.nav-links a[data-color="ps"].active { color: var(--ps); }
.nav-links a[data-color="xb"].active { color: var(--xb); }
.nav-links a[data-color="pc"].active { color: var(--pc); }
.nav-links a[data-color="home"].active { color: var(--glow); }
.nav-tag { font-size: .68rem; letter-spacing: .22em; color: var(--muted); }

/* ---------- Custom scroll rail (right side) ---------- */
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; display: none; }
.scroll-rail {
  position: fixed; right: 30px; top: 50%; transform: translateY(-50%);
  height: 42vh; width: 20px; z-index: 90;
  display: flex; justify-content: center; cursor: pointer;
  transition: opacity .5s ease, visibility .5s;
}
.scroll-rail.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.scroll-rail .rail-track {
  width: 2px; height: 100%; border-radius: 2px;
  background: rgba(255,255,255,.12);
}
.scroll-rail .rail-thumb {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 4px; height: 18%; top: 0; border-radius: 4px;
  background: linear-gradient(180deg, var(--ps), var(--glow));
  box-shadow: 0 0 10px rgba(0,224,255,.85), 0 0 26px rgba(0,162,255,.45);
  transition: box-shadow .3s;
}
.scroll-rail:hover .rail-thumb { box-shadow: 0 0 14px rgba(0,224,255,1), 0 0 36px rgba(0,162,255,.65); }
@media (max-width: 900px) { .scroll-rail { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; overflow: hidden;
}
.scene-stage {
  position: absolute; inset: -6%;
  will-change: transform;
}
.scene-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
  transform: scale(1.06);
  will-change: opacity, transform; /* keep each scene layer composited so the crossfade never repaints */
}
.scene-bg.active { opacity: .55; transform: scale(1); transition: opacity 1.4s ease, transform 6s ease; }
.scene-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0; pointer-events: none;
  z-index: 3;
}
.scene-video.pc { filter: brightness(1.7) saturate(1.7); }
/* color theming per scene */
.hero[data-active="ps"] .hero-kicker span { color: var(--ps); }
.hero[data-active="xb"] .hero-kicker span { color: var(--xb); }
.hero[data-active="pc"] .hero-kicker span { color: var(--pc); }
.hero[data-active="ps"] .cta-btn:hover { border-color: var(--ps); box-shadow: 0 0 30px rgba(0,162,255,.3); }
.hero[data-active="xb"] .cta-btn:hover { border-color: var(--xb); box-shadow: 0 0 30px rgba(22,217,112,.3); }
.hero[data-active="pc"] .cta-btn:hover { border-color: var(--pc); box-shadow: 0 0 30px rgba(184,107,255,.3); }
.hero-title .accent.ps { background: linear-gradient(90deg, #0070d1, var(--ps), #7adcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .accent.xb { background: linear-gradient(90deg, #0e9e52, var(--xb), #8effc1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .accent.pc { background: linear-gradient(90deg, #7d3cff, var(--pc), #e0b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(5,5,7,.92) 95%),
              linear-gradient(to bottom, rgba(5,5,7,.4), transparent 30%, transparent 65%, var(--bg));
}
.hero-content { position: relative; text-align: center; padding: 0 24px 70px; max-width: 1100px; }
.hero-kicker span {
  font-size: .75rem; letter-spacing: .45em; color: var(--glow);
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3rem, 10vw, 8.5rem); line-height: .95;
  margin: 28px 0; text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; transform: translateY(110%); }
.hero-title .accent {
  background: linear-gradient(90deg, var(--ps) 0%, var(--glow) 45%, var(--pc) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: clamp(.95rem, 1.6vw, 1.15rem); line-height: 1.8; opacity: 0; }
.hero-cta { margin-top: 44px; opacity: 0; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; cursor: pointer; font-family: var(--font-body);
  color: var(--text); text-decoration: none;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 16px 34px; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase;
  transition: all .4s ease; position: relative; overflow: hidden;
}
.cta-btn:hover { border-color: var(--glow); box-shadow: 0 0 30px rgba(0,224,255,.25), inset 0 0 20px rgba(0,224,255,.08); }
.cta-btn .arrow { transition: transform .3s; }
.cta-btn:hover .arrow { transform: translateY(4px); }

.scroll-hint {
  position: absolute; bottom: 30px; right: 34px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase;
  pointer-events: none;
}
/* While the home splash is locked, scrolling does nothing — hide the scroll affordances
   and the rail so nothing implies the page can scroll */
body.scroll-locked .scroll-hint,
body.scroll-locked .scroll-rail { opacity: 0; visibility: hidden; pointer-events: none; }
/* Hard stop: overflow:hidden on the root makes the page truly unscrollable by ANY input
   (wheel, touch, keys, scrollbar) — the wheel/touch/key handlers are belt-and-suspenders */
html.scroll-locked, html.scroll-locked body { overflow: hidden; height: 100%; }
@media (max-height: 760px) {
  .scroll-hint { display: none; }
  .hero-content { padding-top: 80px; padding-bottom: 30px; }
  .hero-title { font-size: clamp(2.6rem, 8vw, 6rem); }
}
.mouse { width: 22px; height: 36px; border: 1.5px solid var(--muted); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 3px; height: 7px; background: var(--glow); border-radius: 2px; animation: wheel 1.6s ease infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ---------- Stats ---------- */
.stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  max-width: 1200px; margin: 0 auto; padding: 90px 24px;
}
.stat { text-align: center; padding: 30px 10px; border-left: 1px solid rgba(255,255,255,.07); }
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(180deg, #fff, #777);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--muted); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; margin-top: 10px; }

/* ---------- Platform sections ---------- */
.platform {
  position: relative; z-index: 2;
  padding: 140px 6vw 100px;
  min-height: 70vh;
  overflow: hidden;
}
.platform-bg {
  position: absolute; inset: -8% 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
  will-change: transform;
}
.platform-bg.loaded { opacity: .3; }
.platform::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}
.platform-head { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; }
.platform-index {
  font-family: var(--font-display); font-size: .9rem; letter-spacing: .4em;
  margin-bottom: 18px; opacity: .7;
}
.platform-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3rem, 9vw, 7.5rem); line-height: .95; text-transform: uppercase;
}
.pt-word { display: inline-block; }
.platform-sub { color: var(--muted); margin: 22px 0 36px; font-size: 1.05rem; max-width: 560px; line-height: 1.7; }

/* Scroll-through reveal: every platform's title/sub/button rises in on EVERY pass,
   driven by IntersectionObserver — survives scene switches and display toggles */
.platform-head .rv {
  opacity: 0; transform: translateY(46px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--rvd, 0s);
}
.platform.in-view .platform-head .rv { opacity: 1; transform: translateY(0); }

.ps-theme .platform-index, .ps-theme .nav-accent { color: var(--ps); }
.xb-theme .platform-index { color: var(--xb); }
.pc-theme .platform-index { color: var(--pc); }
.ps-theme .platform-title { text-shadow: 0 0 80px rgba(0,162,255,.35); }
.xb-theme .platform-title { text-shadow: 0 0 80px rgba(22,217,112,.35); }
.pc-theme .platform-title { text-shadow: 0 0 80px rgba(184,107,255,.35); }

.platform-toggle {
  background: none; color: var(--text); cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 14px 30px; font-family: var(--font-body);
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  transition: all .35s ease;
}
.ps-theme .platform-toggle:hover { border-color: var(--ps); box-shadow: 0 0 24px rgba(0,162,255,.3); }
.xb-theme .platform-toggle:hover { border-color: var(--xb); box-shadow: 0 0 24px rgba(22,217,112,.3); }
.pc-theme .platform-toggle:hover { border-color: var(--pc); box-shadow: 0 0 24px rgba(184,107,255,.3); }
.platform-toggle .chev { display: inline-block; transition: transform .35s; margin-left: 8px; }
.platform-toggle.open .chev { transform: rotate(180deg); }

/* ---------- Games grid ---------- */
.games-grid {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .9s cubic-bezier(.22,1,.36,1), opacity .7s ease, margin .5s;
}
.games-grid.open { max-height: 4000px; opacity: 1; margin-top: 56px; }

.game-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: rgba(14,14,20,.75); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  transform: translateY(40px); opacity: 0;
  transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .7s, border-color .4s, box-shadow .4s;
  cursor: pointer;
}
.games-grid.open .game-card { transform: translateY(0); opacity: 1; }
.ps-theme .game-card:hover { border-color: var(--ps); box-shadow: 0 18px 50px rgba(0,162,255,.22); }
.xb-theme .game-card:hover { border-color: var(--xb); box-shadow: 0 18px 50px rgba(22,217,112,.22); }
.pc-theme .game-card:hover { border-color: var(--pc); box-shadow: 0 18px 50px rgba(184,107,255,.22); }

.card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1), filter .5s; filter: saturate(.85); }
.game-card:hover .card-thumb img { transform: scale(1.07); filter: saturate(1.1); }
.play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25); opacity: 0; transition: opacity .4s;
}
.game-card:hover .play-badge { opacity: 1; }
.play-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff;
  animation: ringPulse 2s ease infinite;
}
@keyframes ringPulse { 50% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.25); } }

.card-body { padding: 22px 24px 26px; }
.card-event { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 10px; opacity: .85; }
.ps-theme .card-event { color: var(--ps); }
.xb-theme .card-event { color: var(--xb); }
.pc-theme .card-event { color: var(--pc); }
.card-title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.25; }
.card-dev { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.card-date {
  font-size: .78rem; letter-spacing: .12em;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15); color: var(--text);
}
.card-date.out { border-color: rgba(22,217,112,.5); color: var(--xb); }
.card-watch { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.game-card:hover .card-watch { color: #fff; }

/* ---------- Full-screen platform showcase ---------- */
.showcase {
  position: fixed; inset: 0; z-index: 400;
  background: #030305;
  visibility: hidden; opacity: 0;
  transition: opacity .7s ease, visibility .7s;
}
.showcase.open { visibility: visible; opacity: 1; }
.showcase-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; mix-blend-mode: screen; opacity: .9;
  pointer-events: none;
}
.showcase.pc .showcase-video { filter: brightness(1.6) saturate(1.6); }
.showcase-tint {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, transparent 0%, rgba(3,3,5,.72) 60%, rgba(3,3,5,.94) 100%);
  pointer-events: none;
}
.showcase-scroll {
  position: relative; height: 100%; overflow-y: auto;
  padding: 90px 6vw 70px;
  scrollbar-width: thin;
}
.showcase-close {
  position: fixed; top: 26px; right: 30px; z-index: 5;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.35); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  backdrop-filter: blur(6px);
  transition: all .3s;
}
.showcase-close:hover { transform: rotate(90deg); border-color: #fff; box-shadow: 0 0 22px rgba(255,255,255,.3); }
.showcase-head { text-align: center; max-width: 1100px; margin: 0 auto 54px; }
.showcase-brand {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 7.5vw, 6rem); letter-spacing: .06em; line-height: 1;
}
.showcase.ps .showcase-brand { text-shadow: 0 0 60px rgba(0,162,255,.6); }
.showcase.xb .showcase-brand { text-shadow: 0 0 60px rgba(22,217,112,.6); }
.showcase.pc .showcase-brand { text-shadow: 0 0 60px rgba(184,107,255,.6); }
.showcase-divider {
  display: flex; align-items: center; gap: 18px; justify-content: center;
  margin: 20px 0 12px;
}
.showcase-divider::before, .showcase-divider::after {
  content: ''; height: 1px; flex: 1; max-width: 180px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5));
}
.showcase-divider::after { background: linear-gradient(90deg, rgba(255,255,255,.5), transparent); }
.showcase-tag { font-size: .78rem; letter-spacing: .4em; text-transform: uppercase; }
.showcase.ps .showcase-tag { color: var(--ps); }
.showcase.xb .showcase-tag { color: var(--xb); }
.showcase.pc .showcase-tag { color: var(--pc); }
.showcase-event { color: var(--muted); font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; }

.showcase-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px;
}
.tile {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(8,8,12,.72); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(36px);
  transition: border-color .35s, box-shadow .35s;
}
.showcase.ps .tile:hover { border-color: var(--ps); box-shadow: 0 14px 44px rgba(0,162,255,.3); }
.showcase.xb .tile:hover { border-color: var(--xb); box-shadow: 0 14px 44px rgba(22,217,112,.3); }
.showcase.pc .tile:hover { border-color: var(--pc); box-shadow: 0 14px 44px rgba(184,107,255,.3); }
.tile-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.tile:hover .tile-thumb img { transform: scale(1.08); }
.tile-num {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.3);
  padding: 4px 12px; border-radius: 6px; backdrop-filter: blur(4px);
}
.showcase.ps .tile-num { color: var(--ps); border-color: rgba(0,162,255,.5); }
.showcase.xb .tile-num { color: var(--xb); border-color: rgba(22,217,112,.5); }
.showcase.pc .tile-num { color: var(--pc); border-color: rgba(184,107,255,.5); }
.tile-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3); opacity: 0; transition: opacity .35s; z-index: 2;
}
.tile:hover .tile-play { opacity: 1; }
.tile-body { padding: 16px 18px 18px; }
.tile-title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.tile-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.tile-date { font-size: .72rem; letter-spacing: .1em; color: var(--muted); }
.tile-date.out { color: var(--xb); }
.tile-watch { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tile:hover .tile-watch { color: #fff; }

.showcase-count {
  text-align: center; margin-top: 50px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.1rem; letter-spacing: .3em; text-transform: uppercase;
}
.showcase.ps .showcase-count { color: var(--ps); }
.showcase.xb .showcase-count { color: var(--xb); }
.showcase.pc .showcase-count { color: var(--pc); }

/* ---------- Video modal ---------- */
.video-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0;
  transition: opacity .45s ease, visibility .45s;
}
.video-modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,3,5,.9); backdrop-filter: blur(10px); }
.modal-box {
  position: relative; width: min(1080px, 92vw);
  transform: scale(.92) translateY(20px); transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.video-modal.open .modal-box { transform: scale(1) translateY(0); }
.modal-frame { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 100px rgba(0,224,255,.15); }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: -48px; right: 0;
  background: none; border: 1px solid rgba(255,255,255,.3); color: #fff;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: .9rem;
  transition: all .3s;
}
.modal-close:hover { border-color: var(--glow); box-shadow: 0 0 18px rgba(0,224,255,.4); transform: rotate(90deg); }
.modal-meta { margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: .85rem; letter-spacing: .08em; }
.modal-meta strong { color: #fff; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .04em; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 2; text-align: center;
  padding: 110px 24px 60px; color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .85rem; line-height: 1.9;
}
.footer-title { font-family: var(--font-display); font-weight: 900; font-size: 2rem; letter-spacing: .3em; color: var(--text); margin-bottom: 18px; }
.footer-fine { font-size: .7rem; opacity: .6; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { padding: 18px 22px; }
  .nav-tag { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; }
  .platform { padding: 100px 24px 80px; }
}
@media (max-width: 540px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .7rem; }
  .games-grid { grid-template-columns: 1fr; }
}
