/* Aurora — site. Mesma estrutura dos sites do Qyrex e do Qlip (moldura central, cantoneiras,
   seções em faixas), com a identidade do jogo: noite, dourado e verde-aurora. */

:root {
  --bg: #0b0b10;
  --outer: #060609;
  --card: #12121a;
  --sunken: #0d0d13;
  --ink: #f5f4ee;
  --ink-dim: #aaa9a2;
  --ink-mute: #6f6e69;
  --line: rgba(196, 190, 160, 0.09);
  --line-2: rgba(196, 190, 160, 0.18);
  --accent: #f8d048;
  --accent-2: #ffe07a;
  --accent-on: #14120a;
  --aurora: #58d8c8;
  --hp: #58d080;
  --hp-low: #f05848;
  --tick: rgba(245, 244, 238, 0.4);
  --container: 1240px;
  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --f-sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--outer); color: var(--ink); font: 15px/1.55 var(--f-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
kbd { font-family: var(--f-mono); font-size: 0.88em; display: inline-block; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; color: var(--ink); background: var(--card); line-height: 1.5; }
.mono { font-family: var(--f-mono); }
.dim { color: var(--ink-mute); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-on); padding: 8px 12px; border-radius: 6px; font-weight: 600; transition: transform 0.3s var(--ease); }
.skip:focus { transform: translateY(76px); }

/* --- Moldura central com cantoneiras ---------------------------------------- */
.page { position: relative; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 8px 8px; background-position: center top; }
.frame { position: relative; max-width: var(--container); margin: 0 auto; background: var(--bg); border-inline: 1px solid var(--line); }
.corner { position: absolute; bottom: -1px; width: 14px; height: 14px; border-bottom: 1.5px solid var(--tick); }
.corner.bl { left: -1px; border-left: 1.5px solid var(--tick); }
.corner.br { right: -1px; border-right: 1.5px solid var(--tick); }
.brk {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
  --L: 14px; --T: 1.5px; --c: var(--tick);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--L) var(--T) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / var(--T) var(--L) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--L) var(--T) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--T) var(--L) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--L) var(--T) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--T) var(--L) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--L) var(--T) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--T) var(--L) no-repeat;
}

/* --- Barra do topo ----------------------------------------------------------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 68px; padding-inline: var(--pad); border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--f-sans); letter-spacing: 0.16em; justify-self: start; }
.brand img { border-radius: 6px; image-rendering: pixelated; }
.brand.small { font-size: 12px; gap: 8px; }
.nav { display: flex; gap: 2px; }
.nav a { font: 12.5px var(--f-mono); color: var(--ink-dim); padding: 8px 12px; border-radius: 4px; transition: color 0.3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--accent); }
.actions { display: flex; gap: 8px; justify-self: end; }
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  font: 600 13px var(--f-sans); border-radius: 6px; border: 0; cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn { background: var(--accent); color: var(--accent-on); box-shadow: 0 6px 24px -10px var(--accent); }
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn:active, .btn-ghost:active { transform: translateY(1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink-dim); background: transparent; }
.btn-ghost:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn.big, .btn-ghost.big { height: 48px; padding: 0 22px; font-size: 15px; }
.btn .mono, .btn-ghost .mono { font-size: 12px; opacity: 0.7; }

/* --- Hero -------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 40px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--aurora) 16%, transparent), transparent 60%); pointer-events: none;
}
.stage { position: relative; width: min(1120px, 100%); margin: 0 auto; aspect-ratio: 1 / 0.64; container-type: inline-size; }
.text-col { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 2cqw; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 2.4cqw;
  font: 12px var(--f-mono); color: var(--ink-dim);
  padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); z-index: 4;
}
.kicker .dot { width: 7px; height: 7px; background: var(--aurora); border-radius: 50%; box-shadow: 0 0 8px var(--aurora); }
.word { margin: 0; font: 700 19cqw/0.82 var(--f-sans); letter-spacing: -0.04em; white-space: nowrap; user-select: none; }
.word-back { position: relative; z-index: 1; background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 30%, var(--bg))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-app {
  position: absolute; z-index: 2; left: 50%; top: 21cqw; margin: 0; width: 46cqw;
  transform: translateX(-50%) rotate(-1.5deg); border-radius: 1.2cqw; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 3cqw 6cqw -2cqw rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 8cqw -2cqw color-mix(in srgb, var(--accent) 40%, transparent);
}
.hero-app img { width: 100%; height: auto; image-rendering: pixelated; }
.hero-fera { position: absolute; z-index: 3; width: 13cqw; height: auto; image-rendering: pixelated; filter: drop-shadow(0 1.2cqw 1cqw rgba(0, 0, 0, 0.6)); animation: bob 3.2s var(--ease) infinite alternate; }
.hero-fera.f1 { left: 6cqw; top: 25cqw; }
.hero-fera.f2 { right: 5cqw; top: 22cqw; animation-delay: -1.1s; }
.hero-fera.f3 { right: 11cqw; top: 38cqw; width: 10cqw; animation-delay: -2.2s; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-1.2cqw); } }
.hero-lede { position: absolute; z-index: 4; left: 50%; bottom: 0; transform: translateX(-50%); width: min(640px, 92%); margin: 0; text-align: center; text-wrap: balance; font-size: clamp(14px, 1.7cqw, 18px); color: var(--ink-dim); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.hero-keys { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 12.5px; color: var(--ink-mute); }
.hero-keys kbd { margin-right: 6px; color: var(--accent-2); }

/* --- Janelas e seções ------------------------------------------------------- */
.win-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: var(--sunken); border-bottom: 1px solid var(--line); font: 11.5px var(--f-mono); color: var(--ink-mute); }
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.lights i:first-child { background: var(--accent); }
.win-title { color: var(--ink-dim); }
.copy { margin-left: auto; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-dim); font: 11px var(--f-mono); transition: color 0.3s var(--ease); }
.copy:hover { color: var(--ink); }

.section { position: relative; padding: clamp(48px, 6vw, 88px) var(--pad); border-bottom: 1px solid var(--line); }
.section.flush { padding-inline: 0; padding-bottom: 0; }
.sec-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head.pad { padding-inline: var(--pad); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 11.5px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 2px; }
h2 { margin: 0; font: 700 clamp(28px, 3.8vw, 44px)/1.08 var(--f-sans); letter-spacing: -0.035em; text-wrap: balance; }
.sub { margin: 14px 0 0; max-width: 60ch; color: var(--ink-dim); font-size: 16px; text-wrap: pretty; }
.sub b { color: var(--ink); font-weight: 600; }

/* --- Demo jogável ------------------------------------------------------------ */
.demo { position: relative; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.demo-frame { position: relative; aspect-ratio: 3 / 2; }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-start { position: absolute; inset: 0; border: 0; padding: 0; background: #000; cursor: pointer; display: grid; place-items: center; }
.demo-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; opacity: 0.6; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.demo-start:hover img { opacity: 0.75; transform: scale(1.015); }
.demo-start .btn { position: relative; }

/* --- Recursos ---------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.cell { padding: clamp(22px, 3vw, 34px) var(--pad); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.cell:nth-child(3n) { border-right: 0; }
.ck { margin: 0 0 12px; font: 11.5px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.ck .i { color: var(--accent); margin-right: 4px; }
.cell h3 { margin: 0 0 8px; font: 600 19px/1.2 var(--f-sans); letter-spacing: -0.02em; }
.cp { margin: 0 0 20px; color: var(--ink-dim); font-size: 14.5px; }
.mock { margin-top: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--sunken); padding: 14px; min-height: 96px; display: flex; align-items: center; }
.mock > * { width: 100%; }
.m-hp { display: grid; gap: 10px; }
.m-hp div { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-dim); }
.m-hp em { font-style: normal; color: var(--ink-mute); font-size: 11px; }
.m-hp i { position: relative; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.m-hp i::before { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--hp); }
.m-hp i.low::before { background: var(--hp-low); }
.m-hp b { font-size: 11.5px; font-weight: 500; color: var(--accent); }
.m-tipos { display: flex; flex-wrap: wrap; gap: 5px; }
.m-tipos span { font: 600 11px var(--f-sans); padding: 2px 8px; border-radius: 999px; background: var(--c); color: #fff; }
.m-evo { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-mute); }
.m-evo img { width: 56px; height: 56px; image-rendering: pixelated; }
.m-vs { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 10px 14px; border-radius: 4px; background: #5a1838; }
.m-vs span { font-size: 10.5px; color: var(--accent); letter-spacing: 0.08em; }
.m-vs b { font-size: 22px; line-height: 1.1; }
.m-vs em { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 700 26px var(--f-sans); font-style: normal; color: #fff; text-shadow: 2px 2px 0 #e04848; }
.m-badges { display: flex; gap: 8px; }
.m-badges span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-dim); }
.m-badges i { width: 26px; height: 26px; background: var(--c); clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); }
.m-keys { display: flex; gap: 8px; }
.m-keys span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 6px; }
.m-keys em { font-style: normal; font-size: 11px; color: var(--ink-mute); }

/* --- Feras ------------------------------------------------------------------- */
.feras { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fera { position: relative; padding: 14px 10px 16px; text-align: center; background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.3s var(--ease); }
.fera:hover { background: var(--card); }
.fera:hover img { transform: translateY(-4px) scale(1.04); }
.fera img { width: 88px; height: 88px; margin: 0 auto 8px; image-rendering: pixelated; transition: transform 0.5s var(--ease); }
.fera .num { display: block; font: 10.5px var(--f-mono); color: var(--ink-mute); }
.fera .nome { display: block; font-weight: 600; font-size: 13.5px; }
.fera.lendaria::after { content: "lendária"; position: absolute; top: 8px; right: 8px; font: 9.5px var(--f-mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.tipos { display: flex; justify-content: center; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.tipo { font: 600 10.5px var(--f-sans); padding: 1px 7px; border-radius: 999px; color: #fff; }
.skeleton { height: 160px; cursor: default; }
.skeleton::before { content: ""; position: absolute; inset: 16px; border-radius: 6px; background: var(--card); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* --- Mundo ------------------------------------------------------------------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px); align-items: start; }
.shot { margin: 0; }
.shot.wide { grid-column: 1 / -1; }
.shot img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-2); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9); image-rendering: pixelated; }
.shot figcaption { margin-top: 10px; font-size: 11.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }

/* --- Números ----------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 4px; }
.stats > div { padding: 22px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats dt { font: 11.5px var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); margin-bottom: 10px; }
.stats dd { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.stats b { font: 700 clamp(26px, 3vw, 36px)/1 var(--f-sans); letter-spacing: -0.03em; }
.stats span { font-size: 13px; color: var(--ink-dim); }

/* --- Download ---------------------------------------------------------------- */
.dl-sec { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(64px, 8vw, 110px); overflow: hidden; }
.dl-sec::before { content: ""; position: absolute; left: 50%; top: 30%; width: 60%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%); pointer-events: none; }
.dl-icon { position: relative; margin-bottom: 26px; border-radius: 26px; image-rendering: pixelated; box-shadow: 0 0 60px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.dl-sec .eyebrow { justify-content: center; }
.dl-title { font-size: clamp(36px, 5.5vw, 64px); }
.dl-sec .sub { margin-inline: auto; }
.dl-btns { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.fine { margin: 18px 0 0; font-size: 11.5px; color: var(--ink-mute); }
.fine a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }

/* --- Rodapé ------------------------------------------------------------------ */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px var(--pad); font-size: 12px; }
.foot .brand img { border-radius: 5px; }
.foot a { color: var(--ink-dim); transition: color 0.3s var(--ease); }
.foot a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 16px; }

/* --- Modal da fera ----------------------------------------------------------- */
.fera-modal { position: relative; margin: auto; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--ink); padding: 32px; width: min(360px, 90vw); text-align: center; }
.fera-modal::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.fera-modal[open] { animation: pop 0.5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px); } }
.fera-modal img { width: 192px; height: 192px; margin: 0 auto 12px; image-rendering: pixelated; }
.fm-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-dim); cursor: pointer; font-size: 20px; line-height: 1; }
.fm-close:hover { color: var(--ink); }
.fm-id { margin: 0; font-size: 12px; color: var(--ink-mute); }
.fera-modal h3 { margin: 4px 0; font: 700 30px/1.1 var(--f-sans); letter-spacing: -0.02em; }
.fm-cat { margin: 0 0 12px; color: var(--ink-dim); }
.fm-tipos { display: flex; justify-content: center; gap: 6px; }

/* --- Revelação ao rolar ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visivel { opacity: 1; transform: none; }

/* --- Páginas de texto (privacidade, termos, 404) ----------------------------- */
.doc { max-width: 680px; margin: 0 auto; padding: 96px 24px; }
.doc h1 { font: 700 36px/1.1 var(--f-sans); margin: 32px 0 24px; letter-spacing: -0.03em; }
.doc p { color: var(--ink-dim); margin: 0 0 16px; }
.doc .link { color: var(--accent); font: 13px var(--f-mono); }
.doc .btn-primary { display: inline-flex; height: 44px; align-items: center; padding: 0 18px; border-radius: 6px; background: var(--accent); color: var(--accent-on); font-weight: 600; }

/* --- Responsivo -------------------------------------------------------------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .cell:nth-child(2n) { border-right: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .actions .btn-ghost span { display: none; }
  .stage { aspect-ratio: 1 / 1.36; }
  .kicker { font-size: 10.5px; text-align: center; }
  .word { font-size: 22cqw; }
  .hero-app { top: 33cqw; width: 86cqw; }
  .hero-fera.f1 { left: 4cqw; top: 92cqw; width: 17cqw; }
  .hero-fera.f2 { right: 4cqw; top: 90cqw; width: 17cqw; }
  .hero-fera.f3 { display: none; }
  .hero-lede { font-size: 14px; }
  .grid { grid-template-columns: 1fr; }
  .cell { border-right: 0 !important; }
  .shots { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 16px; }
  .feras { grid-template-columns: repeat(3, 1fr); }
  .fera img { width: 72px; height: 72px; }
  .foot { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
