/* =========================================================================
   Os jogos novos do site: Bac Bo, Baccarat, Plinko, Crazy Time (mesa de
   simples.js) e Tower, Futebol, Hi-Lo e Roleta russa (mesas.js)
   ========================================================================= */

/* Capas */
.capa.capa-futebol { --arte: radial-gradient(circle at 50% 30%, #86efac, #15803d 50%, #052e16); }
.capa.capa-hilo { --arte: radial-gradient(circle at 50% 30%, #7dd3fc, #0369a1 50%, #082f49); }
.capa.capa-bacbo { --arte: radial-gradient(circle at 50% 30%, #fca5a5, #7c3aed 55%, #1e1b4b); }
.capa.capa-baccarat { --arte: radial-gradient(circle at 50% 30%, #fde68a, #166534 50%, #052e16); }
.capa.capa-crazytime { --arte: radial-gradient(circle at 50% 30%, #f0abfc, #9d174d 50%, #2e1065); }
.capa.capa-roletarussa { --arte: radial-gradient(circle at 50% 30%, #d1d5db, #374151 50%, #111827); }

/* Botões de lado/risco com nome e pagamento */
.lados.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lados.tres button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; }
.lados.tres button b { font-size: 14px; }
.lados.tres button small { font-size: 11px; opacity: 0.75; }
.lados.tres .cor-azul.ativo { background: linear-gradient(180deg, #60a5fa, #1d4ed8); color: #fff; border-color: transparent; }
.lados.tres .cor-vermelho.ativo { background: linear-gradient(180deg, #f87171, #b91c1c); color: #fff; border-color: transparent; }
.lados.tres .cor-amarelo.ativo { background: linear-gradient(180deg, #fde047, #ca8a04); color: #422006; border-color: transparent; }
.lados.tres .cor-verde.ativo { background: linear-gradient(180deg, #4ade80, #15803d); color: #fff; border-color: transparent; }

/* Faixa de status embaixo do palco */
.bb-faixa { margin-top: 14px; text-align: center; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); color: #fff; font-weight: 600; }
.bb-faixa b { color: #fde047; }

/* ---------- Bac Bo ---------- */
.bb-mesa { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 22px 16px; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, #4c1d95, #1e1b4b 70%); box-shadow: inset 0 0 0 3px rgba(253, 230, 138, 0.35); }
.bb-lado { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px; border-radius: 18px; transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease; }
.bb-lado.azul { background: linear-gradient(180deg, rgba(59, 130, 246, 0.35), rgba(30, 58, 138, 0.35)); }
.bb-lado.vermelho { background: linear-gradient(180deg, rgba(239, 68, 68, 0.35), rgba(127, 29, 29, 0.35)); }
.bb-lado.venceu { transform: scale(1.04); box-shadow: 0 0 0 3px #fde047, 0 0 34px rgba(253, 224, 71, 0.55); }
.bb-lado.perdeu { opacity: 0.45; }
.bb-nome { font-weight: 900; letter-spacing: 2px; color: #fff; font-size: 13px; }
.bb-dados { display: flex; gap: 10px; }
.bb-soma { font-family: var(--fonte-titulo); font-weight: 400; font-size: 44px; color: #fff; line-height: 1; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); }
.bb-vs { font-family: var(--fonte-titulo); font-size: 26px; color: #fde68a; }
.dado { width: 58px; height: 58px; padding: 8px; border-radius: 14px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.25), 0 8px 14px rgba(0, 0, 0, 0.35); }
.dado.azul { background: linear-gradient(145deg, #60a5fa, #1d4ed8); }
.dado.vermelho { background: linear-gradient(145deg, #f87171, #b91c1c); }
.dado i { width: 10px; height: 10px; border-radius: 50%; }
.dado i.pip { background: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); }
.dado.rolando { animation: dado-rola 0.22s linear infinite; }
.dado.caiu { animation: dado-cai 0.55s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes dado-rola { 0% { transform: rotate(0) translateY(0); } 50% { transform: rotate(180deg) translateY(-8px); } 100% { transform: rotate(360deg) translateY(0); } }
@keyframes dado-cai { from { transform: scale(1.35) rotate(-25deg); } }

/* ---------- Baccarat ---------- */
.bc-feltro { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 18px; border-radius: 26px; background: radial-gradient(120% 100% at 50% 0%, #16a34a, #14532d 70%); box-shadow: inset 0 0 0 4px rgba(253, 230, 138, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.35); }
.bc-mao { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; transition: box-shadow 0.4s ease, opacity 0.4s ease, transform 0.4s ease; }
.bc-mao.azul { background: rgba(59, 130, 246, 0.18); }
.bc-mao.vermelho { background: rgba(239, 68, 68, 0.18); }
.bc-mao.venceu { transform: scale(1.03); box-shadow: 0 0 0 3px #fde047, 0 0 30px rgba(253, 224, 71, 0.5); }
.bc-mao.perdeu { opacity: 0.5; }
.bc-titulo { color: #fff; font-weight: 900; letter-spacing: 2px; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.bc-titulo b { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #14532d; font-size: 20px; letter-spacing: 0; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.bc-cartas { display: flex; min-height: 124px; }
.bc-cartas .carta + .carta { margin-left: -30px; }

/* ---------- Plinko ---------- */
.pk-caixa { position: relative; width: min(560px, 100%); margin: 0 auto; padding: 0; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, #312e81, #0f0a2e 75%); box-shadow: inset 0 0 0 3px rgba(165, 180, 252, 0.35); overflow: hidden; }
.pk-svg { display: block; width: 100%; }
.pk-pino { fill: #e0e7ff; filter: drop-shadow(0 0 1px #a5b4fc); }
.pk-casa text { font: 800 2.2px var(--fonte, sans-serif); fill: #1f1300; }
.pk-casa rect { transition: transform 0.2s ease; transform-box: fill-box; transform-origin: center; }
.pk-casa.caiu rect { animation: pk-pula 0.5s ease 2; filter: brightness(1.3) drop-shadow(0 0 2px #fff); }
@keyframes pk-pula { 50% { transform: translateY(1.2px) scale(1.06); } }
.pk-bola { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; opacity: 0; background: radial-gradient(circle at 35% 30%, #fff, #f472b6 55%, #be185d); box-shadow: 0 0 12px rgba(244, 114, 182, 0.8); pointer-events: none; }

/* ---------- Crazy Time ---------- */
.ct-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ct-chips button { display: flex; flex-direction: column; align-items: center; padding: 9px 4px; border-radius: 12px; border: 2px solid var(--c); background: var(--painel-2); color: var(--texto); cursor: pointer; font: inherit; }
.ct-chips button b { font-size: 14px; }
.ct-chips button small { font-size: 10px; opacity: 0.7; }
.ct-chips button.ativo { background: linear-gradient(180deg, var(--cc), var(--c)); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.ct-top { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 12px; width: fit-content; padding: 8px 18px; border-radius: 999px; background: #1e1b4b; color: #fff; box-shadow: 0 0 0 2px #fde68a; font-weight: 800; }
.ct-top span { font-size: 11px; letter-spacing: 1.5px; color: #fde68a; }
.ct-top b { min-width: 70px; text-align: center; }
.ct-top em { font-style: normal; color: #4ade80; min-width: 30px; }
.ct-top.acertou { animation: aviso-pulsa 0.6s ease 3; box-shadow: 0 0 0 3px #4ade80, 0 0 24px rgba(74, 222, 128, 0.5); }
.ct-roda-caixa { position: relative; width: min(420px, 100%); margin: 0 auto; aspect-ratio: 1; }
.ct-roda { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 8px #fde68a, 0 0 0 12px #7c2d12, 0 18px 40px rgba(0, 0, 0, 0.45); will-change: transform; }
.ct-roda svg { width: 100%; height: 100%; display: block; }
.ct-txt { font: 900 6.5px var(--fonte, sans-serif); fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, 0.45); stroke-width: 1px; }
.ct-meio { font: 900 7px var(--fonte-titulo, sans-serif); fill: #fde68a; }
.ct-ponteiro { position: absolute; top: -16px; left: 50%; z-index: 2; width: 34px; height: 44px; transform: translateX(-50%); transform-origin: 50% 20%; background: linear-gradient(180deg, #fff3b0, #f59e0b); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4)); }
.ct-bonus { margin: 14px auto 0; width: fit-content; display: flex; flex-direction: column; align-items: center; padding: 10px 26px; border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); color: #fff; box-shadow: 0 0 0 3px #fde68a, 0 12px 30px rgba(0, 0, 0, 0.35); animation: rl-surge 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
.ct-bonus small { font-weight: 900; letter-spacing: 2px; font-size: 12px; }
.ct-bonus b { font-family: var(--fonte-titulo); font-weight: 400; font-size: 40px; line-height: 1.1; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }

/* ---------- Mesas de avançar e sacar ---------- */
.ms-tela { position: relative; display: grid; grid-template-columns: 300px 1fr; border-radius: 18px; overflow: hidden; background: #0f1923; color: #f1f5f9; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); min-width: 0; }
.ms-painel { background: #1a242d; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.ms-campo { display: flex; flex-direction: column; gap: 6px; }
.ms-campo label { font-size: 12px; color: #8a97a5; font-weight: 600; }
.ms-opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; }
.ms-opcoes button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; border-radius: 8px; border: 1px solid #2c3a47; background: #0f1923; color: #cbd5e1; cursor: pointer; font: inherit; }
.ms-opcoes button b { font-size: 13px; }
.ms-opcoes button small { font-size: 10px; color: #8a97a5; }
.ms-opcoes button.ativo { border-color: #f12c4c; background: rgba(241, 44, 76, 0.15); color: #fff; }
.ms-opcoes button:disabled { opacity: 0.55; cursor: default; }
.ms-botao { border: 0; border-radius: 6px; padding: 15px; font-weight: 800; font-size: 16px; cursor: pointer; color: #fff; background: #f12c4c; }
.ms-botao.sacar { background: #1bb36c; }
.ms-botao:disabled { filter: grayscale(0.5) brightness(0.7); cursor: not-allowed; }
.ms-info { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ms-info div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; background: #0f1923; }
.ms-info span { color: #8a97a5; }
.ms-info .verde { color: #1bb36c; }
.ms-palco { position: relative; display: grid; place-items: center; padding: 24px; min-height: 480px; overflow: hidden; }
.ms-resultado { position: absolute; left: calc(50% + 150px); top: 50%; transform: translate(-50%, -50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 32px; border-radius: 10px; text-align: center; animation: rl-surge 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.ms-resultado.ganhou { background: #1bb36c; }
.ms-resultado.perdeu { background: #f12c4c; }
.ms-resultado span { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.ms-resultado b { font-family: var(--fonte-titulo); font-weight: 400; font-size: 36px; }
.ms-resultado small { font-size: 12px; }

/* Tower */
.tw-torre { display: flex; flex-direction: column; gap: 6px; width: min(520px, 100%); }
.tw-andar { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; opacity: 0.55; transition: opacity 0.3s ease; }
.tw-andar.atual, .tw-andar.feito { opacity: 1; }
.tw-mult { font-weight: 800; font-size: 13px; color: #8a97a5; text-align: right; font-variant-numeric: tabular-nums; }
.tw-andar.atual .tw-mult { color: #fde047; }
.tw-casas { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; }
.tw-casa { height: 42px; border: 0; border-radius: 8px; background: #24313c; box-shadow: inset 0 -4px 0 #1a242d; cursor: pointer; position: relative; }
.tw-andar.atual .tw-casa:not(:disabled) { background: #2f3f4d; box-shadow: inset 0 -4px 0 #1a242d, 0 0 0 2px rgba(253, 224, 71, 0.5); }
.tw-andar.atual .tw-casa:not(:disabled):hover { transform: translateY(-2px); background: #3a4d5e; }
.tw-casa:disabled { cursor: default; }
.tw-casa.abrindo { animation: pulsar 0.3s ease-in-out infinite alternate; }
.tw-casa.gema { background: #14532d; box-shadow: none; }
.tw-casa.gema::after { content: ""; position: absolute; inset: 22% 36%; background: linear-gradient(160deg, #bbf7d0, #22c55e 50%, #15803d); clip-path: polygon(20% 0, 80% 0, 100% 32%, 50% 100%, 0 32%); animation: mn-vira 0.45s ease-out; }
.tw-casa.bomba { background: #3b1520; box-shadow: none; }
.tw-casa.bomba::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6b7280, #111827 60%); box-shadow: 0 0 0 2px #f12c4c inset; }
.tw-casa.bomba.fantasma { opacity: 0.45; }
.tw-casa.explodiu { background: #f12c4c; animation: tremer 0.12s linear 6; }

/* Futebol */
.ft-grito { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 5; font-family: var(--fonte-titulo); font-size: 52px; color: #fde047; -webkit-text-stroke: 3px #7c2d12; paint-order: stroke fill; animation: rl-surge 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.ft-grito.defesa { color: #fca5a5; -webkit-text-stroke-color: #7f1d1d; }

/* Hi-Lo */
.hl-mesa { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.hl-passadas { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 70px; align-items: flex-end; }
.hl-passada { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hl-passada .carta { width: 44px; height: 62px; }
.hl-passada .carta .canto { font-size: 12px; left: 4px; top: 3px; }
.hl-passada .carta .canto i { font-size: 10px; }
.hl-passada .carta .centro { font-size: 22px; }
.hl-passada .carta .canto.baixo { display: none; }
.hl-passada small { font-size: 11px; font-weight: 800; color: #8a97a5; }
.hl-passada.maior small { color: #4ade80; } .hl-passada.menor small { color: #f87171; }
.hl-carta-grande .carta { width: 130px; height: 184px; }
.hl-carta-grande .carta .canto { font-size: 28px; }
.hl-carta-grande .carta .centro { font-size: 70px; }
.hl-carta-grande.virando .carta { animation: vira-carta 0.6s ease-in-out; }
.hl-carta-grande.errou .carta { box-shadow: 0 0 0 4px #f12c4c, 0 0 30px rgba(241, 44, 76, 0.6); }
.hl-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(420px, 100%); }
.hl-palpite { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border: 0; border-radius: 10px; cursor: pointer; color: #fff; font: inherit; }
.hl-palpite b { font-size: 16px; }
.hl-palpite small { font-size: 12px; opacity: 0.85; }
.hl-palpite.maior { background: linear-gradient(180deg, #22c55e, #15803d); }
.hl-palpite.menor { background: linear-gradient(180deg, #ef4444, #b91c1c); }
.hl-palpite:disabled, .ms-pular:disabled { opacity: 0.5; cursor: default; }
.ms-pular { border: 1px solid #2c3a47; background: #1a242d; color: #cbd5e1; padding: 8px 16px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 700; }
.hl-dica { color: #8a97a5; }

/* Roleta russa */
.rr-mesa { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.rr-escada { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.rr-escada span { padding: 5px 10px; border-radius: 8px; background: #1a242d; color: #8a97a5; font-weight: 800; font-size: 13px; }
.rr-escada span.feito { background: #14532d; color: #86efac; }
.rr-escada span.proximo { background: #422006; color: #fde047; box-shadow: 0 0 0 2px #fde047; }
.rr-tambor-caixa { position: relative; width: 240px; height: 240px; }
.rr-tambor { width: 100%; height: 100%; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.6)); }
.rr-corpo { fill: url(#none); fill: #4b5563; stroke: #9ca3af; stroke-width: 3; }
.rr-eixo { fill: #9ca3af; }
.rr-camara { stroke: #111827; stroke-width: 2; }
.rr-camara.fechada { fill: #1f2937; }
.rr-camara.vazia { fill: #374151; opacity: 0.5; }
.rr-camara.bang { fill: #f59e0b; }
.rr-cao { position: absolute; left: 50%; top: -14px; width: 18px; height: 26px; margin-left: -9px; border-radius: 4px; background: #9ca3af; }
.rr-gatilho { border: 0; border-radius: 12px; padding: 14px 26px; font: inherit; font-weight: 900; font-size: 16px; color: #fff; cursor: pointer; background: linear-gradient(180deg, #f87171, #b91c1c); box-shadow: 0 5px 0 #7f1d1d; display: inline-flex; align-items: center; gap: 8px; }
.rr-gatilho svg { width: 18px; height: 18px; }
.rr-flash { position: absolute; inset: -40px; pointer-events: none; opacity: 0; background: radial-gradient(circle, #fff 0, #fde047 20%, #f97316 40%, transparent 70%); }
.rr-flash.bang { animation: rr-bang 0.9s ease-out; }
@keyframes rr-bang { 0% { opacity: 1; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.4); } }
.rr-clique { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-family: var(--fonte-titulo); font-size: 40px; color: #e5e7eb; animation: rl-surge 0.4s ease-out; }

@media (max-width: 860px) {
  .ms-tela { grid-template-columns: 1fr; }
  .ms-palco { order: -1; padding: 14px; min-height: 0; }
  .ms-resultado { left: 50%; top: 30%; }
  .bb-mesa { padding: 14px 8px; gap: 6px; }
  .dado { width: 42px; height: 42px; padding: 6px; }
  .dado i { width: 7px; height: 7px; }
  .bb-soma { font-size: 32px; }
  .bc-feltro { padding: 14px 10px; gap: 8px; }
  .bc-cartas .carta { width: 58px; height: 82px; }
  .bc-cartas .carta + .carta { margin-left: -22px; }
  .rr-tambor-caixa { width: 180px; height: 180px; }
}

/* ---------- Chicken Road ---------- */
.capa.capa-galinha { --arte: radial-gradient(circle at 50% 30%, #fde68a, #a16207 50%, #1c1917); }
.capa.capa-aovivo { --arte: radial-gradient(circle at 50% 30%, #f9a8d4, #be185d 50%, #1e0a2e); }
.gl-tela { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.gl-estrada { width: 100%; overflow-x: auto; overflow-y: hidden; border-radius: 14px; scrollbar-width: thin; }
.gl-pistas { position: relative; display: grid; grid-template-columns: 112px repeat(var(--n), 112px); height: 300px; background: #2b2f3a; }
.gl-calcada { background: repeating-linear-gradient(0deg, #64748b 0 38px, #94a3b8 38px 41px); box-shadow: inset -8px 0 0 #facc15; }
.gl-pista { position: relative; display: grid; place-items: end center; padding-bottom: 26px; background: repeating-linear-gradient(180deg, transparent 0 30px, rgba(255, 255, 255, 0.5) 30px 58px, transparent 58px 86px) right / 4px 100% no-repeat; }
.gl-pista.vez { background-color: rgba(253, 224, 71, 0.1); }
.gl-tampa { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; font-weight: 900; font-size: 15px; color: #fff; background: #3f4655; box-shadow: inset 0 0 0 4px #6b7280, 0 6px 12px rgba(0, 0, 0, 0.4); font-variant-numeric: tabular-nums; transition: background 0.4s ease, box-shadow 0.4s ease; }
.gl-pista.feita .gl-tampa { background: #166534; box-shadow: inset 0 0 0 4px #4ade80; }
.gl-pista.vez .gl-tampa { background: #a16207; box-shadow: inset 0 0 0 4px #fde047, 0 0 24px rgba(253, 224, 71, 0.6); animation: aviso-pulsa 1.6s ease-in-out infinite; }
.gl-pista.morte .gl-tampa { background: #7f1d1d; box-shadow: inset 0 0 0 4px #f87171; }
.gl-galinha { position: absolute; top: 80px; left: calc(var(--p) * 112px + 56px); width: 64px; height: 64px; margin-left: -32px; transition: left 0.5s cubic-bezier(0.3, 0.7, 0.4, 1); z-index: 2; }
.gl-galinha::before { content: ""; position: absolute; inset: 10px 4px 6px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 35% 30%, #fff, #e2e8f0); box-shadow: 0 6px 10px rgba(0, 0, 0, 0.35); }
.gl-galinha i { position: absolute; display: block; }
.gl-galinha .crista { left: 30px; top: 0; width: 18px; height: 14px; border-radius: 50% 50% 30% 30%; background: #ef4444; }
.gl-galinha .olho { left: 40px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: #111827; }
.gl-galinha .bico { left: 56px; top: 24px; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 12px solid #f59e0b; }
.gl-galinha .pe { bottom: -6px; width: 5px; height: 12px; background: #f59e0b; border-radius: 3px; }
.gl-galinha .pe.e { left: 22px; } .gl-galinha .pe.d { left: 36px; }
.gl-galinha.pulando { animation: gl-pulo 0.5s ease-out; }
@keyframes gl-pulo { 40% { transform: translateY(-36px) scale(1.06); } }
.gl-galinha.salva::before { box-shadow: 0 0 0 4px #fde047, 0 0 30px rgba(253, 224, 71, 0.8); }
.gl-galinha.morta { transform: rotate(90deg) scaleY(0.6); opacity: 0.8; }
.gl-carro { position: absolute; top: -140px; left: calc(var(--p) * 112px + 56px); width: 70px; height: 120px; margin-left: -35px; border-radius: 18px; z-index: 3; background: linear-gradient(90deg, #991b1b, #ef4444, #991b1b); box-shadow: inset 0 22px 0 -6px #93c5fd, inset 0 -30px 0 -14px #93c5fd, 0 10px 20px rgba(0, 0, 0, 0.5); animation: gl-carro 0.45s cubic-bezier(0.5, 0, 0.8, 0.6) forwards; }
.gl-carro.parado { animation: none; top: 50px; }
@keyframes gl-carro { to { top: 50px; } }
.gl-atravessar { border: 0; border-radius: 12px; padding: 16px 34px; font: inherit; font-weight: 900; font-size: 18px; color: #422006; cursor: pointer; background: linear-gradient(180deg, #fde047, #f59e0b); box-shadow: 0 6px 0 #a16207, 0 12px 24px rgba(245, 158, 11, 0.35); }
.gl-atravessar:disabled { filter: grayscale(0.5); cursor: default; }

/* ---------- Crash ao vivo ---------- */
.av-tela { display: flex; flex-direction: column; gap: 10px; }
.av-hist { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.av-hist span { flex: none; padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums; color: #fff; }
.av-hist .cinza { background: #475569; } .av-hist .verde { background: #16a34a; } .av-hist .roxo { background: #9333ea; }
.av-corpo { display: grid; grid-template-columns: 280px minmax(0, 1fr) 280px; border-radius: 18px; overflow: hidden; background: #0f1923; color: #f1f5f9; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.av-painel { background: #1a242d; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.av-botao { border: 0; border-radius: 8px; padding: 16px; font: inherit; font-weight: 900; font-size: 16px; color: #fff; cursor: pointer; background: #475569; }
.av-botao.apostar { background: linear-gradient(180deg, #ff6fb5, #db2777); box-shadow: 0 5px 0 #9d174d; }
.av-botao.sacar { background: linear-gradient(180deg, #4ade80, #16a34a); box-shadow: 0 5px 0 #14532d; animation: aviso-pulsa 0.9s ease-in-out infinite; }
.av-botao:disabled { cursor: default; opacity: 0.85; }
.av-palco { position: relative; min-height: 440px; }
.av-palco canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.av-mult { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-family: var(--fonte-titulo); font-size: 64px; color: #fff; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); pointer-events: none; font-variant-numeric: tabular-nums; }
.av-mult.espera { color: #fde68a; font-size: 48px; }
.av-mult.explodiu { color: #f87171; }
.av-faixa { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 10px 22px; border-radius: 12px; background: rgba(239, 68, 68, 0.9); color: #fff; font-weight: 900; letter-spacing: 0.5px; text-align: center; }
.av-faixa.apostas { background: rgba(219, 39, 119, 0.88); }
.av-faixa small { font-weight: 600; letter-spacing: 0; opacity: 0.9; }
.av-lista { background: #131d26; padding: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; }
.av-lista-topo { display: flex; justify-content: space-between; color: #8a97a5; font-size: 13px; }
.av-lista-topo b { color: #f1f5f9; }
.av-aposta { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "foto nome valor" "foto nome status"; column-gap: 8px; align-items: center; padding: 7px 8px; border-radius: 8px; background: #1a242d; font-size: 13px; }
.av-aposta img, .av-sem-foto { grid-area: foto; width: 28px; height: 28px; border-radius: 50%; background: #334155; }
.av-nome { grid-area: nome; display: flex; flex-direction: column; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-nome small { font-weight: 600; font-size: 10px; color: #8a97a5; text-transform: uppercase; }
.av-aposta b { grid-area: valor; text-align: right; font-variant-numeric: tabular-nums; }
.av-aposta em { grid-area: status; text-align: right; font-style: normal; font-size: 11px; color: #8a97a5; }
.av-aposta.sacou { background: rgba(22, 163, 74, 0.2); } .av-aposta.sacou em { color: #4ade80; font-weight: 800; }
.av-aposta.perdeu { opacity: 0.55; } .av-aposta.perdeu em { color: #f87171; }
.av-aposta.eu { box-shadow: inset 0 0 0 2px #ff4fae; }
.av-vazio { color: #8a97a5; font-size: 13px; text-align: center; padding: 20px 0; }
@media (max-width: 1100px) { .av-corpo { grid-template-columns: 260px minmax(0, 1fr); } .av-lista { grid-column: 1 / -1; max-height: 300px; } }
@media (max-width: 760px) { .av-corpo { grid-template-columns: 1fr; } .av-palco { order: -1; min-height: 300px; } .av-mult { font-size: 46px; } }
/* O palco das mesas não deixa o conteúdo esticar além dele (a estrada da galinha rola por dentro) */
.ms-palco { grid-template-columns: minmax(0, 1fr); }
.ms-palco > .gl-tela { justify-self: stretch; min-width: 0; }
.gl-carro.parado { top: 0; }
@keyframes gl-carro { to { top: 0; } }
/* Gema e bomba do tower com tamanho fixo (na casa larga do difícil esticavam) */
.tw-casa.gema::after { inset: auto; left: 50%; top: 50%; width: 30px; height: 26px; transform: translate(-50%, -50%); }
.tw-casa.bomba::after { width: 24px; height: 24px; }
.tw-casa.gema::after { animation: tw-gema 0.45s ease-out; }
@keyframes tw-gema { from { transform: translate(-50%, -50%) scale(0.3) rotate(-60deg); opacity: 0; } }
.av-botao.proxima { background: linear-gradient(180deg, #a78bfa, #7c3aed); box-shadow: 0 5px 0 #4c1d95; }
.ms-info .vermelho-txt { color: #f87171; }
