.bj-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act {
  height: 50px; border-radius: 9px; background: var(--panel-2); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: inset 0 -3px 0 #0003;
  transition: background .12s, transform .1s;
}
.act i { font-size: 18px; color: var(--blue-2); }
.act:hover:not(:disabled) { background: var(--line); }
.act:active:not(:disabled) { transform: translateY(2px); }

.table {
  position: relative; flex: 1; min-height: 480px; margin-top: 8px; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 26px 16px;
  background: radial-gradient(ellipse at 50% 40%, #16375f, #0c1d36 60%, #091426);
  box-shadow: inset 0 0 0 2px #ffffff0a, inset 0 0 80px #0008;
}
.felt-text { text-align: center; color: #ffffff2a; display: flex; flex-direction: column; gap: 4px; letter-spacing: .12em; font-size: 12px; font-weight: 700; }
.felt-text b { font-size: 16px; color: #ffffff38; letter-spacing: .18em; }

.shoe { position: absolute; right: 18px; top: 18px; width: 52px; height: 72px; }
.cb { position: absolute; inset: 0; border-radius: 7px; background: linear-gradient(135deg, #1f7bff, #0b3fa8); box-shadow: 0 2px 6px #0007; border: 2px solid #fff; }
.cb:nth-child(2) { transform: translate(-3px, 3px); } .cb:nth-child(3) { transform: translate(-6px, 6px); }

.hand-zone { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 150px; }
.hand-zone.player { flex-direction: row; gap: 44px; align-items: flex-end; }
.pz { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; transition: background .2s, box-shadow .2s; }
.pz.turn { background: #ffffff0a; box-shadow: 0 0 0 2px #1f7bff88; }
.hand { position: relative; display: flex; height: 132px; }
.card { width: 92px; height: 132px; perspective: 700px; margin-left: -54px; }
.card:first-child { margin-left: 0; }
.card-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s; }
.card.down .card-in { transform: rotateY(180deg); }
.card.deal { animation: deal .32s cubic-bezier(.2, .8, .3, 1); }
@keyframes deal { from { transform: translate(260px, -180px) rotate(20deg); opacity: 0; } }
.card.reveal .card-in { animation: reveal .45s; }
@keyframes reveal { from { transform: rotateY(180deg); } }
.front, .back { position: absolute; inset: 0; border-radius: 9px; backface-visibility: hidden; box-shadow: 0 6px 16px #0008; }
.front { background: linear-gradient(180deg, #fff, #eef2f8); color: #111827; padding: 7px 9px; }
.front.red { color: #e01e33; }
.cr { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.cs { display: block; font-size: 18px; line-height: 1; }
.cbig { position: absolute; right: 9px; bottom: 6px; font-size: 44px; line-height: 1; opacity: .92; }
.back {
  transform: rotateY(180deg); display: grid; place-items: center; border: 4px solid #fff;
  background: repeating-linear-gradient(45deg, #1f7bff 0 8px, #1667e8 8px 16px);
}
.back img { width: 54%; filter: drop-shadow(0 3px 4px #0007); }

.val {
  min-width: 46px; padding: 5px 12px; border-radius: 999px; text-align: center; font-weight: 800; font-size: 14px;
  background: var(--panel-2); box-shadow: 0 4px 12px #0007;
}
.val.bust { background: #e01e33; }
.val.bj { background: #22e07a; color: #04331b; }
.res {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); padding: 8px 16px; border-radius: 10px;
  font-weight: 800; font-size: 16px; white-space: nowrap; box-shadow: 0 8px 24px #000a; animation: popIn2 .3s cubic-bezier(.2, 1.6, .4, 1);
  background: var(--panel-2);
}
@keyframes popIn2 { from { transform: translate(-50%, -50%) scale(.5); opacity: 0; } }
.pz.win .res, .pz.bj .res { background: #22e07a; color: #04331b; }
.pz.lose .res { background: #e01e33; }
.pz.lose .hand { opacity: .6; }
.tag { position: absolute; top: -6px; right: -6px; padding: 3px 7px; border-radius: 999px; background: #ffb02e; color: #3a2200; font-size: 11px; font-weight: 800; }

@media (max-width: 640px) {
  .card { width: 70px; height: 100px; margin-left: -42px; }
  .hand { height: 100px; }
  .cbig { font-size: 32px; }
  .hand-zone.player { gap: 14px; }
  .table { min-height: 420px; padding: 18px 8px; }
  .shoe { display: none; }
}
