/* Poker (Casino Hold'em) : table en demi-lune sous un spot, rail de cuir noir surpiqué, liseré de noyer et de laiton, feutre
   vert à grain, croupière derrière la table devant un rideau émeraude. Le contour de la table (rail, feutre, impressions) est
   tracé en SVG par ui.js à la taille réelle ; ici : matières, lumière, pièces de la table et animations (transform / opacity
   en boucle uniquement). Dans la scène tout se mesure en « em » : 1 em = 10 px × --u, l'échelle posée par ui.js. */
:root {
  --bg: #040a07; --panel: #0d1a14; --panel-2: #0a140f; --panel-3: #07100b; --border: #1d3a2b; --border-light: #2f5a42;
  --muted: #a9c6b5; --accent: #d4af37; --gold: #d4af37; --gold-2: #f3dc8a;
  --ink: 241, 228, 196;      /* crème imprimée dans le feutre (cases, filets, lettrages) */
  --brass: linear-gradient(180deg, #fbeeb4 0%, #e6c661 26%, #c79b2f 64%, #8a6515 100%);
  --lit: linear-gradient(180deg, #fffbe0, #ffe38a 50%, #f0b83a);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-eng: Copperplate, "Copperplate Gothic Bold", "Copperplate Gothic Light", "Bodoni 72 Smallcaps", Georgia, "Times New Roman", serif;   /* gravure et impression du feutre */
  --f-num: "Bodoni 72", "Bodoni MT", Didot, "Playfair Display", Georgia, "Times New Roman", serif;                                        /* chiffres */
}
/* Salle feutrée, entièrement statique : vignette, halo du lustre, lumières lointaines floues, moquette à treillis en bas.
   Passe par --page-bg (calque fixe commun), rien n'est posé sur body. */
body { font-family: var(--font); --page-bg:
    radial-gradient(125% 92% at 50% 40%, transparent 48%, rgba(0,0,0,.7) 100%),
    radial-gradient(44% 27% at 50% -5%, rgba(255,222,160,.22), rgba(255,200,120,.05) 58%, transparent 78%),
    radial-gradient(circle at 3.5% 14%, rgba(255,198,122,0.12) 0, rgba(255,198,122,0.12) 14px, rgba(255,198,122,0.138) 22px, rgba(255,198,122,0) 37px),
    radial-gradient(circle at 9% 9%, rgba(255,224,150,0.15) 0, rgba(255,224,150,0.15) 8px, rgba(255,224,150,0.172) 12px, rgba(255,224,150,0) 25px),
    radial-gradient(circle at 1.5% 30%, rgba(150,222,172,0.1) 0, rgba(150,222,172,0.1) 7px, rgba(150,222,172,0.115) 11px, rgba(150,222,172,0) 23px),
    radial-gradient(circle at 5% 45%, rgba(255,198,122,0.065) 0, rgba(255,198,122,0.065) 19px, rgba(255,198,122,0.075) 30px, rgba(255,198,122,0) 47px),
    radial-gradient(circle at 2.5% 61%, rgba(255,198,122,0.06) 0, rgba(255,198,122,0.06) 10px, rgba(255,198,122,0.069) 15px, rgba(255,198,122,0) 28px),
    radial-gradient(circle at 96% 12.5%, rgba(255,198,122,0.12) 0, rgba(255,198,122,0.12) 14px, rgba(255,198,122,0.138) 21px, rgba(255,198,122,0) 36px),
    radial-gradient(circle at 90.5% 9%, rgba(255,224,150,0.15) 0, rgba(255,224,150,0.15) 8px, rgba(255,224,150,0.172) 12px, rgba(255,224,150,0) 24px),
    radial-gradient(circle at 98.5% 27%, rgba(150,222,172,0.1) 0, rgba(150,222,172,0.1) 9px, rgba(150,222,172,0.115) 13px, rgba(150,222,172,0) 26px),
    radial-gradient(circle at 94.5% 42%, rgba(255,198,122,0.065) 0, rgba(255,198,122,0.065) 19px, rgba(255,198,122,0.075) 30px, rgba(255,198,122,0) 47px),
    radial-gradient(circle at 97.5% 58%, rgba(255,198,122,0.06) 0, rgba(255,198,122,0.06) 8px, rgba(255,198,122,0.069) 12px, rgba(255,198,122,0) 25px),
    linear-gradient(180deg, #0a2418 0%, #040d09 44%, rgba(4,10,7,.93) 62%, rgba(4,10,7,.5) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='rgba(212,175,55,.2)' stroke-width='1'%3E%3Cpath d='M28 0L56 28L28 56L0 28Z'/%3E%3Cpath d='M28 12L44 28L28 44L12 28Z' stroke-opacity='.55'/%3E%3C/g%3E%3Cg fill='rgba(212,175,55,.26)'%3E%3Cpath d='M28 23l5 5-5 5-5-5z'/%3E%3Ccircle cx='0' cy='0' r='2.4'/%3E%3Ccircle cx='56' cy='0' r='2.4'/%3E%3Ccircle cx='0' cy='56' r='2.4'/%3E%3Ccircle cx='56' cy='56' r='2.4'/%3E%3C/g%3E%3C/svg%3E") 50% 100% / 56px 56px,
    #0b2a1d; }
.logo { color: #fff; font-style: normal; gap: 8px; }
.logo .live { background: #e5193a; color: #fff; font-size: 9px; font-weight: 900; padding: 2px 6px; border-radius: 6px; letter-spacing: 1px; }
.howto-btn { display: none; }
.room-banner { text-align: center; font-size: 12px; color: var(--gold); padding: 4px; background: var(--panel); border-bottom: 1px solid var(--border); }
.pk-sprite { position: absolute; }

.pk { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 8px; width: 100%; max-width: min(1500px, max(1180px, 150vh)); margin: 0 auto; }

/* ===== la scène : moquette de la salle, mur drapé, croupière, table dessinée devant elle ===== */
.tbl { --u: 1; --em: calc(10px * var(--u)); --wall-h: calc(13 * var(--em) + var(--wall-x, 0px)); --far: 20px; --halo: #ffd45e;
  position: relative; isolation: isolate; flex: 1; min-height: 500px; overflow: hidden; border-radius: 20px; font-size: var(--em); line-height: 1.2;
  background:
    radial-gradient(90% 60% at 50% 100%, rgba(0,0,0,.2), rgba(0,0,0,.74)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='.16'%3E%3Cpath d='M22 0L44 22L22 44L0 22Z'/%3E%3Cpath d='M22 11L33 22L22 33L11 22Z' stroke-opacity='.08'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #0b2218, #05110b); }
.tbl::after { content: ""; position: absolute; inset: 0; z-index: 9; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(212,175,55,.45), inset 0 0 0 4px rgba(0,0,0,.5), inset 0 0 0 5px rgba(212,175,55,.14); }

/* mur : rideau émeraude à plis, tringle de laiton, soleil Art déco derrière la croupière, appliques floues, cône du spot */
.wall { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--wall-h) + 7em); z-index: 0; overflow: hidden;
  background:
    radial-gradient(46% 100% at 50% 100%, rgba(255,206,130,.2), rgba(255,206,130,0) 72%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.36) 0, rgba(255,255,255,.04) 1.9em, rgba(0,0,0,.32) 3.8em),
    linear-gradient(180deg, #071b12 0, #10382a 60%, #06170f 100%); }
.wall::before { content: ""; position: absolute; left: 0; right: 0; top: .9em; height: .5em; border-top: 1px solid rgba(232,196,90,.6); border-bottom: 1px solid rgba(232,196,90,.25); background: linear-gradient(180deg, rgba(232,196,90,.16), transparent); }
.wall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 130% at 50% 62%, transparent 38%, rgba(0,0,0,.66) 100%); }
.wall-panel { position: absolute; left: 50%; bottom: 3em; width: 64em; height: 64em; margin: 0 0 -32em -32em; border-radius: 50%; opacity: .8;
  background: repeating-conic-gradient(from -1deg, rgba(232,196,90,.26) 0 1deg, transparent 1deg 7.5deg), repeating-conic-gradient(from 2.75deg, rgba(232,196,90,.1) 0 .5deg, transparent .5deg 7.5deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 20%, #000 20.5%, rgba(0,0,0,.55) 34%, transparent 50%); mask-image: radial-gradient(circle, transparent 0 20%, #000 20.5%, rgba(0,0,0,.55) 34%, transparent 50%); }
.wall-bokeh { position: absolute; inset: -1em -3em; }
.wall-bokeh.a { background:
    radial-gradient(circle at 7% 34%, rgba(255,205,120,.34) 0, rgba(255,205,120,.1) .9em, rgba(255,205,120,0) 2.2em),
    radial-gradient(circle at 21% 62%, rgba(255,180,100,.14) 0, rgba(255,180,100,0) 3em),
    radial-gradient(circle at 79% 58%, rgba(255,180,100,.14) 0, rgba(255,180,100,0) 3.4em),
    radial-gradient(circle at 93% 30%, rgba(255,205,120,.34) 0, rgba(255,205,120,.1) .9em, rgba(255,205,120,0) 2.2em);
  animation: ambDrift 19s ease-in-out infinite alternate; }
.wall-bokeh.b { background:
    radial-gradient(circle at 14% 22%, rgba(255,230,170,.2) 0, rgba(255,230,170,0) 1.4em),
    radial-gradient(circle at 31% 30%, rgba(170,240,200,.1) 0, rgba(170,240,200,0) 2em),
    radial-gradient(circle at 69% 26%, rgba(170,240,200,.1) 0, rgba(170,240,200,0) 1.8em),
    radial-gradient(circle at 86% 66%, rgba(255,230,170,.18) 0, rgba(255,230,170,0) 1.3em);
  animation: ambDrift 27s ease-in-out -6s infinite alternate-reverse; }
.wall-spot { position: absolute; left: 50%; top: -3em; width: 52em; height: 34em; margin-left: -26em; transform-origin: 50% 0; background: conic-gradient(from 180deg at 50% 0, transparent 0 -26deg, rgba(255,226,160,.12) -14deg, rgba(255,226,160,.2) 0deg, rgba(255,226,160,.12) 14deg, transparent 26deg 360deg); -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%); mask-image: linear-gradient(180deg, #000, transparent 92%); animation: spotSway 11s ease-in-out infinite alternate; }
@keyframes ambDrift { from { transform: translate3d(-1.4em, .8em, 0) scale(1); opacity: .55; } to { transform: translate3d(1.6em, -1.2em, 0) scale(1.05); opacity: .95; } }
@keyframes spotSway { from { transform: rotate(-1.6deg); opacity: .8; } to { transform: rotate(1.6deg); opacity: 1; } }

/* croupière : assise derrière le rail (le bas du buste passe sous la table), éclairée par le spot ; elle respire et réagit */
.dealer-zone { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--wall-h) + 4.6em); z-index: 1; pointer-events: none; }
.dealer-art { position: absolute; left: 50%; bottom: 0; width: 17.4em; height: 17.3em; margin-left: -8.7em; transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.2,.9,.25,1.15), filter .45s; }
.dealer-art::before { content: ""; position: absolute; left: -24%; right: -24%; top: 4%; bottom: 8%; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.5), rgba(0,0,0,0) 68%); }
.dealer-body { position: absolute; inset: 0; transform-origin: 50% 100%; animation: breathe 4.8s ease-in-out infinite; }
.dealer-body img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.dealer-light, .dealer-flash { position: absolute; inset: 0; -webkit-mask: url(../assets/tables/dealer-poker.webp) 50% 0 / cover no-repeat; mask: url(../assets/tables/dealer-poker.webp) 50% 0 / cover no-repeat; }
.dealer-light { background: linear-gradient(180deg, rgba(255,220,160,.2) 0, rgba(255,220,160,.04) 30%, rgba(6,14,9,0) 56%, rgba(4,12,8,.66) 100%); }
.dealer-flash { background: linear-gradient(200deg, rgba(255,246,214,.8), rgba(255,226,122,.28) 55%, rgba(255,226,122,0)); opacity: 0; }
@keyframes breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.009, 1.016) translateY(-.5px); } }
.dealer-art[data-mood="deal"] { transform: rotate(1.7deg) translate(.35em, .25em); }
.dealer-art[data-mood="talk"] { animation: dealerNod .6s ease-out; }
.dealer-art[data-mood="happy"] { animation: dealerCheer .8s cubic-bezier(.3,1.4,.4,1); }
.dealer-art[data-mood="wow"] { animation: dealerCheer 1s cubic-bezier(.3,1.4,.4,1); }
.dealer-art[data-mood="wow"] .dealer-flash { animation: dealerFlash 1.2s ease-out; }
.dealer-art[data-mood="sad"] { transform: translateY(.5em) scale(.985); filter: saturate(.72) brightness(.92); }
.dealer-art[data-mood="proud"] { transform: translateY(-.25em) scale(1.015); }
@keyframes dealerNod { 0% { transform: none; } 40% { transform: translateY(.3em) rotate(-.8deg); } 100% { transform: none; } }
@keyframes dealerCheer { 0% { transform: none; } 30% { transform: translateY(-.8em) scale(1.035); } 60% { transform: translateY(.1em) scale(.995); } 100% { transform: none; } }
@keyframes dealerFlash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
.dealer-say { position: absolute; z-index: 7; top: max(36px, calc(3.3 * var(--em))); left: calc(50% + 8.4 * var(--em)); max-width: min(calc(25 * var(--em)), 260px); padding: 8px 12px; font: 700 max(11.5px, calc(1.28 * var(--em)))/1.3 var(--font); color: #2a1d10; background: linear-gradient(180deg, #fffdf6, #f0e7d2); border-radius: 14px 14px 14px 3px; box-shadow: 0 8px 22px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.75), inset 0 -2px 0 rgba(212,175,55,.3); transform-origin: 0 100%; pointer-events: none; }
.dealer-say::before { content: ""; position: absolute; left: -7px; bottom: 5px; border: 7px solid transparent; border-right-color: #f3ebd8; border-left: 0; border-bottom-width: 2px; }
.dealer-say:empty { display: none; }
.dealer-say.pop { animation: sayPop .32s cubic-bezier(.2,1.4,.4,1); }
@keyframes sayPop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* la table dessinée passe devant la croupière ; une nappe de lumière chaude dérive lentement sur le feutre, la poussière danse dans le spot */
.tbl-art { position: absolute; left: 0; top: var(--wall-h); width: 100%; height: calc(100% - var(--wall-h)); z-index: 2; pointer-events: none; overflow: visible; }
.fp-big { font-family: var(--f-eng); font-weight: 700; fill: rgba(var(--ink), .11); stroke: rgba(var(--ink), .42); stroke-width: 1.1; paint-order: stroke; }
.fp-small { font-family: var(--f-eng); font-weight: 700; fill: rgba(var(--ink), .6); }
.fp-rule { fill: none; stroke: rgba(214,178,74,.5); stroke-width: 1; }
.fp-orn { fill: rgba(214,178,74,.62); }
.fp-filet { fill: none; stroke: rgba(var(--ink), .22); stroke-width: 1.4; }
.fp-filet.thin { stroke: rgba(var(--ink), .1); stroke-width: 1; }
.rail-seam { fill: none; stroke: rgba(226,196,150,.62); stroke-linecap: round; }
.tbl-glint { position: absolute; left: 0; top: var(--wall-h); width: 100%; height: calc(100% - var(--wall-h)); z-index: 2; pointer-events: none; overflow: visible; opacity: .12; animation: railGlint 13s ease-in-out infinite; }
@keyframes railGlint { 0%, 44%, 84%, 100% { opacity: .12; } 64% { opacity: .5; } }
.felt-glow { position: absolute; z-index: 2; left: 50%; top: calc(var(--wall-h) + 1em); width: 76em; height: 36em; margin-left: -38em; pointer-events: none; background: radial-gradient(closest-side, rgba(255,226,170,.15), rgba(255,226,170,.05) 55%, transparent); animation: glowDrift 17s ease-in-out infinite alternate; }
@keyframes glowDrift { from { transform: translate3d(-9em, 0, 0) scale(.94, 1); opacity: .7; } to { transform: translate3d(9em, 1.4em, 0) scale(1.06, 1.05); opacity: 1; } }
.felt-dust { position: absolute; z-index: 3; left: 26%; right: 26%; top: calc(var(--wall-h) * .25); height: calc(var(--wall-h) + 14em); pointer-events: none; opacity: 0;
  background: radial-gradient(circle 1.4px at 9% 62%, rgba(255,246,216,.95), transparent), radial-gradient(circle 1.1px at 24% 28%, rgba(255,246,216,.8), transparent), radial-gradient(circle 1.5px at 71% 44%, rgba(255,246,216,.9), transparent), radial-gradient(circle 1px at 88% 76%, rgba(255,246,216,.8), transparent), radial-gradient(circle 1.2px at 80% 18%, rgba(255,246,216,.85), transparent), radial-gradient(circle 1.2px at 42% 84%, rgba(255,246,216,.8), transparent);
  animation: dust 34s linear infinite; }
@keyframes dust { 0% { transform: translate3d(-8px, 16px, 0); opacity: 0; } 18% { opacity: .5; } 72% { opacity: .34; } 100% { transform: translate3d(18px, -34px, 0); opacity: 0; } }

/* ----- annonce de la table, compte à rebours ----- */
.status-box { position: absolute; z-index: 6; right: 2em; top: 1.6em; display: flex; flex-direction: row-reverse; align-items: center; gap: 1.2em; pointer-events: none; }
.timer-ring { position: relative; width: 6.6em; height: 6.6em; flex: 0 0 auto; }
.timer-ring svg { width: 100%; height: 100%; display: block; }
.tr-face { fill: rgba(4,10,7,.84); stroke: #a8811f; stroke-width: 1.4; }
.tr-ticks { fill: none; stroke: rgba(243,220,138,.55); stroke-width: 3; stroke-dasharray: 1 13.4; transform: rotate(-90.5deg); transform-origin: 50% 50%; }
.tr-bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 4; }
.tr-fg { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke .3s; }
.timer-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 900 2.2em var(--font); color: #fff; font-variant-numeric: tabular-nums; }
.timer-ring b.tk { animation: secTick .32s cubic-bezier(.3,1.5,.5,1); }
@keyframes secTick { 0% { transform: scale(1.4); } 100% { transform: none; } }
.tr-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #ff5a6e; opacity: 0; pointer-events: none; }
.timer-ring.late .tr-fg, .timer-ring.late .tr-face { stroke: #ff5a6e; }
.timer-ring.late b { color: #ffd9de; }
.timer-ring.late .tr-pulse { animation: latePulse 1s ease-out infinite; }
@keyframes latePulse { 0% { opacity: .9; transform: scale(.94); } 100% { opacity: 0; transform: scale(1.3); } }
.status-txt { text-align: right; max-width: 27em; }
.table-status { font: 700 max(11px, 1.55em)/1.15 var(--f-eng); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); text-shadow: 0 0 14px rgba(212,175,55,.5), 0 1px 2px rgba(0,0,0,.8); }
.hand-no { margin-top: .4em; font: 600 max(9.5px, 1.05em) var(--font); letter-spacing: .08em; color: rgba(var(--ink), .6); text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.hand-no:empty { display: none; }

/* ===== devant la croupière : défausse, râtelier, sabot ; puis ses cartes, le tableau, les tableaux de paiement ===== */
.felt-top { position: absolute; z-index: 4; left: 0; right: 0; top: calc(var(--wall-h) + var(--far) + .7em); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.gear { display: flex; align-items: flex-start; gap: 2.8em; }
.discard { position: relative; width: 9.8em; margin-top: .7em; flex: 0 0 auto; }
.discard-art svg, .shoe-art svg { display: block; width: 100%; height: auto; overflow: visible; }
/* dernières mains : une rangée de cabochons sous la défausse */
.hist-strip { position: absolute; left: 50%; top: calc(100% + .2em); transform: translateX(-50%); display: flex; gap: .36em; padding: .32em .6em; border-radius: 1em; background: rgba(0,0,0,.34); box-shadow: inset 0 0 0 1px rgba(var(--ink), .14); }
.hist-strip:empty { display: none; }
.hist-strip i { width: .82em; height: .82em; flex: 0 0 auto; border-radius: 50%; background: #8a8f95; box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -1px 1px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.5); }
.hist-strip i.win { background: #3ddc84; } .hist-strip i.lose { background: #ff4d6a; } .hist-strip i.push { background: #ffd166; } .hist-strip i.fold { background: #8a8f95; }
.hist-strip i:nth-child(n+7) { opacity: .7; }
/* râtelier de jetons : gouttières de jetons couchés sur la tranche, bord avant en relief */
.rack { position: relative; width: 23em; height: 2.9em; padding: .34em .5em .3em; display: flex; gap: .28em; flex: 0 0 auto; border-radius: .6em .6em .35em .35em; background: linear-gradient(180deg, #2a2a2e, #0c0c0e); border: 1px solid #a8811f; box-shadow: inset 0 .2em .5em rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6); }
.rack::after { content: ""; position: absolute; left: -1px; right: -1px; top: 100%; height: .55em; border-radius: 0 0 .5em .5em; border: 1px solid #6d5416; border-top: 0; background: linear-gradient(180deg, #232327, #050506); box-shadow: 0 .45em .8em rgba(0,0,0,.6); }
.rack i { flex: 1; border-radius: .2em; --c: #c8102e; --e: #f4efe2; position: relative; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.6);
  background: linear-gradient(180deg, rgba(255,255,255,.36), rgba(255,255,255,0) 26%, rgba(0,0,0,0) 62%, rgba(0,0,0,.55)), repeating-linear-gradient(90deg, var(--c) 0 .25em, rgba(0,0,0,.45) .25em .3em), var(--c); }
.rack i::after { content: ""; position: absolute; left: 0; right: 0; top: 38%; height: 24%; background: repeating-linear-gradient(90deg, var(--e) 0 .25em, rgba(0,0,0,.35) .25em .3em); opacity: .85; }
.rack i:nth-child(1), .rack i:nth-child(9) { --c: #d9d6cc; --e: #3f6fd9; } .rack i:nth-child(3), .rack i:nth-child(7) { --c: #1e8e3e; } .rack i:nth-child(4), .rack i:nth-child(6) { --c: #17171b; --e: #d4af37; } .rack i:nth-child(5) { --c: #6a1b9a; --e: #f3dc8a; }
/* sabot : les cartes sortent par la bouche (à gauche) ; sa plaque de laiton porte l'engagement provably fair */
.shoe { position: relative; width: 12.2em; flex: 0 0 auto; }
.shoe-art.kick { animation: shoeKick .26s ease-out; }
@keyframes shoeKick { 0% { transform: none; } 35% { transform: translate(-.2em, .1em); } 100% { transform: none; } }
.shoe-mouth { position: absolute; left: 1%; top: 70%; width: 19%; height: 16%; }
.fair-tag { position: absolute; left: 54%; top: calc(100% - .2em); transform: translateX(-50%); z-index: 2; pointer-events: auto; display: flex; align-items: center; gap: .5em; padding: .32em .8em .3em .6em; white-space: nowrap; border-radius: .45em; color: #3a2905; background: var(--brass); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(90,60,0,.5), 0 0 0 1px #5e430a, 0 .3em .7em rgba(0,0,0,.45); transition: filter .15s; }
.fair-tag::before { content: ""; position: absolute; inset: -10px -6px; }
.fair-tag:hover { filter: brightness(1.1); }
.fair-tag:focus-visible { outline: 2px solid #f6df8c; outline-offset: 3px; }
.fair-tag svg { width: 1.5em; height: 1.5em; flex: 0 0 auto; }
.ft-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.05; }
.ft-txt small { font: 700 max(7px, .8em) var(--f-eng); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.ft-txt b { font: 700 max(8.5px, 1em) ui-monospace, Menlo, monospace; text-shadow: 0 1px 0 rgba(255,246,200,.6); }

.dealer-hand { position: relative; margin-top: -4.5em; display: flex; flex-direction: column; align-items: center; }
.dealer-hand .cards { display: flex; gap: .7em; --cw: calc(6 * var(--em)); }
.slot { position: relative; display: block; flex: 0 0 auto; width: var(--cw); height: calc(var(--cw) * 1.4); border-radius: calc(var(--cw) * .085); font-style: normal; }
.dealer-hand .slot::before, .board .slot::before { content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(var(--ink), .3); border-radius: inherit; background: rgba(0,0,0,.1); }
.board { margin-top: 3.4em; display: flex; gap: .9em; --cw: calc(7.4 * var(--em)); }
.board .slot.turn, .board .slot.river { margin-left: .5em; }
.board .slot::after { content: ""; position: absolute; inset: .42em; border: 1px solid rgba(var(--ink), .13); border-radius: calc(var(--cw) * .06); }
.board .slot.river::before { border-color: rgba(214,178,74,.55); }
.board .slot em { position: absolute; inset: 0; display: grid; place-items: center; font: 700 calc(var(--cw) * .15) var(--f-eng); letter-spacing: .16em; text-indent: .16em; text-transform: uppercase; font-style: normal; color: rgba(var(--ink), .3); }
.board .slot.river em { color: rgba(214,178,74,.5); }

/* plaques de laiton : nom d'une main */
.hand-plate { display: inline-flex; flex-direction: column; align-items: center; padding: .36em 1em .3em; white-space: nowrap; border-radius: .5em; color: #2e2003; background: var(--brass); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(90,60,0,.5), 0 0 0 1px #5e430a, 0 .3em .8em rgba(0,0,0,.5); }
.hand-plate:empty { display: none; }
.hand-plate b { font: 700 max(10.5px, 1.28em)/1.1 var(--f-eng); letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255,246,200,.7); }
.hand-plate small { margin-top: .12em; font: 700 max(8.5px, .95em)/1.1 var(--f-eng); letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.hand-plate.pop { animation: platePop .42s cubic-bezier(.2,1.5,.35,1); }
@keyframes platePop { 0% { scale: .55; opacity: 0; } 100% { scale: 1; opacity: 1; } }
.hand-plate[data-cat="mid"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(90,60,0,.5), 0 0 0 1px #5e430a, 0 0 1.2em rgba(255,214,90,.35), 0 .3em .8em rgba(0,0,0,.5); }
.hand-plate[data-cat="big"] { background: var(--lit); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #8a6515, 0 0 1.8em rgba(255,214,90,.7), 0 .3em .8em rgba(0,0,0,.5); }
.dealer-tag { display: none; position: absolute; left: 50%; top: calc(100% + .45em); transform: translateX(-50%); font: 700 max(7.5px, .82em)/1 var(--f-eng); letter-spacing: .22em; text-indent: .22em; text-transform: uppercase; white-space: nowrap; color: rgba(var(--ink), .5); }
.hand-plate.dealer { position: absolute; left: 50%; top: calc(100% + .42em); transform: translateX(-50%); z-index: 5; flex-direction: row; align-items: center; gap: .7em; padding: .3em .5em .28em .9em; }
.hand-plate.dealer em { font: 800 max(8px, .9em)/1 var(--font); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: .34em .6em; border-radius: .34em; color: #fff; background: #17803a; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.hand-plate.dealer.noq em { background: #a3162c; animation: stamp .5s .25s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp { 0% { scale: 2.2; opacity: 0; rotate: -9deg; } 100% { scale: 1; opacity: 1; rotate: 0deg; } }

/* tableaux des paiements, sérigraphiés de part et d'autre du tableau ; la ligne de ma main s'allume */
.pays { position: absolute; left: 0; right: 0; top: 8.3em; height: 0; }
.pay { position: absolute; top: 0; width: 24em; padding: .7em 1em .7em; border: 1px solid rgba(var(--ink), .3); border-radius: .5em; outline: 1px solid rgba(var(--ink), .12); outline-offset: .32em; color: rgba(var(--ink), .76); font-family: var(--f-eng); transition: opacity .4s; }
.pay.ante { left: 5.6em; } .pay.aa { right: 5.6em; }
.pay h5 { margin: 0 0 .32em; padding-bottom: .36em; text-align: center; font: 700 1.22em var(--f-eng); letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; color: #e3c56a; background: linear-gradient(90deg, transparent, rgba(214,178,74,.7) 30%, rgba(214,178,74,.7) 70%, transparent) 50% 100% / 70% 1px no-repeat; }
.pay.aa h5 { color: #f0a3ae; }
.pay ul { list-style: none; margin: 0; padding: 0; }
.pay li { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding: .1em .5em .06em; border-radius: .3em; font-size: 1em; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.pay li b { font: 700 1.2em/1 var(--f-num); letter-spacing: 0; color: #f1dc8e; }
.pay li.on { color: #3a2500; background: var(--lit); box-shadow: 0 0 1.2em rgba(255,220,120,.6); animation: payOn .5s cubic-bezier(.2,1.5,.4,1); }
.pay li.on b { color: #3a2500; }
@keyframes payOn { 0% { scale: 1.12; } 100% { scale: 1; } }
.pay[data-on="none"] { opacity: .55; }

/* ===== cartes : tranche, ombre portée, vol depuis le sabot, retournement 3D ===== */
.cardw { position: absolute; inset: 0; z-index: 2; perspective: 620px; transition: translate .45s cubic-bezier(.2,.9,.3,1.2), scale .45s cubic-bezier(.2,.9,.3,1.2); }
.cardw::before { content: ""; position: absolute; inset: 4% 2% -3% 2%; border-radius: calc(var(--cw) * .085); box-shadow: 0 calc(var(--cw) * .09) calc(var(--cw) * .16) rgba(0,0,0,.5), 0 calc(var(--cw) * .02) calc(var(--cw) * .05) rgba(0,0,0,.5); }
.cardw.in { animation: cardFly .4s cubic-bezier(.2,.75,.25,1) both; animation-delay: var(--i, 0ms); }
.cardw.street { z-index: 4; animation: cardFly .32s cubic-bezier(.2,.75,.25,1) both; }
@keyframes cardFly { 0% { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(var(--fs)); opacity: 0; } 10% { opacity: 1; } 100% { transform: none; opacity: 1; } }
/* le flop : les trois cartes arrivent en paquet sur la première place, puis s'étalent d'un geste */
.cardw.flop { animation: flopFly .5s cubic-bezier(.25,.7,.3,1) both; animation-delay: var(--i, 0ms); }
@keyframes flopFly { 0% { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(var(--fs)); opacity: 0; } 10% { opacity: 1; } 56% { transform: translate(var(--sx), 0); opacity: 1; } 100% { transform: none; opacity: 1; } }
.card3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(180deg); transition: filter .5s; }
.cardw.up .card3d { animation: flipUp .4s cubic-bezier(.45,.05,.3,1) both; }
.cardw.up.slow .card3d { animation: flipSlow .52s cubic-bezier(.5,0,.3,1) both; }
.cardw.dn .card3d { animation: flipDown .3s ease-in both; }
.cardw.up.still .card3d { animation: none; transform: none; }
@keyframes flipUp { 0% { transform: rotateY(180deg); } 50% { transform: translateY(calc(var(--cw) * -.1)) rotateY(90deg) scale(1.05); } 100% { transform: rotateY(0); } }
@keyframes flipSlow { 0% { transform: rotateY(180deg); } 24% { transform: translateY(calc(var(--cw) * -.14)) rotateY(180deg) scale(1.09); } 64% { transform: translateY(calc(var(--cw) * -.16)) rotateY(84deg) scale(1.11); } 100% { transform: rotateY(0); } }
@keyframes flipDown { 0% { transform: rotateY(0); } 100% { transform: rotateY(180deg); } }
.cf { position: absolute; inset: 0; border-radius: calc(var(--cw) * .085); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 1px 0 #e6e1d4, 0 2px 0 #c4beae; }
.cf.front { --ck: #1a1512; --skin: #f7dcc0; --c1: #1d3a8a; --c2: #c8102e; --c3: #f0c23b; --hair: #2a2320; color: #16181d;
  background: repeating-linear-gradient(90deg, rgba(120,100,60,.035) 0 1px, transparent 1px 3px), linear-gradient(165deg, #fff 0%, #fdfbf5 56%, #efe9dc 100%); }
.cf.front.red { color: #c8102e; }
.cf.front.sH { --c1: #c8102e; --c2: #1d3a8a; --hair: #d9a441; }
.cf.front.sD { --c1: #c8102e; --c2: #0f6b54; --hair: #8a4b1f; }
.cf.front.sS { --c1: #1d3a8a; --c2: #c8102e; --hair: #2a2320; }
.cf.front.sC { --c1: #23262e; --c2: #c8102e; --hair: #b9b2a6; }
.cface { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ci { font: 700 20px Georgia, "Times New Roman", serif; text-anchor: middle; fill: currentColor; }
.ci.ten { font-size: 18px; letter-spacing: -1.8px; }
.cbg { fill: #fdf6e3; }
.cframe { fill: none; stroke: currentColor; stroke-width: .9; opacity: .85; }
.cmid { stroke: #1a1512; stroke-width: .6; opacity: .55; }
.cace { fill: none; stroke: currentColor; stroke-width: .7; stroke-dasharray: 1.2 3; opacity: .35; }
/* dos Pryve : treillis cramoisi, liseré crème, médaillon noir cerclé de laiton au P de la maison */
.cf.back { transform: rotateY(180deg); border: calc(var(--cw) * .05) solid #fbfaf6;
  background: url("../assets/brand/p-logo.png") center / 44% auto no-repeat,
    radial-gradient(circle closest-side, #140609 0 54%, #e2c060 55% 61%, #7a5610 62% 64%, transparent 65%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.17) 0 1px, transparent 1px calc(var(--cw) * .09)),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.17) 0 1px, transparent 1px calc(var(--cw) * .09)),
    linear-gradient(160deg, #b5152e, #5a0a18); }
/* une carte quitte la table : face cachée, vers la défausse */
.cardw.away { z-index: 1; animation: cardAway .5s cubic-bezier(.5,0,.6,.5) both; animation-delay: var(--i, 0ms); }
.cardw.away.up .card3d { animation: flipDown .26s ease-in both; animation-delay: var(--i, 0ms); }
.cardw.away::before, .cardw.away::after { opacity: 0; }
@keyframes cardAway { 0% { transform: none; opacity: 1; } 82% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(var(--ds)); opacity: 0; } }
/* dénouement : les cinq cartes de la main gagnante se soulèvent et s'illuminent, les autres s'assombrissent */
.cardw.hi { z-index: 4; translate: 0 calc(var(--cw) * -.15); scale: 1.06; }
.cardw.hi::after { content: ""; position: absolute; inset: calc(var(--cw) * -.07); border-radius: calc(var(--cw) * .15); border: calc(var(--cw) * .032) solid var(--halo); box-shadow: 0 0 calc(var(--cw) * .32) var(--halo), inset 0 0 calc(var(--cw) * .18) var(--halo); pointer-events: none; animation: haloIn .5s ease-out both, haloPulse 1.4s ease-in-out .5s infinite; }
.cardw.dim .card3d { filter: brightness(.52) saturate(.55); }
.cardw.ok::after { content: ""; position: absolute; inset: calc(var(--cw) * -.05); border-radius: calc(var(--cw) * .13); border: 1.5px solid #7dffa9; box-shadow: 0 0 calc(var(--cw) * .2) rgba(125,255,169,.7); pointer-events: none; }
@keyframes haloIn { 0% { opacity: 0; transform: scale(1.2); } 100% { opacity: .9; transform: none; } }
@keyframes haloPulse { 0%, 100% { opacity: .9; } 50% { opacity: .45; } }
.board .slot:nth-child(2) .cardw { transition-delay: 60ms; } .board .slot:nth-child(3) .cardw { transition-delay: 120ms; } .board .slot:nth-child(4) .cardw { transition-delay: 180ms; } .board .slot:nth-child(5) .cardw { transition-delay: 240ms; }
.tbl[data-tone="lose"], .tbl[data-tone="dealer"] { --halo: #c4d8ff; }
.tbl[data-tone="push"] { --halo: #ffd166; }

/* ===== places : cases imprimées (AA, Ante, Call), deux cartes, plaque du joueur sur le rail. ui.js pose chaque place sur
   l'arc (--x, --y), donne la direction du centre de la table (--nx, --ny), la tangente (--tx, --ty) et l'angle (--rot). ===== */
.seats { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.station { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: translate(var(--x, 0px), var(--y, 0px)); pointer-events: none;
  --nx: 0; --ny: -1; --tx: 1; --ty: 0; --rot: 0deg; --cw: calc(4.6 * var(--em)); --ov: calc(.7 * var(--em)); --sp: calc(4.2 * var(--em)); --pitch: calc(4.9 * var(--em)); --dh: calc(6 * var(--em)); --ds: calc(12.9 * var(--em)); --dp: calc(2.5 * var(--em)); --chip: calc(2 * var(--em)); }
.station:not([data-slot]) { visibility: hidden; }
.tbl.turning .station { transition: transform .6s cubic-bezier(.3,.9,.3,1); }
.station.mine { --cw: calc(7 * var(--em)); --ov: calc(.3 * var(--em)); --sp: calc(6.6 * var(--em)); --pitch: calc(7.7 * var(--em)); --dh: calc(7.4 * var(--em)); --dp: calc(13.5 * var(--em)); --ds: calc(19.4 * var(--em)); --chip: calc(3 * var(--em)); }
/* plaque : avatar, nom, décision */
.plate { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); z-index: 4; pointer-events: auto; display: flex; align-items: center; gap: .5em; height: 3em; padding: 0 1em 0 .3em; border-radius: 2em; white-space: nowrap; color: #f3e6c8;
  background: linear-gradient(180deg, #2c2318, #100b07); border: 1px solid #8a6a1c; box-shadow: inset 0 1px 0 rgba(255,236,170,.22), 0 .3em .8em rgba(0,0,0,.55); transition: border-color .3s, box-shadow .3s; }
.plate .av { width: 2.4em; height: 2.4em; border-radius: 50%; display: block; box-shadow: 0 0 0 1.5px #c9a544; }
.plate .nm { font: 700 max(10px, 1.15em)/1 var(--font); max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.plate .you { font: 800 max(8px, .85em)/1 var(--font); font-style: normal; letter-spacing: .08em; padding: .3em .55em; border-radius: .4em; color: #3a2500; background: var(--brass); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.plate .tag { position: absolute; right: -.5em; top: -1.05em; font: 800 max(8px, .88em)/1 var(--font); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: .32em .6em; border-radius: .4em; color: #fff; box-shadow: 0 .2em .5em rgba(0,0,0,.5); animation: platePop .3s cubic-bezier(.2,1.5,.35,1); }
.plate .tag:empty { display: none; }
.plate .tag.call { background: #17803a; } .plate .tag.fold { background: #6b2b2b; }
.station.mine .plate { height: 3.3em; border-color: #e3c56a; box-shadow: inset 0 1px 0 rgba(255,236,170,.3), 0 0 0 3px rgba(0,0,0,.35), 0 .3em .9em rgba(0,0,0,.55); }
.station.mine .plate .av { width: 2.7em; height: 2.7em; }
.station.active .plate { border-color: #f6df8c; box-shadow: 0 0 0 2px rgba(246,223,140,.5), 0 0 1.4em rgba(246,223,140,.5), 0 .3em .8em rgba(0,0,0,.55); }
.station.winner .plate { border-color: #7dffa9; box-shadow: 0 0 0 1px rgba(125,255,169,.5), 0 0 1.4em rgba(61,220,132,.55), 0 .3em .8em rgba(0,0,0,.55); }
.station.loser .plate .av, .station.folded .plate .av { filter: grayscale(.6) brightness(.8); }
.station.folded .plate .nm { opacity: .6; }
/* place libre : une plaque à prendre sur le rail */
.station.empty .plate { height: auto; padding: 0; border: 0; background: none; box-shadow: none; }
.sit-btn { position: relative; display: flex; align-items: center; gap: .55em; min-height: 36px; height: 3.5em; padding: 0 1.25em 0 1em; border-radius: 2em; border: 1.5px dashed rgba(var(--ink), .62); background: rgba(8,5,3,.62); color: rgba(var(--ink), .95); font: 700 max(11px, 1.15em)/1 var(--font); white-space: nowrap; transition: border-color .15s, background .15s, color .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.sit-btn svg { width: 1.5em; height: 1.5em; flex: 0 0 auto; opacity: .85; }
.sit-btn:hover { border-color: #f6df8c; background: rgba(8,5,3,.8); color: #fff; transform: translateY(-1px); }
.sit-btn:focus-visible { outline: 2px solid #f6df8c; outline-offset: 3px; }
.sit-btn::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid #f6df8c; opacity: 0; pointer-events: none; }
.tbl:not(.seated)[data-phase="betting"] .sit-btn::after { animation: sitPulse 1.8s ease-out infinite; }
@keyframes sitPulse { 0% { opacity: .8; transform: scale(.95); } 70%, 100% { opacity: 0; transform: scale(1.12, 1.3); } }
.tbl.seated .sit-btn { border-color: rgba(var(--ink), .34); color: rgba(var(--ink), .6); background: rgba(8,5,3,.42); }
/* réaction brève d'un joueur simulé, au-dessus de sa plaque */
.plate:has(.seat-bubble) { z-index: 7; }
.seat-bubble { position: absolute; left: 50%; bottom: calc(100% + .5em); z-index: 6; transform: translateX(-50%); background: #fffdf6; color: #222; font: 700 max(10px, 1.1em)/1.2 var(--font); padding: .45em .9em; border-radius: 12px 12px 12px 3px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.45); pointer-events: none; animation: seatBubble 2.2s ease-out both; }
@keyframes seatBubble { 0% { opacity: 0; translate: 0 .8em; scale: .7; } 9% { opacity: 1; translate: 0 0; scale: 1; } 82% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -.8em; } }
/* les deux cartes du joueur, tournées vers le centre de la table */
.hole { position: absolute; left: calc(var(--nx) * var(--dh)); top: calc(var(--ny) * var(--dh)); width: 0; height: 0; z-index: 2; transform: rotate(var(--rot)); }
.hole .slot { position: absolute; left: calc(var(--ov) - var(--cw)); top: calc(var(--cw) * -.7); }
.hole .slot + .slot { left: calc(var(--ov) * -1); }
.station.mine .hole .slot { rotate: -4deg; } .station.mine .hole .slot + .slot { rotate: 4deg; }
.station.mine .hand-plate, .station .hand-plate { position: absolute; left: calc(var(--nx) * var(--dp)); top: calc(var(--ny) * var(--dp)); transform: translate(-50%, -50%); z-index: 5; }
/* grand écran : la main et son tirage sur une ligne, entre mes cases et mes cartes */
.tbl[data-mode="wide"] .station.mine .hand-plate { flex-direction: row; align-items: baseline; gap: .7em; }
.tbl[data-mode="wide"] .station.mine .hand-plate small { margin-top: 0; }
.station:not(.mine) .hand-plate { padding: .26em .7em .22em; color: #fff; background: rgba(6,10,8,.88); box-shadow: 0 0 0 1px rgba(243,220,138,.6), 0 .2em .5em rgba(0,0,0,.5); }
.station:not(.mine) .hand-plate b { font: 700 max(8.5px, .95em)/1.1 var(--font); letter-spacing: .04em; text-shadow: none; }
.plate .res { font: 900 max(10px, 1.15em)/1 var(--font); font-variant-numeric: tabular-nums; animation: platePop .4s .9s cubic-bezier(.2,1.5,.35,1) both; }
.plate .res:empty { display: none; }
.plate .res.pos { color: #6cf59a; } .plate .res.neg { color: #ff8b98; } .plate .res.zero { color: #ffd166; }
.tbl[data-phase="reveal"] .plate .tag.call, .tbl[data-phase="result"] .plate .tag.call { display: none; }

/* cases de mise : ANTE cercle doré, AA cercle rosé, CALL carré arrondi ; le long de la tangente à l'arc */
.spots { position: absolute; left: calc(var(--nx) * var(--ds)); top: calc(var(--ny) * var(--ds)); width: 0; height: 0; z-index: 1; }
.spot { font: inherit; position: absolute; left: calc(var(--tx) * var(--k) * var(--pitch)); top: calc(var(--ty) * var(--k) * var(--pitch)); display: block; width: var(--sp); height: var(--sp); margin: calc(var(--sp) / -2) 0 0 calc(var(--sp) / -2); border-radius: 50%; color: rgba(var(--ink), .9); pointer-events: none; -webkit-tap-highlight-color: transparent; }
.spot.call { border-radius: 27%; }
.spot::before { content: ""; position: absolute; inset: 3%; border-radius: inherit; background: rgba(0,0,0,.2); transition: background .15s; }
.spot-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sr-out { fill: none; stroke: rgba(var(--ink), .62); stroke-width: 2.2; transition: stroke .25s; }
.sr-in { fill: none; stroke: rgba(var(--ink), .3); stroke-width: 1.1; stroke-dasharray: 1.6 3.4; }
.spot.ante .sr-out { stroke: #dcc06a; stroke-width: 3; } .spot.ante .sr-in { stroke: rgba(220,192,106,.55); }
.spot.aa .sr-out { stroke: #e58a97; } .spot.aa .sr-in { stroke: rgba(229,138,151,.5); }
.spot-lbl { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font: 700 calc(var(--sp) * .2)/1 var(--f-eng); letter-spacing: .1em; text-indent: .1em; color: rgba(var(--ink), .86); pointer-events: none; transition: opacity .2s; }
.spot.ante .spot-lbl { color: #ecd27c; } .spot.aa .spot-lbl { color: #f5aab4; font-size: calc(var(--sp) * .26); }
.spot-lbl i { display: block; margin-top: .15em; font-style: normal; font-size: .5em; letter-spacing: .16em; text-indent: .16em; opacity: .85; }
.spot.has .spot-lbl { opacity: 0; }
.station.empty .spot, .station:not(.mine) .spot { opacity: .78; }
.station.empty .spot { opacity: .45; }
.station:not(.mine) .spot.has { opacity: 1; }
.station.open button.spot { pointer-events: auto; cursor: pointer; }
.station.open button.spot:hover::before { background: rgba(255,255,255,.1); }
.station.open button.spot:active::before { background: rgba(255,255,255,.18); }
.spot:focus-visible { outline: 2px solid #f6df8c; outline-offset: 3px; }
.spot:disabled { opacity: 1; }
/* à moi de miser : un anneau de lumière part du cercle Ante */
.spot-pulse { position: absolute; inset: -4px; border-radius: inherit; border: 2px solid #f6df8c; box-shadow: 0 0 1.4em rgba(246,223,140,.5), inset 0 0 1em rgba(246,223,140,.28); opacity: 0; pointer-events: none; }
.spot.turn .spot-pulse { animation: spotTurn 1.5s ease-out infinite; }
@keyframes spotTurn { 0% { opacity: .95; transform: scale(.93); } 72%, 100% { opacity: 0; transform: scale(1.17); } }
.station.active .spot.call .spot-pulse { animation: spotTurn 1.5s ease-out infinite; }
.station.winner .spot.has .sr-out { stroke: #7dffa9; }
/* total de la case */
.amt { position: absolute; left: 50%; top: calc(54% + var(--chip) * .5 + .1em); z-index: 3; transform: translateX(-50%); padding: .16em .6em .12em; white-space: nowrap; font: 800 max(9px, calc(var(--chip) * .38))/1.2 var(--font); font-variant-numeric: tabular-nums; color: #fff; background: rgba(6,5,3,.88); border: 1px solid rgba(243,220,138,.75); border-radius: 1em; box-shadow: 0 .2em .5em rgba(0,0,0,.5); pointer-events: none; }
.amt:empty { display: none; }
.amt i { margin-left: .45em; font-style: normal; font-size: .82em; letter-spacing: .06em; text-transform: uppercase; color: #ffd166; }
.spot.paid .amt { display: none; }

/* ----- jetons : tranche à incrustations, face à six inserts, piles vues de trois quarts ----- */
.chip { --c: #c8102e; --d: #7d0a1c; --e: #f7f3e8; --th: calc(var(--chip) * .1); position: relative; display: block; width: var(--chip); height: var(--chip); border-radius: 50%; font-style: normal;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.42)), repeating-linear-gradient(90deg, var(--d) 0 11%, var(--e) 11% 19%, var(--d) 19% 30%); box-shadow: 0 1px 0 rgba(0,0,0,.75); }
.chip::after { content: ""; position: absolute; inset: 0; border-radius: 50%; transform: translateY(calc(var(--th) * -1));
  background:
    radial-gradient(circle, rgba(255,255,255,.2) 0, rgba(255,255,255,.07) 40%, rgba(255,255,255,0) 41%),
    radial-gradient(circle, var(--c) 0 55%, rgba(0,0,0,.35) 56% 58.5%, var(--e) 59.5% 61.5%, transparent 62.5%),
    repeating-conic-gradient(from -11.25deg, var(--e) 0 22.5deg, var(--c) 22.5deg 45deg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.42), inset 0 1.5px 1px rgba(255,255,255,.4); }
.chip.v1 { --c: #e3e0d7; --d: #8f8c82; --e: #3f6fd9; } .chip.v5 { --c: #c8102e; --d: #7d0a1c; } .chip.v25 { --c: #1e8e3e; --d: #0f5524; } .chip.v100 { --c: #1c1c21; --d: #000; --e: #d4af37; } .chip.v500 { --c: #6a1b9a; --d: #3d0e5c; --e: #f3dc8a; }
.chips { position: absolute; left: 50%; top: 54%; width: 0; height: 0; z-index: 2; pointer-events: none; }
.stack { position: absolute; left: 0; top: 0; width: 0; height: 0; display: block; }
.stack::before { content: ""; position: absolute; left: calc(var(--chip) * -.62); top: calc(var(--chip) * -.3); width: calc(var(--chip) * 1.24); height: calc(var(--chip) * .92); border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.55), rgba(0,0,0,0) 70%); }
.stack .chip { position: absolute; left: calc(var(--chip) / -2); top: calc(var(--chip) / -2 - var(--n, 0) * (var(--th) + .7px)); }
.stack .chip.drop { animation: chipDrop .4s cubic-bezier(.3,.7,.3,1) both; }
@keyframes chipDrop { 0% { transform: translateY(calc(var(--chip) * -1.1)) scale(1.14); opacity: 0; } 45% { transform: translateY(0) scale(1); opacity: 1; } 65% { transform: translateY(calc(var(--chip) * -.18)); } 82% { transform: translateY(0); } 91% { transform: translateY(calc(var(--chip) * -.05)); } 100% { transform: none; } }
/* paiement posé par la croupière à côté de la mise : multiplicateur gravé au-dessus, gain dessous */
.stack.pay { transform: translate(calc(var(--chip) * 1.02), calc(var(--chip) * .08)); z-index: 2; }
.stack.pay .mult { position: absolute; left: 0; top: calc(var(--chip) * -.5 - var(--h, 0) * (var(--chip) * .1 + .7px) - var(--chip) * .16); transform: translate(-50%, -100%); display: flex; white-space: nowrap; font: 800 max(8.5px, calc(var(--chip) * .36))/1.2 var(--font); font-variant-numeric: tabular-nums; border-radius: .34em; overflow: hidden; box-shadow: 0 0 0 1px #3d2c06, 0 .2em .5em rgba(0,0,0,.55); }
.stack.pay .mult i { padding: .12em .42em .08em .5em; font-style: normal; font-family: var(--f-num); color: #3a2500; background: var(--brass); }
.stack.pay .mult u { padding: .12em .5em .08em .42em; text-decoration: none; color: #033b17; background: linear-gradient(180deg, #e3ffec, #7dffa9 55%, #2fbf6a); }
/* en quinconce : celle de l'Ante passe au-dessus de ses deux voisines */
.spot.ante .stack.pay .mult { margin-top: calc(var(--chip) * -.6); }
.stack.wait { opacity: 0; }
.stack.land { animation: stackLand .36s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes stackLand { 0% { scale: 1.25; opacity: .4; } 60% { scale: .96; opacity: 1; } 100% { scale: 1; opacity: 1; } }
/* jetons et paquets en vol (calque fixe au-dessus de la page) */
.fly-layer { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 60; pointer-events: none; --chip: 30px; }
.fly-layer .flyer { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform, opacity; }
.fly-layer .pack { position: absolute; left: calc(var(--chip) * -.5); top: calc(var(--chip) * -.34); width: var(--chip); height: calc(var(--chip) * .68); border-radius: 3px; border: 2px solid #fbfaf6; background: linear-gradient(160deg, #b5152e, #5a0a18); box-shadow: 0 1px 0 #cfc9ba, 0 2px 0 #b9b2a2, 0 3px 4px rgba(0,0,0,.5); transform: rotate(-14deg); }

/* ===== annonce du dénouement : plaque accrochée au mur, à côté de la croupière ===== */
.announce { position: absolute; z-index: 8; left: 2em; top: 1.3em; width: min(46em, calc(50% - 11em)); display: flex; justify-content: center; pointer-events: none; }
.an-plaque { --ac: #f3dc8a; --ab: rgba(212,175,55,.42); position: relative; width: 100%; padding: .9em 2.2em 1em; text-align: center; border-radius: .6em; border: 1px solid #f3dc8a; color: #fff;
  background: linear-gradient(180deg, rgba(8,26,18,.96), rgba(3,10,7,.97)); box-shadow: inset 0 0 0 3px rgba(0,0,0,.6), inset 0 0 0 4px rgba(212,175,55,.3), 0 0 2.6em var(--ab), 0 1em 2.4em rgba(0,0,0,.6); animation: plaqueIn .5s cubic-bezier(.2,1.3,.35,1) both; }
.an-plaque.still { animation: none; }
.an-plaque.still .an-rays { animation: ambSpin 26s linear infinite; }
.an-plaque.still .an-shine::before { animation: none; }
.an-plaque.win { --ac: #8dffb4; --ab: rgba(47,191,106,.5); border-color: #9dffc0; }
.an-plaque.noq { --ac: #ffd166; --ab: rgba(255,170,60,.45); }
.an-plaque.noq.win { border-color: #ffe08a; }
.an-plaque.lose { --ac: #ff8b98; --ab: rgba(190,30,55,.45); border-color: #d9a0a8; }
.an-plaque.push { --ac: #ffd166; --ab: rgba(255,200,90,.4); }
.an-plaque.fold, .an-plaque.info { --ac: #dfe6e2; --ab: rgba(160,190,175,.25); border-color: #9fb3a8; }
.an-plaque::before, .an-plaque::after { content: ""; position: absolute; top: 50%; width: 1.9em; height: 1.9em; margin-top: -.95em; background: linear-gradient(135deg, #fff0b0, #c2952a); transform: rotate(45deg); border: 1px solid #7a5a12; box-shadow: 0 0 12px rgba(255,214,80,.6); }
.an-plaque::before { left: -1em; } .an-plaque::after { right: -1em; }
@keyframes plaqueIn { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.an-rays { position: absolute; z-index: -1; left: 50%; top: 50%; width: 56em; height: 56em; margin: -28em 0 0 -28em; border-radius: 50%; opacity: 0; background: repeating-conic-gradient(from 0deg, var(--ab) 0 6deg, transparent 6deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 62%); mask-image: radial-gradient(circle, #000 12%, transparent 62%); }
.an-plaque.t2 .an-rays, .an-plaque.t3 .an-rays { opacity: 1; animation: raysIn .6s ease-out both, ambSpin 26s linear infinite; }
@keyframes raysIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ambSpin { to { transform: rotate(360deg); } }
.an-shine { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.an-shine::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28) 50%, transparent); transform: translateX(-140%) skewX(-18deg); animation: shineX 1.1s .35s ease-in-out both; }
@keyframes shineX { to { transform: translateX(440%) skewX(-18deg); } }
.an-title { position: relative; font: 700 max(15px, 2.5em)/1.05 var(--f-eng); letter-spacing: .12em; text-indent: .12em; text-transform: uppercase; color: var(--ac); text-shadow: 0 2px 0 rgba(0,0,0,.7), 0 0 22px var(--ab); }
.an-plaque.t2 .an-title { font-size: max(17px, 3.1em); background: linear-gradient(180deg, #fffdf0 10%, #ffe07a 55%, #ff9d2e 96%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 2px 1px rgba(0,0,0,.7)); }
.an-plaque.t3 .an-title { font-size: max(18px, 3.5em); background: linear-gradient(180deg, #fff 8%, #ffe07a 45%, #ff7a2e 96%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 2px 1px rgba(0,0,0,.7)) drop-shadow(0 0 14px rgba(255,190,70,.7)); }
.an-plaque.noq .an-title { font-size: max(14px, 1.9em); }
.an-plaque.t2, .an-plaque.t3 { --ab: rgba(255,200,80,.5); border-color: #ffe9a0; box-shadow: inset 0 0 0 3px rgba(0,0,0,.6), inset 0 0 0 4px rgba(255,220,120,.5), 0 0 3.4em rgba(255,200,80,.6), 0 1em 2.4em rgba(0,0,0,.6); }
.an-sub { position: relative; margin-top: .4em; font: 700 max(10.5px, 1.3em)/1.2 var(--font); color: rgba(var(--ink), .92); }
.an-cmp { position: relative; margin-top: .55em; display: flex; align-items: center; justify-content: center; gap: .9em; }
.an-cmp .sd { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: .3em .8em .34em; border-radius: .5em; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.an-cmp .sd small { font: 800 max(7.5px, .82em)/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.an-cmp .sd b { margin-top: .25em; font: 700 max(10px, 1.2em)/1.1 var(--font); white-space: nowrap; }
.an-cmp .sd.w { background: rgba(255,214,90,.14); box-shadow: inset 0 0 0 1px #f3dc8a, 0 0 1em rgba(255,214,80,.35); }
.an-cmp .sd.w b { color: #ffe9a0; }
.an-cmp em { flex: 0 0 auto; font: 700 max(9px, 1.05em)/1 var(--f-eng); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ac); }
.an-net { position: relative; margin-top: .5em; }
.an-net .num { font: 900 max(15px, 2.2em)/1 var(--font); font-variant-numeric: tabular-nums; }
.an-net .num.pos { color: #6cf59a; text-shadow: 0 0 16px rgba(108,245,154,.5); } .an-net .num.neg { color: #ff8b98; } .an-net .num.zero { color: #ffd166; }
.an-lines { position: relative; margin-top: .45em; padding-top: .45em; border-top: 1px solid rgba(212,175,55,.3); display: flex; flex-wrap: wrap; justify-content: center; gap: .3em 1.1em; font: 600 max(9.5px, 1.05em)/1.2 var(--font); color: rgba(var(--ink), .78); animation: tagIn .4s .45s ease-out both; }
.an-plaque.still .an-lines { animation: none; }
.an-lines .ln i { font-style: normal; color: #e9cd6c; font-weight: 700; }
.an-lines .ln.w b { color: #6cf59a; } .an-lines .ln.l b { color: #ff8b98; }
@keyframes tagIn { from { opacity: 0; translate: 0 .4em; } to { opacity: 1; translate: 0 0; } }
.toasts { position: fixed; top: auto; bottom: 96px; left: 0; right: 0; z-index: 30; }

/* ===== pupitre : râtelier de jetons en creux, touches de cuir, DEAL en laiton poli, CALL et FOLD en touches pleines ===== */
.controls { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; min-height: 64px; padding: 7px 14px; border-radius: 16px; border: 1px solid #3b2912;
  background: repeating-linear-gradient(96deg, rgba(0,0,0,.16) 0 2px, transparent 2px 7px, rgba(255,255,255,.025) 7px 8px, transparent 8px 14px), linear-gradient(180deg, #33200f, #170d06);
  box-shadow: inset 0 1px 0 rgba(255,224,170,.2), inset 0 0 0 1px rgba(0,0,0,.55), inset 0 -10px 18px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.5); }
.controls::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(226,192,96,.75) 20%, rgba(255,240,190,.9) 50%, rgba(226,192,96,.75) 80%, transparent); }
.chip-tray { --chip: 46px; display: flex; gap: 9px; padding: 6px 12px 7px; border-radius: 999px; background: linear-gradient(180deg, #060504, #15110a); box-shadow: inset 0 2px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,236,170,.12); transition: opacity .25s, filter .25s; }
.chip-tray.dim { opacity: .42; filter: saturate(.6); pointer-events: none; }
.chip-btn { position: relative; width: var(--chip); height: var(--chip); border-radius: 50%; flex: 0 0 auto; transition: transform .16s cubic-bezier(.3,1.5,.5,1); -webkit-tap-highlight-color: transparent; }
.chip-btn .chip { box-shadow: 0 1px 0 rgba(0,0,0,.75), 0 7px 9px rgba(0,0,0,.55); }
.chip-btn b { position: absolute; inset: 0; transform: translateY(calc(var(--chip) * -.1)); display: flex; align-items: center; justify-content: center; font: 900 calc(var(--chip) * .3)/1 var(--font); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
.chip-btn.c1 b { color: #222; text-shadow: none; }
.chip-btn.c100 b, .chip-btn.c500 b { font-size: calc(var(--chip) * .27); }
.chip-btn:hover { transform: translateY(-4px); }
.chip-btn.active { transform: translateY(-7px) scale(1.1); }
.chip-btn.active::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #f3dc8a; box-shadow: 0 0 12px rgba(255,214,80,.7); }
.chip-btn:active { transform: translateY(-2px) scale(.97); }
.chip-btn:focus-visible { outline: 2px solid #f6df8c; outline-offset: 6px; }
.ctrl-group { display: flex; gap: 9px; align-items: center; }
.ctl { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 16px; border-radius: 11px; border: 1px solid #5d4a22; font: 800 13px var(--font); letter-spacing: .4px; color: #f3e6c8; white-space: nowrap;
  background: linear-gradient(180deg, #33291f, #17110d); box-shadow: inset 0 1px 0 rgba(255,235,190,.16), 0 3px 0 #050302, 0 7px 12px rgba(0,0,0,.35); transition: transform .08s, border-color .15s, filter .15s, box-shadow .08s; -webkit-tap-highlight-color: transparent; }
.ctl svg { flex: 0 0 auto; opacity: .85; }
.ctl:hover { border-color: #c9a227; filter: brightness(1.12); }
.ctl:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,235,190,.16), 0 1px 0 #050302, 0 3px 6px rgba(0,0,0,.35); }
.ctl:disabled { opacity: .42; pointer-events: none; }
.ctl:focus-visible { outline: 2px solid #f6df8c; outline-offset: 2px; }
.ctl kbd { display: none; min-width: 18px; padding: 1px 5px; border-radius: 4px; border: 1px solid currentColor; font: 700 10px/1.4 var(--font); letter-spacing: 0; text-align: center; opacity: .5; }
.ctl.primary { min-width: 138px; color: #2a1a00; letter-spacing: 1.5px; border-color: #f3dc86; background: linear-gradient(180deg, #fdeea8 0%, #e9c95a 44%, #c39a26 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(120,84,0,.45), 0 3px 0 #7d5c0c, 0 9px 20px rgba(212,175,55,.3); }
.ctl.primary:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(120,84,0,.45), 0 1px 0 #7d5c0c, 0 4px 10px rgba(212,175,55,.3); }
.ctl.ghost { background: rgba(0,0,0,.25); border-style: dashed; box-shadow: none; color: #e7d9b6; }
/* main suivante automatique (table solo) : le bouton se vide pendant le délai */
.ctl.auto { overflow: hidden; }
.ctl.auto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(42,26,0,.55); transform-origin: 0 50%; animation: nextHand var(--next, 6s) linear both; }
@keyframes nextHand { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* CALL et FOLD : deux touches pleines, le montant du Call gravé dessous */
.ctl.act { min-width: 132px; min-height: 52px; padding: 0 14px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.45); }
.ctl.act .k { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ctl.act .k b { font: 900 16px/1 var(--font); letter-spacing: 2px; }
.ctl.act .k small { font: 700 11px/1 var(--font); letter-spacing: .3px; opacity: .92; font-variant-numeric: tabular-nums; }
.ctl.act.call { background: linear-gradient(180deg, #37b85c 0%, #1f8f41 50%, #166c30 100%); border-color: #55cf78; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,50,15,.45), 0 3px 0 #0b4a20, 0 8px 16px rgba(31,143,65,.3); }
.ctl.act.call .k small { padding: 2px 8px; border-radius: 9px; background: rgba(0,0,0,.28); text-shadow: none; }
.ctl.act.fold { background: linear-gradient(180deg, #e8334f 0%, #c0162f 50%, #8f0c20 100%); border-color: #ff6079; box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -2px 0 rgba(70,0,10,.45), 0 3px 0 #5b0713, 0 8px 16px rgba(192,22,47,.32); }
.ctl.act::before { content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 2px solid #ffd9de; opacity: 0; pointer-events: none; }
.controls.late .ctl.act::before { animation: latePulse .9s ease-out infinite; }
@media (hover: hover) and (pointer: fine) and (min-width: 901px) { .ctl kbd { display: inline-block; } }

/* ---------- modales propres au jeu ---------- */
.pay-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 4px 0 10px; }
.pay-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--border); }
.pay-table td { padding: 4px 6px; border-bottom: 1px solid #1a2a21; }
.pay-table td.r, .pay-table th.r { text-align: right; color: var(--gold); font-weight: 800; }
.hint-box { display: flex; flex-direction: column; gap: 6px; }
.hint-box .big { font-size: 20px; font-weight: 900; }
.hint-box .big.call { color: #6cf59a; } .hint-box .big.fold { color: #ff7b8a; }
.fair-list .kv { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.mybets-table td .cs { font-family: ui-monospace, Menlo, monospace; font-size: 11px; white-space: nowrap; }
.mybets-table td .cs.red { color: #ff8fa0; }
.mybets-table tr.push td { color: #ffd166; } .mybets-table tr.fold td { color: var(--muted); }

/* ===== téléphone en portrait (scène étroite) : ma place en bas au centre, les autres en deux colonnes, tableaux de paiement
   sous le tableau ===== */
.tbl[data-mode="tall"] { --wall-h: calc(8.6 * var(--em)); min-height: 430px; border-radius: 16px; }
.tbl[data-mode="tall"] .dealer-zone { height: calc(var(--wall-h) + 3.6em); }
.tbl[data-mode="tall"] .dealer-art { width: 13em; height: 12.9em; margin-left: -6.5em; }
.tbl[data-mode="tall"] .wall-panel { width: 44em; height: 44em; margin: 0 0 -22em -22em; bottom: 2em; }
.tbl[data-mode="tall"] .wall-spot { width: 32em; height: 24em; margin-left: -16em; }
.tbl[data-mode="tall"] .felt-glow { width: 44em; height: 30em; margin-left: -22em; }
.tbl[data-mode="tall"] .dealer-say { left: calc(50% + 6.3 * var(--em)); top: calc(1.2 * var(--em)); max-width: calc(11.6 * var(--em)); padding: 6px 9px; font-size: max(10.5px, calc(1.1 * var(--em))); border-radius: 12px 12px 12px 3px; }
.tbl[data-mode="tall"] .status-box { right: auto; left: .9em; top: .9em; flex-direction: column; align-items: flex-start; gap: .5em; }
.tbl[data-mode="tall"] .timer-ring { width: 4.4em; height: 4.4em; }
.tbl[data-mode="tall"] .status-txt { text-align: left; max-width: 11.4em; }
.tbl[data-mode="tall"] .table-status { font-size: max(10.5px, 1.16em); letter-spacing: .06em; }
.tbl[data-mode="tall"] .hand-no { margin-top: .2em; }
.tbl[data-mode="tall"] .felt-top { top: calc(var(--wall-h) + var(--far) + .4em); }
.tbl[data-mode="tall"] .gear { gap: 1.3em; }
.tbl[data-mode="tall"] .discard { width: 5.6em; margin-top: .3em; }
.tbl[data-mode="tall"] .rack { width: 14.4em; height: 2em; padding: .26em .36em .22em; gap: .2em; }
.tbl[data-mode="tall"] .shoe { width: 7em; }
.tbl[data-mode="tall"] .fair-tag { left: auto; right: -.2em; transform: none; padding: .3em .6em .26em .5em; gap: .35em; }
.tbl[data-mode="tall"] .fair-tag small { display: none; }
.tbl[data-mode="tall"] .hist-strip { gap: .28em; padding: .26em .45em; }
.tbl[data-mode="tall"] .hist-strip i:nth-child(n+6) { display: none; }
.tbl[data-mode="tall"] .dealer-hand { margin-top: -2.2em; }
.tbl[data-mode="tall"] .dealer-hand .cards { --cw: calc(4.4 * var(--em)); gap: .5em; }
.tbl[data-mode="tall"] .board { margin-top: 2.4em; gap: .5em; --cw: calc(5.2 * var(--em)); }
.tbl[data-mode="tall"] .board .slot.turn, .tbl[data-mode="tall"] .board .slot.river { margin-left: .2em; }
.tbl[data-mode="tall"] .board .slot::after { inset: .3em; }
.tbl[data-mode="tall"] .pays { position: static; height: auto; margin-top: .9em; display: flex; gap: 1em; }
.tbl[data-mode="tall"] .pay { position: static; width: 16.6em; padding: .4em .5em .34em; outline-offset: .22em; }
.tbl[data-mode="tall"] .pay h5 { margin-bottom: .2em; padding-bottom: .22em; font-size: 1em; line-height: 1.1; letter-spacing: .14em; }
.tbl[data-mode="tall"] .pay li { padding: .04em .3em 0; gap: .4em; font-size: max(7.4px, .86em); line-height: 1.14; letter-spacing: .02em; }
.tbl[data-mode="tall"].short .pays { display: none; }
.tbl[data-mode="tall"] .station { --cw: calc(3.3 * var(--em)); --ov: calc(.55 * var(--em)); --sp: calc(2.7 * var(--em)); --pitch: calc(2.92 * var(--em)); --dh: calc(3.75 * var(--em)); --ds: calc(7.8 * var(--em)); --dp: calc(1.9 * var(--em)); --chip: calc(1.5 * var(--em)); }
.tbl[data-mode="tall"] .station.mine { --cw: calc(6.4 * var(--em)); --ov: calc(.3 * var(--em)); --sp: max(38px, calc(4.6 * var(--em))); --pitch: max(41px, calc(5 * var(--em))); --dh: calc(6.25 * var(--em)); --dp: calc(2.4 * var(--em)); --ds: calc(13.9 * var(--em)); --chip: calc(2.4 * var(--em)); }
.tbl[data-mode="tall"] .station.empty .spots { display: none; }
.tbl[data-mode="tall"] .plate { height: 2em; padding: 0 .6em 0 .2em; gap: .35em; }
.tbl[data-mode="tall"] .plate .av { width: 1.6em; height: 1.6em; }
.tbl[data-mode="tall"] .plate .nm { font-size: max(9px, .95em); max-width: 5.6em; }
.tbl[data-mode="tall"] .station.mine .plate { height: 2.7em; padding: 0 .9em 0 .3em; }
.tbl[data-mode="tall"] .station.mine .plate .av { width: 2.2em; height: 2.2em; }
.tbl[data-mode="tall"] .station.mine .plate .nm { font-size: max(10px, 1.1em); max-width: 9em; }
.tbl[data-mode="tall"] .station.empty .plate { height: auto; padding: 0; }
.tbl[data-mode="tall"] .sit-btn { height: 3.6em; padding: 0 .7em 0 .55em; gap: .3em; font-size: max(9.5px, .98em); }
.tbl[data-mode="tall"] .sit-btn svg { width: 1.3em; height: 1.3em; }
.tbl[data-mode="tall"] .station:not(.mine) .spot-lbl { display: none; }
.tbl[data-mode="tall"] .station:not(.mine) .amt { padding: .06em .34em .02em; font-size: max(7.5px, .76em); border-color: rgba(255,255,255,.3); }
.tbl[data-mode="tall"] .hand-plate.dealer { top: calc(100% - .45em); }
.tbl[data-mode="tall"] .announce { left: 50%; top: calc(var(--wall-h) + var(--far) + 20.2em); width: 33.6em; margin-left: -16.8em; }
.tbl[data-mode="tall"].short .announce { top: calc(var(--wall-h) + var(--far) + 18.7em); }
.tbl[data-mode="tall"].short .an-cmp { display: none; }
.tbl[data-mode="tall"].short .an-plaque { padding: .6em 1.4em .7em; }
.tbl[data-mode="tall"].short .an-net { margin-top: .3em; }
.tbl[data-mode="tall"] .an-plaque { padding: .8em 1.4em .9em; }
.tbl[data-mode="tall"] .an-cmp { gap: .5em; }
.tbl[data-mode="tall"] .an-cmp .sd { padding: .3em .5em; }

/* ===== téléphone en paysage : pas de mur ; la croupière au bout de la table, ses cartes et le tableau sur une ligne, les
   places en rangée le long du bord joueur ===== */
.tbl[data-mode="low"] { --wall-h: 0px; min-height: 0; border-radius: 14px; }
.tbl[data-mode="low"] .wall, .tbl[data-mode="low"] .felt-dust { display: none; }
.tbl[data-mode="low"] .felt-glow { left: 44%; top: -4em; width: 60em; height: 30em; }
.tbl[data-mode="low"] .dealer-zone { z-index: 3; left: 1em; right: auto; top: auto; bottom: 1.5em; width: 14em; height: 13.6em; }
.tbl[data-mode="low"] .dealer-art { width: 13.6em; height: 13.5em; margin-left: -6.8em; -webkit-mask-image: linear-gradient(#000 72%, transparent 97%); mask-image: linear-gradient(#000 72%, transparent 97%); }
.tbl[data-mode="low"] .dealer-art::before { top: 30%; bottom: -6%; }
.tbl[data-mode="low"] .dealer-light { background: linear-gradient(180deg, rgba(255,220,160,.16) 0, rgba(255,220,160,.03) 34%, rgba(6,14,9,0) 60%, rgba(4,12,8,.4) 100%); }
.tbl[data-mode="low"] .dealer-say { left: calc(1.8 * var(--em)); top: calc(1.7 * var(--em)); max-width: calc(15 * var(--em)); padding: 5px 9px; font-size: max(10px, calc(1.05 * var(--em))); border-radius: 11px 11px 11px 3px; }
.tbl[data-mode="low"] .dealer-say::before { left: 14px; bottom: -6px; border: 6px solid transparent; border-top-color: #f0e7d2; border-bottom: 0; border-right-width: 2px; }
.tbl[data-mode="low"] .status-box { right: 1.6em; top: 1.5em; gap: .7em; }
.tbl[data-mode="low"] .timer-ring { width: 4.2em; height: 4.2em; }
.tbl[data-mode="low"] .status-txt { max-width: 12.5em; }
.tbl[data-mode="low"] .table-status { font-size: max(10px, 1.08em); letter-spacing: .06em; }
.tbl[data-mode="low"] .hand-no { margin-top: .15em; font-size: max(8.5px, .9em); }
.tbl[data-mode="low"] .felt-top { flex-direction: row; justify-content: flex-start; align-items: flex-start; left: 17.6em; right: 13em; top: calc(var(--far) + .8em); bottom: 0; gap: 1.2em; }
.tbl[data-mode="low"] .gear { display: contents; }
.tbl[data-mode="low"] .discard { order: 3; width: 5.4em; margin: .9em 0 0 1.4em; }
.tbl[data-mode="low"] .dealer-hand { order: 1; margin: 0 2.2em 0 0; }
.tbl[data-mode="low"] .dealer-tag { display: block; }
.tbl[data-mode="low"] .dealer-hand .cards { --cw: calc(3.7 * var(--em)); gap: .4em; }
.tbl[data-mode="low"] .board { order: 2; margin-top: 0; gap: .42em; --cw: calc(4.1 * var(--em)); }
.tbl[data-mode="low"] .board .slot.turn, .tbl[data-mode="low"] .board .slot.river { margin-left: .2em; }
.tbl[data-mode="low"] .board .slot::after { inset: .26em; }
.tbl[data-mode="low"] .shoe { order: 4; width: 6.8em; margin-top: .5em; }
.tbl[data-mode="low"] .rack { position: absolute; left: -15.4em; bottom: 2.3em; width: 11.6em; height: 1.9em; padding: .24em .34em .2em; gap: .18em; }
.tbl[data-mode="low"] .fair-tag { left: 1.2em; transform: none; padding: .28em .6em .24em .5em; gap: .35em; }
.tbl[data-mode="low"] .fair-tag small { display: none; }
.tbl[data-mode="low"] .hist-strip { gap: .26em; padding: .24em .42em; }
.tbl[data-mode="low"] .hist-strip i:nth-child(n+6) { display: none; }
.tbl[data-mode="low"] .hand-plate.dealer { top: calc(100% + .3em); padding: .22em .4em .2em .6em; gap: .45em; }
.tbl[data-mode="low"] .pays { display: none; }
.tbl[data-mode="low"] .station { --cw: calc(3.2 * var(--em)); --ov: calc(.55 * var(--em)); --sp: calc(2.6 * var(--em)); --pitch: calc(2.85 * var(--em)); --dh: calc(3.65 * var(--em)); --ds: calc(7.75 * var(--em)); --dp: calc(1.8 * var(--em)); --chip: calc(1.45 * var(--em)); }
.tbl[data-mode="low"] .station.mine { --cw: calc(5 * var(--em)); --ov: calc(.3 * var(--em)); --sp: max(36px, calc(3.8 * var(--em))); --pitch: max(40px, calc(4.3 * var(--em))); --dh: calc(4.9 * var(--em)); --dp: calc(2.05 * var(--em)); --ds: calc(11.4 * var(--em)); --chip: calc(2.1 * var(--em)); }
.tbl[data-mode="low"] .plate { height: 2em; padding: 0 .6em 0 .2em; gap: .35em; }
.tbl[data-mode="low"] .plate .av { width: 1.6em; height: 1.6em; }
.tbl[data-mode="low"] .plate .nm { font-size: max(9px, .95em); max-width: 5.6em; }
.tbl[data-mode="low"] .station.mine .plate { height: 2.2em; padding: 0 .7em 0 .25em; }
.tbl[data-mode="low"] .station.mine .plate .av { width: 1.8em; height: 1.8em; }
.tbl[data-mode="low"] .station.empty .plate { height: auto; padding: 0; }
.tbl[data-mode="low"] .sit-btn { height: 3.6em; padding: 0 .8em 0 .6em; gap: .35em; font-size: max(10px, 1em); }
.tbl[data-mode="low"] .sit-btn svg { width: 1.3em; height: 1.3em; }
.tbl[data-mode="low"] .station:not(.mine) .spot-lbl { display: none; }
.tbl[data-mode="low"] .station:not(.mine) .amt { padding: .08em .4em .04em; font-size: max(8px, .8em); border-color: rgba(255,255,255,.3); }
.tbl[data-mode="low"] .hand-plate b { font-size: max(9.5px, 1.05em); }
.tbl[data-mode="low"] .hand-plate small { font-size: max(8px, .82em); }
.tbl[data-mode="low"] .announce { left: 15.4em; right: auto; top: 9.3em; width: 27em; }
.tbl[data-mode="low"] .an-plaque { padding: .45em 1em .5em; }
.tbl[data-mode="low"] .an-plaque::before, .tbl[data-mode="low"] .an-plaque::after { display: none; }
.tbl[data-mode="low"] .an-title, .tbl[data-mode="low"] .an-plaque.t2 .an-title, .tbl[data-mode="low"] .an-plaque.t3 .an-title { font-size: max(12.5px, 1.6em); }
.tbl[data-mode="low"] .an-cmp, .tbl[data-mode="low"] .an-lines { display: none; }
.tbl[data-mode="low"] .an-rays { width: 30em; height: 30em; margin: -15em 0 0 -15em; }
.tbl[data-mode="tall"] .an-rays { width: 44em; height: 44em; margin: -22em 0 0 -22em; }
.tbl[data-mode="low"] .an-sub { margin-top: .2em; font-size: max(9.5px, 1.05em); }
.tbl[data-mode="low"] .an-net { margin-top: .25em; }
.tbl[data-mode="low"] .an-net .num { font-size: max(13px, 1.7em); }

/* ===== page : téléphone ===== */
@media (max-width: 900px) {
  .controls { gap: 8px; padding: 7px 8px 8px; min-height: 0; border-radius: 14px; }
  .chip-tray { --chip: 42px; gap: 7px; padding: 5px 10px 6px; }
  .ctrl-group { flex-wrap: wrap; justify-content: center; gap: 7px; }
  .ctl { min-height: 42px; padding: 0 13px; font-size: 12px; }
  .ctl.primary { min-width: 118px; }
  .ctl.act { min-width: 112px; min-height: 48px; }
  .toasts { bottom: 120px; }
}
/* petit téléphone en portrait : pupitre resserré pour que la table garde la hauteur */
@media (max-width: 900px) and (max-height: 700px) and (orientation: portrait) {
  .pk { gap: 6px; padding: 6px 8px; }
  .controls { gap: 6px; padding: 5px 8px 6px; }
  .chip-tray { --chip: 38px; padding: 4px 9px 5px; }
  .ctl { min-height: 40px; }
  .ctl.act { min-height: 44px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  :root { --topbar-h: 40px; }
  .topbar { padding: 0 8px; }
  .logo { font-size: 16px; }
  .balance { font-size: 13px; }
  .icon-btn, .friends-btn, .avatar-btn { width: 30px; height: 30px; }
  .room-banner { display: none; }
  .pk { flex: none; padding: 4px; gap: 4px; max-width: none; height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h)); }
  .controls { flex-wrap: nowrap; gap: 10px; padding: 3px 10px 4px; min-height: 0; border-radius: 12px; }
  .chip-tray { --chip: 36px; gap: 6px; padding: 2px 9px 3px; }
  .chip-btn.active { transform: translateY(-4px) scale(1.08); }
  .ctrl-group { gap: 6px; flex-wrap: nowrap; }
  .ctl { min-height: 36px; padding: 0 12px; font-size: 11px; border-radius: 9px; }
  .ctl.primary { min-width: 104px; }
  .ctl.act { min-width: 104px; min-height: 38px; }
  .ctl.act .k { flex-direction: row; align-items: baseline; gap: 7px; }
  .ctl.act .k b { font-size: 13px; letter-spacing: 1.4px; }
  .ctl.act .k small { font-size: 10px; }
  .ctl.act.fold .k small { display: none; }
  .toasts { bottom: 52px; }
}

/* rien ne bouge dans le décor pendant que je dois décider (CALL ou FOLD) : seules les urgences restent animées */
.pk:has(#actionControls:not([hidden])) :is(.wall-bokeh, .wall-spot, .felt-glow, .felt-dust, .tbl-glint) { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .wall-bokeh, .wall-spot, .dealer-body, .tbl-glint, .felt-glow, .felt-dust, .an-rays, .tr-pulse, .spot-pulse, .sit-btn::after, .cardw.hi::after, .ctl.act::before { animation: none !important; }
  .felt-dust { display: none; }
  .cardw.hi::after { opacity: .9; }
  .spot.turn .spot-pulse { opacity: .8; }
  .cardw, .card3d, .chip.drop, .stack.land, .hand-plate.pop, .an-plaque, .an-lines, .an-shine::before, .dealer-say.pop, .dealer-art, .plate .res, .plate .tag, .pay li.on, .hand-plate.dealer em, .timer-ring b.tk { animation-duration: .01s !important; animation-delay: 0s !important; }
  .cardw, .dealer-art, .station { transition-duration: .01s !important; transition-delay: 0s !important; }
}
