:root {
  --night: #070a16;
  --ink: #0d1230;
  --ink-2: #121a3f;
  --aurora-a: #5eead4;
  --aurora-b: #8b5cf6;
  --text: #f4f6ff;
  --muted: #a9b0d6;
  --line: rgba(255, 255, 255, .1);
  --aurora: linear-gradient(90deg, var(--aurora-a), var(--aurora-b));
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: 'Sora', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  padding: 16px max(16px, calc((100% - 1200px) / 2));
  background: rgba(7, 10, 22, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; text-decoration: none; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 16px;
  font-weight: 600; font-size: 17px; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); }
.btn:focus-visible { outline: 3px solid var(--aurora-a); outline-offset: 3px; }
.btn.primary { background: var(--aurora); color: #081022; border: none; box-shadow: 0 10px 40px rgba(94, 234, 212, .25); }
.btn.primary:hover { box-shadow: 0 14px 50px rgba(139, 92, 246, .4); }
.btn.small { padding: 10px 18px; font-size: 15px; border-radius: 12px; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center;
  padding: 96px max(16px, calc((100% - 1200px) / 2)) 120px;
}
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.glow.a { width: 520px; height: 520px; background: #5eead455; top: -160px; right: -120px; }
.glow.b { width: 600px; height: 600px; background: #8b5cf650; bottom: -260px; left: -200px; }
.hero-text { position: relative; }
.eyebrow { color: var(--aurora-a); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; margin: 0 0 18px; }
h1 { font-size: clamp(40px, 4.6vw, 60px); font-weight: 800; letter-spacing: -1.5px; }
.aurora-text { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 19px; max-width: 540px; margin: 24px 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* Launcher illustration */
.screen { position: relative; margin: 0; }
.screen figcaption { color: var(--muted); font-size: 12px; text-align: center; margin-top: 14px; }
.tv {
  padding: 10px; border-radius: 26px;
  background: linear-gradient(145deg, #1b2150, #0b0f24);
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(94, 234, 212, .08);
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
}
.ui { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; }

/* Sections */
.section { padding: 96px max(16px, calc((100% - 1200px) / 2)); border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.5px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 720px; margin: 14px 0 44px; }
.grid.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card { padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, var(--ink-2), var(--ink)); border: 1px solid var(--line); }
.card h3 { font-size: 20px; margin: 18px 0 8px; }
.card p { color: var(--muted); margin: 0; }
.icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: rgba(94, 234, 212, .1); border: 1px solid rgba(94, 234, 212, .3); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--aurora-a); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: 1.2fr .8fr 2fr; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--line); align-items: center; }
.row.head { border-top: none; background: var(--ink); color: var(--muted); font-size: 14px; letter-spacing: .5px; }
.row span:last-child { color: var(--muted); }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; }
.tag.ok { color: var(--aurora-a); background: rgba(94, 234, 212, .12); border: 1px solid rgba(94, 234, 212, .4); }
.tag.mid { color: #fbbf24; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .4); }

.steps { list-style: none; padding: 0; margin: 40px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.steps li { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink); }
.steps li > span { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--aurora); color: #081022; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }
.reqs { padding: 28px; border-radius: var(--radius); border: 1px dashed rgba(255, 255, 255, .18); }
.reqs ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }

.faq { display: grid; gap: 12px; max-width: 860px; margin-top: 40px; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--ink); padding: 0 24px; }
summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; color: var(--aurora-a); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 0 0 20px; }

.final { text-align: center; padding: 110px 16px; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, .22), transparent 60%); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final h2 { font-size: clamp(32px, 4vw, 48px); }

.footer { padding: 36px max(16px, calc((100% - 1200px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer p { margin: 6px 0; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 48px; }
  .tv { transform: none; }
  .links { display: none; }
  .nav { justify-content: space-between; }
  .row { grid-template-columns: 1fr 1fr; }
  .row span:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Compatibility list */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tag.menu { color: #93c5fd; background: rgba(147, 197, 253, .1); border: 1px solid rgba(147, 197, 253, .4); }
.tag.bad { color: #fca5a5; background: rgba(252, 165, 165, .08); border: 1px solid rgba(252, 165, 165, .35); }
.tag.nova { color: #081022; background: var(--aurora); border: none; font-weight: 600; }
.downloads { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.downloads b { color: var(--aurora-a); font-weight: 700; }
.tag.comm { color: #c4b5fd; background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .45); }
.tag.full { color: #081022; background: #5eead4; border: none; font-weight: 700; }
.compat-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.stat-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 120px; padding: 14px 18px; border-radius: 16px; cursor: pointer;
  font: inherit; color: var(--text); background: var(--ink); border: 1px solid var(--line); text-align: left; }
.stat-chip b { font-size: 26px; font-weight: 700; }
.stat-chip span { color: var(--muted); font-size: 14px; }
.stat-chip.on { border-color: transparent; background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--aurora) border-box; border: 2px solid transparent; }
.stat-chip:focus-visible { outline: 3px solid var(--aurora-a); outline-offset: 2px; }
.compat-search input { width: 100%; max-width: 520px; padding: 14px 18px; border-radius: 14px; font: inherit; color: var(--text);
  background: var(--ink); border: 1px solid rgba(255, 255, 255, .18); margin-bottom: 24px; }
.compat-search input:focus { outline: 2px solid var(--aurora-a); border-color: transparent; }
.compat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.compat-card { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: var(--ink); border: 1px solid var(--line); }
.compat-card .cover { flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, #1b2150, #2a1f5c);
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--muted); }
.compat-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.compat-card .info { min-width: 0; }
.compat-card h3 { font-size: 16px; line-height: 1.3; margin: 0 0 2px; overflow-wrap: anywhere; }
.compat-card .id { color: var(--muted); font-size: 12px; margin: 0 0 8px; letter-spacing: .5px; }
.compat-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.compat-card .note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.compat-more { display: flex; justify-content: center; margin-top: 22px; }
[hidden] { display: none !important; }

/* Gameplay page */
.gameplay h2 { margin: 0; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 32px; align-items: start; }
.video { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 20px; padding: 22px; min-width: 0; }
.video h3 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.video .twitter-tweet { margin: 0 auto !important; }
.links a[aria-current="page"] { color: var(--text); }

/* Motion layer (site.js). Static and complete without it. */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; background: var(--aurora);
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.nav { transition: padding .25s var(--ease-out), background .25s ease; }
.nav.scrolled { padding-top: 10px; padding-bottom: 10px; background: rgba(7, 10, 22, .9); }
.links a { position: relative; padding: 6px 0; transition: color .2s ease; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--aurora); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease-out); }
.links a:hover::after, .links a[aria-current="page"]::after { transform: scaleX(1); }
.links a:focus-visible { outline: 2px solid var(--aurora-a); outline-offset: 4px; border-radius: 4px; }
.badge-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; color: #081022; background: var(--aurora); vertical-align: 2px; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; cursor: pointer;
  color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle:focus-visible { outline: 3px solid var(--aurora-a); outline-offset: 2px; }

.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].in { opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out) var(--d, 0ms), transform .6s var(--ease-out) var(--d, 0ms); }

.glow { animation: drift 18s ease-in-out infinite alternate; }
.glow.b { animation-duration: 23s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 50px, 0) scale(1.15); } }
.aurora-text { background-size: 200% 100%; animation: shimmer 8s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.card, .spot { position: relative; isolation: isolate; transition: transform .25s var(--ease-out), border-color .25s ease; }
.card::before, .spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(94, 234, 212, .13), transparent 60%);
  transition: opacity .3s ease; }
.card:hover, .spot:hover { transform: translateY(-4px); border-color: rgba(94, 234, 212, .3); }
.card:hover::before, .spot:hover::before { opacity: 1; }
.tv { transition: transform .5s var(--ease-out); will-change: transform; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav > .btn.small { order: 2; }
  .menu-toggle { order: 3; margin-left: 0; }
  .js .links { display: flex; order: 4; flex-basis: 100%; flex-direction: column; gap: 4px; margin: 0;
    max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s var(--ease-out), opacity .2s ease; }
  .js .links.open { max-height: 420px; opacity: 1; padding-bottom: 8px; }
  .js .links a { padding: 12px 4px; font-size: 17px; }
  .js .links a::after { display: none; }
  .brand { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .progress { display: none; }
}
@media (max-width: 420px) {
  .nav > .btn.small { display: none; }
  .menu-toggle { margin-left: auto; }
}

/* Novedades: the newest version open, older ones folded. */
.changelog { display: grid; gap: 12px; max-width: 860px; }
.changelog .release { padding: 28px 30px; border-radius: var(--radius); background: linear-gradient(160deg, var(--ink-2), var(--ink)); border: 1px solid rgba(94, 234, 212, .35); }
.changelog .release h3 { font-size: 22px; margin: 6px 0 4px; }
.changelog .ver { color: var(--aurora-a); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.changelog ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.changelog li + li { margin-top: 6px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8); }
.gallery figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; }
.changelog details ul { margin: 0 0 20px; }
.changelog summary .muted { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }