/* Prumo · família estudio_v1 (G5b). Desenho do site de estúdio de games.
 *
 * As cores e as fontes vêm do tokens.css, gerado para cada kit. Este arquivo não declara nenhuma das 8 cores nem
 * as fontes: ele só compõe. Os 3 layouts de topo (cinema, arcade e editorial) usam a mesma estrutura e mudam aqui,
 * pela classe do <body>.
 */

:root {
  --calha: clamp(16px, 4.2vw, 56px);
  --largura: 1240px;
  --raio: 18px;
  --raio-g: clamp(22px, 3vw, 40px);
  --cab: 68px;
  --linha: color-mix(in srgb, var(--texto) 16%, transparent);
  --linha-forte: color-mix(in srgb, var(--texto) 34%, transparent);
  --vidro: color-mix(in srgb, var(--fundo) 74%, transparent);
  --brilho: color-mix(in srgb, var(--primaria) 55%, transparent);
  --curva: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cab) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-corpo);
  font-size: clamp(1rem, .94rem + .3vw, 1.14rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-tema="escuro"] { color-scheme: dark; }
body[data-tema="claro"] { color-scheme: light; }

img,
video,
canvas,
svg { display: block; max-width: 100%; }

h1,
h2,
h3 { text-wrap: balance; }

h1,
h2 {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  letter-spacing: -.025em;
  line-height: .98;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h2 { font-size: clamp(2rem, 1.1rem + 4.2vw, 4.6rem); }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

::selection { background: var(--primaria); color: var(--sobre-primaria); }

.miolo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
}

/* Botões */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: 0 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--primaria);
  color: var(--sobre-primaria);
  font-family: var(--fonte-titulo);
  font-size: 1rem;
  font-weight: var(--peso-titulo);
  letter-spacing: -.005em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--curva), box-shadow .25s var(--curva), background-color .2s, translate .5s cubic-bezier(.3, 1.5, .5, 1);
}

.botao:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px -12px var(--brilho), 0 0 0 1px var(--brilho);
}

.botao:active { transform: translateY(0) scale(.98); }

.botao-p { min-height: 44px; padding: 0 1.15em; font-size: .92rem; }

.botao-g { min-height: 60px; padding: 0 1.7em; font-size: clamp(1.02rem, .95rem + .4vw, 1.22rem); }

.botao-g .seta { transition: transform .25s var(--curva); }

.botao-g:hover .seta { transform: translateX(5px); }

.botao-inv { background: var(--sobre-primaria); color: var(--primaria); }

.botao-inv:hover { box-shadow: 0 14px 34px -14px var(--sobre-primaria); }

.botao-fantasma {
  background: color-mix(in srgb, var(--texto) 10%, transparent);
  color: var(--texto);
}

/* Faixa de prévia e cabeçalho */

.faixa p { margin: 0; }

.faixa {
  display: block;
  padding: 8px var(--calha);
  background: var(--superficie);
  color: var(--texto-suave);
  font-size: .82rem;
  line-height: 1.35;
  text-align: center;
}

.cab {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--cab);
  padding: 10px var(--calha);
  background: var(--vidro);
  border-bottom: 1px solid var(--linha);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
}

.marca-simbolo { width: 40px; height: 40px; flex: none; object-fit: contain; }

.marca-viva { display: inline-block; width: 40px; height: 40px; flex: none; }
.marca-viva svg { display: block; width: 100%; height: 100%; overflow: visible; }

.marca-nome {
  overflow: hidden;
  font-family: var(--fonte-titulo);
  font-size: clamp(1.05rem, .95rem + .5vw, 1.4rem);
  font-weight: var(--peso-titulo);
  letter-spacing: var(--espaco-nome, -.02em);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cab-acoes { display: flex; align-items: center; gap: clamp(4px, 1.5vw, 18px); flex: none; }

.cab-idioma {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .7em;
  border-radius: 999px;
  color: var(--texto-suave);
  font-size: .92rem;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}

.cab-idioma:hover { background: color-mix(in srgb, var(--texto) 8%, transparent); color: var(--texto); }

@media (max-width: 540px) {
  .cab .botao { display: none; }
}

/* Cenas 2D: sempre atrás do conteúdo, com tamanho dado pelo CSS (o runtime mede o canvas) */

.topo,
.secao { position: relative; isolation: isolate; overflow: clip; }

.cena {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cena-fundo {
  opacity: .78;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

/* Topo: partes comuns */

.topo-texto {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: start;
  gap: clamp(16px, 2.4vh, 28px);
  min-width: 0;
}

.olho {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--texto);
  font-family: var(--fonte-titulo);
  font-size: .78rem;
  font-weight: var(--peso-titulo);
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.olho li {
  padding: .62em .9em .56em;
  border: 1px solid var(--linha-forte);
  border-radius: 999px;
  background: var(--vidro);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

h1 { font-size: clamp(2.5rem, 1.2rem + 6.2vw, 7.4rem); }

.destaque { color: var(--primaria); }

.topo-sub {
  max-width: 34ch;
  color: var(--texto-suave);
  font-size: clamp(1.08rem, .95rem + .75vw, 1.6rem);
  line-height: 1.38;
  text-wrap: pretty;
}

.topo-midia { position: relative; z-index: 1; min-width: 0; background: var(--superficie); }

.topo-midia picture,
.topo-midia img,
.topo-midia video { width: 100%; height: 100%; }

.topo-midia img,
.topo-midia video { object-fit: cover; }

.topo-midia video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}

.topo-midia.tocando video { opacity: 1; }

.topo-sem-midia .topo-midia { background: none; }

.topo-sem-midia .topo-midia img { object-fit: contain; padding: clamp(24px, 9%, 96px); }

.botao-3d {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 46px;
  padding: 0 1.1em 0 .9em;
  border: 1px solid var(--linha-forte);
  border-radius: 999px;
  background: var(--vidro);
  color: var(--texto);
  font-family: var(--fonte-titulo);
  font-size: .9rem;
  font-weight: var(--peso-titulo);
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  transition: transform .25s var(--curva), border-color .2s, background-color .2s;
}

.botao-3d[hidden] { display: none; }

.botao-3d:hover { transform: translateY(-2px); border-color: var(--acento); }

.botao-3d svg { color: var(--acento); }

/* Topo · cinema: o vídeo ocupa a tela, a cena 2D entra por cima como luz e o título fecha embaixo */

.layout-cinema .topo {
  display: grid;
  align-items: end;
  min-height: min(980px, calc(100svh - var(--cab) - 36px));
  padding: clamp(96px, 20vh, 220px) var(--calha) clamp(36px, 7vh, 88px);
}

.layout-cinema .topo-midia { position: absolute; inset: 0; z-index: auto; }

.layout-cinema .topo-midia picture,
.layout-cinema .topo-midia video { z-index: 1; }

.layout-cinema .topo-midia picture { position: absolute; inset: 0; }

.layout-cinema .cena-topo { z-index: 2; opacity: .5; mix-blend-mode: screen; }

.layout-cinema[data-tema="claro"] .cena-topo { opacity: .38; mix-blend-mode: multiply; }

.layout-cinema .topo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(to top, var(--fundo) 1%, color-mix(in srgb, var(--fundo) 72%, transparent) 30%, transparent 66%),
    linear-gradient(to right, color-mix(in srgb, var(--fundo) 66%, transparent), transparent 54%);
  pointer-events: none;
}

.layout-cinema .topo-texto { max-width: min(100%, 62rem); }

/* No computador o símbolo vai para a direita, para o título não cobrir a peça. */
@media (min-width: 900px) {
  .layout-cinema .topo-midia picture,
  .layout-cinema .topo-midia video { inset: 0 -30% 0 0; width: 130%; max-width: none; }
  .layout-cinema .topo-texto { max-width: min(58%, 46rem); }
  .layout-cinema .topo-sem-midia .topo-midia img { object-position: 82% 50%; }
  .layout-cinema h1 { font-size: clamp(3rem, 1rem + 4.6vw, 6.2rem); }
}

.layout-cinema .botao-3d { right: var(--calha); bottom: clamp(20px, 5vh, 44px); }

/* No celular a mídia ocupa a parte de cima, e o texto fecha embaixo, sobre o degradê. */
@media (max-width: 720px) {
  .layout-cinema .topo { padding-top: clamp(260px, 44svh, 420px); padding-bottom: 92px; }
  .layout-cinema .topo-midia { inset: 0 0 30% 0; }
  .layout-cinema .topo::after {
    background: linear-gradient(to top, var(--fundo) 30%, color-mix(in srgb, var(--fundo) 70%, transparent) 46%, transparent 72%);
  }
  .layout-cinema .botao-3d { top: 16px; right: var(--calha); bottom: auto; }
}

/* Topo · arcade: texto de um lado, o símbolo num quadro de fliperama do outro, e a cena viva atrás de tudo */

.layout-arcade .topo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  min-height: min(940px, calc(100svh - var(--cab) - 36px));
  padding: clamp(40px, 7vh, 96px) var(--calha) clamp(56px, 9vh, 120px);
}

.layout-arcade .topo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 90% at 0% 50%, color-mix(in srgb, var(--fundo) 86%, transparent), transparent 70%);
  pointer-events: none;
}

.layout-arcade .topo-midia {
  justify-self: center;
  width: min(100% - 28px, 520px);
  aspect-ratio: 4 / 5;
  border: 3px solid var(--texto);
  border-radius: var(--raio-g);
  box-shadow: 8px 8px 0 var(--primaria), 16px 16px 0 var(--secundaria);
  overflow: hidden;
  transform: rotate(-2.2deg);
  transition: transform .5s var(--curva);
}

.layout-arcade .topo-midia:hover { transform: rotate(0) scale(1.01); }

.layout-arcade .topo-sem-midia .topo-midia { background: var(--superficie); }

.layout-arcade .botao-3d { left: 50%; right: auto; transform: translateX(-50%); }

.layout-arcade .botao-3d:hover { transform: translateX(-50%) translateY(-2px); }

@media (min-width: 900px) {
  .layout-arcade .topo { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .layout-arcade .topo-midia {
    justify-self: end;
    width: min(100% - 28px, 560px);
    aspect-ratio: 1 / 1.08;
    box-shadow: 12px 12px 0 var(--primaria), 24px 24px 0 var(--secundaria);
  }
  .layout-arcade h1 { font-size: clamp(3rem, 1rem + 5.2vw, 6.4rem); }
}

/* Topo · editorial: o título gigante vem primeiro, e o símbolo entra numa faixa larga abaixo */

.layout-editorial .topo {
  display: grid;
  gap: clamp(28px, 5vh, 64px);
  padding: clamp(40px, 8vh, 112px) var(--calha) 0;
}

.layout-editorial .cena-topo {
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 78%);
}

.layout-editorial .topo-texto { gap: clamp(18px, 3vh, 34px); }

.layout-editorial h1 {
  max-width: 14ch;
  font-size: clamp(2.9rem, .6rem + 10.6vw, 11.5rem);
  line-height: .9;
  letter-spacing: -.04em;
}

.layout-editorial .topo-sub { max-width: 40ch; }

.layout-editorial .topo-midia {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--linha);
  border-bottom: 0;
  border-radius: var(--raio-g) var(--raio-g) 0 0;
  overflow: hidden;
}

.layout-editorial .botao-3d { top: 16px; bottom: auto; }

@media (min-width: 760px) {
  .layout-editorial .topo-texto { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .layout-editorial .olho,
  .layout-editorial h1 { grid-column: 1 / -1; }
  .layout-editorial .topo-midia { aspect-ratio: 21 / 9; }
}

/* Fita com o nome da marca */

.fita {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(12px, 1.8vw, 22px) 0;
  border-block: 1px solid var(--linha);
  background: var(--fundo);
}

.fita-trilho {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  width: max-content;
  animation: fita 38s linear infinite;
}

.fita-item {
  font-family: var(--fonte-titulo);
  font-size: clamp(1.5rem, 1rem + 3vw, 3.4rem);
  font-weight: var(--peso-titulo);
  letter-spacing: -.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.fita-vazado { color: transparent; -webkit-text-stroke: 1.4px var(--texto); }

.fita-ponto {
  flex: none;
  width: clamp(10px, 1.2vw, 16px);
  aspect-ratio: 1;
  background: var(--acento);
  border-radius: 3px;
  transform: rotate(45deg);
}

@keyframes fita {
  to { transform: translateX(-50%); }
}

/* Seções */

.secao { padding: clamp(84px, 14vh, 190px) var(--calha); }

.promessa { display: grid; gap: clamp(22px, 4vw, 72px); }

.promessa-texto {
  max-width: 42ch;
  color: var(--texto-suave);
  font-size: clamp(1.14rem, 1rem + .9vw, 1.72rem);
  line-height: 1.42;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .promessa { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; }
}

.plataformas { display: grid; justify-items: center; gap: clamp(28px, 5vh, 56px); text-align: center; }

.fichas { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 1.6vw, 20px); }

.fichas li {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .72em 1.25em .68em 1em;
  border: 2px solid var(--linha-forte);
  border-radius: 999px;
  background: var(--vidro);
  font-family: var(--fonte-titulo);
  font-size: clamp(1.1rem, .9rem + 1.3vw, 2rem);
  font-weight: var(--peso-titulo);
  letter-spacing: -.01em;
  line-height: 1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .3s var(--curva), border-color .2s;
}

.fichas li::before {
  content: "";
  flex: none;
  width: .56em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--primaria);
  box-shadow: 0 0 0 .22em color-mix(in srgb, var(--primaria) 28%, transparent);
}

.fichas li:nth-child(2n)::before { background: var(--secundaria); box-shadow: 0 0 0 .22em color-mix(in srgb, var(--secundaria) 28%, transparent); }

.fichas li:nth-child(3n)::before { background: var(--acento); box-shadow: 0 0 0 .22em color-mix(in srgb, var(--acento) 28%, transparent); }

.fichas li:hover { transform: translateY(-4px); border-color: var(--texto); }

/* Lista de espera: o ponto alto da página, na cor da marca */

.cartao {
  display: grid;
  gap: clamp(14px, 2.2vh, 24px);
  padding: clamp(28px, 5.5vw, 84px);
  border-radius: var(--raio-g);
  background: var(--primaria);
  color: var(--sobre-primaria);
  box-shadow: 0 40px 120px -50px var(--brilho);
  overflow: hidden;
}

.cartao > * { position: relative; z-index: 1; }

.cartao h2 { max-width: 16ch; }

.cartao-texto { max-width: 46ch; font-size: clamp(1.06rem, .98rem + .5vw, 1.36rem); line-height: 1.42; }

.cartao-marca {
  position: absolute;
  right: -6%;
  bottom: -22%;
  z-index: 0;
  width: min(54%, 460px);
  height: auto;
  opacity: .13;
  transform: rotate(-14deg);
  pointer-events: none;
}

.lista { display: grid; gap: 10px; margin-top: clamp(8px, 1.6vh, 18px); max-width: 620px; }

.lista label { font-size: .92rem; font-weight: var(--peso-corpo-forte); }

.lista-linha { display: flex; flex-wrap: wrap; gap: 10px; }

.lista input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 56px;
  padding: 0 1.2em;
  border: 2px solid color-mix(in srgb, var(--sobre-primaria) 46%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--sobre-primaria) 10%, transparent);
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
  transition: border-color .2s, background-color .2s;
}

.lista input:hover,
.lista input:focus { border-color: var(--sobre-primaria); background: color-mix(in srgb, var(--sobre-primaria) 16%, transparent); }

.lista .botao { flex: 0 0 auto; min-height: 56px; }

.cartao :focus-visible { outline-color: var(--sobre-primaria); }

.confirmacao { min-height: 1.5em; font-family: var(--fonte-titulo); font-weight: var(--peso-titulo); font-size: 1.08rem; }

.confirmacao:not(:empty) { animation: entrar .5s var(--curva) both; }

.confirmacao:not(:empty)::before {
  content: "";
  display: inline-block;
  width: .68em;
  height: .36em;
  margin: 0 .55em .28em .1em;
  border: solid currentColor;
  border-width: 0 0 .17em .17em;
  transform: rotate(-45deg);
}

/* Rodapé */

.rodape { padding: clamp(40px, 7vh, 88px) var(--calha) clamp(36px, 6vh, 72px); border-top: 1px solid var(--linha); }

.rodape-miolo { display: grid; gap: clamp(22px, 4vh, 44px); }

.rodape-frase {
  max-width: 22ch;
  font-family: var(--fonte-titulo);
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3.2rem);
  font-weight: var(--peso-titulo);
  letter-spacing: -.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.rodape-marca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: var(--texto-suave);
  font-size: .95rem;
}

.rodape-marca img { width: 28px; height: 28px; object-fit: contain; }

.rodape-marca span:first-of-type { color: var(--texto); font-family: var(--fonte-titulo); font-weight: var(--peso-titulo); }

.rodape-dominio::before { content: "·"; margin-right: 14px; }

/* Visualizador 3D */

.visor {
  width: min(1120px, calc(100vw - 24px));
  height: min(760px, calc(100svh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--linha-forte);
  border-radius: var(--raio-g);
  background: var(--fundo);
  color: var(--texto);
  box-shadow: 0 60px 160px -40px #000;
  overflow: hidden;
}

.visor::backdrop {
  background: color-mix(in srgb, var(--fundo) 30%, rgb(0 0 0 / .78));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.visor-tela { width: 100%; height: 100%; touch-action: none; }

.visor-estado {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--texto-suave);
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  text-align: center;
  pointer-events: none;
}

.visor-estado:empty { display: none; }

.visor-barra {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  pointer-events: none;
}

.visor-barra .botao { pointer-events: auto; }

.visor-barra .botao-fantasma { background: var(--vidro); border: 1px solid var(--linha-forte); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

.visor:not(.pronto) [data-papel="desmontar-3d"] { visibility: hidden; }

/* Movimento de entrada. Sem JavaScript: tudo já nasce visível, e a animação só existe onde o navegador dá. */

@keyframes entrar {
  from { opacity: 0; transform: translateY(26px); }
}

@media (prefers-reduced-motion: no-preference) {
  .topo-texto > * { animation: entrar .9s var(--curva) both; }
  .topo-texto > :nth-child(2) { animation-delay: .08s; }
  .topo-texto > :nth-child(3) { animation-delay: .18s; }
  .topo-texto > :nth-child(4) { animation-delay: .28s; }

  @supports (animation-timeline: view()) {
    .revelar {
      animation: entrar linear both;
      animation-timeline: view();
      animation-range: entry 4% entry 46%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .fita-trilho { animation: none; }
}

/* ---------- Showroom (rodada 2): fliperama, cabine, trailer e feijões escondidos ---------- */

[hidden] { display: none !important; }

.oculto {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sec-cab { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(28px, 5vw, 56px); }
.sec-cab p { color: var(--texto-suave); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); text-wrap: pretty; }

.secao-fliperama { padding-block: clamp(72px, 11vw, 150px); padding-inline: var(--calha); }

.jogos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

/* No celular, os cartões viram uma vitrine que corre para o lado, como numa loja de apps. Só a vitrine rola. */
@media (max-width: 719px) {
  .jogos {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 300px);
    gap: 14px;
    margin-inline: calc(var(--calha) * -1);
    padding: 6px var(--calha) 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--calha);
    scrollbar-width: none;
  }
  .jogos::-webkit-scrollbar { display: none; }
  .jogo { scroll-snap-align: start; }
  .jogo-tela { aspect-ratio: 9 / 12; }
}

.jogo {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border-radius: var(--raio-g);
  background: var(--superficie);
  border: 1px solid var(--linha);
  overflow: hidden;
  transition: transform .45s var(--curva), box-shadow .45s var(--curva), border-color .3s;
}

.jogo:hover {
  transform: translateY(-6px) rotate(-.4deg);
  border-color: var(--linha-forte);
  box-shadow: 0 30px 60px -30px var(--brilho);
}

.jogo-tela {
  position: relative;
  aspect-ratio: 9 / 13;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--primaria) 26%, var(--fundo)), var(--fundo));
  overflow: hidden;
}

.jogo-demo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s var(--curva);
}

.jogo-demo.ligada { opacity: 1; }

.jogo-tela::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--superficie) 0%, transparent 22%);
}

.jogo-info { display: grid; align-content: start; gap: 10px; padding: clamp(18px, 2vw, 26px); }

.jogo-info h3 {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  letter-spacing: -.02em;
  line-height: 1;
}

.jogo-info p { color: var(--texto-suave); text-wrap: pretty; }

/* O gênero do jogo, do casual ao hardcore (rodada 3) */
.jogo-info .jogo-genero {
  margin: 0 0 -4px;
  color: var(--primaria);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.jogo-botao { justify-self: start; margin-top: 6px; gap: .55em; }
.jogo-botao svg { transition: transform .25s var(--curva); }
.jogo-botao:hover svg { transform: scale(1.18); }

/* Cabine */

.cabine {
  width: min(100vw, 520px);
  max-width: 100vw;
  height: min(100dvh, 900px);
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: clamp(0px, (100vw - 520px) * 999, 28px);
  background: var(--fundo);
  color: var(--texto);
  overflow: hidden;
}

.cabine[open] { display: grid; grid-template-rows: auto 1fr auto; }

.cabine::backdrop { background: color-mix(in srgb, #000 72%, transparent); backdrop-filter: blur(6px); }

.cabine-barra {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px 18px;
  border-bottom: 1px solid var(--linha);
}

.cabine-titulo {
  flex: 1;
  min-width: 0;
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  font-size: 1.2rem;
  letter-spacing: -.01em;
}

.botao-icone {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--linha);
  border-radius: 999px;
  background: transparent;
  color: var(--texto);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.botao-icone:hover { background: color-mix(in srgb, var(--texto) 8%, transparent); border-color: var(--linha-forte); }
.botao-icone .som-mudo { display: none; }
.botao-icone[aria-pressed="true"] .som-mudo { display: inline; }
.botao-icone[aria-pressed="true"] .som-ondas { display: none; }

.cabine-tela { position: relative; min-height: 0; }

.cabine-tela canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}

.cabine-estado {
  position: absolute;
  inset: auto 0 45% 0;
  text-align: center;
  color: var(--texto-suave);
}

.cabine-fim {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--raio-g);
  background: color-mix(in srgb, var(--superficie) 94%, transparent);
  border: 1px solid var(--linha-forte);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .55);
  animation: cabine-sobe .5s var(--curva) both;
}

@keyframes cabine-sobe { from { transform: translateY(40px) scale(.96); opacity: 0; } }

.cabine-novo {
  justify-self: start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--acento);
  color: var(--fundo);
  font-weight: 700;
  font-size: .9rem;
}

.cabine-placar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.cabine-placar dt { color: var(--texto-suave); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.cabine-placar dd {
  margin: 2px 0 0;
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  font-size: clamp(2rem, 1.6rem + 2vw, 2.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cabine-convite { color: var(--texto-suave); text-wrap: pretty; }
.cabine-acoes { display: flex; flex-wrap: wrap; gap: 10px; }

.cabine-dica {
  padding: 10px 18px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha);
  color: var(--texto-suave);
  font-size: .9rem;
  text-align: center;
}

html.cabine-aberta { overflow: hidden; }

/* Trailer */

.secao-trailer { padding-block: clamp(56px, 9vw, 120px); padding-inline: var(--calha); }

.trailer-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--raio-g);
  background: var(--superficie);
  box-shadow: 0 40px 90px -40px var(--brilho);
}

@media (orientation: portrait) and (max-width: 720px) {
  .trailer-video { aspect-ratio: 9 / 16; max-height: 82dvh; margin-inline: auto; width: auto; }
}

/* Feijões escondidos */

.placar-achados {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--linha);
  font-weight: 700;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}

.placar-achados img { width: 24px; height: 24px; object-fit: contain; }
.placar-achados.completo { background: var(--acento); color: var(--fundo); border-color: transparent; }

.achado {
  position: absolute;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: .85;
  transition: transform .35s var(--curva), opacity .3s;
  animation: achado-mexe 4.5s ease-in-out infinite;
}

.achado img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .3)); }
.achado:hover { transform: scale(1.25) rotate(-8deg); opacity: 1; }
.achado-feito { opacity: .35; animation: none; filter: grayscale(.6); }
.achado-pulo { animation: achado-pula .6s var(--curva); }

@keyframes achado-mexe { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-14deg); } 94% { transform: rotate(10deg); } }
@keyframes achado-pula { 40% { transform: translateY(-24px) scale(1.4) rotate(20deg); } }

.achado-topo { right: 0; top: -4px; position: absolute; }
.achado-promessa { right: 0; top: -10px; }
.achado-fliperama { left: clamp(6px, 2vw, 28px); bottom: 18px; }
.achado-lista { right: 14px; bottom: 14px; }
.achado-rodape { right: var(--calha); top: 18px; }
.rodape, .promessa, .cartao { position: relative; }

.achados-aviso {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--texto);
  color: var(--fundo);
  font-weight: 700;
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
}

.achados-aviso.mostrar { animation: aviso-entra 2.6s var(--curva); }
@keyframes aviso-entra { 0% { transform: translate(-50%, 140%); opacity: 0; } 12%, 82% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 140%); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .achado, .achado-pulo, .achados-aviso.mostrar, .cabine-fim { animation: none; }
  .achados-aviso.mostrar { transform: translate(-50%, 0); opacity: 1; }
  .jogo:hover { transform: none; }
}

/* ---------- Produção (rodada 4): aviso da lista, rodapé, privacidade e 404 ---------- */

.lista-aviso {
  max-width: 60ch;
  color: color-mix(in srgb, var(--sobre-primaria) 84%, transparent);
  font-size: .9rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.lista-aviso a {
  text-decoration: underline;
  text-underline-offset: .2em;
  font-weight: var(--peso-corpo-forte);
}

.lista-aviso a:hover { opacity: .88; }

.confirmacao.erro::before { content: none; }

.rodape-link {
  color: var(--texto-suave);
  text-decoration: underline;
  text-underline-offset: .22em;
  transition: color .2s;
}

.rodape-link::before {
  content: "·";
  display: inline-block;
  margin-right: 14px;
  text-decoration: none;
}

.rodape-link:hover { color: var(--texto); }

.privacidade-principal {
  padding: clamp(48px, 8vh, 96px) var(--calha) clamp(64px, 10vh, 128px);
}

.privacidade-artigo {
  display: grid;
  gap: clamp(28px, 4.5vh, 48px);
  max-width: 68ch;
  margin-inline: auto;
}

.privacidade-topo {
  display: grid;
  gap: 14px;
  padding-bottom: clamp(20px, 3vh, 32px);
  border-bottom: 1px solid var(--linha);
}

.privacidade-topo h1 {
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.2rem);
  letter-spacing: -.03em;
  line-height: 1.04;
  text-wrap: balance;
}

.privacidade-vigencia {
  color: var(--texto-suave);
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.privacidade-abertura {
  color: var(--texto);
  font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.privacidade-secao {
  display: grid;
  gap: 12px;
}

.privacidade-secao h2 {
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.65rem);
  letter-spacing: -.02em;
  line-height: 1.15;
}

.privacidade-secao p {
  color: var(--texto-suave);
  line-height: 1.7;
  text-wrap: pretty;
}

.privacidade-artigo a {
  color: var(--primaria);
  text-decoration: underline;
  text-underline-offset: .2em;
  font-weight: var(--peso-corpo-forte);
}

.pagina-404 {
  display: grid;
  min-height: 100svh;
  place-items: center;
}

.pagina-404-principal {
  width: 100%;
  padding: clamp(48px, 8vh, 96px) var(--calha);
}

.pagina-404-miolo {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 48ch;
  margin-inline: auto;
  text-align: center;
}

.pagina-404-marca {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.pagina-404-miolo h1 {
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem);
  letter-spacing: -.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.pagina-404-texto {
  color: var(--texto-suave);
  font-size: clamp(1.02rem, .98rem + .25vw, 1.18rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- Movimento (rodada 5): as classes vêm do estudio.js, só sem "menos movimento" ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pop-pronto .pal { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(7deg) scale(.86); }
  .pop-vista .pal { animation: pal-pula .75s calc(var(--i) * 75ms) cubic-bezier(.34, 1.56, .64, 1) forwards; }

  .destaque.onda { white-space: nowrap; }   /* as letras viram peças, e a palavra não pode quebrar no meio */
  .onda .letra { display: inline-block; animation: letra-onda 7s calc(2.2s + var(--i) * 70ms) ease-in-out infinite; }

  .botao:hover { animation: botao-mola .6s cubic-bezier(.34, 1.56, .64, 1); }
  .botao:active { transform: scale(.94, 1.05); }

  .carta-pronta:not(.carta-vista) { opacity: 0; transform: translateY(70px) rotate(calc((var(--i) - 1) * 8deg)) scale(.92); }
  .carta-vista { animation: carta-entra .85s calc(var(--i) * 120ms) cubic-bezier(.34, 1.4, .64, 1) backwards; }
  .jogo.inclina { transform-style: preserve-3d; }
  .jogo.inclina:hover { transform: perspective(900px) translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .jogo.inclina::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(420px circle at var(--bx, 50%) 20%, rgba(255, 255, 255, .28), transparent 60%);
    transition: opacity .3s;
  }
  .jogo.inclina:hover::before { opacity: 1; }

  .cartao-marca { animation: cata-vento 48s linear infinite; }
  .cartao-marca.gira-rapido { animation: cata-vento-marca 1.1s cubic-bezier(.3, 1.3, .5, 1), cata-vento 48s 1.1s linear infinite; }
  .rodape-marca img.gira-uma { animation: cata-vento-rapido 1.2s .2s cubic-bezier(.3, 1.3, .5, 1) both; }
  .rodape-marca:hover img { animation: cata-vento-rapido .9s cubic-bezier(.3, 1.3, .5, 1); }
}

.feijao-festa { position: fixed; z-index: 60; pointer-events: none; }
.feijao-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  will-change: transform;
}
.feijao-cursor.vivo { opacity: .95; }
.jogo.inclina { position: relative; }

@keyframes pal-pula {
  0% { opacity: 0; transform: translateY(.55em) rotate(7deg) scale(.86); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes letra-onda {
  0%, 9%, 100% { transform: none; }
  3% { transform: translateY(-.16em) rotate(-5deg); }
  6% { transform: translateY(.03em) rotate(2deg) scale(1.04, .96); }
}
@keyframes botao-mola {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(1.07, .93); }
  55% { transform: scale(.97, 1.04); }
  80% { transform: scale(1.01, .99); }
}
@keyframes carta-entra {
  from { opacity: 0; transform: translateY(70px) rotate(calc((var(--i) - 1) * 8deg)) scale(.92); }
}
/* O cata-vento do cartão parte da inclinação de -14° do desenho parado. */
@keyframes cata-vento { from { transform: rotate(-14deg); } to { transform: rotate(346deg); } }
@keyframes cata-vento-marca {
  0% { transform: rotate(-14deg) scale(1); }
  20% { transform: rotate(-32deg) scale(.94); }
  100% { transform: rotate(346deg) scale(1); }
}
@keyframes cata-vento-rapido {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-18deg) scale(.94); }
  100% { transform: rotate(360deg) scale(1); }
}


/* ---------- Acabamento (14/10): trailer com palco, promessa que acende, celular que gira, nome gigante ---------- */

/* Trailer: título, prévia muda em laço e o botão grande que abre o trailer com som. */
.trailer { display: grid; justify-items: center; gap: clamp(26px, 4.5vh, 52px); }
.trailer-titulo { text-align: center; }
.trailer-palco { position: relative; display: grid; place-items: center; width: 100%; isolation: isolate; }
.trailer-palco > .trailer-video, .trailer-palco > .trailer-play { grid-area: 1 / 1; }
.trailer-palco.com-botao::after {
  content: "";
  grid-area: 1 / 1;
  place-self: stretch;
  z-index: 1;
  border-radius: var(--raio-g);
  background: radial-gradient(ellipse at 50% 55%, transparent 35%, color-mix(in srgb, var(--texto) 42%, transparent));
  pointer-events: none;
  transition: opacity .45s;
}
.trailer-palco.assistindo::after { opacity: 0; }
.trailer-palco.com-botao .trailer-video { cursor: pointer; }
.trailer-palco.assistindo .trailer-video { cursor: auto; }
@media (orientation: portrait) and (max-width: 720px) {
  .trailer-palco { width: auto; }
}

.trailer-play {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sobre-primaria);
  font-family: var(--fonte-titulo);
  font-size: clamp(1.02rem, .9rem + .55vw, 1.36rem);
  font-weight: var(--peso-titulo);
  cursor: pointer;
  transition: opacity .35s, scale .35s var(--curva), visibility .35s, translate .5s cubic-bezier(.3, 1.5, .5, 1);
}
.trailer-play[hidden] { display: none; }
.trailer-play-disco {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(82px, 8.6vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--primaria);
  color: var(--sobre-primaria);
  box-shadow: 0 22px 44px -14px color-mix(in srgb, var(--primaria) 75%, transparent);
  transition: scale .35s cubic-bezier(.3, 1.6, .5, 1);
}
.trailer-play-disco svg { translate: 3px 0; }
.trailer-play-disco::before,
.trailer-play-disco::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.trailer-play-disco::before { inset: -13px; border: 2.5px dashed color-mix(in srgb, var(--sobre-primaria) 85%, transparent); }
.trailer-play-disco::after { inset: 0; border: 3px solid var(--acento); opacity: 0; }
.trailer-play-texto {
  padding: .5em 1.1em .46em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--texto) 80%, transparent);
  color: var(--fundo);
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.trailer-play:hover .trailer-play-disco { scale: 1.08; }
.trailer-play:active .trailer-play-disco { scale: .94; }
.trailer-play:focus-visible { outline: none; }
.trailer-play:focus-visible .trailer-play-disco { outline: 3px solid var(--acento); outline-offset: 18px; }
.trailer-palco.assistindo .trailer-play { opacity: 0; scale: .8; visibility: hidden; pointer-events: none; }

/* Promessa: as palavras acendem com a rolagem (classes do estudio.js, só sem "menos movimento"). */
.luz-pronta .luz { opacity: .18; transition: opacity .5s ease, color .5s ease; }
.luz-pronta .luz.acesa { opacity: 1; color: var(--texto); }

/* Celular das plataformas: o corpo, a tela com um jogo rodando, o recorte, o reflexo e a sombra no chão. */
.plataformas.com-celular { gap: clamp(26px, 4.4vh, 48px); }
.celular { position: relative; width: clamp(164px, 17vw, 236px); margin-block: 4px 30px; perspective: 1100px; }
.celular-corpo {
  position: relative;
  padding: 4%;
  border-radius: 17% / 9%;
  background: linear-gradient(150deg, color-mix(in srgb, var(--texto) 62%, white), var(--texto) 38%, color-mix(in srgb, var(--texto) 80%, black));
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, white 32%, transparent),
    inset 0 0 0 5px color-mix(in srgb, var(--texto) 78%, black),
    0 46px 60px -34px color-mix(in srgb, var(--texto) 70%, transparent);
  transform: rotateY(var(--giro, -16deg)) rotateX(var(--tomba, 4deg)) rotateZ(calc(var(--giro, -16deg) * -.1));
  transform-style: preserve-3d;
}
/* O jogo desenha em 9:13, como nos cartões; o vidro do celular é mais alto e recorta as laterais do jogo. */
.celular-vidro { position: relative; overflow: hidden; aspect-ratio: 9 / 17.5; border-radius: 13% / 6.8%; background: var(--texto); }
.celular-tela { position: absolute; top: 0; left: 50%; display: block; width: auto; max-width: none; height: 100%; aspect-ratio: 9 / 13; translate: -50% 0; }
.celular-recorte {
  position: absolute;
  top: 5.6%;
  left: 50%;
  width: 28%;
  height: 2.9%;
  border-radius: 999px;
  background: black;
  translate: -50% 0;
}
.celular-brilho {
  position: absolute;
  inset: 4%;
  border-radius: 13% / 6.8%;
  background: linear-gradient(112deg, transparent calc(var(--luz, 50%) - 22%), color-mix(in srgb, white 26%, transparent) var(--luz, 50%), transparent calc(var(--luz, 50%) + 16%));
  pointer-events: none;
}
.celular-chao {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -28px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--texto) 34%, transparent), transparent);
}

/* Nome gigante no rodapé: a última coisa da página. */
.rodape-gigante {
  order: 3;
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--primaria);
  font-family: var(--fonte-titulo);
  font-size: calc((100vw - 2 * var(--calha)) / 5.75);   /* "Bluebeans" na Fraunces 900 mede 5,53 em: sobra folga para a barra de rolagem */
  font-weight: var(--peso-titulo);
  letter-spacing: var(--espaco-nome, 0);
  line-height: .86;
  clip-path: inset(-60% -4% 0 -4%);
  -webkit-user-select: none;
  user-select: none;
}
.rodape-gigante span { display: inline-block; transform-origin: 50% 100%; transition: color .3s; }

@media (max-width: 520px) {
  .rodape-dominio::before, .rodape-link::before { content: none; }
  .rodape-marca { gap: 8px 18px; }
}

/* Cabeçalho que some na descida e a linha de progresso da página. */
.cab { transition: translate .42s var(--curva); }
.cab.cab-escondido { translate: 0 -100%; }
.cab-progresso {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--acento), var(--secundaria), var(--primaria));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .trailer-play-disco::before { animation: disco-gira 9s linear infinite; }
  .trailer-play-disco::after { animation: disco-pulso 2.2s ease-out infinite; }
  .trailer-palco.previa .trailer-play-texto { animation: trailer-chama 3.2s ease-in-out infinite; }

  .celular-vivo .celular-corpo { animation: celular-flutua 5.2s ease-in-out infinite; }
  .celular-vivo .celular-chao { animation: celular-chao 5.2s ease-in-out infinite; }

  .fichas li { animation: ficha-boia 3.8s ease-in-out infinite; }
  .fichas li:nth-child(2n) { animation-delay: -1.9s; }

  .gigante-pronto span { transform: translateY(110%) rotate(9deg); }
  .gigante-visto span { animation: gigante-sobe .95s calc(var(--i) * 60ms) cubic-bezier(.3, 1.35, .5, 1) forwards; }
  .gigante-assentado span:hover { color: var(--secundaria); animation: gigante-pula .7s cubic-bezier(.3, 1.6, .5, 1); }
  .gigante-assentado.gigante-onda span { animation: gigante-pula .7s calc(var(--i) * 55ms) cubic-bezier(.3, 1.6, .5, 1); }
}

@keyframes disco-gira { to { rotate: 360deg; } }
@keyframes disco-pulso {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes trailer-chama { 50% { translate: 0 -4px; } }
@keyframes celular-flutua { 50% { translate: 0 -12px; } }
@keyframes celular-chao { 50% { scale: .8; opacity: .65; } }
@keyframes ficha-boia { 50% { translate: 0 -6px; } }
@keyframes gigante-sobe { to { transform: none; } }
@keyframes gigante-pula {
  0%, 100% { transform: none; }
  35% { transform: translateY(-16%) rotate(-6deg) scale(1.05, .95); }
  65% { transform: translateY(2%) scale(.97, 1.04); }
}

/* 404: o símbolo procura o caminho, olha para os lados, pula e dá uma volta. */
@media (prefers-reduced-motion: no-preference) {
  .pagina-404-marca { transform-origin: 50% 85%; animation: perdido 4.2s ease-in-out infinite; }
}
@keyframes perdido {
  0%, 100% { transform: none; }
  12% { transform: rotate(-14deg); }
  24% { transform: rotate(12deg); }
  34% { transform: none; }
  44% { transform: translateY(-22px) scale(.94, 1.06); }
  52% { transform: translateY(0) scale(1.08, .92); }
  60% { transform: none; }
  74% { transform: rotate(360deg); }
  74.01% { transform: none; }
}

/* ---------- Layout ilha (rodada 2): um mundo pequeno flutuando no céu ---------- */

.layout-ilha .topo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 3vw, 40px);
  min-height: min(1000px, calc(100svh - var(--cab) - 36px));
  padding: clamp(28px, 5vh, 72px) var(--calha) clamp(56px, 9vh, 110px);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--secundaria) 22%, var(--fundo)) 0%,
    var(--fundo) 62%,
    color-mix(in srgb, var(--primaria) 12%, var(--fundo)) 100%);
}

@media (min-width: 960px) {
  .layout-ilha .topo { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

.layout-ilha h1 { font-size: clamp(2.8rem, 1.1rem + 5.8vw, 6.8rem); line-height: .92; }
.layout-ilha .destaque { color: var(--primaria); }

.ilha-ceu { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ilha-ceu i {
  position: absolute;
  height: 46px;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 82%, transparent);
  filter: blur(1px);
  transform: translateX(calc(var(--px, 0) * -30px));
  animation: ilha-nuvem linear infinite;
}
.ilha-ceu i::before,
.ilha-ceu i::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.ilha-ceu i::before { width: 46%; height: 150%; left: 14%; bottom: 30%; }
.ilha-ceu i::after { width: 34%; height: 120%; right: 16%; bottom: 36%; }
.ilha-ceu i:nth-child(1) { width: 190px; top: 12%; animation-duration: 64s; animation-delay: -10s; }
.ilha-ceu i:nth-child(2) { width: 130px; top: 30%; animation-duration: 82s; animation-delay: -40s; opacity: .8; }
.ilha-ceu i:nth-child(3) { width: 240px; top: 64%; animation-duration: 96s; animation-delay: -20s; opacity: .7; }
.ilha-ceu i:nth-child(4) { width: 110px; top: 6%; animation-duration: 70s; animation-delay: -55s; opacity: .9; }
.ilha-ceu i:nth-child(5) { width: 170px; top: 80%; animation-duration: 76s; animation-delay: -5s; opacity: .6; }
@keyframes ilha-nuvem { from { left: -260px; } to { left: 110%; } }

.layout-ilha .topo-texto { z-index: 4; }

.ilha-palco {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
}

.ilha {
  position: relative;
  width: min(100%, 760px);
  transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 10px), 0);
  transition: transform .9s var(--curva);
}

/* O corpo flutua inteiro: a arte, a cena 3D e os feijões sobem e descem juntos. */
.ilha-corpo { position: relative; animation: ilha-flutua 7s ease-in-out infinite; }

.ilha-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px color-mix(in srgb, var(--texto) 18%, transparent));
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .7s, filter .7s, transform .7s;
}

/* A cena 3D (paralaxe pela profundidade) entra por cima da arte, que vira a sombra dela. */
.ilha-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s; pointer-events: none; }
.gl-pronto .ilha-gl { opacity: 1; }
.gl-pronto .ilha-img { filter: brightness(0) blur(14px); opacity: .2; transform: translateY(34px) scale(.96); }
@keyframes ilha-flutua { 50% { transform: translateY(-14px) rotate(-.6deg); } }

.ilha-sombra {
  width: 46%;
  height: 22px;
  margin-top: -6px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--texto) 18%, transparent), transparent);
  animation: ilha-sombra 7s ease-in-out infinite;
}
@keyframes ilha-sombra { 50% { transform: scale(.86); opacity: .7; } }

.ilha-placa {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-decoration: none;
  animation: ilha-placa 4.5s ease-in-out infinite;
}
.ilha-placa span {
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--superficie);
  color: var(--texto);
  border: 3px solid var(--texto);
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  font-size: clamp(.82rem, .74rem + .35vw, 1.05rem);
  white-space: nowrap;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--texto) 80%, transparent);
  transition: transform .25s var(--curva), background .2s;
}
.ilha-placa::after { content: ""; width: 4px; height: 26px; background: var(--texto); border-radius: 2px; }
.ilha-placa:hover span, .ilha-placa:focus-visible span { transform: translateY(-4px) rotate(-3deg); background: var(--acento); }
.ilha-placa-1 { left: 14%; top: 14%; }
.ilha-placa-2 { right: 10%; top: 8%; animation-delay: -1.5s; }
.ilha-placa-3 { right: 22%; top: 48%; animation-delay: -3s; }
@keyframes ilha-placa { 50% { transform: translateY(-8px); } }

.ilha-sol {
  position: absolute;
  top: 58%;
  left: -1%;
  width: clamp(92px, 11vw, 148px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--fundo);
  box-shadow: 0 0 0 6px color-mix(in srgb, #fff 70%, transparent), 0 0 60px color-mix(in srgb, var(--acento) 60%, transparent);
}
.ilha-sol img, .ilha-sol video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.9); }
.ilha-sol video { opacity: 0; transition: opacity .6s; }
.ilha-palco.tocando .ilha-sol video { opacity: 1; }
.ilha-3d { position: absolute; left: 50%; right: auto; top: auto; bottom: -10px; transform: translateX(-50%); }
.ilha-3d:hover { transform: translateX(-50%) translateY(-2px); }

.broto-vaso { display: grid; justify-items: center; gap: 4px; margin-top: 10px; }
.broto-vaso:not(.brotar) { display: none; }
.broto { width: 120px; height: 160px; overflow: visible; }
.broto-terra { fill: color-mix(in srgb, var(--texto) 55%, var(--superficie)); }
.broto-caule { fill: none; stroke: var(--primaria); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.broto-folha { fill: var(--primaria); transform-box: fill-box; transform-origin: 0% 50%; transform: scale(0); }
.broto-folha-2 { transform-origin: 0% 50%; }
.broto-feijao { fill: var(--acento); transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); }
.broto-texto { font-family: var(--fonte-titulo); font-weight: var(--peso-titulo); }
.brotar .broto-caule { animation: broto-cresce 1.4s var(--curva) forwards; }
.brotar .broto-folha-1 { animation: broto-folha .6s .7s var(--curva) forwards; }
.brotar .broto-folha-2 { animation: broto-folha .6s 1s var(--curva) forwards; }
.brotar .broto-feijao { animation: broto-folha .7s 1.3s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes broto-cresce { to { stroke-dashoffset: 0; } }
@keyframes broto-folha { to { transform: scale(1); } }

@media (max-width: 959px) {
  .ilha-placa-1 { left: 4%; top: 6%; }
  .ilha-placa-2 { right: 2%; top: 2%; }
  .ilha-placa-3 { right: 8%; top: 54%; }
}

@media (prefers-reduced-motion: reduce) {
  .ilha-ceu i, .ilha-sombra, .ilha-placa { animation: none; }
  .brotar .broto-caule { stroke-dashoffset: 0; }
  .brotar .broto-folha, .brotar .broto-feijao { transform: scale(1); }
}

/* O medalhão mostra o símbolo em SVG enquanto o vídeo 3D não entra. O vídeo se mistura ao fundo do medalhão: o estúdio
   claro do render vira o tom da página, e os feijões seguem azuis. */
.ilha-sol img { transform: none; object-fit: contain; padding: 16%; }
.ilha-sol { isolation: isolate; }
.ilha-sol video { mix-blend-mode: multiply; transform: scale(1.12); }
.ilha-sol img { transition: opacity .6s; }
.ilha-palco.tocando .ilha-sol img { opacity: 0; }

/* Os feijões vivos por cima da arte da ilha (rodada 3) */
.ilha-feijoes {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

/* As placas andam com a profundidade do lugar onde estão fincadas (variáveis da cena 3D). */
.ilha-placa { translate: calc(var(--ox, 0px) * (var(--prof, .45) - .45)) calc(var(--oy, 0px) * (var(--prof, .45) - .45)); }
.ilha-placa-1 { --prof: .32; }
.ilha-placa-2 { --prof: .3; }
.ilha-placa-3 { --prof: .55; }
.ilha-placa { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .ilha-corpo { animation: none; }
}

/* ---------- Os mundos: o arquipélago do casual ao hardcore (rodada 3) ---------- */

.secao-mundos {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--fundo) 0%,
    color-mix(in srgb, var(--secundaria) 16%, var(--fundo)) 48%,
    color-mix(in srgb, var(--acento) 14%, var(--fundo)) 100%);
}
.secao-mundos .miolo { position: relative; z-index: 1; }
.secao-mundos .ilha-ceu i { opacity: .55; }

.arquipelago { position: relative; margin-top: clamp(20px, 4vw, 56px); }

.arq-ilhas {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(12px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* do casual ao hardcore, as ilhas sobem */
.arq-ilha { --i: 0; margin-bottom: calc(var(--i) * clamp(18px, 5vw, 72px)); }
.arq-ilha:nth-child(2) { --i: 1; }
.arq-ilha:nth-child(3) { --i: 2; }
.arq-ilha:nth-child(4) { --i: 3; }

.arq-botao {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.arq-botao:focus-visible { outline: 3px solid var(--primaria); outline-offset: 6px; }

.arq-corpo {
  position: relative;
  display: block;
  width: 100%;
  animation: ilha-flutua 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -2.3s);
  transition: scale .45s var(--curva), translate .45s var(--curva);
}
.arq-botao:hover .arq-corpo, .arq-botao:focus-visible .arq-corpo { scale: 1.05; translate: 0 -10px; }
.arq-corpo .ilha-img { filter: drop-shadow(0 26px 30px color-mix(in srgb, var(--texto) 20%, transparent)); }
.arq-corpo.gl-pronto .ilha-img { filter: brightness(0) blur(12px); opacity: .18; transform: translateY(28px) scale(.94); }

.arq-rotulo { display: grid; justify-items: center; gap: 2px; text-align: center; }
.arq-genero {
  color: var(--texto-suave);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.arq-titulo {
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  font-size: clamp(1.45rem, 1rem + 1.3vw, 2.1rem);
  line-height: 1.05;
}
.arq-jogar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--primaria);
  color: var(--sobre-primaria);
  font-weight: 700;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--primaria) 55%, #000);
  transition: transform .2s var(--curva), box-shadow .2s;
}
.arq-botao:hover .arq-jogar { transform: translateY(-2px); box-shadow: 0 7px 0 color-mix(in srgb, var(--primaria) 55%, #000); }
.arq-botao:active .arq-jogar { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--primaria) 55%, #000); }

/* a rota tracejada liga as ilhas (traçada pelo script), e um feijão viaja por ela */
.arq-rota { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.arq-rota path {
  fill: none;
  stroke: color-mix(in srgb, var(--primaria) 42%, transparent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 14;
  animation: arq-rota 1.6s linear infinite;
}
@keyframes arq-rota { to { stroke-dashoffset: -16; } }
.arq-viajante {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  offset-rotate: auto 0deg;
  offset-distance: 0%;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 6px 6px color-mix(in srgb, var(--texto) 25%, transparent));
}
.arq-viajante img { width: 100%; height: 100%; display: block; }
.arquipelago.rota-pronta .arq-viajante { opacity: 1; animation: arq-viaja 9s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes arq-viaja { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.arq-eixo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: clamp(22px, 4vw, 44px);
  color: var(--texto-suave);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.arq-eixo i {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--acento), var(--secundaria), var(--primaria));
}

@media (max-width: 759px) {
  .arq-ilhas {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-inline: calc(-1 * var(--calha));
    padding: 8px var(--calha) 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .arq-ilhas::-webkit-scrollbar { display: none; }
  .arq-ilha { flex: 0 0 76%; scroll-snap-align: center; margin-bottom: calc(var(--i, 0) * 14px); }
  .arq-rota, .arq-viajante { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .arq-corpo, .arq-rota path { animation: none; }
  .arquipelago.rota-pronta .arq-viajante { animation: none; offset-distance: 50%; }
}

/* Acabamento (14/10): as placas brotam do chão da ilha e o medalhão chega girando. Só scale e rotate, que somam ao
   balanço das placas e ao hover sem disputar o transform. */
@media (prefers-reduced-motion: no-preference) {
  .ilha-placa span { transform-origin: 50% 100%; animation: placa-brota .85s cubic-bezier(.3, 1.6, .5, 1) backwards; }
  .ilha-placa-1 span { animation-delay: .7s; }
  .ilha-placa-2 span { animation-delay: .86s; }
  .ilha-placa-3 span { animation-delay: 1.02s; }
  .ilha-sol { animation: sol-chega 1.15s .35s cubic-bezier(.3, 1.4, .5, 1) backwards; }
}
@keyframes placa-brota { from { scale: 0; rotate: -16deg; } }
@keyframes sol-chega { from { scale: .2; rotate: -220deg; opacity: 0; } }
