/* ==========================================================================
   Top-down hero shooter demo page · Carrara Studios
   Plain CSS, no external fonts, no frameworks. Mobile first.
   ========================================================================== */

:root {
  /* space palette (matches the game's menu and UI kit) */
  --space-0: #07041a;
  --space-1: #0b0720;
  --space-2: #140c33;
  --panel: #1a1033;
  --panel-2: #22164a;
  --ink: #120a2b;              /* sticker outline */
  --line: rgba(160, 140, 255, 0.18);
  --line-strong: rgba(160, 140, 255, 0.34);
  --text: #eef2ff;
  --muted: #a9b8d6;
  --faint: #7d8bb0;

  --cyan: #3fd0ff;
  --cyan-deep: #1487c2;
  --violet: #8c6bff;
  --purple: #b069ff;
  --gold: #ffc52e;
  --gold-deep: #b86a0a;
  --pink: #ff4e7a;
  --green: #46e08a;
  --orange: #ff7a2a;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --gutter: 16px;
  --header-h: 64px;
  --maxw: 1200px;

  --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Varela Round", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- language switching ------------------------------------------- */
/* Every text exists twice (lang="en" / lang="pt-BR"); only the active one shows. */
html[data-lang="en"] body [lang="pt-BR"],
html[data-lang="pt"] body [lang="en"] { display: none !important; }

/* ---------- reset / base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--space-1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
/* star field + nebula, drawn with gradients only */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 88% 64%, rgba(190,230,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 78%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 55% 42%, rgba(220,200,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 58%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 93% 30%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 44%, rgba(190,230,255,.5) 50%, transparent 51%),
    radial-gradient(60% 45% at 85% 5%, rgba(140,107,255,.22), transparent 70%),
    radial-gradient(50% 40% at 0% 60%, rgba(63,208,255,.12), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(176,105,255,.16), transparent 70%),
    linear-gradient(180deg, var(--space-1), var(--space-0));
  background-size: 420px 420px, 380px 380px, 460px 460px, 340px 340px, 500px 500px, 300px 300px, 440px 440px, 360px 360px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8fe6ff; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
ul, ol { margin: 0; padding: 0; }
code { font-family: var(--font-mono); font-size: .9em; background: rgba(140,107,255,.16); border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; }
strong { color: #fff; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); font-weight: 800;
  padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* icons from the sprite: stroke style by default */
.feature__icon svg, .btn svg, .round-btn svg, .menu-toggle svg, .notice__icon, .dl-card__icon svg,
.checklist svg, .license__title svg, .updates__icon svg, .footer-contact svg, .slot__art--icon {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.fill-soft { fill: currentColor; fill-opacity: .28; stroke: none; }
.fill-solid { fill: currentColor; }

/* ---------- display type: chunky "sticker" headings ---------------------- */
.sticker {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow:
    0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink),
    0 5px 0 var(--ink), 0 10px 22px rgba(0, 0, 0, .45);
}
.sticker em { font-style: normal; color: var(--cyan); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 12px;
}
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }

.section { padding-block: clamp(56px, 9vw, 112px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: linear-gradient(180deg, rgba(20,12,51,0), rgba(20,12,51,.72) 12%, rgba(20,12,51,.72) 88%, rgba(20,12,51,0)); }
.section-title { font-size: clamp(1.95rem, 4.6vw, 3.25rem); margin-bottom: 18px; max-width: 22ch; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: #d7def2; max-width: 64ch; }

/* ---------- buttons ------------------------------------------------------ */
.btn {
  --btn-bg: var(--panel-2); --btn-edge: #0e0826; --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 16px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 900; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none; text-transform: uppercase; line-height: 1.1; text-align: center;
  box-shadow: 0 5px 0 var(--btn-edge), inset 0 2px 0 rgba(255,255,255,.35), 0 12px 24px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { color: var(--btn-fg); filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 6px 0 var(--btn-edge), inset 0 2px 0 rgba(255,255,255,.35), 0 14px 28px rgba(0,0,0,.4); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge), inset 0 2px 0 rgba(255,255,255,.25), 0 6px 12px rgba(0,0,0,.35); }
.btn--gold { --btn-bg: linear-gradient(180deg, #ffd766, var(--gold)); --btn-edge: var(--gold-deep); --btn-fg: #2a1a00; }
.btn--cyan { --btn-bg: linear-gradient(180deg, #7fe2ff, var(--cyan)); --btn-edge: var(--cyan-deep); --btn-fg: #06223a; }
.btn--lg { min-height: 56px; padding: 14px 26px; font-size: 1.05rem; border-radius: 18px; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: .82rem; border-radius: 12px; box-shadow: 0 4px 0 var(--btn-edge), inset 0 2px 0 rgba(255,255,255,.35); }
.btn--block { width: 100%; }

.round-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; border: 2px solid var(--line-strong);
  background: var(--panel); color: #fff; cursor: pointer;
  box-shadow: 0 4px 0 #0e0826;
  transition: transform .12s ease, border-color .12s ease, opacity .12s ease;
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { border-color: var(--cyan); transform: translateY(-1px); }
.round-btn:disabled { opacity: .35; cursor: default; transform: none; border-color: var(--line); }

/* ---------- header ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 7, 32, .78);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(11, 7, 32, .62); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; min-width: 0; }
.brand:hover { color: #fff; }
.brand__emblem { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.brand__tag {
  font-family: var(--font-display); font-weight: 800; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--cyan); padding: 2px 7px; border-radius: 6px;
}
.site-nav ul { list-style: none; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 11px; border-radius: 10px;
  color: #dfe5f7; text-decoration: none; font-weight: 700; font-size: .95rem;
}
.site-nav a:hover { color: #fff; background: rgba(140,107,255,.16); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang { display: none; padding: 3px; border-radius: 12px; background: var(--space-2); border: 1px solid var(--line); }
.js .lang { display: inline-flex; }
.lang__btn {
  min-width: 40px; min-height: 34px; padding: 4px 8px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--font-display); font-weight: 900; font-size: .8rem; letter-spacing: .08em;
}
.lang__btn[aria-pressed="true"] { background: var(--violet); color: #fff; }
.lang__btn:hover { color: #fff; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--panel); color: #fff; cursor: pointer;
  place-items: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* header layout by width: full nav + buy (>=1200), full nav (1080-1199), collapsed nav (<1080) */
.nav-buy { display: none; }
@media (max-width: 1199px) { .header-buy { display: none; } }
@media (max-width: 1079px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { order: 5; width: 100%; }
  .site-nav ul { flex-wrap: wrap; padding-bottom: 10px; }
  .nav-buy { display: block; }
  .nav-buy a { color: var(--gold); }
  .js .menu-toggle { display: inline-grid; }
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav { display: block; }
  .js .site-header.is-open .site-nav ul { flex-direction: column; gap: 2px; padding: 4px 0 14px; }
  .js .site-header.is-open .site-nav a { padding: 12px 10px; font-size: 1.05rem; }
}
@media (max-width: 479px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand__emblem { width: 30px; height: 30px; }
  .brand__name { font-size: .92rem; letter-spacing: .07em; }
  .brand__tag { display: none; }
  .lang__btn { min-width: 36px; padding: 4px 6px; }
}
@media (max-width: 349px) {
  .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- image slots (placeholders until real images are dropped in) -- */
.slot { position: relative; overflow: hidden; background: radial-gradient(80% 70% at 50% 30%, rgba(140,107,255,.22), transparent 70%), var(--space-2); }
.slot__placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.slot__tag {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .02em;
  color: rgba(238, 242, 255, .78); background: rgba(7, 4, 26, .72);
  border: 1px dashed rgba(160, 140, 255, .55); border-radius: 8px; padding: 3px 8px;
}
.slot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.is-filled .slot__placeholder { display: none; }

/* ---------- banner ------------------------------------------------------- */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  padding-block: 72px 88px;
}
.slot--banner { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(55% 60% at 78% 45%, rgba(63,208,255,.20), transparent 70%),
  radial-gradient(45% 55% at 62% 70%, rgba(176,105,255,.28), transparent 70%),
  transparent; }
.slot--banner .slot__tag { left: auto; right: 16px; bottom: 16px; }
.banner__crack { position: absolute; right: -4%; top: 0; width: min(60vw, 640px); height: 100%; opacity: .9; filter: drop-shadow(0 0 10px rgba(63,208,255,.8)) drop-shadow(0 0 28px rgba(140,107,255,.7)); }
.banner__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,4,26,.92) 0%, rgba(7,4,26,.7) 38%, rgba(7,4,26,.12) 72%, rgba(7,4,26,0) 100%),
    linear-gradient(180deg, rgba(11,7,32,0) 60%, var(--space-1) 100%);
}
.slot--banner, .banner__shade { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
@media (max-width: 719px) {
  .banner { min-height: 0; padding-block: 56px 64px; }
  .banner__shade { background: linear-gradient(180deg, rgba(7,4,26,.55), rgba(7,4,26,.86) 55%, var(--space-1)); }
  .banner__crack { width: 90vw; right: -30%; opacity: .55; }
}
.banner__content { position: relative; }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: #dff6ff; background: rgba(63,208,255,.14); border: 1px solid rgba(63,208,255,.45);
  padding: 6px 12px; border-radius: 999px;
}
.banner__title { font-size: clamp(2.6rem, 8vw, 5.4rem); max-width: 12ch; margin-bottom: 14px; }
.banner__tagline { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--gold); margin-bottom: 16px; letter-spacing: .01em; }
.banner__lead { max-width: 56ch; color: #dde3f5; font-size: clamp(1rem, 1.5vw, 1.12rem); margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-bottom: 30px; }
@media (max-width: 479px) { .cta-row .btn { width: 100%; } }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li {
  padding: 8px 14px; border-radius: 12px;
  background: rgba(20,12,51,.72); border: 1px solid var(--line);
  color: var(--muted); font-weight: 600; font-size: .92rem;
}
.facts strong { font-family: var(--font-display); font-weight: 900; color: #fff; font-size: 1.05rem; margin-right: 2px; }

/* ---------- what it is -------------------------------------------------- */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.steps { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: rgba(26,16,51,.6); border: 1px solid var(--line); }
.steps h3 { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
.steps__num {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; color: var(--ink);
  background: linear-gradient(180deg, #7fe2ff, var(--cyan)); box-shadow: 0 3px 0 var(--cyan-deep);
}
.spec-card {
  padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(160deg, var(--cyan), var(--violet) 55%, var(--purple)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
@media (min-width: 960px) { .spec-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.spec-card__title { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; margin-bottom: 14px; }
.spec { margin: 0; display: grid; }
.spec div { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.spec div:first-child { border-top: 0; }
@media (max-width: 479px) { .spec div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.spec dt { color: var(--faint); font-size: .86rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.spec dd { margin: 0; font-weight: 600; }

/* ---------- features ---------------------------------------------------- */
.features { list-style: none; display: grid; gap: 16px; margin-top: 34px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.feature {
  --accent: var(--cyan);
  padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(34,22,74,.9), rgba(26,16,51,.9));
  border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.feature h3 { font-family: var(--font-display); font-weight: 900; font-size: 1.12rem; margin: 14px 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.feature__icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--space-2));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 25%, transparent);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature--cyan { --accent: var(--cyan); }
.feature--violet { --accent: #a58bff; }
.feature--gold { --accent: var(--gold); }
.feature--green { --accent: var(--green); }
.feature--pink { --accent: #ff6d92; }
.feature--orange { --accent: var(--orange); }

/* ---------- rarity tiers (colours from the game's UI theme) -------------- */
.r-common        { --r: #9fb3cc; --r-top: #c7d3e3; --r-bot: #4a5a78; --r-bg: #4a5a78; --r-ink: #fff; }
.r-rare          { --r: #3fd0ff; --r-top: #8fe6ff; --r-bot: #146fb8; --r-bg: #146fb8; --r-ink: #fff; }
.r-superrare     { --r: #46e08a; --r-top: #9bf2be; --r-bot: #137a47; --r-bg: #137a47; --r-ink: #fff; }
.r-epic          { --r: #b069ff; --r-top: #d7b3ff; --r-bot: #5a20b0; --r-bg: #5a20b0; --r-ink: #fff; }
.r-mythic        { --r: #ff4e7a; --r-top: #ff9cb5; --r-bot: #9a1640; --r-bg: #9a1640; --r-ink: #fff; }
.r-legendary     { --r: #ffc52e; --r-top: #ffe58a; --r-bot: #b86a0a; --r-bg: #ffc52e; --r-ink: #2e1c00; }
.r-superlegendary{ --r: #ff7a2a; --r-top: #ff9a2e; --r-bot: #c81e1e; --r-bg: #a8300c; --r-ink: #fff; }
.r-galactic      { --r: #8c6bff; --r-top: #2edcff; --r-bot: #ff2eb8; --r-bg: #2a1570; --r-ink: #ffc21f; }

.rarity-badge {
  display: inline-block;
  font-family: var(--font-display); font-weight: 900; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--r-ink); background: var(--r-bg);
  border: 2px solid var(--r-top); border-radius: 8px; padding: 3px 8px; line-height: 1.3;
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.r-galactic .rarity-badge {
  border-color: transparent;
  background: linear-gradient(var(--r-bg), var(--r-bg)) padding-box, linear-gradient(90deg, #2edcff, #8c6bff, #ff2eb8, #2edcff) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: galactic-shift 6s linear infinite;
}
@keyframes galactic-shift { to { background-position: 0 0, 300% 0; } }

/* ---------- heroes carousel --------------------------------------------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head .lead { margin-bottom: 0; }
.carousel__controls { display: none; gap: 12px; }
.js .carousel__controls { display: flex; }
.carousel { position: relative; margin-top: 30px; }
.carousel__track {
  list-style: none;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 78%);
  gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 10px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 26px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: var(--violet) transparent;
}
@media (min-width: 560px) { .carousel__track { grid-auto-columns: 280px; } }
.carousel__track:focus-visible { outline-offset: -3px; border-radius: 12px; }
.carousel__progress { height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto; width: min(240px, 60%); overflow: hidden; }
.carousel__progress span { display: block; height: 100%; width: 25%; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--violet)); transform-origin: left center; transition: transform .15s linear; }
.carousel__progress:not(.is-active) { visibility: hidden; }

.hero--nexo    { --hero: #54dbff; }
.hero--kael    { --hero: #ab91ff; }
.hero--veyra   { --hero: #de99ff; }
.hero--liria   { --hero: #66ffbd; }
.hero--valtor  { --hero: #ff8f30; }
.hero--astreon { --hero: #ff7a1a; }
.hero--torq    { --hero: #ffc23a; }
.hero--sirka   { --hero: #b79cff; }

.hero-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)) padding-box, linear-gradient(165deg, var(--r-top), var(--r-bot)) border-box;
  box-shadow: 0 6px 0 rgba(0,0,0,.35), 0 20px 40px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 6px 0 rgba(0,0,0,.35), 0 20px 44px color-mix(in srgb, var(--hero) 30%, transparent); }
.r-galactic.hero-card {
  background: linear-gradient(180deg, #1d1150, #120a36) padding-box, linear-gradient(160deg, #2edcff, #8c6bff 45%, #ff2eb8) border-box;
  box-shadow: 0 0 0 1px #ffc21f, 0 6px 0 rgba(0,0,0,.35), 0 20px 44px rgba(140,107,255,.35);
}
.slot--hero {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(70% 55% at 50% 45%, color-mix(in srgb, var(--hero) 38%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--r-bot) 40%, var(--space-2)), var(--space-2));
}
.slot--hero .slot__img { object-fit: contain; object-position: center bottom; }
.slot--hero .slot__tag { top: 10px; bottom: auto; }
.slot__art { width: 62%; height: auto; aspect-ratio: 100 / 125; fill: color-mix(in srgb, var(--hero) 55%, #0b0720); opacity: .75; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--hero) 60%, transparent)); margin-top: 12%; }
.hero-card__body { position: relative; padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hero-card__body .rarity-badge { position: absolute; top: -14px; left: 16px; }
.hero-card__name { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 8px;
  text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink), 0 4px 0 var(--ink); }
.hero-card__role { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hero); }
.hero-card__blurb { margin: 4px 0 6px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.kit { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.kit li { font-size: .74rem; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); color: #dfe5f7; }
.hero-card__sig { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-weight: 700; font-size: .92rem; }
.hero-card__sig-label { display: inline-block; margin-right: 6px; font-family: var(--font-display); font-weight: 900; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hero); }

/* rarity ladder */
.ladder { margin-top: 44px; padding: 22px; border-radius: var(--radius-lg); background: rgba(20,12,51,.7); border: 1px solid var(--line); }
.ladder__title { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; margin-bottom: 16px; }
.ladder__list { list-style: none; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); counter-reset: tier; }
@media (min-width: 480px) { .ladder__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .ladder__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ladder__list li { counter-increment: tier; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.ladder__list li::after { content: counter(tier); order: 3; margin-left: auto; font-family: var(--font-display); font-weight: 900; font-size: .8rem; color: var(--faint); }
.ladder__list small { color: var(--muted); font-size: .84rem; font-weight: 600; }
.ladder__note { margin: 16px 0 0; color: var(--muted); font-size: .94rem; max-width: 72ch; }

/* ---------- arenas ------------------------------------------------------ */
.arenas { list-style: none; display: grid; gap: 18px; margin-top: 34px; }
@media (min-width: 760px) { .arenas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.arena { --arena: var(--cyan); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease; }
.arena:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--arena) 60%, transparent); }
.arena--courtyard { --arena: #3fd0ff; }
.arena--sanctuary { --arena: #66ffbd; }
.arena--bastion { --arena: #ff8f30; }
.slot--arena { aspect-ratio: 16 / 10; background: radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--arena) 28%, transparent), transparent 70%), var(--space-2); }
.slot__art.slot__art--icon { width: 64px; height: 64px; margin: 0; aspect-ratio: auto; fill: none; filter: none; color: color-mix(in srgb, var(--arena) 70%, #fff); opacity: .6; }
.arena__body { padding: 18px 20px 22px; border-top: 3px solid var(--arena); }
.arena__name { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; margin-bottom: 8px; }
.arena__body p { margin: 0; color: var(--muted); }

/* ---------- trailer ----------------------------------------------------- */
.video-slot, .video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 30px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(60% 70% at 50% 50%, rgba(140,107,255,.3), transparent 70%), var(--space-2);
  border: 2px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.video { display: block; height: auto; background: #000; }
.video-slot .slot__placeholder { position: static; display: block; }
.video-slot .slot__tag { top: 12px; left: 12px; bottom: auto; }
.video-slot__play { display: grid; place-items: center; width: clamp(56px, 10vw, 88px); height: clamp(56px, 10vw, 88px); border-radius: 50%; background: linear-gradient(180deg, #ffd766, var(--gold)); box-shadow: 0 5px 0 var(--gold-deep), 0 0 50px rgba(255,197,46,.3); color: #2a1a00; opacity: .6; }
.video-slot__play svg { width: 40%; height: 40%; margin-left: 5%; }
.video-slot__soon { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 900; font-size: clamp(.95rem, 2vw, 1.1rem); color: #fff; }

/* ---------- download ---------------------------------------------------- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); margin: 26px 0 26px; }
.notice p { margin: 0; }
.notice--info { background: rgba(255,197,46,.08); border: 1px solid rgba(255,197,46,.45); }
.notice__icon { flex: none; width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.downloads { display: grid; gap: 18px; }
@media (min-width: 820px) { .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dl-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(34,22,74,.92), rgba(26,16,51,.92)); border: 1px solid var(--line-strong); }
.dl-card__head { display: flex; gap: 14px; align-items: center; }
.dl-card__head h3 { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; }
.dl-card__req { margin: 2px 0 0; color: var(--muted); font-size: .9rem; font-weight: 600; }
.dl-card__icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--cyan); background: rgba(63,208,255,.12); border: 1px solid rgba(63,208,255,.4); }
.dl-card__icon svg { width: 28px; height: 28px; }
.dl-card__meta { margin: -4px 0 0; color: var(--faint); font-size: .84rem; overflow-wrap: anywhere; }
.dl-steps { list-style: none; counter-reset: step; display: grid; gap: 10px; }
.dl-steps li { counter-increment: step; position: relative; padding-left: 38px; color: #dbe2f4; }
.dl-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 900; font-size: .85rem; color: var(--ink); background: var(--cyan);
}
.dl-card__controls { margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: .92rem; }

/* ---------- buy --------------------------------------------------------- */
.buy {
  display: grid; gap: 28px; padding: clamp(22px, 4vw, 44px);
  border-radius: 30px;
  border: 2px solid transparent;
  background: linear-gradient(160deg, #22164a, #150d38) padding-box, linear-gradient(135deg, var(--gold), var(--purple) 50%, var(--cyan)) border-box;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 80px rgba(140,107,255,.18);
}
@media (min-width: 960px) { .buy { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: start; } }
.checklist { list-style: none; display: grid; gap: 10px; margin: 8px 0 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--green); stroke-width: 3; margin-top: 2px; }
.license { padding: 22px; border-radius: var(--radius); background: rgba(7,4,26,.6); border: 1px solid rgba(255,78,122,.5); }
.license__title { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-display); font-weight: 900; font-size: 1.12rem; line-height: 1.25; margin-bottom: 14px; color: #fff; }
.license__title svg { flex: none; width: 24px; height: 24px; color: var(--pink); margin-top: 1px; }
.license p { color: #d2d9ee; font-size: .95rem; }
.license p:last-child { margin-bottom: 0; }

/* ---------- updates ----------------------------------------------------- */
.updates { display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: var(--radius-lg); background: rgba(20,12,51,.75); border: 1px solid var(--line-strong); }
.updates p { margin: 6px 0 0; color: var(--muted); }
.updates__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.updates__icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: var(--cyan); background: rgba(63,208,255,.1); border: 1px solid rgba(63,208,255,.4); }
.updates__icon svg { width: 34px; height: 34px; }
@media (max-width: 479px) { .updates { flex-direction: column; align-items: flex-start; } }

/* ---------- footer ------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: rgba(7,4,26,.85); padding-block: 36px 44px; }
.footer-inner { display: grid; gap: 22px; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1fr auto; } .footer-legal { grid-column: 1 / -1; } }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-copy { margin: 0 0 4px; font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; }
.footer-small, .footer-legal p { margin: 0 0 4px; color: var(--faint); font-size: .84rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.footer-links a { color: #dfe5f7; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-contact { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact svg { width: 20px; height: 20px; }
.footer-legal { padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- toast (pending links) ---------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px;
  background: var(--panel-2); border: 1px solid var(--cyan); color: #fff; font-weight: 700;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.toast[hidden] { display: none; }

/* ---------- motion preferences ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- fallbacks for browsers without color-mix() ------------------- */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .feature__icon { background: var(--space-2); border-color: var(--line-strong); box-shadow: none; }
  .slot--hero { background: linear-gradient(180deg, var(--panel-2), var(--space-2)); }
  .slot__art { fill: var(--hero); opacity: .35; filter: none; }
  .slot__art.slot__art--icon { color: #fff; }
  .slot--arena { background: var(--space-2); }
}
