/* =====================================================================
   JL GAMES DEV · Estilos
   ===================================================================== */

:root {
  --bg: #05070f;
  --bg-2: #080c19;
  --bg-3: #0c1224;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef2fb;
  --muted: #8f9ab3;
  --dim: #5d6782;
  --cyan: #86e8fb;
  --blue: #3f8cff;
  --blue-deep: #1f5fe0;
  --grad: linear-gradient(120deg, #8ae9fb 0%, #5ab8ff 45%, #3f8cff 100%);
  --glow: 0 0 40px rgba(63, 140, 255, 0.35);
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1280px;
  --nav-h: 76px;
  --font-display: 'Orbitron', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1b2542; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-deep); }

/* Noise overlay for a premium filmic feel */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .container { padding: 0 18px; } }

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

.ico { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: middle; }

/* ---------------------------------------------------------------- Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 28px; }
.preloader__logo { width: 120px; animation: pulse 1.6s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(63,140,255,.5)); }
.preloader__bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 40%; background: var(--grad); animation: load 1.1s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(1.06); filter: drop-shadow(0 0 50px rgba(63,140,255,.8)); } }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s, color .35s;
  white-space: nowrap;
  isolation: isolate;
}
.btn .ico { font-size: 18px; }
.btn--primary { background: var(--grad); color: #041026; box-shadow: 0 10px 30px -10px rgba(63,140,255,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(63,140,255,.9), 0 0 0 4px rgba(90,184,255,.15); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 11px; }
.btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }
.btn-play { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: -10px; border-radius: 50%; background: rgba(255,255,255,.12); }
.btn--primary .btn-play { background: rgba(4,16,38,.15); }
.btn-play .ico { font-size: 13px; margin-left: 2px; }

/* ---------------------------------------------------------------- Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .4s, border-color .4s, backdrop-filter .4s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5,7,15,.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 42px; width: auto; transition: filter .3s; }
.nav__logo:hover img { filter: drop-shadow(0 0 14px rgba(90,184,255,.6)); }
.nav__menu { display: flex; align-items: center; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; display: block; padding: 10px 16px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); transition: color .3s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__cta { margin-left: 12px; }
[hidden] { display: none !important; }

/* Language switch */
.lang {
  --i: 0;
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  margin-left: 14px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
}
.lang::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: rgba(134,232,251,.14); border: 1px solid rgba(134,232,251,.35);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--ease);
}
.lang button {
  position: relative; z-index: 1; min-width: 40px; height: 32px; padding: 0 10px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--dim); transition: color .3s;
}
.lang button:hover { color: var(--text); }
.lang button.active { color: var(--cyan); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .3s; }
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 640px) { .nav__logo img { height: 34px; } }
@media (max-width: 900px) {
  .nav-open .nav { transform: none !important; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
  .nav__toggle { display: block; z-index: 2; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    background: rgba(5,7,15,.96); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav-open .nav__menu { opacity: 1; visibility: visible; }
  .nav__links { flex-direction: column; gap: 8px; }
  .nav__links a { font-size: 20px; padding: 12px 20px; }
  .nav__cta { margin: 0; }
  .lang { margin: 0; }
  .lang button { min-width: 56px; height: 40px; font-size: 13px; }
}

/* ---------------------------------------------------------------- Section scaffolding */
.section { position: relative; padding: 140px 0; }
.section--tight { padding: 100px 0; }
@media (max-width: 760px) { .section { padding: 96px 0; } .section--tight { padding: 72px 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-title {
  margin: 18px 0 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 5vw, 58px); line-height: 1.08; letter-spacing: .01em;
  text-transform: uppercase;
}
.section-lead { margin: 22px 0 0; max-width: 620px; color: var(--muted); font-size: 18px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg canvas, .hero__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 45%, transparent 0%, rgba(5,7,15,.35) 70%),
    linear-gradient(180deg, rgba(5,7,15,.5) 0%, transparent 25%, transparent 65%, var(--bg) 100%);
}
.hero.has-video .hero__bg::after { background: linear-gradient(90deg, rgba(5,7,15,.9) 0%, rgba(5,7,15,.4) 60%, rgba(5,7,15,.2) 100%), linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); backdrop-filter: blur(8px);
  font-size: 13px; color: var(--muted);
}
.hero__kicker b { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #041026; font-family: var(--font-display); font-size: 10px; letter-spacing: .15em; }
.hero__title {
  margin: 28px 0 0;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(44px, 7.4vw, 104px); line-height: .98; letter-spacing: -.005em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.loaded .hero__title .line > span { transform: none; }
.hero__sub { margin: 30px 0 0; max-width: 540px; font-size: 19px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.hero__fade { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, .6s); }
.loaded .hero__fade { opacity: 1; transform: none; }

.hero__emblem { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero__emblem img { position: relative; z-index: 2; width: 78%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); animation: float 7s ease-in-out infinite; }
.hero__emblem::before {
  content: ''; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(63,140,255,.45), rgba(134,232,251,.12) 45%, transparent 70%);
  filter: blur(30px); animation: breathe 5s ease-in-out infinite;
}
.hero__ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px solid rgba(134,232,251,.15); }
.hero__ring--2 { inset: -6%; border-style: dashed; border-color: rgba(63,140,255,.14); animation: spin 60s linear infinite; }
.hero__ring--3 { inset: 16%; border-color: rgba(255,255,255,.06); }
.hero__ring::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.hero__ring--1 { animation: spin 24s linear infinite; }
.hero__ring--3 { animation: spin 16s linear infinite reverse; }
.hero__ring--3::after { background: var(--blue); box-shadow: 0 0 18px var(--blue); }
@keyframes float { 50% { transform: translateY(-18px); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 10px; letter-spacing: .35em; color: var(--dim);
}
.hero__scroll i { width: 24px; height: 38px; border: 1.5px solid var(--line-2); border-radius: 14px; position: relative; }
.hero__scroll i::after { content: ''; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--cyan); animation: wheel 2s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__emblem { display: none; }
  .hero__scroll { display: none; }
}

/* ---------------------------------------------------------------- Marquee */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2));
  padding: 22px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 56px; font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 3vw, 34px); text-transform: uppercase; letter-spacing: .08em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22); white-space: nowrap; }
.marquee__item:nth-child(3n+2) { color: var(--text); -webkit-text-stroke: 0; }
.marquee__item::after { content: ''; width: 10px; height: 10px; background: var(--grad); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------------------------------------------------------------- Status badges & platforms */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(5,7,15,.6); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.badge--released { color: #58f0a6; }
.badge--upcoming { color: var(--cyan); }
.badge--development { color: #ffc65c; }
.badge--prototype { color: #c49bff; }
.platforms { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.platforms .ico { font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 12px; border-radius: 999px; font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }

/* ---------------------------------------------------------------- Featured */
.featured { position: relative; padding: 0; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.featured__bg { position: absolute; inset: -8% 0; z-index: -2; }
.featured__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.featured::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,7,15,.95) 0%, rgba(5,7,15,.7) 38%, rgba(5,7,15,.1) 70%),
    linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 60%, var(--bg) 100%);
}
.featured__inner { width: 100%; padding-block: 160px 110px; }
.featured__content { max-width: 620px; }
.featured__title { margin: 22px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 6.5vw, 86px); line-height: 1; text-transform: uppercase; text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.featured__tagline { margin: 22px 0 0; font-size: 19px; color: #c5cde0; }
.featured__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.featured__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.featured__thumbs { display: flex; gap: 14px; margin-top: 60px; }
.featured__thumbs button {
  position: relative; width: 150px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line-2); transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
}
.featured__thumbs button:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--glow); }
.featured__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .featured { min-height: auto; }
  .featured::before { background: linear-gradient(180deg, var(--bg) 0%, rgba(5,7,15,.5) 30%, rgba(5,7,15,.92) 70%, var(--bg) 100%); }
  .featured__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 40px; }
  .featured__thumbs button { width: auto; border-radius: 8px; }
}

/* ---------------------------------------------------------------- Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.filters button {
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); transition: color .3s, background .3s;
}
.filters button:hover { color: var(--text); }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; padding: 10px 14px; }
}
.filters button.active { background: var(--grad); color: #041026; }

/* ---------------------------------------------------------------- Game cards */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 28px; }
.game-card {
  --accent: var(--blue);
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
  transform-style: preserve-3d;
}
.game-card::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.game-card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 50px -15px var(--accent); }
.game-card:hover::before { opacity: 1; }
.game-card.is-hidden { display: none; }
.game-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0a0f1e; }
.game-card__media img, .game-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; }
.game-card__media video { opacity: 0; }
.game-card:hover .game-card__media img { transform: scale(1.08); }
.game-card.playing .game-card__media video { opacity: 1; }
.game-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8,12,25,.85) 100%); }
.game-card__badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.game-card__play {
  position: absolute; z-index: 5; right: 16px; bottom: 16px;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2);
  transform: scale(.7); opacity: 0; transition: transform .45s var(--ease), opacity .3s, background .3s;
}
.game-card__play .ico { font-size: 18px; margin-left: 3px; }
.game-card:hover .game-card__play { transform: none; opacity: 1; }
.game-card__play:hover { background: var(--accent); }
.game-card__body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 26px; flex: 1; }
.game-card__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.game-card__tagline { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-card__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.game-card__more svg { transition: transform .4s var(--ease); }
.game-card:hover .game-card__more { color: var(--cyan); }
.game-card:hover .game-card__more svg { transform: translateX(5px); }
.game-card__link { position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.game-card__link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Coming soon / empty slot card */
.game-card--slot { display: grid; place-items: center; min-height: 380px; border-style: dashed; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.015) 14px 28px); text-align: center; padding: 30px; }
.game-card--slot:hover { transform: none; box-shadow: none; }
.game-card--slot img { width: 70px; margin: 0 auto 20px; opacity: .6; }
.game-card--slot h3 { margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
.game-card--slot p { margin: 8px 0 0; color: var(--dim); font-size: 14px; }

/* ---------------------------------------------------------------- Studio */
.studio { overflow: hidden; }
.studio__bg { position: absolute; inset: 0; z-index: -1; opacity: .35; }
.studio__bg img { width: 100%; height: 100%; object-fit: cover; }
.studio__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(5,7,15,.6) 40%, rgba(5,7,15,.6) 60%, var(--bg) 100%); }
.studio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.studio__text p { color: var(--muted); font-size: 17px; margin: 22px 0 0; }
.studio__text strong { color: var(--text); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat {
  padding: 30px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  border: 1px solid var(--line); backdrop-filter: blur(10px);
  transition: border-color .4s, transform .5s var(--ease);
}
.stat:hover { border-color: rgba(134,232,251,.35); transform: translateY(-4px); }
.stat__value { font-family: var(--font-display); font-weight: 900; font-size: clamp(38px, 4.5vw, 56px); line-height: 1; }
.stat__label { margin-top: 12px; color: var(--muted); font-size: 14px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 90px; }
.pillar {
  position: relative; padding: 36px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
}
.pillar::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.pillar:hover { transform: translateY(-6px); border-color: var(--line-2); }
.pillar:hover::after { transform: scaleX(1); }
.pillar__num { font-family: var(--font-display); font-weight: 900; font-size: 14px; letter-spacing: .2em; color: var(--dim); }
.pillar__icon { width: 56px; height: 56px; margin: 22px 0 20px; display: grid; place-items: center; border-radius: 14px; background: rgba(63,140,255,.1); border: 1px solid rgba(63,140,255,.25); color: var(--cyan); }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.pillar p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.tech { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.tech span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: #c9d1e3; }
.tech .ico { font-size: 16px; color: var(--cyan); }
@media (max-width: 960px) {
  .studio__grid { grid-template-columns: 1fr; gap: 50px; }
  .pillars { grid-template-columns: 1fr; margin-top: 60px; }
}

/* ---------------------------------------------------------------- Media wall */
.media-wall { columns: 3 320px; column-gap: 18px; }
.media-wall button {
  position: relative; display: block; width: 100%; margin: 0 0 18px; break-inside: avoid;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
}
.media-wall img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .5s; }
.media-wall button:nth-child(4n+1) img { aspect-ratio: 4/3; object-fit: cover; }
.media-wall button:nth-child(5n+3) img { aspect-ratio: 1/1; object-fit: cover; }
.media-wall button:hover img { transform: scale(1.06); filter: brightness(1.1); }
.media-wall__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; text-align: left;
  background: linear-gradient(transparent, rgba(5,7,15,.9));
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  transform: translateY(100%); transition: transform .5s var(--ease);
}
.media-wall button:hover .media-wall__cap { transform: none; }
.media-wall__type { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(5,7,15,.6); backdrop-filter: blur(8px); }

/* ---------------------------------------------------------------- Contact */
.contact__panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(50px, 8vw, 100px) clamp(28px, 6vw, 90px);
  border-radius: 28px; border: 1px solid var(--line-2);
  background: radial-gradient(ellipse at 90% 0%, rgba(63,140,255,.3), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(134,232,251,.14), transparent 50%), var(--bg-3);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center;
}
.contact__panel::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); mask: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
}
.contact__title { margin: 18px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 5.5vw, 70px); line-height: 1.02; text-transform: uppercase; }
.contact__lead { margin: 22px 0 0; color: var(--muted); font-size: 18px; max-width: 520px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.contact__logo { justify-self: center; width: min(260px, 100%); filter: drop-shadow(0 0 60px rgba(63,140,255,.45)); animation: float 7s ease-in-out infinite; }
@media (max-width: 860px) { .contact__panel { grid-template-columns: 1fr; } .contact__logo { width: 150px; justify-self: start; order: -1; } }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.02);
  transition: color .3s, border-color .3s, transform .4s var(--ease), background .3s;
}
.socials a .ico { font-size: 18px; }
.socials a:hover { color: #041026; background: var(--grad); border-color: transparent; transform: translateY(-3px); }

/* ---------------------------------------------------------------- Footer */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: linear-gradient(180deg, var(--bg), #03040a); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer__brand img { height: 44px; width: auto; }
.footer__brand p { margin: 18px 0 0; color: var(--dim); max-width: 340px; font-size: 14px; }
.footer__nav { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__nav h4 { margin: 0 0 16px; font-family: var(--font-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__nav a { color: var(--muted); font-size: 15px; transition: color .3s; }
.footer__nav a:hover { color: var(--cyan); }
.footer__bottom { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }
.footer__big { display: block; width: 100%; height: auto; margin-top: 60px; overflow: visible; user-select: none; }
.footer__big text { font-family: var(--font-display); font-weight: 900; font-size: 124px; fill: transparent; stroke: rgba(255,255,255,.08); stroke-width: 1; }

/* ---------------------------------------------------------------- Lightbox / modal */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(3,4,10,.94); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; }
.lightbox__count { font-family: var(--font-display); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.lightbox__close, .lightbox__nav {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); transition: background .3s, border-color .3s, transform .3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--blue); border-color: var(--blue); }
.lightbox__close svg, .lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 90px; min-height: 0; }
.lightbox__content { width: 100%; max-width: 1400px; max-height: 100%; display: grid; place-items: center; }
.lightbox__content img, .lightbox__content video { max-width: 100%; max-height: calc(100vh - 190px); border-radius: 12px; box-shadow: 0 40px 100px rgba(0,0,0,.6); animation: lbIn .5s var(--ease); }
.lightbox__content .embed { width: min(100%, calc((100vh - 190px) * 16 / 9)); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__caption { padding: 18px 24px 26px; text-align: center; color: var(--muted); font-size: 14px; min-height: 64px; }
@media (max-width: 760px) {
  .lightbox__stage { padding: 0 12px; }
  .lightbox__nav { top: auto; bottom: -70px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
  .lightbox__caption { padding-top: 80px; }
}

.embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* =====================================================================
   GAME PAGE
   ===================================================================== */
.game-hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.game-hero__bg { position: absolute; inset: 0; z-index: -2; }
.game-hero__bg img, .game-hero__bg video { width: 100%; height: 100%; object-fit: cover; animation: kenburns 30s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.12) translate(-1%, -1%); } }
.game-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,7,15,.92) 0%, rgba(5,7,15,.55) 45%, rgba(5,7,15,.1) 80%), linear-gradient(180deg, rgba(5,7,15,.6) 0%, transparent 25%, transparent 55%, var(--bg) 100%);
}
.game-hero__inner { width: 100%; padding-block: 180px 90px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.game-hero__title { margin: 26px 0 0; max-width: 900px; font-family: var(--font-display); font-weight: 900; font-size: clamp(42px, 7.5vw, 100px); line-height: .98; text-transform: uppercase; text-shadow: 0 10px 50px rgba(0,0,0,.5); }
.game-hero__logo { max-width: min(560px, 90%); max-height: 240px; margin-top: 26px; object-fit: contain; object-position: left; filter: drop-shadow(0 10px 40px rgba(0,0,0,.6)); }
.game-hero__tagline { margin: 24px 0 0; max-width: 620px; font-size: 20px; color: #cfd6e6; }
.game-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.game-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.store-btn { --h: 52px; }
.store-btn .ico { font-size: 20px; }

.game-layout { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: start; }
@media (max-width: 1000px) { .game-layout { grid-template-columns: 1fr; } }
.prose p { margin: 0 0 20px; color: #c1c9da; font-size: 18px; }
.features { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.features li {
  position: relative; padding: 20px 22px 20px 58px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: #d8deeb; font-size: 15px;
}
.features li::before {
  content: ''; position: absolute; left: 22px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: var(--grad); transform: rotate(45deg); border-radius: 4px; box-shadow: 0 0 16px rgba(90,184,255,.5);
}
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.spec {
  position: sticky; top: calc(var(--nav-h) + 24px);
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--bg-3), var(--bg-2)); overflow: hidden;
}
.spec__cover { aspect-ratio: 16/9; position: relative; }
.spec__cover img { width: 100%; height: 100%; object-fit: cover; }
.spec__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--bg-3)); }
.spec__body { padding: 8px 26px 28px; }
.spec h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); }
.spec dl { margin: 0; display: grid; }
.spec dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dl > div:last-child { border-bottom: 0; }
.spec dt { color: var(--dim); }
.spec dd { margin: 0; text-align: right; color: var(--text); }
.spec__links { display: grid; gap: 10px; margin-top: 18px; }
.spec__links .btn { width: 100%; }

.trailer-wrap { position: relative; border-radius: 20px; padding: 1px; background: linear-gradient(135deg, var(--line-2), transparent 40%, transparent 60%, var(--line-2)); box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 120px -40px var(--accent, var(--blue)); }
.trailer-wrap .embed { border-radius: 19px; }
.trailer-poster { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.trailer-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.trailer-poster::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(5,7,15,.2), rgba(5,7,15,.7)); }
.trailer-poster:hover img { transform: scale(1.04); }
.trailer-poster__btn {
  position: relative; z-index: 2; display: grid; place-items: center;
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--grad); color: #041026; box-shadow: 0 0 0 14px rgba(90,184,255,.15), 0 0 80px rgba(63,140,255,.7);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.trailer-poster__btn .ico { font-size: 38px; margin-left: 6px; }
.trailer-poster:hover .trailer-poster__btn { transform: scale(1.08); box-shadow: 0 0 0 22px rgba(90,184,255,.12), 0 0 120px rgba(63,140,255,.9); }
.trailer-poster__btn::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(134,232,251,.5); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.trailer-poster.is-soon { cursor: default; }
.trailer-poster.is-soon img { filter: blur(6px) brightness(.6); }
.trailer-poster__soon { position: relative; z-index: 2; text-align: center; }
.trailer-poster__soon strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 4vw, 44px); letter-spacing: .1em; text-transform: uppercase; }
.trailer-poster__soon span { display: block; margin-top: 10px; color: var(--muted); font-family: var(--font-display); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery button { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.gallery button:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gallery button:nth-child(6n+4) { grid-column: span 2; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .4s; }
.gallery button:hover img, .gallery button:hover video { transform: scale(1.07); filter: brightness(1.12); }
.gallery__type { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(5,7,15,.6); backdrop-filter: blur(8px); border: 1px solid var(--line-2); }
.gallery__type .ico { font-size: 14px; margin-left: 2px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }
@media (max-width: 520px) { .gallery { grid-auto-rows: 120px; gap: 10px; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pager a {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  min-height: 220px; padding: 30px; border-radius: var(--radius); overflow: hidden; isolation: isolate; border: 1px solid var(--line);
}
.pager a img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pager a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,7,15,.95), rgba(5,7,15,.3)); }
.pager a:hover img { transform: scale(1.06); }
.pager a.next { text-align: right; align-items: flex-end; }
.pager small { font-family: var(--font-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); }
.pager strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 2.4vw, 28px); text-transform: uppercase; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } }

.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.not-found h1 { font-family: var(--font-display); font-size: clamp(60px, 14vw, 160px); margin: 0; line-height: 1; }
.not-found p { color: var(--muted); font-size: 18px; margin: 16px 0 36px; }

/* =====================================================================
   SHOWCASE · vídeos a pantalla completa guiados por el scroll
   ===================================================================== */
.showcase { position: relative; background: var(--bg); }
.showcase__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.showcase__stage {
  --ix: 10%; --iy: 14%; --r: 28px; --s: 1;
  position: absolute; inset: 0; background: #000;
  clip-path: inset(var(--iy) var(--ix) round var(--r));
  will-change: clip-path;
}
.showcase__layer { position: absolute; inset: 0; visibility: hidden; overflow: hidden; background: #000; }
.showcase__layer > video, .showcase__layer > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--s)); transform-origin: 50% 55%; will-change: transform;
}
.showcase__layer.is-prev { visibility: visible; z-index: 1; }
.showcase__layer.is-active { visibility: visible; z-index: 2; }
.showcase__layer.is-active[data-transition='fade'] { animation: sc-fade 1s var(--ease) both; }
.showcase__layer.is-active[data-transition='zoom'] { animation: sc-zoom 1.1s var(--ease) both; }
.showcase__layer.is-active[data-transition='wipe'][data-dir='fwd'] { animation: sc-wipe-up 1s cubic-bezier(.77,0,.18,1) both; }
.showcase__layer.is-active[data-transition='wipe'][data-dir='back'] { animation: sc-wipe-down 1s cubic-bezier(.77,0,.18,1) both; }
.showcase__layer.is-active[data-transition='glitch'] { animation: sc-glitch .45s steps(1, end) both; }
@keyframes sc-fade { from { opacity: 0; } }
@keyframes sc-zoom { from { opacity: 0; transform: scale(1.3); filter: blur(12px); } }
@keyframes sc-wipe-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sc-wipe-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sc-glitch {
  0%   { clip-path: inset(38% 0 44% 0); transform: translate(-40px, 0); filter: hue-rotate(90deg) saturate(3) contrast(1.4); }
  15%  { clip-path: inset(8% 0 72% 0);  transform: translate(30px, 0); }
  30%  { clip-path: inset(66% 0 6% 0);  transform: translate(-18px, 0); filter: hue-rotate(-70deg) saturate(2.4); }
  45%  { clip-path: inset(22% 0 50% 0); transform: translate(12px, 0); filter: invert(.15) hue-rotate(40deg); }
  60%  { clip-path: inset(0 0 0 0);     transform: translate(-6px, 0); filter: saturate(1.6); }
  80%  { transform: translate(3px, 0); filter: none; }
  100% { clip-path: inset(0 0 0 0); transform: none; filter: none; }
}
/* Luminous edge that travels with the wipe */
.showcase__edge {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; pointer-events: none; opacity: 0;
  background: var(--grad); box-shadow: 0 0 30px 6px rgba(90,184,255,.6);
}
.showcase__edge.run-fwd { animation: sc-edge 1s cubic-bezier(.77,0,.18,1) both; }
.showcase__edge.run-back { animation: sc-edge-back 1s cubic-bezier(.77,0,.18,1) both; }
@keyframes sc-edge { from { transform: translateY(100vh); opacity: 1; } 92% { opacity: 1; } to { transform: translateY(0); opacity: 0; } }
@keyframes sc-edge-back { from { transform: translateY(0); opacity: 1; } 92% { opacity: 1; } to { transform: translateY(100vh); opacity: 0; } }

.showcase__shade {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,7,15,.85) 0%, rgba(5,7,15,.35) 45%, transparent 70%),
    linear-gradient(0deg, rgba(5,7,15,.9) 0%, transparent 38%),
    linear-gradient(180deg, rgba(5,7,15,.55) 0%, transparent 22%);
  opacity: var(--shade, 0);
}
.showcase__dim { position: absolute; inset: 0; z-index: 4; background: rgba(5,7,15,.55); opacity: var(--dim, 1); pointer-events: none; }

/* Intro text over the card */
.showcase__intro {
  position: absolute; inset: 0; z-index: 8; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px;
  padding: 0 20px; pointer-events: none;
  opacity: var(--io, 1); transform: scale(var(--is, 1));
}
.showcase__intro h2 {
  margin: 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(38px, 8vw, 120px); line-height: .95; text-shadow: 0 10px 60px rgba(0,0,0,.6);
}
.showcase__hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; font-family: var(--font-display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #b8c3da; }
.showcase__hint i { width: 20px; height: 32px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 12px; position: relative; }
.showcase__hint i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--cyan); animation: wheel 2s ease-in-out infinite; }

/* Chapter texts + HUD */
.showcase__ui { position: absolute; inset: 0; z-index: 10; pointer-events: none; opacity: var(--ui, 0); }
.showcase__ui.on .sc-text.is-active, .showcase__ui.on .showcase__nav { pointer-events: auto; }
.showcase__content { position: absolute; left: 0; right: 0; bottom: 130px; }
.showcase__texts { position: relative; min-height: 340px; max-width: 700px; }
.sc-text { position: absolute; left: 0; right: 0; bottom: 0; visibility: hidden; transition: visibility 0s .4s; }
.sc-text.is-active { visibility: visible; transition: none; }
.sc-text > * { opacity: 0; transform: translateY(30px); transition: opacity .35s, transform .35s; }
.sc-text.is-active > * { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.sc-text.is-active > :nth-child(2) { transition-delay: .08s; }
.sc-text.is-active > :nth-child(3) { transition-delay: .16s; }
.sc-text.is-active > :nth-child(4) { transition-delay: .24s; }
.sc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.sc-title { margin: 18px 0 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 7vw, 104px); line-height: .95; text-shadow: 0 10px 50px rgba(0,0,0,.55); }
.sc-tagline { margin: 20px 0 0; max-width: 560px; font-size: clamp(16px, 1.6vw, 20px); color: #d3daea; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.showcase__counter {
  position: absolute; top: calc(var(--nav-h) + 24px); right: max(28px, calc((100vw - var(--maxw)) / 2 + 28px));
  display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 900;
}
.showcase__counter b { font-size: clamp(40px, 5vw, 72px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.showcase__counter span { font-size: 16px; color: var(--muted); letter-spacing: .1em; }

.showcase__nav { position: absolute; left: 0; right: 0; bottom: 40px; display: flex; gap: 14px; }
.showcase__nav button { flex: 1; min-width: 0; display: grid; gap: 10px; text-align: left; padding: 8px 0; }
.showcase__nav small { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); transition: color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase__nav button.is-active small, .showcase__nav button:hover small { color: var(--text); }
.showcase__nav i { position: relative; display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.showcase__nav i::after { content: ''; position: absolute; inset: 0; background: var(--grad); transform: scaleX(var(--p, 0)); transform-origin: left; }

@media (max-width: 760px) {
  .showcase__content { bottom: 96px; }
  .showcase__texts { min-height: 300px; }
  .showcase__nav { bottom: 26px; gap: 8px; }
  .showcase__nav small { font-size: 9px; letter-spacing: .12em; }
  .showcase__counter { top: calc(var(--nav-h) + 10px); right: 18px; }
  .showcase__shade { background: linear-gradient(0deg, rgba(5,7,15,.95) 0%, rgba(5,7,15,.55) 45%, rgba(5,7,15,.2) 70%, rgba(5,7,15,.5) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .showcase__layer.is-active { animation: none !important; }
  .showcase__edge { display: none; }
}
