/* BAC TRADER (03/12/2026) — mesa Player x Banker com 4 dados. Visual portado do modelo aprovado
   (modelos-double/bacbo-4-dados.html). Todas as classes da mesa têm o prefixo "bt-" para não misturar com o resto do app.
   A tela só desenha: o resultado e os 4 dados vêm do servidor (public/js/bac-trader.js). */
.bac { --pl: #3ea0ff; --pl2: #9ccdff; --bk: #ff3b47; --bk2: #ff8f97; --ouro: #ffc83d;
  --serifa: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --bt-painel: #0a120c; --bt-painel2: #0f1a12; --bt-borda: #16281b; --bt-borda2: #23402b; --bt-suave: #8fa596; }
.bac-cab { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.bac-cab h1 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: .95; letter-spacing: -.01em; }
.bac-vivo { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--primaria); display: flex; align-items: center; gap: 7px; }
.bac-vivo i { width: 8px; height: 8px; border-radius: 50%; background: var(--primaria); box-shadow: 0 0 10px var(--primaria); }
.bac-sessao { margin-left: auto; padding: 8px 16px; border-radius: 14px; background: var(--bt-painel); border: 1px solid var(--bt-borda2); font-size: 11px; color: var(--bt-suave); display: flex; gap: 12px; align-items: center; }
.bac-sessao b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 20px; color: var(--primaria); }
.bac-sessao b.neg { color: var(--bk2); }
.bt-card { padding: 14px 16px; border-radius: 20px; background: linear-gradient(180deg, var(--bt-painel2), var(--bt-painel)); border: 1px solid var(--bt-borda2); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.bt-card h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--bt-suave); }
.bt-card .bt-cab3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; } .bt-card .bt-cab3 h3 { margin: 0; }
.bt-ult { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.bt-bola { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(11px, 2.6vw, 14px); color: #fff; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .25), inset 0 2px 3px rgba(255, 255, 255, .25); }
.bt-bola.bk { background: linear-gradient(#ff6a74, #a81f2c); } .bt-bola.pl { background: linear-gradient(#5fb4ff, #1c63b8); }
.bt-ult .bt-bola:first-child { box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(255, 255, 255, .5); }
.bt-bola.vazia { background: #0f1a12; box-shadow: inset 0 0 0 1px var(--bt-borda2); }
.bt-legenda { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--bt-suave); }
.bt-legenda i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.bt-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bt-info .bt-cx { padding: 9px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--bt-borda); min-width: 0; }
.bt-info small { display: block; font-size: 10px; letter-spacing: .06em; color: var(--bt-suave); font-weight: 700; }
.bt-info b { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.25; white-space: nowrap; }
.bt-info b.pl { color: var(--pl2); } .bt-info b.bk { color: var(--bk2); }
.bt-fase { margin: 0 0 12px; font-size: 15px; line-height: 1.35; font-weight: 700; min-height: 2.7em; }
.bt-fase em { font-style: normal; } .bt-fase em.pl { color: var(--pl2); } .bt-fase em.bk { color: var(--bk2); } .bt-fase em.ok { color: var(--primaria); } .bt-fase em.mal { color: var(--bk2); }
.bt-aposta { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.bt-aposta label { display: block; font-size: 11px; font-weight: 700; color: var(--bt-suave); margin-bottom: 6px; }
.bt-val { height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; background: #030a05; border: 1px solid var(--bt-borda2); font-size: 18px; font-weight: 800; }
.bt-val span { color: var(--bt-suave); font-size: 15px; }
.bt-val input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: inherit; font: inherit; padding: 0; height: auto; box-shadow: none; }
.bt-val:focus-within { border-color: var(--primaria); }
.bt-entrar { height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--primaria); background: var(--primaria); color: #071300; font: 800 14px var(--fonte); white-space: nowrap; cursor: pointer; box-shadow: 0 0 22px rgba(var(--primaria-rgb), .25); }
.bt-entrar:disabled { opacity: .5; cursor: default; box-shadow: none; }
.bt-entrada { margin: 10px 0 0; min-height: 1.4em; font-size: 12.5px; color: var(--bt-suave); }
.bt-entrada b { color: var(--texto, #eef5ee); } .bt-entrada .brl { display: block; margin-top: 2px; }
.bt-ops { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.bt-op { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--bt-borda); font-size: 13px; }
.bt-op .bt-op-lado { font-weight: 800; font-size: 11px; letter-spacing: .05em; padding: 4px 8px; border-radius: 8px; color: #fff; }
.bt-op .bt-op-lado.pl { background: #1c4fd8; } .bt-op .bt-op-lado.bk { background: #b4131f; }
.bt-op small { color: var(--bt-suave); display: block; font-size: 11px; }
.bt-op .verde { color: var(--primaria); } .bt-op .vermelho { color: var(--bk2); }
.bt-vazio { color: var(--bt-suave); font-size: 13px; padding: 6px 2px; }
.bt-limpar { background: none; border: 1px solid var(--bt-borda2); color: var(--bt-suave); border-radius: 10px; padding: 6px 12px; font: 700 12px var(--fonte); cursor: pointer; }
.bt-som { background: none; border: 1px solid var(--bt-borda2); color: var(--bt-suave); border-radius: 10px; padding: 6px 12px; font: 700 12px var(--fonte); cursor: pointer; }
.bt-som[aria-pressed="true"] { border-color: var(--primaria); color: var(--primaria); }
.bt-aviso { margin-bottom: 14px; }
/* WIN / LOSS da entrada da pessoa, em cima da mesa (resultado OFICIAL do contrato) */
.bt-wl { position: absolute; left: 50%; top: 18cqw; z-index: 8; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; padding: 1.6cqw 4.4cqw; border-radius: 3cqw; text-align: center; transition: opacity .3s, transform .35s cubic-bezier(.2, 1.4, .4, 1); background: rgba(3, 10, 5, .82); border: .3cqw solid var(--primaria); box-shadow: 0 0 3cqw rgba(var(--primaria-rgb), .45); }
.bt-wl.ver { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bt-wl b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: max(22px, 8cqw); line-height: 1; color: var(--primaria); }
.bt-wl span { display: block; font-weight: 800; font-size: max(12px, 3.4cqw); color: #fff; margin-top: .6cqw; }
.bt-wl.loss { border-color: #ff3b47; box-shadow: 0 0 3cqw rgba(255, 59, 71, .45); } .bt-wl.loss b { color: #ff8f97; }
@media (max-width: 640px) {
  .bac-cab h1 { font-size: 26px; } .bac-sessao { margin-left: 0; flex: 1 1 100%; justify-content: space-between; }
  .bt-card { padding: 12px; border-radius: 16px; }
  .bt-ult { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .bt-total.pop b { animation: none; } .bt-soma { transition: none; } .bt-fundo, .bt-plano { transition-duration: .01s !important; } }

/* ── mesa (do modelo) ── */
.bt-cena { position: relative; width: 100%; aspect-ratio: 720 / 800; container-type: inline-size; border-radius: 0; overflow: hidden; isolation: isolate; background: #031108;
  border: 1px solid rgba(var(--primaria-rgb), .28); box-shadow: 0 0 0 6px #04100a, 0 0 0 7px rgba(var(--primaria-rgb), .14), 0 22px 60px rgba(0, 0, 0, .65); user-select: none; -webkit-user-select: none; }
.bt-cena[data-cam="wide"] .bt-feltro { height: 9cqw; }
.bt-cena[data-cam="wide"] { --ny: 88cqw; }
.bt-cena[data-cam="top"] { --ny: 101cqw; }
.bt-cena[data-cam="wide"] { --ty: 62.5cqw; --ax: 68deg; --sc: .56; --fy: 0cqw; --fs: 1; }
.bt-cena[data-cam="top"]  { --ty: 3.8cqw; --ax: 43deg; --sc: 1; --fy: -38cqw; --fs: 1.22; }
.bt-fundo { position: absolute; inset: 0; transform: translateY(var(--fy)) scale(var(--fs)); transform-origin: 50% 70%; transition: transform var(--camdur, 3.4s) cubic-bezier(.3, .1, .3, 1); }
.bt-fundo svg { display: block; width: 100%; height: 100%; }
.bt-cam { position: absolute; inset: 0; perspective: 700cqw; perspective-origin: 50% 40%; }
.bt-plano { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform-style: preserve-3d; transform-origin: 0 0;
  transform: translate3d(0, var(--ty), 0) rotateX(var(--ax)) scale3d(var(--sc), var(--sc), var(--sc)); transition: transform var(--camdur, 3.4s) cubic-bezier(.3, .1, .3, 1); }
/* tampo da mesa (camurça champanhe) com o feltro verde na borda do fundo */
.bt-tampo { position: absolute; left: -140cqw; top: -12cqw; width: 280cqw; height: 520cqw; border-radius: 6cqw 6cqw 0 0 / 3cqw 3cqw 0 0;
  background:
    radial-gradient(60cqw 80cqw at 50% 30cqw, rgba(255, 248, 224, .42), rgba(255, 248, 224, 0) 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .15  0 0 0 .22 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, #d3c29b 0, #c5b48b 30%, #b9a67c 100%); }
.bt-feltro { position: absolute; left: -140cqw; top: -3cqw; width: 280cqw; height: 2.6cqw; transition: height var(--camdur, 3.4s) cubic-bezier(.3, .1, .3, 1); border-radius: 6cqw 6cqw 0 0 / 3cqw 3cqw 0 0;
  background: linear-gradient(180deg, #0c3a22, #17a35a 55%, #0e6a3b); box-shadow: 0 .6cqw 1.2cqw rgba(40, 25, 5, .5), inset 0 -.5cqw .8cqw rgba(0, 0, 0, .35); }
.bt-feltro::after { content: ""; position: absolute; left: 50%; top: 0; width: 22cqw; height: 100%; transform: translateX(-50%); background: linear-gradient(90deg, rgba(var(--primaria-rgb), 0), rgba(var(--primaria-rgb), .55), rgba(var(--primaria-rgb), 0)); filter: blur(.4cqw); }
.bt-lampada { position: absolute; left: 0; top: 10cqw; width: 14cqw; height: 14cqw; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 78%, #fff1b0 0, #ffc447 30%, #e07a12 62%, #8b3c06 100%); border: .9cqw solid #f2ead2; box-shadow: 0 0 0 .35cqw rgba(160, 120, 40, .6), 0 .8cqw 1.6cqw rgba(60, 35, 5, .5), inset 0 -1cqw 2cqw rgba(255, 244, 190, .7), inset 0 1.4cqw 2cqw rgba(110, 40, 0, .6); }
.bt-nome { position: absolute; top: var(--ny, 101cqw); transition: top var(--camdur, 3.4s) cubic-bezier(.3, .1, .3, 1), opacity .5s; transform: translate(-50%, -50%); font-family: var(--serifa); font-weight: 700; font-size: 8.2cqw; letter-spacing: .07em; line-height: 1; color: #fdfaf0; white-space: nowrap;
  text-shadow: 0 -.25cqw 0 rgba(255, 255, 255, .55), 0 .3cqw .2cqw rgba(110, 85, 40, .55), 0 .8cqw 1.2cqw rgba(80, 55, 15, .35); }
.bt-nome.pl { left: -24cqw; } .bt-nome.bk { left: 24cqw; }

/* poço */
.bt-poco { position: absolute; width: 32cqw; height: 32cqw; transform: translate(-50%, -50%); transform-style: preserve-3d; }
.bt-poco .bt-aro { position: absolute; inset: -1.1cqw; border-radius: 50%; background: radial-gradient(circle, rgba(120, 92, 50, 0) 70%, rgba(120, 92, 50, .35) 100%); }
.bt-poco .bt-ouro { position: absolute; inset: -.7cqw; border-radius: 50%; background: conic-gradient(from 30deg, #8a631a, #ffe9a0, #c99a2e, #72500f, #e9c25b, #fff4c4, #b98a27, #6b480c, #f3d06d, #8a631a);
  -webkit-mask: radial-gradient(circle, transparent calc(100% - .75cqw - 0px), #000 calc(100% - .75cqw)); mask: radial-gradient(circle, transparent calc(50% - .5cqw), #000 calc(50% - .5cqw)); }
.bt-poco .bt-ouro { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - .85cqw), #000 calc(100% - .85cqw)); mask: radial-gradient(farthest-side, transparent calc(100% - .85cqw), #000 calc(100% - .85cqw)); }
.bt-poco .bt-bacia { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 52% at 50% 66%, #e6d0c0 0, #dcc2b0 54%, #c9ae9a 78%, rgba(200, 173, 153, 0) 82%),
    linear-gradient(180deg, #2f261e 0, #4d3f33 28%, #7a6652 52%, #a18c78 100%);
  box-shadow: inset 0 1.4cqw 2.2cqw rgba(30, 18, 6, .65), inset 0 -.6cqw 1.2cqw rgba(60, 40, 15, .35), inset 1.1cqw 0 1.6cqw rgba(30, 18, 6, .25), inset -1.1cqw 0 1.6cqw rgba(30, 18, 6, .25); transition: filter .5s; }
.bt-poco.perde .bt-bacia, .bt-poco.perde .bt-ouro { filter: brightness(.93) saturate(.9); }
.bt-poco.vence .bt-ouro { filter: drop-shadow(0 0 1.2cqw var(--halo)); }
.bt-poco.pl { --halo: rgba(110, 190, 255, .95); } .bt-poco.bk { --halo: rgba(255, 110, 120, .95); }
.bt-dados { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.bt-sombra { position: absolute; width: 10cqw; height: 10cqw; left: -5cqw; top: -5cqw; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 22, 6, .55), rgba(40, 22, 6, 0)); will-change: transform; }
.bt-sombra::after { content: ""; position: absolute; inset: 0; transform: translate(1.2cqw, .6cqw); border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--c1), .5), rgba(var(--c1), 0)); }
.bt-cubo { position: absolute; --s: 5.7cqw; --h: 2.85cqw; left: calc(var(--h) * -1); top: calc(var(--h) * -1); width: var(--s); height: var(--s); transform-style: preserve-3d; will-change: transform; }
.bt-poco.pl { --c1: 70, 190, 255; --c2: 18, 92, 232; } .bt-poco.bk { --c1: 255, 118, 98; --c2: 205, 18, 30; }
.bt-face { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 12%; border-radius: 17%;
  background: radial-gradient(110% 110% at 26% 20%, rgba(255, 255, 255, .6) 0, rgba(255, 255, 255, 0) 44%), linear-gradient(145deg, rgba(var(--c1), .9), rgba(var(--c2), .84));
  border: .2cqw solid rgba(255, 255, 255, .6); box-shadow: inset 0 0 1.5cqw rgba(255, 255, 255, .4), inset 0 -.8cqw 1.3cqw rgba(0, 0, 0, .28); transition: filter .5s; }
.bt-poco.perde .bt-face { filter: saturate(.7) brightness(.9); }
.bt-face u { place-self: center; width: 70%; aspect-ratio: 1; border-radius: 50%; background: transparent; }
.bt-face u.p { background: radial-gradient(circle at 38% 34%, #fff 0, #f3f8ff 60%, #cfe0f5 100%); box-shadow: 0 0 .4cqw rgba(0, 25, 90, .65), inset 0 -.15cqw .2cqw rgba(0, 40, 110, .25); }
.bt-contorno { position: absolute; width: 64cqw; height: 92cqw; left: 0; top: 0; transform: translate(-50%, -50%); opacity: 0; transition: opacity .5s ease; overflow: visible; pointer-events: none; }
.bt-contorno.on { opacity: 1; }
.bt-contorno path { fill: none; stroke-linecap: round; }
.bt-contorno.pl { --cc: 205, 232, 255; } .bt-contorno.bk { --cc: 255, 214, 214; }
.bt-contorno .l1 { stroke: rgba(var(--cc), .95); stroke-width: .55; filter: drop-shadow(0 0 1.6px rgba(var(--cc), 1)); }
.bt-contorno .l2 { stroke: rgba(var(--cc), .6); stroke-width: .35; }

.bt-vinheta { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 52%, rgba(0, 0, 0, 0) 55%, rgba(8, 24, 14, .55) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0) 78%, rgba(6, 20, 12, .85) 100%); }

/* anel de contagem (em cima da mesa) e chamada */
.bt-anel { position: absolute; left: 50%; top: 99cqw; width: 11.4cqw; height: 11.4cqw; transform: translate(-50%, -50%); transition: opacity .35s, transform .35s; }
.bt-anel svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; filter: drop-shadow(0 0 .9cqw rgba(var(--primaria-rgb), .75)); }
.bt-anel .bt-miolo { fill: rgba(10, 22, 16, .86); } .bt-anel .bt-trilho { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 5; }
.bt-anel .bt-prog { fill: none; stroke: url(#btGAnel); stroke-width: 5.5; stroke-linecap: round; stroke-dasharray: 276.46; stroke-dashoffset: 0; }
.bt-anel b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--fonte); font-weight: 800; font-size: 6.2cqw; color: #fff; line-height: 1; }
.bt-cena:not([data-fase="aposta"]) .bt-anel { opacity: 0; transform: translate(-50%, -50%) scale(.7); pointer-events: none; }
.bt-chamada { position: absolute; left: 50%; top: 107.2cqw; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 2cqw; white-space: nowrap; font-family: var(--fonte); font-weight: 600; font-size: max(9.5px, 2.4cqw); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 252, 240, .9); text-shadow: 0 .2cqw .5cqw rgba(30, 20, 5, .6); transition: opacity .35s; }
.bt-chamada::before, .bt-chamada::after { content: ""; width: 9cqw; height: .25cqw; background: linear-gradient(90deg, rgba(255, 252, 240, 0), rgba(255, 252, 240, .85)); }
.bt-chamada::after { transform: scaleX(-1); }
.bt-cena:not([data-fase="aposta"]) .bt-chamada { opacity: 0; }

/* faixa do vencedor */
.bt-faixa { position: absolute; left: 50%; top: 42cqw; width: 84cqw; height: 5.4cqw; transform: translate(-50%, -50%) scaleX(.3); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2, .9, .3, 1), opacity .3s; z-index: 5; }
.bt-faixa.on { opacity: 1; transform: translate(-50%, -50%) scaleX(1); }
.bt-faixa .bt-fita { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--fc), 0) 0, rgba(var(--fc), .9) 18%, rgb(var(--fc2)) 50%, rgba(var(--fc), .9) 82%, rgba(var(--fc), 0) 100%); box-shadow: 0 .5cqw 1.6cqw rgba(var(--fc), .45);
  -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.bt-faixa .bt-fita::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .18)); }
.bt-faixa .bt-tx { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--fonte); font-weight: 800; font-size: max(10px, 3.3cqw); letter-spacing: .03em; color: #fff; text-shadow: 0 .2cqw .4cqw rgba(0, 0, 0, .4); }
.bt-faixa.pl { --fc: 28, 82, 232; --fc2: 36, 98, 255; } .bt-faixa.bk { --fc: 190, 24, 38; --fc2: 224, 40, 52; }
.bt-faixa .bt-dd { position: absolute; left: 50%; bottom: 92%; display: flex; gap: .8cqw; transform: translateX(-50%) scale(.2); transform-origin: 50% 100%; opacity: 0; transition: transform .35s cubic-bezier(.2, 1.7, .4, 1) .22s, opacity .2s .22s; }
.bt-faixa.on .bt-dd { transform: translateX(-50%) scale(1); opacity: 1; }
.bt-d2 { position: relative; width: 7.2cqw; height: 7.2cqw; border-radius: 1.5cqw; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 1.1cqw; background: linear-gradient(145deg, var(--d1), var(--d2)); border: .18cqw solid rgba(255, 255, 255, .7);
  box-shadow: .35cqw .55cqw 0 var(--d3), 0 1.1cqw 1.8cqw rgba(0, 0, 0, .4), inset 0 0 1.2cqw rgba(255, 255, 255, .35); }
.bt-d2:nth-child(2) { width: 6.3cqw; height: 6.3cqw; transform: rotate(7deg) translateY(.6cqw); }
.bt-d2 u { place-self: center; width: 78%; aspect-ratio: 1; border-radius: 50%; } .bt-d2 u.p { background: #fff; box-shadow: 0 0 .3cqw rgba(0, 20, 80, .6); }
.bt-faixa.pl .bt-d2 { --d1: #3a74ff; --d2: #1237b8; --d3: #0a2579; } .bt-faixa.bk .bt-d2 { --d1: #ff4a52; --d2: #b4131f; --d3: #6e0a12; }


/* ── barra de escolha (v2, 03/12): agora fica na área de controles, embaixo da animação ──
   O contêiner mede a própria largura (container-type), então os tamanhos em cqw acompanham a coluna de controles. */
.bt-barbox { container-type: inline-size; position: relative; padding-top: 16px; margin: 0 0 14px; }
.bt-bar { position: relative; width: 100%; height: 31cqw; display: flex; filter: drop-shadow(0 1.4cqw 2cqw rgba(0, 0, 0, .5)); }
.bt-lado { position: relative; background: transparent; flex: 1 1 50%; min-width: 0; border: 0; padding: 0; color: #fff; text-align: left; -webkit-tap-highlight-color: transparent; overflow: visible; cursor: pointer; font-family: var(--fonte); }
.bt-lado .bt-corpo { position: absolute; inset: 0; overflow: hidden; border: .3cqw solid rgba(255, 255, 255, .35); transition: box-shadow .25s, border-color .25s; }
.bt-lado.pl .bt-corpo { border-radius: 5.8cqw 0 0 5.8cqw / 5.8cqw 0 0 5.8cqw; border-right: 0;
  background: radial-gradient(90% 70% at 18% 12%, rgba(120, 170, 255, .55), rgba(120, 170, 255, 0) 60%), linear-gradient(160deg, #1b50ea 0, #1238c4 55%, #0a2796 100%); }
.bt-lado.bk .bt-corpo { border-radius: 0 5.8cqw 5.8cqw 0 / 0 5.8cqw 5.8cqw 0; border-left: 0; text-align: right;
  background: radial-gradient(90% 70% at 82% 12%, rgba(255, 130, 130, .5), rgba(255, 130, 130, 0) 60%), linear-gradient(200deg, #c4222d 0, #94121d 55%, #6c0b15 100%); }
.bt-lado .bt-corpo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0, 0, 0, .28) 28%, transparent 30%); background-size: 1cqw 1cqw; opacity: .55; mix-blend-mode: multiply; }
.bt-lado .bt-corpo::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0)); }
.bt-lado.escolhido .bt-corpo { border-color: #ffe9a0; box-shadow: inset 0 0 0 .4cqw rgba(255, 233, 160, .85), inset 0 0 4.4cqw rgba(255, 233, 160, .25); }
.bt-lado:not(.escolhido):hover .bt-corpo { border-color: rgba(255, 255, 255, .6); }
.bt-lado:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4cqw; }
.bt-lado.perde .bt-corpo { filter: saturate(.55) brightness(.72); transition: filter .5s; }
.bt-lado .bt-in { position: absolute; inset: 0; padding: 3cqw 5.5cqw; display: flex; flex-direction: column; justify-content: space-between; }
.bt-lado.pl .bt-in { padding-right: 14.5cqw; } .bt-lado.bk .bt-in { padding-left: 14.5cqw; align-items: flex-end; }
.bt-lado .bt-topo2 { position: relative; min-height: 12.6cqw; width: 100%; }
.bt-aposta-in { position: absolute; inset: 0; display: flex; align-items: flex-start; gap: 2cqw; transition: opacity .5s; }
.bt-lado.bk .bt-aposta-in { flex-direction: row-reverse; }
.bt-pct { position: relative; flex: none; width: 10cqw; height: 10cqw; display: grid; place-items: center; font-weight: 700; font-size: max(10px, 3cqw); }
.bt-pct svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); } .bt-pct circle { fill: none; stroke-width: 3.2; } .bt-pct .t { stroke: rgba(255, 255, 255, .22); } .bt-pct .v { stroke: rgba(255, 255, 255, .95); stroke-linecap: round; }
.bt-vals { display: grid; gap: .6cqw; font-weight: 700; font-size: max(11px, 3.5cqw); line-height: 1.15; padding-top: .8cqw; min-width: 0; }
.bt-vals > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-vals .v2 { opacity: .8; font-weight: 600; font-size: max(10px, 2.9cqw); }
.bt-total { position: absolute; inset: 0; display: flex; align-items: flex-start; gap: 2cqw; opacity: 0; transition: opacity .35s; }
.bt-lado.bk .bt-total { flex-direction: row-reverse; }
.bt-total b { font-family: var(--fonte); font-weight: 700; font-size: max(22px, 10cqw); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 .3cqw .6cqw rgba(0, 0, 0, .35); min-width: 6cqw; }
.bt-total .bt-mm { display: flex; flex-direction: column; gap: .6cqw; padding-top: .6cqw; }
.bt-mini { width: 3.4cqw; height: 3.4cqw; border-radius: .7cqw; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: .4cqw; background: rgba(255, 255, 255, .16); border: .2cqw solid rgba(255, 255, 255, .8); }
.bt-mini u { place-self: center; width: 100%; aspect-ratio: 1; border-radius: 50%; } .bt-mini u.p { background: #fff; }
.bt-total.pop b { animation: bt-pop .45s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes bt-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bt-barbox[data-modo="jogo"] .bt-aposta-in { opacity: 0; }
.bt-barbox[data-modo="jogo"] .bt-total.tem { opacity: 1; }
.bt-barbox[data-fase="fechada"] .bt-aposta-in .bt-vals, .bt-barbox[data-fase="fechada"] .bt-aposta-in .bt-pct { opacity: .35; }
.bt-lado .bt-base { display: flex; flex-direction: column; gap: .3cqw; } .bt-lado.bk .bt-base { align-items: flex-end; }
.bt-lado .bt-base small { font-size: max(10px, 2.8cqw); font-weight: 600; opacity: .9; }
.bt-lado .bt-nome2 { font-family: var(--serifa); font-weight: 800; font-size: max(13px, 4.6cqw); letter-spacing: .04em; line-height: 1; text-shadow: 0 .3cqw .5cqw rgba(0, 0, 0, .45); }
.bt-tag { position: absolute; top: -3.4cqw; z-index: 3; padding: .8cqw 2.8cqw; border-radius: 99px; font-size: max(10px, 2.7cqw); font-weight: 800; white-space: nowrap; color: #2b1b00; background: linear-gradient(#fff3c2, #ffd75e); box-shadow: 0 .5cqw 1.4cqw rgba(0, 0, 0, .45); opacity: 0; transform: translateY(.6cqw); transition: opacity .25s, transform .25s; pointer-events: none; }
.bt-lado.pl .bt-tag { left: 6cqw; } .bt-lado.bk .bt-tag { right: 6cqw; }
.bt-lado.escolhido .bt-tag { opacity: 1; transform: none; }
.bt-barbox[data-modo="jogo"] .bt-lado:not(.escolhido) .bt-tag { opacity: 0; }
.bt-barbox[data-modo="jogo"] .bt-lado { cursor: default; }
.bt-med { position: absolute; left: 50%; top: 50%; width: 22cqw; height: 27cqw; transform: translate(-50%, -50%); border-radius: 50%; z-index: 4; pointer-events: none; display: grid; place-items: center; text-align: center; color: #3a2606;
  background: radial-gradient(circle at 36% 24%, #fff3c4 0, #e6c46c 34%, #bf9238 70%, #8e6820 100%); border: .45cqw solid #f1d489; box-shadow: 0 1cqw 2.3cqw rgba(0, 0, 0, .5), inset 0 0 0 .6cqw rgba(110, 76, 16, .45), inset 0 -1.5cqw 2.5cqw rgba(110, 76, 16, .35); }
.bt-med::before { content: ""; position: absolute; inset: 1.4cqw; border-radius: 50%; border: .25cqw solid rgba(95, 62, 10, .55); }
.bt-med .bt-mc { position: relative; display: grid; gap: .6cqw; justify-items: center; }
.bt-med .bt-mc i { font-style: normal; font-size: max(8px, 2.1cqw); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.bt-med .bt-mc b { font-family: var(--serifa); font-weight: 800; font-size: max(16px, 7.8cqw); line-height: 1; text-shadow: 0 .25cqw 0 rgba(255, 245, 205, .8); }
.bt-med .bt-mc span { font-family: var(--serifa); font-weight: 700; font-size: max(8px, 2.4cqw); letter-spacing: .08em; border-top: .25cqw solid rgba(95, 62, 10, .5); padding-top: .8cqw; margin-top: .25cqw; text-transform: uppercase; }
.bac-ctrl .bt-aposta { margin-top: 2px; }

/* totais Player/Banker em cima da mesa durante a rodada (pílulas no alto da cena; o mesmo número aparece na barra de baixo) */
.bt-soma { position: absolute; top: 2.6cqw; z-index: 7; display: flex; align-items: center; gap: 1.8cqw; padding: .9cqw 3cqw .9cqw 1.6cqw; border-radius: 99px; color: #fff; border: .25cqw solid rgba(255, 255, 255, .7); box-shadow: 0 .8cqw 2cqw rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(-1cqw) scale(.9); transition: opacity .3s, transform .3s; pointer-events: none; font-family: var(--fonte); }
.bt-soma.pl { left: 3cqw; background: linear-gradient(160deg, #2a62ff, #0f2f9e); } .bt-soma.bk { right: 3cqw; background: linear-gradient(200deg, #e0303c, #7d0f19); flex-direction: row-reverse; padding: .9cqw 1.6cqw .9cqw 3cqw; }
.bt-soma.tem { opacity: 1; transform: none; }
.bt-soma b { min-width: 7cqw; height: 7cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .28); font-weight: 800; font-size: max(13px, 4.6cqw); line-height: 1; font-variant-numeric: tabular-nums; }
.bt-soma span { font-weight: 800; font-size: max(10px, 2.9cqw); letter-spacing: .06em; }
.bt-soma.perde { filter: saturate(.5) brightness(.75); }
.bt-soma.vence { box-shadow: 0 0 0 .5cqw rgba(255, 233, 160, .9), 0 0 3cqw rgba(255, 233, 160, .6); }

/* ── os 3 fundos da cena (escolha pelo endereço: #/bac-trader/2 ou /?fundo=2#/bac-trader; padrão em FUNDO_PADRAO no JS) ── */
.bt-cena { background: #031108; }
.bt-cena[data-fundo="1"] { background: #031a0f; }
.bt-cena[data-fundo="2"] { background: #02100a; }
.bt-cena[data-fundo="3"] { background: #07120c; }
.bt-cena[data-fundo="2"] .bt-fundo svg, .bt-cena[data-fundo="3"] .bt-fundo svg, .bt-cena[data-fundo="1"] .bt-fundo svg { image-rendering: auto; }
/* 1 · cassino VIP: feltro verde, luzes quentes */
.bt-cena[data-fundo="1"] .bt-tampo { background:
  radial-gradient(60cqw 80cqw at 50% 30cqw, rgba(255, 214, 140, .30), rgba(255, 214, 140, 0) 70%),
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 .02  0 0 0 0 .32  0 0 0 0 .14  0 0 0 .5 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"),
  linear-gradient(180deg, #11603a 0, #0c4a2c 35%, #083a22 100%); }
.bt-cena[data-fundo="1"] .bt-nome { color: #fff2c9; text-shadow: 0 .25cqw 0 rgba(0, 0, 0, .55), 0 .9cqw 1.4cqw rgba(0, 0, 0, .6), 0 0 2.4cqw rgba(255, 200, 90, .35); }
/* 2 · mesa de trader: vidro grafite com grade neon, velas ao fundo */
.bt-cena[data-fundo="2"] .bt-tampo { background:
  radial-gradient(60cqw 70cqw at 50% 28cqw, rgba(141, 255, 31, .16), rgba(141, 255, 31, 0) 70%),
  repeating-linear-gradient(90deg, rgba(39, 199, 103, .13) 0 .25cqw, transparent .25cqw 9cqw),
  repeating-linear-gradient(0deg, rgba(39, 199, 103, .13) 0 .25cqw, transparent .25cqw 9cqw),
  linear-gradient(180deg, #0a2018 0, #061510 40%, #030b08 100%); }
.bt-cena[data-fundo="2"] .bt-feltro { background: linear-gradient(180deg, #0c3a22, #27d96f 55%, #0e6a3b); box-shadow: 0 0 2.4cqw rgba(var(--primaria-rgb), .55), inset 0 -.5cqw .8cqw rgba(0, 0, 0, .35); }
.bt-cena[data-fundo="2"] .bt-nome { color: #e9ffd8; text-shadow: 0 0 1.6cqw rgba(141, 255, 31, .55), 0 .6cqw 1cqw rgba(0, 0, 0, .7); }
/* 3 · palco: veludo esmeralda e holofote dourado */
.bt-cena[data-fundo="3"] .bt-tampo { background:
  radial-gradient(55cqw 75cqw at 50% 26cqw, rgba(255, 206, 110, .42), rgba(255, 206, 110, 0) 72%),
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='11'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .36  0 0 0 0 .16  0 0 0 .16 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"),
  linear-gradient(180deg, #3a2a18 0, #251a0f 38%, #150e08 100%); }
.bt-cena[data-fundo="3"] .bt-feltro { background: linear-gradient(180deg, #7a5612, #f1d06a 55%, #9a6f1c); box-shadow: 0 0 2cqw rgba(255, 200, 90, .45), inset 0 -.5cqw .8cqw rgba(0, 0, 0, .35); }
.bt-cena[data-fundo="3"] .bt-nome { color: #ffe9a8; text-shadow: 0 .25cqw 0 rgba(0, 0, 0, .6), 0 .9cqw 1.4cqw rgba(0, 0, 0, .7), 0 0 2.4cqw rgba(255, 190, 70, .4); }

@media (max-width: 640px) {
  .bt-bar { height: 37cqw; } .bt-med { width: 24cqw; height: 31cqw; }
  .bt-lado.pl .bt-in { padding-right: 15.5cqw; } .bt-lado.bk .bt-in { padding-left: 15.5cqw; }
  .bt-lado .bt-in { padding-top: 3.4cqw; padding-bottom: 3.4cqw; }
  .bt-pct { width: 11cqw; height: 11cqw; font-size: max(10px, 3.3cqw); } .bt-lado .bt-topo2 { min-height: 14cqw; }
  .bt-vals { font-size: max(11px, 3.7cqw); }
}


/* ═════ LAYOUT v3 (04/12/2026): coluna única — TELA (animação 16:9 com status por cima) → APOSTA → HISTÓRICO/OPERAÇÕES ═════
   Só visual: ids e classes usados pelo JS continuam os mesmos. A cena (720x800) fica centralizada dentro da tela larga;
   o cenário se estende pelas laterais (::before) e as bordas da cena se dissolvem (máscara). */
.bac { --ouro2: #e9c25b; --ouro-borda: rgba(233, 194, 91, .22); max-width: 1180px; margin: 0 auto; }
.bac-grade { display: flex; flex-direction: column; gap: 16px; }
.bt-card { border-color: var(--ouro-borda); background: linear-gradient(180deg, #0d1a12, #08110b); }
.bt-card h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ouro2); }

.bt-tela { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; isolation: isolate; border-radius: 22px; background: #03100a;
  border: 1px solid rgba(233, 194, 91, .38); box-shadow: 0 0 0 5px #050d09, 0 0 0 6px var(--ouro-borda), 0 24px 60px rgba(0, 0, 0, .6); --crop: 33cqw; --hz: 18%; --hzs: 26.7%; }
.bt-tela::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 200%; z-index: 0; transition: transform 3.4s cubic-bezier(.3, .1, .3, 1);
  background:
    radial-gradient(14% 9% at 6% 14%, rgba(255, 179, 71, .5), transparent 70%), radial-gradient(14% 9% at 95% 12%, rgba(39, 199, 103, .5), transparent 70%),
    radial-gradient(10% 6% at 22% 20%, rgba(255, 211, 107, .35), transparent 70%), radial-gradient(10% 6% at 80% 20%, rgba(255, 179, 71, .3), transparent 70%),
    linear-gradient(180deg, #010a06 0, #07271a calc(var(--hz) * .5), #0d4a2c calc(var(--hz) - .3%), #d9a93f calc(var(--hz) - .2%), #ffe9a0 calc(var(--hz) + .0%), #0b3a24 calc(var(--hz) + .4%), #083a22 100%); }
.bt-tela[data-fundo="2"]::before { background: radial-gradient(30% 8% at 50% 24%, rgba(141, 255, 31, .22), transparent 70%), linear-gradient(180deg, #000605 0, #03150d calc(var(--hz) * .6), #062a1a calc(var(--hz) - .3%), #27d96f var(--hz), #04140d calc(var(--hz) + .4%), #04140d 100%); }
.bt-tela[data-fundo="3"]::before { background: radial-gradient(30% 12% at 50% 22%, rgba(255, 206, 110, .35), transparent 70%), linear-gradient(180deg, #050d09 0, #0a1b13 calc(var(--hz) * .7), #14663c calc(var(--hz) - .3%), #f1d06a var(--hz), #1d140b calc(var(--hz) + .4%), #1d140b 100%); }
.bt-tela:has(.bt-cena[data-cam="top"])::before { transform: translateY(calc(var(--hzs) * -1 + 0cqw)); }
.bt-palco { transition: transform 3.4s cubic-bezier(.3, .1, .3, 1); } .bt-palco { transform-origin: 50% 81.6%; }
.bt-tela:has(.bt-cena[data-cam="top"]) .bt-palco { transform: translateX(-50%) scale(.67); }
.bt-palco { position: absolute; left: 50%; bottom: 0; width: 72cqw; transform: translateX(-50%); z-index: 1; }
.bt-palco .bt-cena { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: transparent; --crop: 33cqw; }
.bt-palco .bt-cena { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%); }
.bt-palco .bt-soma.pl { left: 12cqw; } .bt-palco .bt-soma.bk { right: 12cqw; }
.bt-palco .bt-soma { top: calc(var(--crop) + 12cqw); }
.bt-palco .bt-wl { top: calc(var(--crop) + 22cqw); } .bt-palco .bt-faixa { top: calc(var(--crop) + 26cqw); }
.bt-palco .bt-anel { top: calc(var(--crop) + 16cqw); } .bt-palco .bt-chamada { display: none; }
/* status por cima da tela */
.bt-hud { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; padding: 16px 20px 40px; pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 8, 5, .88), rgba(1, 8, 5, .55) 55%, rgba(1, 8, 5, 0)); }
.bt-hud .bt-cx { padding: 0; background: none; border: 0; border-radius: 0; }
.bt-hud .bt-cx.dir { text-align: right; }
.bt-hud .bt-cx small { display: block; margin-bottom: 2px; font-size: 10px; letter-spacing: .14em; color: var(--ouro2); }
.bt-hud .bt-cx b { font-size: 22px; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.bt-hud .bt-fase { margin: 0; min-height: 0; justify-self: center; text-align: center; padding: 7px 18px; border-radius: 99px; font-size: 14px; background: rgba(3, 10, 5, .62); border: 1px solid var(--ouro-borda); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* faixa de apostas, centralizada como no cassino */
.bac-ctrl { padding: 22px clamp(14px, 3vw, 32px) 20px; }
.bac-ctrl > .bt-barbox, .bac-ctrl > .bt-aposta, .bac-ctrl > .bt-entrada { max-width: 800px; margin-left: auto; margin-right: auto; }
.bt-bar { height: 28cqw; }
.bt-barbox { padding-top: 18px; margin-bottom: 18px; }
.bt-aposta { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "campo entrar"; gap: 12px 12px; align-items: end; }
.bt-campo { grid-area: campo; } .bt-aposta .bt-entrar { grid-area: entrar; }.bt-val { height: 52px; border-color: var(--ouro-borda); }
.bt-entrar { height: 52px; padding: 0 34px; font-size: 15px; min-width: 190px; }
.bt-atalho { flex: none; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--bt-borda2); background: rgba(255, 255, 255, .06); color: var(--bt-suave); font: 700 13px var(--fonte); cursor: pointer; }
.bt-atalho:hover { color: #fff; border-color: var(--ouro-borda); }
/* entradas travadas (mesa rolando os dados / mostrando o resultado / últimos 8 s): cinza, sem o verde de "pode clicar" */
.bt-entrar.fechado:disabled { opacity: 1; background: #1c231f; border-color: #39433d; color: #8d9a92; box-shadow: none; cursor: not-allowed; }
.bt-val.fechado { opacity: .5; border-color: var(--bt-borda2); } .bt-val.fechado input { cursor: not-allowed; }
.bt-atalho:disabled, .bt-atalho:disabled:hover { color: var(--bt-suave); border-color: var(--bt-borda2); opacity: .6; cursor: not-allowed; }
/* ficha de cassino pousando sobre o lado escolhido */
.bt-fch { position: absolute; z-index: 4; top: 60%; width: max(38px, 8.6cqw); aspect-ratio: 1; margin: calc(max(38px, 8.6cqw) / -2) 0 0 calc(max(38px, 8.6cqw) / -2); left: 50%; border-radius: 50%; display: grid; place-items: center; pointer-events: none; color: #fff;
  border: .55cqw dashed rgba(255, 255, 255, .88); background: radial-gradient(circle at 34% 28%, var(--f1), var(--f2)); box-shadow: 0 1.2cqw 2cqw rgba(0, 0, 0, .55), inset 0 0 0 .6cqw var(--f2), inset 0 -.8cqw 1.2cqw rgba(0, 0, 0, .3); animation: btFchCai .7s cubic-bezier(.3, 1.4, .5, 1) both; }

.bt-fch b { font: 800 max(12px, 2.9cqw) var(--fonte); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.bt-fch.f1 { --f1: #f4f4f4; --f2: #b9bec4; color: #222; border-color: #6b7078; } .bt-fch.f1 b { text-shadow: none; }
.bt-fch.f5 { --f1: #ff5a63; --f2: #b4131f; } .bt-fch.f10 { --f1: #4f8dff; --f2: #1237b8; }
.bt-fch.f25 { --f1: #2bd47a; --f2: #0b6a3b; } .bt-fch.f100 { --f1: #3b3b3b; --f2: #0b0b0b; border-color: #ffe9a0; }
.bt-lado.pl .bt-fch { left: 60%; } .bt-lado.bk .bt-fch { left: 40%; }
@keyframes btFchCai { 0% { transform: translateY(-14cqw) scale(1.5) rotate(-120deg); opacity: 0; } 55% { opacity: 1; } 75% { transform: translateY(1cqw) scale(.95) rotate(8deg); } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bt-fch { animation: none; } }
.bt-entrada { text-align: center; }

/* histórico e operações */
.bt-ult { grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 8px; }
.bt-legenda { justify-content: center; margin-top: 12px; }
.bt-ops { max-height: 340px; }

@media (max-width: 900px) {
  .bt-ult { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bac-grade { gap: 12px; }
  .bt-tela { aspect-ratio: 1 / 1; border-radius: 16px; box-shadow: 0 0 0 3px #050d09, 0 0 0 4px var(--ouro-borda), 0 14px 36px rgba(0, 0, 0, .6); --crop: 0cqw; }
  .bt-palco { width: 90cqw; }
  .bt-palco .bt-cena { --crop: 0cqw; }
  .bt-palco .bt-soma { top: 36cqw; } .bt-palco .bt-wl { top: 42cqw; }
  .bt-hud { grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 12px 14px 34px; }
  .bt-hud .bt-fase { grid-column: 1 / -1; grid-row: 2; font-size: 12.5px; padding: 6px 14px; }
  .bt-hud .bt-cx b { font-size: 17px; }
  .bt-hud .bt-cx small { font-size: 9px; }
  .bac-ctrl { padding: 16px 12px 14px; }
  .bt-aposta { grid-template-columns: minmax(0, 1fr); grid-template-areas: "campo" "entrar"; }
  .bt-aposta .bt-entrar { width: 100%; }
  .bt-ult { gap: 5px; }
}


/* ═════ v3b (04/12/2026): faixa JOGADOR / BT / BANCA DENTRO da animação, sobreposta na base (como no Bac Bo do cassino) ═════ */
.bt-tela > .bt-barbox { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(52cqw, 640px); margin: 0; padding-top: 0; z-index: 7; }
.bt-tela > .bt-barbox .bt-tag { top: -2.6cqw; }
.bt-tela > .bt-barbox .bt-bar { filter: drop-shadow(0 .8cqw 1.6cqw rgba(0, 0, 0, .7)); }
.bac-ctrl { padding-top: 18px; }
@media (max-width: 640px) {
  .bt-tela { aspect-ratio: 1 / 1.25; --crop: 0cqw; --hz: 24.5%; --hzs: 15%; }
  .bt-palco { top: 6cqw; bottom: auto; width: 90cqw; transform-origin: 50% 88%; }
  .bt-tela:has(.bt-cena[data-cam="top"]) .bt-palco { transform: translateX(-50%) scale(.86); }
  .bt-palco .bt-cena { --crop: 0cqw; }
  .bt-palco .bt-anel { top: 52cqw; } .bt-palco .bt-faixa { top: 46cqw; } .bt-palco .bt-wl { top: 36cqw; }
  .bt-tela > .bt-barbox { width: calc(100% - 20px); bottom: 10px; }
  .bt-tela > .bt-barbox .bt-bar { height: 34cqw; }
  .bt-tela > .bt-barbox .bt-tag { top: -3cqw; }
}


/* ═════ v4 (04/12/2026): "Últimos 20" virou uma faixa fina EM CIMA da animação (bolinhas pequenas, legenda discreta, som à direita) ═════ */
.bac-hist { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "tit bolas leg som"; align-items: center; gap: 8px 14px;
  margin: 0 0 10px; padding: 7px 10px 7px 14px; border-radius: 14px; background: linear-gradient(180deg, rgba(13, 26, 18, .92), rgba(8, 17, 11, .92)); border: 1px solid var(--ouro-borda); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.bac-hist .bt-hist-tit { grid-area: tit; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ouro2); white-space: nowrap; }
.bac-hist .bt-ult { grid-area: bolas; display: grid; grid-template-columns: repeat(20, minmax(0, 26px)); gap: 5px; justify-content: start; min-width: 0; }
.bac-hist .bt-bola { width: 100%; font-size: 11px; line-height: 1; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .28), inset 0 1px 2px rgba(255, 255, 255, .25); }
.bac-hist .bt-ult .bt-bola:first-child { box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(255, 255, 255, .45); }
.bac-hist .bt-bola.vazia { background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--bt-borda2); }
.bac-hist .bt-legenda { grid-area: leg; margin: 0; flex-wrap: nowrap; gap: 10px; font-size: 10.5px; white-space: nowrap; color: var(--bt-suave); opacity: .85; }
.bac-hist .bt-legenda i { width: 7px; height: 7px; margin-right: 4px; vertical-align: 0; }
.bac-hist .bt-legenda i.pl { background: var(--pl); } .bac-hist .bt-legenda i.bk { background: var(--bk); }
.bac-hist .bt-som { grid-area: som; padding: 5px 10px; border-radius: 99px; font-size: 11px; white-space: nowrap; }
@media (max-width: 1100px) {
  .bac-hist { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "tit leg som" "bolas bolas bolas"; }
  .bac-hist .bt-legenda { justify-self: end; }
  .bac-hist .bt-ult { grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 5px; }
  .bac-hist .bt-bola { max-width: 30px; justify-self: center; }
}
@media (max-width: 640px) {
  .bac-hist { gap: 7px 10px; padding: 7px 9px 8px 11px; border-radius: 12px; margin-bottom: 8px; }
  .bac-hist .bt-leg-soma { display: none; }
  .bac-hist .bt-ult { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px 4px; }
  .bac-hist .bt-bola { max-width: 28px; font-size: 11px; }
  .bac-hist .bt-som { padding: 4px 9px; font-size: 10.5px; }
}


/* ═════ v5 (04/12/2026): painel ANÁLISE (recolhível, abaixo da aposta). Só estatística dos resultados já guardados na tela. ═════ */
.bac-ana { padding: 0; overflow: hidden; }
.bt-ana-cab { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bt-ana-cab:focus-visible { outline: 2px solid var(--ouro2); outline-offset: -4px; border-radius: 18px; }
.bt-ana-tit { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.bt-ana-tit b { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ouro2); }
.bt-ana-tit small { font-size: 12px; color: var(--bt-suave); }
.bt-ana-abrir { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--ouro-borda); font-size: 12px; font-weight: 700; color: var(--ouro2); }
.bt-ana-seta { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.bac-ana.aberta .bt-ana-seta { transform: translateY(2px) rotate(-135deg); }
.bt-ana-corpo { padding: 0 18px 18px; }
.bt-ana-aviso { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; font-size: 12px; color: #f3dc9a; background: rgba(233, 194, 91, .07); border: 1px dashed var(--ouro-borda); }
.bt-ana-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bt-ana-bloco { min-width: 0; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--bt-borda); }
.bt-ana-road-box { grid-column: 1 / -1; }
.bt-ana-bloco h4 { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ouro2); }
.bt-ana-nota { margin: 8px 0 0; font-size: 11px; color: var(--bt-suave); line-height: 1.45; }
.bt-ana-pt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 4px 0 2px; vertical-align: 0; }
.bt-ana-pt.pl { background: var(--pl); } .bt-ana-pt.bk { background: var(--bk); }
/* resumo Player x Banker */
.bt-ana-pb { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bt-ana-pb span { display: grid; gap: 1px; } .bt-ana-pb span.bk { text-align: right; }
.bt-ana-pb small { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--bt-suave); }
.bt-ana-pb b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 26px; line-height: 1; }
.bt-ana-pb .pl b { color: var(--pl2); } .bt-ana-pb .bk b { color: var(--bk2); }
.bt-ana-pb em { font-style: normal; font-size: 11px; color: var(--bt-suave); }
.bt-ana-split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #0f1a12; }
.bt-ana-split i { display: block; height: 100%; }
.bt-ana-split i.pl, .bt-ana-pilha i.pl, .bt-ana-hb i.pl { background: linear-gradient(90deg, #1c63b8, #5fb4ff); }
.bt-ana-split i.bk, .bt-ana-pilha i.bk, .bt-ana-hb i.bk { background: linear-gradient(90deg, #ff6a74, #a81f2c); }
.bt-ana-seqs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.bt-ana-cx { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--bt-borda); min-width: 0; }
.bt-ana-cx small { display: block; font-size: 10px; font-weight: 700; color: var(--bt-suave); margin-bottom: 3px; }
.bt-ana-cx b { font-size: 17px; font-weight: 800; white-space: nowrap; }
.bt-ana-cx b.pl { color: var(--pl2); } .bt-ana-cx b.bk { color: var(--bk2); }
/* janelas comparativas */
.bt-ana-jans { display: grid; gap: 12px; }
.bt-ana-jan { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.bt-ana-jl { font-size: 12px; font-weight: 700; white-space: nowrap; }
.bt-ana-jp { display: flex; gap: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.bt-ana-jp b { min-width: 46px; text-align: right; } .bt-ana-jp b.pl { color: var(--pl2); } .bt-ana-jp b.bk { color: var(--bk2); }
/* caminho (big road simples) */
.bt-ana-cab4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; } .bt-ana-cab4 h4 { margin: 0; }
.bt-ana-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 99px; border: 1px solid var(--bt-borda2); }
.bt-ana-tabs button { padding: 4px 12px; border-radius: 99px; border: 0; background: none; color: var(--bt-suave); font: 700 12px var(--fonte); cursor: pointer; }
.bt-ana-tabs button[aria-pressed="true"] { background: rgba(233, 194, 91, .16); color: var(--ouro2); }
.bt-road { display: flex; gap: 3px; overflow-x: auto; padding: 6px; border-radius: 10px; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 25px), #050d09; border: 1px solid var(--bt-borda); scrollbar-width: thin; }
.bt-rcol { flex: none; display: grid; grid-template-rows: repeat(6, 22px); gap: 3px; width: 22px; }
.bt-rcol.cont { border-left: 1px dashed rgba(255, 255, 255, .14); padding-left: 2px; width: 25px; }
.bt-rb { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 10px var(--display); color: #fff; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .28), inset 0 1px 2px rgba(255, 255, 255, .25); }
.bt-rb.pl { background: linear-gradient(#5fb4ff, #1c63b8); } .bt-rb.bk { background: linear-gradient(#ff6a74, #a81f2c); }
.bt-rb.ult { box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(255, 255, 255, .5); }
/* frequência por soma */
.bt-ana-somas { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 150px; align-items: end; }
.bt-ana-col { height: 100%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 3px; min-width: 0; }
.bt-ana-col .bt-ana-pilha { align-self: end; width: 100%; max-width: 30px; min-height: 2px; display: flex; flex-direction: column; border-radius: 6px 6px 2px 2px; overflow: hidden; background: #0f1a12; }
.bt-ana-col .bt-ana-pilha i { display: block; min-height: 0; }
.bt-ana-q { font-size: 10px; color: var(--bt-suave); font-variant-numeric: tabular-nums; }
.bt-ana-x { font-size: 12px; font-weight: 800; }
/* tamanho das sequências */
.bt-ana-tams { display: grid; gap: 7px; }
.bt-ana-tam { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; }
.bt-ana-tam.cab span { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; } .bt-ana-tam.cab .pl { color: var(--pl2); } .bt-ana-tam.cab .bk { color: var(--bk2); }
.bt-ana-tl { font-size: 13px; font-weight: 800; text-align: center; }
.bt-ana-hb { position: relative; height: 18px; border-radius: 6px; background: #0f1a12; overflow: hidden; }
.bt-ana-hb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.bt-ana-hb b { position: relative; z-index: 1; display: block; padding-left: 6px; font-size: 11px; line-height: 18px; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
@media (max-width: 760px) {
  .bt-ana-grade { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bt-ana-cab { padding: 12px 12px; align-items: flex-start; }
  .bt-ana-tit small { font-size: 11px; }
  .bt-ana-abrir { padding: 5px 10px; font-size: 11px; }
  .bt-ana-corpo { padding: 0 10px 12px; }
  .bt-ana-bloco { padding: 10px; }
  .bt-ana-seqs { gap: 6px; } .bt-ana-cx { padding: 7px 8px; } .bt-ana-cx b { font-size: 15px; }
  .bt-ana-jan { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 8px; }
  .bt-ana-jp b { min-width: 42px; font-size: 11.5px; }
  .bt-ana-somas { gap: 4px; height: 130px; }
}


/* ═════ v6 (04/12/2026): HISTÓRICO igual ao Double. Botão "Histórico" na faixa "Últimos 20" (mesmo botão branco do Double)
   abre uma TELA por cima da mesa com os até 500 resultados e a análise (o painel Análise saiu da página). A tela fica no
   <body> (fora de .bac), por isso repete as cores aqui. A mesa continua rodando por baixo. No celular é tela cheia. ═════ */
.bac-hist { grid-template-columns: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "tit bolas leg som hist"; }
.bac-hist .bt-ult { cursor: pointer; }
.bac-hist .btn.bt-hist-btn { grid-area: hist; padding: 7px 14px; border-radius: 10px; font-size: 11.5px; letter-spacing: .08em; }
@media (max-width: 1400px) { .bac-hist .bt-leg-soma { display: none; } }
@media (max-width: 1100px) {
  .bac-hist { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "tit leg som hist" "bolas bolas bolas bolas"; }
}
@media (max-width: 640px) {
  .bac-hist { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "leg som hist" "bolas bolas bolas"; }
  .bac-hist .bt-hist-tit { display: none; }
  .bac-hist .bt-legenda { justify-self: start; }
  .bac-hist .btn.bt-hist-btn { padding: 6px 10px; font-size: 10.5px; }
}

html.bt-htela-on, html.bt-htela-on body { overflow: hidden; }
.bt-htela { --pl: #3ea0ff; --pl2: #9ccdff; --bk: #ff3b47; --bk2: #ff8f97; --ouro: #ffc83d; --ouro2: #e9c25b; --ouro-borda: rgba(233, 194, 91, .22);
  --bt-painel: #0a120c; --bt-painel2: #0f1a12; --bt-borda: #16281b; --bt-borda2: #23402b; --bt-suave: #8fa596;
  position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 24px; background: rgba(1, 3, 2, .82);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); overscroll-behavior: contain; animation: fundoEntra .18s ease-out; }
.bt-hpainel { width: min(1100px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 26px; border: 1px solid rgba(233, 194, 91, .38); background: linear-gradient(180deg, #0d1a12, #07100a);
  box-shadow: 0 0 0 5px #050d09, 0 0 0 6px var(--ouro-borda), 0 30px 80px rgba(0, 0, 0, .7); animation: fimEntra .26s cubic-bezier(.2, .9, .25, 1.1); }
.bt-hcab { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 14px; border-bottom: 1px solid var(--bt-borda); }
.bt-htitulo { display: grid; gap: 5px; min-width: 0; }
.bt-htitulo h2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1; letter-spacing: -.01em; }
.bt-htela .btn.bt-hfechar { flex: none; height: 42px; padding: 0 18px; gap: 10px; border-radius: 12px; font-size: 12px; letter-spacing: .08em; }
.bt-hfechar i { position: relative; width: 12px; height: 12px; flex: none; }
.bt-hfechar i::before, .bt-hfechar i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 2.4px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.bt-hfechar i::after { transform: translate(-50%, -50%) rotate(-45deg); }
.bt-hcorpo { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 20px; scrollbar-width: thin; }
.bt-hresumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.bt-hchip { display: grid; gap: 7px; min-width: 0; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--bt-borda); }
.bt-hchip .bt-ana-jl { font-size: 11px; font-weight: 700; color: var(--bt-suave); }
.bt-hchip .bt-ana-jp { justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; font-size: 12.5px; font-weight: 800; }
.bt-hchip .bt-ana-jp b { min-width: 0; text-align: left; }
.bt-hbox { margin-bottom: 12px; padding: 14px; border-radius: 18px; background: rgba(0, 0, 0, .28); border: 1px solid var(--bt-borda); }
.bt-hgcab { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; font-size: 11px; font-weight: 700; color: var(--bt-suave); }
.bt-hgcab b { color: var(--texto, #eef5ee); } .bt-hdica { font-weight: 500; }
.bt-hgrade { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; max-height: 336px; overflow-y: auto; padding: 4px; scrollbar-width: thin; }
.bt-hgrade .bt-bola { width: 32px; height: 32px; flex: none; font-size: 13px; cursor: pointer; }
.bt-hgrade .bt-bola:first-child { box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(255, 255, 255, .45); }
.bt-hgrade .bt-bola.sel { outline: 3px solid var(--ouro); outline-offset: 1px; }
.bt-hgrade .bt-bola.nova { animation: ultEntra .55s cubic-bezier(.2, .9, .3, 1.35); }
.bt-hdet { margin: 10px 0 0; min-height: 1.4em; font-size: 12.5px; color: var(--bt-suave); }
.bt-hdet b.pl { color: var(--pl2); } .bt-hdet b.bk { color: var(--bk2); }
.bt-htela .bt-legenda { margin-top: 6px; }
.bt-htela .bt-legenda i.pl { background: var(--pl); } .bt-htela .bt-legenda i.bk { background: var(--bk); }
.bt-ana-largo { grid-column: 1 / -1; }
@media (max-width: 900px) { .bt-hresumo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bt-htela { padding: 0; place-items: stretch; }
  .bt-hpainel { width: 100%; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .bt-hcab { padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
  .bt-htitulo h2 { font-size: 20px; } .bt-htitulo .bac-vivo { font-size: 10px; }
  .bt-hcorpo { padding: 12px 10px calc(16px + env(safe-area-inset-bottom)); }
  /* janelas viram uma lista compacta (uma linha cada) para a grade aparecer logo */
  .bt-hresumo { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 10px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--bt-borda); }
  .bt-hchip { grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; border: 0; border-radius: 0; background: none; }
  .bt-hchip + .bt-hchip { border-top: 1px solid var(--bt-borda); }
  .bt-hchip .bt-ana-jp { flex-wrap: nowrap; gap: 8px; font-size: 11px; white-space: nowrap; }
  .bt-hbox { padding: 10px; border-radius: 14px; }
  .bt-hgrade { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 5px; max-height: 300px; }
  .bt-hgrade .bt-bola { width: 100%; max-width: 34px; height: auto; justify-self: center; font-size: 12px; }
}
@media (max-width: 480px) {
  .bt-htela .btn.bt-hfechar { width: 42px; padding: 0; } .bt-hfechar span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bt-htela, .bt-hpainel, .bt-hgrade .bt-bola.nova { animation: none; } }

/* ═════ v6b (04/12/2026): HISTÓRICO em TELA CHEIA também no PC (>= 768px), igual ao celular. Até 900px empilhado e rolando;
   a partir de 900px vira 2 colunas (bolinhas à esquerda, análises à direita), cada uma rolando sozinha só se precisar. ═════ */
@media (min-width: 768px) {
  .bt-htela { padding: 0; place-items: stretch; background: #060f09; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bt-hpainel { width: 100%; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; box-shadow: none; background: linear-gradient(180deg, #0d1a12, #07100a); }
  .bt-hcab { padding: 14px 28px 12px; }
  .bt-hcorpo { padding: 16px 28px 22px; }
}
@media (min-width: 900px) {
  .bt-hcorpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 20px; overflow: hidden; }
  .bt-hresumo { grid-column: 1; grid-row: 1; }
  .bt-hbox { grid-column: 1; grid-row: 2; margin-bottom: 0; display: flex; flex-direction: column; min-height: 0; }
  .bt-hgrade { flex: 1 1 auto; min-height: 0; max-height: none; align-content: flex-start; }
  .bt-hgrade .bt-bola { width: 31px; height: 31px; }
  .bt-hdet { flex: none; }
  .bt-hcorpo > .bt-ana-aviso { grid-column: 2; grid-row: 1; align-self: start; margin-bottom: 12px; }
  .bt-hcorpo > .bt-ana-grade { grid-column: 2; grid-row: 2; min-height: 0; overflow-y: auto; overflow-x: hidden; align-content: start; padding-right: 4px; scrollbar-width: thin; grid-template-columns: minmax(0, 1fr); }
  .bt-hcorpo > .bt-ana-grade > * { min-width: 0; }
}
@media (min-width: 1500px) {
  .bt-hcorpo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .bt-hcorpo > .bt-ana-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═════ v7 (05/12/2026): aba SINAIS ao lado do Histórico. Botão "Sinais" na faixa (abre direto na aba) e abas no topo da
   tela. Os sinais vêm do servidor (src/bac-sinais.js); a tela só mostra. No PC (>= 900px) 2 colunas, cada uma rolando. ═════ */
.bac-hist .bt-hbtns { grid-area: hist; display: flex; gap: 6px; align-items: center; }
.bac-hist .btn.bt-sin-btn { padding: 7px 14px; border-radius: 10px; font-size: 11.5px; letter-spacing: .08em; gap: 6px; }
.bt-sin-pt { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--primaria); box-shadow: 0 0 8px var(--primaria); flex: none; animation: btSinPulsa 1.2s ease-in-out infinite; }
.vivo > .bt-sin-pt { display: inline-block; }
@keyframes btSinPulsa { 50% { opacity: .35; } }
@media (max-width: 640px) { .bac-hist .btn.bt-sin-btn { padding: 6px 10px; font-size: 10.5px; } .bac-hist .bt-hbtns { gap: 5px; } }
@media (max-width: 400px) { .bac-hist .bt-som { padding: 6px 8px; font-size: 11px; } }

.bt-htela [hidden] { display: none !important; }
.bt-habas { flex: none; display: flex; gap: 6px; padding: 10px 20px 0; border-bottom: 1px solid var(--bt-borda); }
.bt-habas button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px 10px; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; border-radius: 12px 12px 0 0;
  background: none; color: var(--bt-suave); font: 800 12px var(--fonte); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.bt-habas button:hover { color: var(--texto, #eef5ee); }
.bt-habas button[aria-selected="true"] { color: var(--ouro2); background: rgba(0, 0, 0, .3); border-color: var(--bt-borda); box-shadow: inset 0 2px 0 var(--ouro2); }
.bt-habas button:focus-visible { outline: 2px solid var(--ouro2); outline-offset: -2px; }

.bt-scorpo { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 20px; scrollbar-width: thin; }
.bt-sin-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.bt-sin-col + .bt-sin-col { margin-top: 12px; }
.bt-sin-col .bt-ana-aviso { margin: 0; }
.bt-sin-msg { padding: 30px 10px; text-align: center; color: var(--bt-suave); font-size: 14px; }
.bt-sin-bloco { min-width: 0; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--bt-borda); }
.bt-sin-bloco h4 { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ouro2); }

/* sinal agora */
.bt-sin-agora { --c: var(--ouro2); position: relative; display: grid; gap: 8px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--c);
  background: radial-gradient(120% 90% at 50% 0, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), rgba(0, 0, 0, .35); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 22%, transparent); }
.bt-sin-agora.pl { --c: var(--pl); } .bt-sin-agora.bk { --c: var(--bk); }
.bt-sin-agora.espera { --c: var(--bt-borda2); box-shadow: none; }
.bt-sin-rot { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: var(--ouro2); }
.bt-sin-esp { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 24px; color: var(--bt-suave); }
.bt-sin-agora p { margin: 0; font-size: 12.5px; color: var(--bt-suave); }
.bt-sin-agora .bt-sin-entrar { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1.1; color: var(--texto, #eef5ee); }
.bt-sin-entrar b { display: inline-flex; align-items: center; gap: 4px; font-size: 34px; letter-spacing: -.01em; }
.bt-sin-entrar b.pl { color: var(--pl2); } .bt-sin-entrar b.bk { color: var(--bk2); }
.bt-sin-entrar .bt-ana-pt { width: 14px; height: 14px; box-shadow: 0 0 10px currentColor; }
.bt-sin-sub b { color: var(--texto, #eef5ee); }
.bt-sin-gales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.bt-sin-gales span { display: grid; justify-items: center; gap: 1px; padding: 8px 4px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--bt-borda);
  font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--bt-suave); }
.bt-sin-gales small { font-family: var(--fonte); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bt-sin-gales .agora { color: #fff; border-color: var(--c); background: color-mix(in srgb, var(--c) 28%, rgba(0, 0, 0, .35)); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 40%, transparent); }
.bt-sin-gales .foi { opacity: .55; text-decoration: line-through; }
.bt-sin-agora .bt-sin-tempo { min-height: 1.4em; font-size: 13px; color: var(--texto, #eef5ee); }
.bt-sin-tempo b { color: var(--primaria); font-size: 15px; }
.bt-sin-pad { display: grid; gap: 2px; padding: 9px 11px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--bt-borda); }
.bt-sin-pad small { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ouro2); }
.bt-sin-pad b { font-size: 13.5px; } .bt-sin-pad span { font-size: 11.5px; color: var(--bt-suave); }

/* placar */
.bt-sin-pl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bt-sin-pl span, .bt-sin-niv span { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--bt-borda); min-width: 0; }
.bt-sin-pl small, .bt-sin-niv small { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--bt-suave); }
.bt-sin-pl b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 26px; line-height: 1; }
.bt-sin-pl .ok b { color: var(--primaria); } .bt-sin-pl .mal b { color: var(--bk2); } .bt-sin-pl .pc b { color: var(--ouro2); }
.bt-sin-niv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.bt-sin-niv span { grid-template-columns: auto 1fr; align-items: center; padding: 6px 10px; }
.bt-sin-niv b { text-align: right; font-size: 16px; font-weight: 800; color: var(--primaria); }

/* últimos sinais */
.bt-sin-lista, .bt-sin-pds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bt-sin-li { display: grid; grid-template-columns: auto 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--bt-borda); font-size: 12px; }
.bt-sin-li .bt-bola { width: 24px; height: 24px; font-size: 11px; }
.bt-sin-hr { color: var(--bt-suave); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.bt-sin-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-sin-res { padding: 3px 8px; border-radius: 8px; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.bt-sin-res.green { color: #071300; background: var(--primaria); }
.bt-sin-res.red { color: #fff; background: var(--bk); }
.bt-sin-res.cancelado { color: var(--bt-suave); border: 1px solid var(--bt-borda2); }

/* padrões ativos */
.bt-sin-pd { display: grid; gap: 6px; padding: 9px 11px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--bt-borda); }
.bt-sin-pdt { display: grid; gap: 1px; min-width: 0; }
.bt-sin-pdt small { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ouro2); }
.bt-sin-pdt b { font-size: 12.5px; }
.bt-sin-pdn { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--bt-suave); }
.bt-sin-pdn b { color: var(--texto, #eef5ee); } .bt-sin-pdn .g2 b { color: var(--primaria); } .bt-sin-pdn .n { margin-left: auto; }
.bt-sin-barra { height: 5px; border-radius: 3px; background: #0f1a12; overflow: hidden; }
.bt-sin-barra i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ouro2), var(--primaria)); }

@media (max-width: 640px) {
  .bt-habas { padding: 8px 10px 0; }
  .bt-habas button { flex: 1; justify-content: center; padding: 9px 8px 10px; font-size: 11px; }
  .bt-scorpo { padding: 12px 10px calc(16px + env(safe-area-inset-bottom)); }
  .bt-sin-agora { padding: 14px; }
  .bt-sin-entrar b { font-size: 28px; }
  .bt-sin-pl b { font-size: 22px; }
}
@media (min-width: 768px) { .bt-habas { padding: 10px 28px 0; } .bt-scorpo { padding: 16px 28px 22px; } }
@media (min-width: 900px) {
  .bt-scorpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: 20px; overflow: hidden; }
  .bt-sin-col { min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 4px; scrollbar-width: thin; }
  .bt-sin-col + .bt-sin-col { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .bt-sin-pt { animation: none; } }

/* ═════ SELO DE SINAL NA MESA (05/12/2026): cartão compacto sobre a animação, abaixo da fala e acima do cronômetro ═════ */
.bt-selo { --sc: 255, 255, 255; position: absolute; z-index: 6; left: 50%; top: 54px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px); box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 5px 14px 5px 10px; margin: 0; border-radius: 12px; cursor: pointer; white-space: nowrap; color: #fff; font-family: var(--fonte);
  background: linear-gradient(180deg, rgba(var(--sc), .22), rgba(3, 10, 5, .84) 70%); border: 1px solid rgba(var(--sc), .75); box-shadow: 0 6px 18px rgba(0, 0, 0, .55), 0 0 16px rgba(var(--sc), .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: box-shadow .2s, transform .2s; animation: btSeloEntra .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.bt-selo[hidden] { display: none; }
.bt-selo:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .55), 0 0 22px rgba(var(--sc), .6); }
.bt-selo:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bt-selo.pl { --sc: 66, 120, 255; } .bt-selo.bk { --sc: 240, 62, 76; }
.bt-selo-lado { display: flex; align-items: baseline; gap: 6px; }
.bt-selo-lado small { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; color: rgba(255, 255, 255, .75); }
.bt-selo-lado b { font-size: 16px; font-weight: 900; letter-spacing: .04em; line-height: 1; color: rgb(var(--sc)); text-shadow: 0 0 10px rgba(var(--sc), .6); filter: brightness(1.35); }
.bt-selo-g { display: flex; gap: 3px; }
.bt-selo-g i { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px; color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.bt-selo-g i.agora { color: #fff; background: rgb(var(--sc)); border-color: #fff; box-shadow: 0 0 8px rgba(var(--sc), .8); }
.bt-selo-g i.foi { color: rgba(255, 255, 255, .4); text-decoration: line-through; border-color: rgba(255, 255, 255, .1); }
.bt-selo-t { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.bt-selo-t small { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .7); text-transform: uppercase; }
.bt-selo-t b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.bt-selo-t.urge b { color: #ffd45a; }
.bt-selo-nm { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .8); overflow: hidden; text-overflow: ellipsis; max-width: 150px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .22); }
/* resultado do sinal */
.bt-selo.fim { gap: 10px; padding: 5px 16px; }
.bt-selo.fim.green { --sc: 39, 217, 111; background: linear-gradient(180deg, rgba(39, 217, 111, .38), rgba(3, 20, 10, .9) 75%); animation: btSeloEntra .35s cubic-bezier(.2, 1.4, .4, 1) both, btSeloBrilho 1.2s ease-in-out 3; }
.bt-selo.fim.red { --sc: 255, 59, 71; background: linear-gradient(180deg, rgba(255, 59, 71, .38), rgba(24, 3, 5, .9) 75%); }
.bt-selo-res { display: flex; align-items: baseline; gap: 8px; }
.bt-selo-res b { font-size: 19px; font-weight: 900; font-style: italic; letter-spacing: .04em; line-height: 1; color: rgb(var(--sc)); filter: brightness(1.25); text-shadow: 0 0 12px rgba(var(--sc), .7); }
.bt-selo-res i { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 6px; color: #04140a; background: rgb(var(--sc)); }
/* sem sinal: discreto */
.bt-selo.idle { --sc: 255, 255, 255; padding: 3px 10px; gap: 0; background: rgba(3, 10, 5, .5); border-color: rgba(255, 255, 255, .16); box-shadow: none; cursor: pointer; }
.bt-selo-an { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: rgba(255, 255, 255, .62); }
.bt-selo-an i { width: 6px; height: 6px; border-radius: 50%; background: var(--primaria); animation: btSinPulsa 1.6s ease-in-out infinite; flex: none; }
/* câmera de cima (dados rolando / resultado): os dados ocupam o centro, então o selo vai para o canto livre da esquerda */
@media (min-width: 641px) {
  .bt-tela:has(.bt-cena[data-cam="top"]) .bt-selo { left: 16px; top: 74px; transform: none; flex-wrap: wrap; width: 168px; max-width: 168px; justify-content: flex-start; gap: 6px 10px; white-space: normal; animation: none; }
  .bt-tela:has(.bt-cena[data-cam="top"]) .bt-selo-nm { border: 0; padding: 0; max-width: 100%; flex: 1 1 100%; }
  .bt-tela:has(.bt-cena[data-cam="top"]) .bt-selo.idle { display: none; }
}
@keyframes btSeloEntra { from { opacity: 0; transform: translate(-50%, -8px) scale(.92); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes btSeloBrilho { 50% { box-shadow: 0 6px 18px rgba(0, 0, 0, .55), 0 0 30px rgba(var(--sc), .85); } }
@media (max-width: 640px) {
  .bt-selo { top: 100px; display: grid; grid-template-columns: auto auto; grid-template-areas: "lado t" "g nm"; justify-content: center; align-items: center; gap: 4px 12px; padding: 6px 12px; border-radius: 12px; }
  .bt-selo-lado { grid-area: lado; } .bt-selo-t { grid-area: t; justify-content: flex-end; } .bt-selo-g { grid-area: g; } .bt-selo-nm { grid-area: nm; border: 0; padding: 0; max-width: 120px; text-align: right; font-size: 10.5px; }
  .bt-selo-lado b { font-size: 15px; } .bt-selo-t b { font-size: 14px; }
  .bt-selo.fim { display: flex; } .bt-selo.idle { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .bt-selo, .bt-selo.fim.green { animation: none; } .bt-selo-an i { animation: none; } }
@media (max-width: 640px) {
  /* celular: com os dados em close não sobra espaço livre; o selo some e volta (já com GREEN/RED) quando a mesa volta ao plano aberto */
  .bt-selo { transition: opacity .25s; }
  .bt-tela:has(.bt-cena[data-cam="top"]) .bt-selo { opacity: 0; pointer-events: none; animation: none; }
}
