/* Craps : salon feutré (boiseries, cuir, laiton, lumière ambrée). Piste des dés en cuvette de bois verni aux parois de
   caoutchouc à pyramides, dés translucides en CSS 3D, tapis sérigraphié en SVG. Tout bouge en transform / opacity. */
:root {
  --bg: #0a0806; --panel: #16110c; --panel-2: #110d09; --panel-3: #0c0907; --border: #3a2a1a; --border-light: #5a4328;
  --muted: #c9b48f; --accent: #d4af37; --gold: #d4af37; --cream: #f3ead0; --line: rgba(243,234,208,.86); --yel: #ffd24a; --p-red: #e3273e;
  --felt: #1d6b3f; --felt-deep: #10432a;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-print: Rockwell, "Rockwell Nova", "Roboto Slab", Clarendon, "Bookman Old Style", "Bodoni 72", Georgia, "Noto Serif", serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .95 -.36'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --wood: repeating-linear-gradient(91deg, rgba(0,0,0,0) 0 7px, rgba(30,10,0,.16) 7px 8px, rgba(255,200,140,.05) 8px 13px, rgba(30,10,0,.1) 13px 14px, rgba(0,0,0,0) 14px 23px), linear-gradient(180deg, #8a4a22 0, #6b3415 30%, #4a220c 72%, #36170a 100%);
  --leather: radial-gradient(ellipse 60% 120% at 30% 0%, rgba(255,225,190,.13), rgba(255,225,190,0) 60%), linear-gradient(180deg, #33221a, #1c120d 60%, #120b08);
}
/* Fond : cave voûtée en brique, appliques ambrées sur les côtés, vignette profonde */
body { font-family: var(--font);
  --page-bg:
    radial-gradient(ellipse 120% 90% at 50% 45%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%),
    radial-gradient(ellipse 40% 24% at 50% -2%, rgba(255,190,110,.22), rgba(255,190,110,0) 70%),
    radial-gradient(circle at 3% 30%, rgba(255,170,80,.16) 0, rgba(255,170,80,.08) 60px, rgba(255,170,80,0) 160px),
    radial-gradient(circle at 97% 30%, rgba(255,170,80,.16) 0, rgba(255,170,80,.08) 60px, rgba(255,170,80,0) 160px),
    radial-gradient(circle at 6% 78%, rgba(255,140,70,.09) 0, rgba(255,140,70,0) 120px),
    radial-gradient(circle at 94% 78%, rgba(255,140,70,.09) 0, rgba(255,140,70,0) 120px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, rgba(0,0,0,0) 2px 26px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 2px, rgba(0,0,0,0) 2px 58px),
    linear-gradient(180deg, #2a1a10, #140d08 55%, #0a0806); }
.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; }
.room-banner { text-align: center; font-size: 12px; color: var(--gold); padding: 4px; background: var(--panel); border-bottom: 1px solid var(--border); }

.cr { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 8px; max-width: 1220px; width: 100%; margin: 0 auto; position: relative; }

/* ===== panneau du haut : la scène (croupière + piste) et les écrans ===== */
.cr-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: stretch; border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px 12px;
  background:
    radial-gradient(ellipse 30% 100% at 38% 0%, rgba(255,205,140,.13), rgba(255,205,140,0) 72%),
    linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.4) 100%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.2) 0 1px, rgba(255,220,170,.03) 1px 2px, rgba(0,0,0,0) 2px 86px),
    linear-gradient(180deg, #2e1e13, #170f09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(212,175,55,.08), 0 12px 30px rgba(0,0,0,.4); }
.cr-stage { position: relative; min-width: 0; isolation: isolate; }
.scene-head { position: absolute; right: 2px; top: 0; z-index: 8; display: flex; align-items: center; gap: 10px; height: 26px; }
.point-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding: 2px 10px 2px 3px; border-radius: 999px; border: 1px solid var(--border-light); background: rgba(0,0,0,.42); white-space: nowrap; }
.point-status i { width: 17px; height: 17px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #555, #151515 62%); box-shadow: inset 0 0 0 1.5px #151515, inset 0 0 0 2.5px rgba(255,255,255,.7); transition: background .4s; }
.point-status.on { color: #1a1408; background: linear-gradient(180deg, #fbf5e3, #d9cfb2); border-color: #fff; }
.point-status.on i { background: radial-gradient(circle at 35% 28%, #fff, #d8d2c0 70%); box-shadow: inset 0 0 0 1.5px #f4f0e4, inset 0 0 0 2.5px #111; }
.point-status b { font-family: var(--f-print); font-size: 14px; }
.table-status { color: var(--gold); font-weight: 800; letter-spacing: 1px; font-size: 12px; text-transform: uppercase; text-align: right; white-space: nowrap; }
.table-status.closed { color: var(--muted); }
.table-status.late { color: #ff8b98; animation: blink .5s steps(2, jump-none) infinite; }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .45; } }

.cr-scene { position: relative; height: var(--scene-h); --scene-h: 226px; --dw: 236px; --tub-top: 32px; --rail: 15px; --front: 26px; --wh: 24px; --ww: 22px; --tub-l: calc(var(--dw) * .655); --ds: 46px; --fl: 180px; --ft: 70px; --fw: 600px; --fh: 130px; }
.scene-sconce { position: absolute; left: calc(var(--dw) * -.1); top: -8%; width: calc(var(--dw) * 1.25); height: 100%; background: radial-gradient(ellipse 50% 52% at 46% 40%, rgba(255,196,120,.3), rgba(255,170,80,.1) 55%, rgba(255,170,80,0) 100%); pointer-events: none; }

/* --- la cuvette : main courante en cuir, lèvre de bois verni, parois à pyramides, feutre --- */
.tub { position: absolute; left: var(--tub-l); right: 0; top: var(--tub-top); bottom: 0; z-index: 1; border-radius: 20px 20px 10px 10px; background: var(--leather);
  box-shadow: 0 14px 26px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,235,200,.2), inset 0 0 0 1px rgba(0,0,0,.6); }
.tub::before { content: ""; position: absolute; inset: 8px 8px 0; border-radius: 13px 13px 4px 4px; background: var(--wood); box-shadow: inset 0 1px 0 rgba(255,228,180,.6), inset 0 0 0 1px rgba(40,18,6,.8), 0 0 0 1px rgba(0,0,0,.5); }
.tub::after { content: ""; position: absolute; inset: 3.5px 3.5px 0; border: 1px dashed rgba(240,220,170,.3); border-bottom: 0; border-radius: 17px 17px 0 0; pointer-events: none; }
.tub-in { position: absolute; left: var(--rail); right: var(--rail); top: var(--rail); bottom: var(--front); border-radius: 7px 7px 2px 2px; overflow: hidden; background: #0b3320; box-shadow: 0 0 0 1px rgba(0,0,0,.75), 0 0 0 2px rgba(255,220,160,.14); }
.tub-floor { position: absolute; left: var(--ww); right: var(--ww); top: var(--wh); bottom: 0;
  background:
    var(--noise),
    repeating-linear-gradient(45deg, rgba(255,255,255,.024) 0 1px, rgba(255,255,255,0) 1px 3px),
    radial-gradient(ellipse 70% 110% at 50% 20%, #26804f, #1b6a3f 55%, #12492c); }
.tub-floor::before { content: ""; position: absolute; inset: 8px 10px 9px; border: 1px solid rgba(243,234,208,.2); border-radius: 3px; box-shadow: inset 0 0 0 3px rgba(0,0,0,0), inset 0 0 0 4px rgba(243,234,208,.08); }
.floor-print { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 14px; font-family: var(--f-print); color: rgba(243,234,208,.13); white-space: nowrap; }
.floor-print b { font-size: calc(var(--fh) * .2); font-weight: 900; letter-spacing: .5em; margin-right: -.5em; }
.floor-print i { width: calc(var(--fw) * .09); height: 1px; background: currentColor; position: relative; }
.floor-print i::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; transform: rotate(45deg); background: currentColor; }
.floor-print i:first-child::after { right: 0; } .floor-print i:last-child::after { left: 0; }
.wall { position: absolute; background: #0d3a25 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 0L14 7L7 7Z' fill='%23237349'/%3E%3Cpath d='M14 7L7 14L7 7Z' fill='%230a2f1e'/%3E%3Cpath d='M7 14L0 7L7 7Z' fill='%23165236'/%3E%3Cpath d='M0 7L7 0L7 7Z' fill='%233a9a68'/%3E%3Cpath d='M0 0L7 0L0 7Z' fill='%230a2f1e'/%3E%3Cpath d='M14 0L14 7L7 0Z' fill='%23165236'/%3E%3Cpath d='M0 14L0 7L7 14Z' fill='%23237349'/%3E%3Cpath d='M14 14L7 14L14 7Z' fill='%233a9a68'/%3E%3Cpath d='M7 0L14 7L7 14L0 7Z' fill='none' stroke='%23061f13' stroke-width='.7'/%3E%3C/svg%3E") 0 0 / 13px 13px; }
.wall::after { content: ""; position: absolute; inset: 0; }
.wall-far { left: 0; right: 0; top: 0; height: var(--wh); clip-path: polygon(0 0, 100% 0, calc(100% - var(--ww)) 100%, var(--ww) 100%); }
.wall-far::after { background: linear-gradient(180deg, rgba(0,0,0,.62) 0, rgba(0,0,0,.12) 34%, rgba(255,240,200,.06) 60%, rgba(0,0,0,.3) 100%); }
.wall-l { left: 0; top: 0; bottom: 0; width: var(--ww); clip-path: polygon(0 0, 100% var(--wh), 100% 100%, 0 100%); }
.wall-l::after { background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.34)); }
.wall-r { right: 0; top: 0; bottom: 0; width: var(--ww); clip-path: polygon(100% 0, 0 var(--wh), 0 100%, 100% 100%); }
.wall-r::after { background: linear-gradient(270deg, rgba(0,0,0,.55), rgba(255,240,200,.07) 70%, rgba(0,0,0,.12)); }
.wall-r::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 120% 46% at 0% 55%, rgba(255,246,210,.75), rgba(255,246,210,0) 70%); opacity: 0; }
.wall-r.thud::before { animation: thud .5s ease-out var(--hit, 1100ms) both; }
@keyframes thud { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
/* lumière : douche chaude au centre, ombres portées des parois et de la main courante, vignette */
.tub-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 70% at 52% 46%, rgba(255,244,200,.2), rgba(255,244,200,0) 72%),
    linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,0) 20%),
    linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,0) 13%, rgba(0,0,0,0) 90%, rgba(0,0,0,.3));
  box-shadow: inset 0 7px 9px -3px rgba(0,0,0,.75), inset 0 0 34px rgba(0,0,0,.45); }
.tub-shade::after { content: ""; position: absolute; inset: 0; opacity: 0; }
.cr-scene.late .tub-shade::after { background: radial-gradient(ellipse 80% 90% at 50% 50%, rgba(255,60,80,0) 40%, rgba(255,60,80,.38) 100%); animation: latePulse 1s ease-in-out infinite; }
@keyframes latePulse { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.cr-scene[data-ev="out"] .tub-shade::after, .cr-scene[data-ev="craps"] .tub-shade::after { background: radial-gradient(ellipse 90% 100% at 50% 50%, rgba(160,0,24,.1) 20%, rgba(160,0,24,.6) 100%); animation: evFlash 1.5s ease-out both; }
.cr-scene[data-ev="natural"] .tub-shade::after, .cr-scene[data-ev="yo"] .tub-shade::after, .cr-scene[data-ev="made"] .tub-shade::after { background: radial-gradient(ellipse 80% 100% at 50% 50%, rgba(255,214,90,.42), rgba(255,214,90,0) 70%); animation: evFlash 1.4s ease-out both; }
@keyframes evFlash { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: .22; } }

/* main courante de devant : cuir capitonné au-dessus, tablier de bois verni où s'incruste le compte à rebours */
.tub-front { position: absolute; left: 0; right: 0; bottom: 0; height: var(--front); z-index: 3; border-radius: 7px 7px 11px 11px; overflow: hidden; background: var(--wood);
  box-shadow: 0 -1px 0 rgba(0,0,0,.7), 0 8px 16px rgba(0,0,0,.5), inset 0 -2px 3px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.55); }
.tub-front::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 44%; border-radius: 7px 7px 4px 4px; background: var(--leather); box-shadow: inset 0 1px 0 rgba(255,235,200,.26), 0 1px 0 rgba(255,225,170,.35), 0 2px 3px rgba(0,0,0,.6); }
.tub-front::after { content: ""; position: absolute; top: 44%; bottom: 0; left: 0; width: 22%; background: linear-gradient(100deg, rgba(255,235,200,0), rgba(255,235,200,.3) 50%, rgba(255,235,200,0)); transform: translateX(-120%) skewX(-20deg); animation: gloss 9s ease-in-out 2s infinite; }
@keyframes gloss { 0% { transform: translateX(-120%) skewX(-20deg); } 30%, 100% { transform: translateX(560%) skewX(-20deg); } }
.timer-bar { position: absolute; left: 50%; bottom: 2px; width: min(52%, 420px); height: 12px; margin-left: calc(min(52%, 420px) / -2); display: flex; align-items: center; gap: 8px; z-index: 1; }
.timer-track { flex: 1; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(0,0,0,.7); box-shadow: inset 0 1px 2px rgba(0,0,0,.8), 0 0 0 1px rgba(226,184,92,.8), 0 1px 0 rgba(255,230,170,.3); }
.timer-track i { display: block; height: 100%; border-radius: 3px; transform-origin: 0 50%; background: linear-gradient(180deg, #fff1b0, #f0c040 60%, #d39a1c); box-shadow: 0 0 6px rgba(255,214,90,.8); }
.timer-bar b { flex: 0 0 auto; min-width: 20px; text-align: center; font-size: 11px; font-weight: 900; line-height: 13px; padding: 0 4px; border-radius: 3px; color: #2c1c00; background: linear-gradient(180deg, #f6e19a, #c79e33); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 2px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
.timer-bar.late .timer-track i { background: linear-gradient(180deg, #ff8d9b, #e23a50); }
.timer-bar.late b { color: #fff; background: linear-gradient(180deg, #ff6f80, #c8102e); }
.timer-bar b.beat { animation: beat .42s cubic-bezier(.2,1.6,.4,1); }
@keyframes beat { 0% { transform: scale(1.9); } 100% { transform: none; } }

/* la banque : piles de jetons vues de face, posées sur la main courante devant la croupière */
.bank { position: absolute; left: calc(var(--dw) * .04); bottom: calc(var(--front) - 2px); z-index: 3; display: flex; align-items: flex-end; gap: 2px; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0,0,0,.55)); }
.bank i { --c: #d0342f; --s: #fff; width: calc(var(--front) * .62); height: calc(var(--n) * var(--front) * .1); border-radius: 2px 2px 1px 1px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.42), rgba(255,255,255,.2) 28%, rgba(255,255,255,0) 52%, rgba(0,0,0,.4)),
    repeating-linear-gradient(0deg, rgba(0,0,0,.5) 0 .6px, rgba(0,0,0,0) .6px calc(var(--front) * .1)),
    linear-gradient(90deg, var(--c) 0 24%, var(--s) 24% 40%, var(--c) 40% 60%, var(--s) 60% 76%, var(--c) 76%); }
.bank .c1 { --c: #ecebe6; --s: #3b6fd6; } .bank .c25 { --c: #1f9547; } .bank .c100 { --c: #26262b; --s: #e8d8a0; } .bank .c500 { --c: #7b2fb0; --s: #ffe9a8; }
/* --- croupière : debout derrière le coin gauche de la table, la main tendue au-dessus de la piste ; la main courante de
   devant passe devant elle et cache les dés peints sur l'image (ce sont les dés 3D qui jouent) --- */
.cr-dealer { position: absolute; left: 0; bottom: calc(var(--front) - var(--dw) * .315); width: var(--dw); z-index: 2; pointer-events: none; }
.dealer-art { width: 100%; aspect-ratio: 640 / 733; transform-origin: 38% 82%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); }
.dealer-fig { position: relative; width: 100%; height: 100%; transform: scaleX(-1); transform-origin: 50% 82%; animation: breathe 4.8s ease-in-out infinite; }
.dealer-fig img { position: relative; width: 100%; height: 100%; display: block; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 733' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='.785' stop-color='%23fff'/%3E%3Cstop offset='.81' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='640' height='733' fill='url(%23g)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 733' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='.785' stop-color='%23fff'/%3E%3Cstop offset='.81' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='640' height='733' fill='url(%23g)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
@keyframes breathe { 0%, 100% { transform: scaleX(-1) scaleY(1); } 50% { transform: scaleX(-1.004) scaleY(1.011); } }
.dealer-art[data-mood="talk"] { animation: dealerTalk .6s ease-out; }
.dealer-art[data-mood="happy"] { animation: dealerCheer .8s cubic-bezier(.3,1.4,.5,1); }
.dealer-art[data-mood="sad"] { animation: dealerSad 1.2s ease-in-out; }
.dealer-art.throw { animation: dealerThrow 1.05s cubic-bezier(.3,0,.3,1); }
@keyframes dealerTalk { 0% { transform: none; } 35% { transform: rotate(1.4deg) translateY(-2px); } 100% { transform: none; } }
@keyframes dealerCheer { 0% { transform: none; } 30% { transform: translateY(-4px) scale(1.035) rotate(-1.5deg); } 62% { transform: translateY(0) scale(1.01) rotate(1deg); } 100% { transform: none; } }
@keyframes dealerSad { 0% { transform: none; } 40% { transform: rotate(-2.2deg) translateY(2px); } 100% { transform: none; } }
@keyframes dealerThrow { 0% { transform: none; } 20% { transform: rotate(-4.5deg) translateX(-5px); } 31% { transform: rotate(4deg) translateX(7px); } 58% { transform: rotate(-.6deg); } 100% { transform: none; } }
.dealer-say { position: absolute; left: calc(var(--dw) * .9); top: 0; z-index: 7; background: #fffaf0; color: #24180c; font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 14px 14px 14px 3px; width: max-content; max-width: 210px; line-height: 1.3; box-shadow: 0 6px 18px rgba(0,0,0,.45), inset 0 -2px 0 rgba(120,80,20,.12); pointer-events: none; transform-origin: 0 100%; }
.dealer-say.pop { animation: pop .32s cubic-bezier(.3,1.5,.5,1); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* --- bâton du stickman, posé sur la main courante ; il sort par le bout de la table --- */
.stick-layer { position: absolute; inset: 0; overflow: hidden; z-index: 4; pointer-events: none; }
.stick { position: absolute; left: 0; top: 0; transform-origin: 16px 12px; filter: drop-shadow(1px 4px 2px rgba(0,0,0,.5)); will-change: transform; }
.stick svg, .rake svg { display: block; overflow: visible; }
.st-sh { fill: none; stroke: #4a2c0c; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.st-a { fill: none; stroke: #c99a55; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.st-b { fill: none; stroke: #f6e3b8; stroke-width: 1.6; stroke-linecap: round; opacity: .9; }
.st-r { fill: none; stroke: #5d3610; stroke-width: 2; }
.st-t { fill: none; stroke: #3a2208; stroke-width: 6.2; stroke-linecap: round; }

/* --- dés : cubes translucides, vus de trois quarts ; l'ombre reste au sol pendant les bonds --- */
.dice { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.die { position: absolute; left: 0; top: 0; width: var(--ds); height: var(--ds); margin: calc(var(--ds) / -2) 0 0 calc(var(--ds) / -2); will-change: transform; }
.die-shadow { position: absolute; left: -10%; top: 26%; width: 128%; height: 100%; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.78) 0, rgba(0,0,0,.5) 36%, rgba(0,0,0,0) 70%); opacity: .62; }
.die-lift { position: absolute; inset: 0; perspective: calc(var(--ds) * 7); }
.die-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(38deg); }
.cube { position: absolute; inset: 9%; transform-style: preserve-3d; }
.cube .face { position: absolute; inset: 0; border-radius: 15%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 13%;
  background:
    radial-gradient(circle at 25% 21%, rgba(255,255,255,.6), rgba(255,255,255,0) 27%),
    radial-gradient(circle at 50% 58%, rgba(238,48,72,.82), rgba(196,12,40,.92) 54%, rgba(118,2,22,.96));
  box-shadow: inset 0 0 0 1px rgba(255,190,198,.62), inset 0 0 calc(var(--ds) * .13) rgba(255,255,255,.22), inset 0 calc(var(--ds) * -.07) calc(var(--ds) * .15) rgba(70,0,12,.5); }
.cube .face b { place-self: center; width: 64%; height: 64%; border-radius: 50%; background: radial-gradient(circle at 42% 34%, #fff 0 36%, #eee8dc 62%, #b3aa9d); box-shadow: inset 0 1.5px 2px rgba(0,0,0,.5), 0 0 0 .6px rgba(110,0,18,.6); }
.cube .f1 { transform: translateZ(calc(var(--ds) * .41)); } .cube .f6 { transform: rotateY(180deg) translateZ(calc(var(--ds) * .41)); }
.cube .f2 { transform: rotateY(90deg) translateZ(calc(var(--ds) * .41)); } .cube .f5 { transform: rotateY(-90deg) translateZ(calc(var(--ds) * .41)); }
.cube .f3 { transform: rotateX(90deg) translateZ(calc(var(--ds) * .41)); } .cube .f4 { transform: rotateX(-90deg) translateZ(calc(var(--ds) * .41)); }
/* dés arrêtés : un voile sombre sur les faces latérales (pas de filter : il floute les faces en 3D), la face du dessus reste en pleine lumière */
.cube .face::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(52,0,12,.36), rgba(28,0,6,.62)); opacity: 0; transition: opacity .3s; }
.die.rest .face::after { opacity: 1; }
.die.rest[data-top="1"] .f1::after, .die.rest[data-top="2"] .f2::after, .die.rest[data-top="3"] .f3::after, .die.rest[data-top="4"] .f4::after, .die.rest[data-top="5"] .f5::after, .die.rest[data-top="6"] .f6::after { opacity: 0; }
.die.rest .die-lift { animation: diePop .5s cubic-bezier(.3,1.5,.5,1) .12s; }
@keyframes diePop { 0% { transform: none; } 40% { transform: translateY(-4px) scale(1.14); } 100% { transform: none; } }
.total-badge { position: absolute; left: 0; top: 0; width: calc(var(--ds) * .9); height: calc(var(--ds) * .9); margin: calc(var(--ds) * -.45) 0 0 calc(var(--ds) * -.45); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-print); font-weight: 900; font-size: calc(var(--ds) * .5); color: #fff; background: radial-gradient(circle at 35% 26%, #52cf78, #17813a 70%); border: 2.5px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.6), inset 0 -5px 8px rgba(0,0,0,.28); text-shadow: 0 2px 2px rgba(0,0,0,.4); animation: badgeIn .55s cubic-bezier(.2,1.6,.4,1) .1s both; }
.total-badge b { line-height: 1; }
.total-badge::after { content: ""; position: absolute; left: 50%; top: 100%; margin: 1px 0 0 -5px; border: 5px solid transparent; border-top-color: #fff; border-bottom: 0; }
.total-badge.craps, .total-badge.out { background: radial-gradient(circle at 35% 26%, #ff5e72, #b50d28 70%); }
.total-badge.point { background: radial-gradient(circle at 35% 26%, #fff, #d8d2c0 70%); color: #111; text-shadow: none; border-color: #111; box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0,0,0,.6); }
.total-badge.point::after { border-top-color: #111; }
.total-badge.none { background: radial-gradient(circle at 35% 26%, #6b6257, #2c2620 70%); border-color: var(--cream); }
@keyframes badgeIn { 0% { transform: translateY(14px) scale(.2); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* --- annonces : un lettrage par issue, posé sur le feutre à gauche des dés --- */
.announce { position: absolute; z-index: 6; left: calc(var(--fl) + var(--fw) * .06); top: var(--ft); width: calc(var(--fw) * .45); height: var(--fh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; pointer-events: none; text-align: center; --as: clamp(18px, calc(var(--fw) * .054), 35px); }
.an-rays { position: absolute; left: -12%; right: -12%; top: -30%; bottom: -30%; z-index: -1; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,0,0,.6), rgba(0,0,0,.3) 50%, rgba(0,0,0,0) 72%); animation: fadeIn .3s ease-out both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.an-kick { font-size: clamp(8px, calc(var(--as) * .33), 12px); font-weight: 800; letter-spacing: .3em; margin-right: -.3em; color: var(--cream); text-shadow: 0 1px 3px rgba(0,0,0,.8); animation: kickIn .4s ease-out both; white-space: nowrap; }
@keyframes kickIn { 0% { opacity: 0; transform: translateY(6px); letter-spacing: .6em; } 100% { opacity: 1; transform: none; } }
.an-big { font-family: var(--f-print); font-weight: 900; font-size: var(--as); line-height: .98; letter-spacing: .03em; color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 .28em; }
.an-big .w { display: inline-block; white-space: nowrap; }
.an-big i { display: inline-block; font-style: normal; padding-top: .2em; margin-top: -.2em; animation: letIn .5s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--i) * 34ms); }
@keyframes letIn { 0% { opacity: 0; transform: translateY(-14px) scale(1.7) rotate(-8deg); } 100% { opacity: 1; transform: none; } }
.an-sub { margin-top: 3px; font-size: clamp(8px, calc(var(--as) * .31), 12px); font-weight: 900; letter-spacing: .32em; padding: 2px 10px 2px calc(10px + .32em); border-radius: 3px; color: #1e1300; background: linear-gradient(180deg, #ffe58a, #d2a02c); box-shadow: 0 2px 6px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.6); white-space: nowrap; animation: subIn .45s cubic-bezier(.2,1.3,.4,1) .3s both; }
@keyframes subIn { 0% { opacity: 0; transform: scaleX(.2); } 100% { opacity: 1; transform: none; } }
.an-mine { margin-top: 5px; background: rgba(0,0,0,.74); color: #fff; padding: 3px 12px; border-radius: 12px; font-weight: 700; font-size: 12px; white-space: nowrap; animation: fadeIn .3s ease-out both; }
.an-mine:empty { display: none; }
.an-mine b { color: #6cf59a; } .an-mine b.neg { color: #ff8b98; }
.announce.natural .an-big i, .announce.made .an-big i { background: linear-gradient(180deg, #fffbe0 12%, #ffd45e 48%, #d68700 90%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 0 rgba(74,38,0,.95)) drop-shadow(0 0 10px rgba(255,200,70,.5)); }
.announce.made .an-big i { background-image: linear-gradient(180deg, #f2ffe6 10%, #8df0a4 46%, #1fa04a 92%); filter: drop-shadow(0 2px 0 rgba(0,52,18,.95)) drop-shadow(0 0 10px rgba(110,240,150,.5)); }
.announce.made .an-sub, .announce.natural .an-sub, .announce.yo .an-sub { background: linear-gradient(180deg, #7bf09a, #1f9c47); color: #022a10; }
.announce.yo .an-big { transform: rotate(-4deg) skewX(-8deg); font-style: italic; }
.announce.yo .an-big i { color: #ffe14d; text-shadow: 0 2px 0 #8a1a00, 0 0 14px rgba(255,220,80,.6); -webkit-text-stroke: 1px #8a1a00; paint-order: stroke fill; animation-name: letYo; }
@keyframes letYo { 0% { opacity: 0; transform: translateX(-30px) scale(.4); } 60% { opacity: 1; transform: translateX(3px) scale(1.2); } 100% { opacity: 1; transform: none; } }
.announce.craps .an-big i { color: #ff3d55; -webkit-text-stroke: 1.2px #fff1d2; paint-order: stroke fill; text-shadow: 0 3px 0 rgba(60,0,10,.9); animation-name: letDrop; }
@keyframes letDrop { 0% { opacity: 0; transform: translateY(-34px) rotate(14deg); } 55% { opacity: 1; transform: translateY(3px) rotate(-5deg); } 75% { transform: translateY(-2px) rotate(3deg); } 100% { opacity: 1; transform: none; } }
.announce.craps .an-sub, .announce.out .an-sub { background: linear-gradient(180deg, #5a1320, #2c070e); color: #ffd9dc; box-shadow: 0 2px 6px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 1px rgba(255,120,130,.35); }
.announce.out .an-big { letter-spacing: .06em; line-height: 1.12; }
.announce.out .an-big i { color: #ff2f48; text-shadow: 0 3px 0 #3d0009, 0 0 18px rgba(255,40,70,.55); animation: letOut 1s cubic-bezier(.3,.9,.4,1) both; animation-delay: calc(var(--i) * 45ms); }
.announce.out .an-big i:nth-child(odd) { --tilt: -7deg; --dy: 3px; } .announce.out .an-big i:nth-child(even) { --tilt: 6deg; --dy: -2px; }
@keyframes letOut { 0% { opacity: 0; transform: scale(2.4); } 28% { opacity: 1; transform: scale(1); } 60% { transform: scale(1); } 100% { opacity: 1; transform: translateY(var(--dy, 0)) rotate(var(--tilt, 0deg)); } }
.announce.point .an-big.num b { display: flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: 50%; font-size: 1.12em; color: #111; background: radial-gradient(circle at 35% 26%, #fff, #d8d2c0 72%); box-shadow: inset 0 0 0 3px #f4f0e4, inset 0 0 0 5px #111, 0 6px 16px rgba(0,0,0,.6); animation: stamp .5s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.6) rotate(-20deg); } 100% { opacity: 1; transform: none; } }
.announce.point .an-sub { background: linear-gradient(180deg, #fbf5e3, #cfc5a8); }
.announce.hard .an-big i { color: #ffb23d; -webkit-text-stroke: 1px #4d2200; paint-order: stroke fill; text-shadow: 0 2px 0 #4d2200, 0 0 12px rgba(255,170,50,.5); }
.announce.hard .an-big .mdice { margin-right: .1em; animation: stamp .45s cubic-bezier(.3,1.5,.5,1) both; }
.announce.hard .an-big .mdie { --m1: #f4566c; --m2: #a80f29; --mp: #fff; width: .74em; height: .74em; padding: .1em; border-radius: .15em; }
.announce.hard .an-big .mdie b { width: 72%; height: 72%; max-width: none; max-height: none; }
.announce.easy { --as: clamp(16px, calc(var(--fw) * .05), 30px); }
.announce.easy .an-big i { color: var(--cream); text-shadow: 0 2px 0 rgba(0,0,0,.6); }
.announce.easy .an-sub { background: none; box-shadow: none; color: var(--muted); padding: 0; }

/* ===== panneau latéral : derniers lancers, température de la table, écrans ===== */
.cr-side { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.side-rolls { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.strip-title { font-size: 10px; color: var(--muted); font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.rolls-strip { display: flex; gap: 4px; overflow: hidden; min-height: 45px; align-items: flex-end; -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
.hr { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 4px 3px; border-radius: 7px; background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.07); position: relative; }
.hr b { font-family: var(--f-print); font-size: 11px; font-weight: 900; line-height: 1; color: var(--cream); }
.hr.last { padding: 5px 6px 4px; border-color: rgba(212,175,55,.8); background: rgba(212,175,55,.13); box-shadow: 0 0 10px rgba(212,175,55,.25); }
.hr.last b { font-size: 13px; color: #fff; }
.hr.new { animation: hrIn .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes hrIn { 0% { opacity: 0; transform: translateX(-16px) scale(.6); } 100% { opacity: 1; transform: none; } }
.hr.hard::after { content: ""; position: absolute; right: 2px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--yel); box-shadow: 0 0 4px var(--yel); }
.hr-empty { font-size: 11px; color: #6e5d44; align-self: center; }
.mdice { display: inline-flex; gap: 2px; }
.mdie { --m1: #fbf7ec; --m2: #cfc7b6; --mp: #1a1410; display: inline-grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 15px; height: 15px; padding: 2px; border-radius: 3.5px; background: linear-gradient(150deg, var(--m1), var(--m2)); box-shadow: inset 0 0 0 .8px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.5), 0 1px 1.5px rgba(0,0,0,.5); }
.mdie b { width: 78%; height: 78%; max-width: 4px; max-height: 4px; min-width: 2.6px; min-height: 2.6px; border-radius: 50%; background: var(--mp); place-self: center; }
.hr.last .mdie { width: 18px; height: 18px; }
.hr.natural .mdie, .hr.made .mdie { --m1: #58d481; --m2: #16843a; --mp: #fff; }
.hr.craps .mdie, .hr.out .mdie { --m1: #ff6f82; --m2: #b50d28; --mp: #fff; }
.hr.point .mdie { --m1: #ffe58a; --m2: #c8962a; --mp: #2a1a00; }
.heat { display: flex; align-items: center; gap: 6px; min-height: 16px; font-size: 10px; font-weight: 800; letter-spacing: .6px; color: var(--muted); white-space: nowrap; }
.heat b { text-transform: uppercase; letter-spacing: 1.2px; }
.heat em { font-style: normal; font-weight: 600; margin-left: auto; display: inline-flex; align-items: center; gap: 5px; overflow: hidden; }
/* points gagnés par le lanceur : un petit palet ON par point */
.heat .pts { display: inline-flex; gap: 2px; }
.heat .pts i { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff, #d8d2c0 70%); box-shadow: inset 0 0 0 1.5px #111, 0 0 4px rgba(255,255,255,.4); }
.heat-ic { width: 9px; height: 12px; flex: 0 0 auto; background: currentColor; clip-path: polygon(50% 0, 78% 34%, 68% 44%, 100% 70%, 78% 100%, 22% 100%, 0 70%, 30% 36%, 40% 52%); opacity: .5; }
.heat-bar { display: inline-flex; gap: 2px; }
.heat-bar u { width: 6px; height: 9px; border-radius: 1.5px; background: rgba(255,255,255,.1); }
.heat.cold b, .heat.cold .heat-ic { color: #7cc4ff; } .heat.cold .heat-bar u.on { background: #4ea8f0; }
.heat.cold .heat-ic { clip-path: polygon(44% 0, 56% 0, 56% 36%, 88% 18%, 94% 30%, 62% 50%, 94% 70%, 88% 82%, 56% 64%, 56% 100%, 44% 100%, 44% 64%, 12% 82%, 6% 70%, 38% 50%, 6% 30%, 12% 18%, 44% 36%); opacity: 1; width: 11px; }
.heat.warm b, .heat.warm .heat-ic { color: #f3c552; } .heat.warm .heat-bar u.on { background: #e8ae2e; } .heat.warm .heat-ic { opacity: .9; }
.heat.hot b, .heat.hot .heat-ic { color: #ff7a4a; } .heat.hot .heat-bar u.on { background: linear-gradient(180deg, #ffb04a, #ff4d3a); box-shadow: 0 0 5px rgba(255,100,50,.7); }
.heat.hot .heat-ic { opacity: 1; animation: flame 1.1s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes flame { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.18) scaleX(.92); } }
/* écrans : Top Number / Popular Bets */
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; min-height: 0; }
.screen { border-radius: 9px; border: 1px solid #3a2c18; background: linear-gradient(180deg, #120d08, #080605); box-shadow: inset 0 0 0 1px rgba(212,175,55,.07), inset 0 0 26px rgba(0,0,0,.7), 0 1px 0 rgba(255,225,170,.08); padding: 6px 8px 7px; min-height: 104px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sc-title { font-size: 9.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid rgba(212,175,55,.22); padding-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.sc-body .row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.sc-body.lbl .row { grid-template-columns: minmax(0, 58px) minmax(0, 1fr) auto; }
.sc-body .row b { font-family: var(--f-print); font-size: 12px; font-weight: 900; color: var(--cream); text-align: center; line-height: 1.1; }
.sc-body.lbl .row b { font-family: var(--font); font-size: 9.5px; font-weight: 700; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-body .row i { display: block; height: 6px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.sc-body .row i span { display: block; height: 100%; border-radius: 3px; transform-origin: 0 50%; background: linear-gradient(90deg, #7d5f18, #c9a233); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.sc-body .row em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 10px; font-weight: 700; min-width: 16px; text-align: right; }
.sc-body .row.top b, .sc-body .row.top em { color: #fff; }
.sc-body .row.top i span { background: linear-gradient(90deg, #d4af37, #fff2b8); box-shadow: 0 0 6px rgba(255,220,120,.6); }
.empty-s { color: #6e5d44; font-size: 11px; text-align: center; margin: auto 0; }

/* ===== table : cadre en bois, feutre, tapis imprimé mis à l'échelle ===== */
.cr-main { display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 8px; align-items: stretch; }
.cr-table { position: relative; min-width: 0; border: 8px solid transparent; border-radius: 18px; padding: 5px 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  background:
    var(--noise) padding-box,
    repeating-linear-gradient(45deg, rgba(255,255,255,.022) 0 1px, rgba(255,255,255,0) 1px 3px) padding-box,
    radial-gradient(ellipse 64% 78% at 50% 30%, rgba(255,246,204,.14), rgba(255,246,204,0) 72%) padding-box,
    radial-gradient(ellipse at 50% 0%, #227347, #175a35 60%, #10432a) padding-box,
    linear-gradient(101deg, rgba(255,226,182,0) 20%, rgba(255,226,182,.34) 25.5%, rgba(255,226,182,0) 31%, rgba(255,226,182,0) 66%, rgba(255,226,182,.18) 70.5%, rgba(255,226,182,0) 75%) border-box,
    linear-gradient(180deg, #8a552d 0, #5a3419 7px, #3b2314 46%, #2a170c 100%) border-box;
  box-shadow: inset 0 0 0 1.5px rgba(222,186,84,.85), inset 0 0 0 3px rgba(0,0,0,.28), inset 0 0 44px rgba(0,0,0,.5), 0 0 0 1px #140a04, 0 18px 36px rgba(0,0,0,.5); }
.table-head { align-self: stretch; display: flex; align-items: center; gap: 8px; min-height: 38px; }
.limits-plaque { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; color: #4a3200; white-space: nowrap; background: linear-gradient(180deg, #f6e3a2, #cba53e 55%, #a67d1f); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -1px 0 rgba(90,60,0,.5), 0 2px 4px rgba(0,0,0,.5); }
.limits-plaque b { color: #1e1300; font-weight: 900; }
.limits-plaque i { width: 3px; height: 3px; border-radius: 50%; background: #5b4208; }
.mode-switch { flex: 0 0 auto; margin-left: auto; display: flex; background: rgba(0,0,0,.4); border: 1px solid rgba(243,234,208,.26); border-radius: 20px; padding: 2px; box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
.mode-btn { padding: 5px 13px; border-radius: 16px; font-size: 11px; font-weight: 800; color: var(--cream); letter-spacing: .3px; white-space: nowrap; transition: background .2s, color .2s; }
.mode-btn.active { background: linear-gradient(180deg, #f6df8c, #cda535); color: #2a1a00; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 3px rgba(0,0,0,.5); }
.layout-wrap { width: 100%; position: relative; overflow: hidden; padding: 3px 3px 4px; margin: auto 0; }
.layout-size { position: relative; margin: 0 auto; overflow: hidden; padding: 0; box-sizing: content-box; border: 2px solid transparent; margin-top: -2px; }
.layout-wrap.scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.layout-wrap.scroll::-webkit-scrollbar { display: none; }
.layout-wrap.more-r { -webkit-mask-image: linear-gradient(90deg, #000 88%, rgba(0,0,0,.25)); mask-image: linear-gradient(90deg, #000 88%, rgba(0,0,0,.25)); }
.layout-wrap.more-l { -webkit-mask-image: linear-gradient(270deg, #000 88%, rgba(0,0,0,.25)); mask-image: linear-gradient(270deg, #000 88%, rgba(0,0,0,.25)); }
.layout-wrap.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25), #000 12%, #000 88%, rgba(0,0,0,.25)); mask-image: linear-gradient(90deg, rgba(0,0,0,.25), #000 12%, #000 88%, rgba(0,0,0,.25)); }
.layout-wrap.locked .ctable { pointer-events: none; }
.ctable { position: relative; transform-origin: 0 0; user-select: none; -webkit-user-select: none; }
/* impression : lignes crème, cotes jaunes, COME rouge ; chaque case (.z) porte sa forme (.zs) et son reflet (.zsh) */
.print { position: absolute; left: 0; top: 0; overflow: visible; display: block; font-family: var(--f-print); }
.print text { text-anchor: middle; dominant-baseline: central; fill: #fbf5df; font-weight: 700; pointer-events: none; }
.print text.l { text-anchor: start; }
.z { cursor: pointer; transition: opacity .3s; }
.zs { fill: rgba(255,255,255,0); stroke: var(--line); stroke-width: 1.7; stroke-linejoin: round; transition: fill .14s; }
@media (hover: hover) { .z:hover .zs { fill: rgba(255,255,255,.17); stroke: #fff; } .z.wide:hover .zs { fill: rgba(214,40,64,.8); } .z.odds-bar:hover .zs { stroke: var(--yel); } }
.z:active .zs, .z.tap .zs, .z.wide.tap .zs { fill: rgba(255,236,170,.36); }
.z.dim { opacity: .5; }
.z.num .zs { fill: rgba(0,0,0,.15); }
.z.num.point .zs { fill: rgba(255,255,255,.17); stroke: #fff; stroke-width: 2.8; }
.z.pwin .zs { fill: rgba(255,255,255,.055); } .z.plose .zs { fill: rgba(0,0,0,.22); }
.z.come .zs { fill: rgba(0,0,0,.07); } .z.field .zs { fill: rgba(255,255,255,.04); }
.z.pass .zs { fill: rgba(255,255,255,.07); } .z.dpass .zs, .z.dcome .zs { fill: rgba(0,0,0,.22); }
.z.odds-bar .zs { stroke-dasharray: 5 4; stroke: rgba(255,210,74,.8); fill: rgba(255,210,74,.07); }
.z.prop .zs { fill: rgba(0,0,0,.17); }
.z.prop.wide .zs { fill: rgba(168,20,42,.55); }
.z.sub .zs { fill: rgba(255,210,74,.32); stroke: var(--yel); stroke-width: 1.3; }
.z.sub.off { display: none; }
.z.won .zs, .z.prop.wide.won .zs { fill: rgba(255,214,90,.36); stroke: #ffe58a; stroke-width: 2.6; }
.zsh { pointer-events: none; }
.zsh-bar { fill: url(#zshG); opacity: 0; transform-box: fill-box; transform-origin: center; transform: skewX(-18deg); }
.z.won .zsh-bar { opacity: 1; animation: zSheen 1.3s ease-in-out .1s 3 both; }
@keyframes zSheen { 0% { transform: translateX(0) skewX(-18deg); } 70%, 100% { transform: translateX(var(--dx)) skewX(-18deg); } }
.print .rail path { fill: rgba(0,0,0,.16); stroke: rgba(243,234,208,.5); stroke-width: 1.2; }
.print .rail .tick { fill: none; stroke: rgba(243,234,208,.5); stroke-width: 1.4; stroke-linecap: round; }
.print .p-dock { fill: rgba(0,0,0,.25); stroke: rgba(243,234,208,.6); stroke-width: 1.2; stroke-dasharray: 3 3; pointer-events: none; }
.print .p-num { font-size: 42px; font-weight: 900; letter-spacing: 1px; stroke: rgba(0,0,0,.3); stroke-width: 4px; paint-order: stroke; }
.print .p-num.word { font-size: 29px; letter-spacing: 2px; }
.ctable.easy .p-num, .ctable.easyWide .p-num { font-size: 36px; } .ctable.easy .p-num.word, .ctable.easyWide .p-num.word { font-size: 24px; letter-spacing: 1px; }
.ctable.classic.touch .p-num { font-size: 38px; } .ctable.classic.touch .p-num.word { font-size: 26px; letter-spacing: 1px; }
.print .p-tiny { font-family: var(--font); font-size: 8px; font-weight: 800; letter-spacing: 1.3px; fill: rgba(243,234,208,.85); }
.print .p-tiny.y { fill: var(--yel); font-size: 7px; letter-spacing: 1px; }
.print .p-pay { font-size: 12px; fill: var(--yel); letter-spacing: .3px; }
.print .p-pay.sm { font-size: 9.5px; }
.print .p-sub { font-family: var(--font); font-size: 7.5px; font-weight: 900; letter-spacing: .8px; fill: #2a1a00; }
.print .p-come { font-size: 40px; font-weight: 900; letter-spacing: 18px; fill: var(--p-red); stroke: #f8eed2; stroke-width: 3px; paint-order: stroke; }
.print .p-field { font-size: 22px; font-weight: 900; letter-spacing: 10px; fill: var(--yel); stroke: rgba(0,0,0,.35); stroke-width: 3px; paint-order: stroke; }
.print .p-fnum { font-size: 18px; font-weight: 900; } .print .p-fnum.dbl { font-size: 16px; fill: #fff; }
.print .p-ring { fill: rgba(205,26,50,.9); stroke: #f8eed2; stroke-width: 1.4; pointer-events: none; } .print .p-ring.y { fill: rgba(0,0,0,.3); stroke: var(--yel); }
.print .p-dot { fill: rgba(243,234,208,.55); }
.print .p-pass { font-size: 24px; font-weight: 900; letter-spacing: 8px; stroke: rgba(0,0,0,.3); stroke-width: 3px; paint-order: stroke; } .print .p-pass.sm { font-size: 13px; letter-spacing: 3px; stroke-width: 2px; }
.print .p-dont { font-size: 13.5px; letter-spacing: 2.2px; } .print .p-dont.sm { font-size: 9.5px; letter-spacing: 1.4px; }
.print .p-odds { font-size: 12px; letter-spacing: 2px; fill: var(--yel); }
.print .p-red { font-size: 14.5px; font-weight: 900; letter-spacing: 2.2px; } .print .p-red.sm { font-size: 12.5px; letter-spacing: 1.4px; }
.print .p-ce { font-size: 12px; font-weight: 900; } .print .p-ce.y { fill: var(--yel); }
.print .p-ban path { fill: rgba(0,0,0,.45); stroke: var(--line); stroke-width: 1.7; }
.print .p-bantxt { font-family: var(--font); font-size: 8.5px; font-weight: 800; letter-spacing: 2.6px; fill: var(--yel); }
.print .pdie rect { fill: url(#pdieG); stroke: rgba(255,224,228,.8); stroke-width: .9; } .print .pdie circle { fill: #fff8ee; }
.print .pdie { pointer-events: none; }
/* palet : disque à deux faces qui se retourne en glissant */
.puck { position: absolute; left: 0; top: 0; width: var(--ps); height: var(--ps); margin: calc(var(--ps) / -2) 0 0 calc(var(--ps) / -2); z-index: 30; pointer-events: none; transition: transform .8s cubic-bezier(.45,0,.2,1); }
.puck.still, .puck.still .puck-disc { transition: none; }
.puck-hop { position: absolute; inset: 0; display: block; perspective: 320px; }
.puck-hop.go { animation: puckHop .8s cubic-bezier(.3,0,.3,1); }
@keyframes puckHop { 0% { transform: scale(1); } 45% { transform: scale(1.55) translateY(-7px); } 82% { transform: scale(.96); } 100% { transform: scale(1); } }
.puck-disc { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.4,0,.2,1); }
.puck.on .puck-disc { transform: rotateY(180deg); }
.puck-disc b { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: calc(var(--ps) * .31); font-weight: 900; letter-spacing: .5px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.pk-off { background: radial-gradient(circle at 35% 28%, #5a5a5a, #151515 62%); color: #fff; box-shadow: inset 0 0 0 2px #151515, inset 0 0 0 3.5px rgba(255,255,255,.78), 0 2px 0 #000, 0 5px 8px rgba(0,0,0,.6); }
.pk-on { transform: rotateY(180deg); background: radial-gradient(circle at 35% 28%, #fff, #dcd6c6 70%); color: #111; box-shadow: inset 0 0 0 2px #f4f0e4, inset 0 0 0 3.5px #111, 0 2px 0 #8d887a, 0 5px 8px rgba(0,0,0,.6), 0 0 14px rgba(255,255,255,.5); }
/* jetons : vraies piles (un disque par jeton, total sur celui du dessus) */
.chips-layer { position: absolute; inset: 0; pointer-events: none; z-index: 40; }
.dk.c1, .chip-btn.c1 { --c: #ecebe6; --s: #3b6fd6; --d: #9b9a94; } .dk.c5, .chip-btn.c5 { --c: #d0342f; --s: #fff; --d: #7d1512; } .dk.c25, .chip-btn.c25 { --c: #1f9547; --s: #fff; --d: #0c5225; }
.dk.c100, .chip-btn.c100 { --c: #26262b; --s: #e8d8a0; --d: #000; } .dk.c500, .chip-btn.c500 { --c: #7b2fb0; --s: #ffe9a8; --d: #40125f; }
.stk { position: absolute; width: 0; height: 0; --cs: 26px; --top: 0; }
.stk .dk { position: absolute; left: calc(var(--cs) / -2); top: calc(var(--cs) / -2); width: var(--cs); height: var(--cs); border-radius: 50%; transform: translateY(calc(var(--n) * -3px));
  background: radial-gradient(circle, var(--c) 0 43%, rgba(0,0,0,.3) 44% 48%, rgba(0,0,0,0) 49%), repeating-conic-gradient(from -12deg, var(--s) 0 24deg, var(--c) 24deg 60deg);
  box-shadow: 0 2px 0 var(--d), 0 3px 3px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.3), inset 0 1px 1px rgba(255,255,255,.45); }
.stk .dk.cb { --s: rgba(255,255,255,.9); --d: rgba(0,0,0,.65); }
.stk b { position: absolute; left: calc(var(--cs) / -2); top: calc(var(--cs) / -2); width: var(--cs); height: var(--cs); display: flex; align-items: center; justify-content: center; transform: translateY(calc(var(--top) * -3px)); font-size: 9.5px; font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.75); letter-spacing: -.2px; }
.stk.lite b { color: #181818; text-shadow: none; }
.stk .dk.new { animation: chipDrop .36s cubic-bezier(.3,1.2,.5,1) both; animation-delay: calc(var(--k) * 45ms); }
@keyframes chipDrop { 0% { opacity: 0; transform: translateY(calc(var(--n) * -3px - 28px)) scale(1.32); } 52% { opacity: 1; transform: translateY(calc(var(--n) * -3px + 1.5px)) scale(.95); } 76% { transform: translateY(calc(var(--n) * -3px - 3px)) scale(1.03); } 100% { opacity: 1; transform: translateY(calc(var(--n) * -3px)) scale(1); } }
.stk.inplay::before { content: ""; position: absolute; left: calc(var(--cs) / -2 - 2.5px); top: calc(var(--cs) / -2 - .5px); width: calc(var(--cs) + 5px); height: calc(var(--cs) + 5px); border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255,214,90,.85), 0 0 8px rgba(255,214,90,.55); }
.stk.other { --cs: 22px; } .stk.other b { font-size: 8.5px; }
.stk.other::after { content: ""; position: absolute; left: -4px; top: calc(var(--cs) / 2 + 1px); width: 8px; height: 4px; border-radius: 2px; background: var(--c); box-shadow: 0 1px 2px rgba(0,0,0,.6); }
.stk.small { --cs: 20px; } .stk.small b { font-size: 8px; }
.stk.bot { --cs: 15px; }
.stk.pay { --cs: 24px; }
.stk.won { animation: stkWon .75s ease-in-out 3; }
.stk.won::before { content: ""; position: absolute; left: calc(var(--cs) / -2 - 3px); top: calc(var(--cs) / -2 - 1px); width: calc(var(--cs) + 6px); height: calc(var(--cs) + 6px); border-radius: 50%; box-shadow: 0 0 0 2px #ffe58a, 0 0 14px 3px rgba(255,214,90,.9); }
@keyframes stkWon { 0%, 100% { transform: none; } 50% { transform: translateY(-4px) scale(1.16); } }
.stk.out { opacity: 0; transform: scale(.55); transition: opacity .15s, transform .15s; }
.stk.collect { animation: stkCollect .5s cubic-bezier(.5,0,.85,.45) forwards; }
.stk.bot.collect { animation-name: stkCollectUp; }
@keyframes stkCollect { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(64px) scale(.72); } }
@keyframes stkCollectUp { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-44px) scale(.72); } }
.rake { position: absolute; z-index: 300; filter: drop-shadow(2px 4px 2px rgba(0,0,0,.45)); }
.winlabel { position: absolute; transform: translate(-50%, 0); color: #1b1200; background: linear-gradient(180deg, #ffe993, #e0ae2e); border: 1px solid #fff3c0; font-weight: 900; font-size: 12px; padding: 1px 8px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,.55); z-index: 400; animation: winUp 1.1s cubic-bezier(.2,1.2,.4,1) both; white-space: nowrap; }
@keyframes winUp { 0% { opacity: 0; transform: translate(-50%, 14px) scale(.5); } 30% { opacity: 1; transform: translate(-50%, -5px) scale(1.12); } 100% { opacity: 1; transform: translate(-50%, -9px) scale(1); } }

/* ===== My Numbers : ce que chaque total me rapporterait au prochain lancer ===== */
.cr-numbers { border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, #1d140d, #100b07); padding: 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(212,175,55,.06), 0 10px 26px rgba(0,0,0,.4); }
.mn-head { font-size: 10.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); text-align: center; padding-bottom: 6px; border-bottom: 1px solid rgba(212,175,55,.22); }
.mn-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 3px; flex: 1; }
.mn { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 8px; align-items: center; padding: 2px 9px 5px 4px; border-radius: 8px; background: rgba(255,255,255,.03); border: 1px solid rgba(243,234,208,.09); color: var(--cream); text-align: left; overflow: hidden; min-height: 30px; transition: border-color .15s, background .15s; }
.mn:hover { border-color: rgba(212,175,55,.7); background: rgba(212,175,55,.09); }
.mn b { grid-row: 1 / span 2; font-family: var(--f-print); font-size: 19px; font-weight: 900; text-align: center; color: #b9aa88; line-height: 1; transition: color .2s; }
.mn.live b { color: #fff; }
.mn[data-t="7"] b { color: #ff8d9a; }
.mn-ways { grid-column: 2; grid-row: 2; display: flex; gap: 2px; }
.mn-ways i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.1); }
.mn-ways i.on { background: rgba(212,175,55,.8); }
.mn .v { grid-column: 2; grid-row: 1; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; min-height: 16px; color: var(--muted); justify-self: end; }
.mn .v.pos { color: #6cf59a; } .mn .v.neg { color: #ff8b98; }
.mn .h { grid-column: 2; grid-row: 2; justify-self: end; font-size: 9px; color: var(--gold); white-space: nowrap; }
.mn .h:empty { display: none; }
.mn-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; }
.mn-bar u { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); transition: transform .45s cubic-bezier(.2,.8,.2,1); background: transparent; }
.mn-bar u.pos { background: linear-gradient(90deg, #1f9c47, #6cf59a); } .mn-bar u.neg { background: linear-gradient(90deg, #a5142c, #ff8b98); }
.mn.hit { border-color: var(--gold); background: rgba(212,175,55,.22); box-shadow: 0 0 12px rgba(212,175,55,.5); }
.mn.hit b { color: #fff; animation: pop .4s cubic-bezier(.3,1.5,.5,1); }

/* ===== bande des joueurs (table solo) ===== */
.bots-band { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 0 0; }
.bots-band::-webkit-scrollbar { display: none; }
.bhead { display: none; }
.bseat { position: relative; flex: 0 0 auto; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 3px 12px 3px 4px; border-radius: 999px; background: linear-gradient(180deg, rgba(4,18,11,.55), rgba(4,18,11,.35)); border: 1px solid rgba(233,225,184,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); animation: seatIn .35s ease-out; transition: border-color .3s, background .3s; }
@keyframes seatIn { from { opacity: 0; transform: translateY(6px) scale(.92); } to { opacity: 1; transform: none; } }
.bav { display: block; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px var(--c), 0 2px 6px rgba(0,0,0,.5); transition: opacity .3s, filter .3s; }
.binfo { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.bname { font-size: 12px; font-weight: 800; color: #fff; }
.bbet { font-size: 11px; font-weight: 700; color: var(--cream); white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .85; }
.bbet::before { content: attr(data-l) " "; font-weight: 600; opacity: .75; }
.blast { min-width: 30px; text-align: right; font-size: 12px; font-weight: 800; color: var(--cream); white-space: nowrap; font-variant-numeric: tabular-nums; }
.blast.pos { color: #6cf59a; } .blast.neg { color: #ff8b98; }
.bseat.win { border-color: var(--gold); background: rgba(212,175,55,.2); }
.bseat.win .blast, .bseat.lose .blast { animation: pop .35s ease-out; }
.bseat.out .bav { opacity: .5; filter: grayscale(.7); }
.bsay { position: absolute; left: 20px; top: -5px; display: none; align-items: center; gap: 4px; background: #fffaf0; color: #24180c; font-size: 11px; font-weight: 800; line-height: 1; padding: 3px 4px; border-radius: 9px; box-shadow: 0 3px 10px rgba(0,0,0,.45); white-space: nowrap; z-index: 2; pointer-events: none; }
.bsay.on { display: flex; animation: pop .3s ease-out; }
.bsay .ic { width: 10px; height: 10px; flex: 0 0 auto; }
.bsay .ic.up { background: #e0a51a; clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); }
.bsay .ic.down { background: #d03048; clip-path: polygon(0 34%, 13% 20%, 50% 60%, 87% 20%, 100% 34%, 50% 88%); }
.bsay span { display: none; }
@media (min-width: 1100px) { .bsay span { display: inline; } .bsay { padding: 3px 7px; } }
@media (max-width: 1180px) { .bbet::before { content: none; } .bseat { padding-right: 10px; column-gap: 6px; } }

/* ===== commandes : râtelier de jetons, boutons, total ===== */
.controls { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 6px 14px; border: 1px solid var(--border); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,225,170,.07), rgba(255,225,170,0) 30%), var(--leather);
  box-shadow: inset 0 1px 0 rgba(255,235,200,.14), inset 0 0 0 1px rgba(212,175,55,.07), 0 10px 26px rgba(0,0,0,.4); }
.chip-tray { display: flex; gap: 9px; padding: 8px 14px 6px; border-radius: 32px; background: linear-gradient(180deg, #080504, #1a110a); box-shadow: inset 0 2px 5px rgba(0,0,0,.85), 0 1px 0 rgba(255,220,170,.14); transition: opacity .25s; }
.chip-tray.dim { opacity: .45; pointer-events: none; }
.chip-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle, var(--c) 0 47%, rgba(0,0,0,.32) 48% 51%, rgba(0,0,0,0) 52%), repeating-conic-gradient(from -11deg, var(--s) 0 22deg, var(--c) 22deg 60deg);
  box-shadow: 0 3px 0 var(--d), 0 7px 10px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.35), inset 0 2px 2px rgba(255,255,255,.42); transition: transform .18s cubic-bezier(.3,1.5,.5,1); }
.chip-btn span { position: absolute; inset: 20%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 900; color: #fff; border: 1px dashed rgba(255,255,255,.5); text-shadow: 0 1px 1px rgba(0,0,0,.65); background: radial-gradient(circle at 34% 24%, rgba(255,255,255,.3), rgba(255,255,255,0) 62%); }
.chip-btn.c1 span { color: #1c1c1c; text-shadow: none; border-color: rgba(0,0,0,.28); }
.chip-btn.c100 span { color: #f1dfa2; } .chip-btn.c500 span { font-size: 11.5px; }
.chip-btn:hover { transform: translateY(-3px); }
.chip-btn.active { transform: translateY(-8px) scale(1.08); }
.chip-btn.active::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 0 12px rgba(255,214,90,.6); }
.ctrl-group { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; justify-content: center; }
.ctl { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px; background: linear-gradient(180deg, #33231a, #1b120c); border: 1px solid var(--border-light); color: #f6ecd6; font-weight: 800; font-size: 13px; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,235,200,.14), 0 2px 0 rgba(0,0,0,.45), 0 4px 8px rgba(0,0,0,.3); transition: border-color .15s, transform .08s, opacity .2s; }
.ctl svg { flex: 0 0 auto; opacity: .85; }
.ctl:hover { border-color: rgba(212,175,55,.7); }
.ctl:active { transform: translateY(1px); }
.ctl:disabled { opacity: .38; pointer-events: none; }
.ctl.primary { position: relative; min-height: 44px; padding: 0 22px 0 16px; gap: 9px; font-size: 15px; font-weight: 900; letter-spacing: 1.5px; color: #2a1a00; border-color: #f3d977; background: linear-gradient(180deg, #fbe58c, #dcb83d 52%, #b68b1c); text-shadow: 0 1px 0 rgba(255,255,255,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(122,82,0,.4), 0 2px 0 #6d4f08, 0 8px 18px rgba(212,175,55,.3); }
.ctl.primary svg { color: #8f0b21; opacity: 1; }
.ctl.primary::after { content: ""; position: absolute; inset: -4px; border-radius: 13px; border: 2px solid rgba(255,220,110,.9); opacity: 0; pointer-events: none; }
.ctl.primary.ready::after { animation: ready 1.5s ease-out infinite; }
@keyframes ready { 0% { opacity: .9; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.1, 1.26); } }
.my-bets { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; min-width: 96px; max-width: 330px; }
.mb-total { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 12px; border-radius: 8px; background: linear-gradient(180deg, #080504, #17100a); box-shadow: inset 0 2px 4px rgba(0,0,0,.8), 0 1px 0 rgba(255,220,170,.14); text-transform: uppercase; letter-spacing: 1.2px; font-size: 9.5px; font-weight: 800; }
.mb-total b { color: #ffe08a; font-size: 16px; font-weight: 900; letter-spacing: 0; font-variant-numeric: tabular-nums; text-shadow: 0 0 10px rgba(255,214,90,.35); }
#myBets { max-height: 42px; overflow: hidden; min-width: 0; line-height: 1.1; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
#myBets:empty { display: none; }
.my-bets .mybet { display: inline-block; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 1px 6px; margin: 1px; font-size: 11px; }
.my-bets .mybet.lk { border-color: rgba(212,175,55,.5); }
.my-bets .mybet b { font-size: 11px; color: #fff; }
.toasts { position: fixed; bottom: 80px; left: 0; right: 0; z-index: 30; }
.dist { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; align-items: end; height: 110px; }
.dist div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; }
.dist i { display: block; width: 70%; background: linear-gradient(180deg, #f1cf5f, #b98f1f); border-radius: 3px 3px 0 0; min-height: 2px; }
.dist b { font-size: 11px; color: var(--muted); }
.kv .v.big { font-size: 18px; }
.modal .hr { flex-direction: row; gap: 5px; padding: 3px 6px 3px 4px; }

/* ===== tablette ===== */
@media (max-width: 1000px) {
  .cr-top { grid-template-columns: minmax(0, 1fr) 250px; }
  .scene-head { position: static; justify-content: space-between; height: auto; min-height: 22px; margin-bottom: 4px; }
  .cr-scene { --dw: 190px; --scene-h: 200px; }
  .cr-main { grid-template-columns: minmax(0, 1fr); }
  .cr-numbers { order: 2; }
  .mn-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: auto; }
  .mn { grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center; padding: 4px 2px 6px; text-align: center; min-height: 44px; }
  .mn b { grid-row: 1; font-size: 17px; } .mn .v { grid-column: 1; grid-row: 2; font-size: 12px; justify-self: center; min-height: 14px; } .mn-ways { grid-column: 1; grid-row: 3; } .mn .h { grid-column: 1; grid-row: 3; justify-self: center; display: none; }
  .limits-plaque { display: none; }
}
/* ===== téléphone en portrait ===== */
@media (max-width: 760px) {
  .cr { padding: 6px; gap: 6px; }
  .cr-top { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px 8px 10px; }
  .cr-scene { --scene-h: 168px; --dw: 146px; --tub-top: 24px; --rail: 11px; --front: 22px; --wh: 17px; --ww: 15px; --ds: 34px; }
  .tub { border-radius: 15px 15px 8px 8px; }
  .tub::before { inset: 6px 6px 0; border-radius: 10px 10px 3px 3px; }
  .tub::after { inset: 2.5px 2.5px 0; border-radius: 13px 13px 0 0; }
  .wall { background-size: 10px 10px; }
  .dealer-say { left: calc(var(--dw) * .86); top: 0; max-width: calc(100% - var(--dw) * .86 - 2px); font-size: 11px; padding: 5px 9px; }
  .floor-print { display: none; }
  .timer-bar { width: 56%; margin-left: -28%; bottom: 2px; }
  .an-mine { font-size: 11px; padding: 2px 9px; }
  .strip-title { display: none; }
  .rolls-strip { min-height: 42px; }
  .cr-side { gap: 6px; }
  .screen { min-height: 0; padding: 5px 7px 6px; }
  .sc-body .row:nth-child(n+4) { display: none; }
  .empty-s { margin: 8px 0; }
  .cr-table { padding: 4px 6px 8px; border-width: 5px; border-radius: 14px; }
  .table-head { min-height: 34px; gap: 6px; }
  .bots-band { gap: 2px; justify-content: flex-start; padding-top: 2px; }
  .bseat { grid-template-columns: auto; justify-items: center; row-gap: 1px; min-width: 44px; padding: 2px 3px 1px; border-radius: 10px; border-color: transparent; background: none; box-shadow: none; }
  .bseat.win { background: rgba(212,175,55,.18); }
  .bav { width: 24px; height: 24px; }
  .bname { display: none; }
  .bbet, .blast { min-width: 0; text-align: center; font-size: 10px; line-height: 12px; }
  .bseat[data-show="last"] .binfo, .bseat[data-show="bet"] .blast { display: none; }
  .bsay { left: 50%; top: 0; margin-left: 4px; }
  .mode-btn { padding: 0 11px; min-height: 36px; }
  .controls { gap: 8px 10px; padding: 6px 6px 7px; position: sticky; bottom: 6px; z-index: 50; box-shadow: inset 0 1px 0 rgba(255,235,200,.14), 0 -6px 18px rgba(0,0,0,.55), 0 10px 26px rgba(0,0,0,.4); }
  .chip-tray { gap: 8px; padding: 8px 12px 5px; }
  .chip-btn { width: 40px; height: 40px; } .chip-btn span { font-size: 11.5px; } .chip-btn.c500 span { font-size: 10.5px; }
  .ctrl-group { gap: 5px; flex-wrap: nowrap; width: 100%; }
  .ctl { flex: 1 1 0; min-width: 0; padding: 0 4px; font-size: 12px; gap: 4px; }
  .ctl span { overflow: hidden; text-overflow: ellipsis; }
  .ctl svg { display: none; }
  .ctl.primary { flex: 2.15 1 0; padding: 0 4px; font-size: 14px; letter-spacing: 1px; min-height: 42px; gap: 6px; }
  .ctl.primary span { overflow: visible; }
  .ctl.primary svg { display: block; width: 18px; }
  .my-bets { display: none; }
  .mn-grid { gap: 3px; }
  .mn { padding: 3px 1px 6px; min-height: 42px; }
  .mn b { font-size: 15px; } .mn .v { font-size: 11px; } .mn-ways i { width: 4px; height: 4px; }
  .toasts { bottom: 122px; }
}
@media (max-width: 400px) { .ctl { font-size: 11.5px; } .mn-ways { display: none; } }

/* ===== téléphone en paysage : la scène à gauche, le tapis à droite, les commandes 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; }
  .cr { flex: none; display: grid; grid-template-columns: 264px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 4px; padding: 4px; max-width: none; height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h)); }
  .cr-top { grid-column: 1; grid-row: 1 / span 2; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 6px; align-content: start; overflow-y: auto; overflow-x: hidden; border-radius: 12px; min-height: 0; scrollbar-width: none; }
  .scene-head { position: static; flex-direction: column; align-items: stretch; gap: 3px; height: auto; margin-bottom: 4px; }
  .point-status { justify-content: center; font-size: 10px; }
  .table-status { text-align: center; font-size: 10px; min-height: 13px; }
  .cr-scene { --scene-h: 162px; --dw: 116px; --tub-top: 34px; --rail: 9px; --front: 19px; --wh: 14px; --ww: 12px; --ds: 30px; --tub-l: calc(var(--dw) * .4); }
  .tub { border-radius: 12px 12px 7px 7px; }
  .tub::before { inset: 5px 5px 0; border-radius: 8px 8px 2px 2px; }
  .tub::after { display: none; }
  .wall { background-size: 9px 9px; }
  .dealer-say { left: calc(var(--dw) * .78); top: -2px; max-width: calc(100% - var(--dw) * .78); font-size: 10px; padding: 4px 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .floor-print { display: none; }
  .timer-bar { width: 62%; margin-left: -31%; bottom: 2px; height: 8px; }
  .timer-bar b { font-size: 10px; line-height: 11px; }
  /* la piste est trop étroite pour porter le lettrage : l'annonce prend la place de la bulle, au-dessus de la cuvette */
  .announce { left: 0; top: -3px; width: 100%; height: calc(var(--tub-top) + 16px); --as: 17px; flex-direction: row; flex-wrap: wrap; align-content: center; gap: 1px 8px; }
  .announce.easy { --as: 15px; }
  .an-rays { left: 0; right: 0; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(180deg, rgba(10,6,3,.92), rgba(10,6,3,.78)); box-shadow: 0 4px 12px rgba(0,0,0,.5), inset 0 0 0 1px rgba(212,175,55,.22); }
  .an-kick { font-size: 8px; letter-spacing: .22em; margin-right: 0; }
  .an-big { flex-wrap: nowrap; }
  .an-sub { font-size: 8px; letter-spacing: .2em; padding: 1px 6px 1px calc(6px + .2em); margin-top: 0; }
  .an-mine { position: absolute; left: 50%; top: calc(var(--ft) + var(--fh) + 3px); margin: 0 0 0 -90px; width: 180px; text-align: center; font-size: 10px; padding: 2px 6px; background: none; text-shadow: 0 1px 2px #000; z-index: 2; }
  .cr-scene[data-ev] .dealer-say { visibility: hidden; }
  .cr-side { gap: 5px; }
  .strip-title { display: none; }
  .rolls-strip { min-height: 40px; }
  .screens { display: none; }
  .heat em { display: none; }
  .cr-main { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; gap: 4px; scrollbar-width: none; }
  .cr-table { padding: 2px 4px 4px; border-width: 4px; border-radius: 12px; gap: 2px; }
  .table-head { min-height: 38px; gap: 6px; }
  .limits-plaque { display: none; }
  .bots-band { gap: 2px; justify-content: flex-start; padding-top: 2px; }
  .bseat { grid-template-columns: auto auto; column-gap: 4px; min-width: 0; padding: 1px 6px 1px 2px; border-radius: 12px; border-color: transparent; background: none; box-shadow: none; }
  .bseat.win { background: rgba(212,175,55,.18); }
  .bav { width: 22px; height: 22px; }
  .bname { display: none; }
  .bbet, .blast { min-width: 0; font-size: 10px; }
  .bbet::before { content: none; }
  .bseat[data-show="last"] .binfo, .bseat[data-show="bet"] .blast { display: none; }
  .bsay { left: 14px; top: -2px; }
  .mode-btn { padding: 0 10px; min-height: 36px; font-size: 10px; }
  .cr-numbers { order: 2; padding: 5px; }
  .mn-head { display: none; }
  .mn-grid { grid-template-columns: repeat(11, 1fr); gap: 2px; grid-auto-rows: auto; }
  .mn { grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; padding: 3px 0 5px; min-height: 38px; text-align: center; }
  .mn b { grid-row: 1; font-size: 14px; } .mn .v { grid-column: 1; grid-row: 2; font-size: 10px; justify-self: center; min-height: 12px; } .mn-ways, .mn .h { display: none; }
  .controls { grid-column: 2; grid-row: 2; flex-wrap: nowrap; gap: 8px; padding: 3px 8px; border-radius: 12px; justify-content: space-between; position: static; }
  .chip-tray { gap: 6px; padding: 6px 10px 4px; }
  .chip-btn { width: 36px; height: 36px; } .chip-btn span { font-size: 10.5px; } .chip-btn.c500 span { font-size: 9.5px; }
  .chip-btn.active { transform: translateY(-5px) scale(1.06); }
  .ctrl-group { gap: 5px; flex-wrap: nowrap; }
  .ctl { min-height: 36px; min-width: 38px; padding: 0 9px; font-size: 11px; border-radius: 9px; }
  .ctl:not(.primary) span { display: none; }
  .ctl.primary { min-height: 38px; padding: 0 14px 0 11px; font-size: 13px; gap: 7px; }
  .ctl.primary svg { width: 18px; }
  .my-bets { display: none; }
  .toasts { bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .dealer-fig, .tub-front::after, .heat.hot .heat-ic, .ctl.primary.ready::after, .cr-scene.late .tub-shade::after, .table-status.late { animation: none; }
  .dealer-art, .dealer-art.throw, .an-big i, .an-kick, .an-sub, .an-rays, .total-badge, .die.rest .die-lift, .stk .dk.new, .stk.won, .hr.new, .puck-hop.go, .z.won .zsh-bar, .timer-bar b.beat, .winlabel, .dealer-say.pop, .bseat { animation-duration: .01s !important; animation-delay: 0s !important; }
  .puck, .puck-disc, .sc-body .row i span, .mn-bar u, .chip-btn { transition: none; }
}
/* même chose quand le joueur a coupé « Animation » dans son profil (la classe est posée par ui.js) */
.cr.calm .dealer-fig, .cr.calm .tub-front::after, .cr.calm .heat.hot .heat-ic, .cr.calm .ctl.primary.ready::after, .cr.calm .cr-scene.late .tub-shade::after, .cr.calm .table-status.late { animation: none; }
.cr.calm .dealer-art, .cr.calm .dealer-art.throw, .cr.calm .an-big i, .cr.calm .an-kick, .cr.calm .an-sub, .cr.calm .an-rays, .cr.calm .total-badge, .cr.calm .die.rest .die-lift, .cr.calm .stk .dk.new, .cr.calm .stk.won, .cr.calm .hr.new, .cr.calm .puck-hop.go, .cr.calm .z.won .zsh-bar, .cr.calm .timer-bar b.beat, .cr.calm .winlabel, .cr.calm .dealer-say.pop, .cr.calm .bseat { animation-duration: .01s !important; animation-delay: 0s !important; }
.cr.calm .puck, .cr.calm .puck-disc, .cr.calm .sc-body .row i span, .cr.calm .mn-bar u, .cr.calm .chip-btn { transition: none; }
