/* Roulette : salon vert et or. La roue en volume (cuvette en bois verni, cylindre, laiton) posée devant la croupière,
   tapis sérigraphié en SVG sur feutre à grain, rail en cuir surpiqué, piste des annonces en ovale, piles de jetons.
   Tout bouge en transform / opacity ; la roue ne redessine rien au repos (rotation confiée au compositeur). */
:root {
  --bg: #050c08; --panel: #0e1a13; --panel-2: #0a140e; --panel-3: #08110c; --border: #1f3a2a; --border-light: #2f5a40;
  --muted: #a9c6b5; --accent: #d4af37; --gold: #d4af37; --cream: #f3ead0; --line: rgba(243,234,208,.9); --yel: #ffd24a;
  --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, #2c2118, #18110b 60%, #100a06);
  --ww: clamp(300px, min(33vw, calc((100vh - 326px) / 1.21)), 580px);
}
/* Fond : salle feutrée. Vignette sombre, lueur d'un lustre au plafond, lumières floues lointaines dans les marges. Statique. */
body { font-family: var(--font);
  --page-bg:
    radial-gradient(ellipse 125% 96% at 50% 40%, rgba(0,0,0,0) 50%, rgba(0,0,0,.66) 100%),
    radial-gradient(ellipse 44% 26% at 50% -3%, rgba(255,214,150,.2), rgba(255,214,150,0) 72%),
    radial-gradient(circle at 2.5% 17%, rgba(255,186,104,0.15) 0, rgba(255,186,104,0.108) 17px, rgba(255,186,104,0) 26px),
    radial-gradient(circle at 6.5% 31%, rgba(255,216,146,0.12) 0, rgba(255,216,146,0.0864) 10px, rgba(255,216,146,0) 19px),
    radial-gradient(circle at 1.5% 46%, rgba(255,236,206,0.07) 0, rgba(255,236,206,0.0504) 24px, rgba(255,236,206,0) 33px),
    radial-gradient(circle at 5% 63%, rgba(255,186,104,0.13) 0, rgba(255,186,104,0.0936) 13px, rgba(255,186,104,0) 22px),
    radial-gradient(circle at 3% 82%, rgba(255,128,96,0.07) 0, rgba(255,128,96,0.0504) 20px, rgba(255,128,96,0) 29px),
    radial-gradient(circle at 97.5% 14%, rgba(255,216,146,0.14) 0, rgba(255,216,146,0.101) 14px, rgba(255,216,146,0) 23px),
    radial-gradient(circle at 94% 27%, rgba(255,186,104,0.08) 0, rgba(255,186,104,0.0576) 22px, rgba(255,186,104,0) 31px),
    radial-gradient(circle at 98.5% 43%, rgba(255,236,206,0.12) 0, rgba(255,236,206,0.0864) 10px, rgba(255,236,206,0) 19px),
    radial-gradient(circle at 95.5% 58%, rgba(255,186,104,0.12) 0, rgba(255,186,104,0.0864) 17px, rgba(255,186,104,0) 26px),
    radial-gradient(circle at 97% 79%, rgba(255,128,96,0.08) 0, rgba(255,128,96,0.0576) 12px, rgba(255,128,96,0) 21px),
    radial-gradient(120% 80% at 50% 0%, #10301e, #050c08 60%); }
.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; }

/* ===== ordinateur : la scène à gauche (croupière, roue, annonce, derniers numéros), la table à droite ===== */
.rl { flex: 1; display: grid; grid-template-columns: calc(var(--ww) + 26px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; grid-template-areas: "stage table" "stage stats" "controls controls"; gap: 8px; padding: 8px; max-width: 1720px; width: 100%; margin: 0 auto; position: relative; }

.rl-stage { grid-area: stage; position: relative; min-width: 0; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 16px; padding: 10px 12px 12px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 46% at 50% 0%, rgba(255,226,165,.16), rgba(255,226,165,0) 72%),
    radial-gradient(circle at 8% 14%, rgba(255,186,104,.1) 0, rgba(255,186,104,.06) 12px, rgba(255,186,104,0) 22px),
    radial-gradient(circle at 90% 9%, rgba(255,216,146,.09) 0, rgba(255,216,146,.05) 9px, rgba(255,216,146,0) 18px),
    radial-gradient(circle at 80% 24%, rgba(255,186,104,.06) 0, rgba(255,186,104,.04) 15px, rgba(255,186,104,0) 26px),
    linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.4) 100%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 1px, rgba(255,235,200,.02) 1px 2px, rgba(0,0,0,0) 2px 74px),
    linear-gradient(180deg, #183a27, #0b1d13);
  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); }

/* --- la scène : la croupière se tient derrière sa roue, posée sur un plateau de bois --- */
.rl-scene { position: relative; flex: 0 0 auto; width: var(--ww); height: calc(var(--ww) * 1.21); margin: auto; --peek: calc(var(--ww) * .39); isolation: isolate; }
.scene-spot { position: absolute; left: -8%; right: -8%; top: -4%; height: 78%; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 44% 58% at 50% 30%, rgba(255,214,150,.3), rgba(255,196,120,.1) 55%, rgba(255,196,120,0) 78%); }
.rl-scene::before { content: ""; position: absolute; left: -7%; right: -7%; top: calc(var(--peek) + var(--ww) * .3); bottom: calc(var(--ww) * -.05); z-index: 1; border-radius: 50% 50% 16px 16px / 62% 62% 16px 16px; border: 5px solid transparent; border-bottom: 0;
  background:
    var(--noise) padding-box,
    radial-gradient(ellipse 60% 70% at 50% 34%, rgba(255,240,190,.22), rgba(255,240,190,0) 72%) padding-box,
    radial-gradient(ellipse 90% 100% at 50% 0%, #1f6c42, #14512f 55%, #0b3120) padding-box,
    linear-gradient(180deg, #a56a3a, #6b3a1a 40%, #3a1c0b) border-box;
  box-shadow: inset 0 0 0 1px rgba(222,186,84,.7), inset 0 0 30px rgba(0,0,0,.55), 0 -1px 0 rgba(255,226,180,.35), 0 0 0 1px rgba(0,0,0,.6), 0 14px 26px rgba(0,0,0,.55); }
.rl-dealer { position: absolute; left: 50%; top: 0; width: calc(var(--ww) * .6); margin-left: calc(var(--ww) * -.3); z-index: 0; pointer-events: none; }
.dealer-art { width: 100%; aspect-ratio: 640 / 717; transform-origin: 50% 70%; filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)) drop-shadow(0 0 22px rgba(255,206,140,.16)); }
.dealer-fig { position: relative; width: 100%; height: 100%; transform-origin: 50% 100%; animation: breathe 5s ease-in-out infinite; }
.dealer-fig img { width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(#000 70%, transparent 92%); mask-image: linear-gradient(#000 70%, transparent 92%); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.004, 1.012); } }
.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="spin"] { animation: dealerSpin 1s 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(-5px) scale(1.035) rotate(-1.5deg); } 62% { transform: translateY(0) scale(1.01) rotate(1deg); } 100% { transform: none; } }
@keyframes dealerSpin { 0% { transform: none; } 22% { transform: rotate(-3.500deg) translate(-5px, 3px); } 36% { transform: rotate(3deg) translate(6px, 2px); } 62% { transform: rotate(-.6deg); } 100% { transform: none; } }
.dealer-say { position: absolute; left: calc(50% + var(--ww) * .2); top: calc(var(--ww) * .06); 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: calc(var(--ww) * .32); 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; } }

/* --- compte à rebours : cadran cerclé de laiton, anneau qui se vide, secondes au centre --- */
.countdown { --cd: 60px; position: absolute; left: calc(var(--ww) * .03); top: calc(var(--ww) * .05); z-index: 7; width: var(--cd); height: var(--cd); border-radius: 50%; background: radial-gradient(circle at 50% 32%, #1e3327, #070d09 72%); box-shadow: 0 0 0 2px #0a0503, 0 0 0 4.5px #b8902c, 0 0 0 5.5px #5c430e, 0 8px 18px rgba(0,0,0,.6), inset 0 2px 6px rgba(0,0,0,.8); }
.cd-half { position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden; }
.cd-r { left: 50%; } .cd-l { left: 0; }
.cd-half u { position: absolute; top: 0; width: 200%; height: 100%; border-radius: 50%; border: calc(var(--cd) * .085) solid #f0c64a; box-sizing: border-box; }
.cd-r u { left: -100%; -webkit-clip-path: inset(0 0 0 50%); clip-path: inset(0 0 0 50%); }
.cd-l u { left: 0; -webkit-clip-path: inset(0 50% 0 0); clip-path: inset(0 50% 0 0); }
.countdown b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-print); font-weight: 900; font-size: calc(var(--cd) * .42); line-height: 1; color: #ffe9a8; text-shadow: 0 0 10px rgba(255,214,90,.45); font-variant-numeric: tabular-nums; }
.countdown.late u { border-color: #ff5a6e; }
.countdown.late b { color: #fff; text-shadow: 0 0 12px rgba(255,80,100,.9); }
.countdown.late { box-shadow: 0 0 0 2px #0a0503, 0 0 0 4.5px #e23a50, 0 0 0 5.5px #5c0f1a, 0 8px 18px rgba(0,0,0,.6), inset 0 2px 6px rgba(0,0,0,.8); }
.countdown b.beat { animation: beat .42s cubic-bezier(.2,1.6,.4,1); }
@keyframes beat { 0% { transform: scale(1.8); } 100% { transform: none; } }

/* --- la roue : calques empilés (voir wheel.js) --- */
.wheel { position: absolute; left: 0; top: var(--peek); width: var(--ww); aspect-ratio: 210 / 172; z-index: 2; }
.wheel .wl { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
.wheel .wl-tilt { position: absolute; pointer-events: none; }
.wheel .wl-spin { display: block; will-change: transform; }
.wheel .wl-armshadow { opacity: .55; }
/* dernier appel : la scène rougeoie */
.rl-scene::after { content: ""; position: absolute; inset: -4% -8%; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 62% 58% at 50% 60%, rgba(255,60,80,0) 58%, rgba(255,60,80,.22) 100%); }
.rl-scene.late::after { animation: latePulse 1s ease-in-out infinite; }
@keyframes latePulse { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* --- gros plan sur la case gagnante : loupe cerclée de laiton --- */
.lens { position: absolute; left: calc(var(--ww) * .005); top: calc(var(--ww) * .03); width: calc(var(--ww) * .33); aspect-ratio: 1; z-index: 8; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 3px #d9b548, 0 0 0 5px #6b500f, 0 0 0 6px rgba(255,240,180,.55), 0 14px 30px rgba(0,0,0,.7), 0 0 34px var(--lg, rgba(255,220,120,.35)); }
.lens[data-c="red"] { --lg: rgba(255,70,100,.5); } .lens[data-c="green"] { --lg: rgba(70,230,120,.5); } .lens[data-c="black"] { --lg: rgba(255,236,190,.4); }
.lens canvas { width: 100%; height: 100%; display: block; border-radius: 50%; }
.lens-glass { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse 62% 40% at 32% 16%, rgba(255,255,255,.36), rgba(255,255,255,0) 62%), radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,.42) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset 0 4px 12px rgba(0,0,0,.6); }
.lens.in { animation: lensIn .55s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes lensIn { 0% { opacity: 0; transform: scale(.2) rotate(-24deg); } 100% { opacity: 1; transform: none; } }

/* --- plaque d'annonce : état de la table, puis numéro sorti et ses attributs --- */
.ribbon { position: relative; flex: 0 0 auto; min-height: 64px; display: flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 12px; border: 1px solid #5a4520; background: linear-gradient(180deg, #19130a, #0a0805); box-shadow: inset 0 0 0 1px rgba(212,175,55,.14), inset 0 0 24px rgba(0,0,0,.7), 0 1px 0 rgba(255,225,170,.08); overflow: hidden; }
.ribbon[data-state="status"] .rb-result, .ribbon[data-state="result"] .rb-status { display: none; }
.rb-status { font-family: var(--f-print); font-weight: 900; font-size: 18px; letter-spacing: .2em; margin-right: -.2em; text-align: center; color: #f1cf5f; text-transform: uppercase; text-shadow: 0 0 14px rgba(241,207,95,.35); }
.rb-status.late { color: #ff8b98; text-shadow: 0 0 14px rgba(255,90,110,.5); animation: blink .5s steps(2, jump-none) infinite; }
.rb-status.closed { color: #e9dfc2; text-shadow: none; }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .45; } }
.rb-result { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.rn { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--f-print); font-weight: 900; font-size: 30px; line-height: 1; color: #fff; text-shadow: 0 2px 2px rgba(0,0,0,.45); box-shadow: inset 0 0 0 2px rgba(255,255,255,.85), inset 0 -8px 12px rgba(0,0,0,.3), 0 0 22px var(--glow); animation: rnIn .55s cubic-bezier(.2,1.6,.4,1) both; }
.rn.red { background: radial-gradient(circle at 35% 25%, #ff5a6e, #c8102e 60%, #8a0b1f); --glow: rgba(255,60,90,.55); }
.rn.black { background: radial-gradient(circle at 35% 25%, #55555c, #17171a 60%, #060607); --glow: rgba(255,236,190,.3); }
.rn.green { background: radial-gradient(circle at 35% 25%, #52cf78, #17813a 60%, #0a5524); --glow: rgba(80,230,130,.5); }
@keyframes rnIn { 0% { opacity: 0; transform: scale(.3) rotate(-18deg); } 100% { opacity: 1; transform: none; } }
.rb-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.rb-tags { display: flex; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(243,234,208,.3); color: var(--cream); background: rgba(255,255,255,.06); white-space: nowrap; animation: tagIn .4s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(var(--i) * 110ms + 220ms); }
.tag .abbr { display: none; }
.ribbon.short .tag .full { display: none; } .ribbon.short .tag .abbr { display: inline; }
.ribbon.short .tag { padding: 2px 6px; letter-spacing: .03em; }
.tag.red { background: #c8102e; border-color: #ff8b98; color: #fff; } .tag.black { background: #121214; border-color: #86868c; color: #fff; } .tag.green, .tag.zero { background: #12843a; border-color: #7be09a; color: #fff; }
@keyframes tagIn { 0% { opacity: 0; transform: translateY(8px) scale(.7); } 100% { opacity: 1; transform: none; } }
.rb-mine { font-size: 13px; font-weight: 700; color: #fff; min-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-mine b { color: #6cf59a; } .rb-mine b.neg { color: #ff8b98; }

/* --- bandeau lumineux des derniers numéros : le dernier en grand, les rouges en haut, les noirs en bas --- */
.marquee { flex: 0 0 auto; border-radius: 12px; border: 1px solid #25382d; background: linear-gradient(180deg, #0b110d, #050806); box-shadow: inset 0 0 22px rgba(0,0,0,.8), inset 0 0 0 1px rgba(212,175,55,.08), 0 1px 0 rgba(255,225,170,.06); padding: 6px 10px 7px; min-width: 0; }
.mq-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 800; color: var(--gold); white-space: nowrap; }
.mq-head small { color: var(--muted); letter-spacing: .3px; text-transform: none; font-weight: 600; font-size: 10px; }
.numbers-strip { display: flex; align-items: center; gap: 4px; height: 48px; margin-top: 2px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
.hn { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(0,0,0,.45); }
.hn.red { background: #c8102e; } .hn.black { background: #222; border: 1px solid #555; } .hn.green { background: #1e8e3e; }
.hn.sm { width: 21px; height: 21px; font-size: 10px; }
.numbers-strip .hn { flex: 0 0 auto; width: 25px; height: 25px; border-radius: 6px; font-family: var(--f-print); font-size: 13px; font-weight: 700; box-shadow: none; }
.numbers-strip .hn.red { transform: translateY(calc(var(--off, 9px) * -1)); color: #ff7385; background: rgba(200,16,46,.2); border: 1px solid rgba(255,90,110,.5); text-shadow: 0 0 8px rgba(255,70,100,.85); }
.numbers-strip .hn.black { transform: translateY(var(--off, 9px)); color: #ece7da; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.24); text-shadow: 0 0 6px rgba(255,255,255,.35); }
.numbers-strip .hn.green { color: #74f7a0; background: rgba(30,142,62,.25); border: 1px solid rgba(110,245,150,.55); text-shadow: 0 0 8px rgba(90,240,140,.8); }
.numbers-strip .hn.last { width: 46px; height: 46px; border-radius: 11px; font-size: 25px; font-weight: 900; transform: none; margin-right: 5px; color: #fff; text-shadow: 0 2px 2px rgba(0,0,0,.45); border: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8), inset 0 -7px 10px rgba(0,0,0,.3), 0 0 16px var(--glow); }
.numbers-strip .hn.last.red { background: radial-gradient(circle at 35% 25%, #ff5a6e, #c8102e 60%, #8a0b1f); --glow: rgba(255,60,90,.5); }
.numbers-strip .hn.last.black { background: radial-gradient(circle at 35% 25%, #55555c, #17171a 60%, #060607); --glow: rgba(255,236,190,.25); }
.numbers-strip .hn.last.green { background: radial-gradient(circle at 35% 25%, #52cf78, #17813a 60%, #0a5524); --glow: rgba(80,230,130,.45); }
.numbers-strip .hn.last.new { animation: hnIn .6s cubic-bezier(.2,1.5,.4,1); }
@keyframes hnIn { 0% { opacity: 0; transform: translateX(-18px) scale(.4); } 100% { opacity: 1; transform: none; } }
.hn-empty { font-size: 11px; color: #5f7a6b; }

/* ===== table : rail de cuir surpiqué, baguette de bois, filet de laiton, feutre à grain ===== */
.rl-table { grid-area: table; position: relative; min-width: 0; border: 11px solid transparent; border-radius: 24px; padding: 4px 12px 12px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  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,
    repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 1px, rgba(0,0,0,0) 1px 3px) padding-box,
    radial-gradient(ellipse 64% 78% at 50% 34%, rgba(255,246,204,.15), rgba(255,246,204,0) 72%) padding-box,
    radial-gradient(ellipse at 50% 0%, #217045, #155531 60%, #0f3d24) padding-box,
    linear-gradient(101deg, rgba(255,226,182,0) 20%, rgba(255,226,182,.16) 25.5%, rgba(255,226,182,0) 31%, rgba(255,226,182,0) 66%, rgba(255,226,182,.09) 70.5%, rgba(255,226,182,0) 75%) border-box,
    var(--leather) border-box;
  box-shadow: inset 0 0 0 3px #5a3117, inset 0 1px 0 3px #8a552d, inset 0 0 0 4.5px rgba(222,186,84,.85), inset 0 0 0 6px rgba(0,0,0,.3), inset 0 0 50px rgba(0,0,0,.5), 0 0 0 1px #140a04, 0 18px 36px rgba(0,0,0,.5); }
.rl-table::before { content: ""; position: absolute; inset: -6.5px; border-radius: 18px; border: 1px dashed rgba(240,220,170,.36); pointer-events: none; }
.table-head { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; }
.seats { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 6px 0 2px; }
.seats::-webkit-scrollbar { display: none; }
.seats-title { order: -1; flex: 0 0 auto; font-size: 9.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(233,225,184,.75); margin-right: 4px; white-space: nowrap; }
.seat { position: relative; flex: 0 0 auto; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; column-gap: 7px; padding: 3px 11px 3px 4px; border-radius: 999px; background: linear-gradient(180deg, rgba(4,18,11,.58), rgba(4,18,11,.36)); 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; } }
.seat.me { border-color: rgba(212,175,55,.6); }
.sav { 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; }
.sinfo { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.sname { font-size: 11.5px; font-weight: 800; color: #fff; white-space: nowrap; max-width: 78px; overflow: hidden; text-overflow: ellipsis; }
.sbet { font-size: 11px; font-weight: 700; color: var(--cream); white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .85; }
.slast { min-width: 24px; text-align: right; font-size: 12px; font-weight: 800; color: var(--cream); white-space: nowrap; font-variant-numeric: tabular-nums; }
.slast:empty { min-width: 0; }
.slast.pos { color: #6cf59a; } .slast.neg { color: #ff8b98; }
.seat.win { border-color: var(--gold); background: rgba(212,175,55,.22); }
.seat.win .slast, .seat.lose .slast { animation: pop .35s ease-out; }
.seat.out .sav { opacity: .5; filter: grayscale(.7); }
.ssay { 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 7px; border-radius: 9px; box-shadow: 0 3px 10px rgba(0,0,0,.45); white-space: nowrap; z-index: 2; pointer-events: none; }
.ssay.on { display: flex; animation: pop .3s ease-out; }
.ssay .ic { width: 10px; height: 10px; flex: 0 0 auto; }
.ssay .ic.up { background: #e0a51a; -webkit-clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); }
.ssay .ic.down { background: #d03048; -webkit-clip-path: polygon(0 34%, 13% 20%, 50% 60%, 87% 20%, 100% 34%, 50% 88%); clip-path: polygon(0 34%, 13% 20%, 50% 60%, 87% 20%, 100% 34%, 50% 88%); }
.view-switch { display: none; flex: 0 0 auto; 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); }
.view-btn { padding: 0 12px; min-height: 34px; border-radius: 16px; font-size: 11px; font-weight: 800; color: var(--cream); letter-spacing: .3px; white-space: nowrap; transition: background .2s, color .2s; }
.view-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); }

/* --- tapis imprimé --- */
.layout-wrap, .track-wrap { position: relative; width: 100%; flex: 0 0 auto; }
.rtable, .rtrack { position: absolute; left: 0; top: 0; transform-origin: 0 0; user-select: none; -webkit-user-select: none; }
.rtable { cursor: pointer; }
.layout-wrap.locked .rtable, .track-wrap.locked .rtrack { pointer-events: none; }
.print { position: absolute; left: 0; top: 0; display: block; overflow: visible; font-family: var(--f-print); filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); }
.print text { text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.zs { stroke: var(--line); stroke-width: 1.6; stroke-linejoin: round; }
.z.num.red .zs { fill: url(#inkRed); fill-opacity: .94; } .z.num.black .zs { fill: url(#inkBlack); fill-opacity: .94; } .z.num.green .zs { fill: url(#inkGreen); fill-opacity: .95; }
.z.out .zs { fill: rgba(0,0,0,.17); }
.z.out.col .zs { fill: rgba(0,0,0,.26); }
.zo { fill: #ffe9a0; stroke: none; opacity: 0; pointer-events: none; transition: opacity .12s; }
.z.cov .zo { opacity: .36; } .z.hov .zo { opacity: .2; }
.z.tap .zo { animation: zTap .42s ease-out; }
@keyframes zTap { 0% { opacity: .75; } 100% { opacity: 0; } }
.p-num { font-size: 27px; font-weight: 700; fill: #fffaf0; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 3px; }
.print.vert .p-num { font-size: 22px; }
.p-zero, .print.vert .p-zero { font-size: 36px; }
.print.vert .p-zero { font-size: 28px; }
.p-out { font-size: 18px; font-weight: 700; letter-spacing: 1px; fill: #fbf5df; paint-order: stroke; stroke: rgba(0,0,0,.3); stroke-width: 3px; }
.print.vert .p-out { font-size: 15.5px; }
.print.vert .z.ev .p-out { font-size: 12.5px; letter-spacing: .6px; }
.p-col, .print.vert .p-col { font-size: 13.5px; letter-spacing: .6px; fill: var(--yel); }
.p-sub { font-family: var(--font); font-size: 7.5px; font-weight: 800; letter-spacing: 2.2px; fill: rgba(243,234,208,.78); }
.p-dia { stroke: #f3ead0; stroke-width: 1.5; stroke-linejoin: round; pointer-events: none; }
.p-dia.red { fill: #c8102e; } .p-dia.black { fill: #141416; }
.p-lim text { font-family: var(--font); font-size: 7.5px; font-weight: 800; letter-spacing: 1.8px; fill: rgba(243,234,208,.62); }
.p-lim text.v { font-family: var(--f-print); font-size: 12.5px; letter-spacing: .5px; fill: rgba(255,210,74,.85); }
.p-lim path { stroke: rgba(243,234,208,.35); stroke-width: 1; }
.p-orn path { fill: none; stroke: rgba(243,234,208,.34); stroke-width: 1.2; }
/* résultat : cases gagnantes illuminées en cascade, les autres s'éteignent */
.rtable.settled .z { transition: opacity .5s .35s; }
.rtable.settled .z:not(.won) { opacity: .48; }
.rtable.still .z { transition: none; }
.z.won .zs { stroke: #ffe58a; stroke-width: 2.8; }
.z.won .zo { animation: zWon .85s ease-in-out var(--d, 0ms) infinite alternate backwards; }
@keyframes zWon { 0% { opacity: 0; } 100% { opacity: .56; } }
.spot-ghost { position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid #ffe58a; box-shadow: 0 0 10px rgba(255,214,90,.75), inset 0 0 6px rgba(255,214,90,.5); opacity: 0; pointer-events: none; z-index: 5; transition: opacity .12s; }
.spot-ghost.on { opacity: 1; }
.bet-tag { position: absolute; left: 0; top: 0; z-index: 600; pointer-events: none; opacity: 0; white-space: nowrap; font-size: 11px; font-weight: 800; color: #2a1a00; padding: 3px 9px; border-radius: 6px; background: linear-gradient(180deg, #f6e3a2, #cba53e); box-shadow: 0 4px 12px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.6); transition: opacity .12s; }
.bet-tag.on { opacity: 1; }

/* --- 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: 27px; --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.other { --cs: 22px; } .stk.other b { font-size: 8.5px; }
.stk.other .dk { --d: rgba(0,0,0,.6); box-shadow: 0 2px 0 var(--d), 0 3px 3px rgba(0,0,0,.5), inset 0 0 0 1.5px var(--c), inset 0 1px 1px rgba(255,255,255,.45); }
.stk.bot { --cs: 15px; }
.stk.pay { --cs: 24px; }
.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); }
.stk.won { animation: stkWon .75s ease-in-out .2s 3; }
@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.gone { opacity: 0; }
/* les râteaux vivent dans un calque qui déborde un peu du tapis et les coupe : ils entrent par le haut, du côté de la croupière */
.rake-layer { position: absolute; left: -12px; right: -12px; top: -46px; bottom: -6px; overflow: hidden; pointer-events: none; z-index: 300; }
.rake { position: absolute; filter: drop-shadow(2px 5px 3px rgba(0,0,0,.5)); }
.rake svg { display: block; overflow: visible; }
.rk-sh { fill: none; stroke: #2e1708; stroke-width: 7; stroke-linecap: round; } .rk-a { fill: none; stroke: #b9864a; stroke-width: 5; stroke-linecap: round; } .rk-b { fill: none; stroke: #f1d9a8; stroke-width: 1.3; stroke-linecap: round; opacity: .9; }
.rk-h { fill: #7a4a22; stroke: #2e1708; stroke-width: 1.2; } .rk-hl { fill: rgba(255,225,180,.36); }
.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); animation: winUp 1.1s cubic-bezier(.2,1.2,.4,1) both; white-space: nowrap; transition: opacity .3s; }
.winlabel.fade { opacity: 0; }
@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); } }
/* dolly : marqueur de cristal posé sur le numéro sorti */
.dolly { position: absolute; width: 0; height: 0; z-index: 450; pointer-events: none; }
.dolly i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0, rgba(255,255,255,.55) 20%, rgba(214,236,255,.32) 44%, rgba(255,255,255,.72) 62%, rgba(226,240,255,.42) 100%);
  box-shadow: inset 0 0 0 2.5px rgba(255,255,255,.95), inset 0 0 0 6px rgba(255,255,255,.22), inset 0 0 0 7px rgba(255,255,255,.7), inset 0 -4px 6px rgba(120,170,220,.4), 0 0 0 2px #e8c95e, 0 0 0 3px #6b500f, 0 7px 10px rgba(0,0,0,.65), 0 0 20px 3px rgba(255,236,170,.85); }
.dolly.drop i { animation: dollyDrop .7s cubic-bezier(.3,1.2,.5,1) .15s both; }
@keyframes dollyDrop { 0% { opacity: 0; transform: translateY(-64px) scale(1.7); } 55% { opacity: 1; transform: translateY(2px) scale(.94); } 75% { transform: translateY(-5px) scale(1.04); } 100% { opacity: 1; transform: none; } }
.dolly.lift i { transition: transform .25s, opacity .25s; transform: translateY(-30px) scale(1.4); opacity: 0; }

/* --- piste des annonces --- */
.rt-svg { display: block; overflow: visible; font-family: var(--f-print); filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); }
.rt-svg text { text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.rt-base { fill: rgba(3,18,10,.6); stroke: none; }
.rt, .rt-sec { cursor: pointer; }
.rt .rc { stroke: var(--line); stroke-width: 1.3; stroke-linejoin: round; fill-opacity: .94; }
.rt.red .rc { fill: url(#rtRed); } .rt.black .rc { fill: url(#rtBlack); } .rt.green .rc { fill: url(#rtGreen); }
.rt text { font-weight: 700; fill: #fffaf0; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 2.5px; }
.rt .ro { fill: #ffe9a0; opacity: 0; pointer-events: none; transition: opacity .12s; }
.rt.cov .ro { opacity: .4; }
.rt.tap .ro { animation: zTap .42s ease-out; }
.rk { pointer-events: none; }
.rk.tiers { fill: #58b0ea; } .rk.orphelins { fill: #f0a83a; } .rk.voisins { fill: #63cf86; } .rk.zero { fill: #c3f06a; }
.rdot { fill: var(--yel); stroke: #5c430e; stroke-width: .6; opacity: 0; pointer-events: none; }
.rt.has .rdot { opacity: 1; }
.rs { stroke: var(--line); stroke-width: 1.2; stroke-linejoin: round; transition: fill .15s; }
.rt-sec.tiers .rs { fill: rgba(40,110,170,.36); } .rt-sec.orphelins .rs { fill: rgba(190,120,30,.34); } .rt-sec.voisins .rs { fill: rgba(40,140,80,.34); } .rt-sec.zero .rs { fill: rgba(130,190,60,.34); }
.rt-sec.tiers.hov .rs { fill: rgba(70,150,220,.72); } .rt-sec.orphelins.hov .rs { fill: rgba(225,150,40,.72); } .rt-sec.voisins.hov .rs { fill: rgba(60,180,105,.72); } .rt-sec.zero.hov .rs { fill: rgba(160,220,80,.7); }
.rt-sec:active .rs { fill: rgba(255,233,160,.5); }
.rt-lab { font-weight: 700; letter-spacing: .2em; fill: #fbf5df; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 3px; }
.rt-sub { font-family: var(--font); font-weight: 800; letter-spacing: .18em; fill: rgba(243,234,208,.72); text-transform: uppercase; }
.rtrack.settled .rt { transition: opacity .5s .35s; }
.rtrack.settled .rt:not(.won) { opacity: .5; }
.rt.won .rc { stroke: #ffe58a; stroke-width: 2.6; }
.rt.won .ro { animation: zWon .85s ease-in-out infinite alternate; }

/* ===== chauds / froids et répartitions ===== */
.rl-stats { grid-area: stats; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: center; padding: 8px 16px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, #12241a, #0b1711); 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); }
.hot-cold { display: flex; flex-direction: column; gap: 6px; }
.hc-row { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; }
.hc-row b { min-width: 48px; }
.hc-row.hot b { color: #ff9a5a; } .hc-row.cold b { color: #7cc4ff; }
.hc-ic { width: 10px; height: 13px; flex: 0 0 auto; background: currentColor; }
.hc-row.hot .hc-ic { color: #ff7a4a; -webkit-clip-path: polygon(50% 0, 78% 34%, 68% 44%, 100% 70%, 78% 100%, 22% 100%, 0 70%, 30% 36%, 40% 52%); clip-path: polygon(50% 0, 78% 34%, 68% 44%, 100% 70%, 78% 100%, 22% 100%, 0 70%, 30% 36%, 40% 52%); transform-origin: 50% 100%; animation: flame 1.1s ease-in-out infinite; }
.hc-row.cold .hc-ic { color: #7cc4ff; width: 12px; -webkit-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%); 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%); }
@keyframes flame { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.18) scaleX(.92); } }
.hc-list { display: inline-flex; gap: 4px; min-height: 21px; align-items: center; }
.hc-list em { color: #5f7a6b; font-style: normal; }
.dist { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 92px; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bar-row .bl b { color: #fff; font-variant-numeric: tabular-nums; }
.bar-row .bl.r { text-align: right; }
.bar { display: flex; gap: 1px; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.06); box-shadow: inset 0 1px 2px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.05); }
.bar i { flex: 1 1 0; min-width: 0; }
.bar .r { background: linear-gradient(180deg, #ff5a6e, #c8102e); } .bar .k { background: linear-gradient(180deg, #6a6a72, #26262b); } .bar .g { background: linear-gradient(180deg, #52cf78, #17813a); }
.bar .e { background: linear-gradient(180deg, #f6df8c, #c79e33); } .bar .o { background: linear-gradient(180deg, #8f7a3a, #5a4a1c); }
.bar .l { background: linear-gradient(180deg, #6fd3c3, #1f8a7b); } .bar .h { background: linear-gradient(180deg, #4d8f86, #1c4e47); }

/* ===== commandes : râtelier de jetons, boutons, total ===== */
.controls { grid-area: 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,235,190,.06), rgba(255,235,190,0) 30%), linear-gradient(180deg, #16281d, #0b1711);
  box-shadow: inset 0 1px 0 rgba(255,235,200,.12), 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, #030605, #0d1711); box-shadow: inset 0 2px 5px rgba(0,0,0,.85), 0 1px 0 rgba(255,235,190,.12); 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, #1c3225, #0c1811); border: 1px solid var(--border-light); color: #f1f6ee; font-weight: 800; font-size: 13px; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 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: #5a3a00; opacity: 1; }
#newRoundBtn { padding: 0 18px; letter-spacing: .5px; font-size: 14px; }
.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: 360px; }
.mb-total { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 12px; border-radius: 8px; background: linear-gradient(180deg, #030605, #0c1610); box-shadow: inset 0 2px 4px rgba(0,0,0,.8), 0 1px 0 rgba(255,235,190,.12); 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; white-space: nowrap; }
.my-bets .mybet b { font-size: 11px; color: #fff; }
.toasts { position: fixed; bottom: 80px; left: 0; right: 0; z-index: 30; }

/* ===== tablette et téléphones : tout s'empile ; la croupière passe à gauche de la roue ===== */
@media (max-width: 1099px) {
  :root { --ww: min(46vw, 380px); }
  .rl { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "stage" "table" "stats" "controls"; }
  .rl-stage { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 12px; }
  .rl-scene { grid-row: 1 / span 2; width: calc(var(--ww) * 1.34); height: calc(var(--ww) * .86); margin: 0; --peek: calc(var(--ww) * .03); }
  .rl-scene::before { left: 6%; right: -5%; top: calc(var(--ww) * .36); bottom: calc(var(--ww) * -.03); }
  .scene-spot { left: 10%; right: -8%; }
  .rl-dealer { left: 0; top: calc(var(--ww) * .04); width: calc(var(--ww) * .66); margin: 0; }
  .wheel { left: auto; right: 0; }
  .dealer-say { left: calc(var(--ww) * .5); top: 0; max-width: calc(var(--ww) * .56); }
  .countdown { left: auto; right: 0; top: 0; --cd: 52px; }
  .lens { left: calc(var(--ww) * .02); top: auto; bottom: calc(var(--ww) * .04); width: calc(var(--ww) * .36); }
  .ribbon { align-self: end; }
  .marquee { align-self: start; }
}

/* ===== téléphone en portrait : la scène reste en haut de l'écran, le tapis est vertical (trois numéros de front),
   un commutateur passe du tapis à la piste ===== */
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 521px) {
  :root { --ww: min(57vw, 240px); }
  .rl { display: flex; flex-direction: column; padding: 6px; gap: 6px; }
  .rl-stage { position: sticky; top: var(--topbar-h); z-index: 12; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 5px; padding: 5px 8px 7px; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(212,175,55,.08), 0 10px 22px rgba(0,0,0,.6); }
  .rl-scene { width: 100%; height: calc(var(--ww) * .86); }
  .rl-scene::before { left: 12%; right: -3%; }
  .wheel { right: 2px; }
  .rl-dealer { width: min(calc(100% - var(--ww) * .74), 168px); top: 2px; }
  .dealer-say { left: min(calc(100% - var(--ww) * .9), 130px); top: -1px; max-width: 170px; font-size: 11px; padding: 5px 9px; z-index: 9; }
  .countdown { --cd: 42px; right: 1px; top: 1px; }
  .lens { left: 6px; bottom: 4px; width: 92px; }
  /* l'annonce prend la place du bandeau pendant le résultat : même case de la grille */
  .rl-scene { grid-row: 1; grid-column: 1; }
  .ribbon, .marquee { grid-row: 2; grid-column: 1; align-self: stretch; }
  .ribbon { z-index: 10; min-height: 44px; padding: 3px 8px; }
  .ribbon[data-state="status"] { visibility: hidden; }
  .rb-result { gap: 8px; }
  .rn { width: 36px; height: 36px; border-radius: 9px; font-size: 21px; }
  .rb-body { gap: 2px; }
  .rb-tags { gap: 3px; }
  .tag, .ribbon.short .tag { font-size: 8.5px; padding: 1px 5px; letter-spacing: .03em; }
  .tag .full { display: none; } .tag .abbr { display: inline; }
  .rb-mine { font-size: 11.5px; min-height: 14px; }
  .marquee { padding: 3px 8px; display: flex; align-items: center; }
  .mq-head { display: none; }
  .numbers-strip { height: 36px; margin: 0; gap: 3px; flex: 1 1 auto; min-width: 0; --off: 6px; }
  .numbers-strip .hn { width: 21px; height: 21px; font-size: 11.5px; border-radius: 5px; }
  .numbers-strip .hn.last { width: 34px; height: 34px; font-size: 19px; border-radius: 8px; margin-right: 3px; }
  .rl-table { padding: 2px 6px 8px; border-width: 7px; border-radius: 18px; gap: 5px; justify-content: flex-start; }
  .rl-table::before { inset: -4.5px; border-radius: 14px; }
  .table-head { min-height: 40px; gap: 6px; }
  .view-switch { display: flex; }
  .rl-table[data-view="grid"] .track-wrap, .rl-table[data-view="track"] .layout-wrap { display: none; }
  .seats { justify-content: flex-start; gap: 1px; padding: 3px 0 1px; }
  .seats-title { display: none; }
  .seat { grid-template-columns: auto; justify-items: center; row-gap: 1px; min-width: 38px; padding: 2px 2px 1px; border-radius: 10px; border-color: transparent; background: none; box-shadow: none; }
  .seat.me { border-color: transparent; }
  .seat.me .sav { box-shadow: 0 0 0 2px var(--gold), 0 2px 6px rgba(0,0,0,.5); }
  .seat.win { background: rgba(212,175,55,.2); }
  .sav { width: 24px; height: 24px; }
  .sname { display: none; }
  .sbet, .slast { min-width: 0; text-align: center; font-size: 10px; line-height: 12px; }
  .seat[data-show="last"] .sinfo, .seat[data-show="bet"] .slast { display: none; }
  .ssay { left: 50%; top: 0; margin-left: 2px; padding: 3px 4px; }
  .ssay span { display: none; }
  .rl-stats { grid-template-columns: minmax(0, 1fr); padding: 8px 10px; gap: 8px; }
  .hot-cold { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
  .hc-row b { min-width: 0; }
  .bar-row { grid-template-columns: 84px minmax(0, 1fr) 84px; gap: 6px; font-size: 10px; }
  .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,.12), 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.150 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; }
  #newRoundBtn { font-size: 12px; letter-spacing: 0; padding: 0 4px; }
  .my-bets { display: none; }
  .toasts { bottom: 122px; }
}
@media (max-width: 400px) { .ctl { font-size: 11.5px; } }

/* ===== téléphone en paysage : la roue à gauche, le tapis (ou la piste) à droite, les commandes sur une ligne ===== */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --topbar-h: 40px; --ww: 212px; }
  .topbar { padding: 0 8px; }
  .logo { font-size: 16px; }
  .balance { font-size: 13px; }
  .icon-btn, .friends-btn, .avatar-btn { width: 30px; height: 30px; }
  .rl { flex: none; display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "stage table" "stage controls"; gap: 4px; padding: 4px; max-width: none; height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h)); }
  .rl-stage { position: relative; top: auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 5px; padding: 4px 8px 6px; border-radius: 12px; min-height: 0; }
  .rl-scene { grid-row: 1; grid-column: 1; }
  .ribbon, .marquee { grid-row: 2; grid-column: 1; align-self: stretch; }
  .rl-scene { width: 100%; height: calc(var(--ww) * .819 + 38px); margin: 0; --peek: 38px; }
  .rl-scene::before { left: -4%; right: -4%; top: calc(var(--peek) + var(--ww) * .32); bottom: -6px; }
  .scene-spot { left: -8%; right: -8%; }
  .rl-dealer { left: -4px; top: 0; width: 108px; margin: 0; }
  .wheel { left: auto; right: -2px; }
  .dealer-say { left: 74px; top: 0; max-width: 100px; font-size: 9.5px; line-height: 1.2; padding: 4px 7px; z-index: 9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .countdown { --cd: 38px; left: auto; right: 0; top: 0; }
  .lens { left: -2px; top: 62px; bottom: auto; width: 78px; }
  .ribbon { z-index: 10; padding: 3px 8px; }
  .ribbon, .marquee { min-height: 58px; }
  .ribbon[data-state="status"] { visibility: hidden; }
  .rb-result { gap: 7px; }
  .rn { width: 34px; height: 34px; border-radius: 9px; font-size: 20px; }
  .rb-body { gap: 2px; }
  .rb-tags { gap: 2px; flex-wrap: wrap; }
  .tag, .ribbon.short .tag { font-size: 7.5px; padding: 1px 4px; letter-spacing: 0; }
  .tag .full { display: none; } .tag .abbr { display: inline; }
  .rb-mine { font-size: 10.5px; min-height: 13px; }
  .marquee { padding: 3px 8px; display: flex; align-items: center; }
  .mq-head { display: none; }
  .numbers-strip { height: 36px; margin: 0; gap: 3px; flex: 1 1 auto; min-width: 0; --off: 6px; }
  .numbers-strip .hn { width: 21px; height: 21px; font-size: 11.5px; border-radius: 5px; }
  .numbers-strip .hn.last { width: 34px; height: 34px; font-size: 19px; border-radius: 8px; margin-right: 3px; }
  .rl-stats { display: none; }
  .rl-table { min-height: 0; overflow: hidden; padding: 0 8px 4px; border-width: 6px; border-radius: 16px; gap: 3px; justify-content: flex-start; }
  .rl-table::before { inset: -4px; border-radius: 13px; }
  .table-head { min-height: 36px; gap: 6px; }
  .view-switch { display: flex; }
  .view-btn { min-height: 30px; padding: 0 11px; font-size: 10.5px; }
  .rl-table[data-view="grid"] .track-wrap, .rl-table[data-view="track"] .layout-wrap { display: none; }
  .track-wrap { margin: auto 0; }
  .seats { justify-content: flex-start; gap: 2px; padding: 2px 0 0; }
  .seats-title { display: none; }
  .seat { 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; }
  .seat.me { border-color: transparent; }
  .seat.me .sav { box-shadow: 0 0 0 2px var(--gold), 0 2px 6px rgba(0,0,0,.5); }
  .seat.win { background: rgba(212,175,55,.2); }
  .sav { width: 22px; height: 22px; }
  .sname { display: none; }
  .sbet, .slast { min-width: 0; font-size: 10px; }
  .seat[data-show="last"] .sinfo, .seat[data-show="bet"] .slast { display: none; }
  .ssay { left: 14px; top: -2px; padding: 3px 4px; }
  .ssay span { display: none; }
  .controls { 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; width: auto; }
  .ctl { flex: 0 0 auto; min-height: 36px; min-width: 38px; padding: 0 9px; font-size: 11px; border-radius: 9px; }
  .ctl svg { display: block; }
  .ctl:not(.primary) span { display: none; }
  .ctl.primary { flex: 0 0 auto; min-height: 38px; padding: 0 14px 0 11px; font-size: 13px; gap: 7px; }
  .ctl.primary svg { width: 18px; }
  #newRoundBtn { font-size: 11.5px; letter-spacing: 0; padding: 0 10px; }
  .my-bets { display: none; }
  .toasts { bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .dealer-fig, .hc-row.hot .hc-ic, .ctl.primary.ready::after, .rl-scene.late::after, .rb-status.late { animation: none; }
  .z.won .zo, .rt.won .ro { animation: none; opacity: .45; }
  .dealer-art, .lens.in, .rn, .tag, .stk .dk.new, .stk.won, .numbers-strip .hn.last.new, .countdown b.beat, .winlabel, .dealer-say.pop, .seat, .dolly.drop i, .z.tap .zo, .rt.tap .ro { animation-duration: .01s !important; animation-delay: 0s !important; }
  .chip-btn, .rtable.settled .z, .rtrack.settled .rt { transition: none; }
}
/* même chose quand le joueur a coupé « Animation » dans son profil (la classe est posée par ui.js) */
.rl.calm .dealer-fig, .rl.calm .hc-row.hot .hc-ic, .rl.calm .ctl.primary.ready::after, .rl.calm .rl-scene.late::after, .rl.calm .rb-status.late { animation: none; }
.rl.calm .z.won .zo, .rl.calm .rt.won .ro { animation: none; opacity: .45; }
.rl.calm .dealer-art, .rl.calm .lens.in, .rl.calm .rn, .rl.calm .tag, .rl.calm .stk .dk.new, .rl.calm .stk.won, .rl.calm .numbers-strip .hn.last.new, .rl.calm .countdown b.beat, .rl.calm .winlabel, .rl.calm .dealer-say.pop, .rl.calm .seat, .rl.calm .dolly.drop i, .rl.calm .z.tap .zo, .rl.calm .rt.tap .ro { animation-duration: .01s !important; animation-delay: 0s !important; }
.rl.calm .chip-btn, .rl.calm .rtable.settled .z, .rl.calm .rtrack.settled .rt { transition: none; }
