/* =========================================================================
   Animações das salas (js/jogos/sala-anim.js)
   ========================================================================= */
.palco-sala.animando { min-height: 420px; }
.sa-narra { min-height: 24px; text-align: center; margin: 10px 0 0; }
.sa-narra.nova { animation: entrar 0.25s ease-out; }
.sa-narra b { color: var(--rosa); }
.sa-contagem { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 20; font-family: var(--fonte-titulo); font-size: 92px; color: #fff; -webkit-text-stroke: 4px #c0267e; paint-order: stroke fill; text-shadow: 0 6px 0 #7a0a45; pointer-events: none; }
.sa-contagem.pula { animation: sa-pula 0.6s ease-out; }
@keyframes sa-pula { from { transform: translate(-50%, -50%) scale(2.2); opacity: 0; } 30% { opacity: 1; } to { transform: translate(-50%, -50%) scale(1); } }

/* ---------- Corrida ---------- */
.sa-pista { position: relative; width: 100%; padding: 46px 10px 12px; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #4a1d10 0, #4a1d10 40px, #2f7d3a 40px, #2f7d3a 46px, #b9774a 46px, #a8683d 100%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.15); }
.sa-arquibancada { position: absolute; left: 0; right: 0; top: 0; height: 40px; opacity: 0.7; background: radial-gradient(circle 4px at 6px 10px, #ff4fae 95%, transparent), radial-gradient(circle 4px at 18px 24px, #facc15 95%, transparent), radial-gradient(circle 4px at 30px 12px, #38bdf8 95%, transparent), radial-gradient(circle 4px at 42px 28px, #a855f7 95%, transparent), radial-gradient(circle 4px at 52px 16px, #4ade80 95%, transparent); background-size: 60px 40px; }
.sa-raia { position: relative; display: flex; align-items: center; height: 54px; border-bottom: 2px dashed rgba(255, 255, 255, 0.35); }
.sa-num-raia { width: 22px; flex: none; font-weight: 800; color: rgba(255, 255, 255, 0.8); text-align: center; }
.sa-trilha { position: relative; flex: 1; height: 100%; }
.sa-cavalo { position: absolute; left: 0; top: 50%; transform: translateY(-58%); width: 74px; height: 50px; will-change: left; }
.sa-cavalo-svg { width: 74px; height: 50px; display: block; }
.sa-cavalo img { position: absolute; left: 30px; top: -12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--cor); background: #fff; }
.sa-corpo { animation: sa-galope 0.32s ease-in-out infinite; transform-origin: 50% 80%; }
.sa-pernas .p1, .sa-pernas .p3 { animation: sa-perna 0.32s ease-in-out infinite; transform-origin: 50% 60%; transform-box: fill-box; }
.sa-pernas .p2, .sa-pernas .p4 { animation: sa-perna 0.32s ease-in-out infinite reverse; transform-origin: 50% 0; transform-box: fill-box; }
.sa-rabo { animation: sa-rabo 0.32s ease-in-out infinite; transform-origin: 100% 0; transform-box: fill-box; }
@keyframes sa-galope { 50% { transform: translateY(-4px) rotate(-3deg); } }
@keyframes sa-perna { 0% { transform: rotate(28deg); } 50% { transform: rotate(-28deg); } 100% { transform: rotate(28deg); } }
@keyframes sa-rabo { 50% { transform: rotate(-18deg); } }
.sa-poeira { position: absolute; left: -10px; bottom: -2px; width: 22px; height: 12px; border-radius: 50%; background: rgba(255, 230, 200, 0.6); filter: blur(3px); animation: sa-poeira 0.32s linear infinite; }
@keyframes sa-poeira { from { transform: translateX(0) scale(0.6); opacity: 0.8; } to { transform: translateX(-16px) scale(1.4); opacity: 0; } }
.sa-cavalo.chegou .sa-corpo, .sa-cavalo.chegou .sa-pernas *, .sa-cavalo.chegou .sa-rabo, .sa-cavalo.chegou .sa-poeira { animation-play-state: paused; }
.sa-largada { position: absolute; left: 36px; top: 46px; bottom: 12px; width: 3px; background: rgba(255, 255, 255, 0.7); }
.sa-chegada { position: absolute; right: 5%; top: 46px; bottom: 12px; width: 10px; background: repeating-linear-gradient(0deg, #111 0 8px, #fff 8px 16px); box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); }
.sa-podio { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding-bottom: 20px; background: rgba(20, 5, 25, 0.6); backdrop-filter: blur(3px); animation: entrar 0.4s ease-out; }
.sa-podio .lugar { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; padding: 10px 6px; border-radius: 14px 14px 0 0; color: #fff; background: linear-gradient(180deg, #94a3b8, #475569); }
.sa-podio .lugar.l1 { order: 2; height: 170px; background: linear-gradient(180deg, #fde047, #ca8a04); }
.sa-podio .lugar.l2 { order: 1; height: 140px; }
.sa-podio .lugar.l3 { order: 3; height: 118px; background: linear-gradient(180deg, #fdba74, #9a3412); }
.sa-podio img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; }
.sa-podio b { font-family: var(--fonte-titulo); font-weight: 400; font-size: 26px; }
.sa-podio span { font-size: 12px; font-weight: 700; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Rinha ---------- */
.sa-arena { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 440px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 50%, #3b1546, #160616 75%); }
.sa-ringue { position: absolute; inset: 9% 12%; border-radius: 50%; background: radial-gradient(circle, #5b1d4f, #2a0a26 70%); box-shadow: inset 0 0 0 6px #ff4fae, inset 0 0 0 12px #2a0a26, inset 0 0 0 16px #facc15, 0 0 40px rgba(255, 79, 174, 0.3); }
.sa-lutador { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 92px; transition: transform 0.22s cubic-bezier(.3,.7,.4,1.3), opacity 0.5s, filter 0.5s; z-index: 2; }
.sa-lutador img { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--cor); background: #222; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4); }
.sa-lutador b { font-size: 11px; color: #fff; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-hp { width: 60px; height: 7px; border-radius: 99px; background: rgba(0, 0, 0, 0.5); overflow: hidden; }
.sa-hp i { display: block; height: 100%; background: linear-gradient(90deg, #4ade80, #facc15); transition: width 0.3s; }
.sa-lutador.ataca { z-index: 4; }
.sa-lutador.leva img { animation: sa-treme 0.25s linear; box-shadow: 0 0 0 4px #ef4444, 0 0 20px #ef4444; }
@keyframes sa-treme { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.sa-dano { position: absolute; top: -8px; font-family: var(--fonte-titulo); font-size: 22px; color: #fff; -webkit-text-stroke: 2px #b91c1c; paint-order: stroke fill; animation: sa-dano 0.9s ease-out forwards; pointer-events: none; }
.sa-dano.ko { font-size: 30px; color: #fde047; }
@keyframes sa-dano { to { transform: translateY(-40px); opacity: 0; } }
.sa-lutador.fora { opacity: 0.3; filter: grayscale(1); transform: translate(-50%, -30%) rotate(-80deg) scale(0.85); }
.sa-lutador.campeao img, .sa-sentado.campeao img { border-color: #facc15; animation: pulsar 0.6s ease-in-out infinite alternate; box-shadow: 0 0 0 5px rgba(250, 204, 21, 0.4), 0 0 30px #facc15; }

/* ---------- Roleta russa ---------- */
.sa-mesa-roleta { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 440px; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 50% 50%, #1f6d3a, #0d3a1e 70%, #08210f); box-shadow: inset 0 0 0 8px #5a2d10; }
.sa-sentado { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity 0.5s, filter 0.5s, transform 0.3s; }
.sa-sentado img { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45); }
.sa-sentado b { font-size: 11px; color: #fff; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-sentado.vez { transform: translate(-50%, -50%) scale(1.15); }
.sa-sentado.vez img { border-color: #ff4fae; box-shadow: 0 0 0 5px rgba(255, 79, 174, 0.35), 0 0 24px #ff4fae; }
.sa-sentado.fora { opacity: 0.3; filter: grayscale(1); }
.sa-arma { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%); transition: transform 0.6s cubic-bezier(.3,.8,.3,1); }
.sa-tambor { width: 120px; height: 120px; transition: transform 1.1s cubic-bezier(.1,.6,.2,1); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.sa-cano { position: absolute; left: 50%; top: -46px; width: 18px; height: 56px; margin-left: -9px; border-radius: 6px 6px 3px 3px; background: linear-gradient(90deg, #52525b, #a1a1aa, #52525b); }
.sa-arma.clique .sa-tambor { animation: sa-treme 0.2s linear; }
.sa-arma.tiro .sa-cano::after { content: ""; position: absolute; left: 50%; top: -30px; width: 50px; height: 50px; margin-left: -25px; background: radial-gradient(circle, #fff 0 15%, #fde047 30%, #f97316 55%, transparent 70%); clip-path: polygon(50% 0, 61% 30%, 95% 20%, 72% 48%, 100% 70%, 64% 68%, 55% 100%, 42% 70%, 8% 82%, 30% 52%, 0 25%, 38% 30%); }
.sa-flash { position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: 0; }
.sa-flash.bang { animation: sa-flash 0.45s ease-out; }
@keyframes sa-flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }

/* ---------- Duelo de cara ou coroa ---------- */
.sa-duelo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; width: 100%; padding: 20px 6px 0; }
.sa-lado { display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity 0.4s, filter 0.4s; }
.sa-lado img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
.sa-lado.fora { opacity: 0.4; filter: grayscale(1); }
.sa-lado.campeao img { border-color: #facc15; box-shadow: 0 0 0 5px rgba(250, 204, 21, 0.4), 0 0 30px #facc15; }
.sa-moeda-cena { perspective: 800px; display: flex; flex-direction: column; align-items: center; padding-top: 150px; }
.sa-moeda { width: 120px; height: 120px; position: relative; transform-style: preserve-3d; }
.sa-moeda .face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; font-family: var(--fonte-titulo); font-size: 52px; color: #7c2d12; background: radial-gradient(circle at 35% 30%, #fff6cf, #fbbf24 55%, #d97706); box-shadow: inset 0 0 0 8px rgba(180, 83, 9, 0.35), inset 0 0 0 13px rgba(255, 246, 207, 0.6); }
.sa-moeda .face.coroa { transform: rotateX(180deg); background: radial-gradient(circle at 35% 30%, #f1f5f9, #cbd5e1 55%, #94a3b8); color: #475569; box-shadow: inset 0 0 0 8px rgba(71, 85, 105, 0.35), inset 0 0 0 13px rgba(255, 255, 255, 0.6); }
.sa-sombra { width: 100px; height: 16px; margin-top: 14px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, 0.45), transparent 70%); }

@media (max-width: 640px) {
  .sa-arena, .sa-mesa-roleta { aspect-ratio: 1; }
  .sa-lutador img, .sa-sentado img { width: 44px; height: 44px; }
  .sa-arma, .sa-tambor { width: 90px; height: 90px; }
  .sa-raia { height: 46px; }
  .sa-cavalo, .sa-cavalo-svg { width: 58px; height: 40px; }
  .sa-cavalo img { left: 22px; top: -10px; width: 20px; height: 20px; }
  .sa-podio .lugar { width: 86px; }
  .sa-contagem { font-size: 70px; }
}
/* Ritmo mais calmo */
.sa-tambor { transition-duration: 1.8s; }
.sa-arma { transition-duration: 0.9s; }
.sa-lutador { transition-duration: 0.38s; }
.sa-flash.bang { animation-duration: 0.7s; }
.sa-dano { animation-duration: 1.3s; }
.sa-corpo, .sa-pernas .p1, .sa-pernas .p2, .sa-pernas .p3, .sa-pernas .p4, .sa-rabo, .sa-poeira { animation-duration: 0.42s; }
.sa-contagem.pula { animation-duration: 0.85s; }
/* Pista com altura mínima (com 2 cavalos ficava baixa) e pódio que sempre cabe nela */
.sa-pista { min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.sa-raia { flex: 0 0 auto; height: clamp(46px, calc(240px / var(--raias, 5)), 72px); }
.sa-podio { padding: 16px 10px 14px; }
.sa-podio .lugar { justify-content: flex-start; gap: 3px; padding-top: 8px; }
.sa-podio .lugar.l1 { height: 86%; }
.sa-podio .lugar.l2 { height: 70%; }
.sa-podio .lugar.l3 { height: 58%; }
.sa-podio img { width: 40px; height: 40px; }
.sa-podio b { font-size: clamp(18px, 3vw, 26px); line-height: 1; }

/* =========================================================================
   Bonecos das salas: a foto é a cabeça, o corpo tem a cor do jogador
   ========================================================================= */
.bq-lugar { position: absolute; transform: translate(-50%, -62%); z-index: 2; }
.bq-pos { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform 0.45s cubic-bezier(0.4, 0.1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease; font-size: calc(var(--s, 1) * 10px); }
.bq-pos.vez { z-index: 5; }
.bq-pos.fora { opacity: 0.55; }
.bq-pos.campeao { z-index: 6; }
.bq-pos.campeao::before { content: ""; position: absolute; top: -2.6em; left: 50%; width: 3.2em; height: 2.2em; transform: translateX(-50%); background: linear-gradient(180deg, #fde047, #f59e0b); clip-path: polygon(0 100%, 0 30%, 25% 60%, 50% 0, 75% 60%, 100% 30%, 100% 100%); filter: drop-shadow(0 0 8px #fde047); animation: bq-coroa 1s ease-in-out infinite alternate; }
@keyframes bq-coroa { to { transform: translateX(-50%) translateY(-0.4em) rotate(4deg); } }
.bq-nome { font-size: 1.15em; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); white-space: nowrap; max-width: 9em; overflow: hidden; text-overflow: ellipsis; }

.bq { position: relative; width: 7em; height: 10.5em; animation: bq-respira 1.8s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bq-respira { 50% { transform: translateY(-0.25em); } }
.bq-sombra { position: absolute; left: 50%; bottom: -0.3em; width: 5em; height: 1em; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, 0.35); filter: blur(2px); }
.bq-vira { position: absolute; inset: 0; }
.bq.esq .bq-vira { transform: scaleX(-1); }
.bq-corpo { position: absolute; inset: 0; }
.bq-tronco { position: absolute; left: 2.1em; top: 4.3em; width: 2.8em; height: 3.4em; border-radius: 1em 1em 0.7em 0.7em; background: linear-gradient(180deg, color-mix(in srgb, var(--cor) 80%, #fff), var(--cor)); box-shadow: inset 0 -0.4em 0 rgba(0, 0, 0, 0.18); }
.bq-perna { position: absolute; top: 7.3em; width: 1.05em; height: 2.9em; border-radius: 0.5em; background: #334155; transform-origin: 50% 0; }
.bq-perna.e { left: 2.4em; } .bq-perna.d { left: 3.6em; }
.bq-perna::after { content: ""; position: absolute; bottom: -0.2em; left: -0.15em; width: 1.5em; height: 0.6em; border-radius: 0.4em; background: #111827; }
.bq-braco { position: absolute; top: 4.5em; width: 0.95em; height: 2.9em; border-radius: 0.5em; background: color-mix(in srgb, var(--cor) 75%, #000); transform-origin: 50% 0.4em; }
.bq-braco.e { left: 1.4em; transform: rotate(18deg); } .bq-braco.d { left: 4.6em; transform: rotate(-18deg); }
.bq-mao { position: absolute; bottom: -0.55em; left: -0.35em; width: 1.6em; height: 1.6em; border-radius: 50%; background: #f87171; box-shadow: inset -0.2em -0.2em 0 rgba(0, 0, 0, 0.2); }
.bq-revolver { display: none; position: absolute; bottom: -1.2em; left: 0.4em; width: 2.6em; height: 1em; border-radius: 0.2em; background: linear-gradient(180deg, #9ca3af, #374151); }
.bq-revolver::after { content: ""; position: absolute; left: 0.3em; top: 0.8em; width: 0.6em; height: 1.1em; border-radius: 0.2em; background: #4b2e14; }
.bq-cabeca { position: absolute; left: 1.15em; top: 0; width: 4.7em; height: 4.7em; border-radius: 50%; object-fit: cover; border: 0.3em solid var(--cor); background: #1f2937; box-shadow: 0 0.3em 0.6em rgba(0, 0, 0, 0.35); z-index: 2; }
.bq-estrelas, .bq-gota { display: none; }

/* Anda: pernas e braços balançam */
.bq.anda .bq-perna.e { animation: bq-passo 0.3s ease-in-out infinite alternate; }
.bq.anda .bq-perna.d { animation: bq-passo 0.3s ease-in-out infinite alternate-reverse; }
.bq.anda { animation: bq-pulinho 0.3s ease-in-out infinite alternate; }
@keyframes bq-passo { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
@keyframes bq-pulinho { to { transform: translateY(-0.4em); } }
/* Soco: o braço da frente estica */
.bq.soco .bq-braco.d { animation: bq-soco 0.32s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
.bq.soco .bq-braco.e { transform: rotate(40deg); }
@keyframes bq-soco { to { transform: rotate(-100deg) scaleY(1.15); } }
/* Leva o golpe: recua e pisca vermelho */
.bq.leva { animation: bq-leva 0.45s ease-out; }
.bq.leva .bq-cabeca { filter: brightness(1.2) sepia(1) hue-rotate(-50deg) saturate(4); }
@keyframes bq-leva { 30% { transform: translateX(-0.8em) rotate(-12deg); } 60% { transform: translateX(0.3em) rotate(4deg); } }
.bq.esq.leva { animation-name: bq-leva-e; }
@keyframes bq-leva-e { 30% { transform: translateX(0.8em) rotate(12deg); } 60% { transform: translateX(-0.3em) rotate(-4deg); } }
/* Cai: deita, fica cinza e ganha estrelinhas girando */
.bq.cai { animation: none; transform: rotate(-82deg) translate(-2em, 0.5em); transition: transform 0.5s cubic-bezier(0.5, 0, 0.8, 1); filter: grayscale(0.9); }
.bq.esq.cai { transform: rotate(82deg) translate(2em, 0.5em); }
.bq.cai .bq-estrelas { display: block; position: absolute; left: 1.6em; top: -1em; width: 3.6em; height: 1.4em; animation: rodar 1.2s linear infinite; }
.bq.cai .bq-estrelas i { position: absolute; width: 0.9em; height: 0.9em; background: #fde047; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.bq.cai .bq-estrelas i:nth-child(1) { left: 0; top: 0.3em; } .bq.cai .bq-estrelas i:nth-child(2) { left: 1.4em; top: 0; } .bq.cai .bq-estrelas i:nth-child(3) { left: 2.7em; top: 0.4em; }
/* Comemora: braços para cima e pulos */
.bq.comemora { animation: bq-pula 0.55s ease-in-out infinite alternate; }
.bq.comemora .bq-braco.e { transform: rotate(160deg); }
.bq.comemora .bq-braco.d { transform: rotate(-160deg); }
@keyframes bq-pula { to { transform: translateY(-1.4em); } }
/* Roleta: mira a arma na cabeça, sua frio, alívio e susto */
.bq.mira .bq-braco.d { transform: rotate(-165deg) translateY(-0.2em); transition: transform 0.35s ease; }
.bq.mira .bq-revolver { display: block; transform: rotate(90deg); bottom: -0.6em; left: -0.6em; }
.bq.sua { animation: bq-treme 0.12s linear infinite; }
.bq.sua .bq-gota { display: block; position: absolute; left: 5.4em; top: 0.6em; width: 0.8em; height: 1.1em; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #7dd3fc; z-index: 3; animation: bq-gota 0.9s ease-in infinite; }
@keyframes bq-treme { 25% { transform: translateX(-0.12em); } 75% { transform: translateX(0.12em); } }
@keyframes bq-gota { from { transform: translateY(0); opacity: 1; } to { transform: translateY(2em); opacity: 0; } }
.bq.alivio { animation: bq-alivio 0.6s ease-out; }
@keyframes bq-alivio { 40% { transform: scaleY(0.9) translateY(0.3em); } }
.bq.assusta { animation: bq-susto 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes bq-susto { 30% { transform: translateY(-1.2em) scale(1.06); } }
/* Moeda: o dono joga, os dois olham para cima; quem perde desanima */
.bq.joga .bq-braco.d { transform: rotate(-150deg); transition: transform 0.25s ease; }
.bq.olha .bq-cabeca { transform: translateY(-0.3em) rotate(-8deg); transition: transform 0.4s ease; }
.bq.esq.olha .bq-cabeca { transform: translateY(-0.3em) rotate(8deg); }
.bq.triste { animation: none; transform: translateY(0.6em) scaleY(0.92); filter: grayscale(0.7); transition: transform 0.5s ease, filter 0.5s ease; }
.bq.triste .bq-braco.e, .bq.triste .bq-braco.d { transform: rotate(0deg); }

/* Balões em cima de quem leva (POW!, K.O., click, BANG) */
.bq-balao { position: absolute; left: 50%; top: -1.5em; z-index: 8; transform: translateX(-50%); padding: 0.3em 0.8em; border-radius: 0.8em; font-family: var(--fonte-titulo); font-size: 2em; color: #7c2d12; background: #fde047; border: 0.15em solid #7c2d12; white-space: nowrap; animation: bq-balao 1.4s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; pointer-events: none; }
.bq-balao.pow { background: #fde047; clip-path: polygon(0 20%, 15% 0, 35% 15%, 55% 0, 70% 18%, 100% 8%, 88% 40%, 100% 70%, 78% 72%, 82% 100%, 55% 84%, 32% 100%, 25% 78%, 0 88%, 10% 55%); padding: 0.6em 1em; }
.bq-balao.ko { background: #ef4444; color: #fff; border-color: #7f1d1d; }
.bq-balao.click { background: #e5e7eb; color: #374151; border-color: #6b7280; font-size: 1.6em; }
.bq-balao.bang { background: #f97316; color: #fff; border-color: #7c2d12; font-size: 2.4em; }
@keyframes bq-balao { 0% { transform: translateX(-50%) scale(0.2); opacity: 0; } 15% { transform: translateX(-50%) scale(1.15); opacity: 1; } 80% { opacity: 1; transform: translateX(-50%) translateY(-0.6em); } 100% { opacity: 0; transform: translateX(-50%) translateY(-1.4em); } }

/* Palcos com os bonecos */
.bq-arena { min-height: 420px; }
.bq-mesa { min-height: 420px; }
.bq-mesa-tampo { position: absolute; left: 50%; top: 50%; width: 52%; height: 44%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 40%, #15803d, #14532d 70%); box-shadow: 0 0 0 10px #78350f, 0 18px 40px rgba(0, 0, 0, 0.45); }
.bq-mesa .sa-arma { transition: opacity 0.3s ease; }
.bq-mesa .sa-arma.na-mao { opacity: 0.18; }
.bq-mesa .bq-pos.vez .bq-cabeca { box-shadow: 0 0 0 0.35em #fde047, 0 0 1.6em rgba(253, 224, 71, 0.7); }
.bq-duelo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; min-height: 360px; padding: 30px 10px 20px; }
.bq-lado-duelo { display: flex; justify-content: center; }
.bq-duelo .bq-pos .pilula { margin-top: 4px; font-size: 1.1em; }
.bq-duelo .sa-moeda-cena { align-self: center; }

/* Corrida: jóquei com a foto montado no cavalo */
.sa-cavalo .sa-joquei { position: absolute; left: 34%; top: -38%; width: 34%; height: 80%; z-index: 2; animation: bq-galope 0.32s ease-in-out infinite alternate; }
.sa-cavalo.chegou .sa-joquei { animation: none; }
@keyframes bq-galope { to { transform: translateY(-8%); } }
.sa-joquei .tronco { position: absolute; left: 26%; top: 44%; width: 48%; height: 46%; border-radius: 40% 40% 30% 30%; background: var(--cor); transform: rotate(18deg); }
.sa-joquei .braco { position: absolute; left: 60%; top: 52%; width: 14%; height: 40%; border-radius: 6px; background: var(--cor); transform: rotate(-50deg); filter: brightness(0.85); }
.sa-cavalo .sa-joquei img { position: absolute; left: 14%; top: 0; width: 64%; height: auto; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--cor); object-fit: cover; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }
.sa-nome-cavalo { position: absolute; left: 100%; top: 30%; margin-left: 4px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); white-space: nowrap; }
@media (max-width: 560px) { .bq-pos { font-size: calc(var(--s, 1) * 7.5px); } .sa-nome-cavalo { display: none; } }
