/* ---------- BACARÁ ---------- */

.th-bacara { position: relative; width: 84px; height: 66px; }
.th-bacara i {
  position: absolute; width: 40px; height: 56px; border-radius: 5px;
  background: linear-gradient(180deg, #F5F9EC, var(--papel) 60%, var(--papel-2));
  color: #14261B; font-style: normal; font-family: var(--f-mono); font-size: 13px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  box-shadow: 0 6px 14px rgba(0,0,0,.5);
}
.th-bacara i b { font-family: var(--f-display); font-size: 15px; }
.th-bacara i.verm { color: #B22036; }
.th-bacara .c1 { left: 6px; top: 8px; transform: rotate(-10deg); }
.th-bacara .c2 { left: 38px; top: 2px; transform: rotate(8deg); }
.card-jogo:hover .th-bacara .c1 { animation: thBcA 1.2s ease-in-out infinite alternate; }
.card-jogo:hover .th-bacara .c2 { animation: thBcB 1.2s ease-in-out infinite alternate; }
@keyframes thBcA { to { transform: rotate(-16deg) translateX(-4px); } }
@keyframes thBcB { to { transform: rotate(14deg) translateX(4px); } }

.palco-bacara { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.bc-mesa {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px;
  padding: 18px 6px 10px;
  border-radius: var(--raio-g);
  background: radial-gradient(120% 90% at 50% 0%, #10281A, #0A150E 70%);
  border: 1px solid var(--risco);
  min-height: 210px;
}
.bc-mao { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.bc-rotulo { font-family: var(--f-mono); font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--texto-2); }
.bc-mao.venceu .bc-rotulo { color: var(--led); }
.bc-mao.perdeu { opacity: .55; }
.bc-cartas { display: flex; gap: 6px; min-height: 84px; perspective: 700px; }
.bc-pontos { font-family: var(--f-digito); font-weight: 900; font-size: 34px; line-height: 1; color: var(--texto); }
.bc-mao.venceu .bc-pontos { color: var(--led); text-shadow: 0 0 16px rgba(82,255,160,.6); }
.bc-vs { align-self: center; font-family: var(--f-display); font-size: 12px; letter-spacing: 2px; color: var(--tarja); min-width: 60px; text-align: center; padding-top: 34px; }

.bc-carta { position: relative; width: 56px; height: 80px; transform-style: preserve-3d; transition: transform .32s cubic-bezier(.3,.9,.4,1.05); }
.bc-carta.virada { transform: rotateY(180deg) translateY(-6px); }
.bc-face, .bc-verso {
  position: absolute; inset: 0; border-radius: 6px; backface-visibility: hidden;
  border: 1px solid rgba(0,0,0,.35);
  box-shadow: 0 6px 14px rgba(0,0,0,.5);
}
.bc-face {
  background: linear-gradient(180deg, #F5F9EC, var(--papel) 60%, var(--papel-2));
  color: #14261B;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.bc-face b { font-family: var(--f-display); font-size: 22px; line-height: 1; }
.bc-face i { font-style: normal; font-size: 18px; line-height: 1; }
.bc-carta.verm .bc-face { color: #B22036; }
.bc-verso {
  transform: rotateY(180deg);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M6 2h2v4h4v2H8v4H6V8H2V6h4z' fill='%2352FFA0' fill-opacity='0.35'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #16301F, #0E2013);
  border-color: var(--risco-2);
}

.bc-lados .mini-btn { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; }
.bc-lados .mini-btn span { font-size: 9.5px; opacity: .7; font-weight: 400; }

@media (max-width: 760px) {
  .bc-carta { width: 46px; height: 66px; }
  .bc-face b { font-size: 18px; }
  .bc-vs { min-width: 40px; font-size: 10px; }
}
