/* ---- The baccarat table ---- */
/* A baccarat table seen from above: a dark wooden rail round deep green felt.
   At the head the house, with the road (the bead plate of the last results)
   beside it; then the two boxes the cards land in, Player and Banker; then
   the betting layout printed in gold; then the five seats along the rail. My
   own chips and buttons are under the table. Everything here lives inside
   #baccarat. The felt, the gold and the wood are the same whatever look the
   rest of the page has. */
#baccarat {
  max-width: 820px; margin: 0 auto;
  --bc-gold: #e8c877; --bc-line: rgba(232, 200, 119, 0.8); --bc-blue: #2a63c4; --bc-red: #a8201a; --bc-green: #1c8a4a;
  --bc-serif: Georgia, 'Times New Roman', serif;
  --bc-cw: 34px; --bc-ch: 48px; /* a card on the table */
  --bc-bead: 15px; /* a disc on the road */
}
#baccarat *, #baccarat *::before, #baccarat *::after { box-sizing: border-box; }
#baccarat #bc-title { text-align: center; font-weight: 700; font-size: 0.9rem; padding: 0 48px; min-height: 1.3em; margin-bottom: 6px; }

/* The rail and the felt */
#baccarat #bc-rail {
  padding: 10px; border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0.35)),
    linear-gradient(90deg, #3d2415, #5e3a22 22%, #6e4428 50%, #5e3a22 78%, #3d2415);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.18);
}
#baccarat #bc-felt {
  position: relative; border-radius: 18px; padding: 10px 10px 12px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%),
    radial-gradient(ellipse at 50% 30%, #1d7147, #135336 60%, #0a3622);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35), inset 0 6px 26px rgba(0, 0, 0, 0.45);
  color: #f4f1e6;
}

/* The head of the table: the house, and beside it the road */
#baccarat #bc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#baccarat #bc-house { position: relative; flex: 1 1 0; min-width: 0; text-align: center; }
#baccarat .bc-who { font-weight: 700; font-family: var(--bc-serif); color: var(--bc-gold); font-size: 0.95rem; }
#baccarat .bc-badge { display: inline-block; font: 800 0.6rem system-ui, sans-serif; color: #1b1b1b; background: var(--bc-gold); border-radius: 999px; padding: 1px 6px; margin-left: 5px; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle; }
#baccarat .bc-badge[hidden] { display: none; }
#baccarat .bc-note { font-size: 0.74rem; color: rgba(255, 255, 255, 0.72); min-height: 1.2em; font-variant-numeric: tabular-nums; font-weight: 700; }
#baccarat #bc-shoe { font-weight: 500; font-size: 0.68rem; color: rgba(255, 255, 255, 0.55); }
#baccarat #bc-notice { text-align: center; font-size: 0.8rem; color: var(--bc-gold); margin: 6px 6px 0; }
#baccarat #bc-notice:empty { display: none; }

/* The road: a bead plate six deep, filled column by column */
#baccarat #bc-road-box { flex: none; }
#baccarat #bc-road {
  display: grid; grid-template-rows: repeat(6, var(--bc-bead)); grid-auto-flow: column; grid-auto-columns: var(--bc-bead); gap: 2px;
  padding: 4px; border-radius: 7px; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 1px rgba(232, 200, 119, 0.45);
}
#baccarat .bc-bead {
  position: relative; display: grid; place-items: center; border-radius: 50%;
  font: 700 calc(var(--bc-bead) * 0.56) / 1 var(--bc-serif); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
#baccarat .bc-bead.bc-r-player { background: var(--bc-blue); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
#baccarat .bc-bead.bc-r-banker { background: var(--bc-red); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
#baccarat .bc-bead.bc-r-tie { background: var(--bc-green); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
#baccarat .bc-bead.bc-bead-new { box-shadow: 0 0 0 2px var(--bc-gold), 0 0 8px 2px rgba(255, 233, 168, 0.8); }
/* A pair: a small dot on the disc, the Banker's at the top left, the Player's at the bottom right */
#baccarat .bc-mark { position: absolute; width: 36%; height: 36%; border-radius: 50%; box-shadow: 0 0 0 1px #fff; }
#baccarat .bc-mark-b { left: -1px; top: -1px; background: var(--bc-red); }
#baccarat .bc-mark-p { right: -1px; bottom: -1px; background: var(--bc-blue); }
#baccarat #bc-tally { margin-top: 4px; text-align: center; font-size: 0.68rem; color: rgba(255, 255, 255, 0.8); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The middle of the table: the two boxes the cards land in */
#baccarat #bc-hands { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
#baccarat .bc-box {
  min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 5px 4px 4px;
  border-radius: 12px; border: 2px solid rgba(232, 200, 119, 0.55); background: rgba(0, 0, 0, 0.14);
  transition: opacity 0.3s, box-shadow 0.3s, background 0.3s;
}
#baccarat .bc-box-name { font: 700 0.86rem var(--bc-serif); letter-spacing: 0.24em; text-indent: 0.24em; text-transform: uppercase; color: var(--bc-gold); }
#baccarat .bc-cards { display: flex; justify-content: center; align-items: center; gap: 4px; min-height: calc(var(--bc-ch) + 8px); margin: 3px 0 1px; }
#baccarat .bc-cards .card {
  flex: none; width: var(--bc-cw); height: var(--bc-ch); border-radius: 5px;
  font-size: calc(var(--bc-cw) * 0.45); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
#baccarat .bc-cards .card .suit { font-size: calc(var(--bc-cw) * 0.47); }
/* A third card is laid sideways, on the outside of the box */
#baccarat .bc-cards .card.bc-third { rotate: 90deg; margin: 0 calc((var(--bc-ch) - var(--bc-cw)) / 2 + 1px); }
#baccarat #bc-cards-player .card.bc-third { order: -1; }
/* A card being dealt: it comes from the shoe, at the head of the table */
#baccarat .bc-cards .card.bc-new { animation: bc-deal 0.32s ease-out; }
@keyframes bc-deal { from { opacity: 0; translate: 0 -54px; scale: 0.9; } }
#baccarat .bc-box-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 8px; min-height: 2.1rem; }
#baccarat .bc-total { font: 700 1.9rem / 1 var(--bc-serif); font-variant-numeric: lining-nums; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
#baccarat .bc-tag { font: 800 0.6rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.05em; color: #1b1b1b; background: var(--bc-gold); border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
#baccarat .bc-tag[hidden] { display: none; }
#baccarat .bc-box.bc-live { border-color: var(--bc-line); }
/* The winning side glows gold when the round is settled; the other fades a little */
#baccarat .bc-box.bc-win {
  border-color: #ffe9a8; background: rgba(232, 200, 119, 0.16);
  box-shadow: 0 0 0 2px var(--bc-gold), 0 0 22px 6px rgba(255, 233, 168, 0.6); animation: bc-glow 0.7s ease-in-out infinite alternate;
}
#baccarat .bc-box.bc-win .bc-total { color: #ffe9a8; }
#baccarat .bc-box.bc-tied { border-color: var(--bc-gold); box-shadow: 0 0 12px 2px rgba(255, 233, 168, 0.35); }
#baccarat .bc-box.bc-lose { opacity: 0.62; }
@keyframes bc-glow { to { box-shadow: 0 0 0 3px var(--bc-gold), 0 0 30px 10px rgba(255, 233, 168, 0.85); } }

/* What the dealer says, and the countdown */
#baccarat #bc-call { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; margin: 6px 0; font: 700 1rem var(--bc-serif); color: var(--bc-gold); letter-spacing: 0.04em; text-align: center; }
#baccarat #bc-call .bc-called { font-size: 1.12rem; color: #ffe9a8; text-shadow: 0 0 12px rgba(255, 233, 168, 0.55); animation: bc-pop 0.35s ease-out; }
#baccarat #bc-clock { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--bc-gold); background: rgba(0, 0, 0, 0.3); color: #fff; font: 700 1rem var(--bc-serif); font-variant-numeric: tabular-nums lining-nums; }
#baccarat #bc-clock[hidden] { display: none; }
#baccarat #bc-clock.bc-low { background: var(--bc-red); border-color: #ffb4a9; }
@keyframes bc-pop { from { opacity: 0; scale: 0.6; } }

/* The betting layout: the two pairs and the tie along the top, Player and
   Banker below, each under its own box of cards. */
#baccarat #bc-layout {
  display: grid; grid-template-columns: repeat(6, 1fr); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 2px var(--bc-line); user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
#baccarat .bc-area {
  grid-column: span 2; min-width: 0; min-height: 68px; padding: 6px 2px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center;
  box-shadow: inset 0 0 0 1px var(--bc-line); background: rgba(0, 0, 0, 0.1);
  -webkit-tap-highlight-color: transparent; outline: none;
}
#baccarat .bc-a-player, #baccarat .bc-a-banker { grid-column: span 3; min-height: 84px; }
#baccarat .bc-a-player { background: linear-gradient(180deg, rgba(42, 99, 196, 0.2), rgba(42, 99, 196, 0.06)); }
#baccarat .bc-a-banker { background: linear-gradient(180deg, rgba(168, 32, 26, 0.24), rgba(168, 32, 26, 0.07)); }
#baccarat .bc-a-tie { background: rgba(0, 0, 0, 0.22); }
#baccarat .bc-area-name { font: 700 0.72rem / 1.15 var(--bc-serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bc-gold); }
#baccarat .bc-a-player .bc-area-name, #baccarat .bc-a-banker .bc-area-name { font-size: 1.1rem; letter-spacing: 0.2em; text-indent: 0.2em; }
#baccarat .bc-a-tie .bc-area-name { font-size: 1rem; letter-spacing: 0.2em; text-indent: 0.2em; }
#baccarat .bc-area-pays { font: italic 0.66rem var(--bc-serif); color: rgba(255, 255, 255, 0.78); }
#baccarat .bc-on { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 5px; min-height: 30px; padding: 3px 2px 0; pointer-events: none; }
#baccarat #bc-layout.bc-open .bc-area { cursor: pointer; }
#baccarat #bc-layout.bc-open .bc-area:active { filter: brightness(1.35); }
#baccarat .bc-area:focus-visible { box-shadow: inset 0 0 0 1px var(--bc-line), inset 0 0 0 3px #fff; }
@media (hover: hover) {
  #baccarat #bc-layout.bc-open .bc-area:hover { filter: brightness(1.3); }
}
/* The areas that won, while the result is on the table */
#baccarat .bc-area.bc-hit { box-shadow: inset 0 0 0 1px var(--bc-line), inset 0 0 0 3px #ffe9a8, inset 0 0 24px 4px rgba(255, 233, 168, 0.5); animation: bc-hit 0.6s ease-in-out infinite alternate; }
@keyframes bc-hit { to { filter: brightness(1.3); } }

/* A player's chips on an area: a chip seen from above with the amount on it, ringed in the player's colour */
#baccarat .bc-p0 { --bc-seat: #4fc3f7; }
#baccarat .bc-p1 { --bc-seat: #ff9a62; }
#baccarat .bc-p2 { --bc-seat: #d7a3e6; }
#baccarat .bc-p3 { --bc-seat: #b4e06a; }
#baccarat .bc-p4 { --bc-seat: #fff176; }
#baccarat .bc-c100 { --chip: #1b1b1d; --chip-edge: #000; }
#baccarat .bc-c500 { --chip: #6d3fa0; --chip-edge: #4a2a70; }
#baccarat .bc-c1000 { --chip: #d39a1c; --chip-edge: #94690c; }
#baccarat .bc-c5000 { --chip: #c9302c; --chip-edge: #8a1f1c; }
#baccarat .bc-stack {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, var(--chip) 0 52%, rgba(255, 255, 255, 0.9) 53% 60%, var(--chip) 61% 100%);
  border: 2px dashed rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px var(--bc-seat), 0 3px 0 1px var(--chip-edge), 0 5px 6px rgba(0, 0, 0, 0.55);
}
#baccarat .bc-stack-amt { font: 800 0.56rem system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000, 0 0 3px #000; letter-spacing: -0.02em; }
/* After the round: the bets that won light up, the ones that lost fade, the ones returned stay as they are */
#baccarat .bc-stack.bc-won { animation: bc-won 0.5s ease-in-out infinite alternate; }
#baccarat .bc-stack.bc-lost { opacity: 0.3; filter: grayscale(0.8); }
@keyframes bc-won { to { scale: 1.25; box-shadow: 0 0 0 2px var(--bc-seat), 0 0 0 4px #fff, 0 0 16px 6px rgba(255, 233, 168, 0.95); } }

/* The seats along the rail: picture, name, chips */
#baccarat #bc-seats { display: flex; justify-content: center; align-items: flex-start; gap: 3px; margin-top: 12px; }
#baccarat .bc-seat { position: relative; flex: 1 1 0; min-width: 0; max-width: 170px; display: flex; flex-direction: column; align-items: center; text-align: center; }
#baccarat .bc-seat.bc-gone { opacity: 0.6; }
#baccarat .bc-seat.bc-vacant { cursor: pointer; }
#baccarat .bc-plate {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; min-width: 0;
  padding: 3px 4px 4px; border-radius: 9px; background: rgba(0, 0, 0, 0.42); border: 1px solid rgba(255, 255, 255, 0.12); border-top: 3px solid var(--bc-seat);
}
#baccarat .bc-seat.bc-me .bc-plate { background: rgba(0, 0, 0, 0.62); border-color: var(--bc-seat); }
#baccarat .bc-seat.bc-banker .bc-plate { box-shadow: 0 0 0 2px var(--bc-gold); }
#baccarat .bc-seat.bc-empty .bc-plate { background: none; border-color: transparent; border-top-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.6); }
#baccarat .bc-seat.bc-empty .bc-foot, #baccarat .bc-seat.bc-empty .bc-cam { display: none; }
#baccarat .bc-seat.bc-empty .bc-name { white-space: normal; font-weight: 600; font-size: 0.72rem; }
#baccarat .bc-seat.bc-vacant .bc-name { text-decoration: underline; color: #fff; }
/* Camera pictures are round. */
#baccarat .bc-cam { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #000; box-shadow: 0 0 0 2px var(--bc-seat); flex: none; }
#baccarat .bc-cam.blank { display: none; }
#baccarat .bc-name { max-width: 100%; font-weight: 700; font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#baccarat .bc-name .bc-badge { display: block; margin: 1px auto 0; width: max-content; }
#baccarat .bc-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bc-seat); margin-right: 4px; }
#baccarat .bc-stackline { max-width: 100%; font-size: 0.68rem; color: var(--bc-gold); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#baccarat .bc-given { font-size: 0.62rem; color: rgba(255, 255, 255, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Up or down since sitting down */
#baccarat .bc-net { font-size: 0.68rem; font-weight: 800; color: rgba(255, 255, 255, 0.75); white-space: nowrap; font-variant-numeric: tabular-nums; }
#baccarat .bc-net-up { color: #8fe0ad !important; }
#baccarat .bc-net-down { color: #ffb4a9 !important; }
#baccarat .bc-foot { font-size: 0.66rem; min-height: 1.25em; margin-top: 2px; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
#baccarat .bc-foot.bc-placed { color: var(--bc-gold); font-weight: 700; }
#baccarat .bc-foot.bc-up-chips { color: #8fe0ad; font-weight: 800; }
#baccarat .bc-foot.bc-down-chips { color: #ffb4a9; font-weight: 800; }

/* Speech bubbles: the house's under its name, a player's above the seat */
#baccarat .bc-bubble {
  position: absolute; z-index: 8; left: 50%; transform: translateX(-50%); top: calc(100% + 6px);
  width: max-content; max-width: min(300px, 80vw); padding: 7px 11px; text-align: center;
  background: #fdfdfd; color: #161616; border-radius: 12px; font: 600 0.88rem/1.25 system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); pointer-events: none;
}
#baccarat .bc-bubble[hidden] { display: none; }
#baccarat .bc-bubble::after { content: ''; position: absolute; left: 50%; margin-left: -6px; top: -12px; border: 6px solid transparent; border-bottom-color: #fdfdfd; }
#baccarat .bc-bubble.bc-up { top: auto; bottom: calc(100% + 4px); max-width: 190px; }
#baccarat .bc-bubble.bc-up::after { top: auto; bottom: -12px; border-bottom-color: transparent; border-top-color: #fdfdfd; }
#baccarat .bc-bubble.bc-pop { animation: bc-pop 0.22s ease-out; }

/* Under the table: what is going on, the limits, and my chips and buttons */
#baccarat #bc-status { text-align: center; font-weight: 700; min-height: 1.5em; margin: 12px 0 2px; font-variant-numeric: tabular-nums; }
#baccarat #bc-limits { margin: 0; text-align: center; }
#baccarat #bc-error { text-align: center; min-height: 1.2em; margin: 2px 0 0; }
#baccarat #bc-mine { margin: 6px 0 0; text-align: center; min-height: 1.2em; font-variant-numeric: tabular-nums; }
#baccarat #bc-chips { justify-content: center; gap: 16px; }
#baccarat #bc-chips .bc-chip {
  flex: none; width: 62px; height: 62px; min-height: 0; padding: 0; border-radius: 50%;
  font-weight: 800; font-size: 0.84rem; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000;
  background: radial-gradient(circle, var(--chip) 0 52%, rgba(255, 255, 255, 0.92) 53% 57%, var(--chip) 58% 100%);
  border: 5px dashed rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 0 -1px var(--chip-edge), 0 7px 10px rgba(0, 0, 0, 0.5);
  transition: translate 0.12s, box-shadow 0.12s;
}
/* The chip I am betting with stands a little higher, with a bright ring */
#baccarat #bc-chips .bc-chip.bc-on-chip { translate: 0 -5px; box-shadow: 0 0 0 3px var(--accent), 0 6px 0 2px var(--chip-edge), 0 12px 14px rgba(0, 0, 0, 0.55); }
#baccarat #bc-chips .bc-chip:disabled { opacity: 0.4; }
#baccarat #bc-bet-box .row > button { padding: 0 4px; }
#baccarat #bc-house-box { margin-top: 10px; }
#baccarat #bc-house-text { margin-top: 6px; }
#baccarat #bc-leave { margin-top: 6px; }
/* The house's own settings: how big the bets may be, and chips for the players */
#baccarat #bc-max-box, #baccarat #bc-give-box { margin-top: 8px; }
#baccarat #bc-max-box p, #baccarat #bc-give-box p { margin: 0 0 4px; text-align: center; }
#baccarat #bc-max-box #bc-max-text { margin: 4px 0 0; }
#baccarat #bc-max, #baccarat #bc-give { flex-wrap: wrap; justify-content: center; }
#baccarat #bc-max button { flex: 1 1 70px; min-height: 40px; padding: 0 6px; }
#baccarat #bc-max button.picked { background: var(--t15); color: #1b1b1b; border-color: var(--t15); }
#baccarat #bc-give button { flex: 1 1 150px; min-height: 44px; }
#baccarat #bc-give-amount { justify-content: center; align-items: center; gap: 12px; margin-bottom: 6px; }
#baccarat #bc-give-amount button { flex: none; width: 48px; min-height: 44px; padding: 0; font-size: 1.3rem; font-weight: 800; }
#baccarat #bc-give-now { min-width: 90px; text-align: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; color: var(--t15); }

@media (max-width: 699px) {
  #baccarat { padding-top: 46px; } /* room for the row of round buttons along the top */
  #baccarat #bc-title { padding: 0; }
  #baccarat #bc-rail { padding: 7px; border-radius: 20px; }
  #baccarat #bc-felt { padding: 8px 6px 10px; border-radius: 14px; }
  #baccarat #bc-bet-box .row > button { font-size: 0.88rem; }
  /* Bubbles stay inside the screen: the house's hangs from the left, the seats at the edges hang theirs inwards. */
  #baccarat #bc-house-bubble { left: -2px; transform: none; max-width: 230px; }
  #baccarat #bc-house-bubble::after { left: 44px; }
  #baccarat .bc-bubble.bc-up { max-width: 160px; }
  #baccarat .bc-seat:nth-child(-n+2) .bc-bubble.bc-up { left: 0; transform: none; }
  #baccarat .bc-seat:nth-child(-n+2) .bc-bubble.bc-up::after { left: 24px; }
  #baccarat .bc-seat:nth-child(n+4) .bc-bubble.bc-up { left: auto; right: 0; transform: none; }
  #baccarat .bc-seat:nth-child(n+4) .bc-bubble.bc-up::after { left: auto; right: 18px; }
}
/* The narrowest phones: the chips on the layout a little smaller, so five of them still fit on a pair */
@media (max-width: 379px) {
  #baccarat .bc-stack { width: 23px; height: 23px; }
  #baccarat .bc-stack-amt { font-size: 0.5rem; }
  #baccarat .bc-on { gap: 4px 4px; }
  #baccarat .bc-who { font-size: 0.86rem; }
}
@media (min-width: 700px) {
  #baccarat { --bc-cw: 50px; --bc-ch: 70px; --bc-bead: 20px; }
  #baccarat #bc-top { justify-content: center; gap: 28px; }
  #baccarat #bc-house { flex: 0 1 260px; }
  #baccarat .bc-who { font-size: 1.15rem; }
  #baccarat .bc-note { font-size: 0.8rem; }
  #baccarat #bc-shoe { font-size: 0.74rem; }
  #baccarat #bc-tally { font-size: 0.78rem; }
  #baccarat #bc-hands { gap: 14px; margin-top: 14px; }
  #baccarat .bc-box { padding: 8px 8px 6px; }
  #baccarat .bc-box-name { font-size: 1.05rem; }
  #baccarat .bc-cards { gap: 6px; }
  #baccarat .bc-cards .card { border-radius: 7px; }
  #baccarat .bc-total { font-size: 2.6rem; }
  #baccarat .bc-tag { font-size: 0.68rem; }
  #baccarat #bc-call { font-size: 1.15rem; min-height: 46px; }
  #baccarat #bc-call .bc-called { font-size: 1.35rem; }
  #baccarat .bc-area { min-height: 84px; }
  #baccarat .bc-a-player, #baccarat .bc-a-banker { min-height: 104px; }
  #baccarat .bc-area-name { font-size: 0.9rem; }
  #baccarat .bc-a-player .bc-area-name, #baccarat .bc-a-banker .bc-area-name { font-size: 1.5rem; }
  #baccarat .bc-a-tie .bc-area-name { font-size: 1.3rem; }
  #baccarat .bc-area-pays { font-size: 0.8rem; }
  #baccarat .bc-stack { width: 30px; height: 30px; }
  #baccarat .bc-stack-amt { font-size: 0.62rem; }
  #baccarat .bc-on { min-height: 36px; gap: 5px 7px; }
  #baccarat #bc-seats { gap: 8px; }
  #baccarat .bc-plate { padding: 4px 8px 5px; }
  #baccarat .bc-cam { width: 54px; height: 54px; }
  #baccarat .bc-name { font-size: 0.84rem; }
  #baccarat .bc-dot { display: inline-block; }
  #baccarat .bc-stackline { font-size: 0.76rem; }
  #baccarat .bc-foot { font-size: 0.74rem; }
}

/* Wide screens: the page gets the room a baccarat table needs. */
@media (min-width: 760px) {
  main:has(#baccarat:not([hidden])), body > :has(> #baccarat:not([hidden])) { max-width: 860px; }
  #baccarat #bc-rail { padding: 13px; }
  #baccarat #bc-felt { padding: 14px 18px 16px; }
  #baccarat #bc-bet-box, #baccarat #bc-house-box, #baccarat #bc-rebuy-box, #baccarat #bc-add-box, #baccarat #bc-limits, #baccarat #bc-status ~ .row { max-width: 560px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  #baccarat .bc-stack.bc-won, #baccarat .bc-area.bc-hit, #baccarat .bc-box.bc-win, #baccarat .bc-cards .card.bc-new, #baccarat #bc-call .bc-called, #baccarat .bc-bubble.bc-pop { animation: none; }
  #baccarat #bc-chips .bc-chip, #baccarat .bc-box { transition: none; }
}

/* ---- the big chip, and five chips in one row ---- */
#baccarat .bc-c25000 { --chip: #1d6fb8; --chip-edge: #124a7c; }
#baccarat #bc-chips { gap: 10px; flex-wrap: nowrap; }
#baccarat #bc-chips .bc-chip { width: 58px; height: 58px; font-size: 0.78rem; }
