.legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.legend b.a { color: #38bdf8; }
.legend b.b { color: #4ade80; }
.legend b.d { color: #facc15; }

.bj-score {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.bj-score b { color: #fff; font-size: 1.05rem; }

.bj-mesa {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(160deg, #0f5420 0%, #146b28 45%, #1b7a32 100%);
  border: 1px solid var(--line);
  padding: 20px 16px;
  margin: 0 0 16px;
}
.bj-mesa.turno-ativo { box-shadow: inset 0 0 0 2px var(--accent); }

.bj-hand {
  margin: 0 0 18px;
  text-align: center;
}
.bj-hand:last-child { margin-bottom: 0; }
.bj-hand-title {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
  margin-bottom: 10px;
}
.bj-cartas {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-end;
  min-height: 110px;
}
.bj-total {
  margin-top: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: #facc15;
}
.bj-total.bust { color: #e10600; }
.bj-total.win { color: #4ade80; }

.bj-result {
  display: none;
  border: 1px solid var(--line);
  background: #000;
  padding: 14px;
  margin: 0 0 16px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bj-result.show { display: block; }
.bj-result.ganhou { box-shadow: inset 3px 0 0 #4ade80; }
.bj-result.perdeu, .bj-result.estourou { box-shadow: inset 3px 0 0 #e10600; }
.bj-result.empate { box-shadow: inset 3px 0 0 #facc15; }

.bj-acoes {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 16px;
}
