/* ---------- VINTE E UM (blackjack) ---------- */

.th-bj { position: relative; width: 96px; height: 70px; }
.th-bj i {
  position: absolute; top: 4px; width: 40px; height: 56px; border-radius: 5px;
  background: linear-gradient(180deg, #F7FAEE, var(--papel) 60%, var(--papel-2));
  font-family: var(--f-display); font-style: normal; font-size: 15px; line-height: 1;
  color: #14261B; padding: 5px 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,.45);
}
.th-bj i b { display: block; font-size: 12px; font-family: var(--f-corpo); margin-top: 2px; }
.th-bj i.verm { color: #B22036; }
.th-bj i:nth-child(1) { left: 4px; transform: rotate(-12deg); }
.th-bj i:nth-child(2) { left: 30px; transform: rotate(8deg); }
.th-bj span {
  position: absolute; right: -2px; bottom: -4px;
  font-family: var(--f-digito); font-weight: 900; font-size: 28px; line-height: 1;
  color: var(--led); text-shadow: 0 0 12px rgba(82,255,160,.6);
}
.card-jogo:hover .th-bj i:nth-child(2) { animation: thBjVira 1.1s ease-in-out infinite alternate; }
@keyframes thBjVira { to { transform: rotate(16deg) translateY(-5px); } }

.palco-bj { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.bj-lado { display: flex; align-items: center; gap: 14px; min-height: 100px; }
.bj-cartas { display: flex; gap: 8px; flex-wrap: wrap; min-height: 92px; }
.bj-total { font-family: var(--f-digito); font-weight: 900; font-size: 24px; line-height: 1; color: var(--texto-2); min-width: 34px; }
.bj-balcao {
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--risco-2) 18%, var(--risco-2) 82%, transparent);
  box-shadow: 0 8px 22px rgba(82,255,160,.07);
}
.bj-maos { display: flex; gap: 20px; flex-wrap: wrap; min-height: 116px; align-items: flex-start; }
.bj-mao {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid transparent;
}
.bj-mao.ativa { border-color: var(--risco-2); background: rgba(82,255,160,.05); box-shadow: inset 0 0 0 1px rgba(82,255,160,.12); }
.bj-mao.ativa .bj-total { color: var(--led); }
.bj-mao.estourou .bj-total, .bj-mao.perdeu .bj-total { color: var(--tarja); }
.bj-mao.ganhou .bj-total { color: var(--led); text-shadow: 0 0 10px rgba(82,255,160,.5); }
.bj-selo {
  position: absolute; top: -10px; right: 8px;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .6px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--vitrine-2); border: 1px solid var(--risco-2); color: var(--texto-2);
}
.bj-selo.ganhou { color: var(--led); border-color: rgba(82,255,160,.5); }
.bj-selo.perdeu { color: var(--tarja); border-color: rgba(255,61,85,.45); }
.bj-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 440px; }
.bj-acoes .btn { padding: 13px 10px; font-size: 15px; }

/* cartela de comprimido: papel térmico, tinta, picote */
.bj-carta {
  position: relative; flex: none;
  width: 66px; height: 92px; border-radius: 7px;
  background: linear-gradient(180deg, #F7FAEE, var(--papel) 58%, var(--papel-2));
  color: var(--papel-tinta);
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 1px 0 #fff;
  outline: 1px dashed rgba(20,38,27,.16); outline-offset: -6px;
  font-family: var(--f-display);
  transform-style: preserve-3d;
}
.bj-carta.verm { color: #B22036; }
.bj-canto { position: absolute; top: 6px; left: 7px; font-size: 15px; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.bj-canto i { font-style: normal; font-size: 12px; font-family: var(--f-corpo); }
.bj-canto.inv { top: auto; left: auto; bottom: 6px; right: 7px; transform: rotate(180deg); }
.bj-naipe { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; font-family: var(--f-corpo); }
.bj-carta.virada {
  background: #0C1810 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M9 3h4v6h6v4h-6v6H9v-6H3V9h6z' fill='%2352FFA0' fill-opacity='.32'/%3E%3C/svg%3E") center / 22px 22px repeat;
  border: 3px solid var(--papel-2); outline: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 0 0 1px var(--risco-2);
}
.bj-carta.entra { animation: bjEntra .38s cubic-bezier(.2,.9,.3,1.08) backwards; }
@keyframes bjEntra { from { opacity: 0; transform: translateY(-22px) rotateY(75deg); } }
.bj-carta.vira { animation: bjVira .48s ease-out; }
@keyframes bjVira { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0deg); } }

@media (max-width: 480px) {
  .bj-carta { width: 54px; height: 76px; }
  .bj-naipe { font-size: 24px; }
  .bj-canto { font-size: 13px; }
  .bj-maos { gap: 10px; }
}
