/* ===================================================================
   DW Ingressos — ESTILO DINÂMICO E BONITO
   ===================================================================
   Usado em: index.php (compra), lista.php (lista grátis),
             login.php e painel.php.
   Só o VISUAL. Pix, valores, vagas, CPF escondido e regras da
   equipe continuam iguais. Nenhum id e nenhuma função muda.

   As cores vêm das variáveis do site (--ouro, --tinta, --superficie...),
   então as cores de cada evento (Configurações / Editar evento)
   continuam valendo — no fundo escuro e no fundo claro.

   Para desligar tudo: tire das 4 páginas a linha deste arquivo
   e a linha do estilo-dinamico.js.

   Quem pediu "menos movimento" no celular: o style.css já desliga
   todo movimento; aqui também. A tela fica bonita, mas parada.
   Na impressão (lista de clientes) nada disto aparece.
   =================================================================== */

@property --di-giro { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

@media screen {

/* ---------- fundo com luzes e pontinhos ---------- */
.di-fundo {
    position: fixed; inset: 0; z-index: -1;
    overflow: hidden; pointer-events: none;
}
.di-luz { position: absolute; border-radius: 50%; }
.di-luz--1 {
    width: 640px; height: 640px; top: -240px; left: -180px;
    background: radial-gradient(circle, rgba(var(--ouro-rgb), .20), rgba(var(--ouro-rgb), 0) 66%);
}
.di-luz--2 {
    width: 560px; height: 560px; top: 18%; right: -220px;
    background: radial-gradient(circle, rgba(124, 58, 237, .13), rgba(124, 58, 237, 0) 66%);
}
.di-luz--3 {
    width: 600px; height: 600px; bottom: -260px; left: 28%;
    background: radial-gradient(circle, rgba(var(--ouro-escuro-rgb), .17), rgba(var(--ouro-escuro-rgb), 0) 66%);
}
.di-grade {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(var(--ouro-rgb), .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--ouro-rgb), .05) 1px, transparent 1px);
    background-size: 44px 44px; background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 15%, transparent 75%);
            mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 15%, transparent 75%);
}
.di-part {
    position: absolute; bottom: -12px; left: var(--x, 50%);
    width: var(--t, 3px); height: var(--t, 3px); border-radius: 50%;
    background: rgba(var(--ouro-rgb), .75);
    box-shadow: 0 0 8px rgba(var(--ouro-rgb), .8);
    opacity: 0;
}
/* no painel o fundo fica mais calmo (é tela de trabalho) */
.di-painel .di-part { display: none; }
.di-painel .di-luz--1 { left: 120px; }

/* ---------- logo com anel colorido girando ---------- */
.cabecalho .logo,
.barra-lateral .marca img {
    padding: 3px;
    background: conic-gradient(from var(--di-giro), #ff4d4d, #f5b83d, #3db8f5, #7c3aed, #ff4d4d);
    object-fit: cover;
}
.cabecalho .logo--lista { background: conic-gradient(from var(--di-giro), var(--ouro), rgba(var(--ouro-rgb), .15), var(--ouro)); }

/* ---------- selo "Pagamento via Pix" com bolinha piscando ---------- */
.cabecalho .selo { position: relative; }

/* ---------- títulos com brilho passando ---------- */
.cabecalho h1 {
    background-image: linear-gradient(100deg,
        var(--cor-titulo, var(--texto)) 0%, var(--cor-titulo, var(--texto)) 38%,
        var(--ouro) 50%,
        var(--cor-titulo, var(--texto)) 62%, var(--cor-titulo, var(--texto)) 100%);
    background-size: 250% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- cartões das páginas públicas (compra, lista, login) ---------- */
.envolucro > .cartao {
    position: relative; isolation: isolate;
    background-image: radial-gradient(120% 60% at 50% 0%, rgba(var(--ouro-rgb), .07), rgba(var(--ouro-rgb), 0) 60%);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), 0 0 70px -34px rgba(var(--ouro-rgb), .6);
}
/* borda colorida que gira em volta */
.envolucro > .cartao::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
    pointer-events: none; z-index: -1;
    background: conic-gradient(from var(--di-giro),
        transparent 0deg, rgba(var(--ouro-rgb), .95) 60deg, rgba(var(--ouro-rgb), .25) 110deg, transparent 160deg,
        transparent 200deg, rgba(124, 58, 237, .7) 260deg, rgba(var(--ouro-rgb), .4) 310deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* luz que segue o mouse (computador) */
.envolucro > .cartao::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -10%), rgba(var(--ouro-rgb), .10), transparent 60%);
}

/* ---------- campos ---------- */
.di-campo { position: relative; display: block; }
.di-campo > input.di-ic { padding-left: 44px; }
.di-campo > input.di-ic-dir { padding-right: 44px; }
.di-icone {
    position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
    color: var(--texto-mudo); opacity: .75; pointer-events: none;
    transition: color .2s, opacity .2s, transform .25s;
}
.di-campo:focus-within .di-icone { color: var(--ouro); opacity: 1; transform: scale(1.1); }
input, select, textarea { transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease; }
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(var(--ouro-rgb), .16), 0 10px 26px -16px rgba(var(--ouro-rgb), .9);
}
label { transition: color .2s; }
label:has(+ .di-campo:focus-within), label:has(+ input:focus), label:has(+ select:focus) { color: var(--texto); }
/* ✓ verde quando o e-mail está certo */
.di-ok {
    position: absolute; right: 13px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(34, 209, 98, .15); color: var(--alta); pointer-events: none;
    opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .25, 1.4);
}
.di-ok svg { width: 12px; height: 12px; }
input[type="email"]:not(:placeholder-shown):valid ~ .di-ok { opacity: 1; transform: scale(1); }
/* olho da senha (login) */
.di-olho {
    position: absolute; right: 6px; top: 50%; width: 36px; height: 36px; margin-top: -18px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 0; border-radius: 9px; padding: 0; cursor: pointer;
    color: var(--texto-mudo); transition: color .2s, background-color .2s;
}
.di-olho:hover { color: var(--ouro); background: rgba(var(--ouro-rgb), .1); }
.di-olho svg { width: 19px; height: 19px; }
.di-olho .di-olho-f { display: none; }
.di-olho.di-vendo .di-olho-a { display: none; }
.di-olho.di-vendo .di-olho-f { display: block; }
.di-olho.di-vendo { color: var(--ouro); }
/* aviso de Caps Lock */
.di-caps {
    display: none; align-items: center; gap: 6px; width: max-content; max-width: 100%;
    margin-top: 8px; padding: 5px 10px; border-radius: 8px;
    font-size: .8rem; font-weight: 700; color: var(--pendente);
    background: rgba(245, 184, 61, .1); border: 1px solid rgba(245, 184, 61, .35);
}
.di-caps.show { display: flex; }

/* ---------- escolher o evento ---------- */
.opcao-evento { transition: border-color .2s ease, background-color .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
.opcao-evento:not(.opcao-evento--esgotado):hover {
    transform: translateY(-2px);
    border-color: rgba(var(--ouro-rgb), .55);
    box-shadow: 0 12px 26px -18px rgba(var(--ouro-rgb), .9);
}
.opcao-evento:has(input:checked) {
    box-shadow: 0 0 0 3px rgba(var(--ouro-rgb), .18), 0 14px 30px -18px rgba(var(--ouro-rgb), .95);
}
.opcao-evento .avatar-evento { transition: transform .3s cubic-bezier(.2, .9, .25, 1.3), box-shadow .3s; }
.opcao-evento:has(input:checked) .avatar-evento { transform: scale(1.08); box-shadow: 0 0 0 2px var(--ouro), 0 0 16px rgba(var(--ouro-rgb), .6); }
.evento-unico { position: relative; overflow: hidden; }
.evento-unico .avatar-evento { box-shadow: 0 0 0 2px var(--ouro), 0 0 18px rgba(var(--ouro-rgb), .45); }

/* ---------- botões ---------- */
.botao { position: relative; overflow: hidden; transition: filter .15s ease, transform .2s ease, box-shadow .25s ease, background-color .2s ease; }
.botao:not(.botao--secundario) {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .10));
}
.botao:not(:disabled):hover { transform: translateY(-2px); }
.botao:not(.botao--secundario):not(:disabled):hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 16px 32px -14px rgba(var(--ouro-rgb), .95); }
.botao--perigo:not(:disabled):hover { box-shadow: 0 16px 32px -14px rgba(255, 77, 77, .9) !important; }
.botao--secundario:not(:disabled):hover { border-color: rgba(var(--ouro-rgb), .55); box-shadow: 0 10px 24px -16px rgba(var(--ouro-rgb), .8); }
.botao:not(:disabled):active { transform: translateY(1px) scale(.99); }
/* reflexo de luz passando no botão principal */
.botao:not(.botao--secundario)::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%;
    pointer-events: none; opacity: 0;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: translateX(-130%) skewX(-18deg);
}
/* "Gerando ingresso..." / "Enviando..." / "Entrando": rodinha girando */
.botao.di-carregando::before {
    content: ""; display: inline-block; width: 15px; height: 15px; margin: -3px 10px 0 0; vertical-align: middle;
    border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; opacity: .8;
    animation: diRodinha .7s linear infinite;
}
.botao.di-carregando::after { display: none; }
.botao.di-carregando { cursor: progress; }

/* ---------- erro ---------- */
.mensagem-erro { box-shadow: 0 12px 28px -18px rgba(255, 77, 77, .9); }

/* ---------- valor do ingresso ---------- */
.preco-atual strong { display: inline-block; }

/* ---------- o bilhete com QR ---------- */
.ingresso { box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .85), 0 0 60px -26px rgba(var(--ouro-rgb), .7); }
.ingresso__topo { position: relative; overflow: hidden; }
.ingresso__topo::after { /* brilho holográfico passando */
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none; opacity: 0;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: translateX(-130%) skewX(-18deg);
}
.ingresso__topo .valor { display: inline-block; }
/* cantinhos em volta do QR (não ficam em cima do código: o celular lê normal) */
.di-qr { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto; }
.di-canto {
    position: absolute; width: 26px; height: 26px; pointer-events: none;
    border: 3px solid var(--ouro-escuro); border-radius: 4px;
}
.di-canto--1 { top: -9px; left: -9px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.di-canto--2 { top: -9px; right: -9px; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.di-canto--3 { bottom: -9px; left: -9px; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.di-canto--4 { bottom: -9px; right: -9px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
/* contagem: fica vermelha nos últimos 5 minutos */
.ingresso__contagem { transition: background-color .3s, color .3s; }
.ingresso__contagem.di-urgente { background: #ffe1e1; color: #a11616; }
.ingresso__contagem.di-urgente strong { color: #c01818; }
.ingresso__contagem.di-expirou { background: #ffe1e1; color: #a11616; }
/* botão copiar: fica verde quando copia */
.ingresso .botao--secundario.di-copiado { background: var(--alta); color: #04240f; }

/* ---------- pagamento confirmado ---------- */
.bv-avatar::before { /* anel girando */
    content: ""; position: absolute; inset: -12px; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from var(--di-giro), rgba(34, 209, 98, 0), rgba(34, 209, 98, .9), rgba(var(--ouro-rgb), .8), rgba(34, 209, 98, 0) 70%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.bv-selo { z-index: 1; }
.bv-ingresso { overflow: hidden; }
.bv-ingresso::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none; opacity: 0;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
    transform: translateX(-130%) skewX(-18deg);
}
.lista-ok__icone { display: inline-block; }

/* ===================== PAINEL ===================== */
.barra-lateral {
    background-image:
        radial-gradient(120% 40% at 0% 0%, rgba(var(--ouro-rgb), .10), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 40%);
    box-shadow: 10px 0 40px -30px rgba(var(--ouro-rgb), .7);
}
.barra-lateral nav a { transition: background-color .2s ease, color .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.barra-lateral nav a:not(.ativo):hover { transform: translateX(4px); }
.barra-lateral nav a.ativo {
    background: linear-gradient(90deg, rgba(var(--ouro-rgb), .20), rgba(var(--ouro-rgb), .04));
    box-shadow: inset 0 0 0 1px rgba(var(--ouro-rgb), .18), 0 8px 22px -16px rgba(var(--ouro-rgb), .9);
}
.barra-lateral nav a.ativo::before { box-shadow: 0 0 10px rgba(var(--ouro-rgb), .9); }
.barra-lateral nav a.sair:hover { transform: translateX(4px); }
.link-instalar { transition: background-color .2s, transform .2s, box-shadow .2s; }
.link-instalar:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(var(--ouro-rgb), .9); }

/* total vendido */
.cartao-saldo {
    isolation: isolate;
    background-image:
        radial-gradient(70% 120% at 0% 0%, rgba(var(--ouro-rgb), .13), transparent 60%),
        radial-gradient(50% 100% at 100% 100%, rgba(124, 58, 237, .08), transparent 60%);
    box-shadow: 0 24px 50px -32px rgba(var(--ouro-rgb), .8);
}
.cartao-saldo::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: -1;
    background: conic-gradient(from var(--di-giro), transparent 0deg, rgba(var(--ouro-rgb), .85) 70deg, transparent 150deg, transparent 220deg, rgba(var(--ouro-rgb), .45) 290deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.cartao-saldo::after { /* a faixa do canhoto ganha um brilho que desce */
    background-image: linear-gradient(180deg, transparent, rgba(255, 255, 255, .6), transparent);
    background-size: 100% 35%; background-repeat: no-repeat; background-position: 0 -60%;
}
.cartao-saldo .valor { text-shadow: 0 0 30px rgba(var(--ouro-rgb), .35); }

/* contadores Pagos / Pendentes / Cancelados */
.contador {
    position: relative; overflow: hidden;
    transition: border-color .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
.contador::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: .85;
    background: linear-gradient(90deg, var(--di-c, var(--ouro)), transparent);
}
.contador--pago { --di-c: var(--alta); --di-c-rgb: 34, 209, 98; }
.contador--pendente { --di-c: var(--pendente); --di-c-rgb: 245, 184, 61; }
.contador--cancelado { --di-c: var(--queda); --di-c-rgb: 255, 77, 77; }
.contador:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--di-c-rgb, var(--ouro-rgb)), .55);
    box-shadow: 0 16px 30px -20px rgba(var(--di-c-rgb, var(--ouro-rgb)), .9);
}
.contador .numero { text-shadow: 0 0 22px rgba(var(--di-c-rgb, var(--ouro-rgb)), .35); }

/* cartões de evento, vagas, prêmios */
.vaga-item, .evento-item, .painel-vaga, .premio-item {
    transition: border-color .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
.vaga-item:hover, .evento-item:hover, .painel-vaga:hover, .premio-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -24px rgba(var(--ouro-rgb), .9);
}
.vaga-item:hover, .premio-item:hover { border-color: rgba(var(--ouro-rgb), .4); }
.vaga-item .avatar-evento, .painel-vaga .avatar-evento, .evento-item .avatar-evento { transition: transform .3s cubic-bezier(.2, .9, .25, 1.3), box-shadow .3s; }
.vaga-item:hover .avatar-evento, .painel-vaga:hover .avatar-evento, .evento-item:hover .avatar-evento {
    transform: scale(1.07); box-shadow: 0 0 0 2px var(--ouro), 0 0 16px rgba(var(--ouro-rgb), .55);
}
.vaga-item__dinheiro .num { text-shadow: 0 0 20px rgba(var(--ouro-rgb), .35); }
/* barra de vagas: listras andando */
.barra-vagas span { position: relative; overflow: hidden; transform-origin: left center; box-shadow: 0 0 12px rgba(34, 209, 98, .55); }
.barra-vagas span::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .22) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .22) 75%, transparent 75%);
    background-size: 22px 22px;
}

/* últimos pagamentos */
.lista-recentes li { transition: background-color .2s ease; border-radius: 10px; }
.lista-recentes li:hover { background: rgba(var(--ouro-rgb), .05); }
.lista-recentes .quanto { text-shadow: 0 0 16px rgba(34, 209, 98, .45); }

/* tabela de clientes */
.tabela-clientes tbody tr:not(.linha-veio):not(.linha-faltou):hover { box-shadow: inset 3px 0 0 var(--ouro); }
.badge--pago::before { box-shadow: 0 0 6px currentColor; }

/* filtros (Todos / Pagos / Pendentes...) */
.filtro a { transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.filtro a.ativo { box-shadow: 0 6px 16px -8px rgba(var(--ouro-rgb), .9); }
.chip-presenca { transition: border-color .2s, background-color .2s, transform .2s; }
.chip-presenca:hover { transform: translateY(-1px); border-color: rgba(var(--ouro-rgb), .55); }
.btn-presenca { transition: background-color .2s, color .2s, transform .2s, box-shadow .2s; }
.btn-presenca:not(:disabled):hover { transform: translateY(-1px); }
.btn-presenca.marcado { box-shadow: 0 6px 16px -8px currentColor; }

.link-editar { transition: background-color .2s, transform .2s, box-shadow .2s; display: inline-block; }
.link-editar:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(var(--ouro-rgb), .9); }

.aviso-salvo { box-shadow: 0 12px 28px -18px rgba(34, 209, 98, .9); }

/* ---------- sorteio ---------- */
.palco-sorteio { isolation: isolate; }
.palco-sorteio::before { /* raios de luz girando atrás */
    content: ""; position: absolute; left: 50%; top: 50%; width: 1600px; height: 1600px;
    margin: -800px 0 0 -800px; z-index: -1; pointer-events: none; opacity: .55;
    background: repeating-conic-gradient(from var(--di-giro), rgba(var(--ouro-rgb), .10) 0deg 7deg, transparent 7deg 18deg);
    -webkit-mask-image: radial-gradient(circle, #000 0, transparent 45%);
            mask-image: radial-gradient(circle, #000 0, transparent 45%);
    transition: opacity .4s;
}
.palco-sorteio.girando::before { opacity: 1; }
.palco-sorteio.ganhou::before {
    opacity: .9;
    background: repeating-conic-gradient(from var(--di-giro), rgba(34, 209, 98, .14) 0deg 7deg, transparent 7deg 18deg);
}
.palco-numero { position: relative; }
.palco-numero::after { /* onda saindo da bola */
    content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none;
    border: 2px solid rgba(var(--ouro-rgb), .6); opacity: 0;
}
.palco-sorteio.ganhou .palco-numero::after { border-color: rgba(34, 209, 98, .8); }
.palco-numero[role="button"] { transition: box-shadow .25s ease, filter .25s ease; }
/* o círculo também sorteia: brilha mais quando o mouse passa */
.palco-sorteio:not(.girando):not(.ganhou) .palco-numero[role="button"]:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 0 14px rgba(var(--ouro-rgb), .22), 0 0 50px rgba(var(--ouro-rgb), .6), 0 20px 50px -18px rgba(var(--ouro-escuro-rgb), .9);
}
.palco-sorteio.ganhou .palco-numero[role="button"]:hover {
    filter: brightness(1.06);
    box-shadow: 0 0 0 16px rgba(34, 209, 98, .2), 0 0 50px rgba(34, 209, 98, .6), 0 20px 50px -18px rgba(34, 209, 98, .9);
}
.palco-numero[role="button"]:focus-visible { outline: 3px solid var(--foco); outline-offset: 8px; }

/* ---------- janelas de confirmação / aviso ---------- */
/* (a janela de "Parabéns, esgotou!" fica com o visual dela) */
.dialogo:not(.festa-dialogo) {
    overflow: hidden;
    background-image: radial-gradient(120% 60% at 50% 0%, rgba(var(--ouro-rgb), .10), transparent 60%);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 60px -26px rgba(var(--ouro-rgb), .7);
}
.dialogo:not(.festa-dialogo)::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none;
    background: linear-gradient(90deg, var(--ouro), #7c3aed, var(--ouro));
    background-size: 200% 100%;
}
.dialogo--perigo::before { background: linear-gradient(90deg, var(--queda), #f5b83d, var(--queda)); background-size: 200% 100%; }
.dialogo::backdrop { backdrop-filter: blur(6px); }

/* ---------- celular ---------- */
@media (max-width: 820px) {
    .barra-lateral nav a:not(.ativo):hover,
    .barra-lateral nav a.sair:hover { transform: none; }
    .di-painel .di-luz--1 { left: -180px; }
}
@media (max-width: 560px) {
    .di-luz--1 { width: 420px; height: 420px; top: -160px; left: -160px; }
    .di-luz--2 { width: 360px; height: 360px; right: -180px; }
    .di-luz--3 { width: 400px; height: 400px; bottom: -200px; left: 10%; }
    .di-grade { background-size: 34px 34px; }
}

/* ===================== MOVIMENTO ===================== */
@media (prefers-reduced-motion: no-preference) {
    .di-luz--1 { animation: diDeriva1 20s ease-in-out infinite alternate; }
    .di-luz--2 { animation: diDeriva2 24s ease-in-out infinite alternate; }
    .di-luz--3 { animation: diDeriva3 18s ease-in-out infinite alternate; }
    .di-part { animation: diParticula var(--d, 12s) linear var(--a, 0s) infinite; }

    .cabecalho .logo, .barra-lateral .marca img { animation: diGira 7s linear infinite, diBrilhoLogo 3.4s ease-in-out infinite; }
    .cabecalho .selo::before { animation: diPing 2s ease-out infinite; }
    .cabecalho h1 { animation: diBrilhoTexto 6s ease-in-out 1s infinite; }
    .envolucro > .cartao::before, .cartao-saldo::before { animation: diGira 8s linear infinite; }
    .botao:not(.botao--secundario):not(:disabled)::after { animation: diReflexo 5s ease-in-out 1.5s infinite; }
    .ingresso__topo::after { animation: diReflexo 4s ease-in-out .8s infinite; }
    .di-canto { animation: diCanto 1.8s ease-in-out infinite; }
    .ingresso__contagem.di-urgente { animation: diUrgente 1s ease-in-out infinite; }
    .ingresso .botao--secundario.di-copiado { animation: diPop .4s cubic-bezier(.2, .9, .25, 1.4); }
    .di-pop { animation: diPop .45s cubic-bezier(.2, .9, .25, 1.4); }
    .mensagem-erro.di-treme { animation: diTreme .5s cubic-bezier(.36, .07, .19, .97) backwards; }
    .di-caps.show { animation: diSurge .3s ease backwards; }

    .bv-avatar::before { animation: diGira 3s linear infinite; }
    .bv-selo { animation: diPop .6s cubic-bezier(.2, .9, .25, 1.5) .45s backwards; }
    .bv-confirmado { animation: diSurgeSobe .5s ease .25s backwards; }
    .bv-ingresso { animation: diSurgeSobe .6s cubic-bezier(.2, .8, .2, 1) .35s backwards; }
    .bv-ingresso::after { animation: diReflexo 4.5s ease-in-out 1.4s infinite; }
    .lista-ok { animation: diPopCartao .55s cubic-bezier(.2, .9, .25, 1.15) backwards; }
    .lista-ok__icone { animation: diPula 1.2s ease-in-out .3s 2; }

    .cartao-saldo::after { animation: diFaixa 3.2s ease-in-out infinite; }
    .barra-vagas span::after { animation: diListras 1.1s linear infinite; }
    .badge--pendente::before { animation: diPisca 1.4s ease-in-out infinite; }
    .palco-sorteio::before { animation: diGira 40s linear infinite; }
    .palco-sorteio.girando::before { animation-duration: 4s; }
    .palco-numero::after { animation: diOnda 2.4s ease-out infinite; }
    .palco-sorteio.girando .palco-numero::after { animation-duration: .7s; }
    /* antes de sortear, o círculo "chama" o clique */
    .palco-sorteio:not(.girando):not(.ganhou) .palco-numero[role="button"] { animation: diConvite 2.2s ease-in-out infinite; }
    .dialogo:not(.festa-dialogo)::before { animation: diCorre 3s linear infinite; }
    .dialogo:not(.festa-dialogo)[open] .dialogo__icone { animation: diPop .5s cubic-bezier(.2, .9, .25, 1.5) .1s backwards; }
    .di-mudou { animation: diMudou 1.6s ease-out; }

    /* entrada da tela (não repete quando a página recarrega sozinha) */
    html:not(.di-recarga) .cabecalho > * { animation: diSurgeSobe .6s cubic-bezier(.2, .8, .2, 1) backwards; }
    html:not(.di-recarga) .cabecalho > .logo { animation: diSurgeSobe .6s cubic-bezier(.2, .8, .2, 1) backwards, diGira 7s linear infinite, diBrilhoLogo 3.4s ease-in-out infinite; }
    html:not(.di-recarga) .cabecalho > h1 { animation: diSurgeSobe .6s cubic-bezier(.2, .8, .2, 1) .16s backwards, diBrilhoTexto 6s ease-in-out 1.2s infinite; }
    html:not(.di-recarga) .cabecalho > .selo { animation-delay: .08s; }
    html:not(.di-recarga) .cabecalho > p { animation-delay: .24s; }
    html:not(.di-recarga) .envolucro > form.cartao,
    html:not(.di-recarga) .envolucro > .vazio-publico { animation: diSurgeSobe .7s cubic-bezier(.2, .8, .2, 1) .3s backwards; }
    html:not(.di-recarga) .opcao-evento { animation: diDoLado .5s cubic-bezier(.2, .8, .2, 1) backwards; }
    html:not(.di-recarga) .opcao-evento:nth-of-type(1) { animation-delay: .45s; }
    html:not(.di-recarga) .opcao-evento:nth-of-type(2) { animation-delay: .52s; }
    html:not(.di-recarga) .opcao-evento:nth-of-type(3) { animation-delay: .59s; }
    html:not(.di-recarga) .opcao-evento:nth-of-type(n+4) { animation-delay: .66s; }

    html:not(.di-recarga) .barra-lateral nav a { animation: diDoLado .45s cubic-bezier(.2, .8, .2, 1) backwards; }
    html:not(.di-recarga) .barra-lateral nav a:nth-child(1) { animation-delay: .05s; }
    html:not(.di-recarga) .barra-lateral nav a:nth-child(2) { animation-delay: .09s; }
    html:not(.di-recarga) .barra-lateral nav a:nth-child(3) { animation-delay: .13s; }
    html:not(.di-recarga) .barra-lateral nav a:nth-child(4) { animation-delay: .17s; }
    html:not(.di-recarga) .barra-lateral nav a:nth-child(5) { animation-delay: .21s; }
    html:not(.di-recarga) .barra-lateral nav a:nth-child(6) { animation-delay: .25s; }
    html:not(.di-recarga) .barra-lateral nav a:nth-child(n+7) { animation-delay: .29s; }
    html:not(.di-recarga) .conteudo-painel > * { animation: diSurgeSobe .55s cubic-bezier(.2, .8, .2, 1) backwards; }
    html:not(.di-recarga) .conteudo-painel > :nth-child(2) { animation-delay: .07s; }
    html:not(.di-recarga) .conteudo-painel > :nth-child(3) { animation-delay: .14s; }
    html:not(.di-recarga) .conteudo-painel > :nth-child(4) { animation-delay: .21s; }
    html:not(.di-recarga) .conteudo-painel > :nth-child(n+5) { animation-delay: .28s; }
    html:not(.di-recarga) .barra-vagas span { animation: diBarra 1.3s cubic-bezier(.2, .8, .2, 1) .35s backwards; }
    html:not(.di-recarga) .lista-recentes li:nth-child(-n+8) { animation: diDoLado .45s cubic-bezier(.2, .8, .2, 1) backwards; }
    html:not(.di-recarga) .lista-recentes li:nth-child(2) { animation-delay: .05s; }
    html:not(.di-recarga) .lista-recentes li:nth-child(3) { animation-delay: .1s; }
    html:not(.di-recarga) .lista-recentes li:nth-child(4) { animation-delay: .15s; }
    html:not(.di-recarga) .lista-recentes li:nth-child(5) { animation-delay: .2s; }
    html:not(.di-recarga) .lista-recentes li:nth-child(6) { animation-delay: .25s; }
    html:not(.di-recarga) .lista-recentes li:nth-child(n+7) { animation-delay: .3s; }
    html:not(.di-recarga) .tabela-clientes tbody tr:nth-child(-n+12) { animation: diSurge .4s ease backwards; }
    html:not(.di-recarga) .tabela-clientes tbody tr:nth-child(n+2) { animation-delay: .04s; }
    html:not(.di-recarga) .tabela-clientes tbody tr:nth-child(n+4) { animation-delay: .1s; }
    html:not(.di-recarga) .tabela-clientes tbody tr:nth-child(n+7) { animation-delay: .16s; }
    html:not(.di-recarga) .tabela-clientes tbody tr:nth-child(n+10) { animation-delay: .22s; }
    .aviso-salvo { animation: diDesce .45s cubic-bezier(.2, .9, .25, 1.2) backwards; }
}
@keyframes diRodinha { to { transform: rotate(360deg); } }

} /* fim do @media screen */

@keyframes diDeriva1 { to { transform: translate(80px, 60px) scale(1.08); } }
@keyframes diDeriva2 { to { transform: translate(-90px, 40px) scale(1.1); } }
@keyframes diDeriva3 { to { transform: translate(-70px, -50px) scale(.92); } }
@keyframes diParticula {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: .8; }
    85% { opacity: .4; }
    100% { transform: translateY(-105vh); opacity: 0; }
}
@keyframes diGira { to { --di-giro: 360deg; } }
@keyframes diBrilhoLogo {
    0%, 100% { box-shadow: 0 0 0 4px rgba(var(--ouro-rgb), .14), 0 18px 40px -16px rgba(var(--ouro-escuro-rgb), .8); }
    50% { box-shadow: 0 0 0 6px rgba(var(--ouro-rgb), .22), 0 0 34px rgba(var(--ouro-rgb), .5); }
}
@keyframes diPing {
    0% { box-shadow: 0 0 0 0 rgba(var(--cor-pix-rgb, var(--ouro-rgb)), .7); }
    100% { box-shadow: 0 0 0 9px rgba(var(--cor-pix-rgb, var(--ouro-rgb)), 0); }
}
@keyframes diBrilhoTexto { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }
@keyframes diReflexo {
    0% { transform: translateX(-130%) skewX(-18deg); opacity: 0; }
    6% { opacity: 1; }
    30% { transform: translateX(330%) skewX(-18deg); opacity: 0; }
    100% { transform: translateX(330%) skewX(-18deg); opacity: 0; }
}
@keyframes diCanto { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: .45; } }
@keyframes diUrgente { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); } }
@keyframes diPop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes diPopCartao { from { opacity: 0; transform: translateY(14px) scale(.95); } }
@keyframes diTreme {
    0% { opacity: 0; transform: translateX(0); }
    15% { opacity: 1; transform: translateX(-7px); }
    30% { transform: translateX(6px); }
    45% { transform: translateX(-5px); }
    60% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}
@keyframes diSurge { from { opacity: 0; } }
@keyframes diSurgeSobe { from { opacity: 0; transform: translateY(14px); } }
@keyframes diDoLado { from { opacity: 0; transform: translateX(-12px); } }
@keyframes diDesce { from { opacity: 0; transform: translateY(-10px); } }
@keyframes diPula { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-12px) scale(1.1); } 60% { transform: translateY(0) scale(.96); } }
@keyframes diFaixa { 0% { background-position: 0 -60%; } 60%, 100% { background-position: 0 160%; } }
@keyframes diListras { to { background-position: 22px 0; } }
@keyframes diBarra { from { transform: scaleX(0); } }
@keyframes diPisca { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes diOnda { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes diCorre { to { background-position: -200% 0; } }
@keyframes diConvite { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes diMudou {
    0% { text-shadow: 0 0 0 rgba(var(--ouro-rgb), 0); }
    25% { text-shadow: 0 0 26px rgba(var(--ouro-rgb), .95), 0 0 6px #fff; }
    100% { text-shadow: 0 0 0 rgba(var(--ouro-rgb), 0); }
}

/* número contando (o número certo fica guardado; só o desenho conta) */
@media screen {
    .di-contando { position: relative; color: transparent !important; -webkit-text-fill-color: transparent !important; }
    .di-contando::after {
        content: attr(data-di-num); position: absolute; left: 0; right: 0; top: 0;
        color: var(--di-cor); -webkit-text-fill-color: var(--di-cor); white-space: nowrap;
    }
}
