/* Noite do Slide — mesma estética dos slides: céu estrelado, ornamento dourado,
   cortinas de veludo azul, tela de cinema creme, plateia e o letreiro do clube. */

:root {
  --ceu: #050817;
  --ceu-2: #0c1334;
  --veludo-1: #061063;
  --veludo-2: #1431c2;
  --veludo-3: #3a5ef5;
  --tela: #fbf4e7;
  --tela-2: #efe2c9;
  --tinta: #0c1442;
  --tinta-suave: #50577f;
  --azul: #1d3ad4;
  --azul-escuro: #11259a;
  --ouro: #dcae4c;
  --ouro-claro: #f4d995;
  --creme: #fff5df;
  --serifa: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --larg-cortina: clamp(14px, 5vw, 60px);
  --dobra: 12px;
  --curva-cortina: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100C90 20 62 44 57 62C53 77 70 90 97 100H0Z'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background: radial-gradient(130% 55% at 50% 0%, var(--ceu-2) 0%, var(--ceu) 70%), var(--ceu);
  color: var(--creme);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; }

/* ---------- céu ---------- */
.ceu { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ceu i {
  position: absolute; width: var(--t); height: var(--t); border-radius: 50%;
  background: #fff; opacity: var(--o); box-shadow: 0 0 6px rgba(255, 255, 255, .7);
  animation: piscar var(--d) ease-in-out var(--a) infinite alternate;
}
.ceu i.b {
  border-radius: 0; box-shadow: none; background: #fffbe8;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 4px #fff);
}
@keyframes piscar { from { opacity: calc(var(--o) * .25); } to { opacity: var(--o); } }

/* ---------- ornamento dourado ---------- */
.ornamento { color: var(--ouro-claro); line-height: 0; filter: drop-shadow(0 0 6px rgba(244, 217, 149, .45)); }
.ornamento svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ---------- cortinas de veludo ---------- */
.veludo {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, transparent 16%, transparent 78%, rgba(0, 0, 0, .5) 100%),
    repeating-linear-gradient(90deg,
      var(--veludo-1) 0,
      var(--veludo-2) calc(var(--dobra) * .28),
      var(--veludo-3) calc(var(--dobra) * .46),
      var(--veludo-2) calc(var(--dobra) * .64),
      var(--veludo-1) var(--dobra));
}
.cortina {
  position: fixed; top: 0; bottom: 0; width: var(--larg-cortina); z-index: 6; pointer-events: none;
  -webkit-mask: var(--curva-cortina) 0 0 / 100% 100% no-repeat;
  mask: var(--curva-cortina) 0 0 / 100% 100% no-repeat;
}
.cortina--esq { left: 0; }
.cortina--dir { right: 0; transform: scaleX(-1); }

/* panos que fecham a tela inteira (revelação no telão, "olha o telão" no celular) */
.panos { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.pano {
  position: absolute; top: 0; bottom: 0; width: 51%;
  --dobra: clamp(26px, 4vw, 70px);
  transition: transform 1.15s cubic-bezier(.65, 0, .25, 1);
}
.pano::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.pano--esq { left: 0; transform: translateX(-102%); }
.pano--esq::after { box-shadow: inset -40px 0 60px rgba(0, 0, 0, .55); }
.pano--dir { right: 0; transform: translateX(102%); }
.pano--dir::after { box-shadow: inset 40px 0 60px rgba(0, 0, 0, .55); }
.panos.fechado { pointer-events: auto; }
.panos.fechado .pano { transform: none; }
.panos-texto {
  position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center;
  gap: 14px; padding: 24px; text-align: center; color: var(--creme);
  opacity: 0; transition: opacity .35s;
}
.panos.fechado .panos-texto { opacity: 1; transition: opacity .6s .75s; }
.panos-texto .ornamento { width: min(260px, 70vw); }
.panos-texto strong {
  font: 800 clamp(34px, 9vw, 120px)/1 var(--serifa); text-transform: uppercase; letter-spacing: .01em;
  text-shadow: 0 0 30px rgba(255, 220, 150, .45), 0 4px 18px rgba(0, 0, 0, .6);
}
.panos-texto span { font: 500 clamp(15px, 4vw, 30px)/1.45 var(--sans); max-width: 30ch; color: rgba(255, 245, 223, .88); text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }

/* ---------- tela de cinema ---------- */
.tela-cinema {
  position: relative;
  background: radial-gradient(120% 95% at 50% 38%, #fffaf0 0%, var(--tela) 55%, var(--tela-2) 100%);
  color: var(--tinta);
  border-radius: 5px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .35),
    0 0 50px rgba(255, 236, 200, .22),
    0 26px 50px -18px rgba(0, 0, 0, .85);
}

/* ---------- plateia + letreiro ---------- */
.plateia { position: relative; z-index: 2; pointer-events: none; }
.plateia::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(180deg, rgba(5, 8, 23, 0), rgba(5, 8, 23, .6));
}
.plateia__desenho { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.letreiro {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  width: clamp(118px, 15vw, 270px); aspect-ratio: 709 / 355;
  filter: drop-shadow(0 0 10px rgba(255, 210, 130, .5)) drop-shadow(0 5px 8px rgba(0, 0, 0, .7));
}
.letreiro > span { position: absolute; inset: 0; }
.letreiro__contorno {
  background: var(--azul);
  -webkit-mask: url("/marca/logo-contorno.png") center / contain no-repeat;
  mask: url("/marca/logo-contorno.png") center / contain no-repeat;
}
.letreiro__letras {
  background: var(--creme);
  -webkit-mask: url("/marca/logo-letras.png") center / contain no-repeat;
  mask: url("/marca/logo-letras.png") center / contain no-repeat;
}
.letreiro::before, .letreiro::after {
  content: ""; position: absolute; bottom: 14%; width: 5%; aspect-ratio: 1; border-radius: 50%;
  background: #ffe0a0; box-shadow: 0 0 10px 4px rgba(255, 190, 90, .75);
}
.letreiro::before { left: -7%; }
.letreiro::after { right: -7%; }

/* ---------- textos comuns ---------- */
.titulo-noite {
  margin: 4px 0 2px; font: 800 clamp(30px, 9.5vw, 46px)/1 var(--serifa);
  text-transform: uppercase; letter-spacing: .015em; color: var(--creme);
  text-shadow: 0 0 26px rgba(255, 226, 160, .35);
}
.subtitulo {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 0;
  font: 600 11px/1.4 var(--serifa); letter-spacing: .38em; text-transform: uppercase; color: var(--ouro-claro);
}
.subtitulo::before, .subtitulo::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.etiqueta {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0;
  font: 700 12px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--azul);
}
.etiqueta::before, .etiqueta::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .45; }
.etiqueta--esq { justify-content: flex-start; }
.etiqueta--esq::before { display: none; }

/* ---------- botões ---------- */
.btn-azul {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #2f51f2 0%, var(--azul) 45%, var(--azul-escuro) 100%);
  color: var(--creme); font: 700 15px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 12px 26px -12px rgba(17, 37, 154, .9), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .15s ease, filter .15s ease, opacity .2s ease;
}
.btn-azul:hover:not(:disabled) { filter: brightness(1.12); }
.btn-azul:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.btn-azul:disabled { opacity: .45; cursor: default; filter: saturate(.5); }
.btn-linha {
  min-height: 46px; padding: 0 22px; border-radius: 999px; background: transparent;
  border: 1.5px solid rgba(12, 20, 66, .28); color: var(--tinta);
  font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  transition: background .15s, border-color .15s;
}
.btn-linha:hover { background: rgba(12, 20, 66, .05); border-color: rgba(12, 20, 66, .45); }

/* ---------- aviso flutuante ---------- */
.aviso {
  position: fixed; left: 50%; bottom: 20px; z-index: 40; max-width: calc(100% - 32px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; text-align: center;
  background: var(--tinta); color: var(--creme); border: 1px solid rgba(255, 245, 223, .2);
  font: 600 14px/1.35 var(--sans); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7);
  transition: opacity .25s, transform .25s;
}
.aviso.ver { opacity: 1; transform: translate(-50%, 0); }
.rede {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 41;
  padding: 7px 14px; border-radius: 999px; background: rgba(5, 8, 23, .85);
  border: 1px solid rgba(255, 245, 223, .25); font: 600 12px/1 var(--sans); letter-spacing: .06em;
}

[data-vista]:not([hidden]) { animation: entrar .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes surgir { from { transform: scale(0) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulo { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes rufar { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-.35em); opacity: 1; } }

/* =================================================================
   PÁGINA DE VOTO (celular)
   ================================================================= */
.pg-voto { overflow-x: hidden; }
.sala {
  position: relative; z-index: 2; min-height: 100dvh; max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: 12px calc(var(--larg-cortina) + 10px) 0;
}
/* na página de voto a sala fica na frente das cortinas: a turma encosta nas bordas da tela */
.pg-voto .sala { z-index: 7; }
.cabeca { text-align: center; padding: 2px 0 12px; }
.cabeca .ornamento { width: min(230px, 66vw); margin: 0 auto; }
.pg-voto .tela-cinema { padding: 18px 14px; text-align: center; }
.pergunta {
  margin: 12px 0 18px; font: 800 clamp(25px, 7.4vw, 34px)/1.05 var(--serifa);
  text-transform: uppercase; color: var(--tinta);
}
.ingressos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.ingresso {
  position: relative; aspect-ratio: 1 / .86; border: 0; border-radius: 7px;
  background: #fff; color: var(--tinta);
  font: 800 clamp(25px, 8vw, 36px)/1 var(--serifa); font-variant-numeric: lining-nums;
  -webkit-mask:
    radial-gradient(circle 6px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 6px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 6px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 6px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  box-shadow: inset 0 0 0 1.5px rgba(12, 20, 66, .14), inset 0 -3px 0 rgba(12, 20, 66, .06);
  transition: transform .18s cubic-bezier(.3, 1.5, .5, 1), background .15s, color .15s;
}
.ingresso::before {
  content: ""; position: absolute; inset: 5px 10px; border: 1.5px dashed rgba(12, 20, 66, .16); border-radius: 4px; pointer-events: none;
}
.ingresso--10 { grid-column: span 2; aspect-ratio: auto; }
.ingresso:active { transform: scale(.95); }
.ingresso[aria-pressed="true"] {
  background: linear-gradient(180deg, #2f51f2, var(--azul-escuro)); color: var(--creme);
  transform: translateY(-3px) rotate(-2.5deg);
}
.ingresso[aria-pressed="true"]::before { border-color: rgba(244, 217, 149, .6); }
.ingresso:disabled { cursor: default; }
/* enquanto o voto vai para o servidor, só o escolhido fica aceso e pulsando */
.ingressos.enviando .ingresso:not([aria-pressed="true"]) { opacity: .45; }
.ingressos.enviando .ingresso[aria-pressed="true"] { animation: enviando .7s ease-in-out infinite alternate; }
@keyframes enviando { from { filter: brightness(1); } to { filter: brightness(1.25); } }
.pg-voto .btn-azul { width: 100%; }

.titulo-slide {
  margin: 10px 0 14px; font: 800 clamp(22px, 6.8vw, 30px)/1.08 var(--serifa); text-transform: uppercase;
  color: var(--tinta); text-wrap: balance; overflow-wrap: break-word;
}
.titulo-slide--longo { font-size: clamp(18px, 5.4vw, 25px); }
.titulo-slide--menor { margin-bottom: 0; font-size: clamp(18px, 5.2vw, 24px); }
.titulo-slide--menor.titulo-slide--longo { font-size: clamp(16px, 4.6vw, 21px); }
.pergunta-menor {
  margin: 0 0 16px; font: 700 12px/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--tinta-suave);
}
.form-codigo { display: grid; gap: 14px; }
.campo-codigo {
  width: 100%; min-height: 66px; padding: 0 12px; border-radius: 10px;
  border: 2px dashed rgba(12, 20, 66, .28); background: #fff; color: var(--tinta);
  text-align: center; font: 800 28px/1 var(--serifa); letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .15s, box-shadow .15s;
}
.campo-codigo::placeholder { color: rgba(12, 20, 66, .28); font-size: 20px; letter-spacing: .24em; }
.campo-codigo:focus { outline: none; border-style: solid; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(29, 58, 212, .16); }
.campo-codigo[aria-invalid] { border-color: #b3261e; }
.erro-codigo { margin: -4px 0 0; font: 600 14px/1.4 var(--sans); color: #b3261e; }

.ingresso-grande {
  position: relative; display: grid; place-items: center; margin: 18px auto 6px;
  width: 168px; height: 128px; border-radius: 10px;
  background: linear-gradient(180deg, #2f51f2, var(--azul-escuro)); color: var(--creme);
  -webkit-mask:
    radial-gradient(circle 11px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 11px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  animation: surgir .55s cubic-bezier(.3, 1.5, .5, 1) both;
}
.ingresso-grande::before { content: ""; position: absolute; inset: 9px 18px; border: 1.5px dashed rgba(244, 217, 149, .55); border-radius: 6px; }
.ingresso-grande small { position: absolute; top: 18px; font: 700 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ouro-claro); }
.ingresso-grande b { font: 800 64px/1 var(--serifa); margin-top: 12px; }
.texto { margin: 0 auto 18px; max-width: 28ch; font: 500 15px/1.5 var(--sans); color: var(--tinta-suave); }
.carregando { padding: 30px 0; font: 600 14px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--tinta-suave); }

/* logo do clube no alto, miniatura do slide, opções e a turma da capa embaixo */
.logo-topo {
  display: block; width: min(62vw, 260px, 30vh); height: auto; margin: 0 auto 2px;
  filter: drop-shadow(0 0 16px rgba(255, 210, 130, .35)) drop-shadow(0 4px 8px rgba(0, 0, 0, .6));
}
.pg-voto .titulo-noite { margin-top: 2px; font-size: clamp(21px, 6vw, 28px); }
.pg-voto .subtitulo { margin-top: 4px; }
.miniatura {
  display: block; width: min(58%, 210px); aspect-ratio: 16 / 9; object-fit: cover; margin: 0 auto 4px;
  border: 3px solid #fff; border-radius: 6px; background: var(--tela-2);
  box-shadow: 0 10px 18px -10px rgba(12, 20, 66, .55); transform: rotate(-1.5deg);
}
.miniatura--menor { width: min(44%, 160px); margin-bottom: 2px; }
[data-vista="enviado"] .ingresso-grande { margin: 14px auto 4px; }
[data-vista="enviado"] .pergunta { margin: 10px 0 6px; font-size: clamp(22px, 6.4vw, 28px); }
[data-vista="enviado"] .texto { margin-bottom: 12px; font-size: 14px; }
.ingressos--escala { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ingressos--escala .ingresso { font-size: clamp(22px, 7vw, 32px); }
.ingressos--opcoes { grid-template-columns: 1fr; gap: 10px; }
.ingresso--opcao {
  aspect-ratio: auto; min-height: 64px; padding: 12px 28px;
  font: 700 clamp(17px, 4.8vw, 21px)/1.2 var(--serifa); text-wrap: balance;
}
.ingresso--opcao::before { inset: 5px 12px; }
.ingresso-grande--texto { width: 100%; max-width: 310px; height: auto; min-height: 104px; padding: 34px 34px 20px; }
.ingresso-grande--texto b { margin-top: 0; font-size: clamp(20px, 6vw, 26px); line-height: 1.15; text-align: center; text-wrap: balance; }
.turma-fila { display: flex; align-items: flex-end; justify-content: center; }
.turma-fila img { display: block; width: 50%; height: auto; }
.pg-voto .plateia {
  flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: calc(min(100vw, 620px) * .56 / 1.31 + 4px);
  margin: 8px calc(-1 * (var(--larg-cortina) + 10px)) 0;
}
.pg-voto .plateia .turma-fila { position: relative; z-index: 1; filter: drop-shadow(0 -4px 14px rgba(0, 0, 0, .5)); }
/* no celular as duas turmas ficam maiores e se encostam no meio */
.pg-voto .turma-fila img { width: 56%; }
.pg-voto .turma-fila img + img { margin-left: -12%; }
/* quando sobra tela, a turma sobe um pouco e as pernas somem num degradê escuro */
@media (max-width: 999px) {
  .pg-voto .plateia .turma-fila {
    margin-bottom: clamp(0px, calc(100dvh - 760px), 64px);
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  }
}

/* celulares baixinhos: tudo um pouco menor para caber numa tela só */
@media (max-height: 720px) {
  .logo-topo { width: min(48vw, 190px); }
  .pg-voto .titulo-noite { font-size: 20px; }
  .pg-voto .subtitulo { display: none; }
  .cabeca { padding-bottom: 8px; }
  .miniatura { width: min(46%, 160px); }
  .titulo-slide { margin: 8px 0 10px; font-size: clamp(19px, 5.8vw, 26px); }
  .titulo-slide--longo { font-size: clamp(17px, 5vw, 22px); }
  .ingresso--opcao { min-height: 54px; padding: 9px 24px; }
}

/* computador: a turma vai para as bordas da tela, bem grande, atrás do cartão de voto */
@media (min-width: 1000px) {
  .pg-voto .tela-cinema { z-index: 1; }
  .pg-voto .plateia {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 0;
    height: 32vh; min-height: 0; margin: 0;
  }
  .pg-voto .plateia .turma-fila, .panos .turma-fila--panos {
    position: absolute; left: 0; right: 0; bottom: 0; max-width: none; justify-content: space-between;
  }
  .pg-voto .turma-fila img:first-child { width: min(calc((100vw - 560px) / 2 + 90px), 64vh * 1.31); }
  .pg-voto .turma-fila img:last-child { width: min(calc((100vw - 560px) / 2 + 90px), 64vh * 1.44); margin-left: 0; }
}

.logo-panos { width: min(60vw, 250px); height: auto; filter: drop-shadow(0 0 16px rgba(255, 210, 130, .4)) drop-shadow(0 5px 10px rgba(0, 0, 0, .7)); }
.turma-fila--panos {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: 640px; margin: 0 auto;
  opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .4s;
  filter: drop-shadow(0 -4px 16px rgba(0, 0, 0, .55));
}
.panos.fechado .turma-fila--panos { opacity: 1; transform: none; transition: opacity .6s .7s, transform .6s .7s; }
.encapuzado--panos {
  position: absolute; top: 8px; right: 4px; z-index: 2; width: min(26vw, 120px); height: auto;
  transform: scaleX(-1) rotate(6deg); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6));
  opacity: 0; transition: opacity .4s;
}
.panos.fechado .encapuzado--panos { opacity: 1; transition: opacity .6s .9s; }

/* =================================================================
   TELÃO (computador / projetor)
   ================================================================= */
.pg-telao {
  --larg-cortina: 10.5vw;
  --dobra: 2.3vw;
  height: 100dvh; overflow: hidden;
  display: grid; grid-template-rows: 11vh 1fr 19vh;
}
.telao-topo { position: relative; z-index: 8; display: grid; place-items: center; }

/* botões dos slides no alto do telão: Sala, 2, 3 … 10 */
.seletor { display: flex; align-items: stretch; gap: .5vw; }
.bilhetinho {
  position: relative; display: grid; place-items: center; align-content: center; gap: .5vh;
  min-width: 4vw; height: 7.6vh; padding: 0 .7vw; border: 0; border-radius: .5vw;
  background: rgba(255, 245, 223, .93); color: var(--tinta);
  -webkit-mask:
    radial-gradient(circle .9vh at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle .9vh at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle .9vh at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle .9vh at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  transition: transform .18s cubic-bezier(.3, 1.5, .5, 1), background .15s, color .15s;
}
.bilhetinho b { font: 800 clamp(15px, 2.9vh, 32px)/1 var(--serifa); }
.bilhetinho small {
  min-height: 1em; font: 700 clamp(8px, 1.2vh, 13px)/1 var(--sans); letter-spacing: .08em;
  text-transform: uppercase; color: var(--tinta-suave); white-space: nowrap;
}
.bilhetinho:hover { transform: translateY(-2px); }
.bilhetinho.revelado { background: linear-gradient(180deg, #2f51f2, var(--azul-escuro)); color: var(--creme); }
.bilhetinho.revelado small { color: var(--ouro-claro); }
.bilhetinho.atual {
  background: linear-gradient(180deg, var(--ouro-claro), var(--ouro)); color: var(--tinta);
  transform: translateY(-3px) rotate(-2deg);
}
.bilhetinho.atual small { color: var(--tinta); }
.bilhetinho--sala b { font: 800 clamp(11px, 1.8vh, 18px)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }

/* personagens da capa e logo do clube por cima de tudo (até da cortina fechada) */
.pg-telao .logo-clube {
  position: fixed; left: 50%; bottom: 1.6vh; z-index: 21; transform: translateX(-50%);
  width: clamp(200px, 23vw, 470px); height: auto; pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(255, 210, 130, .45)) drop-shadow(0 6px 10px rgba(0, 0, 0, .7));
}
.turma {
  position: fixed; bottom: 0; z-index: 21; width: auto; pointer-events: none;
  filter: drop-shadow(0 -4px 18px rgba(0, 0, 0, .55));
}
.turma--esq { left: 0; height: 31vh; }
.turma--dir { right: 0; height: 32vh; }
.pg-telao .encapuzado {
  position: fixed; top: .5vh; right: .4vw; z-index: 9; height: 23vh; width: auto; pointer-events: none;
  transform: scaleX(-1) rotate(6deg); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6));
}
.telao-sala { position: relative; z-index: 2; display: flex; min-height: 0; padding: 0 calc(var(--larg-cortina) - .5vw); }
.telao-sala::after {
  content: ""; position: absolute; left: 6vw; right: 6vw; bottom: -2.2vh; height: 2.2vh;
  background: linear-gradient(180deg, #0a0f2e, transparent);
}
.tela-cinema--grande { flex: 1; min-width: 0; container-type: size; display: grid; }
.tela-cinema--grande > [data-vista] { min-width: 0; min-height: 0; }
.pg-telao .plateia { z-index: 3; }

.v-centro { display: grid; place-content: center; text-align: center; gap: 2cqh; padding: 6cqh 8cqw; }
.v-centro h1 { margin: 0; font: 800 9cqh/1 var(--serifa); text-transform: uppercase; }
.v-centro p { margin: 0 auto; max-width: 46ch; font: 500 3.2cqh/1.5 var(--sans); color: var(--tinta-suave); }

/* início (código da sessão) e fim */
.v-inicio {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 5cqh 7cqw;
}
.v-inicio .etiqueta, .v-votando .etiqueta { font-size: 2.6cqh; }
.ornamento--tela { width: min(46cqh, 60%); margin-bottom: 1cqh; color: var(--ouro); filter: none; }
.inicio-dica { margin: 0; font: 600 2.5cqh/1.3 var(--sans); letter-spacing: .04em; color: var(--tinta-suave); }

/* votação aberta: miniatura do slide à esquerda, pergunta e contagem à direita */
.v-votando {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); align-items: center;
  gap: 4.5cqw; padding: 5cqh 6cqw;
}
.miniatura-telao {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1cqh solid #fff; border-radius: 1cqh;
  background: var(--tela-2); transform: rotate(-1.5deg);
  box-shadow: 0 3cqh 5cqh -2.5cqh rgba(12, 20, 66, .55);
}
.v-votando__info { min-width: 0; }
.opcoes-telao { display: flex; flex-wrap: wrap; gap: 1.2cqh; margin: 0 0 3cqh; }
.opcoes-telao span {
  padding: 1cqh 2.2cqh; border-radius: 999px; border: 2px solid rgba(29, 58, 212, .28);
  font: 700 2.5cqh/1.25 var(--sans); color: var(--azul);
}
.inicio-titulo {
  margin: 2.5cqh 0 2.2cqh; font: 800 14cqh/.95 var(--serifa); text-transform: uppercase;
  letter-spacing: -.005em; color: var(--tinta);
}
.inicio-passo { margin: 0 0 3.5cqh; max-width: 40ch; font: 600 3.6cqh/1.35 var(--sans); color: var(--tinta-suave); }
.inicio-passo strong { color: var(--azul); font-weight: 800; }
.bilhete-codigo {
  position: relative; display: grid; justify-items: center; min-width: 50cqh; margin-bottom: 5cqh;
  padding: 3.2cqh 8cqh 3.6cqh; border-radius: 1.4cqh; transform: rotate(-1.5deg);
  background: linear-gradient(180deg, #2f51f2, var(--azul-escuro)); color: var(--creme);
  -webkit-mask:
    radial-gradient(circle 2.2cqh at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 2.2cqh at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 2.2cqh at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 2.2cqh at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
}
.bilhete-codigo::before { content: ""; position: absolute; inset: 1.2cqh 3.6cqh; border: 2px dashed rgba(244, 217, 149, .55); border-radius: 1cqh; }
.bilhete-codigo small { font: 700 2.1cqh/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--ouro-claro); }
.bilhete-codigo b { margin-top: 1.6cqh; font: 800 11cqh/1 var(--serifa); letter-spacing: .08em; text-transform: uppercase; }

/* título do slide em cartaz: o tamanho da letra acompanha o comprimento */
.titulo-grande {
  max-width: 100%; margin: 2.2cqh 0 2.6cqh; font: 800 10cqh/1 var(--serifa); text-transform: uppercase;
  letter-spacing: -.005em; color: var(--tinta); text-wrap: balance; overflow-wrap: break-word;
}
.titulo-grande[data-tamanho="medio"] { font-size: 8cqh; line-height: 1.03; }
.titulo-grande[data-tamanho="longo"] { font-size: 6.4cqh; line-height: 1.06; }
.titulo-grande[data-tamanho="enorme"] { font-size: 5.2cqh; line-height: 1.1; }
.acoes--centro { justify-content: center; }
.contador {
  display: flex; align-items: baseline; gap: .55em; margin: 0;
  font: 700 3.2cqh/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--tinta-suave);
}
.contador b {
  display: inline-block; font: 800 12cqh/1 var(--serifa); letter-spacing: 0; color: var(--azul);
  font-variant-numeric: lining-nums tabular-nums;
}
.contador b.pulo { animation: pulo .45s cubic-bezier(.3, 1.6, .5, 1); }
.ingressinhos { display: flex; flex-wrap: wrap; gap: 1cqh; min-height: 3.2cqh; margin: 2.6cqh 0 5cqh; max-width: 92%; }
.ingressinhos i {
  width: 4.4cqh; height: 3.2cqh; border-radius: 3px; background: var(--ouro);
  -webkit-mask:
    radial-gradient(circle .6cqh at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle .6cqh at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle .6cqh at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle .6cqh at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  animation: surgir .45s cubic-bezier(.3, 1.6, .5, 1) both;
}
.ingressinhos i:nth-child(3n+2) { background: var(--azul); }
.ingressinhos i:nth-child(3n) { background: var(--ouro-claro); }
.acoes { display: flex; gap: 2cqw; align-items: center; flex-wrap: wrap; }
.btn-azul--grande { min-height: 9cqh; padding: 0 4.5cqh; font-size: 2.7cqh; }

.v-resultado {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5cqw;
  padding: 5cqh 6cqw;
}
.anel { position: relative; width: min(60cqh, 36cqw); aspect-ratio: 1; }
.v-resultado[data-tipo="opcoes"] .media { font-size: 15cqh; }
.anel svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.anel__trilho { fill: none; stroke: rgba(12, 20, 66, .08); stroke-width: 11; }
.anel__ouro { fill: none; stroke: url(#ouro-anel); stroke-width: 11; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(220, 174, 76, .55)); }
.anel__brilhos { fill: var(--ouro); }
.anel__centro { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.media {
  font: 800 23cqh/.9 var(--serifa); letter-spacing: -.02em; color: var(--tinta);
  font-variant-numeric: lining-nums tabular-nums;
}
.media-de { margin-top: 2cqh; font: 700 2.5cqh/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--tinta-suave); }
.v-resultado__info { min-width: 0; }
.titulo-resultado {
  margin: 0; font: 800 4.6cqh/1.12 var(--serifa); text-transform: uppercase; color: var(--tinta);
  text-wrap: balance; overflow-wrap: break-word;
}
.titulo-resultado[data-tamanho="longo"], .titulo-resultado[data-tamanho="enorme"] { font-size: 3.6cqh; }
.frase { margin: 2cqh 0 1.4cqh; font: 800 9.5cqh/1 var(--serifa); text-transform: uppercase; color: var(--azul); }
.resumo { margin: 0; font: 600 3cqh/1.3 var(--sans); letter-spacing: .06em; color: var(--tinta-suave); }
.revela { opacity: 0; transform: translateY(1.6cqh); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.v-resultado.mostrar .revela { opacity: 1; transform: none; }
.v-resultado.mostrar .revela--2 { transition-delay: .15s; }
.v-resultado.mostrar .revela--3 { transition-delay: 1.1s; }

.barras { display: grid; grid-template-columns: repeat(var(--colunas, 11), 1fr); gap: 1.1cqw; height: 27cqh; margin: 4.5cqh 0 5cqh; }
.barras:empty, .opcoes-res:empty { display: none; }

/* cabeçalho do resultado: miniatura + pergunta */
.res-cabeca { display: flex; align-items: center; gap: 2cqw; }
.miniatura-res {
  flex: none; height: 11cqh; aspect-ratio: 16 / 9; object-fit: cover; border: .6cqh solid #fff; border-radius: .8cqh;
  box-shadow: 0 1.5cqh 3cqh -1.5cqh rgba(12, 20, 66, .5); transform: rotate(-2deg);
}
.frase[data-tamanho="medio"] { font-size: 7.4cqh; line-height: 1.04; }
.frase[data-tamanho="longo"] { font-size: 5.8cqh; line-height: 1.08; }
.frase[data-tamanho="enorme"] { font-size: 4.6cqh; line-height: 1.1; }

/* resultado das votações de opção: uma barra deitada por opção */
.opcoes-res { display: grid; gap: 2.6cqh; margin: 3.6cqh 0 4.6cqh; }
.opcao-res__topo { display: flex; align-items: baseline; justify-content: space-between; gap: 2cqw; margin-bottom: 1cqh; }
.opcao-res__rotulo { min-width: 0; font: 700 3.2cqh/1.2 var(--serifa); color: var(--tinta); }
.opcao-res__pct { flex: none; font: 800 4.4cqh/1 var(--serifa); color: var(--azul); font-variant-numeric: lining-nums tabular-nums; }
.opcao-res__trilho { height: 3.6cqh; border-radius: 999px; background: rgba(12, 20, 66, .08); overflow: hidden; }
.opcao-res__barra {
  height: 100%; width: max(calc(var(--p) * 100%), 0px); border-radius: inherit;
  background: linear-gradient(90deg, var(--azul-escuro), #3557f2);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s cubic-bezier(.2, 1, .3, 1) calc(var(--i) * 140ms);
}
.opcao-res--vence .opcao-res__barra { background: linear-gradient(90deg, var(--ouro), var(--ouro-claro)); box-shadow: 0 0 14px rgba(220, 174, 76, .55); }
.opcao-res--vence .opcao-res__pct { color: #a87a22; }
.opcao-res__n { display: block; margin-top: .9cqh; font: 600 2.2cqh/1 var(--sans); letter-spacing: .06em; color: var(--tinta-suave); }
.v-resultado.mostrar .opcao-res__barra { transform: none; }
.barra { display: grid; grid-template-rows: 1fr auto; gap: 1.2cqh; min-width: 0; }
.barra__area { position: relative; }
.barra__col {
  position: absolute; left: 0; right: 0; bottom: 0; height: max(calc(var(--h) * 100%), 3px);
  border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #3557f2, var(--azul-escuro));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .75s cubic-bezier(.2, 1.25, .4, 1) calc(var(--i) * 65ms);
}
.barra--zero .barra__col { background: rgba(12, 20, 66, .12); }
.barra--top .barra__col { background: linear-gradient(180deg, var(--ouro-claro), var(--ouro)); box-shadow: 0 0 14px rgba(220, 174, 76, .5); }
.barra__n {
  position: absolute; left: 0; right: 0; bottom: calc(var(--h) * 100%); padding-bottom: .8cqh;
  text-align: center; font: 800 2.7cqh/1 var(--sans); color: var(--tinta);
  opacity: 0; transition: opacity .4s ease calc(var(--i) * 65ms + .45s);
}
.barra--zero .barra__n { display: none; }
.barra__nota { text-align: center; font: 800 3.1cqh/1 var(--serifa); color: var(--tinta-suave); }
.v-resultado.mostrar .barra__col { transform: none; }
.v-resultado.mostrar .barra__n { opacity: 1; }

.pg-telao .panos-texto { gap: 2.6vh; }
.pg-telao .panos-texto .ornamento { width: min(38vw, 620px); }
.suspense-titulo {
  display: block; max-width: 70vw; font: 700 clamp(20px, 2.8vw, 54px)/1.15 var(--serifa);
  color: var(--ouro-claro); text-wrap: balance; overflow-wrap: break-word;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}
.suspense-titulo::before { content: "“"; }
.suspense-titulo::after { content: "”"; }
.suspense-titulo[data-tamanho="longo"], .suspense-titulo[data-tamanho="enorme"] { font-size: clamp(18px, 2.2vw, 44px); }
.suspense-chamada {
  font: 800 clamp(40px, 6.4vw, 124px)/1 var(--serifa); text-transform: uppercase; color: var(--creme);
  text-shadow: 0 0 34px rgba(255, 220, 150, .45), 0 4px 18px rgba(0, 0, 0, .6);
}
.panos-texto .rufar { display: flex; gap: .5em; font: 800 clamp(30px, 5vw, 80px)/1 var(--serifa); color: var(--ouro-claro); }
.panos-texto .rufar i { font-style: normal; animation: rufar .55s ease-in-out infinite; }
.panos-texto .rufar i:nth-child(2) { animation-delay: .12s; }
.panos-texto .rufar i:nth-child(3) { animation-delay: .24s; }

/* opções do telão: canto de cima à esquerda, discretas */
.controles {
  position: fixed; top: 1.2vh; left: .6vw; z-index: 9; display: flex; flex-direction: column;
  align-items: flex-start; gap: 6px; opacity: .45; transition: opacity .25s;
}
.controles:hover, .controles:focus-within { opacity: 1; }
.chip {
  padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 245, 223, .28);
  background: rgba(5, 8, 23, .72); color: var(--creme);
  font: 600 12px/1 var(--sans); letter-spacing: .06em; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s;
}
.chip:hover { background: rgba(29, 58, 212, .55); border-color: rgba(255, 245, 223, .5); }
.chip[aria-pressed="false"] { opacity: .65; }
.chip--info { cursor: default; background: rgba(5, 8, 23, .45); font-variant-numeric: tabular-nums; }
.chip--info:hover { background: rgba(5, 8, 23, .45); border-color: rgba(255, 245, 223, .28); }
.festa { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}
