/* ==========================================================================
   BACCARAT B: the shared baccarat kit's stylesheet (the salon). Decisions: briefs/baccarat-family-b-redesign-decisions.md
   (approved 2026-11-15 13:55); the look is the approved mock-up, design-review-2026-11/baccarat/baccarat-mockups.html (B).
   Copied byte for byte into each baccarat by kit/casino/build-baccarat-b.js; laid out and sized by baccarat-b.js.
   One family of type (Inter), quiet labelled utility buttons, gold only for your money's next step (Deal, Rebet & deal);
   the card face is blackjack B's (suits U+FE0E, Gin rules G1/G2/G6) with card red #A3141E; the chips are blackjack B's plus a $1.
   ========================================================================== */
:root{
  --bacb-card-ms:360ms; --bacb-result-ms:300ms;   /* movement (Pace A: the pauses are the sequencer's) */
  --ink:#F4EFE3; --gold:#E9C46A; --gold2:#F3D27A; --goldInk:#1B1406;
  --plate:#120607; --hair:rgba(246,240,225,.28);
  --pblue:#2F6FD0; --pblueD:#1B4A96; --bred:#D6343F; --bredD:#9C1C27; --tgreen:#2E9E5B;
  --win:#8EE0A8; --lose:#FFA3A3;
  --felt:#5A0A0A; --feltLit:#741812; --feltDeep:#1E0303;
  --btn:#1A0C0D; --btnb:#6A4A47;
  --cw:120px; --g:8px; --chip:52px; --pc:34px;
}
html, body.bacb-page{ height:100%; }
body.bacb-page{ margin:0; padding:0 !important; background:#0B0908; color:var(--ink); font-family:'Inter',system-ui,sans-serif; font-feature-settings:"tnum" 1; overflow:hidden; -webkit-font-smoothing:antialiased; }
body.bacb-page *{ font-family:'Inter',system-ui,sans-serif; box-sizing:border-box; }
body.bacb-page .game-frame{ height:var(--frame-h,100vh) !important; display:flex !important; flex-direction:column; margin:0 !important; padding:0 !important; max-width:none !important; width:100% !important; background:#0B0908; border:0 !important; box-shadow:none !important; border-radius:0 !important; }
body.bacb-page .bacb-felt, body.bacb-page .bacb-felt *{ line-height:1.2; }
/* no CSS transitions anywhere on the page: a measured layout must be the layout. Under the checks' clock every property change is a 1ms
   transition, so the felt's spacing and the zones' tight style were still the old ones when the kit measured (2026-11-15); movement is
   the controller's own (Web Animations, --bacb-card-ms) */
html, body.bacb-page, body.bacb-page *, body.bacb-page *::before, body.bacb-page *::after{ transition:none !important; }
.bacb-hidden{ display:none !important; }

/* ---------- the rail, the felt, the footer ---------- */
.bacb-rail{ flex:1 1 auto; min-height:0; padding:14px; position:relative; align-self:stretch; width:100%;
  background:radial-gradient(ellipse 70% 30% at 50% 0%,rgba(255,255,255,.09),transparent 70%),linear-gradient(180deg,#2A211E,#151010 55%,#0B0908); }
.bacb-rail::after{ content:""; position:absolute; inset:6px; border-radius:24px; border:1.5px dashed rgba(255,232,214,.18); pointer-events:none; }
.bacb-felt{ position:relative; height:100%; border-radius:18px; overflow:hidden; padding:14px 16px;
  background:
   url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
   radial-gradient(ellipse 34% 30% at 50% 36%,rgba(255,226,180,.10),transparent 72%),
   radial-gradient(ellipse 90% 85% at 50% 48%,var(--feltLit) 0%,var(--felt) 52%,var(--feltDeep) 100%);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.6),inset 0 0 90px rgba(0,0,0,.5); }
body.bacb-page footer{ flex:0 0 auto; align-self:stretch; text-align:center; padding:6px 10px; font-size:12px; font-weight:600; color:#F4EFE3; background:#0B0908; white-space:nowrap; overflow:hidden; margin:0; border:0; }
body.bacb-page footer .footer-short{ display:none; }
body.bacb-phone footer{ display:none; }
body.bacb-phone .bacb-rail{ padding:7px; } body.bacb-phone .bacb-rail::after{ inset:3px; border-radius:20px; }
body.bacb-phone .bacb-felt{ padding:8px 9px; border-radius:15px; }

/* ---------- the arrangement: desktop (four rows) and phones (one column) ---------- */
.bacb-felt{ display:flex; flex-direction:column; justify-content:space-between; gap:var(--g); }
body.bacb-desk .bacb-top{ display:flex; gap:16px; align-items:flex-start; justify-content:space-between; }
body.bacb-desk .bacb-bottom{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:16px; }
body.bacb-desk .bacb-bottom .bacb-chips{ justify-self:center; }
body.bacb-desk .bacb-arcwrap{ position:relative; padding:0 1%; flex:0 0 auto; }
body.bacb-desk .bacb-stage{ min-height:0; flex:0 1 auto; display:flex; align-items:flex-start; position:relative; z-index:1; }
body.bacb-desk .bacb-stage .bacb-duel{ width:100%; align-items:start; }
body.bacb-desk .bacb-top, body.bacb-desk .bacb-bottom{ flex:0 0 auto; }
body.bacb-desk .bacb-callrow, body.bacb-desk .bacb-pairs{ display:none; }
body.bacb-phone .bacb-top, body.bacb-phone .bacb-bottom{ display:none; }
body.bacb-phone .bacb-utils{ order:1; } body.bacb-phone .bacb-you{ order:2; } body.bacb-phone .bacb-board{ order:3; }
body.bacb-phone .bacb-stage{ order:4; } body.bacb-phone .bacb-callrow{ order:5; } body.bacb-phone .bacb-pairs{ order:6; }
body.bacb-phone .bacb-arcwrap{ order:7; } body.bacb-phone .bacb-acts{ order:8; }
.sr-only{ position:fixed; top:0; left:0; width:1px; height:1px; padding:0; margin:0; overflow:visible; clip-path:inset(50%); white-space:nowrap; border:0; pointer-events:none; }

/* ---------- plates and labels (no pale type: 7:1, semi-bold) ---------- */
.plate{ background:rgba(10,3,4,.72); border-radius:12px; box-shadow:inset 0 0 0 1px var(--hair); }
.bacb-page .lbl{ font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#F4EFE3; }

/* ---------- utility buttons (quiet, labelled, line icons; blackjack B's pattern) ---------- */
body.bacb-page .bacb-utils{ display:flex; gap:8px; margin:0; padding:0; }
body.bacb-page .bacb-utils .gold-icon-btn, body.bacb-page #btnCoach{ all:unset; box-sizing:border-box; position:relative; min-width:56px; height:52px; padding:5px 8px 4px; border-radius:10px; background:var(--btn); box-shadow:inset 0 0 0 1px var(--btnb);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font:700 13px/1.1 Inter,sans-serif; color:#F4EFE3; cursor:pointer; flex:0 0 auto; white-space:nowrap; }
body.bacb-page .bacb-utils .gold-icon-btn .ico{ width:18px; height:18px; display:block; background:#F4EFE3; font-size:0; -webkit-mask:var(--ic) center/contain no-repeat; mask:var(--ic) center/contain no-repeat; }
body.bacb-page .bacb-utils .btn-label, body.bacb-page .bacb-utils .btn-label *{ font:700 13px/1.1 Inter,sans-serif !important; color:#F4EFE3; letter-spacing:0; text-transform:none; white-space:nowrap; margin:0 !important; display:inline !important; }
body.bacb-page #btnCoach .btn-val{ display:none !important; }
body.bacb-page #btnCoach::before{ content:""; width:18px; height:18px; background:#F4EFE3; -webkit-mask:var(--ic) center/contain no-repeat; mask:var(--ic) center/contain no-repeat; }
body.bacb-page #btnCoach[aria-pressed="true"]{ box-shadow:inset 0 0 0 1.5px var(--gold2); }
body.bacb-page #btnCoach .btn-state{ font:800 11px/14px Inter,sans-serif !important; letter-spacing:0; text-transform:uppercase; color:var(--goldInk) !important; background:var(--gold2); border-radius:6px; padding:0 4px; margin-left:4px !important; }
body.bacb-page #btnCoach:not([aria-pressed="true"]) .btn-state{ color:#F4EFE3 !important; background:#3A2A2A; }
#btnCoach{ --ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M12 3l2.6 5.6 6 .7-4.5 4.1 1.3 6L12 16.4 6.6 19.4l1.3-6L3.4 9.3l6-.7z'/></svg>"); }
#btnStats .ico{ --ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><rect x='3' y='4' width='18' height='16' rx='2'/><path d='M3 10h18M9 4v16M15 4v16'/></svg>"); }
#btnRules .ico{ --ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><rect x='5' y='3' width='14' height='18' rx='2'/><path d='M9 8h6M9 12h6M9 16h4'/></svg>"); }
#btnSound .ico{ --ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M4 9h4l5-4v14l-5-4H4z'/><path d='M16 9a4 4 0 010 6M18.5 6.5a7.5 7.5 0 010 11'/></svg>"); }
#btnSound[aria-pressed="false"] .ico{ --ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M4 9h4l5-4v14l-5-4H4z'/><path d='M16 9l5 6M21 9l-5 6'/></svg>"); }
#btnGear .ico{ --ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><circle cx='12' cy='12' r='3'/><path d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1'/></svg>"); }
#btnNewGame .ico{ --ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M20 12a8 8 0 11-2.3-5.7'/><path d='M20 4v5h-5'/></svg>"); }
body.bacb-phone .bacb-utils{ justify-content:center; gap:6px; }
body.bacb-phone .bacb-utils .gold-icon-btn, body.bacb-phone #btnCoach{ min-width:0; flex:1 1 0; height:44px; padding:3px 1px; gap:2px; }
body.bacb-phone .bacb-utils .btn-label, body.bacb-phone .bacb-utils .btn-label *{ font-size:12px !important; }
body.bacb-phone .bacb-utils .gold-icon-btn .ico, body.bacb-phone #btnCoach::before{ width:16px; height:16px; }
body.bacb-phone #btnCoach .btn-state{ background:none !important; color:#F4EFE3 !important; padding:0; margin-left:3px !important; font-size:12px !important; }
body.bacb-phone #btnSound{ display:none !important; }   /* phones: sound is in Settings (as live), five buttons as drawn */

/* ---------- the action buttons ---------- */
.bacb-acts{ display:flex; justify-content:flex-end; }
.bacb-acts .action-row{ display:none; gap:8px; margin:0; padding:0; }
body.bacb-page[data-ui-phase="betting"] #betActions, body.bacb-page[data-ui-phase="dealing"] #lockedActions, body.bacb-page[data-ui-phase="settled"] #settleActions{ display:flex; }
.bacb-acts .act{ all:unset; box-sizing:border-box; height:52px; min-width:52px; padding:0 18px; border-radius:12px; background:var(--btn); box-shadow:inset 0 0 0 1px var(--btnb); display:flex; flex-direction:column; align-items:center; justify-content:center; font:800 14px/1.15 Inter,sans-serif; color:#F4EFE3; cursor:pointer; white-space:nowrap; }
.bacb-acts .act small{ font:600 12px/1.15 Inter,sans-serif; color:#F4EFE3; }
.bacb-acts .act.gold{ background:linear-gradient(180deg,#F6DA8E,#D9AE4E); color:var(--goldInk); box-shadow:0 2px 0 rgba(0,0,0,.35); }
.bacb-acts .act.gold small{ color:var(--goldInk); }
.bacb-acts .act:disabled{ cursor:default; color:#CFC6BC; }
.bacb-acts .act.gold:disabled{ background:linear-gradient(180deg,#BFA66A,#A08440); color:var(--goldInk); }
.bacb-acts .act.dim{ color:#CFC6BC; }
.bacb-acts #btnRebet{ display:none; }
body.bacb-rebet .bacb-acts #btnRebet{ display:flex; } body.bacb-rebet .bacb-acts #btnClearBet{ display:none; }
body.bacb-phone .bacb-acts .action-row{ width:100%; gap:6px; } body.bacb-phone .bacb-acts .act{ flex:1 1 0; height:46px; padding:0 10px; font-size:13px; }

/* ---------- the scoreboard: Big Road and Bead Plate (never colour alone: disc, ring, diamond) ---------- */
.bacb-board{ padding:10px 12px; display:flex; gap:12px; align-items:center; }
body.bacb-desk.bacb-short .bacb-board{ padding:7px 10px; }
.bacb-ttl{ display:flex; flex-direction:column; gap:5px; }
.bacb-ttl .lbl{ color:var(--gold2); }
.bacb-crow{ display:flex; gap:14px; font-size:13px; font-weight:700; color:#F4EFE3; }
.bacb-crow span{ display:flex; align-items:center; gap:5px; white-space:nowrap; }
.bacb-page i.dot{ display:inline-block; width:16px; height:16px; border-radius:50%; font-size:0; flex:0 0 auto; font-style:normal; }
.bacb-page i.dot.B{ background:var(--bred); } .bacb-page i.dot.P{ background:none; box-shadow:inset 0 0 0 3px var(--pblue); }
.bacb-page i.dot.T{ width:11px; height:11px; border-radius:2px; transform:rotate(45deg); background:var(--tgreen); margin:0 3px; }
.bacb-grid{ display:grid; background:#FBF8F1; border-radius:6px; padding:3px; gap:0; box-shadow:inset 0 0 0 1px rgba(0,0,0,.25); grid-auto-flow:column; justify-content:start; }
.bacb-grid i{ display:block; width:var(--cell); height:var(--cell); box-shadow:inset -1px -1px 0 #E2D9C6; position:relative; font-style:normal; }
.bacb-grid i b{ position:absolute; inset:14%; border-radius:50%; font-size:0; }
.bacb-grid i b.B{ background:var(--bred); } .bacb-grid i b.P{ box-shadow:inset 0 0 0 calc(var(--cell) * .17) var(--pblue); } .bacb-grid i b.T{ inset:22%; border-radius:2px; transform:rotate(45deg); background:var(--tgreen); }
.bacb-grid i u{ position:absolute; inset:14%; border-radius:50%; border:calc(var(--cell) * .16) solid; }
.bacb-grid i u.P{ border-color:var(--pblue); } .bacb-grid i u.B{ border-color:var(--bred); background:var(--bred); }
.bacb-grid i s{ position:absolute; left:10%; right:10%; top:50%; height:2px; background:var(--tgreen); transform:rotate(-45deg); }
.bacb-grid i.new{ box-shadow:inset 0 0 0 2px #C9A24A; }
.bacb-grid i .pp{ position:absolute; left:6%; top:6%; width:24%; height:24%; border-radius:50%; background:var(--pblue); box-shadow:0 0 0 1px #fff; }
.bacb-grid i .bp{ position:absolute; right:6%; bottom:6%; width:24%; height:24%; border-radius:50%; background:var(--bred); box-shadow:0 0 0 1px #fff; }
body.bacb-phone .bacb-board{ padding:5px 7px; gap:7px; }
body.bacb-phone .bacb-board > .bacb-bead{ display:none; }   /* phones: the Bead Plate is in Scores (decision 3) */
body.bacb-phone .bacb-ttl{ flex-direction:row-reverse; align-items:center; gap:7px; width:100%; justify-content:space-between; }
body.bacb-phone .bacb-ttl > .lbl{ display:none; }
body.bacb-phone .bacb-crow{ flex-direction:column; gap:2px; font-size:12px; }
body.bacb-phone .bacb-crow i.dot{ width:14px; height:14px; } body.bacb-phone .bacb-crow i.dot.T{ width:10px; height:10px; }
body.bacb-phone .bacb-crow .w{ display:none; }

/* ---------- your money: the plate ---------- */
.bacb-you{ padding:8px 14px; display:flex; gap:18px; align-items:center; }
.bacb-you > div{ display:flex; flex-direction:column; gap:1px; }
.bacb-you .lbl{ color:var(--gold2); }
.bacb-you b{ font-size:18px; font-weight:800; color:#fff; white-space:nowrap; }
.bacb-you b.big{ font-size:24px; }
.bacb-you b.win{ color:var(--win); } .bacb-you b.loss{ color:var(--lose); }
body.bacb-phone .bacb-you{ justify-content:space-between; padding:5px 10px; gap:8px; }
body.bacb-phone .bacb-you > div{ flex-direction:row; align-items:baseline; gap:5px; }
body.bacb-phone .bacb-you .lbl{ font-size:11px; letter-spacing:.08em; }
body.bacb-phone .bacb-you b, body.bacb-phone .bacb-you b.big{ font-size:15px; }
@media (max-width:349px){ body.bacb-phone .bacb-you{ padding:5px 8px; gap:6px; } body.bacb-phone .bacb-you b, body.bacb-phone .bacb-you b.big{ font-size:14px; } body.bacb-phone .bacb-you .lbl{ letter-spacing:.03em; } }
body.bacb-phone #pbLastHand .lbl{ display:none; }

/* ---------- the hands ---------- */
.bacb-duel{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:22px; min-height:0; }
.bacb-side{ display:flex; flex-direction:column; gap:10px; min-width:0; }
.bacb-side.P{ align-items:flex-end; } .bacb-side.B{ align-items:flex-start; }
.bacb-tabrow{ display:flex; align-items:baseline; gap:10px; min-height:36px; }
.bacb-tab{ display:inline-flex; align-items:center; height:28px; padding:0 12px; border-radius:8px; font-size:13px; font-weight:800; letter-spacing:.1em; color:#fff; white-space:nowrap; align-self:center; }
.bacb-tab.P{ background:var(--pblueD); } .bacb-tab.B{ background:var(--bredD); }
.bacb-side.won .bacb-tab{ box-shadow:0 0 0 2px var(--gold2); }
.bacb-tot{ font-size:36px; font-weight:800; line-height:1; color:#fff; }
.bacb-side.won .bacb-tot{ color:var(--gold2); }
.bacb-tot .bacb-natw{ font-size:max(13px, .5em); font-weight:800; letter-spacing:.04em; vertical-align:.25em; }
.bacb-note{ font-size:14px; font-weight:700; letter-spacing:.02em; color:#F4EFE3; white-space:nowrap; }
body.bacb-desk.bacb-short .bacb-tot{ font-size:28px; } body.bacb-desk.bacb-short .bacb-tab{ height:26px; }
.bacb-cards{ position:relative; display:flex; align-items:center; gap:calc(var(--cw) * .09); height:calc(var(--cw) * 1.4); min-width:calc(var(--cw) * 3.4 + var(--cw) * .18); padding:0; margin:0; }
.bacb-side.P .bacb-cards{ justify-content:flex-end; } .bacb-side.B .bacb-cards{ justify-content:flex-start; }
.bacb-side.P .bacb-cards .card.third{ order:-1; }
/* while you bet, the two places the cards will land (as drawn) */
.bacb-cards:empty::before, .bacb-cards:empty::after{ content:""; width:var(--cw); height:calc(var(--cw) * 1.4); border-radius:calc(var(--cw) * .075); border:1.5px dashed rgba(246,240,225,.42); flex:0 0 auto; }
.bacb-mid{ display:flex; flex-direction:column; align-items:center; gap:10px; }
.bacb-shoe{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.bacb-shoe .obj{ width:84px; height:50px; border-radius:8px 22px 8px 8px; background:linear-gradient(180deg,#2B2B30,#121216); box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 6px 12px rgba(0,0,0,.4); position:relative; }
.bacb-shoe .obj::after{ content:""; position:absolute; right:9px; top:10px; width:30px; height:22px; border-radius:3px; background:#151018; box-shadow:inset 0 0 0 1px rgba(201,167,94,.7); transform:skewX(-14deg); }
.bacb-shoe .meter{ width:84px; height:5px; border-radius:3px; background:rgba(255,255,255,.2); position:relative; }
.bacb-shoe .meter i{ position:absolute; left:0; top:0; bottom:0; border-radius:3px; background:#F4EFE3; }
.bacb-shoe .meter u{ position:absolute; top:-3px; width:2px; height:11px; background:#FF8A8A; }
.bacb-shoe > span{ font-size:12px; font-weight:700; white-space:nowrap; letter-spacing:.04em; }
.bacb-shoe.low > span{ color:#FFB4A8; }
body.bacb-desk.bacb-short .bacb-shoe .obj{ width:72px; height:40px; }
/* phones: the two hands side by side, the third card turned under its two (as drawn) */
body.bacb-phone .bacb-stage{ position:relative; display:flex; align-items:center; justify-content:center; }
body.bacb-phone .bacb-duel{ grid-template-columns:1fr 1fr; column-gap:18px; width:100%; align-items:start; }
body.bacb-phone .bacb-mid{ display:none; }
body.bacb-phone .bacb-side, body.bacb-phone .bacb-side.P, body.bacb-phone .bacb-side.B{ align-items:center; gap:6px; }
body.bacb-phone .bacb-tabrow{ gap:5px; min-height:24px; align-items:center; }
body.bacb-phone .bacb-tab{ order:-1; }
body.bacb-phone .bacb-tab{ height:24px; padding:0 8px; font-size:12px; letter-spacing:.08em; }
body.bacb-phone .bacb-tot{ font-size:22px; }
body.bacb-phone .bacb-note{ font-size:12px; }
body.bacb-phone .bacb-cards, body.bacb-phone .bacb-side.P .bacb-cards, body.bacb-phone .bacb-side.B .bacb-cards{ flex-wrap:wrap; justify-content:center; align-content:flex-start; gap:0 5px; width:calc(var(--cw) * 2 + 5px); min-width:0; height:calc(var(--cw) * 2.2); }
body.bacb-phone .bacb-side .bacb-cards .card.third{ order:3; margin:calc(var(--cw) * -.4) auto calc(var(--cw) * -.2) !important; z-index:2; }
body.bacb-phone .bacb-cards:has(.third) .card:not(.third) .card-corner-bottom{ display:none; }
/* phones (Ronan 2026-11-15 15:20, "Chips by Deal"): while you bet there are no cards, so the hands' place closes and the chips sit in a row
   just above Undo · Clear · Deal; at Deal the chips go and the cards take the top at full size (the curve moves down once, then) */
body.bacb-phone[data-ui-phase="betting"] .bacb-stage{ display:none; }
body.bacb-phone:not([data-ui-phase="betting"]) .bacb-felt > .bacb-chips{ display:none; }
body.bacb-phone .bacb-felt > .bacb-chips{ order:8; }
body.bacb-phone .bacb-acts{ order:9; }

/* ---------- cards (blackjack B's face; card red #A3141E) ---------- */
body.bacb-page .card{ position:relative !important; left:auto !important; top:auto !important; width:var(--cw); height:calc(var(--cw) * 1.4); border-radius:calc(var(--cw) * .075); background:#FBF8F1; box-shadow:0 1px 0 rgba(0,0,0,.15),0 8px 18px rgba(0,0,0,.42); color:#15171A; border:0; padding:0; margin:0; overflow:hidden; flex:0 0 auto; }
body.bacb-page .card{ animation:none !important; transition:none !important; opacity:1 !important; transform:none; }
body.bacb-page .card::before, body.bacb-page .card::after{ display:none; }
body.bacb-page .card.red{ color:#A3141E; }
body.bacb-page .card .card-corner{ position:absolute; left:calc(var(--cw) * .05); top:calc(var(--cw) * .05); font-weight:800; font-size:calc(var(--cw) * .23); line-height:.95; text-align:center; letter-spacing:-.03em; color:inherit; }
body.bacb-page .card .card-corner-bottom{ left:auto; top:auto; right:calc(var(--cw) * .05); bottom:calc(var(--cw) * .05); transform:rotate(180deg); }
body.bacb-page .card .card-centre-suit{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); font-size:calc(var(--cw) * .30); line-height:1; color:inherit; }
body.bacb-page .card.third{ transform:rotate(90deg); margin:0 calc(var(--cw) * .2); }
body.bacb-page .card.back{ background:#151018; box-shadow:inset 0 0 0 calc(var(--cw) * .05) #151018,inset 0 0 0 calc(var(--cw) * .062) #C9A35E,0 8px 18px rgba(0,0,0,.42); }

/* ---------- the croupier line and Why? (Coach) ---------- */
.bacb-call{ display:flex; align-items:center; justify-content:center; gap:10px; }
.bacb-call .say{ display:block; font-size:17px; font-weight:700; color:#fff; background:rgba(8,2,3,.78); border-radius:20px; padding:7px 18px; box-shadow:inset 0 0 0 1px var(--hair); white-space:nowrap; text-align:center; text-transform:none; letter-spacing:0; margin:0; min-height:0; }
.bacb-call .say b{ color:var(--gold2); font-weight:800; }
.bacb-call .say .bacb-net{ font-weight:800; letter-spacing:.02em; }
.bacb-call .say.warn{ color:#FFE2A8; }
.bacb-arcwrap .bacb-call{ position:absolute; left:50%; top:0; transform:translateX(-50%); z-index:2; }
.bacb-arcwrap .bacb-call .say{ min-width:440px; }
body.bacb-desk.bacb-short .bacb-arcwrap .bacb-call .say{ font-size:16px; padding:6px 14px; }
body.bacb-page .bacb-why{ all:unset; box-sizing:border-box; height:44px; padding:0 14px; border-radius:22px; box-shadow:inset 0 0 0 1.5px var(--gold2); display:none; align-items:center; font:800 14px Inter,sans-serif; color:#fff; background:rgba(8,2,3,.78); cursor:pointer; white-space:nowrap; flex:0 0 auto; }
body.bacb-page.coach-on .bacb-why{ display:flex; }
body.bacb-phone.coach-on[data-ui-phase="betting"] .bacb-why{ display:none; }   /* as drawn: phones show Why? after the deal */
body.bacb-phone .bacb-callrow .bacb-call .say{ font-size:14px; padding:8px 12px; white-space:normal; line-height:1.3; min-height:36px; display:block; text-align:center; }   /* block: the result's two lines break (15:02) */
body.bacb-phone .bacb-callrow{ display:flex; align-items:center; justify-content:center; gap:10px; }
body.bacb-phone .bacb-callrow .bacb-call{ min-width:0; }
.bacb-hint{ display:inline-block; vertical-align:middle; margin-left:8px; background:var(--gold2); color:var(--goldInk); font-size:12px; font-weight:800; letter-spacing:.08em; border-radius:8px; padding:0 8px; line-height:20px; box-shadow:0 2px 0 rgba(0,0,0,.35); white-space:nowrap; }
body.bacb-phone .bacb-hint{ margin-left:4px; line-height:17px; font-size:11px; padding:0 5px; letter-spacing:.04em; }
.bac-spot:not(.bacb-hinted) .bacb-hint{ display:none; }
body.bacb-page .coach-hint-tag, body.bacb-page .coach-reason{ display:none !important; }

/* ---------- the printed curved layout (the kit draws the band; the zones are the spots) ---------- */
.bacb-layout{ position:relative; width:100%; aspect-ratio:var(--ar, 1000/160); margin:0; padding:0; display:block; }
.bacb-layout svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.bacb-layout svg .zhit{ pointer-events:auto; cursor:pointer; }
body.bacb-page .bacb-zone{ all:unset; box-sizing:border-box; position:absolute; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; text-align:center; transform:translate(-50%,-50%); cursor:pointer; pointer-events:auto; }
body.bacb-page .bacb-zone.main{ flex-direction:row; gap:10px; }
body.bacb-page .bacb-zone.main.tight{ gap:5px; } .bacb-zone.tight .pile{ --pc:26px; } .bacb-zone.tight .zv{ padding:1px 5px; }
body.bacb-phone .bacb-zone.tight .zv{ font-size:11px; padding:0 2px; letter-spacing:-.02em; }
body.bacb-phone .bacb-zone.tight .zn{ letter-spacing:.02em; } body.bacb-phone .bacb-zone.tight .bacb-hint{ padding:0 3px; margin-left:3px; letter-spacing:0; }
.bacb-zone .ztx{ display:flex; flex-direction:column; align-items:center; gap:2px; }
.bacb-zone .zn{ font-size:18px; font-weight:800; letter-spacing:.16em; color:#fff; white-space:nowrap; }
.bacb-zone .zp{ font-size:13px; font-weight:700; letter-spacing:.06em; color:#F4EFE3; white-space:nowrap; }
.bacb-zone .zp .spot-note{ font:inherit; color:inherit; letter-spacing:inherit; background:none; padding:0; }
.bacb-zone .zp .spot-note.hit{ color:var(--gold2); }   /* the commission taken: LESS 5% marked on the Banker zone */
.bacb-zone .bacb-short{ display:none; }
body.bacb-phone .bacb-zone .bacb-long{ display:none; } body.bacb-phone .bacb-zone .bacb-short{ display:inline; }
.bacb-zone .zs{ display:flex; align-items:center; gap:8px; }
.bacb-zone .zpile:empty, .bacb-zone .zs:not(:has(.pile:not(:empty))):not(:has(.zv:not(.zero):not(:empty))){ display:none; }
.bacb-page .zv{ font-size:14px; font-weight:800; color:#fff; background:var(--plate); border-radius:8px; padding:1px 8px; box-shadow:inset 0 0 0 1px var(--hair); white-space:nowrap; }
.bacb-page .zv:empty, .bacb-page .zv.zero{ display:none; }
.bacb-page .zv.win{ color:var(--win); } .bacb-page .zv.loss{ color:var(--lose); }
body.bacb-page[data-ui-phase="settled"] .bac-spot.active .spot-stake{ display:none; }
.bacb-zone.pair .pile{ display:none; }
.bacb-zone.pair .zn{ font-size:13px; letter-spacing:.1em; } .bacb-zone.pair .zp{ font-size:12px; } .bacb-zone.pair .zv{ font-size:12px; padding:0 6px; }
.bacb-zone:disabled{ cursor:default; }
body.bacb-phone .bacb-zone{ gap:1px; line-height:1.15; }
body.bacb-phone .bacb-zone .zn{ font-size:13px; letter-spacing:.08em; } body.bacb-phone .bacb-zone .zp{ font-size:12px; letter-spacing:.02em; }
body.bacb-phone .bacb-zone .zv{ font-size:13px; padding:0 6px; line-height:17px; }
body.bacb-phone .bacb-zone .zpile{ display:none; }
/* phones: the two Pair bets are pills above the curve (as drawn) */
body.bacb-phone .bacb-pairs{ display:flex; justify-content:space-between; gap:8px; }
body.bacb-desk .bacb-pairs{ display:none; }
body.bacb-phone .bacb-pairs .bacb-zone{ min-width:0; overflow:hidden; position:relative; left:auto !important; top:auto !important; transform:none !important; max-width:none !important; flex:0 0 calc(50% - 4px); height:44px; border-radius:22px; flex-direction:row; align-items:center; justify-content:flex-start; gap:6px; padding:0 8px 0 12px; background:rgba(10,3,4,.4); }
body.bacb-phone .bacb-pairs .bacb-zone[data-spot="playerPair"]{ box-shadow:inset 0 0 0 1.5px var(--pblue); } body.bacb-phone .bacb-pairs .bacb-zone[data-spot="bankerPair"]{ box-shadow:inset 0 0 0 1.5px var(--bred); }
body.bacb-phone .bacb-pairs .bacb-zone.won{ box-shadow:inset 0 0 0 2px var(--gold2); }
body.bacb-phone .bacb-pairs .bacb-zone .zn{ font-size:12px; letter-spacing:.04em; }
body.bacb-phone .bacb-pairs .bacb-zone .zp{ margin-left:auto; }
body.bacb-phone .bacb-pairs .bacb-zone .zs{ gap:4px; } body.bacb-phone .bacb-pairs .bacb-zone .pile{ display:none; }
body.bacb-phone .bacb-pairs .bacb-zone .zv{ font-size:12px; padding:0 5px; line-height:17px; }
body.bacb-phone .bacb-pairs .bacb-zone.tight{ gap:4px; padding:0 6px 0 9px; } body.bacb-phone .bacb-pairs .bacb-zone.tight .zv{ padding:0 3px; }

/* ---------- chips (blackjack B's set, plus the $1) ---------- */
body.bacb-page .bacb-chips{ display:flex; align-items:center; justify-content:center; margin:0; padding:0; background:none; border:0; }
body.bacb-page .bacb-chips .chip-row{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:0; padding:0; overflow:visible; }
body.bacb-phone .bacb-chips .chip-row{ gap:3px; flex-wrap:nowrap; }   /* one row of seven 44px chips where the felt allows (360 wide and up) */
@media (max-width:349px){ body.bacb-phone .bacb-chips .chip-row{ flex-wrap:wrap; max-width:calc(4 * var(--chip) + 3 * 6px); gap:6px; } }   /* narrower: 4 and 3 */
body.bacb-page .chip{ all:unset; box-sizing:border-box; position:relative; width:var(--chip); height:var(--chip); border-radius:50%; background:var(--c); box-shadow:0 3px 0 rgba(0,0,0,.4); cursor:pointer; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
body.bacb-page .chip::before{ content:""; position:absolute; inset:0; border-radius:50%; background:repeating-conic-gradient(var(--st,#fff) 0 9deg,transparent 9deg 45deg); -webkit-mask:radial-gradient(circle,transparent 61%,#000 62%); mask:radial-gradient(circle,transparent 61%,#000 62%); }
body.bacb-page .chip .chip-face{ position:relative; width:66%; height:66%; border-radius:50%; background:#FBF6E8; display:flex; align-items:center; justify-content:center; box-shadow:inset 0 0 0 1.5px var(--c); font:800 max(12px, calc(var(--chip) * .27)) Inter,sans-serif; color:#1b1406; letter-spacing:-.03em; }
body.bacb-page .chip.selected{ box-shadow:0 0 0 3px var(--gold2),0 3px 0 rgba(0,0,0,.4); }
body.bacb-page .chip:disabled{ cursor:default; }
body.bacb-page .chip.over{ opacity:.55; }
.bacb-page .c1{ --c:#E9E1CB; --st:#5A4A2E; } .bacb-page .c5{ --c:#C8373F; } .bacb-page .c10{ --c:#2F6FD0; } .bacb-page .c25{ --c:#1F9A55; } .bacb-page .c50{ --c:#E07A2A; } .bacb-page .c100{ --c:#139C9C; } .bacb-page .c500{ --c:#7A4CC2; }
body.bacb-desk:not([data-ui-phase="betting"]) .bacb-bottom .bacb-chips{ visibility:hidden; }
/* the stake on a zone: one pile, each chip its own layer, only the top chip prints its value (blackjack B, Ronan 11:02) */
.bacb-page .pile{ position:relative; width:var(--pc); height:calc(var(--pc) + 12px); flex:0 0 auto; display:block; }
.bacb-page .pile:empty{ display:none; }
.bacb-page .pile .chip{ --chip:var(--pc); position:absolute; left:0; cursor:inherit; pointer-events:none; }
.bacb-page .pile .chip .chip-face{ width:78%; height:78%; }
.bacb-page .pile .chip:nth-child(1){ bottom:0; } .bacb-page .pile .chip:nth-child(2){ bottom:4px; } .bacb-page .pile .chip:nth-child(3){ bottom:8px; } .bacb-page .pile .chip:nth-child(4){ bottom:12px; }

/* ---------- panels: Scores and Why? ---------- */
.bacb-scores{ display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.bacb-scores .bacb-grid{ --cell:16px; max-width:100%; overflow:hidden; }
.bacb-scores .road-head{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.bacb-scores .road-sub{ font-size:12px; font-weight:700; }
.bacb-scores .road-legend{ display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; font-size:12px; font-weight:700; }
.bacb-why-panel table{ width:100%; border-collapse:collapse; font-size:13px; font-weight:600; margin-top:10px; }
.bacb-why-panel th, .bacb-why-panel td{ padding:5px 6px; text-align:left; border-bottom:1px solid rgba(0,0,0,.12); }
.bacb-why-panel tr.lit td{ background:#F3D27A; font-weight:800; }

/* ---------- panels and the start screen: ivory in the family colours (family look default, 2026-11-02) ---------- */
body.bacb-page .panel-overlay{ position:fixed; inset:0; z-index:50; display:none; align-items:center; justify-content:center; padding:20px; background:rgba(12,2,3,.72); }
body.bacb-page .panel-overlay.open{ display:flex; }
body.bacb-page .panel-overlay .panel, body.bacb-page .coach-start .coach-start-card{ width:min(480px,100%); max-height:calc(100vh - 32px); overflow:auto; padding:22px 20px; text-align:left;
  background:#FBF4EC !important; color:#2A0707 !important; border:0 !important; border-radius:18px !important; box-shadow:0 0 0 2px #C9A35E,0 24px 70px rgba(0,0,0,.6) !important; }
body.bacb-page .panel-overlay .panel h2, body.bacb-page .coach-start-title{ font:800 22px Inter,sans-serif !important; color:#5A0A0A !important; letter-spacing:-.01em; text-transform:none; margin:0 0 6px; }
body.bacb-page .panel-overlay .panel p, body.bacb-page .panel-overlay .panel li, body.bacb-page .panel-overlay .panel td, body.bacb-page .panel-overlay .panel th,
body.bacb-page .panel-overlay .panel span, body.bacb-page .panel-overlay .panel div, body.bacb-page .coach-start p, body.bacb-page .coach-start span, body.bacb-page .coach-start div{ color:#2A0707; font-family:Inter,sans-serif; }
body.bacb-page .panel-overlay .panel .sub, body.bacb-page .coach-start-sub{ font-size:14px; font-weight:600; margin:0 0 12px; color:#2A0707 !important; }
body.bacb-page .panel-overlay .panel ul{ padding-left:18px; margin:0 0 14px; font-size:14px; font-weight:600; line-height:1.55; }
body.bacb-page .panel-overlay .panel .panel-close{ position:sticky; bottom:-22px; box-shadow:inset 0 0 0 1.5px #5A0A0A, 0 -10px 14px #FBF4EC !important; }   /* Close stays on screen while the panel scrolls */
body.bacb-page .panel-overlay .panel .panel-close, body.bacb-page .panel-overlay .panel .btn-ghost, body.bacb-page #btnCoachAskNo{ display:flex; align-items:center; justify-content:center; width:100%; background:#fff !important; color:#5A0A0A !important; box-shadow:inset 0 0 0 1.5px #5A0A0A !important; border:0 !important; border-radius:12px !important; min-height:48px; font:800 15px Inter,sans-serif !important; cursor:pointer; margin-top:10px; }
body.bacb-page .panel-overlay .panel .btn-deal, body.bacb-page #btnCoachAskYes, body.bacb-page #btnResumeHand{ display:flex; align-items:center; justify-content:center; background:#6E1010 !important; color:#fff !important; border:0 !important; border-radius:12px !important; min-height:48px; font:800 15px Inter,sans-serif !important; box-shadow:none !important; cursor:pointer; }
body.bacb-page .panel-overlay .ts-panel-actions .btn-ghost{ width:auto; padding:0 16px; }
body.bacb-page .coach-start{ z-index:200 !important; display:flex !important; align-items:center; justify-content:center; padding:16px; background:rgba(12,2,3,.78) !important; position:fixed; inset:0; }
body.bacb-page .coach-start:not(.open){ display:none !important; }
body.bacb-page .coach-choices{ display:flex; gap:10px; }
body.bacb-page .coach-choice{ flex:1 1 0; min-height:88px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:4px; padding:12px 14px; cursor:pointer;
  background:#fff !important; color:#5A0A0A !important; box-shadow:inset 0 0 0 1.5px #D9C4B8 !important; border:0 !important; border-radius:14px !important; text-align:left; }
body.bacb-page .coach-choice.selected{ box-shadow:inset 0 0 0 2.5px #6E1010 !important; background:#FFF6F2 !important; }
body.bacb-page .coach-choice .coach-choice-title{ color:#5A0A0A !important; font:800 17px Inter,sans-serif !important; }
body.bacb-page .coach-choice .coach-choice-desc{ color:#3A1A14 !important; font:600 13.5px/1.3 Inter,sans-serif !important; }
@media (max-width:400px){ body.bacb-page .coach-choices{ flex-direction:column; } body.bacb-page .coach-choice{ min-height:64px; } }
body.bacb-page .toggle-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid #E8D9CE; font-size:14px; font-weight:700; }
body.bacb-page .toggle-row .btn-ghost{ width:auto !important; margin:0 !important; padding:0 16px; }
body.bacb-page .switch{ position:relative; width:46px; height:28px; flex:0 0 auto; }
body.bacb-page .switch input{ opacity:0; width:0; height:0; }
body.bacb-page .switch .slider{ position:absolute; inset:0; border-radius:14px; background:#CDB8AD; cursor:pointer; }
body.bacb-page .switch .slider::before{ content:""; position:absolute; left:3px; top:3px; width:22px; height:22px; border-radius:50%; background:#fff; transition:transform .15s; }
body.bacb-page .switch input:checked + .slider{ background:#6E1010; } body.bacb-page .switch input:checked + .slider::before{ transform:translateX(18px); }
body.bacb-page .rules-kbd kbd{ font:700 12px Inter,sans-serif; padding:1px 5px; border-radius:4px; box-shadow:inset 0 0 0 1px #5A0A0A; }
body.bacb-page .pb-rules-tables .pt{ display:flex; flex-direction:column; gap:2px; margin:0 0 12px; }
body.bacb-page .pb-rules-tables .pt-title{ font-weight:800; font-size:12px; letter-spacing:.12em; text-transform:uppercase; margin-bottom:4px; }
body.bacb-page .pb-rules-tables .pt-row{ display:flex; justify-content:space-between; font-size:14px; font-weight:700; border-bottom:1px solid #EADCD2; padding:3px 0; }
body.bacb-page .bacb-scores .bacb-grid{ background:#fff; }

/* reduced motion: the movement (a card's travel, the result's fade) shortens to 1ms; the reading pauses stay (brief §27) */
@media (prefers-reduced-motion: reduce){
  :root{ --bacb-card-ms: 1ms; --bacb-result-ms: 1ms; }
  body.bacb-page *, body.bacb-page *::before, body.bacb-page *::after{ transition-duration:1ms !important; animation-duration:1ms !important; }
}

/* ---------- short phones (iPhone SE; Ronan 2026-11-15 15:28): the Big Road strip in Scores ---------- */
body.bacb-phone.bacb-tiny .bacb-board{ display:none; }

/* ---------- a phone held sideways (Ronan 2026-11-15 15:28, "Compact sideways"): the scoreboard and the shoe in Scores, the utility
   buttons a slim column at the right edge, your plate a line at the top, the chips and the actions on one bottom row ---------- */
body.bacb-side footer{ display:none; }   /* phones: no footer text (standing rule 2026-10-31) */
body.bacb-side .bacb-felt{ padding:10px 88px 10px 14px; }
body.bacb-side .bacb-board, body.bacb-side .bacb-shoe{ display:none; }
body.bacb-side .bacb-utils{ position:absolute; right:10px; top:8px; bottom:8px; flex-direction:column; justify-content:center; gap:6px; }
body.bacb-side .bacb-utils .gold-icon-btn, body.bacb-side #btnCoach{ width:68px; min-width:0; height:44px; padding:2px 2px; gap:1px; }
body.bacb-side .bacb-utils .btn-label, body.bacb-side .bacb-utils .btn-label *{ font-size:11px !important; }
body.bacb-side #btnCoach .btn-state{ background:none !important; color:#F4EFE3 !important; padding:0; margin-left:2px !important; font-size:11px !important; }
body.bacb-side .bacb-top{ justify-content:flex-start; }
body.bacb-side .bacb-you{ padding:4px 12px; gap:14px; }
body.bacb-side .bacb-you > div{ flex-direction:row; align-items:baseline; gap:6px; }
body.bacb-side .bacb-you b, body.bacb-side .bacb-you b.big{ font-size:15px; }
body.bacb-side .bacb-bottom{ grid-template-columns:1fr auto; }
body.bacb-side .bacb-bottom .bacb-chips{ justify-self:start; }
body.bacb-side .bacb-chips .chip-row{ gap:6px; flex-wrap:nowrap; }
body.bacb-side .chip{ --chip:44px; }
body.bacb-side .bacb-acts .act{ height:44px; padding:0 12px; }
body.bacb-side .bacb-tot{ font-size:24px; } body.bacb-side .bacb-tabrow{ min-height:28px; } body.bacb-side .bacb-tab{ height:24px; font-size:12px; }
body.bacb-side .bacb-arcwrap .bacb-call .say{ font-size:14px; padding:5px 12px; min-width:360px; }
body.bacb-side .bacb-zone .zn{ font-size:14px; } body.bacb-side .bacb-zone .zp{ font-size:12px; }
body.bacb-side .bacb-zone .zpile, body.bacb-side .bacb-zone .pile{ display:none; }   /* sideways: the stake in words, as on phones (the band is too thin for a pile) */
body.bacb-side .bacb-zone{ gap:1px; } body.bacb-side .bacb-zone .zv{ font-size:12px; padding:0 6px; line-height:16px; }
/* sideways: each hand toward its own edge, so the cards can use the curve's hollow beside the croupier line */
body.bacb-side .bacb-side.P{ align-items:flex-start; } body.bacb-side .bacb-side.B{ align-items:flex-end; }
body.bacb-side .bacb-side.P .bacb-cards{ justify-content:flex-start; } body.bacb-side .bacb-side.B .bacb-cards{ justify-content:flex-end; }
body.bacb-side .bacb-arcwrap .bacb-call .say{ min-width:0; }
body.bacb-side .bacb-zone.tight .zv{ font-size:11px; padding:0 2px; letter-spacing:-.02em; } body.bacb-side .bacb-zone.tight .zn{ letter-spacing:.04em; }
body.bacb-side .bacb-callrow{ display:flex; align-items:center; justify-content:center; gap:10px; }
body.bacb-side .bacb-callrow .bacb-call .say{ font-size:14px; padding:5px 14px; }
body.bacb-side .bacb-mid{ display:none; }
body.bacb-side .bacb-duel{ grid-template-columns:1fr 1fr; }
body.bacb-side .bacb-rail{ padding:6px; } body.bacb-side .bacb-rail::after{ inset:2px; border-radius:20px; }
body.bacb-side .bacb-felt{ padding-top:7px; padding-bottom:7px; border-radius:15px; }
body.bacb-side .bacb-side, body.bacb-side .bacb-side.P, body.bacb-side .bacb-side.B{ gap:4px; }
body.bacb-side .bacb-tabrow{ min-height:24px; }
body.bacb-side .bacb-utils{ top:8px; bottom:8px; }
@media (max-width:379px){ body.bacb-phone .bacb-utils .btn-label, body.bacb-phone .bacb-utils .btn-label *{ font-size:11px !important; } }   /* narrow phones: each label 2px+ inside its button */
/* narrow desktops (under 1200 wide): the stake in words on the zones, as sideways and phones */
body.bacb-narrow .bacb-zone .zpile, body.bacb-narrow .bacb-zone .pile{ display:none; }
body.bacb-narrow .bacb-zone{ gap:1px; } body.bacb-narrow .bacb-zone .zv{ font-size:13px; padding:0 6px; line-height:17px; }
body.bacb-narrow .bacb-zone.tight .zv{ font-size:12px; padding:0 3px; }
/* phones wider than the frames: the curve no wider than 440, so it does not grow taller than the felt */
body.bacb-phone .bacb-arcwrap{ width:100%; max-width:440px; margin-left:auto; margin-right:auto; }
/* narrow desktops: the six buttons in two rows of three, smaller chips, a compact plate */
body.bacb-narrow .bacb-utils{ display:grid; grid-template-columns:repeat(3, 64px); gap:6px; flex:0 0 auto; }
body.bacb-narrow .bacb-utils .gold-icon-btn, body.bacb-narrow #btnCoach{ width:64px; min-width:0; height:44px; padding:2px 2px; gap:1px; }
body.bacb-narrow .bacb-utils .btn-label, body.bacb-narrow .bacb-utils .btn-label *{ font-size:11px !important; }
body.bacb-narrow .bacb-top .bacb-board{ flex:1 1 auto; min-width:0; }
body.bacb-narrow .bacb-bottom{ gap:10px; }
body.bacb-narrow .bacb-bottom .bacb-chips{ gap:4px; }
/* the croupier line in its own row with Why? beside it: sideways and desktops under 880 wide */
body.bacb-rowline .bacb-callrow{ display:flex; align-items:center; justify-content:center; gap:10px; }
body.bacb-rowline .bacb-callrow .bacb-call .say{ font-size:14px; padding:5px 14px; min-width:0; }

/* desktops under 1000 wide: the chips a row of their own above your plate and the actions */
body.bacb-chiprow .bacb-bottom{ grid-template-columns:auto 1fr auto; grid-template-areas:"chips chips chips" "you . acts"; row-gap:8px; }
body.bacb-chiprow .bacb-bottom .bacb-chips{ grid-area:chips; flex-wrap:nowrap; }
body.bacb-chiprow .bacb-bottom .bacb-you{ grid-area:you; } body.bacb-chiprow .bacb-bottom .bacb-acts{ grid-area:acts; }
body.bacb-narrow .bacb-bottom .bacb-chips{ flex-wrap:nowrap; gap:3px; }
body.bacb-side .bacb-acts .action-row{ flex-wrap:nowrap; gap:6px; } body.bacb-side .bacb-acts .act{ height:44px; padding:0 12px; font-size:13px; }
@media (max-width:759px){ body.bacb-side{ --chip:38px !important; } body.bacb-side .bacb-bottom .bacb-chips{ gap:3px; flex-wrap:nowrap; } }
body.bacb-rowline.bacb-narrow .bacb-zone .zp{ font-size:11px; letter-spacing:.02em; } body.bacb-rowline.bacb-narrow .bacb-zone .bacb-hint{ font-size:11px; padding:0 5px; margin-left:4px; line-height:17px; letter-spacing:.04em; }
body.bacb-narrow .bacb-bottom .bacb-chips .chip-row{ flex-wrap:nowrap; gap:4px; }
@media (max-width:759px){ body.bacb-side .bacb-chips .chip-row{ gap:3px; } }
body.bacb-side .bacb-arcwrap{ margin-top:calc(-1 * var(--bacb-hollow, 0px)); }   /* sideways: the line row sits into the curve's hollow */
body.bacb-narrow .bacb-utils{ grid-template-columns:repeat(3, auto); } body.bacb-narrow .bacb-utils .gold-icon-btn, body.bacb-narrow #btnCoach{ width:auto; min-width:64px; padding:2px 6px; }
@media (max-width:799px){ body.bacb-side .bacb-callrow{ justify-content:flex-start; padding-left:8px; } }   /* sideways on the smaller phones: the line and Why? clear of Banker's cards */
body.bacb-narrow .bacb-arcwrap .bacb-call .say{ min-width:0; font-size:15px; padding:6px 14px; }   /* narrow desktops: the line only as wide as its words */
body.bacb-desk .bacb-acts .action-row{ flex-wrap:nowrap; }
body.bacb-rowline .bacb-arcwrap{ margin-top:calc(-1 * var(--bacb-hollow, 0px)); }
body.bacb-rowline.bacb-narrow .bacb-callrow{ margin-top:8px; flex:0 0 auto; } body.bacb-rowline.bacb-narrow .bacb-stage{ min-height:0; }
body.bacb-narrow.bacb-short .bacb-mid{ gap:9px; } body.bacb-narrow.bacb-short .bacb-shoe{ gap:4px; } body.bacb-narrow.bacb-short .bacb-shoe .obj{ width:64px; height:32px; }
@media (max-width:799px){ body.bacb-side .bacb-callrow .bacb-call .say{ font-size:13px; padding:5px 10px; } body.bacb-side .bacb-callrow{ gap:8px; padding-left:2px; } }
@media (max-width:349px){ body.bacb-phone .bacb-utils{ gap:4px; } }   /* 330 wide: each label 2px+ inside its button */
/* Scores (ivory panel): the pair marks in the key drawn as on the Bead Plate; the Last 20 marks white on deep colours (7:1), full-strength key */
.bacb-scores .road-legend .swatch{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:-4px; box-shadow:0 0 0 1px #fff, 0 0 0 2px rgba(42,7,7,.5); }
.bacb-scores .road-legend .swatch.p{ background:var(--pblue); } .bacb-scores .road-legend .swatch.b{ background:var(--bred); }
body.bacb-page .ts-mark{ color:#fff !important; } body.bacb-page .ts-p{ background:#1d4377 !important; } body.bacb-page .ts-b{ background:#7d1a25 !important; } body.bacb-page .ts-t{ background:#17502A !important; }
body.bacb-page .ts-keys{ opacity:1; font-size:12px; line-height:16px; color:#2A0707; } body.bacb-page .ts-sub{ font-size:12px; color:#2A0707; opacity:1; }
body.bacb-page .ts-key .ts-mark{ min-width:16px; height:16px; font-size:11px; }
/* ---- Scores, readable (Ronan 2026-11-15 16:17 "stats screen is hard to read"; 16:20 "Scoreboard first, one list") ----
   Inter only, dark ink on ivory, 14px and up, no faded or italic placeholders; the scoreboard first and full width, its cells larger;
   below it on desktops Session, Last coup and the Last 20 list side by side, on phones one column */
body.bacb-page #statsOverlay .panel{ width:min(980px, calc(100vw - 24px)); max-width:none; }
body.bacb-page #statsOverlay .ts-panel{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px 24px; font:500 15px/1.4 Inter, sans-serif; color:#2A0707; margin:4px 0 8px; }
body.bacb-page #statsOverlay .ts-panel > .bacb-scores{ grid-column:1 / -1; margin:0; gap:8px; }
body.bacb-page #statsOverlay .ts-panel .ts-list-wrap{ grid-row:auto; }
body.bacb-page #statsOverlay .ts-title, body.bacb-page #statsOverlay .road-label{ font:800 14px/1.3 Inter, sans-serif !important; letter-spacing:.06em; text-transform:uppercase; color:#5A0A0A !important; opacity:1 !important; border-bottom:1px solid rgba(90,10,10,.25); padding-bottom:4px; margin-bottom:6px; display:block; }
body.bacb-page #statsOverlay .road-head{ display:block; } body.bacb-page #statsOverlay .road-tally{ display:block; font:700 15px/1.4 Inter, sans-serif; color:#2A0707; }
body.bacb-page #statsOverlay .road-sub{ font:700 14px/1.3 Inter, sans-serif; color:#2A0707; }
body.bacb-page #statsOverlay .bacb-scores .bacb-grid{ --cell:22px; }
body.bacb-page #statsOverlay .road-legend{ font:700 14px/1.4 Inter, sans-serif; color:#2A0707; gap:6px 14px; }
body.bacb-page #statsOverlay .ts-row{ font-size:15px; line-height:1.5; } body.bacb-page #statsOverlay .ts-row > span:first-child{ opacity:1; }
body.bacb-page #statsOverlay .mono{ font-family:Inter, sans-serif !important; font-weight:800; font-variant-numeric:tabular-nums; }
body.bacb-page #statsOverlay .ts-empty{ opacity:1; font-style:normal; color:#2A0707; }
body.bacb-page #statsOverlay .ts-recap li, body.bacb-page #statsOverlay .ts-list li{ font-size:15px; line-height:1.4; }
body.bacb-page #statsOverlay .ts-list{ gap:4px; } body.bacb-page #statsOverlay .ts-mark{ min-width:20px; height:20px; font-size:12px; border-radius:4px; }
body.bacb-page #statsOverlay .ts-pos{ color:#0F5A2A !important; } body.bacb-page #statsOverlay .ts-neg{ color:#8A1018 !important; }
body.bacb-page #statsOverlay .ts-panel-actions .btn-ghost{ text-transform:none; font:800 15px/1 Inter, sans-serif; }
@media (max-width:679px){
  body.bacb-page #statsOverlay .ts-panel{ grid-template-columns:minmax(0,1fr); gap:16px; }

  body.bacb-page #statsOverlay .ts-panel-actions{ margin-top:4px; }
}
body.bacb-page #statsOverlay .ts-panel > .bacb-scores{ order:-1; }
body.bacb-page #statsOverlay .bacb-scores .bacb-grid{ width:max-content; max-width:100%; }
body.bacb-page #statsOverlay .road-legend > span{ display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
body.bacb-page #statsOverlay .road-legend .swatch{ width:10px; height:10px; margin:0; }
body.bacb-page #statsOverlay #beadPlatePanel .pair-dot{ width:calc(var(--cell) * .28); height:calc(var(--cell) * .28); }
body.bacb-page #statsOverlay .ts-panel > .bacb-scores{ grid-row:1; grid-column:1 / -1; }
body.bacb-page #statsOverlay .ts-panel > [data-ts="stats"]{ grid-row:2; grid-column:1; } body.bacb-page #statsOverlay .ts-panel > [data-ts="recap"]{ grid-row:2; grid-column:2; }
body.bacb-page #statsOverlay .ts-panel > .ts-list-wrap{ grid-row:2; grid-column:3; display:block; height:auto; min-height:0; max-height:none; overflow:visible; }
@media (max-width:679px){ body.bacb-page #statsOverlay .ts-panel > *{ grid-row:auto !important; grid-column:1 !important; } }
@media (min-width:680px){
  body.bacb-page #statsOverlay .bacb-scores{ display:grid; grid-template-columns:max-content max-content; justify-content:start; column-gap:24px; row-gap:6px; }
  body.bacb-page #statsOverlay .bacb-scores > :nth-child(1), body.bacb-page #statsOverlay .bacb-scores > :nth-child(6){ grid-column:1 / -1; }
  body.bacb-page #statsOverlay .bacb-scores > :nth-child(2){ grid-row:2; grid-column:1; } body.bacb-page #statsOverlay .bacb-scores > :nth-child(3){ grid-row:3; grid-column:1; }
  body.bacb-page #statsOverlay .bacb-scores > :nth-child(4){ grid-row:2; grid-column:2; } body.bacb-page #statsOverlay .bacb-scores > :nth-child(5){ grid-row:3; grid-column:2; }
}
/* ---- readability floor (harness/casino-readability.js: 12px, 13px for essential words such as stakes and the shoe count) ---- */
body.bacb-page .bacb-you .lbl, body.bacb-page #roadWrap .bacb-ttl .lbl, body.bacb-page #roadWrap #roundVal{ font-size:12px !important; }
body.bacb-page .bacb-utils .btn-label, body.bacb-page .bacb-utils .btn-label *{ font-size:12px !important; }
body.bacb-page .bacb-shoe > span, body.bacb-page #deckCountLabel{ font-size:13px !important; }
body.bacb-page [id^="stake-"]:not(.zero){ font-size:13px !important; }
body.bacb-page .bacb-hint{ font-size:12px !important; }
/* phones under 400 wide: the five buttons closer together and without side padding, so each 12px label keeps 2px inside its button */
@media (max-width:399px){ body.bacb-phone .bacb-utils{ gap:3px !important; } body.bacb-phone .bacb-utils .gold-icon-btn, body.bacb-phone #btnCoach{ padding-left:0 !important; padding-right:0 !important; } }
@media (max-width:399px){ body.bacb-phone #btnCoach .btn-label{ word-spacing:-3px; } }   /* "Coach ✓" 2px+ inside its button at 330 wide */
@media (max-width:349px){ body.bacb-phone .bacb-you{ gap:4px; padding:5px 7px; } body.bacb-phone .bacb-you > div{ gap:3px; } body.bacb-phone .bacb-you .lbl{ letter-spacing:0; } body.bacb-phone .bacb-you b, body.bacb-phone .bacb-you b.big{ font-size:14px; letter-spacing:-.01em; } }   /* 12px labels: the plate inside the felt at 330 */
body.bacb-page #btnCoach .btn-state{ font-size:12px !important; }
/* the pile as tall as its chips (Ronan 07:42 "Chip needs to be centered"; harness/chip-centred.js): one chip sits in the middle, not at the foot of a four-chip box */
.bacb-page .pile{ height:var(--pc); } .bacb-page .pile:has(> .chip:nth-child(2)){ height:calc(var(--pc) + 4px); }
.bacb-page .pile:has(> .chip:nth-child(3)){ height:calc(var(--pc) + 8px); } .bacb-page .pile:has(> .chip:nth-child(4)){ height:calc(var(--pc) + 12px); }

/* ---------- Chemin de Fer (2026-11-15, briefs/chemin-de-fer-decisions.md B section): the seats row, its own button ids,
   phones without the Big Road strip (B6), the chips in the hands' place on phones while you choose (the mock-up) ---------- */
#btnSoundToggle .ico{ --ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M4 9h4l5-4v14l-5-4H4z'/><path d='M16 9a4 4 0 010 6M18.5 6.5a7.5 7.5 0 010 11'/></svg>"); }
#btnSoundToggle[aria-pressed="false"] .ico{ --ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M4 9h4l5-4v14l-5-4H4z'/><path d='M16 9l5 6M21 9l-5 6'/></svg>"); }
#btnSettings .ico{ --ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><circle cx='12' cy='12' r='3'/><path d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1'/></svg>"); }
#btnNewTable .ico{ --ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M20 12a8 8 0 11-2.3-5.7'/><path d='M20 4v5h-5'/></svg>"); }
body.bacb-phone #btnSoundToggle{ display:none !important; }
body.bacb-noboard .bacb-board{ display:none !important; }
body.bacb-phone .bacb-seats{ order:3; }
/* the iPhone SE frame, where a game's decisions allow it (Chemin de Fer): the table its full height and the frame scrolls vertically */
html:has(body.bacb-tinyscroll), body.bacb-tinyscroll{ height:auto !important; overflow-y:auto !important; overflow-x:hidden !important; }
body.bacb-tinyscroll .game-frame{ height:auto !important; min-height:var(--frame-h,100vh); }
body.bacb-tinyscroll .bacb-felt{ height:auto; overflow:visible; }

.bacb-call .say:empty{ visibility:hidden; }   /* no empty croupier bar across the cards when the line has nothing to say (2026-11-16) */
body.bacb-slim .bacb-callrow{ margin-top:6px; flex:0 0 auto; } body.bacb-slim .bacb-stage{ min-height:0; }   /* the slim strip (a game that asks, 2026-11-16) */
body.bacb-slim .bacb-board{ padding:6px 10px; } body.bacb-slim .bacb-ttl{ flex-direction:row; flex-wrap:wrap; align-items:center; column-gap:14px; row-gap:5px; } body.bacb-slim .bacb-ttl > .bacb-grid{ flex-basis:100%; }   /* slim: title and counts on one line over the Big Road */
body.bacb-slim .bacb-callrow .bacb-call .say{ font-size:16px; padding:5px 16px; }   /* the croupier line keeps 16px in its row (brief §7) */
