/* Blackjack : salon bordeaux et or. Table en demi-lune (accoudoir de cuir surpiqué, chant en acajou verni, liseré de laiton,
   feutre à grain) tracée en SVG par ui.js à la taille réelle ; ici : matières, lumière, objets (sabot, défausse, râtelier,
   cartes, jetons, pupitre) et animations (transform / opacity uniquement pour les boucles). */
:root {
  --bg: #0b0608; --panel: #1a0d12; --panel-2: #140a0e; --panel-3: #100709; --border: #3a1a24; --border-light: #5c2a3a;
  --muted: #c9a9b2; --accent: #d4af37; --gold: #d4af37; --gold-2: #f3dc8a; --gold-3: #8a6a1c;
  --ink: 240, 215, 154;   /* or pâle des marquages imprimés dans le feutre */
  --brass: linear-gradient(180deg, #fff0b0 0%, #e9c552 34%, #c2952a 66%, #e6c35a 100%);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Didot, "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
}
/* Salle feutrée, statique : vignette, halo du lustre, appliques sur les côtés, moquette à treillis en bas (calque fixe commun) */
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,212,150,.24), rgba(255,180,110,.06) 58%, transparent 78%),
    radial-gradient(30% 46% at -5% 36%, rgba(196,58,52,.2), transparent 72%),
    radial-gradient(30% 46% at 105% 36%, rgba(196,58,52,.2), transparent 72%),
    linear-gradient(180deg, #1f0910 0%, #0e0508 44%, rgba(13,5,8,.93) 62%, rgba(13,5,8,.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,
    #2a0c15; }
.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; }
.balance { color: var(--gold-2); }
.room-banner { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--gold); padding: 4px; background: #1a0d12; border-bottom: 1px solid var(--border); }
.room-banner svg { width: 14px; height: 14px; }
.bj-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===== ambiance de la salle : bokeh chaud qui dérive, lueur qui respire (transform / opacity seulement) ===== */
.amb { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.amb-bokeh { position: absolute; inset: -6%; }
.amb-bokeh.a { background:
    radial-gradient(circle at 5% 16%, rgba(255,190,112,.2) 0, rgba(255,190,112,.07) 16px, rgba(255,190,112,0) 40px),
    radial-gradient(circle at 94% 12%, rgba(255,200,120,.18) 0, rgba(255,200,120,.06) 14px, rgba(255,200,120,0) 34px),
    radial-gradient(circle at 3% 58%, rgba(255,150,120,.13) 0, rgba(255,150,120,0) 48px),
    radial-gradient(circle at 97% 66%, rgba(255,170,100,.12) 0, rgba(255,170,100,0) 44px),
    radial-gradient(circle at 12% 88%, rgba(255,214,140,.09) 0, rgba(255,214,140,0) 30px);
  animation: ambDrift 27s ease-in-out infinite alternate; }
.amb-bokeh.b { background:
    radial-gradient(circle at 9% 36%, rgba(255,226,160,.12) 0, rgba(255,226,160,0) 22px),
    radial-gradient(circle at 15% 9%, rgba(255,150,120,.1) 0, rgba(255,150,120,0) 28px),
    radial-gradient(circle at 90% 34%, rgba(255,226,160,.12) 0, rgba(255,226,160,0) 26px),
    radial-gradient(circle at 85% 8%, rgba(255,190,110,.1) 0, rgba(255,190,110,0) 20px),
    radial-gradient(circle at 95% 90%, rgba(255,190,110,.09) 0, rgba(255,190,110,0) 52px);
  animation: ambDrift 36s ease-in-out -11s infinite alternate-reverse; }
.amb-glow { position: absolute; left: 50%; top: -22vh; width: 120vmin; height: 70vh; margin-left: -60vmin; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,205,140,.16), rgba(255,180,110,.04) 55%, transparent 72%); animation: ambBreath 9s ease-in-out infinite alternate; }
@keyframes ambDrift { from { transform: translate3d(-14px, 8px, 0) scale(1); opacity: .6; } to { transform: translate3d(16px, -12px, 0) scale(1.05); opacity: 1; } }
@keyframes ambBreath { from { opacity: .55; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }

/* ===== page : la scène puis le pupitre ===== */
.bj { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 8px; max-width: 1256px; width: 100%; margin: 0 auto; min-height: 0; }

/* ===== la scène. Les longueurs ci-dessous sont lues par ui.js (en pixels) pour tracer la table et placer sièges, cartes et jetons ===== */
.tbl { --wall-h: 168px; --dh: 262px; --du: 98px;
  --rail: 34px; --rail-top: 9px; --apron: 14px; --tm: 4px; --rt: 30px; --sag: .93;
  --zone-pad: 66px; --pitch-max: 232px;
  --ring: 62px; --ring-off: 47px; --side: 46px; --side-up: 0;
  --cw: 58px; --cwm: 64px; --cwd: 62px; --hand-base: 43px;
  --ins-d: 198px; --band-h: 26px; --t2-d: 230px; --t1-d: 257px;
  --rot-k: .62; --rot-max: 26;
  --chip-m: 30px; --chip-o: 24px; --chip-s: 20px;
  --t1-fs: 19px; --t2-fs: 10.5px; --band-fs: 11px;
  --tray-w: 252px; --tray-h: 36px; --shoe-w: 124px; --disc-w: 96px; --obj-dx: 206px; --plate-h: 28px;
  --cx: 50%; --ft: var(--wall-h);
  position: relative; isolation: isolate; flex: 1 1 auto; min-height: 548px; max-height: 780px; min-width: 0; user-select: none; -webkit-user-select: none; }

/* mur du salon derrière la croupière : drapé de velours, appliques floues, cône du spot */
.wall { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--wall-h) + 60px); z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
.wall-drape { position: absolute; inset: 0;
  background:
    radial-gradient(34% 110% at 50% 100%, rgba(255,196,130,.26), rgba(255,170,110,.07) 55%, transparent 76%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.34) 0 3px, rgba(120,24,44,.0) 14px, rgba(160,40,64,.16) 26px, rgba(0,0,0,.0) 40px, rgba(0,0,0,.3) 58px),
    linear-gradient(180deg, #16060b 0, #2b0b16 55%, #1a070d 100%); }
.wall-drape::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 5px; border-top: 1px solid rgba(212,175,55,.45); border-bottom: 1px solid rgba(212,175,55,.2); }
.wall-lamp { position: absolute; top: calc(var(--wall-h) * .5); width: 12px; height: 30px; margin-left: -6px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #fff6d0, #ffd27a 55%, #a86a1e); box-shadow: 0 0 14px 5px rgba(255,205,125,.6), 0 0 54px 24px rgba(255,170,90,.2); }
.wall-lamp.l { left: calc(50% - 392px); } .wall-lamp.r { left: calc(50% + 392px); }
.wall-lamp::before { content: ""; position: absolute; left: 50%; top: 40%; width: 250px; height: 300px; margin: -150px 0 0 -125px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,190,110,.24), rgba(255,170,90,.06) 45%, transparent 70%); animation: ambBreath 7s ease-in-out infinite alternate; }
.wall-lamp::after { content: ""; position: absolute; left: -5px; right: -5px; top: 100%; height: 7px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #e6c35a, #7a5a12); box-shadow: 0 6px 0 -2px #5a430c; }
.wall-lamp.r::before { animation-delay: -3s; }
.wall-bokeh { position: absolute; inset: -10px -30px; }
.wall-bokeh.a { background:
    radial-gradient(circle at 22% 34%, rgba(255,205,120,.36) 0, rgba(255,205,120,.1) 9px, rgba(255,205,120,0) 24px),
    radial-gradient(circle at 31% 64%, rgba(255,180,100,.16) 0, rgba(255,180,100,0) 30px),
    radial-gradient(circle at 69% 60%, rgba(255,180,100,.16) 0, rgba(255,180,100,0) 34px),
    radial-gradient(circle at 78% 30%, rgba(255,205,120,.36) 0, rgba(255,205,120,.1) 9px, rgba(255,205,120,0) 24px);
  animation: ambDrift 19s ease-in-out infinite alternate; }
.wall-bokeh.b { background:
    radial-gradient(circle at 26% 20%, rgba(255,230,170,.2) 0, rgba(255,230,170,0) 14px),
    radial-gradient(circle at 37% 30%, rgba(255,230,170,.1) 0, rgba(255,230,170,0) 20px),
    radial-gradient(circle at 63% 24%, rgba(255,230,170,.12) 0, rgba(255,230,170,0) 18px),
    radial-gradient(circle at 74% 66%, rgba(255,230,170,.18) 0, rgba(255,230,170,0) 13px);
  animation: ambDrift 27s ease-in-out -6s infinite alternate-reverse; }
.wall-rays { position: absolute; left: 50%; top: calc(var(--wall-h) * .55); width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; opacity: 0; transition: opacity .5s; background: repeating-conic-gradient(from 0deg, rgba(255,214,110,.34) 0 5deg, transparent 5deg 15deg); -webkit-mask-image: radial-gradient(circle, #000 8%, rgba(0,0,0,.5) 30%, transparent 58%); mask-image: radial-gradient(circle, #000 8%, rgba(0,0,0,.5) 30%, transparent 58%); }
.tbl[data-glow="bj"] .wall-rays { opacity: 1; animation: raySpin 30s linear infinite; }
.tbl[data-glow="win"] .wall-rays { opacity: .5; background: repeating-conic-gradient(from 0deg, rgba(120,240,170,.3) 0 5deg, transparent 5deg 15deg); animation: raySpin 30s linear infinite; }
.wall-spot { position: absolute; left: 50%; top: -30px; width: 560px; height: 380px; margin-left: -280px; background: conic-gradient(from 180deg at 50% 0, transparent 0 -26deg, rgba(255,226,170,.12) -14deg, rgba(255,226,170,.2) 0deg, rgba(255,226,170,.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; transform-origin: 50% 0; }
@keyframes spotSway { from { transform: rotate(-1.6deg); opacity: .8; } to { transform: rotate(1.6deg); opacity: 1; } }

/* croupière : assise derrière la table (le bas du buste passe sous le chant), éclairée par le spot, elle respire et réagit */
.dealer-zone { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.dealer-art { position: absolute; left: 50%; top: calc(var(--wall-h) + var(--du) - var(--dh)); width: calc(var(--dh) * .81); height: var(--dh); margin-left: calc(var(--dh) * -.405); transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.2,.9,.25,1.2), filter .45s; }
.dealer-art::before { content: ""; position: absolute; left: -30%; right: -30%; top: 6%; bottom: 4%; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.55), rgba(0,0,0,0) 68%); }
.dealer-body { position: absolute; inset: 0; transform-origin: 50% 100%; animation: breathe 4.6s 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-blackjack.webp) 50% 0 / cover no-repeat; mask: url(../assets/tables/dealer-blackjack.webp) 50% 0 / cover no-repeat; }
.dealer-light { background: linear-gradient(180deg, rgba(255,214,150,.2) 0, rgba(255,214,150,.03) 34%, rgba(20,6,10,0) 56%, rgba(20,6,10,.6) 100%); }
.dealer-flash { background: linear-gradient(200deg, rgba(255,246,214,.8), rgba(255,226,122,.3) 55%, rgba(255,226,122,0)); opacity: 0; }
@keyframes breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.008, 1.015) translateY(-.5px); } }
.dealer-art[data-mood="deal"] { transform: rotate(-1.4deg) translateY(2px); }
.dealer-art[data-mood="look"] { transform: rotate(1.1deg) translateY(3px) scale(1.012); }
.dealer-art[data-mood="happy"], .dealer-art[data-mood="talk"] { animation: dealerCheer .7s ease-out; }
.dealer-art[data-mood="bj"] { animation: dealerCheer .8s ease-out; }
.dealer-art[data-mood="bj"] .dealer-flash { animation: dealerFlash 1.2s ease-out; }
.dealer-art[data-mood="bust"] { animation: dealerBust .9s ease-out; filter: saturate(.8) brightness(.94); }
.dealer-art[data-mood="sad"] { transform: translateY(4px) scale(.988); filter: saturate(.8); }
@keyframes dealerCheer { 0% { transform: none; } 35% { transform: translateY(-7px) scale(1.03); } 100% { transform: none; } }
@keyframes dealerBust { 0% { transform: none; } 18% { transform: translate(-3px, 2px) rotate(-1.6deg); } 40% { transform: translate(3px, 4px) rotate(1.4deg); } 62% { transform: translate(-1px, 5px) rotate(-.6deg); } 100% { transform: translateY(3px); } }
@keyframes dealerFlash { 0% { opacity: 0; } 12% { opacity: 1; } 30% { opacity: .25; } 42% { opacity: .8; } 100% { opacity: 0; } }
.dealer-say { position: absolute; top: clamp(8px, calc(var(--wall-h) * .14), 28px); left: calc(50% + var(--dh) * .36); z-index: 9; background: #fffdf7; color: #2a1014; font-weight: 700; font-size: 12px; padding: 8px 12px; border-radius: 14px 14px 14px 2px; width: max-content; max-width: 206px; line-height: 1.3; box-shadow: 0 6px 20px rgba(0,0,0,.45), inset 0 -2px 0 rgba(212,175,55,.4); pointer-events: none; }
.dealer-say.pop { animation: pop .3s cubic-bezier(.3,1.5,.5,1); transform-origin: 0 100%; }
.dealer-say:empty { display: none; }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* la table dessinée passe devant la croupière */
.tbl-art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.tbl-art text { font-family: var(--serif); font-weight: 700; }
/* reflets animés : calques à part (seule leur opacité bouge, la table dessinée n'est jamais repeinte) */
.tbl-fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.tbl-ins { opacity: 0; }
.tbl[data-phase="insurance"] .tbl-ins { animation: insGlow 1.1s ease-in-out infinite; }
@keyframes insGlow { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
.tbl-glint { opacity: .16; animation: railGlint 13s ease-in-out infinite; }
@keyframes railGlint { 0%, 44%, 80%, 100% { opacity: .16; } 62% { opacity: .7; } }

/* lumière chaude qui glisse lentement sur le feutre (découpée à la forme du tapis par ui.js) */
.felt-light { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.felt-light i { position: absolute; left: 50%; top: calc(var(--wall-h) + 4%); width: 54%; height: 62%; margin-left: -27%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,222,170,.13), rgba(255,210,150,.04) 50%, rgba(255,210,150,0) 70%); animation: feltDrift 23s ease-in-out infinite alternate; }
@keyframes feltDrift { from { transform: translate3d(-22%, 2%, 0) scale(.94); opacity: .65; } to { transform: translate3d(22%, 9%, 0) scale(1.08); opacity: 1; } }

/* ===== statut : anneau du compte à rebours et phase, accrochés au mur ===== */
.status-box { position: absolute; left: 14px; top: 14px; z-index: 7; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.timer-ring { position: relative; width: 62px; height: 62px; flex: 0 0 auto; }
.timer-ring svg { width: 100%; height: 100%; display: block; }
.tr-face { fill: rgba(16,6,9,.86); 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-size: 20px; font-weight: 900; 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.5); opacity: .4; } 100% { transform: none; opacity: 1; } }
.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; }
.timer-ring.late { animation: ringShake .5s ease-in-out infinite; }
@keyframes latePulse { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes ringShake { 0%, 100% { transform: none; } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
.st-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.table-status { color: var(--gold-2); font-family: var(--serif); font-weight: 700; letter-spacing: 2px; font-size: 15px; text-transform: uppercase; min-height: 18px; max-width: 250px; text-shadow: 0 0 14px rgba(212,175,55,.5), 0 1px 2px rgba(0,0,0,.8); }
.table-status.tk { animation: statusIn .35s ease-out; }
@keyframes statusIn { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.tbl[data-late="1"] .table-status { color: #ffb3bd; }
.table-sub { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(var(--ink), .6); text-shadow: 0 1px 2px rgba(0,0,0,.8); }

/* ===== objets posés sur le feutre : râtelier de jetons, défausse, sabot, chevalets ===== */
.tray { position: absolute; left: var(--cx); top: calc(var(--ft) + 2px); z-index: 4; width: var(--tray-w); height: var(--tray-h); margin-left: calc(var(--tray-w) / -2); padding: 4px 6px 6px; border-radius: 5px 5px 8px 8px;
  background: linear-gradient(180deg, #3a3a40 0, #17171a 22%, #0a0a0c 100%); border: 1px solid #b08a28;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.95), inset 0 -3px 0 rgba(255,236,170,.14), 0 1px 0 #6b4c0a, 0 2px 0 #3d2b06, 0 3px 0 #1c1303, 0 9px 14px rgba(0,0,0,.6); }
.tray-in { display: flex; gap: 3px; height: 100%; }
.tray-in i { position: relative; flex: 1; border-radius: 2px; background: #050506; box-shadow: inset 0 2px 3px rgba(0,0,0,.9); overflow: hidden; }
.tray-in i::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--f, 90%); --c: #c8102e; --e: #f4efe2;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(255,255,255,.28) 28%, rgba(255,255,255,0) 56%, rgba(0,0,0,.6)),
    repeating-linear-gradient(180deg, transparent 0 2.2px, rgba(0,0,0,.55) 2.2px 3px),
    linear-gradient(180deg, var(--e) 0 50%, transparent 50%) 50% 0 / 30% 6px repeat-y, linear-gradient(180deg, var(--e) 0 50%, transparent 50%) 0 3px / 16% 6px repeat-y, linear-gradient(180deg, var(--e) 0 50%, transparent 50%) 100% 3px / 16% 6px repeat-y, var(--c); }
.tray::after { content: ""; position: absolute; left: 6%; right: 6%; top: 3px; height: 34%; border-radius: 3px; background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0)); pointer-events: none; }
.tray-in i.v1::before { --c: #dcd9cf; --e: #3f6fd9; } .tray-in i.v25::before { --c: #1e8e3e; } .tray-in i.v100::before { --c: #1a1a1f; --e: #d4af37; } .tray-in i.v500::before { --c: #6a1b9a; --e: #f3dc8a; }
.tray.pay { animation: trayBump .3s ease-out; }
@keyframes trayBump { 0% { transform: none; } 40% { transform: translateY(2px) scale(.99); } 100% { transform: none; } }
.shoe { position: absolute; left: calc(var(--cx) + var(--obj-dx)); top: calc(var(--ft) + var(--rail-top) + 8px); z-index: 6; width: var(--shoe-w); }
.shoe-art svg, .discard svg { display: block; width: 100%; height: auto; overflow: visible; }
.shoe.shuffle .shoe-art { animation: shoeShuffle .9s ease-in-out; }
@keyframes shoeShuffle { 0%, 100% { transform: none; } 15% { transform: translate(-2px, -3px) rotate(-2deg); } 30% { transform: translate(2px, 1px) rotate(1.6deg); } 45% { transform: translate(-2px, -2px) rotate(-1.4deg); } 60% { transform: translate(1px, 1px) rotate(1deg); } 80% { transform: translate(-1px, 0) rotate(-.5deg); } }
.shoe-count { position: absolute; left: 50%; bottom: -6px; transform: translateX(-42%); min-width: 38px; height: 17px; padding: 0 6px; display: flex; align-items: center; justify-content: center; border-radius: 3px; font-size: 11px; font-weight: 900; color: #3a2500; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(255,244,200,.7); background: linear-gradient(180deg, #fff0b0, #d9b243 55%, #b98f1f); border: 1px solid #7a5a12; box-shadow: 0 2px 5px rgba(0,0,0,.6); }
.shoe-count.tk { animation: countTick .3s ease-out; }
@keyframes countTick { 0% { transform: translateX(-42%) translateY(-4px) scale(1.12); } 100% { transform: translateX(-42%); } }
.shoe-info { position: absolute; left: 50%; top: calc(100% + 13px); transform: translateX(-42%); font: 700 8px/1 var(--serif); letter-spacing: 1.8px; text-transform: uppercase; color: rgba(var(--ink), .55); white-space: nowrap; }
.discard { position: absolute; left: calc(var(--cx) - var(--obj-dx) - var(--disc-w)); top: calc(var(--ft) + var(--rail-top) + 14px); z-index: 6; width: var(--disc-w); }
/* chevalets en laiton : limites de la table, tableau des mises annexes */
.limits { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.placard { position: absolute; top: calc(var(--ft) + var(--rail-top) + 20px); width: 104px; padding: 6px 8px 7px; border-radius: 3px; text-align: center; color: #3a2500; background: var(--brass); border: 1px solid #7a5a12; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 2px rgba(122,90,18,.25), 0 3px 0 #5a430c, 0 4px 0 #2a1f05, 5px 12px 12px rgba(0,0,0,.5); transform-origin: 50% 100%; }
.placard.l { left: calc(var(--cx) - var(--obj-dx) - var(--disc-w) - 150px); transform: perspective(300px) rotateX(-9deg) rotate(-3deg); }
.placard.r { left: calc(var(--cx) + var(--obj-dx) + var(--shoe-w) + 36px); width: 162px; transform: perspective(300px) rotateX(-9deg) rotate(3deg); }
.placard b { display: block; font: 700 9px/1.1 var(--serif); letter-spacing: 1.6px; text-transform: uppercase; border-bottom: 1px solid rgba(90,60,0,.45); padding-bottom: 3px; margin-bottom: 3px; }
.placard span { display: flex; justify-content: space-between; gap: 6px; font-size: 9px; font-weight: 800; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; }
.placard span i { font-style: normal; font-weight: 600; opacity: .8; }

/* ===== cartes : boîtier (ombre et tranche, jamais retourné), vol depuis le sabot, retournement 3D ===== */
.dealer-hand { position: absolute; left: var(--cx); top: var(--dty, calc(var(--ft) + 60px)); z-index: 5; width: 0; height: 0; }
.dcards, .hands { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.cardw { --cr: calc(var(--w) * .1); position: absolute; left: 0; top: 0; width: var(--w); height: calc(var(--w) * 1.42); z-index: var(--z, 1); transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--tilt, 0deg)); transition: transform .34s cubic-bezier(.3,.8,.3,1), filter .45s; }
.tbl.no-tr .cardw, .tbl.no-tr .bet, .tbl.no-tr .hand-ui { transition: none !important; }
.cardw::before { content: ""; position: absolute; inset: 0; border-radius: var(--cr); box-shadow: 0 1px 0 #e3dccd, 0 2px 0 #a39b8a, 0 3px 4px rgba(0,0,0,.5), 0 9px 13px -3px rgba(0,0,0,.55); }
.cardw.in::before { animation: shadowIn .2s both; animation-delay: calc(var(--d, 0ms) + 300ms); }
@keyframes shadowIn { from { opacity: 0; } to { opacity: 1; } }
.cfly { position: absolute; inset: 0; }
.cardw.in .cfly { animation: cardFly .38s cubic-bezier(.22,.7,.2,1) both; animation-delay: var(--d, 0ms); }
@keyframes cardFly { 0% { transform: translate(var(--fx, 200px), var(--fy, -80px)) rotate(var(--fr, -30deg)) scale(.7); opacity: 0; } 12% { opacity: 1; } 78% { transform: translate(0, 0) rotate(calc(var(--fr, -30deg) * .04)) scale(1.03); } 100% { transform: none; opacity: 1; } }
.cardw.out .cfly { animation: cardOut .44s cubic-bezier(.5,0,.8,.4) both; animation-delay: var(--d, 0ms); }
.cardw.out::before, .cardw.out::after { opacity: 0 !important; }
@keyframes cardOut { 0% { transform: none; opacity: 1; } 100% { transform: translate(var(--fx, -200px), var(--fy, -60px)) rotate(var(--fr, -18deg)) scale(.6); opacity: 0; } }
.card { position: absolute; inset: 0; border-radius: var(--cr); transform-style: preserve-3d; transform: perspective(520px) rotateY(0deg); transition: transform .42s cubic-bezier(.4,0,.3,1); }
.card.down { transform: perspective(520px) rotateY(180deg); }
.cardw.in .card:not(.down) { animation: cardFlip .3s cubic-bezier(.4,0,.3,1) both; animation-delay: calc(var(--d, 0ms) + 130ms); }
@keyframes cardFlip { 0% { transform: perspective(520px) rotateY(180deg) scale(1); } 50% { transform: perspective(520px) rotateY(90deg) scale(1.1); } 100% { transform: perspective(520px) rotateY(0deg) scale(1); } }
.card .cf, .card .cb { position: absolute; inset: 0; border-radius: inherit; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.card .cf { background: linear-gradient(160deg, #fff 0, #fcfaf4 55%, #ede7d8 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
/* dos Pryve : laque noire, treillis doré, médaillon au P */
.card .cb { transform: rotateY(180deg); box-sizing: border-box; border: calc(var(--w) * .05) solid #f6f1e2; box-shadow: inset 0 0 0 1px #c9a544;
  background: url(../assets/brand/p-logo.png) 50% 50% / 46% auto no-repeat,
    radial-gradient(circle calc(var(--w) * .27) at 50% 50%, #0d0b0c 0 86%, #e4c35e 87% 97%, transparent 100%),
    repeating-linear-gradient(45deg, rgba(232,196,90,.5) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(232,196,90,.5) 0 1px, transparent 1px 6px),
    linear-gradient(160deg, #2a2226, #0e0b0d); }
.cface { display: block; width: 100%; height: 100%; --k1: #20263a; --k2: #dbaa2b; --k3: #c8102e; --kh: #4a321c; color: #17171c; }
.cface.red { --k1: #c8102e; --k3: #20263a; --kh: #c9962a; color: #c8102e; }
.cface .pips, .cface .idx { fill: currentColor; }
.cface text { font: 700 21px Georgia, "Times New Roman", serif; text-anchor: middle; fill: currentColor; }
.cface .frame { fill: #fbf3dc; stroke: #b8922e; stroke-width: 1; }
.cface .mid { stroke: #b8922e; stroke-width: .8; }
/* coup d'œil de la croupière sous sa carte cachée, puis révélation */
.cardw.peek .cfly { animation: peekLift .66s ease-in-out both; transform-origin: 50% 100%; }
@keyframes peekLift { 0%, 100% { transform: none; } 30%, 68% { transform: perspective(380px) rotateX(38deg) translateY(-7%) scale(1.03); } }
.cardw.reveal .cfly { animation: revealLift .46s ease-out both; }
@keyframes revealLift { 0% { transform: none; } 45% { transform: translateY(-9%) scale(1.14); } 100% { transform: none; } }
/* issues : halo doré du gagnant, voile du perdant, chute du bust, reflet du blackjack */
.cardw::after { content: ""; position: absolute; inset: -2px; border-radius: calc(var(--cr) + 2px); pointer-events: none; opacity: 0; transition: opacity .35s; }
.cardw.win::after { opacity: 1; box-shadow: 0 0 0 2px #ffe27a, 0 0 16px 3px rgba(255,214,80,.75); animation: winGlow 1.3s ease-in-out 4; }
@keyframes winGlow { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.cardw.bjk::after { opacity: 1; box-shadow: 0 0 0 2px #fff0b0, 0 0 20px 5px rgba(255,214,80,.9); }
.cardw.bjk .cf::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 46%; background: linear-gradient(100deg, transparent, rgba(255,236,150,.75) 50%, transparent); transform: translateX(-160%) skewX(-18deg); animation: cardShine 1.1s .1s ease-in-out both; }
@keyframes cardShine { to { transform: translateX(340%) skewX(-18deg); } }
.cardw.lose { filter: brightness(.58) saturate(.65); }
.cardw.push { filter: brightness(.86) saturate(.8); }
.cardw.bust { filter: brightness(.66) saturate(.75); }
.cardw.bust .cfly { animation: bustDrop .62s cubic-bezier(.4,0,.5,1.4) both; animation-delay: calc(var(--n, 0) * 50ms); }
@keyframes bustDrop { 0% { transform: none; } 22% { transform: translateY(-9%) rotate(calc(var(--bt, 3deg) * -1)); } 100% { transform: translateY(7%) rotate(var(--bt, 3deg)); } }
.cardw.bust .cf::after { content: ""; position: absolute; inset: 0; background: rgba(200,16,46,.34); mix-blend-mode: multiply; }
.cardw.dim { filter: brightness(.74); }

/* ===== sièges : groupe posé sur le feutre (centre = cercle de mise), tourné vers la croupière ===== */
.seats { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.seat { --chip: var(--chip-o); --sd: var(--side); position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1; transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(var(--rot, 0deg)); }
.seat.mine { --chip: var(--chip-m); z-index: 3; }
.seat.active { z-index: 2; }
.seat.mine.active { z-index: 4; }
/* flaque de lumière du spot sur le siège dont c'est le tour */
.seat-light { position: absolute; left: calc(var(--pitch, 200px) * -.62); top: calc(var(--pitch, 200px) * -1.28); width: calc(var(--pitch, 200px) * 1.24); height: calc(var(--pitch, 200px) * 1.72); border-radius: 50%; background: radial-gradient(ellipse at 50% 56%, rgba(255,232,170,.4), rgba(255,226,150,.13) 46%, rgba(255,226,150,0) 70%); opacity: 0; transition: opacity .45s; pointer-events: none; }
.seat.active .seat-light { opacity: 1; }
.seat.mine.open .seat-light { opacity: .55; }

/* emplacements sérigraphiés : cercle principal, cases Perfect Pairs et 21+3 */
.spot { position: absolute; left: 0; top: 0; display: block; padding: 0; border-radius: 50%; color: rgb(var(--ink)); pointer-events: none; }
.spot.main { width: var(--ring); height: var(--ring); margin: calc(var(--ring) / -2) 0 0 calc(var(--ring) / -2);
  background: radial-gradient(circle closest-side, rgba(0,0,0,.2) 0 72%, rgba(0,0,0,.06) 73%, transparent 100%);
  box-shadow: inset 0 0 0 2px rgba(217,181,74,.82), inset 0 0 0 5px rgba(0,0,0,.12), inset 0 0 0 6px rgba(217,181,74,.36), inset 0 0 14px rgba(0,0,0,.35); transition: box-shadow .2s, background-color .2s; }
.spot.side { width: var(--sd); height: var(--sd); margin: calc(var(--sd) / -2) 0 0 calc(var(--sd) / -2); background: radial-gradient(circle closest-side, rgba(0,0,0,.16) 0 78%, transparent 80%); }
.spot.pp { transform: translate(calc(var(--side-x) * -1), var(--side-y)); }
.spot.t21 { transform: translate(var(--side-x), var(--side-y)); }
.seat { --side-x: calc(var(--ring) / 2 + var(--sd) / 2 + 7px); --side-y: -9px; }
.spot-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spot-art circle { fill: none; stroke: currentColor; }
.spot-art .o { stroke-width: 1.6; stroke-opacity: .78; } .spot-art .i { stroke-width: .7; stroke-opacity: .42; }
.spot-art text { font-family: var(--serif); font-weight: 700; fill: currentColor; text-anchor: middle; }
.spot-art .nm { font-size: 8.4px; letter-spacing: .7px; fill-opacity: .95; } .spot-art .nm.big { font-size: 15px; letter-spacing: .3px; } .spot-art .py { font: 800 7.6px/1 var(--font); letter-spacing: .2px; fill: #ffe9a8; fill-opacity: .95; } .spot-art .ab { display: none; font-size: 17px; fill-opacity: .9; } .spot-art .ab.sm { font-size: 14px; }
.spot-lbl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 10px/1 var(--serif); letter-spacing: 1.6px; text-transform: uppercase; color: rgba(var(--ink), .6); pointer-events: none; }
.spot-lbl svg { width: 44%; height: 44%; opacity: .8; }
.chips { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.seat.empty .spot.main { pointer-events: auto; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(217,181,74,.5), inset 0 0 0 5px rgba(0,0,0,.1), inset 0 0 0 6px rgba(217,181,74,.2); }
.seat.empty .spot.side { opacity: .55; }
.seat.empty .spot.main .spot-lbl { animation: sitPulse 2.6s ease-in-out infinite; }
.seats.seated .seat.empty .spot.main .spot-lbl { animation: none; opacity: .32; }
.seats.seated .plate.empty { opacity: .8; }
@keyframes sitPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.seat.mine.open .spot { pointer-events: auto; cursor: pointer; }
.seat.mine.open .spot.main { box-shadow: inset 0 0 0 2px #f3dc8a, inset 0 0 0 5px rgba(0,0,0,.12), inset 0 0 0 6px rgba(243,220,138,.5), inset 0 0 14px rgba(0,0,0,.3), 0 0 0 3px rgba(255,214,80,.16), 0 0 18px rgba(255,214,80,.4); }
.seat.mine.open .spot.side { color: #fff0c4; }
.seat.mine.open .spot.side .o { stroke-opacity: 1; }
.seat.mine.open .spot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; }   /* cible tactile un peu plus large que le tracé */
.seat.mine.open.nobet .spot.main::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255,226,122,.8); animation: spotCall 1.6s ease-out infinite; pointer-events: none; }
@keyframes spotCall { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.28); opacity: 0; } }
@media (hover: hover) { .seat.mine.open .spot:hover, .seat.empty .spot.main:hover { background-color: rgba(255,255,255,.1); } }
.seat.mine.open .spot:active { background-color: rgba(255,255,255,.2); }
.spot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* mise annexe gagnante : plaque de laiton avec la combinaison */
.side-tag { position: absolute; left: 50%; top: calc(100% + 2px); transform: translateX(-50%) rotate(calc(var(--rot, 0deg) * -1)); padding: 2px 6px; border-radius: 3px; font-size: 9px; font-weight: 900; letter-spacing: .3px; white-space: nowrap; color: #3a2500; background: var(--brass); border: 1px solid #7a5a12; box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 0 12px rgba(255,200,60,.7); pointer-events: none; animation: plateIn .4s cubic-bezier(.3,1.6,.5,1) both; }
.side-tag:empty { display: none; }
@keyframes plateIn { from { transform: translateX(-50%) rotate(calc(var(--rot, 0deg) * -1)) scale(.3); opacity: 0; } to { transform: translateX(-50%) rotate(calc(var(--rot, 0deg) * -1)) scale(1); opacity: 1; } }
.spot.side.won { color: #fff0b0; z-index: 50; }
.spot.side.won .o { stroke-opacity: 1; stroke-width: 2.4; }
/* assurance : la pile se pose sur le bandeau */
.ins-spot { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: translate(var(--ix, 0px), var(--iy, -200px)); }
.ins-spot .chips { left: 0; top: 0; }

/* jetons : disque à incrustations, tranche visible, vraies piles avec leur total */
.chip { --c: #c8102e; --d: #7d0a1c; --e: #f7f3e8; --th: calc(var(--chip) * .09); position: relative; display: block; width: var(--chip); height: var(--chip); border-radius: 50%;
  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; }
.bet { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: translate(var(--bx, 0px), var(--by, 0px)); transition: transform .32s cubic-bezier(.3,.8,.3,1); }
.stack { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: translate(var(--x, 0px), var(--y, 0px)); }
.stack::before { content: ""; position: absolute; left: calc(var(--chip) / -2 - 2px); top: calc(var(--chip) / -2 + 4px); width: calc(var(--chip) + 5px); height: calc(var(--chip) - 1px); 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 .38s cubic-bezier(.3,.7,.3,1) both; }
@keyframes chipDrop { 0% { transform: translateY(-28px) scale(1.14); opacity: 0; } 45% { transform: translateY(0) scale(1); opacity: 1; } 65% { transform: translateY(-5px); } 82% { transform: translateY(0); } 91% { transform: translateY(-1.5px); } 100% { transform: none; } }
.stack-lbl { position: absolute; z-index: 2; left: 0; top: calc(var(--chip) / 2 - 7px); transform: translateX(-50%) rotate(calc(var(--rot, 0deg) * -1)); min-width: 24px; height: 15px; padding: 0 5px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; background: rgba(12,5,7,.88); border: 1px solid rgba(243,220,138,.75); box-shadow: 0 2px 5px rgba(0,0,0,.5); white-space: nowrap; }
.seat:not(.mine) .stack-lbl { min-width: 0; height: 13px; padding: 0 4px; font-size: 9px; border-color: rgba(255,255,255,.3); }
.bet.wait, .stack.wait { opacity: 0; }
.bet.land { animation: betLand .34s cubic-bezier(.3,1.5,.5,1) both; }
.stack.land { animation: stackLand .34s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes betLand { 0% { transform: translate(var(--bx, 0px), var(--by, 0px)) scale(1.25); opacity: .4; } 60% { transform: translate(var(--bx, 0px), calc(var(--by, 0px) + 2px)) scale(.96); opacity: 1; } 100% { transform: translate(var(--bx, 0px), var(--by, 0px)); opacity: 1; } }
@keyframes stackLand { 0% { transform: translate(var(--x, 0px), var(--y, 0px)) scale(1.25); opacity: .4; } 60% { transform: translate(var(--x, 0px), calc(var(--y, 0px) + 2px)) scale(.96); opacity: 1; } 100% { transform: translate(var(--x, 0px), var(--y, 0px)); opacity: 1; } }
.bet.split { animation: betSplit .4s cubic-bezier(.3,1.3,.5,1) both; }
@keyframes betSplit { 0% { transform: translate(calc(var(--bx, 0px) - var(--from, 30px)), var(--by, 0px)) scale(.9); opacity: .2; } 100% { transform: translate(var(--bx, 0px), var(--by, 0px)); opacity: 1; } }
.stack.pay { z-index: 4; --x: calc(var(--chip) * 1.06); --y: 0px; }
.stack.pay .stack-lbl { color: #3a2500; background: linear-gradient(180deg, #fff0b0, #d9b243); border-color: #7a5a12; }
.stack.pay .odds { position: absolute; z-index: 3; left: calc(var(--chip) / 2 - 4px); top: calc(var(--chip) / -2 - 6px - var(--h, 0) * (var(--chip) * .09 + .7px)); transform: rotate(calc(var(--rot, 0deg) * -1)); padding: 1px 4px; border-radius: 3px; font-size: 8.5px; font-weight: 900; color: #fff; background: #c8102e; box-shadow: 0 1px 3px rgba(0,0,0,.6); white-space: nowrap; }
.bet.won .s1 .chip:last-of-type::after { box-shadow: inset 0 0 0 1px rgba(0,0,0,.42), 0 0 0 2px #ffe27a, 0 0 12px 3px rgba(255,214,80,.9); }
.bet.multi.won > .stack-lbl { display: none; }
.bet.gone, .stack.gone { display: none; }
.bet.out { opacity: 0; transition: opacity .2s; }
/* jetons 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 .flyer .stack { transform: none; }
.fly-layer .flyer .stack-lbl, .fly-layer .flyer .odds { display: none; }

/* main : total qui compte (soft, 21, blackjack, bust), issue sur un ruban, cadre de la main active */
.hand-ui { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 40; transform: translate(var(--hx, 0px), var(--hy, 0px)); transition: transform .34s cubic-bezier(.3,.8,.3,1); pointer-events: none; }
.hand-glow { position: absolute; left: calc(var(--gw, 90px) / -2 - 7px); bottom: -9px; width: calc(var(--gw, 90px) + 14px); height: calc(var(--gh, 100px) + 16px); border-radius: 12px; opacity: 0; transition: opacity .3s; box-shadow: 0 0 0 2px rgba(255,226,122,.9), 0 0 22px 4px rgba(255,214,80,.5), inset 0 0 18px rgba(255,214,80,.2); z-index: -1; }
.hand-ui.active .hand-glow { opacity: 1; animation: glowPulse 1.5s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.hv { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(calc(var(--rot, 0deg) * -1)); min-width: 30px; height: 22px; padding: 0 8px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; overflow: hidden; font-weight: 900; font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(180deg, #2c1a1f, #0e0608); border: 1px solid rgba(212,175,55,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 8px rgba(0,0,0,.55); transition: background .3s, border-color .3s, color .3s, box-shadow .3s; }
.hv:empty { display: none; }
.hv b { display: block; }
.hv b.tk { animation: hvTick .34s cubic-bezier(.3,1.4,.5,1); }
@keyframes hvTick { 0% { transform: translateY(105%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.hv i { font: 800 8px/1 var(--font); font-style: normal; letter-spacing: .8px; text-transform: uppercase; color: #9fe8ff; padding: 2px 4px; border-radius: 4px; background: rgba(80,190,230,.2); }
.hv.t21 { border-color: #9ff0bb; box-shadow: 0 0 0 2px rgba(108,245,154,.25), 0 0 14px rgba(108,245,154,.45), 0 3px 8px rgba(0,0,0,.5); }
.hv.bjk { color: #3a2500; border-color: #fff0b0; background: linear-gradient(180deg, #fff0b0, #e3bd4a 50%, #c2952a); box-shadow: 0 0 0 2px rgba(255,226,122,.4), 0 0 20px rgba(255,214,80,.8), 0 3px 8px rgba(0,0,0,.5); animation: winPop .5s cubic-bezier(.3,1.7,.5,1); }
.hv.bust { background: linear-gradient(180deg, #d21f3c, #7d0a1c); border-color: #ff8b98; }
.hv.off { opacity: .6; }
@keyframes winPop { 0% { transform: translate(-50%, -50%) rotate(calc(var(--rot, 0deg) * -1)) scale(.6); } 100% { transform: translate(-50%, -50%) rotate(calc(var(--rot, 0deg) * -1)); } }
.hres { position: absolute; left: 0; top: var(--ry, -110px); transform: translate(-50%, -100%) rotate(calc(var(--rot, 0deg) * -1)); display: flex; align-items: center; gap: 5px; padding: 3px 9px 3px; border-radius: 4px; font: 700 11px/1.1 var(--serif); letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; color: #fff; background: linear-gradient(180deg, #33151c, #14070a); border: 1px solid rgba(212,175,55,.6); box-shadow: 0 4px 10px rgba(0,0,0,.55); animation: resIn .4s cubic-bezier(.3,1.5,.5,1) both; }
.hres:empty { display: none; }
.hres b { font: 900 12px/1 var(--font); letter-spacing: 0; font-variant-numeric: tabular-nums; }
@keyframes resIn { 0% { transform: translate(-50%, -60%) rotate(calc(var(--rot, 0deg) * -1)) scale(.5); opacity: 0; } 100% { transform: translate(-50%, -100%) rotate(calc(var(--rot, 0deg) * -1)); opacity: 1; } }
.hres.win { color: #eafff0; background: linear-gradient(180deg, #1f8a4c, #0c4424); border-color: #9ff0bb; box-shadow: 0 0 14px rgba(108,245,154,.45), 0 4px 10px rgba(0,0,0,.55); }
.hres.blackjack { color: #3a2500; background: var(--brass); border-color: #7a5a12; box-shadow: 0 0 18px rgba(255,214,80,.85), 0 4px 10px rgba(0,0,0,.55); }
.hres.push { color: #ffe9b0; border-color: #ffd166; }
.hres.lose { color: #ffb3bd; background: linear-gradient(180deg, #3a0d16, #1a0508); border-color: rgba(255,139,152,.5); }
.hres.bust { color: #fff; background: linear-gradient(180deg, #d21f3c, #7d0a1c); border-color: #ff8b98; animation: bustIn .5s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes bustIn { 0% { transform: translate(-50%, -100%) rotate(calc(var(--rot, 0deg) * -1 - 12deg)) scale(2); opacity: 0; } 100% { transform: translate(-50%, -100%) rotate(calc(var(--rot, 0deg) * -1 - 4deg)); opacity: 1; } }
.hres.surrender { color: #d8d2c4; background: linear-gradient(180deg, #3c3a37, #1c1b19); border-color: #8f8a7e; }
.hres.dbl { color: var(--gold-2); }

/* plaque du siège, sertie dans l'accoudoir : avatar, nom, mise ou résultat ; place libre = plaque de laiton « S'asseoir » */
.plate { position: absolute; left: 0; top: 0; z-index: 3; padding: 0; transform: translate(var(--px, 0px), var(--py, 0px)) translate(-50%, -50%) rotate(var(--prot, 0deg)); pointer-events: none; }
.pl-in { display: flex; align-items: center; gap: 6px; height: var(--plate-h); padding: 0 11px 0 2px; border-radius: 999px; white-space: nowrap; background: linear-gradient(180deg, #2f2019, #0d0706); border: 1px solid rgba(217,181,74,.5); box-shadow: inset 0 1px 0 rgba(255,236,170,.2), inset 0 -2px 3px rgba(0,0,0,.5), 0 2px 5px rgba(0,0,0,.65); transition: border-color .3s, box-shadow .3s; }
.pl-av { display: block; width: calc(var(--plate-h) - 6px); height: calc(var(--plate-h) - 6px); border-radius: 50%; object-fit: cover; background: #222; box-shadow: 0 0 0 1.5px rgba(217,181,74,.8); flex: 0 0 auto; }
.pl-txt { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.pl-name { font-size: 11px; font-weight: 800; color: #fff; max-width: 84px; overflow: hidden; text-overflow: ellipsis; }
.pl-amt { font-size: 10.5px; font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.pl-amt:empty { display: none; }
.pl-amt.pos { color: #6cf59a; } .pl-amt.neg { color: #ff8b98; }
.pl-sit { display: none; align-items: center; gap: 5px; font: 700 10px/1 var(--serif); letter-spacing: 1.6px; text-transform: uppercase; }
.pl-sit svg { width: 14px; height: 14px; flex: 0 0 auto; }
.plate.empty { pointer-events: auto; cursor: pointer; }
.plate.empty::after { content: ""; position: absolute; inset: -9px -5px; }
.plate.empty .pl-in { padding: 0 11px 0 9px; color: #3a2500; background: var(--brass); border-color: #7a5a12; box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(90,60,0,.35), 0 2px 5px rgba(0,0,0,.65); text-shadow: 0 1px 0 rgba(255,244,200,.6); }
.plate.empty .pl-av, .plate.empty .pl-txt { display: none; }
.plate.empty .pl-sit { display: flex; }
@media (hover: hover) { .plate.empty:hover .pl-in { box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 0 0 2px rgba(255,236,170,.6), 0 0 16px rgba(255,214,80,.6); } }
.plate.mine .pl-in { border-color: #f3dc8a; box-shadow: inset 0 1px 0 rgba(255,236,170,.3), 0 0 0 2px rgba(243,220,138,.25), 0 2px 6px rgba(0,0,0,.65); }
.plate.mine .pl-av { box-shadow: 0 0 0 2px #f3dc8a; }
.plate.active .pl-in { border-color: #fff0b0; box-shadow: inset 0 1px 0 rgba(255,236,170,.3), 0 0 0 2px rgba(255,226,122,.55), 0 0 18px rgba(255,214,80,.7); }
.plate.win .pl-in { border-color: #9ff0bb; box-shadow: 0 0 0 1px rgba(108,245,154,.5), 0 0 16px rgba(108,245,154,.45), 0 2px 5px rgba(0,0,0,.65); }
.plate.lose .pl-av, .plate.left .pl-av { filter: grayscale(.6) brightness(.8); }
.plate.left { opacity: .55; }
.pl-float { position: absolute; left: 50%; top: -4px; font-size: 13px; font-weight: 900; color: #6cf59a; text-shadow: 0 1px 3px rgba(0,0,0,.9); white-space: nowrap; pointer-events: none; animation: floatUp 1.6s ease-out both; }
@keyframes floatUp { 0% { transform: translate(-50%, 4px) scale(.6); opacity: 0; } 18% { transform: translate(-50%, -12px) scale(1.1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(-50%, -32px); opacity: 0; } }
.seat-say { position: absolute; left: 0; top: 0; z-index: 8; transform: translate(var(--px, 0px), var(--py, 0px)) translate(-50%, calc(-100% - 20px)); display: none; background: #fffdf7; color: #2a1014; font-weight: 800; font-size: 12px; line-height: 1; padding: 6px 9px; border-radius: 12px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.45); pointer-events: none; }
.seat-say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #fffdf7; border-bottom: 0; }
.seat-say.on { display: block; animation: seatSay 2.4s ease-out both; }
@keyframes seatSay { 0% { opacity: 0; transform: translate(var(--px, 0px), var(--py, 0px)) translate(-50%, calc(-100% - 12px)) scale(.7); } 10% { opacity: 1; transform: translate(var(--px, 0px), var(--py, 0px)) translate(-50%, calc(-100% - 20px)) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--px, 0px), var(--py, 0px)) translate(-50%, calc(-100% - 24px)); } }

/* croupière : total, étiquette du coup d'œil */
.dealer-hand .hv { top: var(--dvy, 96px); z-index: 60; min-width: 34px; height: 24px; font-size: 15px; border-radius: 12px; }
.peek-tag { position: absolute; z-index: 61; left: 0; top: var(--dvy, 96px); transform: translate(-50%, 70%); padding: 3px 8px; border-radius: 4px; font: 700 10px/1 var(--serif); letter-spacing: 1.3px; text-transform: uppercase; white-space: nowrap; color: rgba(var(--ink), .95); background: rgba(12,5,7,.82); border: 1px solid rgba(212,175,55,.45); opacity: 0; pointer-events: none; }
.peek-tag.on { animation: peekTag 1.5s ease-out both; }
@keyframes peekTag { 0% { opacity: 0; transform: translate(-50%, 110%); } 14% { opacity: 1; transform: translate(-50%, 70%); } 78% { opacity: 1; } 100% { opacity: 0; } }

/* ===== annonce de l'issue : plaque devant le chant de la table ===== */
.announce { position: absolute; left: 50%; top: var(--an-y, 50%); z-index: 8; transform: translateX(-50%); pointer-events: none; }
.an-plaque { --ac: #f3dc8a; --ab: rgba(190,140,30,.45); position: relative; min-width: 300px; max-width: min(92vw, 560px); padding: 5px 34px 7px; text-align: center; border-radius: 6px; border: 1px solid #f3dc8a;
  background: linear-gradient(180deg, var(--ab), rgba(0,0,0,0) 60%), linear-gradient(180deg, rgba(34,12,18,.97), rgba(10,4,6,.97));
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.6), inset 0 0 0 4px rgba(212,175,55,.5), 0 18px 40px rgba(0,0,0,.7), 0 0 40px var(--ab);
  animation: plaqueIn .55s cubic-bezier(.2,1.3,.3,1) both; }
.an-plaque.win { --ac: #8ff5b4; --ab: rgba(20,140,74,.45); } .an-plaque.lose, .an-plaque.bust { --ac: #ff8b98; --ab: rgba(170,20,45,.45); } .an-plaque.push { --ac: #ffd98a; --ab: rgba(160,110,20,.4); } .an-plaque.surrender { --ac: #d8d2c4; --ab: rgba(110,105,95,.4); } .an-plaque.dealer { --ac: #f0e2c0; --ab: rgba(120,40,56,.5); }
.an-plaque::before, .an-plaque::after { content: ""; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; 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: -11px; } .an-plaque::after { right: -11px; }
@keyframes plaqueIn { 0% { transform: scale(.4, .1); opacity: 0; } 60% { transform: scale(1.06, 1.06); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes raySpin { 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,.32) 50%, transparent); transform: translateX(-140%) skewX(-18deg); animation: shineX 1.1s .35s ease-in-out both; }
@keyframes shineX { to { transform: translateX(420%) skewX(-18deg); } }
.an-title { position: relative; font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: 5px; line-height: 1.05; padding-left: 5px; color: var(--ac); text-shadow: 0 2px 0 rgba(0,0,0,.7), 0 0 22px var(--ab); white-space: nowrap; }
.an-plaque.blackjack .an-title { font-size: 34px; letter-spacing: 6px; text-shadow: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.7)) drop-shadow(0 0 14px rgba(255,214,80,.6)); }
.an-plaque.blackjack .an-title span { background: linear-gradient(180deg, #fffbe0 0, #ffe27a 38%, #c2952a 62%, #ffe9a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.an-title span { display: inline-block; animation: letterIn .45s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i, 0) * 38ms + .12s); }
@keyframes letterIn { 0% { transform: translateY(18px) scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
.an-sub { position: relative; margin-top: 3px; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.an-sub b { color: #fff; }
.an-win { position: relative; margin-top: 2px; padding-top: 2px; border-top: 1px solid rgba(212,175,55,.3); font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; animation: tagIn .4s .45s ease-out both; }
.an-win b { color: #6cf59a; font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.an-win b.neg { color: #ff8b98; font-size: 15px; } .an-win b.zero { color: #ffd98a; font-size: 15px; }
.an-win small { margin-left: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; color: var(--gold-2); }
@keyframes tagIn { from { transform: translateX(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.tbl.shake { animation: tblShake .34s linear; }
@keyframes tblShake { 0%, 100% { transform: none; } 20% { transform: translate(2px, -1px); } 40% { transform: translate(-2px, 1px); } 60% { transform: translate(1px, 1px); } 80% { transform: translate(-1px, -1px); } }
.toasts { position: absolute; top: auto; bottom: 46%; left: 0; right: 0; z-index: 30; }

/* ===== le pupitre : cuir sang-de-bœuf surpiqué, filet de laiton, touches en relief ===== */
.controls { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 76px; padding: 10px 18px; border-radius: 18px; border: 1px solid rgba(217,181,74,.45);
  background:
    linear-gradient(180deg, rgba(255,236,170,.08), rgba(255,236,170,0) 34%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.2 .74'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #3a141d, #1a080c);
  box-shadow: inset 0 1px 0 rgba(255,236,170,.16), inset 0 0 0 3px rgba(0,0,0,.4), inset 0 -8px 14px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.5); }
.controls::before { content: ""; position: absolute; inset: 5px; border-radius: 13px; border: 1px dashed rgba(246,214,160,.3); pointer-events: none; }
.chip-tray { --chip: 46px; position: relative; display: flex; gap: 9px; padding: 5px 12px 7px; border-radius: 999px; background: linear-gradient(180deg, #0a0405, #1c0c10); box-shadow: inset 0 2px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,236,170,.14); 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); }
.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) * -.09)); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; 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; }
@media (hover: hover) { .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::before { content: ""; position: absolute; left: 50%; bottom: -13px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #f3dc8a; box-shadow: 0 0 8px rgba(255,214,80,.9); }
.ctrl-group { position: relative; display: flex; gap: 8px; align-items: stretch; justify-content: center; }
.ctl { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 12px; color: #f5ecd2; font-weight: 800; font-size: 12.5px; letter-spacing: .5px; white-space: nowrap;
  background: linear-gradient(180deg, #3b2a22, #1a110d); border: 1px solid #7a6230; box-shadow: inset 0 1px 0 rgba(255,236,170,.22), inset 0 -3px 0 rgba(0,0,0,.45), 0 3px 0 #070403, 0 7px 12px rgba(0,0,0,.4); transition: border-color .15s, transform .08s, box-shadow .12s, color .15s, opacity .2s; }
.ctl svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--gold-2); }
.ctl kbd { font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-width: 18px; padding: 3px 4px; border-radius: 4px; text-align: center; color: var(--gold-2); background: rgba(0,0,0,.45); border: 1px solid rgba(255,236,170,.28); box-shadow: 0 1px 0 rgba(0,0,0,.6); }
@media (hover: none), (pointer: coarse) { .ctl kbd { display: none; } }
@media (hover: hover) { .ctl:hover { border-color: #f3dc8a; color: #fff; } }
.ctl:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,236,170,.1), inset 0 2px 5px rgba(0,0,0,.6), 0 0 0 #070403; }
.ctl:disabled { opacity: .34; pointer-events: none; }
.ctl:focus-visible, .chip-btn:focus-visible, .plate:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ctl.primary { min-width: 112px; padding: 0 18px; font-size: 13px; letter-spacing: 1px; color: #2a1a00; text-shadow: 0 1px 0 rgba(255,255,255,.4); border-color: #fff0b0;
  background: linear-gradient(180deg, #fff0b0 0, #ecc955 30%, #c79a26 70%, #dcb445 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(122,82,0,.4), 0 3px 0 #6b4c0a, 0 8px 18px rgba(212,175,55,.3); }
.ctl.primary svg { color: #2a1a00; }
.ctl.primary kbd { color: #3a2500; background: rgba(255,255,255,.35); border-color: rgba(90,60,0,.4); box-shadow: none; }
.ctl.primary:active { box-shadow: inset 0 2px 5px rgba(90,60,0,.6), 0 0 0 #6b4c0a; }
/* touches de décision : voyant et pictogramme à la couleur de l'action */
.ctl.act { --kc: #4fe08a; min-width: 112px; padding: 0 12px; letter-spacing: .8px; }
.ctl.act::before { content: ""; position: absolute; left: 12px; right: 12px; top: 4px; height: 2px; border-radius: 2px; background: var(--kc); opacity: .85; box-shadow: 0 0 8px var(--kc); }
.ctl.act svg { color: var(--kc); width: 21px; height: 21px; }
.ctl.act.stand { --kc: #ff6b85; } .ctl.act.double { --kc: #ffd166; } .ctl.act.split { --kc: #6fb8ff; } .ctl.act.surrender { --kc: #d6cfbf; }
.ctl.act:disabled::before { opacity: .25; box-shadow: none; }
@media (hover: hover) { .ctl.act:hover { border-color: var(--kc); box-shadow: inset 0 1px 0 rgba(255,236,170,.22), inset 0 -3px 0 rgba(0,0,0,.45), 0 3px 0 #070403, 0 0 16px -2px var(--kc); } }
/* conseil de la stratégie de base : la touche conseillée porte un liseré de laiton et une étiquette */
.ctl.reco { border-color: #fff0b0; color: #fff; box-shadow: inset 0 1px 0 rgba(255,236,170,.3), inset 0 -3px 0 rgba(0,0,0,.45), 0 3px 0 #070403, 0 0 0 2px rgba(255,226,122,.55), 0 0 18px rgba(255,214,80,.55); }
.ctl.reco::after { content: attr(data-reco); position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); padding: 2px 7px; border-radius: 3px; font: 700 8.5px/1.2 var(--serif); letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; color: #3a2500; background: var(--brass); border: 1px solid #7a5a12; box-shadow: 0 2px 6px rgba(0,0,0,.5); pointer-events: none; animation: recoIn .35s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes recoIn { from { transform: translateX(-50%) translateY(6px) scale(.6); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.ctl.reco svg { filter: drop-shadow(0 0 5px var(--kc)); }
.ctl.hint { min-width: 0; padding: 0 12px; font-size: 11.5px; color: #e9dcc0; }
.hint-led { width: 7px; height: 7px; border-radius: 50%; background: #3a2a22; box-shadow: inset 0 1px 2px rgba(0,0,0,.8); transition: background .2s, box-shadow .2s; }
.ctl.hint[aria-pressed="true"] { border-color: #f3dc8a; }
.ctl.hint[aria-pressed="true"] .hint-led { background: #ffd166; box-shadow: 0 0 8px #ffd166; }
.ins-q { display: flex; align-items: center; gap: 9px; padding: 0 6px 0 2px; color: var(--gold-2); }
.ins-q svg { width: 26px; height: 26px; flex: 0 0 auto; }
.ins-q > span { display: flex; flex-direction: column; line-height: 1.2; }
.ins-q b { font: 700 16px/1.1 var(--serif); letter-spacing: 1px; color: #fff; }
.ins-q small { font-size: 10.5px; font-weight: 700; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.desk-info { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 18px; border-radius: 9px; font: 700 12px/1.2 var(--serif); letter-spacing: 1.6px; text-transform: uppercase; color: rgba(var(--ink), .9); background: rgba(0,0,0,.36); box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 1px 0 rgba(255,236,170,.12); }
.di-dots { display: inline-flex; gap: 4px; }
.di-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2); opacity: .3; animation: diDot 1.2s ease-in-out infinite; }
.di-dots i:nth-child(2) { animation-delay: .2s; } .di-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes diDot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.desk-info.still .di-dots { display: none; }

/* modale des statistiques */
.mybets-table .mc { white-space: nowrap; letter-spacing: .3px; }
.mybets-table .mc .r { color: #ff6b85; }

/* ===== grands écrans ===== */
@media (min-width: 1500px) and (min-height: 980px) {
  .bj { max-width: 1470px; gap: 10px; padding: 10px; }
  .tbl { max-height: 900px; --wall-h: 190px; --dh: 250px; --du: 54px; --rail: 40px; --rail-top: 10px; --apron: 16px; --rt: 34px; --zone-pad: 76px; --pitch-max: 272px;
    --ring: 72px; --ring-off: 55px; --side: 54px; --cw: 68px; --cwm: 74px; --cwd: 72px; --hand-base: 50px; --ins-d: 230px; --band-h: 30px; --t2-d: 266px; --t1-d: 294px;
    --chip-m: 35px; --chip-o: 28px; --chip-s: 23px; --t1-fs: 22px; --t2-fs: 12px; --band-fs: 12.5px; --tray-w: 292px; --tray-h: 40px; --shoe-w: 144px; --disc-w: 112px; --obj-dx: 240px; --plate-h: 32px; }
  .timer-ring { width: 72px; height: 72px; } .timer-ring b { font-size: 23px; } .table-status { font-size: 17px; }
  .hv { height: 26px; font-size: 16px; min-width: 34px; } .hres { font-size: 12.5px; } .stack-lbl { font-size: 12px; height: 17px; }
  .pl-name { font-size: 12px; } .pl-amt { font-size: 11.5px; }
  .controls { min-height: 84px; } .chip-tray { --chip: 52px; gap: 11px; } .chip-btn b { font-size: 15px; } .ctl { min-height: 52px; font-size: 13.5px; }
  .an-title { font-size: 38px; } .an-plaque.blackjack .an-title { font-size: 46px; }
}

/* ===== fenêtres peu hautes (portables) : la table se tasse par paliers avant de faire défiler la page ===== */
@media (min-width: 1041px) and (max-height: 830px) {
  .tbl { --wall-h: 132px; --dh: 176px; --du: 40px; --ring: 56px; --ring-off: 43px; --side: 42px; --cw: 52px; --cwm: 58px; --cwd: 56px; --hand-base: 39px;
    --ins-d: 178px; --band-h: 23px; --t2-d: 206px; --t1-d: 229px; --t1-fs: 17px; --t2-fs: 9.5px; --tray-h: 32px; min-height: 474px; }
  .controls { min-height: 68px; padding: 7px 16px; } .ctl { min-height: 44px; }
}
@media (min-width: 1041px) and (max-height: 720px) {
  .tbl { --wall-h: 100px; --dh: 140px; --du: 36px; --rail: 28px; --apron: 11px; --ring: 50px; --ring-off: 38px; --side: 38px; --cw: 46px; --cwm: 52px; --cwd: 50px; --hand-base: 35px;
    --ins-d: 158px; --band-h: 20px; --t2-d: 0px; --t1-d: 187px; --t1-fs: 15px; --chip-m: 26px; --chip-o: 21px; --tray-h: 26px; --shoe-w: 104px; --disc-w: 82px; --plate-h: 24px; min-height: 416px; }
  .placard { display: none; }
  .timer-ring { width: 50px; height: 50px; } .timer-ring b { font-size: 17px; }
  .chip-tray { --chip: 40px; } .controls { min-height: 60px; padding: 5px 16px; } .ctl { min-height: 40px; }
}

/* ===== tablettes et fenêtres étroites : les cases annexes passent au-dessus du cercle ===== */
@media (max-width: 1040px) {
  .tbl { --rail: 26px; --apron: 12px; --rt: 24px; --zone-pad: 26px; --ring: 50px; --ring-off: 39px; --side: 34px; --side-up: 1;
    --cw: 44px; --cwm: 54px; --cwd: 52px; --hand-base: 74px; --ins-d: 196px; --band-h: 21px; --t2-d: 0px; --t1-d: 226px;
    --chip-m: 26px; --chip-o: 20px; --chip-s: 17px; --t1-fs: 15px; --band-fs: 9px; --tray-w: 204px; --tray-h: 30px; --shoe-w: 100px; --disc-w: 78px; --obj-dx: 150px; --plate-h: 26px; --rot-k: .5; --rot-max: 18; max-height: none; }
  .seat { --side-x: calc(var(--sd) / 2 + 2px); --side-y: calc((var(--ring) / 2 + var(--sd) / 2 + 3px) * -1); }
  .seat.mine { --sd: 38px; }
  .side-tag { top: auto; bottom: calc(100% - 4px); }
  .seat:not(.mine) .side-tag { display: none; }
  .spot-art .nm, .spot-art .py { display: none; } .spot-art .ab { display: block; }
  .placard { display: none; }
  .controls { flex-wrap: wrap; gap: 8px 14px; }
  .ctl.act { min-width: 96px; }
}

/* ===== téléphone en portrait ===== */
@media (max-width: 700px) {
  .amb, .felt-light { display: none; }
  .bj { padding: 6px; gap: 6px; }
  .tbl { --wall-h: 128px; --dh: 176px; --du: 42px; --rail: 15px; --rail-top: 6px; --apron: 9px; --tm: 2px; --rt: 16px; --sag: .6;
    --zone-pad: 5px; --ring: 42px; --ring-off: 29px; --side: 28px; --side-up: 1;
    --cw: 31px; --cwm: 44px; --cwd: 44px; --hand-base: 68px; --ins-d: 181px; --band-h: 19px; --t2-d: 0px; --t1-d: 206px;
    --rot-k: .28; --rot-max: 9; --chip-m: 23px; --chip-o: 18px; --chip-s: 15px; --t1-fs: 12px; --band-fs: 8.5px;
    --tray-w: 136px; --tray-h: 22px; --shoe-w: 66px; --disc-w: 50px; --obj-dx: 78px; --plate-h: 22px; min-height: 430px; }
  .seat.mine { --sd: 35px; }
  .wall { height: calc(var(--wall-h) + 40px); }
  .wall-lamp { display: none; }
  .wall-spot { width: 330px; margin-left: -165px; height: 260px; }
  .status-box { left: 6px; top: 6px; gap: 6px; }
  .timer-ring { width: 42px; height: 42px; } .timer-ring b { font-size: 14px; }
  .table-status { font-size: 10.5px; letter-spacing: 1px; max-width: 86px; min-height: 0; line-height: 1.15; }
  .table-sub { display: none; }
  .dealer-say { left: auto; right: 6px; top: 8px; font-size: 10.5px; max-width: 118px; padding: 5px 9px; border-radius: 12px 12px 2px 12px; }
  .dealer-say.pop { transform-origin: 100% 100%; }
  .tray { padding: 3px 4px 4px; } .tray-in { gap: 2px; }
  .shoe-count { min-width: 28px; height: 13px; font-size: 9px; bottom: -5px; padding: 0 4px; }
  .shoe-info { display: none; }
  .hv { min-width: 24px; height: 18px; padding: 0 6px; font-size: 12px; border-radius: 9px; }
  .hv i { font-size: 7px; padding: 1px 3px; }
  .seat:not(.mine) .hv { min-width: 20px; height: 16px; font-size: 10.5px; padding: 0 5px; } .seat:not(.mine) .hv i { display: none; }
  .dealer-hand .hv { height: 20px; font-size: 13px; }
  .hres { font-size: 8.5px; letter-spacing: .8px; padding: 2px 5px; gap: 3px; } .hres b { font-size: 9.5px; }
  .seat:not(.mine) .hres b { display: none; }
  .stack-lbl { min-width: 0; height: 13px; padding: 0 4px; font-size: 9.5px; top: calc(var(--chip) / 2 - 5px); }
  .seat:not(.mine) .stack-lbl { height: 11px; font-size: 8px; padding: 0 3px; }
  .side-tag { font-size: 8px; padding: 1px 4px; }
  .spot-lbl { font-size: 8px; letter-spacing: 1px; }
  .pl-in { padding: 0 6px 0 2px; gap: 3px; }
  .pl-name { display: none; } .pl-amt { font-size: 9.5px; }
  .plate.empty .pl-in { padding: 0 6px; } .plate.empty .pl-sit span { display: none; } .pl-sit svg { width: 13px; height: 13px; }
  .seat-say { font-size: 10.5px; padding: 5px 7px; }
  .peek-tag { font-size: 8.5px; padding: 2px 6px; }
  .an-plaque { min-width: 214px; padding: 6px 22px 7px; }
  .an-title { font-size: 21px; letter-spacing: 3px; padding-left: 3px; } .an-plaque.blackjack .an-title { font-size: 26px; letter-spacing: 4px; }
  .an-sub { font-size: 9.5px; letter-spacing: 1px; margin-top: 3px; }
  .an-win { font-size: 12px; margin-top: 3px; padding-top: 3px; white-space: normal; } .an-win b { font-size: 15px; } .an-win small { display: block; margin: 2px 0 0; font-size: 9px; }
  .an-plaque::before, .an-plaque::after { width: 14px; height: 14px; margin-top: -7px; } .an-plaque::before { left: -8px; } .an-plaque::after { right: -8px; }
  .toasts { bottom: 40%; }
  /* pupitre à hauteur fixe sur deux rangs : la table ne bouge pas quand les touches changent */
  .controls { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 54px 46px; gap: 6px; justify-items: center; align-items: center; min-height: 0; padding: 8px 8px 9px; border-radius: 14px; }
  .controls::before { inset: 4px; border-radius: 11px; }
  .chip-tray { --chip: 42px; grid-row: 1; gap: 8px; padding: 5px 10px 7px; }
  .controls.turn .chip-tray, .controls.ask .chip-tray { display: none; }
  #betControls, #resultControls, .desk-info { grid-row: 2; width: 100%; }
  .ctrl-group { gap: 6px; }
  #betControls .ctl, #resultControls .ctl { flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0 6px; }
  #betControls .ctl.primary { flex: 1.5 1 0; }
  .ctl { font-size: 11.5px; gap: 6px; border-radius: 10px; }
  .ctl svg { width: 16px; height: 16px; }
  #actionControls { grid-row: 1 / 3; align-self: stretch; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 6px; }
  #actionControls .ctl { min-width: 0; min-height: 0; padding: 0 4px; font-size: 11px; letter-spacing: .4px; gap: 5px; }
  .ctl.act svg { width: 18px; height: 18px; }
  .ctl.reco::after { bottom: auto; top: -7px; font-size: 7px; padding: 1px 5px; }
  #insuranceControls { grid-row: 1 / 3; align-self: stretch; width: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
  #insuranceControls .ins-q { grid-column: 1 / 3; justify-content: center; }
  #insuranceControls .ctl { min-width: 0; }
  .desk-info { justify-content: center; min-height: 0; height: 100%; font-size: 10.5px; letter-spacing: 1.2px; padding: 0 10px; text-align: center; }
}
@media (max-width: 370px) {
  .tbl { --cwm: 40px; --cwd: 40px; --ring: 40px; --side: 26px; }
  .seat.mine { --sd: 33px; }
  .chip-tray { --chip: 39px; gap: 6px; }
}
@media (max-width: 700px) and (max-height: 700px) and (orientation: portrait) {
  .tbl { --wall-h: 100px; --dh: 142px; --du: 38px; --hand-base: 66px; --ins-d: 170px; --t1-d: 0px; min-height: 384px; }
  .controls { grid-template-rows: 50px 42px; padding: 6px 8px 7px; }
  .chip-tray { --chip: 39px; }
}
@media (max-width: 700px) and (max-height: 600px) and (orientation: portrait) {
  .tbl { --wall-h: 76px; --dh: 118px; --du: 42px; --cwm: 40px; --cwd: 38px; --hand-base: 64px; --ins-d: 158px; --tray-h: 18px; min-height: 336px; }
  .timer-ring { width: 36px; height: 36px; } .timer-ring b { font-size: 12.5px; }
  .dealer-say { max-width: 104px; font-size: 10px; padding: 4px 7px; }
}

/* ===== téléphone en paysage : demi-lune sur toute la largeur, pupitre sur une ligne ===== */
@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, .amb, .felt-light { display: none; }
  .bj { flex: none; padding: 4px; gap: 4px; max-width: none; height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h)); }
  .tbl { --wall-h: 54px; --dh: 106px; --du: 52px; --rail: 13px; --rail-top: 5px; --apron: 7px; --tm: 2px; --rt: 14px; --sag: .93; --zone-pad: 34px; --pitch-max: 172px;
    --ring: 36px; --ring-off: 25px; --side: 27px; --side-up: 0; --cw: 32px; --cwm: 38px; --cwd: 36px; --hand-base: 25px; --ins-d: 112px; --band-h: 14px; --t2-d: 0px; --t1-d: 0px;
    --rot-k: .5; --rot-max: 20; --chip-m: 19px; --chip-o: 15px; --chip-s: 13px; --band-fs: 7.5px;
    --tray-w: 112px; --tray-h: 15px; --shoe-w: 60px; --disc-w: 46px; --obj-dx: 96px; --plate-h: 18px; --dealer-top: 9px; flex: 1 1 0; min-height: 0; max-height: none; }
  .tray { left: calc(var(--cx) - var(--obj-dx) - var(--disc-w) - 14px - var(--tray-w) / 2); top: calc(var(--ft) + var(--rail-top) + 7px); }
  .seat { --side-x: calc(var(--ring) / 2 + var(--sd) / 2 + 4px); --side-y: -5px; }
  .seat.mine { --sd: 31px; }
  .side-tag { top: calc(100% + 1px); bottom: auto; }
  .seat:not(.mine) .side-tag { display: block; }
  .wall { height: calc(var(--wall-h) + 20px); }
  .wall-lamp { display: none; }
  .wall-spot { width: 300px; margin-left: -150px; height: 170px; }
  .status-box { left: 8px; top: 3px; gap: 6px; }
  .timer-ring { width: 36px; height: 36px; } .timer-ring b { font-size: 12.5px; }
  .table-status { font-size: 10.5px; letter-spacing: 1px; max-width: 220px; min-height: 0; white-space: nowrap; }
  .table-sub { display: none; }
  .dealer-say { left: calc(50% + 46px); top: 4px; font-size: 10px; max-width: 190px; padding: 4px 8px; border-radius: 10px 10px 10px 2px; }
  .tbl[data-phase="result"] .dealer-say { display: none; }
  .tray { padding: 2px 3px 3px; } .tray-in { gap: 2px; }
  .shoe { top: calc(var(--ft) + var(--rail-top) + 2px); } .discard { top: calc(var(--ft) + var(--rail-top) + 6px); }
  .shoe-count { min-width: 26px; height: 12px; font-size: 8.5px; bottom: -5px; padding: 0 3px; }
  .shoe-info, .placard { display: none; }
  .hv { min-width: 22px; height: 16px; padding: 0 5px; font-size: 11px; border-radius: 8px; }
  .hv i { font-size: 6.5px; padding: 1px 3px; }
  .dealer-hand .hv { height: 18px; font-size: 12px; }
  .hres { font-size: 8px; letter-spacing: .7px; padding: 2px 5px; gap: 3px; } .hres b { font-size: 9px; }
  .stack-lbl { min-width: 0; height: 12px; padding: 0 3px; font-size: 8.5px; top: calc(var(--chip) / 2 - 5px); }
  .seat:not(.mine) .stack-lbl { height: 11px; font-size: 8px; }
  .side-tag { font-size: 8px; padding: 1px 4px; }
  .spot-lbl { font-size: 7.5px; letter-spacing: .8px; }
  .pl-in { padding: 0 7px 0 2px; gap: 4px; }
  .pl-name { font-size: 9px; max-width: 54px; } .pl-amt { font-size: 9px; }
  .plate.empty .pl-in { padding: 0 7px; } .pl-sit { font-size: 8px; letter-spacing: 1px; gap: 3px; } .pl-sit svg { width: 11px; height: 11px; }
  .seat-say { font-size: 10px; padding: 4px 6px; }
  .peek-tag { font-size: 8px; padding: 2px 5px; }
  .announce { top: 3px; left: auto; right: 10px; transform: none; }
  .an-plaque { min-width: 0; max-width: 300px; padding: 3px 16px 4px; }
  .an-title { font-size: 15px; letter-spacing: 2px; padding-left: 2px; } .an-plaque.blackjack .an-title { font-size: 17px; letter-spacing: 2.5px; }
  .an-sub { display: none; }
  .an-win { margin-top: 1px; padding-top: 1px; border-top: 0; font-size: 10px; white-space: nowrap; } .an-win b { font-size: 12px; } .an-win small { display: none; }
  .an-plaque::before, .an-plaque::after { width: 11px; height: 11px; margin-top: -6px; } .an-plaque::before { left: -6px; } .an-plaque::after { right: -6px; }
  .toasts { bottom: 30%; }
  .controls { flex-wrap: nowrap; gap: 8px; min-height: 46px; height: 46px; padding: 4px 10px; border-radius: 12px; }
  .controls::before { inset: 3px; border-radius: 9px; }
  .chip-tray { --chip: 36px; gap: 5px; padding: 2px 8px 4px; }
  .chip-btn b { font-size: 11.5px; }
  .chip-btn.active { transform: translateY(-4px) scale(1.08); }
  .chip-btn.active::before { bottom: -9px; width: 4px; height: 4px; margin-left: -2px; }
  .controls.turn .chip-tray, .controls.ask .chip-tray { display: none; }
  .ctrl-group { gap: 5px; }
  .ctl { min-height: 36px; padding: 0 10px; font-size: 10.5px; border-radius: 9px; gap: 5px; }
  .ctl svg, .ctl.act svg { width: 15px; height: 15px; }
  .ctl.primary { min-width: 84px; padding: 0 12px; font-size: 11px; }
  .ctl.act { min-width: 96px; padding: 0 8px; }
  .ctl.act::before { top: 3px; }
  .ctl.reco::after { font-size: 7px; padding: 1px 5px; bottom: calc(100% - 4px); }
  .ins-q b { font-size: 13px; } .ins-q small { font-size: 9.5px; } .ins-q svg { width: 20px; height: 20px; }
  .desk-info { min-height: 34px; font-size: 10px; padding: 0 12px; }
}

/* ---------- guide des mises : onglet posé sur le bord haut du pupitre (s'asseoir, miser, distribuer) ---------- */
.bj-coach { position: absolute; left: 50%; top: 0; z-index: 6; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 4px 13px 4px 5px; border-radius: 999px; transform: translate(-50%, -58%);
  background: linear-gradient(180deg, #2a1416, #120809); border: 1px solid rgba(243,220,138,.7); box-shadow: 0 6px 18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,236,170,.18);
  color: #fbeccb; font: 700 12px/1.2 Inter, system-ui, sans-serif; white-space: nowrap; pointer-events: none; animation: bcIn .35s cubic-bezier(.2,1.3,.3,1); }
.bj-coach[hidden] { display: none; }
@keyframes bcIn { from { opacity: 0; transform: translate(-50%, -20%); } }
.bc-steps { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.bc-steps i { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 800 10.5px/1 Inter, system-ui, sans-serif; font-style: normal; color: rgba(251,236,203,.55); background: rgba(255,255,255,.07); }
.bc-steps i.on { color: #3a2500; background: linear-gradient(180deg, #fff0b0, #d9b54a); box-shadow: 0 0 10px rgba(255,214,80,.55); }
.bc-steps i.done { color: #0b2a16; background: #6cf59a; }
.bc-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* places libres à toucher tant que le joueur n'est pas assis */
.seats.need-seat .plate.empty .pl-in { animation: bcSeat 1.5s ease-in-out infinite; }
@keyframes bcSeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (max-width: 700px) { .bj-coach { font-size: 11px; gap: 6px; padding-right: 10px; } .bc-steps i { width: 16px; height: 16px; font-size: 9.5px; } }
@media (orientation: landscape) and (max-height: 520px) { .bj-coach { font-size: 10.5px; } }
@media (prefers-reduced-motion: reduce) { .bj-coach, .seats.need-seat .plate.empty .pl-in { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  .amb-bokeh, .amb-glow, .wall-bokeh, .wall-spot, .wall-rays, .wall-lamp::before, .felt-light i, .dealer-body, .tbl-glint, .tbl[data-phase="insurance"] .tbl-ins, .timer-ring.late, .timer-ring.late .tr-pulse, .hand-ui.active .hand-glow, .cardw.win::after, .seat.empty .spot.main .spot-lbl, .seat.mine.open.nobet .spot.main::before, .di-dots i { animation: none !important; }
  .tbl[data-phase="insurance"] .tbl-ins { opacity: .7; }
  .cardw, .card, .bet, .hand-ui { transition-duration: .01s !important; }
  .cardw.in .cfly, .cardw.in .card, .cardw.in::before, .cardw.out .cfly, .cardw.peek .cfly, .cardw.reveal .cfly, .cardw.bust .cfly, .cardw.bjk .cf::after, .stack .chip.drop, .bet.land, .stack.land, .bet.split, .an-plaque, .an-title span, .an-shine::before, .hres, .hv.bjk, .tbl.shake, .dealer-art, .shoe.shuffle .shoe-art { animation-duration: .01s !important; animation-delay: 0s !important; }
}
