  /* ---------- Blackjack, 21 Showdown (showdown-21-1.md §5, frames 3 and 6): only what is this mode's own; the table wears Blackjack's and poker's classes (blackjack.css, poker.css), scoped here by #bj[data-mode="showdown"] ---------- */
  /* the top bar's pill: "21 Showdown" is longer than "Classic 21", so under 380 px it takes poker's long-pill size and the bar still holds the logo, the pill and both buttons */
  @media (max-width: 379px) { #bj[data-mode="showdown"] .gtop .pkpill.bjpill { font-size: 12px; padding: 0 7px; letter-spacing: -.01em; } }
  /* the hand's pill at the felt's top: "100,000 each · hand 6" (poker's hand pill, in the felt's flow, centred) */
  .bjsdpill { display: none; }
  #bj[data-mode="showdown"] .bjsdpill { display: block; flex: 0 0 auto; font: 13px/1.15 var(--lilita); letter-spacing: .02em; color: rgba(255,255,255,.82); background: rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.22); border-radius: 14px; padding: 4px 12px 5px; white-space: nowrap; }
  #bj[data-mode="showdown"] .bjsdpill:empty { visibility: hidden; }
  /* the other player's total: cream (yours stays yellow); 21! gold and BUST red as everywhere */
  #bj[data-mode="showdown"] .bjrow.dealer .bjtot:not(.gold):not(.bust) { background: #FFF4D6; color: var(--ink2); }
  /* 1ST: a small white pill beside the total of whoever's hand came first */
  .bjfirst { display: inline-grid; place-items: center; height: 24px; padding: 0 8px; border-radius: 999px; background: #fff; border: 3px solid var(--ink2); box-shadow: 0 2px 0 var(--ink2); color: var(--ink2); font: 14px/1 var(--lilita); letter-spacing: .04em; text-transform: uppercase; box-sizing: border-box; }
  .bjfirst[hidden] { display: none; }
  /* the next die's or card's slot, glowing while it comes */
  .sdslot { display: inline-block; flex: 0 0 auto; width: var(--pd); height: var(--pd); box-sizing: border-box; border: 3px dashed #FFF2A8; border-radius: 22%; background: rgba(255,242,168,.08); box-shadow: 0 0 10px 1px rgba(255,242,168,.45), inset 0 0 8px rgba(255,242,168,.25); animation: sdglow .9s ease-in-out infinite alternate; }
  .sdslot.card { width: var(--cw); height: calc(var(--cw) * 86 / 60); border-radius: calc(var(--cw) * .17); }
  #bj[data-mode="showdown"] .bjhand > .bjpend { opacity: 1; background: rgba(255,242,168,.08); border: 3px dashed #FFF2A8; box-shadow: 0 0 10px 1px rgba(255,242,168,.45), inset 0 0 8px rgba(255,242,168,.25); } /* (a die or a card landing: its slot glows under the tumbling dice, the die or the tile itself unseen until they're down) */
  #bj[data-mode="showdown"] .bjhand > .bjpend > * { opacity: 0; }
  @keyframes sdglow { from { box-shadow: 0 0 6px 0 rgba(255,242,168,.3), inset 0 0 6px rgba(255,242,168,.18); } to { box-shadow: 0 0 14px 3px rgba(255,242,168,.6), inset 0 0 10px rgba(255,242,168,.32); } }
  /* a hand's last item is down: its total flashes (1 → 1.2 → 1, a glow) */
  .bjtot.sdflash { animation: sdflash .4s ease-out; } body.fast .bjtot.sdflash { animation-duration: .2s; }
  @keyframes sdflash { 45% { transform: scale(1.2); box-shadow: 0 2px 0 var(--ink2), 0 0 14px 4px rgba(255,242,168,.9); } }
  @media (prefers-reduced-motion: reduce) { .bjtot.sdflash, .sdslot { animation: none; } }
  body.rm .bjtot.sdflash, body.rm .sdslot { animation: none; } /* (Reduce motion in Settings: the same) */
  /* How to play: the odds under the rules */
  .sdodds { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 12px; padding: 10px 14px; border: 3px dashed rgba(255,255,255,.35); border-radius: 18px; font: 15px/1.3 var(--lilita); color: #D6F2E0; }
  .sdodds div { display: flex; justify-content: space-between; gap: 12px; } .sdodds b { color: #FFD23F; font-weight: 400; }
  @media (min-width: 681px) { #bj[data-mode="showdown"] .bjfeltmid { gap: 6px; } } /* (no fit loop on a PC: the hand's pill takes its room out of the gaps, so two rows of cards still fit 1100×900) */
  @media (max-width: 680px) { .bjfirst { height: 22px; font-size: 13px; padding: 0 7px; } #bj[data-mode="showdown"] .bjsdpill { font-size: 12px; padding: 3px 10px 4px; } }
  .bjfelt.fit-1 .bjfirst { height: 20px; font-size: 12px; } .bjfelt.fit-2 .bjsdpill { font-size: 11px; padding: 2px 8px 3px; } .bjfelt.fit-3 .bjfirst { height: 18px; font-size: 11px; padding: 0 5px; }
