/* Saleshubai: estilo único do site. Cada página escolhe o tema em <body data-tema="estudio|candy|orion">. */

:root {
  /* Sales Hub AI: preto/grafite, dourado e o bege do logotipo */
  --bg: #0c0b0d;
  --bg2: #141215;
  --card: #161417;
  --ink: #f5f0ed;
  --muted: #b8b5b0;
  --line: rgba(245, 240, 237, .09);
  --accent: #e0bf4f;
  --accent2: #c28e2a;
  --accent-ink: #1a1406;
  --accent-dark: #a8781f;
  --bege: #cdc5ba;
  --glow: rgba(224, 191, 79, .32);
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --head-weight: 800;
  --head-track: -.035em;
  --radius: 28px;
  --max: 1560px;
  --pad: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

/* Candy Inc: morango, menta, mel, ameixa e rosa claro (tokens do jogo) */
body[data-tema="candy"] {
  --bg: #fff1f5;
  --bg2: #ffe4ec;
  --card: #ffffff;
  --ink: #4a1f42;
  --muted: #8e6383;
  --line: #f6cad8;
  --accent: #f0436a;
  --accent-dark: #c12a50;
  --accent2: #34c99a;
  --mel: #ffb627;
  --ameixa: #6b2d5c;
  --accent-ink: #ffffff;
  --glow: rgba(240, 67, 106, .35);
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --head-weight: 700;
  --head-track: -.01em;
  color-scheme: light;
}

/* Orion (Mecânico Surf e Jogo do Mecânico): preto + laranja com brilho */
body[data-tema="orion"] {
  --bg: #0c0c0c;
  --bg2: #141414;
  --card: #181818;
  --ink: #f4f1ec;
  --muted: #a9a49c;
  --line: rgba(255, 255, 255, .08);
  --accent: #ff7a00;
  --accent-dark: #c25c00;
  --accent2: #ffb347;
  --accent-ink: #1a0d00;
  --glow: rgba(255, 122, 0, .45);
  --font-head: "Russo One", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --head-weight: 400;
  --head-track: 0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font-body); overflow-x: hidden; overflow-x: clip;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.05; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.faixa { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
@media (min-width: 720px) { :root { --pad: clamp(32px, 4.5vw, 80px); } }

/* ---------- Entrada suave (só com JS e sem reduced-motion) ---------- */
html.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
html.js .rv.on { opacity: 1; transform: none; }

/* ---------- Topo (fixo, mais alto; fundo sólido/blur ao rolar; menu hambúrguer no celular) ---------- */
:root { --topo-h: 68px; }
@media (min-width: 900px) { :root { --topo-h: 84px; } }
.topo { position: fixed; inset: 0 0 auto 0; z-index: 30; padding-top: env(safe-area-inset-top); }
/* o fundo fica num pseudo-elemento: backdrop-filter no próprio topo prenderia o menu fixo dentro dele */
.topo::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s var(--ease);
  background: color-mix(in srgb, var(--bg) 84%, transparent); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.topo.solido::before { opacity: 1; }
html.menu-aberto .topo::before { opacity: 1; background: var(--bg); }
.topo .faixa { display: flex; align-items: center; gap: 12px; height: var(--topo-h); }
.marca { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; color: var(--ink); text-decoration: none;
  font: 800 18px/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.02em; }
.marca img { height: 32px; width: auto; display: block; transform-origin: left center; transition: transform .4s var(--ease); }
@media (max-width: 359px) { .marca img { height: 28px; } }
@media (min-width: 900px) { .marca img { height: 40px; } .topo.solido .marca img { transform: scale(.92); } }
body[data-tema="candy"] .marca { background: #141215; padding: 9px 16px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(74,31,66,.45); }
body[data-tema="candy"] .marca img { height: 24px; }
@media (min-width: 900px) { body[data-tema="candy"] .marca img { height: 30px; } }
.marca-rodape { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 800 19px/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.02em; margin-bottom: 10px; }
.marca-rodape img { height: 30px; width: auto; }
.logo-estudio { width: min(100%, 520px); height: auto; }

.menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.menu a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15.5px; opacity: .82; transition: opacity .2s, background .2s; }
.menu a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 9px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu a:hover { opacity: 1; }
.menu a:hover::after { transform: scaleX(1); }
.idiomas { display: inline-flex; gap: 2px; padding: 3px; margin-left: 8px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 70%, transparent); }
.idiomas button { min-width: 44px; min-height: 38px; border: 0; background: none; font: 800 13px/1 var(--font-body); letter-spacing: .04em;
  color: var(--muted); padding: 0 10px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.idiomas button:hover { color: var(--ink); }
.idiomas button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
body[data-tema="candy"] .idiomas { background: rgba(255,255,255,.8); border: 2px solid var(--line); }
.hamb { display: none; }

@media (max-width: 899px) {
  .hamb { display: grid; place-items: center; position: relative; margin-left: auto; width: 48px; height: 48px; flex: none; border: 0; cursor: pointer;
    border-radius: 14px; color: var(--ink); background: color-mix(in srgb, var(--ink) 9%, transparent); }
  body[data-tema="candy"] .hamb { background: rgba(255,255,255,.85); box-shadow: 0 0 0 2px var(--line); }
  .hamb span { position: absolute; left: 14px; right: 14px; top: 50%; height: 2.5px; margin-top: -1.25px; border-radius: 2px; background: currentColor;
    transition: transform .35s var(--ease), opacity .2s; }
  .hamb span:nth-child(1) { transform: translateY(-7px); }
  .hamb span:nth-child(3) { transform: translateY(7px); }
  html.menu-aberto .hamb span:nth-child(1) { transform: rotate(45deg); }
  html.menu-aberto .hamb span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  html.menu-aberto .hamb span:nth-child(3) { transform: rotate(-45deg); }
  html.menu-aberto { overflow: hidden; }
  .menu { position: fixed; z-index: -2; left: 0; right: 0; top: calc(var(--topo-h) + env(safe-area-inset-top)); bottom: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--bg);
    padding: 12px max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    opacity: 0; visibility: hidden; transform: translateY(-14px);
    transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s linear .45s; }
  html.menu-aberto .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s; }
  .menu a { min-height: 60px; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(12px);
    font: var(--head-weight) clamp(22px, 6.4vw, 28px)/1.2 var(--font-head); letter-spacing: var(--head-track);
    transition: opacity .4s var(--ease), transform .5s var(--ease); }
  .menu a::after { display: none; }
  html.menu-aberto .menu a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 90ms); }
  .menu .idiomas { align-self: flex-start; margin: 28px 0 0; opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease) .3s, transform .5s var(--ease) .3s; }
  html.menu-aberto .menu .idiomas { opacity: 1; transform: none; }
  .menu .idiomas button { min-height: 44px; min-width: 56px; font-size: 14px; }
}

/* ---------- Botões ---------- */
.botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 30px -10px var(--glow); transition: transform .2s var(--ease), box-shadow .2s; }
.botao:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--glow); }
.botao.fantasma { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.botao.fantasma:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.botao svg { width: 20px; height: 20px; flex: none; }
body[data-tema="estudio"] .botao:not(.fantasma) { background: linear-gradient(100deg, #ecd06a, var(--accent) 45%, var(--accent2)); }
body[data-tema="candy"] .botao:not(.fantasma) { box-shadow: 0 5px 0 var(--accent-dark), 0 14px 30px -12px var(--glow); }
body[data-tema="candy"] .botao:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--accent-dark); }

/* Selos das lojas (desenhados aqui; quando publicar, ver comentário no HTML) */
.lojas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.loja { position: relative; display: inline-flex; align-items: center; gap: 11px; min-width: 160px; height: 56px; padding: 0 16px 0 14px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1.5px solid rgba(255,255,255,.28);
  transition: transform .2s var(--ease), box-shadow .2s; box-shadow: 0 12px 30px -14px rgba(0,0,0,.6); }
.loja:hover { transform: translateY(-2px); }
.loja svg { width: 28px; height: 28px; flex: none; }
.loja span { display: flex; flex-direction: column; line-height: 1.1; }
.loja small { font: 600 11px/1.1 system-ui, sans-serif; letter-spacing: .02em; opacity: .85; }
.loja b { font: 600 20px/1.1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.01em; }
.loja.em-breve { cursor: default; }
.loja.em-breve:hover { transform: none; }
.loja.em-breve::after { content: attr(data-fita); position: absolute; top: -9px; right: -8px; font: 800 10.5px/1 var(--font-body);
  text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 4px 10px -2px var(--glow); }
body[data-tema="candy"] .loja { background: var(--ameixa); border-color: transparent; box-shadow: 0 5px 0 #3d1535, 0 14px 30px -14px rgba(107,45,92,.6); }
body[data-tema="orion"] .loja { background: #111; border-color: rgba(255,122,0,.55); }

.selo { display: inline-flex; align-items: center; gap: 8px; font: 800 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); }
.selo::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Home: herói ---------- */
.h-estudio { position: relative; overflow: hidden; padding: 112px 0 56px; isolation: isolate; }
.h-estudio::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(48% 55% at 78% 34%, rgba(224,191,79,.20), transparent 70%),
    radial-gradient(40% 45% at 12% 90%, rgba(194,142,42,.16), transparent 70%),
    linear-gradient(180deg, #0c0b0d, #111013); }
.h-estudio::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%); }
.h-estudio .faixa { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .h-estudio { padding: 140px 0 96px; min-height: 760px; } .h-estudio .faixa { grid-template-columns: 1.05fr .95fr; gap: 24px; } }
.h-estudio h1 { font-size: clamp(46px, 11vw, 92px); margin: 18px 0 20px; }
.h-estudio h1 em { font-style: normal; background: linear-gradient(95deg, #f3dc86, #e0bf4f 45%, #c28e2a);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-estudio .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 540px; }

/* Leque com as artes dos jogos */
.leque { position: relative; height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
@media (min-width: 960px) { .leque { height: 560px; } }
.leque a { position: absolute; top: 50%; left: 50%; width: 46%; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12); transition: transform .5s var(--ease), box-shadow .4s; }
.leque img { width: 100%; height: 100%; object-fit: cover; }
.leque a:nth-child(1) { transform: translate(-112%, -46%) rotate(-11deg); }
.leque a:nth-child(2) { transform: translate(-50%, -54%); z-index: 2; }
.leque a:nth-child(3) { transform: translate(12%, -46%) rotate(11deg); }
.leque a:nth-child(1):hover { transform: translate(-116%, -52%) rotate(-13deg) scale(1.03); }
.leque a:nth-child(2):hover { transform: translate(-50%, -60%) scale(1.03); }
.leque a:nth-child(3):hover { transform: translate(16%, -52%) rotate(13deg) scale(1.03); }
.leque a:hover { z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .leque { animation: flutua 7s ease-in-out infinite; }
}
@keyframes flutua { 50% { translate: 0 -10px; } }

/* ---------- Seções ---------- */
.secao { padding: 64px 0; }
@media (min-width: 720px) { .secao { padding: 104px 0; } }
.cab-secao { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 36px; }
.cab-secao h2 { font-size: clamp(32px, 6vw, 56px); margin-top: 12px; }
.cab-secao p { color: var(--muted); max-width: 440px; margin: 0; }

/* ---------- Home: cards dos jogos ---------- */
.grade-jogos { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grade-jogos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grade-jogos { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.jogo { --cor: #8b6cff; position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5.2;
  border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.jogo > img.arte { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; z-index: -2; height: 75% !important;
  transition: transform 1s var(--ease), filter .6s; }
.jogo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 22%, color-mix(in srgb, var(--cor) 45%, rgba(0,0,0,.6)) 48%, color-mix(in srgb, var(--cor) 40%, #000) 66%, color-mix(in srgb, var(--cor) 22%, #000)); }
.jogo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); transform: translateX(-120%); transition: transform 1.1s var(--ease); }
.jogo:hover { transform: translateY(-8px); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 40px 80px -30px var(--cor); }
.jogo:hover > img.arte { transform: scale(1.07); filter: saturate(1.15); }
.jogo:hover::after { transform: translateX(120%); }
.jogo .info { padding: 24px; }
@media (min-width: 720px) { .jogo .info { padding: 28px; } }
.jogo .icone { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 8px 20px rgba(0,0,0,.45), 0 0 0 2px rgba(255,255,255,.25); margin-bottom: 16px; }
.jogo .tag { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.jogo h3 { font: 800 clamp(26px, 3vw, 32px)/1.05 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.03em; margin: 6px 0 8px; }
.jogo p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.86); }
.jogo .ver { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: background .3s; }
.jogo:hover .ver { background: #fff; color: #111; }
.jogo.candy { --cor: #f0436a; }
.jogo.surf { --cor: #ff7a00; }
.jogo.orion { --cor: #c25c00; }

/* Valores do estúdio */
.valores { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 760px) { .valores { grid-template-columns: repeat(3, 1fr); } }
.valores div { background: var(--bg); padding: 32px 28px; }
.valores svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 18px; }
.valores h3 { font-size: 21px; margin-bottom: 8px; }
.valores p { color: var(--muted); margin: 0; font-size: 16px; }

/* Faixa de contato */
.cta { position: relative; overflow: hidden; border-radius: 36px; padding: 48px 24px; text-align: center; isolation: isolate;
  background: radial-gradient(80% 120% at 50% 0%, rgba(224,191,79,.22), transparent 70%), var(--bg2); border: 1px solid var(--line); }
@media (min-width: 720px) { .cta { padding: 80px 48px; } }
.cta h2 { font-size: clamp(30px, 6vw, 56px); margin-bottom: 14px; }
.cta p { color: var(--muted); margin: 0 auto; max-width: 520px; }
.cta .botoes { justify-content: center; }
.cta .email { font: 800 clamp(18px, 4vw, 26px)/1.2 var(--font-head); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }

/* ---------- Herói de jogo ---------- */
.h-jogo { position: relative; overflow: hidden; isolation: isolate; padding: 96px 0 56px; }
@media (min-width: 960px) { .h-jogo { padding: 120px 0 88px; min-height: min(920px, 100svh); display: flex; align-items: center; } }
.h-jogo .faixa { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .h-jogo .faixa { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.h-jogo .borrado { position: absolute; inset: -10%; z-index: -3; width: 120%; height: 120%; object-fit: cover; filter: blur(46px) saturate(1.3); opacity: .55; transform: scale(1.1); }
.h-jogo .logo-jogo { width: min(78vw, 400px); margin: 0 0 6px -6px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.18)); }
.app-id { display: flex; align-items: center; gap: 14px; margin: 18px 0 18px; }
.app-id img { width: 64px; height: 64px; border-radius: 18px; flex: none; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.h-jogo h1 { font-size: clamp(40px, 9vw, 76px); }
.h-jogo .frase { font-size: clamp(18px, 2.3vw, 21px); color: var(--muted); max-width: 560px; margin-top: 18px; }

/* Celular com a arte */
.celular { position: relative; justify-self: center; width: min(74vw, 360px); }
.celular .tela { position: relative; border-radius: 46px; padding: 10px; background: #0d0d0f;
  box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 50px 100px -30px rgba(0,0,0,.65), 0 0 80px -10px var(--glow); }
.celular .tela::before { content: ""; position: absolute; top: 20px; left: 50%; width: 28%; height: 24px; transform: translateX(-50%); border-radius: 999px; background: #0d0d0f; z-index: 2; }
.celular .tela img { width: 100%; aspect-ratio: 9 / 19; object-fit: cover; border-radius: 37px; }
.celular .icone-flutua { position: absolute; left: -22px; bottom: 54px; width: 92px; height: 92px; border-radius: 24px; z-index: 3;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,.55), 0 0 0 4px var(--bg); transform: rotate(-8deg); }
@media (prefers-reduced-motion: no-preference) {
  .celular { animation: flutua 6s ease-in-out infinite; }
}
@media (min-width: 960px) { .celular { transform: rotate(3deg); } .celular .icone-flutua { left: -46px; width: 112px; height: 112px; border-radius: 28px; } }

/* Candy: céu rosa e confeitos */
body[data-tema="candy"] .h-jogo { background: radial-gradient(70% 60% at 85% 20%, #fff 0%, transparent 70%), linear-gradient(180deg, #ffd6e4 0%, #fff1f5 100%); }
body[data-tema="candy"] .h-jogo .borrado { opacity: .35; }
body[data-tema="candy"] .h-jogo h1 { color: var(--ameixa); }
body[data-tema="candy"] .h-jogo h1 span { color: var(--accent); }
.confeitos { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.confeitos i { position: absolute; top: var(--y, 10%); width: 10px; height: 26px; border-radius: 999px; background: var(--c, #f0436a); opacity: .8; transform: rotate(var(--r, 30deg)); }
.confeitos i.b { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .confeitos i { animation: boia var(--t, 9s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
}
@keyframes boia { 50% { transform: translateY(-18px) rotate(calc(var(--r, 30deg) + 40deg)); } }
body[data-tema="candy"] .celular .tela { background: #fff; box-shadow: 0 0 0 2px #f6cad8, 0 40px 80px -30px rgba(107,45,92,.55), 0 0 80px -10px var(--glow); }
body[data-tema="candy"] .celular .tela::before { display: none; }

/* Orion: escuro, brilhos laranja diagonais */
body[data-tema="orion"] .h-jogo { background: radial-gradient(60% 60% at 80% 40%, rgba(255,122,0,.22), transparent 70%), #0c0c0c; }
body[data-tema="orion"] .h-jogo .borrado { opacity: .32; }
.brilhos { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.brilhos i { position: absolute; left: -20%; width: 140%; height: 2px; top: var(--y, 30%);
  background: linear-gradient(90deg, transparent, rgba(255,140,0,.0) 20%, rgba(255,150,40,.9) 50%, rgba(255,140,0,0) 80%, transparent);
  transform: rotate(-24deg); filter: drop-shadow(0 0 8px rgba(255,122,0,.9)); opacity: var(--o, .55); }
@media (prefers-reduced-motion: no-preference) { .brilhos i { animation: varre var(--t, 7s) ease-in-out infinite; animation-delay: var(--dl, 0s); } }
@keyframes varre { 0%, 100% { translate: -12% 0; opacity: .15; } 50% { translate: 12% 0; opacity: var(--o, .6); } }
body[data-tema="orion"] .h-jogo h1 { text-transform: uppercase; line-height: .98; text-shadow: 0 4px 0 rgba(0,0,0,.6); }
body[data-tema="orion"] .h-jogo h1 span { display: block; color: var(--accent);
  background: linear-gradient(180deg, #ffb347, #ff7a00 60%, #d65f00); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.6)); }
body[data-tema="orion"] .h-jogo .logo-jogo { width: min(46vw, 190px); margin: 0 0 4px; filter: drop-shadow(0 8px 24px rgba(255,122,0,.25)); }
body[data-tema="orion"] .celular .tela { box-shadow: 0 0 0 2px rgba(255,122,0,.55), 0 50px 100px -30px #000, 0 0 90px -10px var(--glow); }
body[data-tema="orion"] .selo { color: var(--accent2); }

/* ---------- Galeria ---------- */
.galeria-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.galeria-cab h2 { font-size: clamp(30px, 5.5vw, 52px); margin-top: 12px; }
.setas { display: none; gap: 10px; }
@media (min-width: 720px) { .setas { display: flex; } }
.setas button { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: border-color .2s, transform .2s; }
.setas button:hover { border-color: var(--accent); transform: translateY(-2px); }
.setas svg { width: 22px; height: 22px; }
.galeria { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 28px; margin: 0 -16px;
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; scroll-padding: 0 16px; }
.galeria::-webkit-scrollbar { display: none; }
.galeria.arrastando { cursor: grabbing; scroll-snap-type: none; }
.galeria.arrastando img { pointer-events: none; }
@media (min-width: 720px) { .galeria { gap: 24px; padding-bottom: 36px; } }
/* faixa de largura total: encosta nas bordas da tela e alinha o 1º print com o texto */
.galeria { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%);
  scroll-padding: 0 calc(50vw - 50%); }
.galeria figure { margin: 0; flex: none; width: clamp(220px, 18vw, 320px); scroll-snap-align: start; }
.galeria img { width: 100%; aspect-ratio: 720 / 1564; object-fit: cover; border-radius: 26px; background: var(--bg2);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.55); user-select: none; -webkit-user-drag: none; transition: transform .4s var(--ease); }
.galeria figure:hover img { transform: translateY(-6px); }
body[data-tema="candy"] .galeria img { box-shadow: 0 0 0 4px #fff, 0 24px 50px -24px rgba(107,45,92,.5); }
body[data-tema="orion"] .galeria img { box-shadow: 0 0 0 1px rgba(255,122,0,.3), 0 24px 50px -24px #000; }

/* ---------- Recursos ---------- */
.recursos { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 640px) { .recursos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .recursos { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.recursos li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s; }
.recursos li:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.recursos .ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 20px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.recursos .ic svg { width: 28px; height: 28px; }
.recursos h3 { font-size: 21px; margin-bottom: 8px; }
.recursos p { margin: 0; color: var(--muted); font-size: 16px; }
body[data-tema="candy"] .recursos li { border: 2px solid var(--line); box-shadow: 0 6px 0 var(--line); }
body[data-tema="candy"] .recursos li:nth-child(3n+2) .ic { background: #d6f6ec; color: #1f9c76; }
body[data-tema="candy"] .recursos li:nth-child(3n) .ic { background: #fff0cf; color: #d08c08; }
body[data-tema="orion"] .recursos li { background: linear-gradient(160deg, #1c1c1c, #121212); }
body[data-tema="orion"] .recursos li::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent); opacity: .8; }
body[data-tema="orion"] .recursos h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .01em; }

/* ---------- Ajuda (política e suporte) ---------- */
.links-app { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .links-app { grid-template-columns: 1fr 1fr; } }
.links-app a { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: var(--head-weight) 20px/1.2 var(--font-head); transition: transform .3s var(--ease), border-color .3s; }
.links-app a:hover { transform: translateY(-3px); border-color: var(--accent); }
.links-app .ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; flex: none; background: var(--accent); color: var(--accent-ink); }
.links-app .ic svg { width: 26px; height: 26px; }
.links-app small { display: block; color: var(--muted); font: 500 15px/1.4 var(--font-body); margin-top: 4px; }
.links-app .vai { margin-left: auto; color: var(--muted); flex: none; }
body[data-tema="candy"] .links-app a { border: 2px solid var(--line); box-shadow: 0 6px 0 var(--line); }

/* ---------- Documento (política, suporte) ---------- */
.doc-topo { position: relative; overflow: hidden; isolation: isolate; padding: 112px 0 40px; }
.doc-topo .borrado { position: absolute; inset: -20%; width: 140%; height: 140%; z-index: -2; object-fit: cover; filter: blur(50px) saturate(1.3); opacity: .45; }
.doc-topo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, var(--bg)); }
.doc-topo .faixa, .doc .faixa { max-width: 840px; }
.voltar { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; color: var(--ink); margin-bottom: 22px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line); }
.voltar img { width: 34px; height: 34px; border-radius: 10px; }
.doc-topo h1 { font-size: clamp(32px, 6vw, 52px); }
body[data-tema="orion"] .doc-topo h1 { text-transform: uppercase; }
.doc-topo .meta { color: var(--muted); margin-top: 14px; }
.doc-topo .meta a { font-weight: 700; }
.doc { padding: 0 0 72px; }
.doc .caixa { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; font-size: 17.5px; line-height: 1.75; }
@media (min-width: 720px) { .doc .caixa { padding: 44px 52px; } }
body[data-tema="candy"] .doc .caixa { border: 2px solid var(--line); box-shadow: 0 8px 0 var(--line); }
.doc h2 { font-size: 23px; margin: 1.8em 0 .5em; color: var(--accent); }
body[data-tema="candy"] .doc h2 { color: var(--accent-dark); }
body[data-tema="orion"] .doc h2 { font-size: 19px; text-transform: uppercase; }
.doc .caixa > h2:first-child, .doc .caixa > p:first-child { margin-top: 0; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; }
.doc li::marker { color: var(--accent); }
.doc hr { border: 0; border-top: 2px dashed var(--line); margin: 36px 0; }
.doc .botoes { margin-top: 32px; }
.doc a { overflow-wrap: anywhere; }

/* ---------- Rodapé ---------- */
.rodape { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 15px; }
.rodape .faixa { display: grid; gap: 28px; }
@media (min-width: 800px) { .rodape .faixa { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.rodape .marca { margin-bottom: 12px; }
.rodape p { margin: 0; }
.rodape a { color: var(--ink); text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.rodape a:hover { color: var(--accent); }
.rodape nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
@media (min-width: 800px) { .rodape nav { justify-content: flex-end; } }
.rodape .fim { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .rv { opacity: 1; transform: none; }
}
.jogo.candy > img.arte { object-position: 50% 58%; }
.jogo.surf > img.arte { object-position: 50% 32%; }
@media (max-width: 480px) {
  .lojas { gap: 10px; }
  .loja { flex: 1 1 0; min-width: 0; padding: 0 10px; gap: 8px; height: 54px; }
  .loja svg { width: 24px; height: 24px; }
  .loja b { font-size: 17px; white-space: nowrap; }
  .loja small { font-size: 10px; }
}

/* ---------- Telas largas: usar mais a largura ---------- */
@media (max-width: 719px) { .galeria figure { width: 64vw; } }
@media (min-width: 1400px) {
  .h-estudio h1 { font-size: clamp(84px, 6.2vw, 112px); }
  .leque { max-width: 640px; height: 660px; }
  .h-jogo h1 { font-size: clamp(64px, 5vw, 92px); }
  .celular { width: 400px; }
  .h-jogo .frase, .h-estudio .lead { max-width: 640px; }
  .jogo .info { padding: 36px; }
}
@media (min-width: 1800px) { .leque { max-width: 720px; height: 740px; } .celular { width: 440px; } }

.ouro { background: linear-gradient(95deg, #f3dc86, #e0bf4f 45%, #c28e2a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Home: áreas (o que fazemos) ---------- */
.areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .areas { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.area { position: relative; overflow: hidden; padding: 30px 28px; border-radius: var(--radius); isolation: isolate;
  background: linear-gradient(160deg, #18161b, #111013); border: 1px solid var(--line); transition: transform .45s var(--ease), border-color .3s; }
@media (min-width: 1400px) { .area { padding: 40px 36px; } }
.area::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(224,191,79,.16), transparent 70%); opacity: 0; transition: opacity .5s; }
.area:hover { transform: translateY(-5px); border-color: rgba(224,191,79,.45); }
.area:hover::before { opacity: 1; }
.area .ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; margin-bottom: 22px; color: #1a1406;
  background: linear-gradient(140deg, #f0d677, #e0bf4f 50%, #c28e2a); box-shadow: 0 10px 26px -10px rgba(224,191,79,.6); }
.area .ic svg { width: 28px; height: 28px; }
.area h3 { font-size: 23px; margin-bottom: 10px; }
.area p { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.area .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.area .tags span { font-size: 12.5px; font-weight: 700; color: var(--bege); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }

/* ---------- Home: destaque do Megap ---------- */
.destaque-megap { position: relative; display: grid; grid-template-columns: 1fr; overflow: hidden; isolation: isolate; border-radius: 32px;
  text-decoration: none; color: #fff; background: radial-gradient(70% 120% at 85% 50%, rgba(242,103,34,.28), transparent 65%), #0f0f0f;
  border: 1px solid rgba(242,103,34,.25); margin-bottom: 56px; transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; }
@media (min-width: 860px) { .destaque-megap { grid-template-columns: 1.15fr .85fr; min-height: 400px; } }
.destaque-megap:hover { transform: translateY(-6px); border-color: rgba(242,103,34,.6); box-shadow: 0 40px 90px -40px rgba(242,103,34,.55); }
.destaque-megap::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent 20%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); }
.destaque-megap .txt { padding: 32px 26px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 860px) { .destaque-megap .txt { padding: 56px 60px; } }
.destaque-megap .icone { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 20px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 12px 30px -10px #000; }
.destaque-megap .tag { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff9a62; }
.destaque-megap h3 { font: 800 clamp(34px, 4.4vw, 60px)/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.035em; margin: 10px 0 14px; }
.destaque-megap p { color: rgba(255,255,255,.75); max-width: 560px; font-size: 17.5px; margin-bottom: 26px; }
.destaque-megap .ver { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; padding: 12px 20px; border-radius: 999px; background: #F26722; color: #fff; }
.destaque-megap .visual { display: grid; place-items: center; padding: 0 26px 36px; }
.destaque-megap .visual svg { width: min(70%, 340px); filter: drop-shadow(0 20px 50px rgba(242,103,34,.45)); transition: transform .8s var(--ease); }
.destaque-megap:hover .visual svg { transform: scale(1.06) rotate(-3deg); }
@media (min-width: 860px) { .destaque-megap .visual { padding: 40px; } }
.sub-produtos { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 22px; color: var(--bege); }

/* Placa do Megap no leque */
.tile-megap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(80% 60% at 50% 45%, rgba(242,103,34,.35), transparent 70%), #0d0d0d; }
.tile-megap svg { width: 62%; filter: drop-shadow(0 14px 30px rgba(242,103,34,.5)); }
.tile-megap b { font: 800 clamp(18px, 2vw, 26px)/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #fff; letter-spacing: -.02em; }

/* ---------- Tema Megap CRM (preto + laranja #F26722, Sora/Inter) ---------- */
body[data-tema="megap"] {
  --bg: #0e0e0e; --bg2: #151515; --card: #181818; --ink: #ffffff; --muted: #a0a0a0; --line: #2d2d2d;
  --accent: #F26722; --accent-dark: #c44f12; --accent2: #ff9a62; --accent-ink: #ffffff; --glow: rgba(242,103,34,.45);
  --font-head: "Sora", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif; --head-weight: 700; --head-track: -.03em;
  color-scheme: dark;
}
.h-megap { background: radial-gradient(55% 70% at 78% 45%, rgba(242,103,34,.24), transparent 70%), #0e0e0e; }
.h-megap .grade-fundo { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 70% 45%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000, transparent 75%); }
.h-megap .logo-jogo { width: min(60vw, 260px); margin: 0 0 6px; }
.h-megap h1 span { display: block; color: var(--accent); }
.h-megap .botoes { margin-top: 30px; }
.h-megap .lojas { margin-top: 18px; }
body[data-tema="megap"] .loja { background: #111; border-color: #2d2d2d; }
.marca-grande { justify-self: center; width: min(80vw, 520px); }
.marca-grande .placa { position: relative; aspect-ratio: 1; border-radius: 48px; display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 45%, rgba(242,103,34,.30), transparent 70%), linear-gradient(160deg, #1a1a1a, #0b0b0b);
  border: 1px solid #2d2d2d; box-shadow: 0 50px 120px -40px rgba(242,103,34,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.marca-grande svg { width: 64%; filter: drop-shadow(0 24px 50px rgba(242,103,34,.5)); }
@media (prefers-reduced-motion: no-preference) { .marca-grande .placa { animation: flutua 6s ease-in-out infinite; } }
body[data-tema="megap"] .recursos li { background: linear-gradient(160deg, #1b1b1b, #121212); }
body[data-tema="megap"] .links-app .ic { color: #fff; }

/* ---------- Selos oficiais das lojas (v2) ---------- */
.lojas { gap: 14px; }
.loja { min-width: 196px; height: 64px; padding: 0 22px 0 16px; gap: 12px; border-radius: 13px; background: #000 !important;
  border: 1.5px solid #a6a6a6 !important; color: #fff; box-shadow: 0 14px 34px -16px rgba(0,0,0,.7) !important;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, border-color .3s; }
.loja svg { width: 32px; height: 32px; }
.loja.play svg { width: 30px; height: 30px; }
.loja small { font: 500 11.5px/1.15 -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; letter-spacing: .01em; opacity: .92; }
.loja.play small { text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; }
.loja b { font: 600 23px/1.05 -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; letter-spacing: -.015em; }
.loja:hover, .loja.em-breve:hover { transform: translateY(-3px) scale(1.03); border-color: #fff !important; }
.loja.em-breve::after { top: -8px; right: 10px; font-size: 9.5px; padding: 4px 7px; background: #2b2b2b; color: #fff; box-shadow: 0 0 0 1.5px #a6a6a6; }
body[data-tema="candy"] .loja.em-breve::after { background: var(--accent); box-shadow: none; }
body[data-tema="orion"] .loja.em-breve::after { background: var(--accent); color: #1a0d00; box-shadow: none; }
@media (max-width: 480px) {
  .loja { height: 58px; padding: 0 10px; gap: 8px; }
  .loja svg, .loja.play svg { width: 26px; height: 26px; }
  .loja b { font-size: 18px; }
  .loja small { font-size: 9.5px; }
}

/* Spring nos botões e cards */
.botao, .links-app a, .recursos li, .jogo, .area, .galeria img { transition-timing-function: cubic-bezier(.34,1.56,.64,1) !important; }
.botao:hover { transform: translateY(-3px) scale(1.03); }

/* ---------- Hero em tela cheia com a arte do jogo ---------- */
.h-cheio { min-height: min(100svh, 980px); display: flex; align-items: center; }
.h-cheio .fundo-arte { position: absolute; inset: -6% -4%; z-index: -3; will-change: transform; }
.h-cheio .fundo-arte img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.h-cheio .borrado { display: none; }
body[data-tema="candy"] .h-cheio { background: none; }
body[data-tema="candy"] .h-cheio::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(255,241,245,.97) 0%, rgba(255,241,245,.9) 34%, rgba(255,241,245,.35) 62%, rgba(255,241,245,.1) 100%),
              linear-gradient(0deg, #fff1f5 0%, transparent 22%); }
@media (max-width: 959px) { body[data-tema="candy"] .h-cheio::before { background: linear-gradient(180deg, rgba(255,241,245,.95) 0%, rgba(255,241,245,.86) 55%, rgba(255,241,245,.55) 80%, #fff1f5 100%); } }
body[data-tema="orion"] .h-cheio { background: #0c0c0c; }
body[data-tema="orion"] .h-cheio .fundo-arte img { filter: saturate(1.1); }
body[data-tema="orion"] .h-cheio::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.82) 38%, rgba(10,10,10,.35) 70%, rgba(10,10,10,.55) 100%),
              linear-gradient(0deg, #0c0c0c 0%, transparent 25%); }
@media (max-width: 959px) { body[data-tema="orion"] .h-cheio::before { background: linear-gradient(180deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.75) 55%, rgba(10,10,10,.6) 80%, #0c0c0c 100%); } }
.palco { position: relative; justify-self: center; }
.palco .celular { animation: none; transform: none; will-change: transform; }
.palco .celular .tela { transform: rotate(3deg); }
@media (prefers-reduced-motion: no-preference) { .palco .celular .tela { animation: flutua 6s ease-in-out infinite; } }

/* Elementos flutuando (doces, bonecos) com parallax */
.flutuantes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.h-jogo > .flutuantes { z-index: -1; }
.flut { position: absolute; width: var(--w); will-change: transform; }
.flut img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.28)); }
@media (prefers-reduced-motion: no-preference) {
  .flut img { animation: boiar 6s ease-in-out infinite; animation-delay: var(--dl, 0s); }
}
@keyframes boiar { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(5deg); } }
@media (max-width: 700px) { .h-jogo > .flutuantes .flut { width: calc(var(--w) * .55); opacity: .9; } }
.palco .flut { width: calc(var(--w) * .8); }
@media (min-width: 960px) { .palco .flut { width: var(--w); } }

/* Faíscas laranja subindo (Orion) */
.faiscas { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.faiscas i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffb347;
  box-shadow: 0 0 8px 2px rgba(255,122,0,.8); opacity: 0; transform: scale(var(--s, 1)); }
@media (prefers-reduced-motion: no-preference) { .faiscas i { animation: faisca var(--t, 6s) linear infinite; animation-delay: var(--dl, 0s); } }
@keyframes faisca { 0% { transform: translate(0, 0) scale(var(--s)); opacity: 0; } 10% { opacity: 1; } 80% { opacity: .8; }
  100% { transform: translate(60px, -95vh) scale(calc(var(--s) * .4)); opacity: 0; } }

/* ---------- Bloco "baixe agora" ---------- */
.baixe { position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; display: grid; align-items: center; min-height: 380px; padding: 44px 24px; }
@media (min-width: 860px) { .baixe { padding: 72px 64px; grid-template-columns: 1.1fr .9fr; } }
.baixe-arte { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; transition: transform 1.2s var(--ease); }
.baixe:hover .baixe-arte { transform: scale(1.04); }
.baixe::before { content: ""; position: absolute; inset: 0; z-index: -1; }
body[data-tema="candy"] .baixe::before { background: linear-gradient(90deg, rgba(240,67,106,.96), rgba(193,42,80,.85) 50%, rgba(107,45,92,.35)); }
body[data-tema="orion"] .baixe::before { background: linear-gradient(90deg, rgba(10,10,10,.96), rgba(10,10,10,.8) 50%, rgba(255,122,0,.25)); }
body[data-tema="orion"] .baixe { border: 1px solid rgba(255,122,0,.35); }
.baixe-icone { width: 88px; height: 88px; border-radius: 24px; margin-bottom: 20px; box-shadow: 0 16px 36px -12px rgba(0,0,0,.6); }
.baixe h2 { font-size: clamp(30px, 5vw, 56px); color: #fff; }
body[data-tema="orion"] .baixe h2 { text-transform: uppercase; }
.baixe p { color: rgba(255,255,255,.85); margin: 12px 0 0; font-size: 18px; }

/* ---------- Ajuda com 3 cards e links legais no rodapé ---------- */
@media (min-width: 900px) { .links-app.tres { grid-template-columns: repeat(3, 1fr); } }
.rodape .legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.rodape .legal a { font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.rodape .legal a:hover { color: var(--accent); }
@media (min-width: 960px) { .palco .celular { width: 330px; } }
@media (min-width: 1800px) { .palco .celular { width: 380px; } }
@media (max-width: 480px) { .lojas { flex-wrap: nowrap; } .loja { min-width: 0; flex: 1 1 0; } }

/* =====================================================================
   v3: responsivo fino, safe-area e motion (só transform/opacity)
   ===================================================================== */

/* Respiro do topo fixo e tipografia fluida */
.h-estudio { padding-top: calc(var(--topo-h) + env(safe-area-inset-top) + 40px); }
@media (min-width: 960px) { .h-estudio { padding-top: calc(var(--topo-h) + 64px); } }
.h-jogo { padding-top: calc(var(--topo-h) + env(safe-area-inset-top) + 32px); }
@media (min-width: 960px) { .h-jogo { padding-top: calc(var(--topo-h) + 40px); } }
.doc-topo { padding-top: calc(var(--topo-h) + env(safe-area-inset-top) + 40px); }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
.h-estudio h1 { font-size: clamp(36px, 11.5vw, 92px); }
.h-jogo h1 { font-size: clamp(36px, 10vw, 76px); }
.cab-secao h2, .galeria-cab h2 { font-size: clamp(28px, 7vw, 56px); }
.cta h2, .baixe h2 { font-size: clamp(28px, 7vw, 56px); }
.doc-topo h1 { font-size: clamp(28px, 7vw, 52px); }
body { font-size: clamp(16px, 1rem + .1vw, 17px); }
@media (min-width: 1400px) { .h-estudio h1 { font-size: clamp(84px, 6.2vw, 112px); } .h-jogo h1 { font-size: clamp(64px, 5vw, 92px); } }

/* Áreas de toque >= 44px */
.rodape nav a, .rodape .legal a { display: inline-flex; align-items: center; min-height: 44px; }
.rodape nav { gap: 0 22px; }
.rodape .legal { gap: 0 18px; margin-top: 6px; }
.rodape { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.rodape p a, .cta .email { display: inline-block; padding: 10px 0; }
.voltar { min-height: 46px; }

/* Botões e selos das lojas que nunca estouram a largura */
@media (max-width: 480px) {
  .botoes .botao { flex: 1 1 100%; }
  .lojas { flex-wrap: wrap; }
  .loja { flex: 1 1 150px; min-width: 0; }
}
@media (max-width: 359px) { .loja b { font-size: 16px; } .loja small { font-size: 9px; } .botao { padding: 12px 18px; } }

/* Leque das artes (home) */
.leque-par { width: 100%; }
.leque { height: clamp(340px, 108vw, 440px); max-width: 440px; }
@media (min-width: 960px) { .leque { height: 560px; max-width: 520px; } }
@media (min-width: 1400px) { .leque { max-width: 640px; height: 660px; } }
@media (min-width: 1800px) { .leque { max-width: 720px; height: 740px; } }
.leque a { width: 44%; }
@media (min-width: 960px) { .leque a { width: 46%; } }
.leque a { transition: transform .9s cubic-bezier(.34,1.4,.64,1), box-shadow .4s; }
.leque a:nth-child(1) { transition-delay: .25s; } .leque a:nth-child(3) { transition-delay: .35s; }
.leque.on a { transition-delay: 0s; }
html.js .leque.rv:not(.on) a:nth-child(1), html.js .leque.rv:not(.on) a:nth-child(3) { transform: translate(-50%, -50%) rotate(0deg) scale(.92); }
html.js .leque.rv:not(.on) a:nth-child(2) { transform: translate(-50%, -50%) scale(.92); }
html.js .leque.rv { transform: none; }
/* brilho que atravessa as artes do leque */
.leque a::after { content: ""; position: absolute; inset: -20% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,240,200,.35) 50%, transparent 58%); transform: translateX(-70%); }
@media (prefers-reduced-motion: no-preference) {
  .leque.on a::after { animation: varre-luz 6.5s var(--ease) infinite; }
  .leque.on a:nth-child(2)::after { animation-delay: 1.2s; } .leque.on a:nth-child(3)::after { animation-delay: 2.4s; }
}
@keyframes varre-luz { 0% { transform: translateX(-70%); } 35%, 100% { transform: translateX(70%); } }

/* Logo da home com brilho dourado animado (máscara com o próprio logo) */
.logo-brilho { position: relative; display: block; width: min(100%, 520px); margin-bottom: 30px; }
.logo-brilho .logo-estudio { width: 100%; }
.logo-brilho .reflexo { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: url(../img/marca/logo-horizontal-svg.svg) center / 100% 100% no-repeat; mask: url(../img/marca/logo-horizontal-svg.svg) center / 100% 100% no-repeat; }
.logo-brilho .reflexo::before { content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 50%;
  background: linear-gradient(100deg, transparent 10%, rgba(255,248,214,.95) 50%, transparent 90%); transform: translateX(-10%); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .logo-brilho.on .reflexo::before { animation: brilho-logo 5s var(--ease) .9s infinite; } }
@keyframes brilho-logo { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 42% { transform: translateX(400%); opacity: 1; } 50%, 100% { transform: translateX(400%); opacity: 0; } }

/* Auras do herói (gradiente, sem blur) */
.aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; display: block; width: 62vmax; height: 62vmax; border-radius: 50%; }
.aura i::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(224,191,79,.20), transparent 62%); }
.aura i:nth-child(1) { right: -22vmax; top: -18vmax; }
.aura i:nth-child(2) { left: -26vmax; bottom: -30vmax; }
.aura i:nth-child(2)::before { background: radial-gradient(circle, rgba(194,142,42,.16), transparent 62%); }
@media (prefers-reduced-motion: no-preference) {
  .aura i::before { animation: pulsa 9s ease-in-out infinite; }
  .aura i:nth-child(2)::before { animation-duration: 12s; animation-delay: -4s; }
}
@keyframes pulsa { 50% { transform: scale(1.12); opacity: .7; } }
.faiscas.ouro i { background: #f3dc86; box-shadow: 0 0 8px 2px rgba(224,191,79,.7); }
@media (max-width: 699px) { .faiscas i:nth-child(n+9) { display: none; } }

/* Contadores */
.numeros { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.numeros > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.numeros dt { margin: 0; }
.numeros b { font: 800 clamp(30px, 4vw, 44px)/1 var(--font-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(95deg, #f3dc86, #e0bf4f 45%, #c28e2a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numeros dd { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.3; max-width: 16ch; }
body[data-tema="megap"] .numeros b { background: none; color: var(--accent); }
body[data-tema="megap"] .numeros dd { max-width: 22ch; }

/* Faixa corrida com as áreas (marquee) */
.marquee { position: relative; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(224,191,79,.05), transparent 40%, rgba(224,191,79,.05));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .trilho { display: flex; align-items: center; gap: 28px; width: max-content; }
.marquee span { flex: none; font: 800 clamp(20px, 3vw, 34px)/1 var(--font-head); letter-spacing: -.02em; color: var(--bege); white-space: nowrap; }
.marquee span:nth-of-type(3n+2) { color: transparent; -webkit-text-stroke: 1px rgba(224,191,79,.75); }
.marquee i { flex: none; width: 10px; height: 10px; transform: rotate(45deg); background: linear-gradient(140deg, #f3dc86, #c28e2a); border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .marquee .trilho { animation: corre 38s linear infinite; }
  .marquee:hover .trilho { animation-play-state: paused; }
}
@keyframes corre { to { transform: translateX(calc(-50% - 14px)); } }

/* Linha dourada que se desenha nos cabeçalhos de seção */
.cab-secao.rv::after { content: ""; flex: 0 0 100%; height: 1px; margin-top: 6px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent) 40%, transparent);
  transition: transform 1.4s var(--ease) .25s; }
.cab-secao.rv.on::after { transform: scaleX(1); }
html:not(.js) .cab-secao.rv::after { transform: none; }

/* Variações de entrada */
html.js .rv.zoom { transform: translateY(24px) scale(.96); }
html.js .rv.zoom.on { transform: none; }

/* Ícones das áreas e dos recursos: entram girando e balançam no hover */
.area .ic, .recursos .ic { transition: transform .7s cubic-bezier(.34,1.56,.64,1), opacity .5s var(--ease); transition-delay: calc(var(--d, 0s) + .25s); }
html.js .area.rv:not(.on) .ic, html.js .recursos li.rv:not(.on) .ic { transform: scale(.4) rotate(-25deg); opacity: 0; }
.area .ic svg, .recursos .ic svg { transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.area:hover .ic svg, .recursos li:hover .ic svg { transform: scale(1.15) rotate(-8deg); }
@media (prefers-reduced-motion: no-preference) {
  .area:hover .ic, .recursos li:hover .ic { animation: quica .6s cubic-bezier(.34,1.56,.64,1); }
}
@keyframes quica { 40% { transform: translateY(-6px); } }

/* Tilt 3D (JS só com mouse): luz que segue o cursor */
.area, .recursos li, .jogo, .destaque-megap { transform-style: preserve-3d; }
.tiltando { transition: transform .12s ease-out !important; }
.luz-tilt { position: absolute; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 62%); opacity: 0; transition: opacity .35s; z-index: -1; }
.tiltando .luz-tilt { opacity: 1; }
body[data-tema="candy"] .luz-tilt { background: radial-gradient(circle, rgba(240,67,106,.10), transparent 62%); }
.recursos li { isolation: isolate; }
.destaque-megap .visual svg { position: relative; }

/* Valores com linha dourada */
.valores > div { position: relative; overflow: hidden; }
.valores > div::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) calc(var(--d, 0s) + .2s); }
.valores > div.on::before { transform: scaleX(1); }
html:not(.js) .valores > div::before { transform: none; }

/* Megap da home: anéis girando atrás do logo */
.destaque-megap .visual { position: relative; }
.anel { position: absolute; left: 50%; top: 50%; width: min(78%, 360px); aspect-ratio: 1; margin: 0; border-radius: 50%;
  border: 1px dashed rgba(242,103,34,.35); transform: translate(-50%, -50%); pointer-events: none; }
.anel.b { width: min(58%, 270px); border: 1px solid rgba(255,255,255,.08); border-top-color: rgba(242,103,34,.7); }
@media (prefers-reduced-motion: no-preference) {
  .anel { animation: gira 40s linear infinite; }
  .anel.b { animation-duration: 9s; }
}
@keyframes gira { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Megap: placa com anéis, brilho e chips flutuantes */
.marca-grande { position: relative; }
.marca-grande .placa { overflow: hidden; isolation: isolate; }
.marca-grande .placa::after { content: ""; position: absolute; inset: 10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(242,103,34,.35), transparent 65%); }
@media (prefers-reduced-motion: no-preference) { .marca-grande .placa::after { animation: pulsa 5s ease-in-out infinite; } }
.marca-grande svg { position: relative; }
.chips { position: absolute; inset: 0; pointer-events: none; }
.chip { position: absolute; display: block; }
.chip-in { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; white-space: nowrap;
  font: 600 clamp(12px, 1.2vw, 14.5px)/1 var(--font-body); color: #fff; background: rgba(24,24,24,.86); border: 1px solid #333;
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.8); }
.chip-in svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.chip.c1 { left: -4%; top: 12%; } .chip.c2 { right: -6%; top: 30%; } .chip.c3 { left: -8%; bottom: 20%; } .chip.c4 { right: 0; bottom: 6%; }
@media (prefers-reduced-motion: no-preference) { .chip-in { animation: boiar 6s ease-in-out infinite; animation-delay: var(--dl, 0s); } }
html.js .marca-grande.rv:not(.on) .chip-in { opacity: 0; }
.marca-grande .chip-in { transition: opacity .6s var(--ease) .6s; }
@media (max-width: 599px) {
  .chip-in { padding: 8px 11px; gap: 6px; font-size: 12px; }
  .chip-in svg { width: 15px; height: 15px; }
  .chip.c1 { left: 0; top: 4%; } .chip.c2 { right: 0; top: 26%; } .chip.c3 { left: 0; bottom: 18%; } .chip.c4 { right: 0; bottom: 2%; }
}
.marca-grande { width: min(84vw, 520px); }

/* Galeria: snap firme no toque e larguras certas */
.galeria { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
@media (max-width: 419px) { .galeria figure { width: 72vw; } }

/* Herói dos jogos no celular */
@media (max-width: 599px) {
  .h-jogo .logo-jogo { width: min(70vw, 300px); }
  .app-id img { width: 54px; height: 54px; border-radius: 15px; }
  .celular { width: min(70vw, 300px); }
}

/* Mais largura útil em telas grandes */
@media (min-width: 1800px) { :root { --max: 1680px; } }

/* Sem rolagem lateral em nada decorativo */
.h-estudio, .h-jogo, .baixe, .cta, .destaque-megap, .marquee { max-width: 100vw; }

/* Galeria sangra até a borda pelo padding da faixa (100vw contava a barra de rolagem e criava rolagem lateral) */
.galeria { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad);
  scroll-padding: 0 var(--pad); }
.marca-grande { width: min(100%, 520px); }
.idiomas button { min-height: 44px; }
.links-app a > span:not(.ic):not(.vai) { min-width: 0; }
.links-app small { overflow-wrap: anywhere; }
.cta .email { padding: 11px 0; }
.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px clamp(14px, 3vw, 32px); max-width: 620px; }
.numeros > div { flex-direction: column; align-items: flex-start; gap: 8px; }
.numeros dd { max-width: none; font-size: clamp(13px, 1.1vw + 9px, 15px); }
body[data-tema="megap"] .numeros dd { max-width: none; }
