/* ==========================================================================
   Bidu's Studio — studio.bidu.guru
   Design system: neon do logo (ciano → azul → roxo → magenta) sobre azul-noite.
   Sem dependências externas. Fontes auto-hospedadas (OFL).
   ========================================================================== */

@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/orbitron-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* Paleta da marca (amostrada do logo) */
  --cyan: #19e6e6;
  --cyan-2: #00c2dd;
  --blue: #0a84c6;
  --purple: #9b2fe0;
  --magenta: #f12bc9;

  /* Superfícies */
  --bg: #060814;
  --bg-2: #0a0e20;
  --bg-3: #10152c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --border: rgba(160, 175, 255, 0.13);
  --border-strong: rgba(160, 175, 255, 0.26);

  /* Texto */
  --text: #edf1ff;
  --text-muted: #b0b8d4;
  --text-dim: #8a93b3;

  /* Gradientes */
  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 34%, var(--purple) 66%, var(--magenta) 100%);
  --grad-v: linear-gradient(180deg, var(--cyan) 0%, #7f8be0 52%, var(--magenta) 100%);
  --glow-cyan: 0 0 24px rgba(25, 230, 230, 0.35);
  --glow-magenta: 0 0 24px rgba(241, 43, 201, 0.35);

  /* Tipografia */
  --font-display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.9vw, 2.75rem);
  --fs-h1: clamp(2.3rem, 1.5rem + 4vw, 4.6rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(155, 47, 224, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(25, 230, 230, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7ff3f3; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgba(241, 43, 201, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.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: 1rem; top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  background: var(--cyan);
  color: #04131a;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #04131a; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Utilitários de texto ---------- */
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-grad-v {
  background: var(--grad-v);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }

/* Marcação de dado pendente — some quando o texto real entra no lugar */
mark.pendente {
  background: rgba(255, 205, 60, 0.14);
  color: #ffd66b;
  border: 1px dashed rgba(255, 205, 60, 0.6);
  border-radius: 6px;
  padding: 0 0.35em;
  font-weight: 600;
  font-size: 0.95em;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ---------- Barra de progresso de leitura ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(6, 8, 20, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand img { width: 54px; height: auto; filter: drop-shadow(0 0 10px rgba(25, 230, 230, 0.25)); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--grad-v);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.brand:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.nav-list a:hover,
.nav-list a[aria-current="page"],
.nav-list a.is-active {
  color: var(--text);
  background: var(--surface-2);
}
.nav-cta { margin-left: 0.5rem; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 0.7rem;
  margin-left: 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.lang-switch:hover { color: var(--text); border-color: var(--border-strong); }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); background: var(--text); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); background: var(--text); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: rgba(6, 8, 20, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 0.9rem 1rem; font-size: 1.05rem; }
  .nav-cta { margin-left: 0; }
  .nav-cta .btn { width: 100%; }
  .lang-switch { margin-left: 0; align-self: flex-start; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 50; background: rgba(3, 4, 12, 0.6); }
}

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 650;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s;
}
.btn:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(25, 230, 230, 0.5); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
/* Gradiente da marca escurecido para manter contraste AA com texto branco */
.btn-primary {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: linear-gradient(120deg, #0b6fae 0%, #7d27c4 55%, #c4199f 100%);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.btn-primary:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 10px 34px -8px rgba(241, 43, 201, 0.55), 0 8px 30px -10px rgba(25, 230, 230, 0.55);
}
.btn-ghost { --btn-bg: transparent; }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: var(--fs-xs); }
.btn-soon,
.btn-soon:hover {
  --btn-bg: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  cursor: default;
  transform: none;
}

/* ---------- Chips / status ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 2.2s ease-in-out infinite;
}
.status--testing { color: #5ff0e6; border-color: rgba(95, 240, 230, 0.35); background: rgba(25, 230, 230, 0.08); }
.status--dev { color: #d68bff; border-color: rgba(214, 139, 255, 0.35); background: rgba(155, 47, 224, 0.1); }
.status--study { color: #ffb1e6; border-color: rgba(255, 177, 230, 0.32); background: rgba(241, 43, 201, 0.08); }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Seções ---------- */
.section { position: relative; padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.5rem); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.section--tight { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.section-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid;
  align-items: center;
  padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(3.5rem, 3rem + 4vw, 6rem);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 5rem));
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero::after {
  /* Grid em perspectiva no chão (synthwave) */
  content: "";
  position: absolute;
  left: -20%; right: -20%; bottom: -2px;
  height: 46%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(25, 230, 230, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 43, 201, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: grid-run 6s linear infinite;
  opacity: 0.6;
}
@keyframes grid-run { to { background-position: 0 64px, 0 0; } }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.005em;
}
.hero-title .line { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.hero-note { font-size: var(--fs-sm); color: var(--text-dim); display: flex; align-items: center; gap: 0.5rem; }
.hero-note svg { width: 16px; height: 16px; color: var(--cyan); }

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}
.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(25, 230, 230, 0.18);
  animation: spin 40s linear infinite;
}
.orbit:nth-child(2) { inset: 12%; border-color: rgba(241, 43, 201, 0.2); animation-duration: 28s; animation-direction: reverse; }
.orbit:nth-child(3) { inset: 24%; border-color: rgba(155, 47, 224, 0.25); border-style: dashed; animation-duration: 60s; }
.orbit::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan), 0 0 30px var(--cyan);
}
.orbit:nth-child(2)::before { background: var(--magenta); box-shadow: 0 0 16px var(--magenta), 0 0 30px var(--magenta); top: auto; bottom: -5px; }
.orbit:nth-child(3)::before { background: #b56dff; box-shadow: 0 0 14px #b56dff; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-logo {
  position: relative;
  width: 72%;
  filter: drop-shadow(0 0 30px rgba(25, 230, 230, 0.35)) drop-shadow(0 0 60px rgba(241, 43, 201, 0.25));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.hero-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 47, 224, 0.45), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}

/* Contador / faixa de números */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
}
.stat {
  display: grid;
  gap: 0.2rem;
  padding: 1.3rem 1.4rem;
  background: rgba(10, 14, 32, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
}
.stat .stat-value { order: -1; }
.stat-label { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.4; }

/* ---------- Estúdio (sobre) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.about-copy { display: grid; gap: 1.2rem; }
.about-copy p { color: var(--text-muted); }
.about-copy strong { color: var(--text); }
.pillars { display: grid; gap: 1rem; list-style: none; padding: 0; }

/* ---------- Cards genéricos com spotlight ---------- */
.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(25, 230, 230, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover { border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
}
.pillar h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.pillar p { color: var(--text-muted); font-size: var(--fs-sm); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background:
    linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  color: var(--cyan);
  flex-shrink: 0;
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge.magenta { color: var(--magenta); }
.icon-badge.purple { color: #c07bff; }

/* ---------- Jogos ---------- */
.lab-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(25, 230, 230, 0.07), rgba(241, 43, 201, 0.07));
}
.lab-banner p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 70ch; }
.lab-banner strong { color: var(--text); }
.daily { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.daily svg { width: 16px; height: 16px; color: var(--cyan); }
.daily strong { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; color: var(--cyan) !important; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
}
.game-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transform-style: preserve-3d;
  will-change: transform;
}
.game-card:hover { color: var(--text); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(25, 230, 230, 0.15); }
.game-card .media {
  position: relative;
  aspect-ratio: 1024 / 500;
  overflow: hidden;
  background: var(--bg-3);
}
.game-card .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.game-card:hover .media img { transform: scale(1.05); }
.game-card .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 8, 20, 0.92));
}
.game-card .media .status { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 1; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background-color: rgba(6, 8, 20, 0.7); }
.game-card .code {
  position: absolute; top: 0.95rem; right: 0.9rem; z-index: 1;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(6, 8, 20, 0.7);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.game-card .body {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: 0 1.4rem 1.4rem;
  flex: 1;
  grid-template-rows: auto auto 1fr auto;
}
.game-card .title-row { display: flex; align-items: flex-end; gap: 1rem; margin-top: -34px; position: relative; z-index: 1; }
.game-card .icon {
  width: 76px; height: 76px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
  background: var(--bg-3);
}
.game-card h3 { font-size: var(--fs-h3); font-weight: 750; letter-spacing: -0.01em; }
.game-card .genre { font-size: var(--fs-sm); color: var(--cyan); font-weight: 600; }
.game-card .desc { color: var(--text-muted); font-size: var(--fs-sm); }
.game-card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  font-size: var(--fs-sm);
  color: var(--text);
}
.game-card .more svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); color: var(--cyan); }
.game-card:hover .more svg { transform: translateX(5px); }

.subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 1.4rem;
}
.subhead h3 { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); letter-spacing: 0.02em; }
.subhead p { color: var(--text-dim); font-size: var(--fs-sm); }
.subhead--flush { margin-top: 0; align-items: center; }
.box-title { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 750; }

.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem); }
.project { display: grid; gap: 0.9rem; padding: 1.5rem; align-content: start; }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.project h4 { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.06em; }
.project p { color: var(--text-muted); font-size: var(--fs-sm); }
.project .tagline { color: var(--text); font-weight: 600; font-size: var(--fs-base); }

/* ---------- Pipeline / como criamos ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  counter-reset: step;
  position: relative;
}
.pipeline::before {
  content: "";
  position: absolute;
  top: 27px; left: 8%; right: 8%;
  height: 2px;
  background: var(--grad);
  opacity: 0.45;
}
.step { position: relative; display: grid; gap: 0.7rem; padding: 0 0.4rem; justify-items: start; align-content: start; }
.step-num {
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--glow-cyan);
}
.step-num::before { content: "0" counter(step); }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--text-muted); font-size: var(--fs-sm); }

.quote {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: center;
}
.quote p { font-size: var(--fs-lg); color: var(--text); }
.quote p span { color: var(--text-muted); }

/* ---------- Compromissos ---------- */
.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.promise { display: grid; gap: 0.8rem; padding: 1.5rem; align-content: start; }
.promise h3 { font-size: 1.08rem; }
.promise p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Central do jogador (documentos) ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.doc-card {
  display: grid;
  gap: 0.7rem;
  padding: 1.4rem;
  align-content: start;
  text-decoration: none;
  color: var(--text);
}
.doc-card:hover { color: var(--text); transform: translateY(-4px); }
.doc-card h3 { font-size: 1.05rem; }
.doc-card p { color: var(--text-muted); font-size: var(--fs-sm); }
.doc-card .langs { display: flex; gap: 0.4rem; margin-top: 0.2rem; }
.doc-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.doc-links a {
  font-size: var(--fs-xs);
  font-weight: 650;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-muted);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}
.doc-links a:hover { color: var(--text); border-color: rgba(25, 230, 230, 0.5); }

/* ---------- Contato ---------- */
#contato { padding-top: 0; }
.contact {
  position: relative;
  padding: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.3rem;
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(25, 230, 230, 0.18), transparent 70%),
    radial-gradient(600px 260px at 85% 100%, rgba(241, 43, 201, 0.2), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--border);
}
.contact .section-title { max-width: 20ch; }
.email-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem; }
.email-big {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.8rem + 2.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  word-break: break-all;
}
.copy-btn[data-copied="true"] { border-color: rgba(25, 230, 230, 0.6); color: var(--cyan); }
.contact-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; justify-content: center; color: var(--text-dim); font-size: var(--fs-sm); list-style: none; padding: 0; }
.contact-meta li { display: inline-flex; align-items: center; gap: 0.45rem; }
.contact-meta svg { width: 16px; height: 16px; color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  border-top: 1px solid var(--border);
  background: rgba(4, 6, 15, 0.6);
  padding-block: 3rem 2rem;
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand p { color: var(--text-dim); max-width: 36ch; }
.footer-col h2 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  padding: 0.3rem 0;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  color: var(--text-dim);
  font-size: var(--fs-xs);
}
.footer-bottom p { max-width: 80ch; }

/* ---------- Página interna: cabeçalho ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  overflow: hidden;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  font-weight: 800;
  margin-block: 0.8rem 1rem;
}
.breadcrumbs { font-size: var(--fs-sm); color: var(--text-dim); }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--text-dim); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }

/* ---------- Página de documento (legal) ---------- */
.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
  padding-bottom: 2rem;
}
.toc-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); z-index: 40; }
.toc {
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow-y: auto;
  padding: 1.1rem 0.6rem 1.1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--fs-sm);
  scrollbar-width: thin;
}
.toc summary {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.6rem;
  list-style: none;
  cursor: default;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 0.1rem; }
.toc-num { font-family: var(--font-display); font-size: 0.72rem; color: var(--cyan); margin-right: 0.55rem; opacity: 0.85; }
.toc a { display: flex !important; align-items: baseline; }
.toc a {
  display: block;
  padding: 0.38rem 0.7rem;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.35;
  border-radius: 0 8px 8px 0;
}
.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.is-active { color: var(--text); border-left-color: var(--cyan); background: rgba(25, 230, 230, 0.06); }

@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc-nav { top: var(--header-h); margin-inline: calc(var(--gutter) * -1); }
  .toc { max-height: calc(70vh - var(--header-h)); padding: 0; border-radius: 0; border-inline: 0; background: rgba(10, 14, 32, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .toc summary { padding-inline: var(--gutter); }
  .toc summary {
    cursor: pointer;
    padding: 1rem 1.1rem;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .toc summary::after { content: "+"; font-size: 1.2rem; color: var(--cyan); }
  .toc[open] summary::after { content: "−"; }
  .toc ol { padding: 0 0.6rem 1rem 0.6rem; }
}

.prose { max-width: 66ch; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  font-weight: 750;
  margin-top: 3rem;
  padding-top: 0.25rem;
  letter-spacing: -0.01em;
}
.prose h2 .num {
  font-family: var(--font-display);
  font-size: 0.8em;
  margin-right: 0.5rem;
  color: var(--cyan);
}
.prose h3 { font-size: 1.15rem; font-weight: 700; margin-top: 2rem; color: var(--text); }
.prose p, .prose li { color: #cfd5ea; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.prose li::marker { color: var(--cyan); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #c9f7f7;
  overflow-wrap: anywhere;
}
.prose hr { border: 0; height: 1px; background: var(--border); margin-block: 2.5rem; }
.prose .anchor {
  margin-left: 0.4rem;
  color: var(--text-dim);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s;
  font-weight: 400;
}
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus { opacity: 1; }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose td code { white-space: nowrap; }
/* Tabelas de dados em cartões empilhados: legíveis em qualquer largura, sem rolagem lateral */
.prose table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.prose table.stack, .prose table.stack tbody, .prose table.stack tr, .prose table.stack td { display: block; }
.prose table.stack tr { padding: 0.6rem 0; border-bottom: 1px solid var(--border-strong); }
.prose table.stack tr:last-child { border-bottom: 0; }
.prose table.stack td { display: grid; grid-template-columns: 38% 1fr; gap: 0.75rem; border: 0; padding: 0.35rem 1rem; }
.prose table.stack td::before { content: attr(data-label); font-weight: 700; color: var(--text); }
.prose table.stack td:first-child { font-size: 1rem; }
.prose table.stack td code, .prose table.spec td code { white-space: normal; }
.prose table.spec th { width: 34%; }
.prose th, .prose td { padding: 0.75rem 0.95rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 700; color: var(--text); background: var(--surface-2); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.callout {
  display: grid;
  gap: 0.6rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(25, 230, 230, 0.28);
  background: linear-gradient(135deg, rgba(25, 230, 230, 0.07), rgba(155, 47, 224, 0.06));
}
.callout.warn { border-color: rgba(255, 205, 60, 0.35); background: rgba(255, 205, 60, 0.06); }
.callout-title { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.callout.warn .callout-title { color: #ffd66b; }
.callout ul { gap: 0.35rem; }

.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; list-style: none; padding: 0 !important; }
.summary-grid li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.summary-grid li::marker { content: none; }
.summary-grid svg { width: 20px; height: 20px; color: var(--cyan); margin-top: 0.1rem; }

.doc-foot {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Página de jogo ---------- */
.game-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 1.5rem + 3vw, 4rem);
  isolation: isolate;
}
.game-hero-bg {
  position: absolute;
  inset: -40px;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(40px) saturate(1.3);
  opacity: 0.35;
}
.game-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 8, 20, 0.3), var(--bg) 95%);
}
.bg-cyberrunner { background-image: url("/assets/img/games/cyberrunner/feature-sm.webp"); }
.bg-torchbound { background-image: url("/assets/img/games/torchbound/feature-sm.webp"); }
.bg-micro-mining-express { background-image: url("/assets/img/games/micro-mining-express/feature-sm.webp"); }
.bg-sugar-siege { background-image: url("/assets/img/games/sugar-siege/feature-sm.webp"); }

.game-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
  margin-top: 1.5rem;
}
.game-id { display: flex; gap: 1.1rem; align-items: center; }
.game-id img { width: 96px; height: 96px; border-radius: 24px; border: 2px solid rgba(255, 255, 255, 0.14); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.9); }
.game-hero h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 800; line-height: 1.1; }
.game-hero .genre { color: var(--cyan); font-weight: 600; margin-top: 0.3rem; }
.game-hero .lead { margin-top: 1.2rem; }
.game-hero .chips { margin-top: 1.2rem; }
.game-hero .hero-actions { margin-top: 1.6rem; }
.game-feature {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(155, 47, 224, 0.45);
  aspect-ratio: 1024 / 500;
  background: var(--bg-3);
}
.game-feature img { width: 100%; height: 100%; object-fit: cover; }

.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; counter-reset: how; }
.how { padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; }
.how-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  background: var(--grad-v);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.how h3 { font-size: 1.08rem; }
.how p { color: var(--text-muted); font-size: var(--fs-sm); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 2rem; list-style: none; padding: 0; margin-top: 1.6rem; }
.features li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; color: var(--text-muted); }
.features li::before {
  content: "";
  width: 9px; height: 9px;
  margin-top: 0.55em;
  border-radius: 3px;
  background: var(--grad);
  transform: rotate(45deg);
}
.features strong { color: var(--text); }

.gallery-wrap { position: relative; }
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 22vw, 260px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.25rem;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(25, 230, 230, 0.4) transparent;
}
.gallery li { scroll-snap-align: start; }
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 9 / 16;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: zoom-in;
}
.shot:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(25, 230, 230, 0.45); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { display: flex; gap: 0.5rem; }
.gallery-nav[hidden] { display: none; }
.gallery-note { font-size: var(--fs-sm); margin-top: 0.4rem; max-width: 60ch; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover { border-color: rgba(25, 230, 230, 0.6); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

.privacy-box { display: grid; gap: 1rem; padding: clamp(1.4rem, 1rem + 1.5vw, 2rem); }
.privacy-box .summary-grid { margin-top: 0.4rem; }
.privacy-box .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }

.other-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mini-game { display: flex; gap: 0.9rem; align-items: center; padding: 0.9rem; text-decoration: none; color: var(--text); }
.mini-game:hover { color: var(--text); }
.mini-game img { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }
.mini-game strong { display: block; font-size: var(--fs-sm); line-height: 1.3; }
.mini-game span { font-size: var(--fs-xs); color: var(--text-dim); }

/* Cor de destaque de cada jogo */
.theme-cyberrunner { --accent: #19e6e6; }
.theme-torchbound { --accent: #ffa149; }
.theme-micro-mining-express { --accent: #6cf03e; }
.theme-sugar-siege { --accent: #ff6fbe; }
[class*="theme-"] .game-hero .genre,
[class*="theme-"] main .eyebrow { color: var(--accent); }
[class*="theme-"] main .eyebrow::before { background: var(--accent); }
[class*="theme-"] .game-feature { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 70px -24px var(--accent); }

/* Transição suave entre páginas (navegadores compatíveis) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100dvh;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.lightbox .icon-btn { background: rgba(10, 14, 32, 0.88); }
.lightbox::backdrop { background: rgba(3, 4, 12, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; justify-items: center; gap: 0.8rem; padding: 4rem 1rem 1.5rem; height: 100%; align-content: center; }
.lightbox img { max-height: calc(100dvh - 8rem); width: auto; border-radius: 22px; border: 1px solid var(--border-strong); }
.lightbox figcaption { color: var(--text-muted); font-size: var(--fs-sm); text-align: center; }
.lightbox .icon-btn { position: absolute; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.notfound .code404 {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 12vw, 11rem);
  font-weight: 900;
  line-height: 1;
  background: var(--grad-v);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(241, 43, 201, 0.35));
}
.notfound p { color: var(--text-muted); margin: 1rem auto 2rem; max-width: 44ch; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Toast & topo ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 300;
  transform: translate(-50%, 150%);
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: rgba(10, 14, 32, 0.95);
  border: 1px solid rgba(25, 230, 230, 0.4);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 10px 40px -10px rgba(25, 230, 230, 0.5);
  transition: transform 0.35s var(--ease);
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); }
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  background: rgba(10, 14, 32, 0.9);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.3s var(--ease); }

/* Confete do código secreto */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
  .pipeline::before { display: none; }
  .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; max-width: 300px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .other-games { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand img { width: 46px; }
  .brand-name { font-size: 0.9rem; }
  .hero-visual { max-width: 150px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stat { padding: 1rem 1.1rem; }
  .pipeline { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.25rem; }
  .step-num { grid-row: span 2; }
  .promise-grid, .docs-grid, .games-grid { grid-template-columns: minmax(0, 1fr); }
  .eyebrow { letter-spacing: 0.14em; }
  .hero { padding-top: calc(var(--header-h) + 1.25rem); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .summary-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote { grid-template-columns: minmax(0, 1fr); }
  .game-card .body { padding: 0 1.1rem 1.2rem; }
  .game-card .icon { width: 64px; height: 64px; border-radius: 16px; }
  .game-id img { width: 76px; height: 76px; border-radius: 20px; }
  .gallery { grid-auto-columns: 62vw; }
  .prose table.spec th, .prose table.spec td { display: block; width: auto; }
  .prose table.spec th { padding-bottom: 0.2rem; border-bottom: 0; background: transparent; }
  .prose table.spec td { padding-top: 0; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lightbox figure { padding-bottom: 5.5rem; }
  .lightbox img { max-height: calc(100dvh - 12rem); }
  .lightbox figcaption { padding-inline: 1rem; }
}
@media (max-width: 330px) {
  .brand-name { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Impressão (documentos legais) ---------- */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .toc, .progress, .to-top, .toast, .skip-link, .doc-foot, .hero-canvas { display: none !important; }
  .doc-layout { display: block; }
  .prose { max-width: none; }
  .prose p, .prose li, .prose strong, .prose h2, .prose h3, .page-hero h1 { color: #000; }
  .text-grad, .text-grad-v { color: #000; background: none; }
  a { color: #000; }
  .table-wrap { border-color: #999; }
  .prose th, .prose td { border-color: #bbb; }
  .callout { border-color: #999; background: none; }
}
