/* Scoped to shared Baccarat. Existing club row/button classes remain authoritative. */
.bacc-shared { --bacc-text:var(--club-selector-text,#f4ead7); --bacc-muted:var(--club-selector-muted,#c7c6b7); --bacc-line:var(--club-frame,#68765c); --bacc-surface:var(--club-selector-card,#29362b); --bacc-copper:var(--club-selector-accent,#edbb87); color:var(--bacc-text); width:100%; margin:0; }
.bacc-shared [hidden] { display:none !important; }
.bacc-shared :is(button,input) { font:inherit; }
.bacc-shared button:not(.club-table-strip, .error-carga-reintento) { border:1px solid var(--bacc-line); border-radius:7px; background:var(--bacc-surface); color:var(--bacc-text); min-height:38px; padding:7px 12px; cursor:pointer; }
.bacc-shared button:focus-visible,.bacc-shared input:focus-visible { outline:2px solid var(--bacc-copper); outline-offset:2px; }
.bacc-shared button:disabled { opacity:.55; cursor:default; }
.bacc-header { display:flex; align-items:center; gap:10px; padding:8px 0; }
.bacc-header h2 { flex:1; margin:0; text-align:center; font-size:1.15em; }
.bacc-shared .bacc-header :is(.bacc-table-back,.bacc-table-help) { border:0; background:transparent; color:var(--bacc-copper); }
.bacc-shared .bacc-header .bacc-table-back { min-width:44px; min-height:44px; padding:0; font-size:28px; line-height:1; }
.bacc-shared .bacc-header .bacc-table-help { min-width:0; padding-inline:4px; }
.bacc-shared .bacc-information { box-sizing:border-box; width:min(calc(100% - 24px),480px); max-height:min(80dvh,640px); overflow:auto; padding:12px; border:1px solid var(--bacc-line); border-radius:12px; background:var(--bacc-surface); color:var(--bacc-text); }
.bacc-shared .bacc-information::backdrop { background:#0009; }
.bacc-shared .bacc-information>header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.bacc-shared .bacc-information h3 { margin:0; font-size:1em; }
.bacc-shared .bacc-information .bacc-flow { grid-template-columns:1fr; gap:6px; margin:10px 0; }
.bacc-shared .bacc-information .bacc-flow>li { min-height:0; padding:4px; font-size:.85rem; line-height:1.3; }
.bacc-shared .bacc-information .bacc-step-detail { display:block; color:var(--bacc-muted); font-size:inherit; margin-top:2px; }
.bacc-shared .bacc-information .bacc-instruction { margin:6px 4px; padding-bottom:4px; }
.bacc-shared .bacc-wager-dialog .bacc-wager-form { display:grid; align-items:stretch; gap:10px; margin-top:10px; }
.bacc-shared .bacc-wager-dialog .bacc-wager-form input { box-sizing:border-box; width:100%; max-width:none; }
.bacc-shared .bacc-wager-dialog :is(.bacc-wager-limit,.bacc-wager-error) { margin:0; font-size:.87em; }
.bacc-shared .bacc-wager-dialog .bacc-wager-error { color:#ffd1aa; }
.bacc-shared .bacc-wager-dialog .bacc-wager-error:empty { display:none; }
.bacc-shared .bacc-wager-dialog .bacc-offer-presets { grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; max-width:none; }
.bacc-shared .bacc-wager-dialog .bacc-offer-presets button { min-width:0; padding-inline:4px; }
.bacc-shared .bacc-wager-maximum,.bacc-shared button[data-action=cover-full] { white-space:pre-line; }
.bacc-shared .bacc-controls .bacc-wager-open,.bacc-shared .bacc-wager-dialog button[type=submit] { background:linear-gradient(#f3d0a9,#dfa46b); border-color:#efd0aa; color:#32251d; }
.bacc-result-reopen { display:block; margin:8px auto 0; }
.bacc-shared[data-view=lobby] .bacc-header { display:none; }
.bacc-connection { font-size:.72em; color:var(--bacc-muted); max-width:110px; text-align:right; }
.bacc-status { min-height:1.2em; font-size:.85em; margin:4px 0; }
.bacc-table-list { display:grid; gap:7px; margin-top:8px; }
.bacc-lobby-row { margin:0; }
.bacc-lobby-description { min-width:0; flex:1; display:grid; gap:3px; }
.bacc-lobby-description :is(strong,small) { overflow-wrap:anywhere; }
.bacc-lobby-description small { color:var(--bacc-muted); font-size:.75em; }
.bacc-scene { position:relative; width:100%; aspect-ratio:1.12; min-height:420px; max-height:670px; isolation:isolate; }
.bacc-felt { position:absolute; inset:32px 4px; border:12px solid #28382e; border-radius:45% / 32%; background:radial-gradient(ellipse at 50% 47%,#23553d,#174935 54%,#0d3527); box-shadow:0 0 0 2px #9d744f,0 5px 0 3px #5f4431,0 12px 20px #0005; color:#f5edd9; }
.bacc-felt::before { content:''; position:absolute; inset:8px; border:1px solid #a4b99d55; border-radius:inherit; pointer-events:none; }
.bacc-stage-caption { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; text-align:center; font-size:.83em; }
.bacc-stage-caption>strong { max-width:100%; text-wrap:balance; }
.bacc-stage-clocks { display:flex; gap:7px; }
.bacc-clock { --bacc-progress:1; --bacc-clock-color:#edbb87; display:grid; place-items:center; border-radius:50%; width:41px; height:41px; background:radial-gradient(circle,#263a2e 62%,transparent 65%),conic-gradient(var(--bacc-clock-color) calc(var(--bacc-progress)*1turn),#a9b3a333 0); font-size:.82em; color:#f4dec0; }
.bacc-clock-extra { --bacc-clock-color:#a8cee5; color:#c8dfed; }
.bacc-seat { position:absolute; width:27%; max-width:180px; display:grid; justify-items:center; transform:translate(-50%,-50%); z-index:2; }
.bacc-seat[data-seat="0"] { left:50%; top:94%; }
.bacc-seat[data-seat="1"] { left:15%; top:74%; }
.bacc-seat[data-seat="2"] { left:13%; top:26%; }
.bacc-seat[data-seat="3"] { left:50%; top:6%; }
.bacc-seat[data-seat="4"] { left:87%; top:26%; }
.bacc-seat[data-seat="5"] { left:85%; top:74%; }
.bacc-avatar { position:relative; width:30px; height:32px; color:#d6bf9b; line-height:19px; font-size:28px; text-align:center; }
.bacc-avatar::after { content:''; display:block; width:28px; height:15px; background:#7c9aab; border-radius:15px 15px 5px 5px; position:absolute; bottom:0; left:1px; }
.bacc-player-plaque { width:100%; box-sizing:border-box; display:grid; text-align:center; gap:2px; background:#1b2222ed; color:#f4eee1; border:1px solid #60746a; border-radius:7px; padding:5px 4px; font-size:.7em; min-height:47px; }
.bacc-player-plaque :is(strong,span,small) { min-width:0; overflow-wrap:anywhere; }
.bacc-player-plaque strong { font-size:1em; font-weight:650; }
.bacc-player-plaque small { color:#d4ba93; font-size:.8em; }
.bacc-seat[data-occupied=false] .bacc-avatar { opacity:.35; }
.bacc-seat[data-occupied=false] .bacc-player-plaque { opacity:.6; }
.bacc-seat.bacc-active .bacc-player-plaque { border-color:#edbb87; box-shadow:0 0 0 1px #edbb8780; }
.bacc-own .bacc-player-plaque { background:#24352bed; }
.bacc-selection-cards { display:flex; gap:2px; justify-content:center; margin-bottom:2px; }
.bacc-hands { position:absolute; top:50%; left:16%; right:16%; display:flex; align-items:start; justify-content:center; gap:8px; transform:translateY(-30%); }
.bacc-hand-zone { flex:1; min-width:0; text-align:center; }
.bacc-hand-zone h3 { margin:0 0 5px; font-size:.76em; color:#e4c593; }
.bacc-hand-cards { display:flex; justify-content:center; gap:3px; }
.bacc-hand-score { display:block; min-height:1.1em; margin-top:4px; font-size:.74em; }
.bacc-card { position:relative; display:block; flex:none; width:34px; height:49px; color:var(--naipe-tinta); background:var(--naipe-marfil); border:1px solid #d7d4cc; border-radius:4px; box-sizing:border-box; box-shadow:0 1px 3px #0005; }
.bacc-card-red { color:var(--naipe-rojo); }
.bacc-card>.android-card-face { position:absolute; inset:0; width:100%; height:100%; }
.bacc-card-corner { position:absolute; top:2px; left:3px; display:grid; text-align:center; line-height:1.05; font-family:Georgia,'Times New Roman',serif; font-weight:bold; font-size:13px; }
.bacc-card-corner small { font-size:9px; margin-top:2px; }
.bacc-card-pip { position:absolute; bottom:5px; right:5px; font-size:18px; }
.bacc-card-back { border:0; color:transparent; background:var(--naipe-dorso-arte); }
.bacc-selection-cards .bacc-card { width:27px; height:39px; }
.bacc-selection-cards .bacc-card-corner { font-size:11px; }
.bacc-selection-cards .bacc-card-pip { font-size:13px; bottom:3px; right:3px; }
.bacc-selection-cards .bacc-card-corner small { font-size:8px; margin-top:1px; }
.bacc-coverage { border:1px solid var(--bacc-line); background:var(--bacc-surface); border-radius:10px; padding:8px 10px; font-size:.83em; }
.bacc-coverage-totals { margin:0 0 6px; overflow-wrap:anywhere; }
.bacc-shares { display:flex; flex-wrap:wrap; gap:5px 16px; padding-left:18px; margin:0; font-size:.9em; }
.bacc-result { text-align:center; color:var(--bacc-copper); font-size:.9em; padding:4px; }
.bacc-controls { display:flex; justify-content:center; flex-wrap:wrap; align-items:end; gap:8px; padding:10px 0; }
:is(.bacc-controls,.bacc-table-toolbar) .table-stand-toggle { display:flex; align-items:center; justify-content:center; gap:7px; }
:is(.bacc-controls,.bacc-table-toolbar) .table-stand-toggle svg { width:20px; height:20px; flex:none; }
.bacc-wager-form { display:flex; align-items:end; gap:7px; max-width:100%; }
.bacc-wager-form>label { display:grid; gap:4px; font-size:.82em; min-width:0; }
.bacc-wager-form input { box-sizing:border-box; width:130px; max-width:100%; border:1px solid var(--bacc-line); background:var(--bacc-surface); color:var(--bacc-text); border-radius:6px; padding:8px; }
.bacc-wager-form :is(.chip-amount-editor,.chip-amount-field) { max-width:165px; }
@media(min-width:650px) { .bacc-scene { aspect-ratio:1.55; min-height:460px; } .bacc-felt { inset:33px 14px; border-width:16px; } .bacc-player-plaque { font-size:.82em; } .bacc-card { width:43px; height:62px; } .bacc-hands { left:30%; right:30%; } .bacc-selection-cards .bacc-card { width:34px; height:49px; } }
@media(max-width:350px) { .bacc-scene { min-height:410px; } .bacc-felt { border-width:10px; } .bacc-player-plaque { font-size:.65em; } .bacc-stage-caption { left:22%; right:22%; font-size:.72em; } .bacc-hands { gap:6px; left:15%; right:15%; } .bacc-card { width:29px; height:43px; } .bacc-hand-cards { gap:2px; } .bacc-wager-form { flex-wrap:wrap; justify-content:center; } }
@media(prefers-reduced-motion:reduce) { .bacc-shared * { scroll-behavior:auto; } }
.bacc-entry-tools { display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:4px 0; }
.bacc-entry-notice { margin:4px 0; min-height:1.2em; font-size:.85em; }
.bacc-entry-practice-help { margin:2px 0 6px; font-size:.78em; opacity:.8; }
.bacc-entry-shared-help { margin:2px 0 7px; font-size:.78em; color:var(--bacc-muted); }
.bacc-entry-practice-help summary { cursor:pointer; padding:5px 0; }
.bacc-entry-practice-help button { margin-top:5px; }
.bacc-voice-host { display:flex; flex-wrap:wrap; justify-content:flex-end; min-height:0; }
.bacc-seat .bacc-seat-join { padding:3px 7px; min-height:28px; margin-top:3px; font-size:.72em; }
.bacc-create-dialog { width:min(460px,calc(100vw - 32px)); box-sizing:border-box; max-height:calc(100dvh - 24px); overflow:auto; border:1px solid var(--club-frame,#68765c); border-radius:12px; }
.bacc-create-dialog form { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.bacc-create-dialog form>h2,.bacc-create-dialog form>p { grid-column:1/-1; margin:0; }
.bacc-create-dialog label { display:grid; align-content:start; gap:4px; min-width:0; }
.bacc-create-dialog .bacc-field-help { font-size:.78em; line-height:1.3; opacity:.8; }
.bacc-create-dialog :is(input,select) { width:100%; box-sizing:border-box; min-height:38px; font:inherit; border:1px solid #8888; border-radius:6px; padding:7px; }
.bacc-create-dialog input[type=checkbox] { width:auto; justify-self:start; }
.bacc-create-dialog input[type=password] { letter-spacing:.3em; }

/* Cartas seat components: same plaque, currency, normal outline and reserve.
   Position is supplied by the shared seatPosition helper, never an inferred role. */
.bacc-scene.table-scene { height:clamp(420px,calc(100svh - 260px),640px); min-height:420px; aspect-ratio:auto; max-height:none; background:transparent; }
.bacc-felt.felt { width:auto; height:auto; inset:28px 5px 30px; border-radius:46% / 34%; border:12px solid #694a30; background:radial-gradient(ellipse at 50% 46%,#286046,#184a34 60%,#103323); box-shadow:inset 0 0 0 2px #17291d,inset 0 0 24px #061e17,0 0 0 2px #b68b56,0 5px 0 3px #3e2d20,0 9px 15px #0005; }
.bacc-felt.felt > .felt-inner { position:absolute; inset:7px; width:auto; height:auto; border:1px solid #cfb47266; border-radius:inherit; pointer-events:none; }
.bacc-felt::before { display:none; }
.bacc-stage-clocks:has(>[hidden]):not(:has(>:not([hidden]))) { display:none; }
.bacc-seat.seat { --bacc-card-w:clamp(27px,8.2vw,36px); --bacc-card-h:calc(var(--bacc-card-w)*1.43); position:absolute; display:block; width:clamp(82px,25%,120px); max-width:none; min-height:0; height:auto; margin:0; padding:0; transform:translate(-50%,-50%); text-align:center; }
.bacc-seat[data-position="0"] { left:50%; top:87%; }
.bacc-seat[data-position="1"] { left:87%; top:74%; }
.bacc-seat[data-position="2"] { left:87%; top:29%; }
.bacc-seat[data-position="3"] { left:50%; top:12%; }
.bacc-seat[data-position="4"] { left:13%; top:29%; }
.bacc-seat[data-position="5"] { left:13%; top:74%; }
.bacc-seat.selected { --bacc-card-w:clamp(40px,12vw,50px); }
.bacc-seat .bacc-avatar.seat-avatar { position:absolute; left:50%; top:-44px; width:44px; height:44px; margin:0; border-radius:50%; border:2px solid #809386; box-sizing:border-box; transform:translateX(-50%); background:linear-gradient(#284336,#0d241b); box-shadow:0 2px 8px #0007; transition:top 160ms ease; overflow:visible; z-index:1; }
.bacc-seat.has-cards .bacc-avatar { top:calc(-1*var(--bacc-card-h) - 22px); }
.bacc-avatar::after { display:none; }
.bacc-avatar::before { content:''; position:absolute; inset:0; border-radius:inherit; background:var(--seat-profile-photo,var(--seat-person-image)) center/cover no-repeat; pointer-events:none; }
.bacc-seat[data-occupied=false] .bacc-avatar { display:none; }
.bacc-seat .bacc-player-plaque { position:relative; width:100%; min-height:42px; gap:0; padding:5px 10px; border:1px solid #6a7f70; border-radius:999px; background:linear-gradient(#263129,#111a15); color:#f4eee1; box-shadow:0 2px 6px #0007; z-index:3; }
.bacc-player-plaque > .seat-name,.bacc-player-plaque > .seat-chips { display:block; position:static; width:auto; height:auto; min-height:0; max-width:none; margin:0; padding:0; border:0; background:none; box-shadow:none; border-radius:0; overflow-wrap:anywhere; line-height:1.12; }
.bacc-player-plaque > .seat-name { font-size:10px; font-weight:650; padding-right:6px; }
.bacc-player-plaque > .seat-chips { font-size:13px; font-weight:750; color:#70d6eb; font-variant-numeric:tabular-nums; }
.bacc-shared .bacc-seat .seat-name { font-size:10px!important; white-space:normal; overflow:visible; text-overflow:clip; }
.bacc-shared .bacc-seat .seat-chips { font-size:14px!important; white-space:nowrap; }
.bacc-seat .seat-status { display:block; position:absolute; top:calc(100% + 3px); left:-10%; width:120%; margin:0; padding:0; font-size:10px; line-height:1.1; color:#efdab2; background:none; overflow-wrap:anywhere; }
.bacc-seat .seat-award { position:absolute; top:calc(100% + 18px); left:-12%; width:124%; padding:0; margin:0; border:0; font-size:11px!important; line-height:1.15; font-weight:700; color:#f3d893; background:none; box-shadow:none; transform:none; overflow-wrap:anywhere; }
.bacc-seat.is-winner .bacc-player-plaque { border-color:#e7bd68; }
.bacc-seat .bacc-selection-cards.seat-cards { position:absolute; left:50%; top:calc(-1*var(--bacc-card-h)); bottom:auto; display:flex; width:max-content; height:var(--bacc-card-h); gap:2px; margin:0; transform:translateX(-50%); z-index:2; opacity:1; }
.bacc-seat .bacc-selection-cards .bacc-card { width:var(--bacc-card-w); height:var(--bacc-card-h); flex:none; margin:0; opacity:1; }
.bacc-seat .bacc-selection-cards .bacc-card-corner { font-size:calc(var(--bacc-card-w)*.36); }
.bacc-seat .bacc-selection-cards .bacc-card-pip { font-size:calc(var(--bacc-card-w)*.48); }
.bacc-seat .seat-currency-view { position:absolute; right:-9px; top:9px; width:24px; height:17px; border:1px solid #d5ded9; border-radius:2px; box-shadow:0 1px 3px #0009; overflow:hidden; pointer-events:none; z-index:7; }
.bacc-player-plaque > .seat-turn-outline { position:absolute; inset:-3px; width:auto; height:calc(100% + 6px); color:#efca85; z-index:5; pointer-events:none; }
.bacc-player-plaque > .seat-turn-outline .seat-time-value { top:-7px; }
.bacc-avatar > .seat-time-extra { position:absolute; top:-3px; right:-8px; z-index:4; width:24px; height:24px; border-radius:50%; background:#13222bef; box-shadow:0 1px 4px #0007; }
.bacc-avatar > .seat-time-extra svg { width:24px; height:24px; }
.bacc-avatar > .seat-time-extra strong { top:4px; }
.bacc-shared .bacc-seat .bacc-seat-join { position:absolute; inset:0; width:100%; min-height:42px; margin:0; border-radius:999px; background:#1e3328ed; border:1px dashed #a9b69b; color:#f0e4c6; font-size:11px; z-index:5; }
.bacc-controls.betting-actions { display:flex; grid-template-columns:none; justify-content:center; flex-wrap:wrap; gap:7px; padding:9px 0; }
.bacc-controls.betting-actions button { min-height:42px; border-radius:7px; font-weight:650; }
.bacc-controls button[data-action=pass-cover] { color:#efcf97; }
.bacc-controls .bacc-wager-form button[type=submit] { background:linear-gradient(#376247,#234a33); color:#f3ebd8; border-color:#73996f; }
.bacc-shared[data-view=table] > .bacc-entry-tools > button:first-child,.bacc-shared[data-view=table] > :is(.bacc-entry-shared-help,.bacc-entry-practice-help) { display:none; }
.bacc-shared[data-view=table] > .bacc-entry-tools:not(:has(>button:not([hidden]):not(:first-child))) { display:none; }
.bacc-table-filters { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin:6px 0; }
.bacc-table-filters .bacc-table-search { flex:1 1 155px; min-width:0; min-height:38px; }
.bacc-lobby-preview { width:100%; position:relative; }
.bacc-shared .bacc-lobby-preview > .bacc-preview-open {
  position:absolute; inset:0; width:100%; height:100%; padding:0; border:0;
  background:transparent; box-shadow:none; border-radius:12px; z-index:1;
}
.bacc-shared .bacc-lobby-preview > .bacc-preview-open:focus-visible { outline-offset:-4px; }
.bacc-shared[data-preview=true] > :is(.bacc-header,.bacc-status),.bacc-shared[data-preview=true] .bacc-table > :not(.bacc-scene,.bacc-table-phase) { display:none; }
.bacc-shared[data-preview=true] .bacc-table-phase { padding:4px 0; }
.bacc-shared[data-preview=true] .bacc-scene { height:400px; min-height:400px; max-width:760px; margin:auto; }
.bacc-shared[data-preview=true] .bacc-seat.selected { --bacc-card-w:clamp(27px,8.2vw,36px); }
.bacc-shared[data-preview=true] .bacc-seat-join { display:none; }
@media(max-width:350px){.bacc-scene.table-scene{min-height:410px;height:410px}.bacc-felt.felt{border-width:10px}.bacc-seat .seat-name{font-size:9px}.bacc-player-plaque>.seat-chips{font-size:12px}.bacc-stage-caption{font-size:11px;left:25%;right:25%}.bacc-seat .seat-currency-view{right:-5px;width:22px;height:15px}}
@media(min-width:650px){.bacc-scene.table-scene{height:clamp(420px,65svh,640px)}.bacc-player-plaque>.seat-name{font-size:12px}.bacc-player-plaque>.seat-chips{font-size:15px}.bacc-seat .bacc-player-plaque{min-height:46px}.bacc-seat .seat-status{font-size:11px}.bacc-seat .seat-award{font-size:12px}}
@media(prefers-reduced-motion:reduce){.bacc-seat .bacc-avatar.seat-avatar{transition:none}}
.bacc-seat.bacc-dealing { z-index:8; }
.bacc-seat.bacc-bank-figure .bacc-selection-cards > .bacc-card { outline:2px solid #e7bd68; outline-offset:2px; box-shadow:0 0 12px #e7bd6880; }
.bacc-flow { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; list-style:none; padding:0; margin:4px 0; font-size:10px; line-height:1.15; }
.bacc-flow > li { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-width:0; padding:5px 2px; border:1px solid var(--bacc-line); border-radius:6px; color:var(--bacc-muted); text-align:center; overflow-wrap:anywhere; }
.bacc-flow > li::before { content:attr(data-step); font-variant-numeric:tabular-nums; font-weight:750; }
.bacc-flow > li[aria-current=step] { color:var(--bacc-text); border-color:var(--bacc-copper); background:var(--bacc-surface); box-shadow:inset 0 -2px var(--bacc-copper); font-weight:700; }
.bacc-instruction { margin:6px 0 1px; min-height:2.5em; font-size:12px; line-height:1.35; color:var(--bacc-text); }
.bacc-coverage .bacc-coverage-totals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 12px; margin:0; }
.bacc-coverage-totals > div { min-width:0; }
.bacc-coverage-totals dt { font-size:11px; color:var(--bacc-muted); }
.bacc-coverage-totals dd { margin:1px 0 0; font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.bacc-coverage-totals > div:last-child dd { color:var(--bacc-copper); }
.bacc-coverage-help { margin:7px 0 0; font-size:11px; line-height:1.3; }
.bacc-shares-title { display:block; margin:8px 0 3px; font-size:11px; }
.bacc-shares { font-size:11px; gap:3px 14px; }
.bacc-result { margin:7px 0 0; padding:9px; border:1px solid var(--bacc-line); border-radius:8px; background:var(--bacc-surface); }
.bacc-result-title { display:block; font-size:13px; }
.bacc-result-hands { display:grid; gap:4px; margin-top:7px; color:var(--bacc-text); font-size:12px; }
.bacc-result-prizes { margin:7px 0 0; font-size:12px; line-height:1.35; }
.bacc-controls .bacc-wager-form { flex-wrap:wrap; justify-content:center; }
.bacc-shared[data-preview=true] .bacc-table > .bacc-flow,
.bacc-shared[data-preview=true] .bacc-table > .bacc-instruction { display:none; }

.bacc-card:not(.bacc-card-back) {
  overflow:hidden;
  background:#fffdf6;
  border:0;
  border-radius:5px;
  box-shadow:0 0 0 1px #80694866,0 2px 4px #0006;
}
.bacc-card > .android-card-face {
  display:block;
  overflow:hidden;
  border-radius:inherit;
  background:none;
  pointer-events:none;
}
.bacc-card:not(.bacc-card-back):has(.android-card-face > image) { background:#fff; }
.bacc-card[data-card^="10"] .android-card-face { inset:0 3%; width:94%; }

.bacc-table-center {
  position:absolute;
  top:53%;
  left:50%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:9px;
  width:max-content;
  max-width:90%;
  transform:translateX(-50%);
  z-index:2;
  pointer-events:none;
}
.bacc-pot {
  position:relative;
  display:grid;
  justify-items:center;
  padding:6px 11px;
  color:#f3dcaa;
  background:#10271edb;
  border:1px solid #bca06972;
  border-radius:999px;
  font-size:11px;
  text-align:center;
}
.bacc-pot > .pot-stack { position:static; display:flex; margin:-12px 0 4px; }
.bacc-pot > .pot-stack i { position:static; width:15px; height:15px; margin-left:-4px; border-width:2px; }
.bacc-pot > .pot-stack i:first-child { margin-left:0; }
.bacc-pot > .pot-stack i:nth-child(2) { transform:translateY(-3px); }
.bacc-pot > .table-pot-amount { font-size:13px; line-height:1.2; font-variant-numeric:tabular-nums; }
.bacc-point-draw { display:grid; justify-items:center; gap:4px; color:#f4e2be; font-size:9px; text-align:center; }
.bacc-seat > .bacc-point-draw {
  position:absolute;
  left:calc(50% + var(--bacc-card-w) + 9px);
  top:calc(-1 * var(--bacc-card-h));
  z-index:4;
  pointer-events:none;
  white-space:nowrap;
}
.bacc-seat.bacc-hand-inward > .bacc-point-draw { top:calc(100% + 18px); }
.bacc-table-cards { display:flex; }
.bacc-table-cards > .bacc-card { width:clamp(34px,9vw,48px); height:clamp(49px,12.87vw,69px); }
.bacc-pot[hidden],.bacc-point-draw[hidden],.bacc-center-winner[hidden],.bacc-center-tie[hidden] { display:none; }
.bacc-center-tie { display:grid; justify-items:center; text-align:center; }
.bacc-tie-time { font-size:11px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.bacc-center-winner,.bacc-center-tie {
  position:absolute;
  bottom:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  padding:5px 12px;
  border:1px solid #e6bb79;
  border-radius:999px;
  background:#10271e;
  color:#ffe1a9;
  font-size:clamp(13px,3.8vw,17px);
  line-height:1.25;
  text-transform:uppercase;
}

.bacc-seat.bacc-role-hand {
  --bacc-card-w:clamp(33px,9.1vw,46px);
}
.bacc-scene.bacc-showdown .bacc-seat.bacc-role-hand {
  --bacc-card-w:clamp(41px,11.6vw,58px);
}
.bacc-scene.bacc-showdown .bacc-seat.bacc-role-hand .bacc-selection-cards { z-index:6; }
.bacc-seat:is([data-position="1"],[data-position="2"]) .bacc-selection-cards { left:auto; right:0; transform:none; }
.bacc-seat:is([data-position="4"],[data-position="5"]) .bacc-selection-cards { left:0; transform:none; }
.bacc-seat.bacc-hand-inward .bacc-selection-cards.seat-cards { top:calc(100% + 18px); }
.bacc-seat.bacc-hand-inward.has-cards .bacc-avatar { top:-33px; }
.bacc-seat.bacc-hand-inward .seat-award { top:calc(100% + var(--bacc-card-h) + 23px); }
@media(max-width:360px) {
  .bacc-scene.table-scene { min-height:455px; height:455px; }

  .bacc-seat:is([data-position="1"],[data-position="2"]) { left:86%; }
  .bacc-seat:is([data-position="4"],[data-position="5"]) { left:14%; }
  .bacc-seat:is([data-position="4"],[data-position="5"]) .seat-currency-view { right:auto; left:-5px; }
  .bacc-seat:is([data-position="2"],[data-position="4"]) { top:23%; }
  .bacc-seat:is([data-position="1"],[data-position="5"]) { top:69%; }
  .bacc-scene.bacc-showdown .bacc-table-center { top:45%; }
}

.bacc-effects { position:absolute; inset:0; overflow:visible; z-index:9; pointer-events:none; }
.bacc-effects > .bacc-flip-back { position:absolute; margin:0; transform:translate(-50%,-50%); }
.bacc-effects > .bacc-chip-flight { position:absolute; left:0; top:0; width:0; height:0; }
.bacc-chip-flight > i { position:absolute; top:-10px; left:-10px; }
.bacc-chip-flight > strong {
  position:absolute;
  bottom:9px;
  padding:3px 6px;
  transform:translateX(-50%);
  border-radius:999px;
  color:#f0d69e;
  background:#142b20;
  font-size:11px;
  white-space:nowrap;
}
.bacc-chip-flight[data-direction="from-pot"] > strong { color:#b5f3d0; }

.bacc-controls.betting-actions {
  align-items:end;
  gap:6px;
  margin:0;
  padding:4px 0 5px;
}
.bacc-controls.betting-actions button {
  min-height:40px;
  box-shadow:inset 0 1px #fff3,0 2px 2px #0004;
}
.bacc-controls.betting-actions button[data-action="cover-full"] {
  border-color:var(--bacc-copper);
  background:#d5ac77;
  color:#21180f;
}
.bacc-controls .bacc-wager-form {
  flex-wrap:nowrap;
  gap:5px;
  padding:0;
}
.bacc-controls .bacc-wager-form label { min-width:0; font-size:10px; }
.bacc-controls .bacc-wager-form input { min-width:0; width:clamp(64px,21vw,105px); }
.bacc-controls .bacc-wager-form button { white-space:nowrap; }
@media(min-width:650px){.bacc-flow{font-size:12px}.bacc-coverage .bacc-coverage-totals{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* The same continuous felt and action finish as Cartas, with Bacará labels. */
.bacc-shared[data-view=table] {
  --bacc-text:#f3f0e5;--bacc-muted:#d0d9c7;--bacc-line:#7d906f;--bacc-surface:#213b2d;--bacc-copper:#efc28d;
  box-sizing:border-box;min-height:100%;padding:0 8px 10px;
  background:radial-gradient(ellipse at 50% 45%,#24563b,#173d2d 68%,#103323);
}
.bacc-shared[data-view=table] > :is(.bacc-header,.bacc-entry-tools,.bacc-entry-notice,.bacc-voice-host,.bacc-status),
.bacc-shared[data-view=table] .bacc-table {
  background:transparent;border:0;box-shadow:none;
}
.bacc-shared[data-view=table] :is(.bacc-header,.bacc-controls,.bacc-coverage,.bacc-result) { border:0;box-shadow:none;background:transparent; }
.bacc-shared[data-view=table] :is(.bacc-status,.bacc-entry-notice):empty { display:none; }
.bacc-shared[data-view=table] .bacc-header { min-height:42px;padding:4px 0; }
.bacc-shared[data-view=table] .bacc-flow { gap:4px;margin:3px 0; }
.bacc-shared[data-view=table] .bacc-flow>li { border:0;border-radius:0;padding:3px 1px;background:transparent;box-shadow:none; }
.bacc-shared[data-view=table] .bacc-flow>li[aria-current=step] { box-shadow:inset 0 -2px var(--bacc-copper); }
.bacc-shared[data-view=table] .bacc-instruction { min-height:0;margin:6px 0 0; }
.bacc-shared[data-view=table] .bacc-coverage { padding:5px 2px; }
.bacc-shared[data-view=table] .bacc-result { padding:7px 2px;margin:4px 0 0; }
.bacc-shared[data-view=table] .bacc-result-title { color:#f4d19b;font-size:14px;line-height:1.35; }
.bacc-shared[data-view=table] .bacc-result-hands { line-height:1.4;font-variant-numeric:tabular-nums; }
.bacc-shared[data-view=table] .bacc-controls { gap:7px;padding:9px 0 4px; }
.bacc-shared[data-view=table] .bacc-controls button {
  min-height:44px;border-radius:18px;border:1px solid #a7a17f;background:linear-gradient(#3a4934,#213025);color:#f3f0e5;
  box-shadow:inset 0 1px 0 #ffffff20,0 2px 4px #0005;padding:7px 12px;font-weight:650;line-height:1.2;
}
.bacc-shared[data-view=table] .bacc-controls :is(button[type=submit],button[data-action=cover-full],button[data-action=punto-draw],button[data-action=punto-resolve],button[data-action=bank-draw]) {
  border-color:#efd0aa;background:linear-gradient(#f3d0a9,#dfa46b);color:#352b1e;box-shadow:inset 0 1px 0 #fff5dc70,0 2px 4px #0005;
}
.bacc-shared[data-view=table] .bacc-controls button[data-action=stand] { flex-basis:100%;border:0;background:transparent;box-shadow:none; }
.bacc-shared[data-view=table] .bacc-wager-form { flex:1 1 100%; }
.bacc-shared[data-view=table] .bacc-wager-form>label { flex:1 1 115px;max-width:165px; }
.bacc-shared[data-view=table] .bacc-wager-form>button { flex:1 1 130px; }
.bacc-shared[data-view=table] .bacc-wager-form input { border-color:#a7a17f;background:#152a20;color:#f3f0e5; }
.bacc-shared[data-view=table] .bacc-wager-form[data-wager=cover] { flex:0 1 auto; }
.bacc-shared[data-view=table] .bacc-wager-form[data-wager=cover]>label,
.bacc-shared[data-view=table] .bacc-wager-form[data-wager=cover]>button { flex:0 0 auto; }
.bacc-shared[data-view=table] .bacc-wager-form[data-wager=cover] .chip-amount-editor { width:clamp(64px,21vw,105px); }
.bacc-management { display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:6px; }
.bacc-management-reason { margin:0;flex:1 1 170px;font-size:.8em;color:var(--bacc-muted); }
.bacc-create-dialog [hidden] { display:none!important; }

.bacc-bank-prize {
  display:block;
  width:fit-content;
  max-width:100%;
  box-sizing:border-box;
  margin:5px auto 0;
  padding:5px 10px;
  border:1px solid #b99868;
  border-radius:10px;
  color:#f5d7a9;
  background:#1b3528;
  font-size:12px;
  font-weight:750;
  text-align:center;
}
.bacc-point-notice[hidden],.bacc-bank-prize[hidden],.bacc-hand-score[hidden] { display:none!important; }
.bacc-table > :is(.bacc-point-notice,.bacc-cover-remainder) {
  display:block;
  margin:4px 0;
  color:var(--bacc-muted);
  font:650 12px/1.25 system-ui;
  text-align:center;
}
.bacc-cover-remainder > strong { color:var(--bacc-copper); }
.bacc-bank-prize { margin-top:4px; }
.bacc-seat.seat { right:auto;bottom:auto;height:max-content; }

.bacc-hand-score {
  position:absolute;
  z-index:5;
  right:calc(100% + 3px);
  top:50%;
  display:grid;
  place-items:center;
  transform:translateY(-50%);
  box-sizing:border-box;
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid #d1b17b;
  background:#192a21;
  color:#f8e0ae;
  font:800 17px/1 system-ui,sans-serif;
  font-variant-numeric:tabular-nums;
}
.bacc-seat.is-winner .bacc-hand-score { border-color:#f7d99a; box-shadow:0 0 7px #e6aa6166; }
.bacc-shared[data-view=table] .bacc-result-title { font-size:clamp(15px,4.5vw,19px); letter-spacing:.015em; }
.bacc-result-hand {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:4px 9px;
  padding:4px 7px;
  border-radius:7px;
  background:#12291f;
}
.bacc-result-hand > strong { color:#f4d19b; white-space:nowrap; }
.bacc-shared[data-view=table] .bacc-controls button[data-action=bank-collect] {
  border-color:#efd0aa;background:linear-gradient(#f3d0a9,#dfa46b);color:#352b1e;
}
.bacc-shared[data-view=table] .bacc-controls button[data-action=join] {
  border-color:#efd0aa;background:linear-gradient(#f3d0a9,#dfa46b);color:#352b1e;
}
.bacc-offer-presets {
  flex:1 0 100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  max-width:530px;
  gap:5px;
}
.bacc-shared[data-view=table] .bacc-controls .bacc-offer-presets button {
  min-width:0;
  padding-inline:3px;
  overflow-wrap:anywhere;
  white-space:normal;
  font-size:clamp(10px,2.7vw,14px);
}
.bacc-shared[data-view=table] .bacc-controls .bacc-wager-form[data-wager=bank-offer] {
  flex-wrap:wrap;
}
.bacc-catalogue .bacc-management { padding:0 8px 6px; }
.bacc-catalogue .bacc-management button { min-height:36px; }

/* Compact side seats leave the table centre clear for the two revealed hands and the pot. */
.bacc-seat.seat.bacc-rail-seat {
  --bacc-card-w:clamp(22px,6vw,30px);
  width:clamp(65px,26%,132px);top:var(--bacc-rail-y);transform:translateY(-50%);
}
.bacc-shared[data-view=table] .bacc-seat.bacc-rail-seat { top:var(--bacc-rail-y);bottom:auto; }
.bacc-shared[data-view=table] .bacc-seat.bacc-rail-seat[data-edge=left] { left:-3px;right:auto; }
.bacc-shared[data-view=table] .bacc-seat.bacc-rail-seat[data-edge=right] { right:-3px;left:auto; }
.bacc-shared[data-view=table] .bacc-rail-seat .bacc-player-plaque > :is(.seat-name,.seat-chips) {
  min-height:0;margin:0;padding:0;line-height:1.1;
}
.bacc-seat.bacc-rail-seat .bacc-player-plaque {
  min-height:34px;padding:3px 8px;border-radius:10px;background:linear-gradient(#2c4535,#17271d);
}
.bacc-seat.bacc-rail-seat.selected .bacc-player-plaque { border-color:#eec18d; }
.bacc-seat.bacc-rail-seat.bacc-active .bacc-player-plaque { box-shadow:0 0 0 1px #f3c787,0 1px 8px #0007; }
.bacc-shared .bacc-seat.bacc-rail-seat .seat-name {
  font-size:clamp(9px,2.45vw,12px)!important;line-height:1.1;overflow-wrap:anywhere;
}
.bacc-shared .bacc-seat.bacc-rail-seat .seat-chips { font-size:clamp(8px,2.7vw,11px)!important; }
.bacc-seat.bacc-rail-seat .bacc-avatar.seat-avatar,
.bacc-seat.bacc-rail-seat .seat-status { display:none; }
.bacc-seat.bacc-rail-seat .seat-currency-view { top:auto;bottom:-3px;right:-4px;width:15px;height:11px; }
.bacc-seat.bacc-rail-seat .table-location-pin { left:auto;right:-5px;top:-8px; }
.bacc-seat.bacc-rail-seat .bacc-selection-cards.seat-cards { left:50%;transform:translateX(-50%); }
.bacc-seat.bacc-rail-seat .seat-award { top:100%;font-size:9px!important; }
.bacc-bank-order-title { color:var(--bacc-muted);font-size:11px;text-align:center;margin:4px 0 0; }
.bacc-bank-order {
  position:absolute;top:-8px;left:-3px;display:grid;place-items:center;box-sizing:border-box;
  width:16px;height:16px;min-width:0;border:1px solid #eed2a1;border-radius:50%;
  background:#4a3929;color:#ffebbc;font-size:9px;font-weight:800;line-height:1;z-index:8;
}
.bacc-seat.bacc-rail-seat[data-edge=left] .bacc-bank-order { left:auto;right:-3px; }
.bacc-seat.bacc-rail-seat[data-edge=left] .table-location-pin { right:auto;left:-5px; }
.bacc-seat.bacc-rail-seat[data-edge=left] .seat-currency-view { right:auto;left:-4px; }
.bacc-player-connection {
  display:block;font-size:9px;font-weight:660;line-height:1.1;color:#ffd39b;margin-top:2px;
}
.bacc-pot.bacc-pot-retained .table-pot-title { color:#f7d9a7; }
@media (max-width:350px) {
  .bacc-seat.seat.bacc-rail-seat { width:clamp(58px,25%,79px); }
  .bacc-seat.bacc-rail-seat .bacc-player-plaque { padding-inline:4px; }
}

dialog.bacc-full-table {
  position:fixed;
  inset:0;
  box-sizing:border-box;
  width:100%;
  height:100%;
  width:100dvw;
  height:100dvh;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  overflow:auto;
  overscroll-behavior:contain;
  background:#173d2d;
  color:#f3f0e5;
}
dialog.bacc-full-table > .bacc-shared[data-view=table] {
  width:100%;
  min-height:100%;
  padding-top:env(safe-area-inset-top,0px);
  padding-right:max(8px,env(safe-area-inset-right,0px));
  padding-bottom:max(10px,env(safe-area-inset-bottom,0px));
  --bacc-table-left-padding:max(8px,env(safe-area-inset-left,0px));
  padding-left:var(--bacc-table-left-padding);
}

/* Bacará en pantalla completa usa las proporciones de la mesa Android. */
dialog.bacc-full-table { background:#142018; }
.bacc-full-table > .bacc-shared[data-view=table] { background:#142018; }
.bacc-shared[data-view=lobby] .bacc-voice-host,.bacc-shared[data-preview=true] .bacc-felt-decoration { display:none; }
.bacc-full-table .bacc-header { display:flex; align-items:center; gap:6px; justify-content:space-between; }
.bacc-full-table .bacc-header h2 { flex:1 1 auto; min-width:0; margin:0; }
.bacc-full-table .bacc-table-back { flex:0 0 46px; width:46px; min-height:46px; margin:0; padding:0; border:1px solid #a4936e; border-radius:17px; background:linear-gradient(#354332,#203129); color:#f9edd5; font-size:24px; }
.bacc-full-table .bacc-table-help { width:auto; border:0; box-shadow:none; background:transparent; padding:0; color:#efc28d; font-size:clamp(14px,4vw,18px); white-space:nowrap; }
.bacc-full-table .bacc-voice-host { flex:0 0 auto; }
.bacc-full-table .bacc-header .table-voice-controls { margin:0; padding:0; gap:5px; }
.bacc-full-table .bacc-header .table-voice-button { width:40px; min-width:40px; height:40px; min-height:40px; border-radius:50%; }
.bacc-full-table .bacc-header .bacc-connection { font-size:10px; color:#aec0aa; text-align:right; }
.bacc-full-table .bacc-header:has(.table-voice-controls:not([hidden])) .bacc-connection { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.bacc-full-table .bacc-table-phase { position:static; display:flex; justify-content:flex-start; align-items:center; min-height:25px; margin:0 0 3px; padding:2px 0; transform:none; color:#f4eee0; background:transparent; border:0; box-shadow:none; font-size:14px; text-align:left; }
.bacc-full-table .bacc-table-phase .bacc-clock { margin:auto 0 auto auto; }
.bacc-full-table .bacc-scene.table-scene { height:clamp(370px,calc(100dvh - 167px),730px); min-height:0; margin:0; }
.bacc-full-table .bacc-felt.felt { inset:clamp(23px,5.2%,35px) 5px 37px; border:4px solid #755137; border-radius:50% 50% 38% 38% / 25% 25% 25% 25%;
  background:repeating-linear-gradient(35deg,#0000 0 3px,#1435232c 4px 5px),repeating-linear-gradient(105deg,#0000 0 7px,#7790670c 8px 9px),radial-gradient(ellipse at 48% 39%,#285540,#194131 75%,#133528); box-shadow:inset 0 0 0 5px #37392c,inset 0 0 0 8px #18291e,0 4px 0 #4f3120,0 9px 12px #07100a85; }
.bacc-full-table .bacc-felt.felt > .felt-inner { inset:15px; border-color:#c1b2745c; }
.bacc-felt-decoration { display:none; }
.bacc-full-table .bacc-felt-decoration { position:absolute; top:70%; left:50%; display:grid; grid-template-columns:1fr; justify-items:center; color:#d2c88666; font:700 clamp(26px,7.4vw,43px)/.86 Georgia,serif; transform:translate(-50%,-50%); pointer-events:none; }
.bacc-full-table .bacc-felt-decoration::before,.bacc-full-table .bacc-felt-decoration::after { content:'❧  ♢  ❧'; color:#c5ad646e; font-size:.4em; white-space:nowrap; }
.bacc-full-table .bacc-felt-decoration::after { transform:rotate(180deg); }
.bacc-full-table .bacc-seat .bacc-player-plaque { background:linear-gradient(#2b352d,#17221b); border-color:#84917c; box-shadow:0 1px 3px #0007; }
.bacc-full-table .bacc-player-plaque > .seat-name { color:#f4ecdc; }
.bacc-full-table .bacc-player-plaque > .seat-chips { color:#c9dfc9; }
.bacc-full-table .bacc-seat.bacc-rail-seat .bacc-player-plaque { min-height:34px;border-radius:9px;background:#20382de8; }
.bacc-full-table .bacc-seat.bacc-rail-seat .seat-name { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.bacc-full-table .bacc-seat.bacc-rail-seat .bacc-bank-order { top:50%;left:4px;right:auto;transform:translateY(-50%);background:#b89e79;border-color:#b89e79;color:#163022; }
.bacc-full-table .bacc-seat.bacc-rail-seat .bacc-player-plaque:has(.bacc-bank-order:not([hidden])) { padding-left:21px; }
.bacc-full-table .bacc-player-plaque > .seat-turn-outline .seat-time-value { top:auto; bottom:4px; right:6px; left:auto; line-height:1; font-size:10px; color:#f5cc9d; }
.bacc-full-table .bacc-player-plaque > .seat-turn-outline .seat-time-value::after {content:' s';}
.bacc-full-table .bacc-avatar > .seat-time-extra { width:23px;height:23px;border-radius:50%;background:#182b23; }
.bacc-full-table .bacc-avatar > .seat-time-extra svg { width:23px;height:23px; }
.bacc-full-table .bacc-avatar > .seat-time-extra strong { top:8px; }
.bacc-full-table .bacc-avatar > .seat-time-extra::before { content:'Extra';position:absolute;top:2px;left:0;right:0;color:#a7d9e6;font-size:6px;text-align:center;line-height:1; }
.bacc-full-table .bacc-table-center { top:50%; align-items:center; }
.bacc-full-table .bacc-pot:not([hidden]) { display:flex; gap:.3em; border:0; border-radius:0; background:none; padding:1px 4px; }
.bacc-full-table .bacc-pot > .pot-stack { display:none; }
.bacc-full-table .bacc-pot > :is(.table-pot-title,.table-pot-amount) { font-size:15px; font-weight:750; color:#ffe4b3; }
.bacc-full-table .bacc-pot > .table-pot-title::after { content:' ·'; }
.bacc-full-table .bacc-bank-order-title { margin:3px 0;color:#bac6b5;font-size:11px;text-align:left; }
.bacc-play-wallet { margin:2px 0 5px;color:#f2eadb;font-size:13px;font-weight:700; }
.bacc-table-toolbar { display:flex; gap:5px; align-items:center; margin-top:4px; }
.bacc-table-toolbar:not(:has(>button:not([hidden]))) { display:none; }
.bacc-full-table .bacc-table-toolbar > button { width:auto; min-height:44px; margin:0; padding:6px 13px; border-radius:17px; border:1px solid #9a8b67; background:linear-gradient(#344531,#203229);color:#f2ead8; }
.bacc-full-table .bacc-table-toolbar > [data-action=stand] { border-color:#53695c;background:#23362c; }
.bacc-full-table .bacc-controls button { min-height:44px; }
@media (max-width:600px) {
  .bacc-full-table .bacc-seat.seat[data-position='0'] { left:24%; top:93%; width:clamp(112px,39vw,156px); }
  .bacc-full-table .bacc-seat.seat[data-position='3'] { left:50%; top:14%; width:clamp(97px,27vw,125px); }
  .bacc-full-table .bacc-seat[data-position='0'] { --bacc-card-w:clamp(44px,16vw,67px); }
  .bacc-full-table .bacc-seat[data-position='3'] { --bacc-card-w:clamp(24px,7vw,34px); }
  .bacc-full-table .bacc-seat[data-position='0'] .bacc-selection-cards.seat-cards { left:calc(50% + 18px); top:calc(-1 * var(--bacc-card-h) - 6px); }
  .bacc-full-table .bacc-seat[data-position='0'] > .bacc-point-draw { left:calc(50% + 25px + var(--bacc-card-w)); top:calc(-1 * var(--bacc-card-h) - 6px); }
  .bacc-full-table .bacc-seat[data-position='3'].bacc-hand-inward .bacc-selection-cards.seat-cards { top:calc(-1 * var(--bacc-card-h) + 1px); }
  .bacc-full-table .bacc-seat[data-position='3'].bacc-hand-inward > .bacc-point-draw { top:calc(-1 * var(--bacc-card-h) + 1px); }
  .bacc-full-table .bacc-seat[data-position='3'].bacc-hand-inward.has-cards .bacc-avatar { top:calc(-1 * var(--bacc-card-h) - 19px); }
  .bacc-full-table .bacc-seat[data-position='0'] .seat-currency-view { top:2px;right:2px; }
  .bacc-full-table .bacc-seat[data-position='3'] .seat-currency-view { top:0;right:auto;left:-21px; }
  .bacc-full-table .bacc-seat[data-position='0'] .seat-status { top:auto; bottom:1px; left:calc(100% + 12px); width:auto; text-align:left; white-space:nowrap; }
  .bacc-full-table .bacc-seat .bacc-selection-cards .bacc-card:not(:first-child) { margin-left:calc(-1 * var(--bacc-card-w) * .10); }
  .bacc-full-table .bacc-scene.bacc-showdown .bacc-seat.bacc-role-hand { --bacc-card-w:clamp(33px,11vw,53px); }
  .bacc-full-table .bacc-scene.bacc-showdown .bacc-seat[data-position='0'] .bacc-selection-cards.seat-cards { top:calc(-1 * var(--bacc-card-h) - 13px); }
}

.bacc-full-table .bacc-header h2 { text-align:left; }
.bacc-full-table .bacc-shared .bacc-header .bacc-table-back { padding:0; border:1px solid #a4936e; border-radius:17px; background:linear-gradient(#354332,#203129); }
.bacc-full-table .bacc-header .table-voice-controls { position:relative; inset:auto; flex-wrap:nowrap; max-width:none; }
.bacc-full-table .bacc-header .table-voice-button { color:#edc395; }
.bacc-full-table .bacc-header .table-voice-status:not([data-needs-attention=true]) { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
.bacc-full-table .bacc-header:has(.table-voice-status[data-needs-attention=true]:not([hidden])) { align-items:flex-start; }
.bacc-full-table .bacc-header:has(.table-voice-status[data-needs-attention=true]:not([hidden])) h2 { top:22px; }
.bacc-full-table .bacc-header .table-voice-controls:has(.table-voice-status[data-needs-attention=true]:not([hidden])) {
  flex-wrap:wrap; width:clamp(106px,42vw,210px);
}
.bacc-full-table .bacc-header .table-voice-status[data-needs-attention=true] {
  position:static; box-sizing:border-box; max-width:100%; background:transparent;
}
.bacc-full-table .bacc-scene.table-scene { height:clamp(370px,calc(100dvh - 195px),730px); }
/* The roles, cards and clocks follow the player while their occupied seat stays fixed. */
.bacc-full-table .bacc-seat.seat.bacc-rail-seat { width:clamp(72px,25%,105px); }
.bacc-seat.bacc-rail-seat.bacc-playing-role .seat-status { display:block; top:calc(100% + 2px); left:0; width:100%; text-align:center; }
.bacc-seat.bacc-rail-seat.bacc-playing-role .seat-avatar { display:block; width:0; height:0; top:-22px; left:calc(50% + 12px); transform:none; background:none; border:0; box-shadow:none; }
.bacc-seat.bacc-rail-seat.bacc-playing-role.bacc-active .seat-turn-outline { color:#efca85; }
.bacc-seat.bacc-rail-seat[data-edge=left] .bacc-selection-cards.seat-cards { left:calc(100% + 6px); top:50%; transform:translateY(-50%); }
.bacc-seat.bacc-rail-seat[data-edge=right] .bacc-selection-cards.seat-cards { left:auto; right:calc(100% + 6px); top:50%; transform:translateY(-50%); }
.bacc-seat.bacc-rail-seat[data-edge=left] > .bacc-point-draw { left:calc(100% + 6px); top:calc(50% + var(--bacc-card-h) / 2 + 4px); }
.bacc-seat.bacc-rail-seat[data-edge=right] > .bacc-point-draw { left:auto; right:calc(100% + 6px); top:calc(50% + var(--bacc-card-h) / 2 + 4px); }
.bacc-seat.bacc-rail-seat .bacc-hand-score { top:calc(50% - var(--bacc-card-h) / 2 - 14px); width:23px; height:23px; font-size:14px; }
.bacc-seat.bacc-rail-seat[data-edge=left] .bacc-hand-score { left:calc(100% + 6px); right:auto; }
.bacc-seat.bacc-rail-seat[data-edge=right] .bacc-hand-score { right:calc(100% + 6px); left:auto; }
.bacc-seat.bacc-rail-seat[data-edge=left] .seat-award { left:calc(100% + 6px); right:auto; top:calc(50% + var(--bacc-card-h) / 2 + 3px); }
.bacc-seat.bacc-rail-seat[data-edge=right] .seat-award { right:calc(100% + 6px); left:auto; top:calc(50% + var(--bacc-card-h) / 2 + 3px); }
.bacc-full-table .bacc-scene.bacc-showdown .bacc-seat.bacc-rail-seat.bacc-role-hand { --bacc-card-w:clamp(29px,9vw,43px); }
/* Full-screen Bacará follows the Cartas table layout. Catalogue previews keep their compact layout. */
.bacc-header-meta { display:none; }
.bacc-full-table .bacc-header { position:relative;display:flex;gap:5px;min-height:44px;padding:0; }
.bacc-full-table .bacc-header h2 { position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;width:max-content;color:#f1c498;font:750 14px/1.1 system-ui;text-align:center;pointer-events:none; }
.bacc-full-table .bacc-shared .bacc-header .bacc-table-back { flex:0 0 42px;width:42px;min-height:44px;font-size:23px;border:0;border-radius:0;background:none;color:#dbeadf;box-shadow:none; }
.bacc-full-table .bacc-header-meta { order:1;display:grid;justify-items:start;align-content:center;gap:1px;color:#dfe9e1;font:650 10px/1.15 system-ui;text-align:left; }
.bacc-full-table .bacc-header-meta .display-currency { font:650 10px/1.15 system-ui;min-height:20px;margin:0;padding:2px 0;border:0;background:none;box-shadow:none;color:#e2f1e5; }
.bacc-full-table .bacc-header-meta .display-currency:not([hidden])::after { content:" ▾"; }
.bacc-full-table .bacc-voice-host { order:2;margin-inline-start:auto; }
.bacc-full-table .bacc-header .table-voice-button { width:34px;min-width:34px;height:34px;min-height:34px;color:#c6cbc8; }
.bacc-full-table .bacc-shared .bacc-header .bacc-table-help { order:3;flex:0 0 28px;width:28px;min-height:42px;padding:0;border:0;background:none;box-shadow:none;font:750 20px/1 system-ui;color:#dbeadf; }
.bacc-full-table .bacc-table-top { min-height:33px;display:flex;justify-content:space-between;align-items:center;gap:6px; }
.bacc-full-table .bacc-play-wallet { margin:0;padding:4px 7px;border:1px solid #677b64;border-radius:12px;background:#283828;color:#f5e8d4;font:650 10px/1.2 system-ui;max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.bacc-full-table .bacc-table-top > [data-action=stand] { display:flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:88px;max-width:136px;min-height:29px;margin:0 0 0 auto;padding:3px 7px;border:1px solid #52695c;border-radius:13px;background:#203229;color:#efeadd;font:650 10px/1.05 system-ui;box-shadow:inset 0 1px #f0e0a513; }
.bacc-full-table .bacc-table-top > [data-action=stand] svg { width:14px;height:14px;flex:none; }
.bacc-full-table .bacc-table-top > [data-action=stand][hidden],.bacc-full-table .bacc-play-wallet[hidden] { display:none; }
.bacc-full-table .bacc-table-phase { justify-content:center;min-height:31px;margin:0;color:#f1c498;font:750 13px/1.15 system-ui;text-align:center; }
.bacc-full-table .bacc-table-phase .bacc-stage-clocks:has(.bacc-clock:not([hidden])) { display:flex; }
.bacc-full-table .bacc-scene.table-scene { height:clamp(380px,calc(100dvh - 170px),760px); }
.bacc-full-table .bacc-felt.felt { inset:11px 14px 24px;border:0;border-radius:50% / 28%;background:linear-gradient(135deg,#957354,#604433 22%,#795539 55%,#463324 75%,#705138);box-shadow:0 5px 0 #080c0963; }
.bacc-full-table .bacc-felt.felt::before { content:none; }
.bacc-full-table .bacc-felt.felt::after { content:"";display:block;position:absolute;pointer-events:none;inset:6px;border:0;border-radius:inherit;background:repeating-linear-gradient(135deg,#fcf6e208 0 .55px,transparent .55px 3.2px),linear-gradient(135deg,#43463b,#34372d 25%,#252a21 70%,#3c4032);z-index:0; }
.bacc-full-table .bacc-felt.felt > .felt-inner { inset:18px;border:1px solid #243c2a;border-radius:inherit;background:repeating-linear-gradient(76deg,#20282408 0 .45px,transparent .45px 3.8px),repeating-linear-gradient(2deg,#c3c69405 0 .55px,transparent .55px 4.3px),radial-gradient(ellipse at 50% 40%,#2a543e,#204a36 40%,#1c4432 69%,#143627);box-shadow:inset 0 0 0 7px #204a3636,inset 0 0 0 8px #c0c59a38;z-index:1; }
.bacc-full-table .bacc-felt.felt > .felt-inner::after { content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20600%20900%22%20preserveAspectRatio%3D%22none%22%3E%0A%3Cdefs%3E%0A%20%3Cpath%20id%3D%22flourish%22%20d%3D%22M-4%200%20C-32%20-22%20-63%2019%20-98%207%20C-137%20-9%20-134%20-32%20-116%20-30%20C-101%20-28%20-110%20-9%20-121%20-17%20M4%200%20C32%20-22%2063%2019%2098%207%20C137%20-9%20134%20-32%20116%20-30%20C101%20-28%20110%20-9%20121%20-17%20M-35%20-4%20C-52%20-37%20-79%20-33%20-94%20-21%20M35%20-4%20C52%20-37%2079%20-33%2094%20-21%22%2F%3E%0A%20%3Cpath%20id%3D%22spade%22%20d%3D%22M0-23C-6-13-24-6-23%207C-22%2023-7%2024%200%2013C7%2024%2022%2023%2023%207C24-6%206-13%200-23ZM0%2011C-1%2021-3%2028-10%2031H10C3%2028%201%2021%200%2011Z%22%2F%3E%0A%20%3Cpath%20id%3D%22heart%22%20d%3D%22M0%2022C-9%2013-24%204-24-8C-24-26-5-27%200-15C5-27%2024-26%2024-8C24%204%209%2013%200%2022Z%22%2F%3E%0A%20%3Cpath%20id%3D%22diamond%22%20d%3D%22M0-26L18%200L0%2026L-18%200Z%22%2F%3E%0A%20%3Cpath%20id%3D%22club%22%20d%3D%22M0-3C-18-16-18%2014-5%2013C-7%2018-8%2024-13%2027H13C8%2024%207%2018%205%2013C18%2014%2018-16%200-3C19-11%209-30%200-27C-9-30-19-11%200-3Z%22%2F%3E%0A%3C%2Fdefs%3E%0A%3Cg%20fill%3D%22none%22%20stroke%3D%22%23cba45d%22%20stroke-width%3D%221.1%22%20opacity%3D%22.48%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%20%3Cuse%20href%3D%22%23flourish%22%20transform%3D%22translate(110%20110)%20rotate(-47)%20scale(.55)%22%2F%3E%0A%20%3Cuse%20href%3D%22%23flourish%22%20transform%3D%22translate(490%20110)%20rotate(47)%20scale(.55)%22%2F%3E%0A%20%3Cuse%20href%3D%22%23flourish%22%20transform%3D%22translate(110%20790)%20rotate(47)%20scale(.55)%22%2F%3E%0A%20%3Cuse%20href%3D%22%23flourish%22%20transform%3D%22translate(490%20790)%20rotate(-47)%20scale(.55)%22%2F%3E%0A%20%3Cuse%20href%3D%22%23flourish%22%20transform%3D%22translate(300%20545)%20scale(.67)%22%2F%3E%0A%20%3Cuse%20href%3D%22%23flourish%22%20transform%3D%22translate(300%20658)%20scale(.45)%22%2F%3E%0A%20%3Cuse%20href%3D%22%23spade%22%20transform%3D%22translate(75%20385)%20scale(.65)%22%2F%3E%0A%20%3Cuse%20href%3D%22%23heart%22%20transform%3D%22translate(525%20385)%20scale(.65)%22%2F%3E%0A%20%3Cuse%20href%3D%22%23diamond%22%20transform%3D%22translate(75%20675)%20scale(.65)%22%2F%3E%0A%20%3Cuse%20href%3D%22%23club%22%20transform%3D%22translate(525%20675)%20scale(.65)%22%2F%3E%0A%20%3Cg%20transform%3D%22translate(300%20230)%22%3E%0A%20%20%3Cg%20transform%3D%22translate(-42%206)%20rotate(-24)%22%3E%3Crect%20x%3D%22-17%22%20y%3D%22-27%22%20width%3D%2234%22%20height%3D%2254%22%20rx%3D%223%22%2F%3E%3Cuse%20href%3D%22%23spade%22%20transform%3D%22scale(.3)%22%2F%3E%3C%2Fg%3E%0A%20%20%3Cg%20transform%3D%22translate(-14%200)%20rotate(-8)%22%3E%3Crect%20x%3D%22-17%22%20y%3D%22-27%22%20width%3D%2234%22%20height%3D%2254%22%20rx%3D%223%22%2F%3E%3Cuse%20href%3D%22%23heart%22%20transform%3D%22scale(.3)%22%2F%3E%3C%2Fg%3E%0A%20%20%3Cg%20transform%3D%22translate(14%200)%20rotate(8)%22%3E%3Crect%20x%3D%22-17%22%20y%3D%22-27%22%20width%3D%2234%22%20height%3D%2254%22%20rx%3D%223%22%2F%3E%3Cuse%20href%3D%22%23diamond%22%20transform%3D%22scale(.3)%22%2F%3E%3C%2Fg%3E%0A%20%20%3Cg%20transform%3D%22translate(42%206)%20rotate(24)%22%3E%3Crect%20x%3D%22-17%22%20y%3D%22-27%22%20width%3D%2234%22%20height%3D%2254%22%20rx%3D%223%22%2F%3E%3Cuse%20href%3D%22%23club%22%20transform%3D%22scale(.3)%22%2F%3E%3C%2Fg%3E%0A%20%3C%2Fg%3E%0A%20%3Cg%20transform%3D%22translate(300%20855)%20scale(.32)%22%3E%3Cuse%20href%3D%22%23spade%22%20x%3D%22-110%22%2F%3E%3Cuse%20href%3D%22%23heart%22%20x%3D%22-37%22%2F%3E%3Cuse%20href%3D%22%23diamond%22%20x%3D%2237%22%2F%3E%3Cuse%20href%3D%22%23club%22%20x%3D%22110%22%2F%3E%3C%2Fg%3E%0A%3C%2Fg%3E%3C%2Fsvg%3E") center/100% 100% no-repeat; }
.bacc-full-table .bacc-felt-decoration { top:66%;z-index:1;color:#d6deba8b;font:800 clamp(22px,7vw,38px)/1 system-ui; }
.bacc-full-table .bacc-felt-decoration::before,.bacc-full-table .bacc-felt-decoration::after { content:none; }
.bacc-full-table .bacc-table-center { top:36%; }
.bacc-full-table .bacc-pot:not([hidden]) { display:grid;grid-template-columns:15px minmax(0,1fr);grid-template-rows:auto auto;min-width:132px;min-height:40px;justify-items:center;align-content:center;gap:1px 5px;position:relative;padding:3px 10px;border:1px solid #9faa7a94;border-radius:999px;background:#182e24; }
.bacc-full-table .bacc-pot > .pot-stack { display:flex;position:relative;inset:auto;grid-column:1;grid-row:1/3;align-self:end;margin:0 0 1px;transform:none; }
.bacc-full-table .bacc-pot > .pot-stack i { width:13px;height:13px;margin:0;margin-left:-13px; }
.bacc-full-table .bacc-pot > .pot-stack i:first-child { margin-left:0; }
.bacc-full-table .bacc-pot > .pot-stack i:nth-child(2) { transform:translateY(-3px); }
.bacc-full-table .bacc-pot > .pot-stack i:nth-child(3) { transform:translateY(-6px); }
.bacc-full-table .bacc-pot > .table-pot-title { grid-column:2;grid-row:1;color:#f3f0e5;font:600 10px/1.12 system-ui; }
.bacc-full-table .bacc-pot > .table-pot-title::after { content:none; }
.bacc-full-table .bacc-pot > .table-pot-amount { grid-column:2;grid-row:2;color:#edc29a;font:800 17px/1.05 system-ui;white-space:nowrap; }
.bacc-full-table .bacc-seat.seat { z-index:3; }
.bacc-full-table .bacc-seat.seat .bacc-player-plaque { min-height:34px;padding:3px 9px;border-color:#788374;border-radius:8px;background:linear-gradient(#29312a,#151d16); }
.bacc-full-table .bacc-seat.seat .bacc-player-plaque > .seat-chips { color:#77d8eb; }
.bacc-full-table .bacc-seat.seat.bacc-own .bacc-player-plaque { border-radius:18px; }
.bacc-full-table .bacc-seat .bacc-avatar.seat-avatar { width:44px;height:44px;top:-43px; }
.bacc-full-table .bacc-seat.bacc-playing-role .seat-status { left:50%;right:auto;top:calc(100% + 3px);bottom:auto;transform:translateX(-50%);width:max-content;max-width:100%;border:1px solid #699285;border-radius:6px;padding:3px 6px;background:#142c21;color:#d7eadb;font:750 9px/1 system-ui;text-align:center;white-space:nowrap;z-index:4; }
.bacc-full-table .bacc-seat.bacc-playing-role[data-role=banca] .seat-status { background:#392c20;border-color:#a9805d;color:#f0caa4; }
.bacc-full-table .bacc-seat:not(.bacc-playing-role) .seat-status { color:#bbc4b7;font-size:9px; }
.bacc-full-table .bacc-controls.betting-actions { position:relative;z-index:10;display:flex;flex-wrap:nowrap;justify-content:stretch;align-items:stretch;gap:5px;min-height:46px;padding:0;margin:0; }
@media (orientation:landscape) {
  .bacc-full-table .bacc-controls.betting-actions { margin-top:14px; }
}
.bacc-full-table .bacc-controls.betting-actions > button:not([hidden]) { display:block;flex:1 1 0;min-width:0;min-height:44px;height:44px;margin:0;padding:4px 4px;white-space:pre-line;line-height:1.08;font-size:clamp(10px,3.2vw,13px);border:1px solid #9a8b65;border-radius:17px;background:#202d22;color:#f3f0e5;box-shadow:inset 0 1px #ffffff17,0 2px 4px #0005; }
.bacc-full-table .bacc-controls.betting-actions > button:not([hidden]):not(:has(~button:not([hidden]))) { background:linear-gradient(#f4d5b0,#dfa46c);color:#332517;border-color:#edcb9c;box-shadow:inset 0 1px #fff9,0 2px 4px #0005; }
.bacc-full-table .bacc-controls.betting-actions > button[hidden],.bacc-seat-options[hidden] { display:none; }
.bacc-full-table .bacc-table-toolbar { justify-content:center; }
.bacc-full-table .bacc-table-toolbar > button { min-height:34px;font:700 11px/1.2 system-ui;padding:4px 9px; }
.bacc-seat-options { padding:8px 4px;color:#edd3ad;font:650 12px/1.2 system-ui; }
.bacc-seat-options > summary { width:max-content;cursor:pointer;padding:5px 7px; }
.bacc-seat-options-list { display:flex;flex-wrap:wrap;gap:6px;padding:5px 0; }
.bacc-seat-option .bacc-seat-join { min-height:36px;padding:5px 9px; }
.bacc-wager-rail { position:absolute;z-index:6;right:0;bottom:39px;width:clamp(94px,29vw,123px); }
.bacc-wager-rail:not(:has(.bacc-wager-form:not([hidden]))),.bacc-wager-rail .bacc-wager-form[hidden] { display:none; }
.bacc-full-table .bacc-wager-rail .bacc-wager-form:not([hidden]) { display:flex;flex-direction:column;gap:3px;align-items:stretch;margin:0;padding:0; }
.bacc-full-table .bacc-wager-rail .bacc-wager-form > label { flex:0 0 auto;max-width:none;display:grid;gap:3px;color:#e0d7c1;font:620 10px/1.15 system-ui; }
.bacc-full-table .bacc-wager-track { --bet-track-height:clamp(146px,23dvh,230px);position:absolute;right:calc(100% + 10px);bottom:6px;width:46px;height:var(--bet-track-height);display:grid;place-items:center;filter:drop-shadow(0 2px 2px #0009); }
.bacc-full-table .bacc-wager-track::before { position:absolute;inset:13px 0 0;content:"";clip-path:polygon(0 2%,5% 0,95% 0,100% 2%,82% 19%,70% 43%,63% 65%,61% 97%,55% 100%,45% 100%,39% 97%,37% 65%,30% 43%,18% 19%);background:repeating-linear-gradient(0deg,transparent 0 16px,#fff4a570 16px 17px),linear-gradient(#ffe354,#ecac35 54%,#c96825);pointer-events:none; }
.bacc-full-table .bacc-wager-rail .bacc-wager-form input.bacc-wager-slider { position:relative;width:100%;height:var(--bet-track-height);min-height:0;margin:0;padding:0;appearance:none;writing-mode:vertical-lr;direction:rtl;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:ns-resize;touch-action:none; }
.bacc-full-table .bacc-wager-slider::-webkit-slider-thumb { width:29px;height:29px;appearance:none;border:3px dashed #f6f3e8;border-radius:50%;background:radial-gradient(circle,#e6e4dc 0 36%,#252524 41% 68%,#e6e4dc 74%);box-shadow:0 2px 4px #000c; }
.bacc-full-table .bacc-wager-slider::-moz-range-thumb { width:24px;height:24px;border:3px dashed #f6f3e8;border-radius:50%;background:radial-gradient(circle,#e6e4dc 0 36%,#252524 41% 68%,#e6e4dc 74%);box-shadow:0 2px 4px #000c; }
.bacc-full-table .bacc-wager-rail .bacc-wager-form input:not(.bacc-wager-slider):not([hidden]) { width:100%;min-height:32px;padding:3px 7px;border:1px solid #a59d7a;border-radius:7px;background:#19291f;color:#f1e6ce;font:700 14px/1 system-ui;text-align:right; }
.bacc-full-table .bacc-wager-rail .bacc-wager-form .bacc-offer-presets { display:grid;grid-template-columns:1fr;gap:4px; }
.bacc-full-table .bacc-wager-rail .bacc-wager-form .bacc-offer-presets button { min-height:31px;height:31px;margin:0;border:1px solid #a1976f;border-radius:14px;background:linear-gradient(#3c4a36,#263629);color:#ffdb90;font:750 13px/1 system-ui;box-shadow:inset 0 1px #fff2; }
.bacc-full-table .bacc-wager-rail :is(.bacc-wager-limit,.bacc-wager-error) { margin:0;font:600 9px/1.16 system-ui;text-align:right;color:#f1d6ab; }
.bacc-full-table .bacc-wager-rail .bacc-wager-error:empty { display:none; }
@media(max-width:650px) and (orientation:portrait) {
  .bacc-full-table .bacc-seat.seat[data-position="3"] { top:11%;width:clamp(88px,26vw,108px); }
  .bacc-full-table .bacc-seat.seat[data-position="0"] { left:20%;top:94%;width:clamp(102px,30vw,132px); }
  .bacc-full-table .bacc-seat.seat[data-position="0"] .bacc-selection-cards.seat-cards { left:50%; }
  .bacc-full-table .bacc-seat.seat[data-position="0"] .bacc-avatar.seat-avatar { left:13%; }
  .bacc-full-table .bacc-seat.seat[data-position="0"].bacc-playing-role .seat-status { top:2px;left:calc(100% + 8px);transform:none; }
  .bacc-full-table .bacc-felt:not(.bacc-legacy-seats) .bacc-seat.seat.bacc-rail-seat { width:clamp(83px,24vw,106px);top:calc(var(--bacc-rail-y) * 1.20 - 16%); }
  .bacc-full-table .bacc-felt:not(.bacc-legacy-seats) .bacc-seat.bacc-rail-seat[data-edge=left] { left:-8px; }
  .bacc-full-table .bacc-felt:not(.bacc-legacy-seats) .bacc-seat.bacc-rail-seat[data-edge=right] { right:-8px; }
}
@media(min-width:760px) {
  .bacc-full-table .bacc-table { max-width:min(1120px,96vw);margin-inline:auto; }
  .bacc-full-table .bacc-header { max-width:min(1120px,96vw);margin-inline:auto; }
  .bacc-full-table .bacc-felt.felt { inset:15px 7% 24px;border-radius:44% / 40%; }
  .bacc-full-table .bacc-seat.seat[data-position="0"] { top:95%; }
}

/* The confirmed local seat uses the full-sized Cartas hand throughout the round. */
.bacc-full-table {
  --bacc-own-card-w:clamp(48px,15.5vw,68px);
  --bacc-own-card-h:calc(var(--bacc-own-card-w) * 1.43);
}
.bacc-full-table .bacc-seat.bacc-own[data-position='0'],
.bacc-full-table .bacc-scene.bacc-showdown .bacc-seat.bacc-own.bacc-role-hand[data-position='0'] { --bacc-card-w:var(--bacc-own-card-w); }
.bacc-full-table .bacc-seat.bacc-own[data-position='0'] .bacc-selection-cards.seat-cards { left:50%;top:calc(-1 * var(--bacc-card-h) - 6px); }
.bacc-full-table .bacc-scene.bacc-showdown .bacc-seat.bacc-own[data-position='0'] .bacc-selection-cards.seat-cards { top:calc(-1 * var(--bacc-card-h) - 6px); }

/* End-of-hand status, with the same restrained frame as the chess scoreboard. */
.bacc-shared[data-view=table] .bacc-result.bacc-round-result {
  position:absolute; inset:43% auto auto 50%; transform:translate(-50%,-50%); z-index:12;
  width:min(78%,306px); box-sizing:border-box; margin:0; padding:7px;
  border:1px solid #728577; border-radius:13px; background:#172b21; color:#ebeadb;
  box-shadow:0 4px 16px #0b18109c; pointer-events:none;
}
.bacc-scorecard[hidden],.bacc-scorecard :is(.bacc-result-title,.bacc-result-hands,.bacc-result-prizes)[hidden] { display:none; }
.bacc-scorecard-header { min-width:0; padding:1px 3px 5px; }
.bacc-scorecard :is(.bacc-center-tie,.bacc-center-winner) {
  position:static; transform:none; border:0; border-radius:0; background:transparent;
  width:auto; padding:0; color:#f1cea2; text-transform:none; font-size:14px; line-height:1.25;
  overflow-wrap:anywhere;
}
.bacc-scorecard .bacc-tie-time { color:#cad9cd; font-weight:500; }
.bacc-scorecard .bacc-result-hands { display:grid; gap:4px; margin:0; }
.bacc-scorecard .bacc-result-hand {
  grid-template-columns:minmax(0,1fr) auto 24px; gap:5px; min-height:44px; box-sizing:border-box;
  border:1px solid #475c50; padding:3px 5px; color:#f7f3e7; background:#20372b;
}
.bacc-scorecard .bacc-result-winning-hand { border-color:#ceaa76; background:#304438; }
.bacc-result-identity { display:grid; gap:2px; text-align:left; min-width:0; }
.bacc-result-identity > small { color:#bfd2c3; font-size:10px; line-height:1; }
.bacc-result-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.bacc-result-cards { display:flex; align-items:center; gap:3px; }
.bacc-result-cards > .bacc-card {
  display:block; flex:none; width:clamp(25px,8vw,34px); height:auto; aspect-ratio:1 / 1.43; margin:0;
  opacity:1; transform:none; filter:none; box-shadow:none; border-radius:3px;
}
.bacc-result-cards .bacc-card-corner { font-size:clamp(9px,2.6vw,11px); }
.bacc-result-cards .bacc-card-pip { font-size:clamp(13px,4vw,21px); }
.bacc-scorecard .bacc-result-score { font-size:17px; line-height:1; color:#f6d79f; font-variant-numeric:tabular-nums; }
.bacc-scorecard .bacc-result-prizes { margin:5px 1px 0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:11px; }
.bacc-information .bacc-scorecard .bacc-result-cards > .bacc-card { width:clamp(30px,11vw,50px); }
.bacc-shared[data-view=table] .bacc-result.bacc-round-result[hidden] { display:none; }
.bacc-scene:has(.bacc-round-result:not([hidden])) .bacc-pot { visibility:hidden; }
.bacc-scene:has(.bacc-round-result:not([hidden])) .bacc-effects { z-index:13; }
@media(max-width:360px) {
  .bacc-shared[data-view=table] .bacc-result.bacc-round-result { padding:3px 5px; }
  .bacc-round-result .bacc-scorecard-header { padding:0 2px 3px; }
  .bacc-round-result .bacc-result-hand { min-height:39px; padding:2px 4px; grid-template-columns:minmax(0,1fr) auto 19px; }
  .bacc-round-result .bacc-result-cards > .bacc-card { width:24px; }
  .bacc-round-result .bacc-result-prizes { margin:2px 0 0; font-size:10px; }
}

/* The renderer populates these coordinates through the shared Cartas geometry. */
.bacc-seats { position:absolute; inset:0; pointer-events:none; }
.bacc-seats > .bacc-seat { pointer-events:auto; }
.bacc-table:not([data-native-card-portrait]):not([data-native-card-landscape]) .bacc-seats > .seat[data-position='0'] { left:50%;top:87%; }
.bacc-table:not([data-native-card-portrait]):not([data-native-card-landscape]) .bacc-seats > .seat[data-position='1'] { left:87%;top:70%; }
.bacc-table:not([data-native-card-portrait]):not([data-native-card-landscape]) .bacc-seats > .seat[data-position='2'] { left:83%;top:25%; }
.bacc-table:not([data-native-card-portrait]):not([data-native-card-landscape]) .bacc-seats > .seat[data-position='3'] { left:50%;top:18%;translate:0 20px; }
.bacc-table:not([data-native-card-portrait]):not([data-native-card-landscape]) .bacc-seats > .seat[data-position='4'] { left:17%;top:25%; }
.bacc-table:not([data-native-card-portrait]):not([data-native-card-landscape]) .bacc-seats > .seat[data-position='5'] { left:13%;top:70%; }

.bacc-table[data-native-card-portrait] .bacc-seats > .seat {
  left:var(--apk-seat-x);top:var(--apk-seat-y);width:var(--apk-plate-w);height:var(--apk-plate-h);
  transform:translateX(-50%);transition:none;
}
.bacc-table[data-native-card-portrait] .bacc-seats > .seat[data-position='3'] { translate:0 25px; }
/* Reserve the local hand and the neighboring seat label on short portrait tables. */
.bacc-full-table .bacc-table[data-native-card-portrait] .bacc-seats > .seat:is([data-position='1'],[data-position='5']) {
  top:min(var(--apk-seat-y), calc(100% - 47 * var(--apk-unit) - var(--bacc-own-card-h) - var(--apk-plate-h) - 24px));
}
.bacc-full-table .bacc-table[data-native-card-portrait] .bacc-own .bacc-selection-cards.seat-cards:has(> .bacc-card:nth-child(3)) {
  transform:translateX(max(-50%, calc(1px - var(--bacc-table-left-padding) - var(--apk-seat-x))));
}
.bacc-table[data-native-card-portrait] .bacc-seats > .seat .bacc-avatar.seat-avatar {
  left:calc(50% + var(--apk-avatar-x));top:var(--apk-avatar-y);width:var(--apk-avatar-size);height:var(--apk-avatar-size);
  transform:translate(-50%,-50%);
}
.bacc-table[data-native-card-portrait] .bacc-seats > .seat:not(.selected) .bacc-avatar.seat-avatar {
  left:50%;top:-21px;width:52px;height:52px;translate:none;
}
.bacc-table[data-native-card-portrait] .bacc-seats > .seat[data-position='3']:not(.selected) .bacc-avatar.seat-avatar {
  top:-21px;width:44px;height:44px;
}
.bacc-table[data-native-card-portrait] .bacc-seats > .seat.has-cards .bacc-avatar.seat-avatar { translate:0 -12px; }
.bacc-table[data-native-card-portrait] .bacc-seats > .seat > .bacc-player-plaque {
  box-sizing:border-box;min-height:0;height:100%;padding-block:1px;
}
.bacc-table[data-native-card-portrait] .bacc-seats > .seat[data-position='3'].bacc-hand-inward .bacc-selection-cards.seat-cards,
.bacc-table[data-native-card-portrait] .bacc-seats > .seat[data-position='3'].bacc-hand-inward > .bacc-point-draw {
  top:calc(100% + 15px);
}

.bacc-table[data-native-card-landscape] .bacc-seats > .seat {
  left:var(--native-seat-left);top:var(--native-seat-top);right:auto;bottom:auto;
  width:var(--native-seat-width);height:var(--native-seat-height);transform:none;translate:none;margin:0;transition:none;
}
.bacc-table[data-native-card-landscape] .bacc-seats > .seat .bacc-avatar.seat-avatar {
  left:var(--native-avatar-left);top:var(--native-avatar-top);
  width:var(--native-avatar-width);height:var(--native-avatar-height);transform:none;translate:none;
}
.bacc-table[data-native-card-landscape] .bacc-seats > .seat > .bacc-player-plaque {
  box-sizing:border-box;min-height:0;height:100%;padding-block:1px;
}

/* Keep the badge within the seat where the common Cartas ring meets the screen edge. */
.bacc-table[data-native-card-portrait] .bacc-seats > .seat:is([data-position='1'],[data-position='2']) .seat-currency-view {
  right:0;
}


.bacc-full-table .bacc-wager-track[hidden]{display:none;}
.bacc-full-table .bacc-wager-form .bacc-wager-close {
  position:absolute;
  right:calc(100% + 16px);
  bottom:calc(clamp(146px,23dvh,230px) + 4px);
  z-index:2;
  width:34px;
  height:34px;
  min-width:34px;
  min-height:34px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  color:#e1e6d9;
  font:700 19px/1 system-ui,sans-serif;
}

.bacc-seat > .bacc-point-draw .bacc-table-cards > .bacc-card {
  width:var(--point-card-width,var(--bacc-card-w));
  height:var(--point-card-height,var(--bacc-card-h));
}
.bacc-seat > .bacc-point-draw.bacc-point-draw-own {
  display:block;
  width:var(--point-card-width,var(--bacc-card-w));
  height:var(--point-card-height,var(--bacc-card-h));
  overflow:visible;
}
.bacc-seat > .bacc-point-draw.bacc-point-draw-own[hidden] { display:none; }
.bacc-point-draw-own > strong { display:none; }

/* Keep a long seat name out of the separate balance row. */
.bacc-full-table .bacc-seat .bacc-player-plaque > .seat-name {
  min-width:0;
  overflow:hidden;
  overflow-wrap:normal;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* Give Banca a full, enlarged face during the preview of its requested card. */
.bacc-full-table .bacc-scene:not(.bacc-showdown) .bacc-seat.bacc-own[data-role='banca'] .bacc-selection-cards > .bacc-card:nth-child(3) {
  align-self:flex-end;
  width:calc(var(--bacc-card-w) * 1.22);
  height:calc(var(--bacc-card-h) * 1.22);
  margin-left:3px;
}

.bacc-shared .bacc-table-option-list { display:grid; gap:6px; margin-top:8px; }
.bacc-shared .bacc-table-option-list button { min-height:44px; width:100%; margin:0; text-align:start; }
.bacc-shared .bacc-option-value { color:var(--bacc-muted); margin:0; padding:4px 6px; }

.bacc-entry-notice:empty { display:none; }
#club-view .bacc-shared[data-view=lobby] .bacc-status:empty { display:none; }
#club-view .bacc-table-list { margin-top:0; }

/* La lectura se anuncia sin empujar la fila que se acaba de pulsar. */
.bacc-shared[data-view=lobby] > .bacc-status[data-opening] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.bacc-lobby-row .open-table-button[aria-busy=true] { cursor: progress; color: var(--accion); }

/* El estado del canal no desplaza el tapete mientras se recupera. */
.bacc-full-table .bacc-entry-notice[data-reconnecting]:not(:empty) {
  position: fixed;
  inset: auto 0 max(12px, env(safe-area-inset-bottom)) 0;
  z-index: 8;
  width: fit-content;
  max-width: min(86vw, 32rem);
  margin-inline: auto;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--trio-surface, #26352c);
  color: var(--trio-ink, #f4ead7);
  pointer-events: none;
}
