.bj-game {
  --bj-brass: #d6bb82;
  --bj-paper: #fbf4e6;
  --bj-black: #233637;
  font-family: inherit;
  color: var(--bj-paper);
  width: 100%;
  min-width: 0;
}
.bj-felt {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(14px, 3.2vw, 26px);
  border: 1px solid #a58c5e;
  border-radius: 18px 18px 32px 32px;
  background:
    radial-gradient(ellipse at 50% 3%, #41716655, transparent 68%),
    repeating-linear-gradient(35deg, #ffffff04 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-35deg, #00151424 0 1px, transparent 1px 3px),
    linear-gradient(142deg, #174c48, #123d3b 62%, #112e30);
  box-shadow: inset 0 0 24px #041e2190, 0 9px 20px #050b1030;
}
.bj-felt::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 4px;
  border: 1px solid #cfb4784d;
  border-radius: 14px 14px 28px 28px;
  pointer-events: none;
}
.bj-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 650;
  color: #fff6e5;
  line-height: 1.35;
  font-size: 1rem;
}
.bj-label small {
  font-size: .75rem;
  font-weight: 500;
  color: #e4d9bd;
  letter-spacing: .025em;
}
.bj-label strong {
  margin-inline-start: auto;
  color: #fff5dc;
  text-align: end;
  font: 600 1.25rem/1.1 Georgia, serif;
  font-variant-numeric: tabular-nums;
}
.bj-players { display: grid; gap: .9rem; }
.bj-seat { min-width: 0; }
.bj-seat + .bj-seat { padding-top: .65rem; border-top: 1px solid #e5cd8b40; }
.bj-active .bj-label small { color: #f6d58b; }
.bj-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, .85vw, 7px);
  padding: .5rem 0 .1rem;
  min-width: 0;
}
.bj-card {
  width: clamp(46px, 12.3vw, 65px);
  aspect-ratio: .69;
  display: inline-block;
  flex: 0 0 auto;
  border: 1px solid #d9d3c5;
  border-radius: 6px;
  position: relative;
  color: var(--bj-black);
  background: linear-gradient(145deg, #fffdf5 19%, #faf4e7 86%, #eee4d1);
  box-shadow: 0 3px 5px #061b1bb3, inset 0 0 0 1px #ffffff99;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  line-height: 1;
  user-select: none;
}
.bj-card i { font-style: normal; }
.bj-red { color: #a1324a; }
.bj-ink { position: absolute; inset: 0; }
.bj-corner {
  position: absolute;
  left: 4%;
  top: 4%;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 21%;
  line-height: .93;
  font-size: clamp(12px, 3.1vw, 16px);
  font-weight: bold;
  z-index: 1;
}
.bj-corner i { font-size: .7em; margin-top: .09em; }
.bj-corner.bj-bottom { inset: auto 4% 4% auto; transform: rotate(180deg); }
.bj-pips {
  position: absolute;
  inset: 13% 24%;
  display: grid;
  grid-template: repeat(7, 1fr) / repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  font-size: clamp(9px, 2.1vw, 14px);
}
.bj-pips i { line-height: .72; }
.bj-inverted { transform: rotate(180deg); }
.bj-ace, .bj-royal {
  position: absolute;
  inset: 20% 18%;
  display: grid;
  place-items: center;
}
.bj-ace { font-size: clamp(23px, 7vw, 38px); }
.bj-royal {
  border: 1px solid #b8a27490;
  border-radius: 44% 44% 40% 40%;
  inset: 17% 23%;
  align-content: center;
}
.bj-royal i { font-size: clamp(17px, 5vw, 28px); line-height: .94; }
.bj-royal b { font-size: .68rem; }
.bj-back {
  background:
    repeating-linear-gradient(45deg, transparent 0 4px, #d9b47c65 4px 5px, transparent 5px 9px),
    repeating-linear-gradient(-45deg, transparent 0 4px, #d9b47c65 4px 5px, transparent 5px 9px),
    #633544;
  border: 2px solid #f0e2cc;
  box-shadow: inset 0 0 0 2px #663741, inset 0 0 0 3px #c6ac85, 0 3px 5px #061b1bb3;
}
.bj-back > i {
  position: absolute;
  inset: 29% 20%;
  display: grid;
  place-items: center;
  background: #623341;
  border: 1px solid #caac74;
  outline: 2px solid #623341;
  border-radius: 50%;
  color: #f1d498;
  font: 1rem/1 Georgia, serif;
}
.bj-table-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin: .85rem auto;
  color: #d7c896;
  font: .75rem/1.2 Georgia, serif;
  letter-spacing: .13em;
}
.bj-table-rule::before, .bj-table-rule::after {
  content: '';
  width: clamp(10px, 7%, 52px);
  border-top: 1px solid #b8a67487;
}
.bj-wager {
  text-align: center;
  color: #e1d8bd;
  font-size: .75rem;
  margin-top: .35rem;
}
.bj-voice {
  margin: .65rem .1rem;
  color: #f5ead8;
  font-size: .94rem;
  line-height: 1.55;
}
.bj-voice span { color: #e5c486; margin-inline-end: .4em; font-size: .85rem; }
.bj-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.bj-game .bj-choice {
  appearance: none;
  min-height: 46px;
  display: grid;
  place-content: center;
  gap: .12rem;
  margin: 0;
  padding: .45rem .35rem;
  border-radius: 8px;
  border: 1px solid #95825e;
  background: linear-gradient(#27393f, #18292e);
  color: #f6e7c8;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.bj-choice b { font-size: 1rem; }
.bj-choice span { font-size: .75rem; font-weight: 500; }
.bj-game .bj-primary {
  background: linear-gradient(145deg, #f8e8c4, #ddbd88);
  border-color: #ecd2a3;
  color: #332623;
}
.bj-game .bj-choice:disabled { opacity: .58; cursor: default; }
.bj-choice:active:not(:disabled) { transform: translateY(1px); }
.bj-choice:focus-visible { outline: 3px solid #b2f7ed; outline-offset: 3px; }
@media (hover: hover) { .bj-choice:hover:not(:disabled) { filter: brightness(1.09); } }
@media (min-width: 620px) {
  .bj-choices:has(:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bj-choices:has(:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bj-players:has(.bj-seat + .bj-seat) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bj-seat + .bj-seat { border-top: 0; border-inline-start: 1px solid #e5cd8b40; padding: 0 0 0 .9rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .bj-deal { animation: bj-deal .32s cubic-bezier(.18,.75,.28,1) backwards; }
  .bj-deal:nth-child(2) { animation-delay: .06s; }
  .bj-deal:nth-child(3) { animation-delay: .12s; }
  .bj-turn { animation: bj-turn .36s ease-out backwards; }
  @keyframes bj-deal {
    from { opacity: 0; transform: translate(18px,-8px) rotate(5deg); }
    to { opacity: 1; transform: none; }
  }
  @keyframes bj-turn {
    0% { filter: brightness(.75); transform: perspective(250px) rotateY(87deg); }
    100% { filter: none; transform: none; }
  }
}
