/* O bingo usa as cores da festa, com um pouco de teatro de Halloween. */
#controle-bingo { margin-top: 24px; scroll-margin-top: 20px; }
#bingo-nova { margin-top: 24px; }
.bingo-ultima-comite { font-size: 2.7rem; color: var(--ouro-claro); font-weight: 600; }
.bingo-historico { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; }
.bingo-historico li { border: 1px solid var(--linha); padding: 5px 12px; border-radius: 20px; }
.bingo-sortear { background: var(--ouro-claro); box-shadow: 0 0 20px #d4b47133; }
.bingo-opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.telao[data-tela="bingo"] { background: #0d1912; }
.telao[data-tela="bingo"] .palco { max-width: 1920px; padding: 10px 24px 16px; overflow: visible; }
.telao[data-tela="bingo"] .abertura { display: none; }
.telao[data-tela="bingo"] #conexao { margin: 4px 0; font-size: .95rem; min-height: 1.5em; }
.telao[data-tela="bingo"] .topo { position: relative; z-index: 5; font-size: 1rem; }
.telao[data-tela="bingo"] .topo button { font-size: .92rem; padding: 6px 12px; }
.bingo-show { position: relative; isolation: isolate; padding: 0 12px 20px; }
.bg-cenarios { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.bg-feixe { position: absolute; width: 80%; height: 130%; top: -20%; background: conic-gradient(from 160deg at 50% 0, transparent 0deg, #dfc27b15 13deg, transparent 26deg); transform-origin: 50% 0; animation: bg-luzes 11s ease-in-out infinite alternate; }
.feixe-a { left: -30%; }.feixe-b { right: -30%; animation-delay: -5s; }
.bg-estrelas { font-size: 4rem; letter-spacing: 3vw; color: #d4b47133; text-align: center; animation: bg-brilho 6s ease-in-out infinite; }
.bg-morcego { position: absolute; width: 65px; height: 30px; background: #b099d955; clip-path: polygon(0 0, 18% 25%, 35% 28%, 43% 5%, 50% 23%, 57% 5%, 65% 28%, 82% 25%, 100% 0, 90% 73%, 76% 58%, 64% 76%, 50% 100%, 36% 76%, 24% 58%, 10% 73%); animation: bg-voo 8s ease-in-out infinite alternate; }
.morcego-a { top: 8%; left: 8%; }.morcego-b { top: 20%; right: 2%; transform: scale(.7); animation-delay: -4s; }
.bg-cabeca { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 8px 0 18px; border-bottom: 1px solid #d4b47144; }
.telao .bg-cabeca .kicker { font-size: clamp(.85rem, 1.2vw, 1.1rem); letter-spacing: .18em; }
.bg-cabeca h2 { font-size: clamp(2.3rem, 4.4vw, 4.8rem); line-height: 1.08; letter-spacing: -.025em; }
.bg-cabeca h2 em { color: #dfc27b; font-weight: 400; }
.bg-selo { display: flex; flex-direction: column; text-align: right; max-width: 38%; }
.bg-nome { font-size: clamp(1.3rem, 2vw, 2.2rem); color: #eed9a7; overflow-wrap: anywhere; }
.bg-estado { font-family: system-ui, sans-serif; font-size: clamp(.75rem, 1vw, 1rem); color: #b3bcac; }
.bg-layout { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.45fr); gap: clamp(20px, 3vw, 60px); align-items: center; padding-top: 22px; }
.bg-palco { position: relative; text-align: center; min-width: 0; }
.bg-chamada { color: #dec893; font-size: clamp(1.3rem, 2vw, 2rem); font-style: italic; min-height: 1.6em; }
.bg-maquina { position: relative; height: clamp(245px, 38vh, 430px); width: 100%; perspective: 900px; margin: 8px auto; }
.bg-globo { position: absolute; width: min(78%, 330px); aspect-ratio: 1; left: 50%; top: 46%; transform: translate(-50%, -50%); border: 3px solid #c9ad71; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff2cc22, #b8b2dd0d 55%, #08130fe6 80%); box-shadow: inset -14px -20px 35px #0009, inset 10px 8px 25px #f6e3b022, 0 0 60px #d4b47114; overflow: hidden; transition: opacity .5s; }
.bg-aro { position: absolute; inset: 0; border: 2px solid #d4b47166; border-radius: 50%; animation: bg-girar 9s linear infinite; }
.aro-2 { animation-delay: -3s; }.aro-3 { animation-delay: -6s; }
.bg-globo::after { content: ''; position: absolute; inset: 20% -5%; border: 2px solid #d4b47188; border-radius: 50%; transform: rotate(-20deg); }
.bg-bolinhas { position: absolute; inset: 8%; }
.bg-mini { position: absolute; width: 17%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fffc, var(--tom) 38%, #0007 100%); box-shadow: 2px 4px 5px #0005; animation: bg-mistura 3.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.21s); }
.bg-base { position: absolute; bottom: 2%; left: 50%; width: 70%; height: 11%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, #050907 5%, #d4b47144 38%, #060c08 42%, transparent 65%); }
.bg-pedra { position: absolute; left: 50%; top: 46%; width: min(78%, 330px); aspect-ratio: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #f4dfac; color: #172319; background: radial-gradient(circle at 30% 22%, #fff8e3, #eed6a0 40%, #c6a257 68%, #6c5027 92%); box-shadow: inset -15px -22px 28px #2c201955, inset 6px 7px 20px #fff6, 0 22px 30px #0008, 0 0 60px #d4b47133; opacity: 0; }
.bg-pedra::before { content: ''; position: absolute; inset: 14%; border: 2px solid #98793b66; border-radius: 50%; box-shadow: 0 0 0 10px #fff2; }
.bg-letra { font: 700 clamp(1.4rem, 3vw, 3rem) system-ui, sans-serif; line-height: 1; z-index: 1; }
.bg-numero { font: 800 clamp(5rem, 9.5vw, 10rem)/1 system-ui, sans-serif; z-index: 1; letter-spacing: -.06em; padding-right: .06em; }
.bg-pedra-rodape { font-size: .9rem; font-style: italic; margin-top: 8px; z-index: 1; }
.bg-tem-pedra .bg-pedra { opacity: 1; }.bg-tem-pedra .bg-globo { opacity: .15; }
.bg-globo { z-index: 1; }.bg-pedra { z-index: 3; }.bg-base { z-index: 0; }.bg-confete { z-index: 5; }.bg-explosao { z-index: 4; }
.bg-raios { position: absolute; inset: -5%; background: repeating-conic-gradient(from 0deg, #d4b47100 0deg 12deg, #d4b47114 12deg 14deg, #d4b47100 14deg 30deg); mask-image: radial-gradient(circle, #000, transparent 68%); animation: bg-roda-raios 40s linear infinite; }
.bg-anuncio { font-size: clamp(1.8rem, 2.7vw, 3rem); color: #f6e3b0; font-weight: 600; }
.bg-recado { color: #b4bcae; font-size: clamp(1rem, 1.3vw, 1.3rem); min-height: 2em; }
.bg-progresso { height: 3px; width: 65%; margin: 10px auto; background: #d4b47122; overflow: hidden; opacity: 0; }
.bg-progresso i { display: block; height: 100%; background: #eed6a0; transform: scaleX(var(--progresso, 0)); transform-origin: left; }
.bg-misturando .bg-progresso { opacity: 1; }.bg-misturando .bg-mini { animation-duration: .55s; }.bg-misturando .bg-aro { animation-duration: 1.3s; }
.bg-misturando .bg-globo { animation: bg-tremer .3s ease-in-out infinite alternate; }
.bg-quadro { background: linear-gradient(135deg, #25402acc, #142119ee); border: 1px solid #c5ae714d; padding: clamp(16px, 2vw, 28px); border-radius: 24px; box-shadow: 0 20px 70px #0003; min-width: 0; }
.bg-quadro-titulo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.bg-quadro-titulo h3 { font-size: 2rem; font-weight: 500; }.bg-contagem { font: .95rem system-ui, sans-serif; color: #bfc9b6; }
.bg-grade { display: grid; grid-template-columns: 24px repeat(15, minmax(0, 1fr)); gap: clamp(3px, .45vw, 8px); }
.bg-grade.bg-90 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.bg-celula, .bg-coluna { display: flex; align-items: center; justify-content: center; min-height: clamp(26px, 4.8vh, 54px); border-radius: 7px; font: 600 clamp(.78rem, 1.35vw, 1.5rem) system-ui, sans-serif; }
.bg-celula { border: 1px solid #bac4ad1c; background: #0c181577; color: #94a390; }
.bg-coluna { color: #ead19a; font-size: clamp(.9rem, 1.5vw, 1.5rem); }
.bg-celula.saiu { background: #b9cfb0; color: #152417; border-color: #dae6bc; }
.bg-celula.ultima { background: #f0d596; box-shadow: 0 0 0 2px #f6e3b0, 0 0 20px #d4b47155; color: #172319; }
.bg-ultimas { border-top: 1px solid #d4b47133; margin-top: 22px; padding-top: 14px; }
.telao .bg-ultimas .kicker { font-size: .85rem; }
.bg-ultimas ol { list-style: none; padding: 0; margin: 8px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.bg-ultimas li { font: 600 clamp(.85rem, 1.2vw, 1.2rem) system-ui, sans-serif; color: #eddba8; padding: 9px 12px; border-radius: 25px; border: 1px solid #d4b47144; }
.bg-ultimas .bg-sem-pedra { font-family: var(--serif); font-style: italic; border: none; padding-left: 0; }
.bg-papel { font-style: italic; color: #b4bfa9; text-align: right; margin-top: 8px; }
.bg-confete, .bg-explosao { position: absolute; inset: -25%; pointer-events: none; overflow: hidden; }
.bg-confete i { opacity: 0; position: absolute; width: 9px; height: 18px; background: var(--tom); left: var(--x); top: 0; border-radius: 2px; }
.bg-explosao i { position: absolute; top: 46%; left: 50%; width: 6px; height: 12px; border-radius: 4px; background: #f6e3b0; opacity: 0; }
.bg-entrada .bg-pedra { animation: bg-revelar 1.2s cubic-bezier(.2,.8,.25,1) both; }
.bg-entrada .bg-confete i { animation: bg-confete 2.7s var(--atraso) ease-out both; }
.bg-entrada .bg-explosao i { animation: bg-explodir .95s .2s ease-out both; }
.bg-entrada .bg-celula.ultima { animation: bg-marcar 1s ease-out; }
@keyframes bg-revelar { 0% { opacity: 0; transform: translate(-50%, 60%) scale(.16) rotate(-150deg); } 50% { opacity: 1; transform: translate(-50%, -60%) scale(1.12) rotate(8deg); } 72% { transform: translate(-50%, -43%) scale(.96) rotate(-3deg); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); } }
@keyframes bg-girar { from { transform: rotateY(0) rotateZ(18deg); } to { transform: rotateY(360deg) rotateZ(18deg); } }
@keyframes bg-roda-raios { to { transform: rotate(360deg); } }
@keyframes bg-mistura { 0% { transform: translate(-20%, 50%) rotate(-40deg); } 35% { transform: translate(25%, -45%) rotate(120deg); } 75% { transform: translate(-35%, -10%) rotate(220deg); } 100% { transform: translate(30%, 60%) rotate(350deg); } }
@keyframes bg-tremer { from { transform: translate(-50%, -50%) rotate(-3deg); } to { transform: translate(-50%, -50%) rotate(3deg); } }
@keyframes bg-confete { 0% { opacity: 0; transform: translateY(-15px) rotate(0); } 10% { opacity: 1; } 85% { opacity: .9; } 100% { opacity: 0; transform: translateY(550px) rotate(var(--giro)); } }
@keyframes bg-explodir { 0% { opacity: 1; transform: rotate(var(--angulo)) translateY(0) scale(.2); } 100% { opacity: 0; transform: rotate(var(--angulo)) translateY(-240px) scale(1.4); } }
@keyframes bg-marcar { 40% { transform: scale(1.22); box-shadow: 0 0 30px #f6e3b0; } }
@keyframes bg-luzes { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes bg-brilho { 50% { opacity: .3; } }
@keyframes bg-voo { from { translate: 0 0; rotate: -8deg; } to { translate: 45px 28px; rotate: 8deg; } }
.bg-calmo *, .bg-calmo *::before, .bg-calmo *::after { animation: none !important; transition: none !important; }
.bg-calmo .bg-confete, .bg-calmo .bg-explosao, .bg-calmo .bg-feixe { display: none; }
@media (prefers-reduced-motion: reduce) { .bingo-show *, .bingo-show *::before, .bingo-show *::after { animation: none !important; transition: none !important; } .bg-confete, .bg-explosao { display: none; } }
@media (max-width: 760px) { .bg-layout { grid-template-columns: 1fr; gap: 16px; }.bg-cabeca { align-items: flex-start; }.bg-selo { max-width: 45%; }.bg-maquina { height: 260px; max-width: 380px; }.bg-numero { font-size: 6rem; }.bg-letra { font-size: 2rem; }.bg-celula { font-size: .65rem; min-height: 28px; }.bg-grade { grid-template-columns: 16px repeat(15,minmax(0,1fr)); gap: 3px; }.bg-quadro { padding: 12px; }.telao[data-tela="bingo"] .palco { padding-inline: 12px; }.bingo-show { padding-inline: 0; } }
@media (min-width: 761px) and (max-height: 800px) { .telao[data-tela="bingo"] .palco { padding-bottom: 0; }.bingo-show { padding-bottom: 0; }.bg-layout { padding-top: 12px; }.bg-cabeca { padding-bottom: 10px; }.bg-cabeca h2 { font-size: 2.8rem; }.bg-maquina { height: 30vh; }.bg-globo, .bg-pedra { width: min(60%, 230px); }.bg-numero { font-size: 6rem; }.bg-letra { font-size: 1.8rem; }.bg-ultimas { margin-top: 12px; padding-top: 8px; }.bg-celula { min-height: 3.4vh; }.bg-recado { font-size: 1rem; }.bg-anuncio { font-size: 2rem; } }
