/* /ao-vivo-jogo (o joguinho) · mesmo visual "Capa da Elenco": preto, branco, um vermelho só para ação; Archivo larga em minúsculas. */
@font-face { font-family: 'Archivo'; src: url('/static/fontes/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
:root {
  --preto: #070505; --preto-2: #121010; --linha: #2a2624; --branco: #f4f1ec; --cinza: #b6b0a8;
  --vermelho: #d42e1a; --vermelho-vivo: #ff5a43; --quente: #ffcf9a;
  --fonte: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --saida: cubic-bezier(.23, 1, .32, 1);
  --margem: clamp(1.25rem, 5vw, 4.5rem);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--preto); }
body { margin: 0; background: var(--preto); color: var(--branco); font: 400 1.0625rem/1.6 var(--fonte); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--branco); }
h1, h2 { margin: 0; font-weight: 800; font-stretch: 118%; line-height: .98; letter-spacing: -0.02em; text-transform: lowercase; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--vermelho-vivo); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr * { text-wrap: nowrap; white-space: nowrap; font-size: 1rem; } /* o texto do neon para leitor de tela: uma linha só */

/* topo por cima da cena */
.jg-topo { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: max(.75rem, env(safe-area-inset-top)) var(--margem) .75rem; background: linear-gradient(#070505e6, #07050500); }
.jg-marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-stretch: 115%; font-size: 1rem; }
.jg-marca img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.jg-aovivo { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9375rem; color: var(--vermelho-vivo); }
.jg-aovivo::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; animation: pulsa 1.6s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: .35; } }

/* o palco ocupa a primeira tela inteira; os botões ficam por cima, embaixo */
.jg-palco { position: relative; }
.jg-cena { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1400px; overflow: hidden; background: #070505; }
.jg-cena canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--saida); }
.jg-cena.pronta canvas { opacity: 1; }
.jg-reserva { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jg-3d .jg-neon2d, .jg-3d .jg-pecas2d { display: none; }

/* letreiro em CSS (só na reserva 2D): mesmo desenho do neon 3D */
.jg-neon2d { position: absolute; left: 50%; top: 15%; transform: translate(-50%, -50%); width: min(78%, 40rem); text-align: center;
  display: grid; gap: .35rem; pointer-events: none; }
.jg-neon2d span { display: block; font-weight: 800; font-stretch: 118%; line-height: 1; }
.jg-neon2d-rotulo { font-size: clamp(.9rem, 2.6vw, 1.2rem); color: #ffd7cc; text-shadow: 0 0 6px #ff3b22, 0 0 18px #ff3b22, 0 0 36px #ff3b2299; }
.jg-neon2d-musica { font-size: clamp(1.6rem, 6.4vw, 3.4rem); color: #fff6e8; text-shadow: 0 0 8px #ffb45c, 0 0 24px #ffb45c, 0 0 48px #ff8a3d88; text-wrap: balance; }
.jg-neon2d-quem { font-size: clamp(.85rem, 2.4vw, 1.05rem); color: #fff8ee; text-shadow: 0 0 6px #ffcf9a, 0 0 16px #ffcf9a88; }

/* cédulas e moedas da reserva 2D */
.jg-pecas2d { position: absolute; inset: 0; pointer-events: none; }
.jg-nota, .jg-moeda { position: absolute; transform: translate(-50%, -50%) rotate(var(--giro)) scale(var(--esc, 1)); }
.jg-nota { width: 46px; height: 22px; border-radius: 2px; background: var(--cor); color: var(--tinta); font: 800 12px/22px var(--fonte);
  text-align: right; padding-right: 5px; box-shadow: inset 0 0 0 2px var(--clara), 0 2px 4px #0008; }
.jg-moeda { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #b98320); box-shadow: 0 1px 3px #0009; }
.jg-moeda.prata { background: radial-gradient(circle at 35% 35%, #ffffff, #8d9196); }

/* "R$ 15 · obrigado, Ana!" em cima do estojo */
.jg-obrigado { position: absolute; z-index: 4; transform: translate(-50%, -150%) scale(.96); opacity: 0; filter: blur(4px); pointer-events: none;
  padding: .55rem 1rem; border-radius: 999px; background: #070505d9; color: var(--branco); white-space: nowrap;
  font-weight: 800; font-stretch: 112%; font-size: 1rem; box-shadow: 0 0 0 1px #ffcf9a55, 0 0 32px #ffb45c55;
  transition: opacity .35s var(--saida), transform .35s var(--saida), filter .35s var(--saida); }
.jg-obrigado.mostra { opacity: 1; transform: translate(-50%, -190%) scale(1); filter: none; }

/* lousa da fila (no celular em pé ela fica aqui; no 16:9 também aparece no palco) */
.jg-lousa { position: relative; margin: 0 auto; padding: 2.5rem var(--margem) 2rem; max-width: 46rem;
  background: radial-gradient(120% 80% at 30% 0%, #1d1f1d, #121312); border-top: 1px solid var(--linha); }
.jg-lousa-cabeca { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.jg-lousa h2 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
.jg-conta { color: var(--cinza); font-weight: 700; font-variant-numeric: tabular-nums; }
.jg-recado { margin: 0 0 1rem; color: var(--quente); font-size: 1.0625rem; }
.jg-fila { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.jg-fila li { counter-increment: f; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .5rem; padding: .85rem 0; border-top: 1px solid #ffffff14; }
.jg-fila li::before { content: counter(f, decimal-leading-zero); grid-row: span 3; color: var(--cinza); font-weight: 700; font-variant-numeric: tabular-nums; padding-top: .2rem; }
.jg-fila b { font-weight: 800; font-stretch: 112%; font-size: 1.375rem; line-height: 1.15; text-transform: lowercase; }
.jg-fila li:first-child b { color: var(--vermelho-vivo); }
.jg-fila span { color: var(--cinza); font-size: 1rem; }
.jg-fila q { color: var(--branco); font-style: italic; font-size: 1rem; }
.jg-vazia { color: var(--cinza); }

.jg-caixinha { max-width: 46rem; margin: 0 auto; padding: 2.5rem var(--margem) 3rem; }
.jg-caixinha h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin-bottom: .6rem; }
.jg-valeu { color: var(--cinza); margin-bottom: 1.4rem; }
.jg-acoes { display: grid; gap: 1rem; justify-items: start; }
.jg-link { font-weight: 700; text-underline-offset: .25em; }

.jg-botao { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .8rem 1.5rem;
  border-radius: 10px; background: var(--vermelho); color: #fff; font-weight: 800; font-stretch: 112%; font-size: 1.125rem; text-decoration: none;
  transition: transform .16s var(--saida), background-color .2s; }
.jg-botao svg { width: 1.2em; height: 1.2em; }
.jg-botao:active { transform: scale(.97); }
@media (hover: hover) { .jg-botao:hover { background: #e23a24; } }
.jg-botao.secundario { background: transparent; box-shadow: inset 0 0 0 2px var(--branco); }

.jg-fixo { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem var(--margem) max(1rem, env(safe-area-inset-bottom)); background: linear-gradient(#07050500, #070505e8 40%); }
.jg-fixo .jg-botao { flex: 0 1 15rem; font-size: 1.25rem; min-height: 3.5rem; }
.jg-apoie { font-weight: 700; text-underline-offset: .25em; white-space: nowrap; }

.jg-rodape { max-width: 46rem; margin: 0 auto; padding: 1.5rem var(--margem) 8rem; color: var(--cinza); font-size: .9375rem; display: grid; gap: .3rem; border-top: 1px solid var(--linha); }
.jg-rodape a { color: var(--cinza); }

@media (min-aspect-ratio: 1/1) and (min-width: 900px) {
  .jg-fixo { left: auto; right: var(--margem); bottom: 1.5rem; padding: 0; background: none; gap: 1.5rem; }
  .jg-fixo .jg-botao { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jg-aovivo::before { animation: none; }
  .jg-obrigado { transition: opacity .2s; filter: none; }
}

/* ---- o joguinho: balões, etiquetas de nome e o "+N na fila" seguem os bonequinhos */
.jg-3d .jg-pecas2d, .jg-3d .jg-neon2d, .jg-3d .jg-fichas2d { display: none; }
.jg-baloes { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.jg-balao { position: absolute; left: 0; top: 0; margin: 0; width: max-content; max-width: 13rem; padding: .5rem .8rem .55rem; border-radius: 14px;
  background: #fff8ee; color: #1a1210; box-shadow: 0 6px 18px #0009; translate: -50% -100%; opacity: 0; scale: .7; transform-origin: 50% 100%;
  transition: opacity .25s var(--saida), scale .35s var(--saida); display: grid; gap: .05rem; text-align: center; will-change: transform; }
.jg-balao::after { content: ''; position: absolute; left: 50%; bottom: -8px; translate: -50% 0; border: 9px solid transparent; border-bottom: 0; border-top-color: #fff8ee; }
.jg-balao b { font-weight: 800; font-stretch: 112%; font-size: 1.0625rem; line-height: 1.1; color: var(--vermelho); }
.jg-balao span { font-weight: 700; font-size: .9375rem; line-height: 1.2; text-wrap: balance; }
.jg-balao.mostra { opacity: 1; scale: 1; }
.jg-balao.some { opacity: 0; scale: .85; }
.jg-etq { position: absolute; left: 0; top: 0; translate: -50% -100%; padding: .1rem .45rem; border-radius: 999px; background: #070505cc;
  color: var(--branco); font-weight: 700; font-size: .8125rem; line-height: 1.3; white-space: nowrap; box-shadow: 0 0 0 1px #ffffff22; will-change: transform; }
.jg-mais { position: absolute; left: 0; top: 0; translate: -50% 0; padding: .2rem .6rem; border-radius: 999px; background: var(--vermelho); color: #fff;
  font-weight: 800; font-size: .875rem; white-space: nowrap; }

/* reserva 2D: os pedidos viram fichinhas em fila embaixo do palco */
.jg-fichas2d { position: absolute; left: 0; right: 0; bottom: 6.5rem; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; padding: 0 var(--margem); pointer-events: none; }
.jg-ficha { display: grid; justify-items: center; gap: .2rem; }
.jg-ficha i { width: 26px; height: 40px; border-radius: 13px 13px 6px 6px; background: var(--cor, #3d5a80); position: relative; box-shadow: 0 3px 8px #0008; }
.jg-ficha i::before { content: ''; position: absolute; left: 50%; top: -20px; width: 22px; height: 22px; translate: -50% 0; border-radius: 50%; background: var(--pele, #e8b48e); }
.jg-ficha span { font-weight: 700; font-size: .8125rem; background: #070505cc; padding: 0 .4rem; border-radius: 999px; }
.jg-ficha:first-child span { background: #fff8ee; color: #1a1210; }
@media (prefers-reduced-motion: reduce) { .jg-balao { transition: opacity .2s; scale: 1; } }

/* reserva 2D: o letreiro tem moldura própria (a foto da cena vem sem ele) e nunca fica sob o topo */
.jg-neon2d { width: min(84%, 34rem); padding: .9rem 1rem 1rem; border-radius: 18px; background: #100a08ee;
  box-shadow: inset 0 0 0 2px #ff5a43, 0 0 18px #ff3b2277, inset 0 0 18px #ff3b2233; }
.jg-neon2d-musica { font-size: clamp(1.35rem, 6vw, 2.6rem); }
.jg-ficha.mais { align-self: end; }
