/* Louis Casino : habillage de chaque jeu. */

/* ================================================================ symboles (machine, grattage) */
.cz-sym { position: relative; display: flex; align-items: center; justify-content: center; }
.cz-sym .em { font-size: calc(var(--sz, 90px) * .56); line-height: 1; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
.cz-sym .tx { font: 900 calc(var(--sz, 90px) * .5)/1 var(--police); letter-spacing: -.04em; }
.cz-sym.sept .tx { color: #e11d48; text-shadow: 0 3px 0 #7f1d1d, 0 0 12px rgba(225, 29, 72, .35); font-size: calc(var(--sz, 90px) * .66); }
.cz-sym.bar .tx { font-size: calc(var(--sz, 90px) * .26); color: #fff; background: #1f1530; padding: .18em .35em; border-radius: 6px; border: 3px solid var(--or); letter-spacing: .04em; }
.cz-sym .im { width: 72%; height: 72%; border-radius: 50%; background: center / cover no-repeat; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--or), 0 4px 8px rgba(0, 0, 0, .35); }
.cz-sym.bonus .im { border-radius: 0; box-shadow: none; background-size: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); }
.cz-sym.joker .im { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ff3fa4, 0 0 14px rgba(255, 63, 164, .6); }
.cz-sym .lab { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); font: 900 calc(var(--sz, 90px) * .13)/1 var(--police); letter-spacing: .06em; color: #fff; background: #ff3fa4; padding: 2px 6px; border-radius: 999px; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); white-space: nowrap; }
.cz-sym.bonus .lab { background: var(--or-btn); color: #3a2500; }

/* ================================================================ machine à sous */
.cz-table.machine { background: radial-gradient(90% 70% at 50% 0%, rgba(255, 63, 164, .35), transparent 60%), linear-gradient(180deg, #2a0d4f, #12061f); }
.sl-cabine { --sz: clamp(52px, 11vw, 108px); position: relative; padding: 14px 14px 16px; border-radius: 28px; background: linear-gradient(180deg, #5b21b6, #2e1065 60%, #1e0b45); border: 3px solid var(--or); box-shadow: 0 0 0 4px #3b0f6d, 0 0 0 6px rgba(245, 197, 66, .5), 0 20px 50px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 255, 255, .25); }
.sl-lampes { display: flex; justify-content: space-between; padding: 0 10px 8px; }
.sl-lampes i { width: 9px; height: 9px; border-radius: 50%; background: #ffe08e; box-shadow: 0 0 8px #ffd23f; animation: lampe 1.2s steps(2) infinite; }
.sl-lampes i:nth-child(2n) { animation-delay: .6s; }
@keyframes lampe { 50% { background: #7a5200; box-shadow: none; } }
.sl-fronton { text-align: center; margin-bottom: 10px; font: 900 22px/1 var(--police); letter-spacing: .12em; }
.sl-fronton span { color: #fff; margin-right: 8px; } .sl-fronton b { background: linear-gradient(180deg, #fff7dc, var(--or)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sl-fenetre { position: relative; display: grid; grid-template-columns: repeat(5, var(--sz)); gap: 6px; padding: 8px; border-radius: 16px; background: #120826; box-shadow: inset 0 4px 14px rgba(0, 0, 0, .7); }
.sl-rouleau { position: relative; height: calc(var(--sz) * 3); overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #d9d2e8, #fff 20%, #fff 80%, #d9d2e8); box-shadow: inset 0 10px 14px -8px rgba(0, 0, 0, .5), inset 0 -10px 14px -8px rgba(0, 0, 0, .5); }
.sl-rouleau .cz-sym { position: absolute; left: 0; top: 0; width: 100%; height: var(--sz); will-change: transform; }
.sl-rouleau.flou .cz-sym { filter: blur(2.5px); }
.sl-rouleau.suspense { box-shadow: 0 0 0 3px var(--or), 0 0 22px rgba(245, 197, 66, .9), inset 0 10px 14px -8px rgba(0, 0, 0, .5); animation: suspense .35s ease-in-out infinite alternate; }
@keyframes suspense { to { box-shadow: 0 0 0 3px #ff3fa4, 0 0 30px rgba(255, 63, 164, .9), inset 0 10px 14px -8px rgba(0, 0, 0, .5); } }
.sl-rouleau .cz-sym.gagne { animation: symgagne .6s ease-in-out infinite alternate; z-index: 2; }
@keyframes symgagne { from { background: rgba(245, 197, 66, .15); } to { background: rgba(245, 197, 66, .55); transform: var(--tr, none); } }
.sl-lignes { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); pointer-events: none; z-index: 3; }
.sl-trait { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .7)); stroke-dasharray: 2000; animation: trait .5s ease-out; }
@keyframes trait { from { stroke-dashoffset: 2000; } }
.sl-gainligne { position: absolute; left: 50%; bottom: -16px; transform: translate(-50%, 0); z-index: 4; padding: 4px 14px; border-radius: 999px; background: var(--or-btn); color: #2a1a05; font-weight: 900; font-size: 14px; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.sl-gainligne.vu { opacity: 1; }
.sl-compteur { margin: 16px auto 0; width: max-content; min-width: 60%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 16px; border-radius: 12px; background: #0b0518; border: 2px solid rgba(245, 197, 66, .5); font-family: var(--police); }
.sl-compteur span { font-size: 12px; font-weight: 900; color: #ff8fd0; letter-spacing: .14em; }
.sl-compteur b { font-size: 24px; color: #ffe08e; font-variant-numeric: tabular-nums; text-shadow: 0 0 10px rgba(255, 210, 63, .6); }
.sl-levier { position: absolute; right: max(10px, calc(50% - var(--sz, 100px) * 2.5 - 110px)); top: 50%; width: 44px; height: 170px; transform: translateY(-50%); border: 0; background: none; padding: 0; }
.sl-levier i { position: absolute; left: 50%; bottom: 0; width: 12px; height: 140px; margin-left: -6px; border-radius: 6px; background: linear-gradient(90deg, #888, #eee, #888); transform-origin: 50% 100%; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.sl-levier b { position: absolute; left: 50%; top: 0; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8c9b, #c8102e 70%); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.sl-levier.tire i { animation: levier .6s ease; } .sl-levier.tire b { animation: levierB .6s ease; }
@keyframes levier { 40% { transform: scaleY(-.2); } } @keyframes levierB { 40% { transform: translateY(150px); } }
@media (max-width: 900px) { .sl-levier { display: none; } }

/* ================================================================ grattage */
.gr-zone { width: 100%; display: flex; align-items: center; justify-content: center; }
.gr-vide { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 30px; border-radius: 22px; border: 3px dashed rgba(255, 255, 255, .25); text-align: center; color: var(--texte-doux); }
.gr-vide b { font-size: 20px; color: #fff; }
.gr-ticket { width: min(380px, 100%); padding: 14px; border-radius: 20px; background: linear-gradient(160deg, #e6fffb, #b8f3ea); color: #0f3d38; box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 0 0 3px #0d9488, inset 0 0 0 6px #e6fffb, inset 0 0 0 8px #0d9488; animation: ticket .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ticket { from { transform: translateY(40px) rotate(-6deg) scale(.8); opacity: 0; } }
.gr-tete { text-align: center; margin: 4px 0 10px; } .gr-tete b { display: block; font: 900 24px/1 var(--police); letter-spacing: .04em; color: #0f766e; } .gr-tete span { font-size: 12px; font-weight: 800; color: #11806f; }
.gr-grille { --sz: clamp(70px, 22vw, 100px); position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: 14px; background: #fff; touch-action: none; }
.gr-case { aspect-ratio: 1; border-radius: 10px; background: radial-gradient(circle, #fffbea, #fde68a); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.gr-case .cz-sym { width: 100%; height: 100%; }
.gr-case.gagne { animation: grgagne .7s ease-in-out infinite alternate; }
@keyframes grgagne { from { box-shadow: 0 0 0 3px var(--or); } to { box-shadow: 0 0 0 4px #ff3fa4, 0 0 18px rgba(255, 63, 164, .7); transform: scale(1.05); } }
.gr-voile { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; cursor: crosshair; touch-action: none; }
.gr-voile.parti { transition: opacity .5s; opacity: 0; pointer-events: none; }
.gr-pied { text-align: center; margin-top: 10px; font-size: 12.5px; font-weight: 800; color: #11806f; }

/* ================================================================ roue de la fortune */
.cz-table.roue-t { background: radial-gradient(80% 70% at 50% 20%, rgba(245, 197, 66, .3), transparent 65%), linear-gradient(180deg, #3d2a05, #120a02); }
.ro-boite { position: relative; width: min(420px, 82vw, 58vh); aspect-ratio: 1; }
.ro-cv { width: 100%; height: 100%; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .6)); }
.ro-fleche { position: absolute; left: 50%; top: -10px; width: 34px; height: 46px; margin-left: -17px; transform-origin: 50% 20%; z-index: 2;
  background: linear-gradient(180deg, #ff6b81, #c8102e); clip-path: polygon(0 0, 100% 0, 100% 40%, 50% 100%, 0 40%); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5)); }
.ro-fleche.claque { animation: claque .12s ease-out; }
@keyframes claque { 40% { transform: rotate(-16deg); } }
.ro-tapis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 640px; }
.ro-spot { --c: #f5c542; position: relative; min-height: 76px; border-radius: 16px; border: 2px solid color-mix(in srgb, var(--c) 70%, #fff); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 18%, rgba(0, 0, 0, .4))); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 2px; transition: transform .12s; }
.ro-spot:hover:not(:disabled) { transform: translateY(-2px); }
.ro-spot b { font: 900 24px/1 var(--police); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); } .ro-spot img { width: 30px; height: 30px; }
.ro-spot small { font-size: 10px; font-weight: 800; opacity: .85; }
.ro-spot .pile, .cr-zone .pile, .bac-zone .pile { position: absolute; top: -10px; right: -6px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.pile em { font-style: normal; font-size: 11px; font-weight: 900; background: rgba(0, 0, 0, .7); padding: 0 6px; border-radius: 999px; margin-top: 2px; }
.ro-spot.gagne, .cr-zone.gagne, .bac-zone.gagne { box-shadow: 0 0 0 3px var(--or), 0 0 24px rgba(245, 197, 66, .8); animation: vibreSpot .5s ease 3; }
.ro-spot.perd, .cr-zone.perd, .bac-zone.perd { opacity: .55; filter: grayscale(.5); }
.ro-spot.sortie { box-shadow: 0 0 0 3px #fff, 0 0 26px rgba(255, 255, 255, .7); }
@keyframes vibreSpot { 50% { transform: scale(1.06); } }
@media (max-width: 640px) { .ro-tapis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ro-spot { min-height: 62px; } }

/* ================================================================ keno */
.cz-table.keno-t { background: radial-gradient(80% 60% at 50% 0%, rgba(240, 138, 36, .35), transparent 60%), linear-gradient(180deg, #3a1a04, #120801); justify-content: flex-start; }
.ke-tete { width: 100%; max-width: 640px; display: flex; justify-content: space-between; font-weight: 900; font-size: 15px; }
.ke-trouves { color: var(--or-doux); }
.ke-grille { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; width: 100%; max-width: 640px; }
.ke-case { aspect-ratio: 1; min-height: 30px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08); color: #fff; font: 900 15px var(--police); padding: 0; transition: transform .12s, background .15s; }
.ke-case:hover:not(:disabled) { background: rgba(255, 255, 255, .18); }
.ke-case.choisi { background: linear-gradient(180deg, #ffb35c, #e0711a); border-color: #ffd29a; box-shadow: 0 3px 10px rgba(224, 113, 26, .45); }
.ke-case.tire { background: rgba(255, 255, 255, .03); color: rgba(255, 255, 255, .35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.ke-case.choisi.tire { color: #fff; }
.ke-case.touche { background: var(--or-btn); color: #2a1a05; border-color: #fff; animation: kehit .45s cubic-bezier(.2, 1.8, .4, 1); box-shadow: 0 0 16px rgba(245, 197, 66, .8); }
@keyframes kehit { from { transform: scale(1.4); } }
.ke-rail { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; width: 100%; max-width: 640px; min-height: 36px; }
.ke-boule { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 900 13px var(--police); color: #7a2e00; background: radial-gradient(circle at 35% 30%, #fff, #ffe0b8 60%, #f0a050); box-shadow: 0 3px 6px rgba(0, 0, 0, .4); animation: boule .35s cubic-bezier(.2, 1.6, .4, 1); }
.ke-boule.touche { background: radial-gradient(circle at 35% 30%, #fff, #ffe08e 55%, #e0a400); box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(245, 197, 66, .9); }
@keyframes boule { from { transform: translateY(-30px) scale(.4); opacity: 0; } }
@media (max-width: 640px) { .ke-grille { gap: 3px; } .ke-case { font-size: 12.5px; border-radius: 7px; min-height: 0; } .ke-boule { width: 27px; height: 27px; font-size: 11.5px; } }

/* ================================================================ roulette */
.roulette-t { justify-content: flex-start; padding: 14px; }
.rl-haut { display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; }
.rl-roue { width: min(300px, 60vw, 42vh); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 14px 30px rgba(0, 0, 0, .55); }
.rl-roue canvas { width: 100%; height: 100%; display: block; }
.rl-histo { display: flex; flex-direction: column; gap: 4px; max-height: min(300px, 42vh); overflow: hidden; }
.rl-h { width: 34px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font: 900 14px var(--police); color: #fff; opacity: .7; }
.rl-h.rouge { background: #c8102e; } .rl-h.noir { background: #151515; border: 1px solid rgba(255, 255, 255, .2); } .rl-h.vert { background: #169b4c; }
.rl-h.dernier { opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 2px var(--or); }
.rl-tapis { position: relative; width: 100%; max-width: 860px; }
.rl-plan { display: grid; gap: 3px; }
.rl-plan.h { grid-template-columns: 1fr repeat(12, minmax(0, 1fr)) 1.05fr; grid-template-rows: repeat(3, 50px) 42px 42px; }
.rl-plan.v { grid-template-columns: 1fr 1fr repeat(3, minmax(0, 1.25fr)); grid-template-rows: 46px repeat(12, 44px) 44px; }
.rl-c { position: relative; min-width: 0; padding: 0; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; font: 900 15px var(--police); background: transparent; display: flex; align-items: center; justify-content: center; transition: background .12s, box-shadow .12s; touch-action: manipulation; }
.rl-c.num span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 50%; }
.rl-c.num.rouge span { background: #c8102e; } .rl-c.num.noir span { background: #151515; }
.rl-c.num.vert { background: #169b4c; font-size: 18px; }
.rl-c.ext { font-size: 13px; letter-spacing: .03em; } .rl-c.ext sup { font-size: 9px; }
.rl-plan.v .rl-c.ext.simple, .rl-plan.v .rl-c.ext.dz { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; }
.rl-c .lo { display: inline-block; width: 26px; height: 18px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rl-c .lo.rouge { background: #e01e3c; } .rl-c .lo.noir { background: #111; box-shadow: inset 0 0 0 2px #fff; }
.rl-plan.v .rl-c .lo { width: 18px; height: 26px; }
.rl-c:hover:not(:disabled), .rl-c.apercu { background: rgba(255, 255, 255, .22); }
.rl-c.sortie { animation: sortie .6s ease-in-out 4 alternate; box-shadow: 0 0 0 3px var(--or), 0 0 22px rgba(245, 197, 66, .9); z-index: 2; }
@keyframes sortie { to { background: rgba(245, 197, 66, .5); } }
.rl-calque { position: absolute; inset: 0; pointer-events: none; }
.rl-jeton { position: absolute; transform: translate(-50%, -50%); animation: poseJ .25s cubic-bezier(.2, 1.6, .4, 1); z-index: 3; }
@keyframes poseJ { from { transform: translate(-50%, -90%) scale(1.4); opacity: 0; } }
.rl-jeton.gagnant { animation: jetonGagne .5s ease-in-out infinite alternate; box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(245, 197, 66, .9); }
@keyframes jetonGagne { to { transform: translate(-50%, -62%) scale(1.15); } }
.rl-jeton.perdu { transition: opacity .6s .4s, transform .6s .4s; opacity: 0; transform: translate(-50%, -50%) scale(.4); }
.rl-modes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.rl-modes .cz-op { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; font-size: 12.5px; padding: 3px 0; }
.rl-modes .cz-op small { font-size: 10px; font-weight: 800; opacity: .75; }
@media (max-width: 640px) { .rl-roue { width: min(210px, 52vw); } .rl-histo { max-height: 210px; } .rl-h { width: 30px; height: 26px; font-size: 12.5px; } .rl-c.num span { min-width: 26px; height: 26px; } .rl-c { font-size: 13.5px; } }

/* ================================================================ craps & dés 3D */
.craps-t { justify-content: space-between; }
.cr-points { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 620px; padding-top: 18px; }
.cr-pt { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .6); font: 900 18px var(--police); color: #fff; letter-spacing: .05em; }
.cr-palet { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 900 12px var(--police); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); box-shadow: 0 4px 8px rgba(0, 0, 0, .5); z-index: 2; }
.cr-palet.off { background: #111; color: #fff; border: 3px solid #fff; }
.cr-palet.on { background: #fff; color: #111; border: 3px solid #111; }
.cr-piste { position: relative; display: flex; align-items: center; justify-content: center; gap: 30px; min-height: 140px; width: 100%; perspective: 700px; }
.cr-somme { position: absolute; right: 8%; top: 50%; transform: translateY(-50%) scale(.6); font: 900 46px var(--police); color: #fff; opacity: 0; transition: opacity .2s, transform .3s cubic-bezier(.2, 1.6, .4, 1); text-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.cr-somme.vu { opacity: 1; transform: translateY(-50%) scale(1); } .cr-somme.sept { color: #ff8c9b; }
.cr-piste.roule .de3 { animation: deRoule 1.1s cubic-bezier(.2, .8, .3, 1); }
.cr-piste.roule .de3:nth-child(2) { animation-duration: 1.2s; }
@keyframes deRoule { 0% { transform: translate(-180px, -90px) scale(.7); } 45% { transform: translate(-30px, 18px); } 65% { transform: translate(10px, -14px); } 82% { transform: translate(4px, 4px); } 100% { transform: none; } }
.de3 { --d: 70px; width: var(--d); height: var(--d); perspective: 600px; }
.de3 .cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.de3 .face { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 12%; border-radius: 16%; background: radial-gradient(circle at 30% 25%, #fff, #f1e9f7 70%, #d9cde6); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08), inset 0 -4px 8px rgba(0, 0, 0, .12); backface-visibility: hidden; }
.de3 .face i { place-self: center; width: 62%; aspect-ratio: 1; border-radius: 50%; }
.de3 .face i.on { background: radial-gradient(circle at 40% 35%, #ff5a6e, #9b0f2a); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
.de3 .f1 { transform: translateZ(calc(var(--d) / 2)); } .de3 .f6 { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.de3 .f2 { transform: rotateX(90deg) translateZ(calc(var(--d) / 2)); } .de3 .f5 { transform: rotateX(-90deg) translateZ(calc(var(--d) / 2)); }
.de3 .f3 { transform: rotateY(90deg) translateZ(calc(var(--d) / 2)); } .de3 .f4 { transform: rotateY(-90deg) translateZ(calc(var(--d) / 2)); }
.cr-journal { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; min-height: 28px; max-width: 620px; }
.cr-l { padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-weight: 800; font-size: 12.5px; animation: entree .25s; }
.cr-l.bon { background: rgba(95, 224, 160, .3); color: #b6ffd9; } .cr-l.mauvais { background: rgba(255, 90, 110, .3); color: #ffc2cb; } .cr-l.point { background: #fff; color: #111; }
.cr-zones, .bac-zones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 620px; }
.cr-zone, .bac-zone { position: relative; min-height: 70px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .15); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; transition: transform .12s, background .15s; }
.cr-zone:hover:not(:disabled), .bac-zone:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.cr-zone b, .bac-zone b { font: 900 15px/1.1 var(--police); letter-spacing: .04em; text-align: center; } .cr-zone small, .bac-zone small { font-size: 11px; font-weight: 800; color: var(--or-doux); }
.cr-zone.z-pass { border-color: #fff; } .cr-zone.z-field { border-color: #ffd23f; } .cr-zone.z-any7 { border-color: #ff8c9b; }
@media (max-width: 640px) { .cr-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .de3 { --d: 58px; } .cr-pt { height: 40px; font-size: 14px; } .cr-somme { font-size: 36px; right: 4%; } }

/* ================================================================ dés « plus ou moins » */
.cz-table.des-t { background: radial-gradient(90% 70% at 50% 0%, rgba(95, 224, 160, .3), transparent 60%), linear-gradient(180deg, #0d3a26, #06140d); gap: 18px; }
.ds-ecran { text-align: center; padding: 14px 30px; border-radius: 22px; background: rgba(0, 0, 0, .35); border: 2px solid rgba(255, 255, 255, .15); min-width: min(320px, 90%); transition: border-color .2s, box-shadow .2s; }
.ds-nombre { font: 900 clamp(48px, 13vw, 84px)/1 var(--police); font-variant-numeric: tabular-nums; color: #fff; letter-spacing: -.02em; }
.ds-ecran.roule .ds-nombre { color: #cfe; filter: blur(.4px); }
.ds-ecran.gagne { border-color: #5fe0a0; box-shadow: 0 0 30px rgba(95, 224, 160, .45); } .ds-ecran.gagne .ds-nombre { color: #8cffc5; }
.ds-ecran.perd { border-color: rgba(255, 90, 110, .6); } .ds-ecran.perd .ds-nombre { color: #ffb3c0; }
.ds-verdict { margin-top: 4px; font-weight: 900; font-size: 16px; color: var(--texte-doux); } .ds-verdict.gagne { color: #8cffc5; } .ds-verdict.perd { color: #ffb3c0; }
.ds-piste { position: relative; width: min(640px, 100%); height: 56px; margin-top: 30px; }
.ds-piste::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 16px; margin-top: -8px; border-radius: 999px; background: #e2364f; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4); }
.ds-zone { position: absolute; top: 50%; height: 16px; margin-top: -8px; border-radius: 999px; background: linear-gradient(180deg, #7af0b8, #28b874); pointer-events: none; transition: left .15s, width .15s; }
.ds-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: none; }
.ds-range::-webkit-slider-runnable-track { height: 56px; background: transparent; }
.ds-range::-moz-range-track { height: 56px; background: transparent; }
.ds-range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 46px; margin-top: 5px; border-radius: 12px; background: #fff; border: 3px solid #1b1238; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.ds-range::-moz-range-thumb { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 3px solid #1b1238; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.ds-marque { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 2; }
.ds-marque span { display: block; padding: 4px 9px; border-radius: 10px; background: #fff; color: #111; font: 900 14px var(--police); white-space: nowrap; position: relative; }
.ds-marque span::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.ds-marque.vu { opacity: 1; } .ds-marque.gagne span { background: #5fe0a0; } .ds-marque.gagne span::after { border-top-color: #5fe0a0; } .ds-marque.perd span { background: #ff8c9b; } .ds-marque.perd span::after { border-top-color: #ff8c9b; }
.ds-grad { display: flex; justify-content: space-between; width: min(640px, 100%); font-size: 12px; font-weight: 800; color: var(--texte-doux); margin-top: -10px; }
.ds-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(640px, 100%); }
.ds-stats div { padding: 8px 6px; border-radius: 14px; background: rgba(0, 0, 0, .3); text-align: center; display: flex; flex-direction: column; gap: 2px; }
.ds-stats small { font-size: 11px; font-weight: 800; color: var(--texte-doux); } .ds-stats b { font: 900 17px var(--police); font-variant-numeric: tabular-nums; }
.ds-sens { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 640px) { .ds-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================================================================ cartes : blackjack, baccarat, 3 cartes, hi-lo */
.bj-t, .bac-t, .tc-t, .hl-t { justify-content: space-between; padding-top: 22px; }
.bj-zone { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 150px; justify-content: center; }
.bj-arc { text-align: center; color: rgba(245, 197, 66, .85); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; display: flex; flex-direction: column; gap: 2px; padding: 6px 18px; border-top: 2px solid rgba(245, 197, 66, .35); border-radius: 50% 50% 0 0 / 30px 30px 0 0; }
.bj-arc small { color: rgba(255, 255, 255, .55); font-size: 11px; letter-spacing: .04em; text-transform: none; }
.bj-mains { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.bj-main { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 18px; transition: background .2s, box-shadow .2s; }
.bj-main.active { background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 2px rgba(245, 197, 66, .6); }
.bj-info { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.bj-mise { font-weight: 900; color: var(--or-doux); font-size: 13px; }
.bj-issue { font-weight: 900; font-size: 14px; padding: 2px 10px; border-radius: 999px; }
.bj-issue:empty { display: none; }
.bj-issue.gagne, .bj-issue.blackjack, .bj-issue.gagnee, .bj-issue.win { background: rgba(95, 224, 160, .3); color: #b6ffd9; } .bj-issue.perdu, .bj-issue.perdue, .bj-issue.bust { background: rgba(255, 90, 110, .3); color: #ffc2cb; } .bj-issue.egalite, .bj-issue.push { background: rgba(255, 255, 255, .15); }
.bj-acts:empty, .cz-ligne-btn:empty { display: none; }
.bj-acts .cz-btn small, .hl-acts .cz-btn small { margin-left: 4px; padding: 0 6px; border-radius: 6px; background: rgba(0, 0, 0, .18); font-size: 11px; }
.bac-duel { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; flex-wrap: wrap; }
.bac-cote { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 18px; min-width: 220px; transition: box-shadow .3s, background .3s; }
.bac-cote.gagne { background: rgba(245, 197, 66, .12); box-shadow: 0 0 0 2px var(--or), 0 0 26px rgba(245, 197, 66, .4); }
.bac-vs { font: 900 20px var(--police); color: rgba(255, 255, 255, .5); }
.bac-zones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bac-zone.z-joueur { border-color: #7dd3fc; } .bac-zone.z-banquier { border-color: #fca5a5; } .bac-zone.z-egalite { border-color: #a7f3d0; }
.tc-msg { font-weight: 800; color: rgba(255, 255, 255, .7); text-align: center; min-height: 20px; }
.tc-nom { color: var(--or-doux); letter-spacing: 0; text-transform: none; font-size: 13px; }
.tc-cercles { display: flex; gap: 14px; justify-content: center; }
.tc-c { width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tc-c small { font-size: 9.5px; font-weight: 900; letter-spacing: .06em; } .tc-c b { font-size: 15px; color: var(--or-doux); }
.tc-pp { display: inline-flex; gap: 6px; } .tc-pp .cz-op { padding: 0 10px; font-size: 13px; }
.hl-scene { position: relative; display: flex; align-items: center; justify-content: center; gap: 40px; width: 100%; min-height: 200px; }
.hl-pile { position: relative; width: 70px; height: 100px; } .hl-pile .cz-sabot { position: static; }
.hl-carte .cz-cartejeu { --cw: 120px; }
.hl-multi { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 120px; }
.hl-multi small { font-size: 12px; font-weight: 800; color: var(--texte-doux); } .hl-multi b { font: 900 34px var(--police); color: var(--or-doux); font-variant-numeric: tabular-nums; }
.hl-multi.pop b { animation: pop .4s cubic-bezier(.2, 1.8, .4, 1); } @keyframes pop { from { transform: scale(1.5); color: #fff; } }
.hl-gain { font-size: 13px; font-weight: 800; color: #b6ffd9; min-height: 18px; }
.hl-hist { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; min-height: 30px; }
.hl-mini { padding: 4px 7px; border-radius: 6px; background: #fffdf6; color: #111; font-weight: 900; font-size: 13px; animation: entree .3s; } .hl-mini.rouge { color: #d0193c; }
.hl-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .hl-acts:empty { display: none; }
.hl-acts .hl-b { flex-direction: column; gap: 0; line-height: 1.1; min-height: 64px; } .hl-acts .hl-b small { margin: 2px 0 0; background: none; font-size: 12px; }
.hl-acts .hl-enc { grid-column: 1 / -1; } .hl-acts .petit { grid-column: 1 / -1; }
@media (max-width: 640px) { .bac-cote { min-width: 0; padding: 6px; } .bac-duel { gap: 6px; } .hl-carte .cz-cartejeu { --cw: 92px; } .hl-scene { gap: 18px; } .bj-zone { min-height: 120px; } .tc-c { width: 64px; height: 64px; } .bj-mains { gap: 10px; } }

/* ================================================================ vidéo poker */
.cz-table.vp-t { background: linear-gradient(180deg, #0c1445, #050a24); border-color: rgba(125, 211, 252, .4); }
.vp-table { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; width: min(520px, 100%); padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 2px solid rgba(125, 211, 252, .35); font-weight: 800; font-size: 13px; }
.vp-ligne { display: flex; justify-content: space-between; padding: 2px 6px; border-radius: 6px; color: #bae6fd; }
.vp-ligne b { color: #ffe08e; font-variant-numeric: tabular-nums; }
.vp-ligne.actif { background: var(--or-btn); color: #2a1a05; animation: vibreSpot .5s ease 3; } .vp-ligne.actif b { color: #2a1a05; }
.vp-main { min-height: 140px; } .vp-main .cz-cartejeu { cursor: pointer; }
.vp-tenues { display: flex; gap: 8px; justify-content: center; }
.vp-tenir { width: calc(var(--cw, 86px) + 8px); min-height: 44px; border-radius: 12px; border: 2px solid rgba(125, 211, 252, .5); background: rgba(125, 211, 252, .1); color: #bae6fd; font: 900 13px var(--police); }
.vp-tenir.on { background: var(--or-btn); color: #2a1a05; border-color: transparent; }
.vp-tenir:disabled { opacity: .4; }
.vp-etat { font-weight: 900; color: #bae6fd; min-height: 20px; }
@media (max-width: 640px) { .vp-t .cz-cartejeu { --cw: 58px; } .vp-tenir { width: 62px; font-size: 11px; } .vp-tenues { gap: 6px; } .vp-table { font-size: 11.5px; gap: 0 8px; padding: 6px 8px; } .vp-main.ecartee .cz-cartejeu { margin: 0 3px; } }

/* ================================================================ crash */
.cz-table.crash-t { padding: 0; background: radial-gradient(90% 80% at 20% 100%, rgba(255, 90, 54, .25), transparent 60%), linear-gradient(180deg, #1a0a26, #0a0510); }
.cs-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.cs-grand { --chaud: 0; position: relative; z-index: 2; text-align: center; pointer-events: none; }
.cs-grand b { display: block; font: 900 clamp(52px, 14vw, 96px)/1 var(--police); font-variant-numeric: tabular-nums; color: color-mix(in srgb, #fff calc(100% - var(--chaud) * 100%), #ffb347); text-shadow: 0 6px 20px rgba(0, 0, 0, .6); }
.cs-grand small { font-weight: 900; font-size: 15px; color: var(--texte-doux); }
.cs-grand.gagne b { color: #8cffc5; } .cs-grand.boum b { color: #ff5a6e; animation: secoue .4s; } .cs-grand.boum small { color: #ff8c9b; font-size: 20px; }
@keyframes secoue { 20% { transform: translateX(-8px) rotate(-2deg); } 40% { transform: translateX(8px) rotate(2deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
.cs-histo { position: absolute; top: 10px; left: 50px; right: 10px; display: flex; gap: 5px; overflow: hidden; z-index: 2; }
.cs-h { padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 900; font-size: 12px; white-space: nowrap; } .cs-h.haut { color: #8cffc5; } .cs-h.bas { color: #ff8c9b; }
.cs-auto input { width: 90px; min-height: 36px; border-radius: 10px; border: 1px solid var(--verre-bord); background: rgba(10, 6, 25, .5); color: #fff; font-weight: 900; text-align: center; padding: 0 6px; }
.crash-t.boum { animation: secoue .4s; }

/* ================================================================ mines */
.cz-table.mines-t { background: radial-gradient(90% 70% at 50% 0%, rgba(58, 160, 255, .3), transparent 60%), linear-gradient(180deg, #0b2547, #050e1d); }
.mn-bandeau { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(460px, 100%); }
.mn-bandeau div { text-align: center; padding: 6px; border-radius: 12px; background: rgba(0, 0, 0, .3); display: flex; flex-direction: column; }
.mn-bandeau small { font-size: 11px; font-weight: 800; color: var(--texte-doux); } .mn-bandeau b { font: 900 18px var(--police); font-variant-numeric: tabular-nums; } .mn-bandeau .m { color: var(--or-doux); }
.mn-grille { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: min(460px, 100%); }
.mn-case { position: relative; aspect-ratio: 1; min-height: 44px; border: 0; padding: 0; border-radius: 14px; background: none; perspective: 500px; }
.mn-case .dos, .mn-case .face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); display: flex; align-items: center; justify-content: center; }
.mn-case .dos { background: linear-gradient(180deg, #4a63a8, #2d3f73); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 5px 0 #1b264a, 0 8px 12px rgba(0, 0, 0, .4); }
.mn-case .face { transform: rotateY(180deg); background: #0c1a33; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1); }
.mines-t .mn-grille.enjeu .mn-case:not(.ouverte):hover .dos { background: linear-gradient(180deg, #5b78c7, #3a508f); transform: translateY(-2px); }
.mn-grille:not(.enjeu) .mn-case:not(.ouverte) { cursor: default; }
.mn-case.ouverte .dos { transform: rotateY(-180deg); } .mn-case.ouverte .face { transform: rotateY(0); }
.mn-case.attente .dos { animation: attente .4s ease-in-out infinite alternate; } @keyframes attente { to { filter: brightness(1.4); } }
.mn-case.gemme .face { background: radial-gradient(circle, #13406b, #0c1a33); }
.mn-case.mine .face { background: radial-gradient(circle, #8b1a1a, #2a0808); }
.mn-case.revelee { opacity: .6; } .mn-case.revelee.gemme .face { background: #0c1a33; }
.mn-case .diamant { width: 56%; aspect-ratio: 1; background: linear-gradient(135deg, #b8fff1, #2dd4bf 50%, #0f766e); clip-path: polygon(50% 100%, 0 38%, 22% 8%, 78% 8%, 100% 38%); filter: drop-shadow(0 0 8px rgba(94, 234, 212, .8)); animation: gemme .5s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes gemme { from { transform: scale(0) rotate(-40deg); } }
.mn-case .bombe { position: relative; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #555, #111); box-shadow: 0 0 14px rgba(255, 90, 54, .8); animation: gemme .4s cubic-bezier(.2, 1.8, .4, 1); }
.mn-case .bombe::after { content: ""; position: absolute; right: -12%; top: -14%; width: 30%; height: 30%; border-radius: 50%; background: radial-gradient(#fff, #ffd23f 40%, #ff5a36 70%, transparent 72%); }
.mn-grille.boum { animation: secoue .45s; }
.mn-range { width: 100%; accent-color: var(--or); min-height: 36px; }
.mn-choix { display: flex; flex-direction: column; gap: 8px; }

/* ================================================================ plinko */
.cz-table.plinko-t { padding: 6px; justify-content: flex-start; background: radial-gradient(90% 70% at 50% 0%, rgba(224, 64, 251, .3), transparent 60%), linear-gradient(180deg, #2a0b38, #0d0414); }
.pk-cv { width: 100%; display: block; }
.pk-derniers { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.pk-tag { padding: 3px 8px; border-radius: 8px; font: 900 12px var(--police); color: #fff; text-align: center; animation: entree .3s; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }

@media (max-width: 640px) {
  .cz-table.crash-t, .cz-table.plinko-t { min-height: 400px; }
}
.rl-c.simple.noir { background: rgba(255, 255, 255, .14); }
.bj-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.bj-acts .cz-btn { padding: 0 8px; font-size: 16px; }

/* ================================================================ les Louis partout */
/* symboles : visages de Louis, petit badge de valeur */
.cz-sym .im { width: 76%; height: 76%; background-size: cover; background-position: center 30%; }
.cz-sym .badge { position: absolute; right: 4%; bottom: 6%; min-width: 26%; height: 26%; padding: 0 3px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .35); font: 900 calc(var(--sz, 90px) * .15)/1 var(--police); color: #1f1530; }
.cz-sym.sept .badge { color: #e11d48; font-size: calc(var(--sz, 90px) * .2); }
.cz-sym.bar .badge { background: #1f1530; color: #fff; border: 2px solid var(--or); font-size: calc(var(--sz, 90px) * .11); }
.cz-sym.or .im { box-shadow: 0 0 0 3px #fff7dc, 0 0 0 6px var(--or), 0 0 18px rgba(245, 197, 66, .9); }
.cz-sym.or .lab { background: var(--or-btn); color: #3a2500; }
/* as : la pièce Louis au centre */
.cz-cartejeu .as { position: absolute; inset: 24% 18%; background: url(/monnaie-louis-64.png) center / contain no-repeat; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.cz-cartejeu .as::after { content: attr(data-r); position: absolute; left: 50%; bottom: -8%; transform: translateX(-50%); font-size: calc(var(--cw) * .2); }
.cz-cartejeu .portrait { background-position: center 25%; }
/* jetons à l'effigie de la pièce Louis */
.cz-jeton::before { background: var(--jc) url(/monnaie-louis-64.png) center / 74% no-repeat; background-blend-mode: luminosity; }
.cz-jeton span { background: color-mix(in srgb, var(--jc) 80%, transparent); border-radius: 6px; padding: 0 2px; }
/* tapis : logo « Louis Casino » en filigrane */
.cz-table.tapis::before { content: "LOUIS CASINO"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); font: 900 clamp(34px, 8vw, 72px)/1 var(--police); letter-spacing: .12em; color: rgba(255, 255, 255, .055); white-space: nowrap; pointer-events: none; z-index: 0;
  text-shadow: 0 0 1px rgba(245, 197, 66, .15); }
.cz-table.tapis::after { content: ""; position: absolute; left: 50%; top: 50%; width: clamp(80px, 16vw, 150px); aspect-ratio: 1; transform: translate(-50%, -50%); background: url(/monnaie-louis.png) center / contain no-repeat; opacity: .06; pointer-events: none; z-index: 0; }
.cz-table.tapis > * { position: relative; z-index: 1; }
.cz-table.tapis > .cz-banniere { position: absolute; z-index: 20; }
/* mines : case sûre = pièce Louis, mine = Louis Bombe */
.mn-case .diamant { width: 66%; clip-path: none; background: url(/monnaie-louis-64.png) center / contain no-repeat; filter: drop-shadow(0 0 8px rgba(245, 197, 66, .8)); }
.mn-case.gemme .face { background: radial-gradient(circle, #4a3a0c, #1a1406); }
.mn-case.revelee.gemme .face { background: #1a1406; }
.mn-case .bombe { width: 64%; background: var(--bombe, none) center 30% / cover no-repeat, radial-gradient(circle at 35% 30%, #555, #111); box-shadow: 0 0 0 3px #111, 0 0 16px rgba(255, 90, 54, .9); }
.mn-case .bombe::before { content: "BOUM"; position: absolute; left: 50%; bottom: -26%; transform: translateX(-50%); font: 900 9px/1 var(--police); color: #fff; background: #e11d48; padding: 2px 4px; border-radius: 4px; }
/* moment mème (gros gain) et Louis Red (grosse perte) */
.cz-celeb-meme { width: clamp(120px, 28vw, 200px); aspect-ratio: 1; border-radius: 18px; background: center / cover no-repeat; border: 4px solid #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .55); transform: rotate(-6deg); animation: memeIn .6s cubic-bezier(.2, 1.6, .4, 1) .5s both; }
@keyframes memeIn { from { transform: rotate(-30deg) scale(0); } }
.cz-celeb-duo { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.cz-red { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 850; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 18px;
  background: rgba(30, 12, 60, .94); border: 2px solid rgba(255, 140, 155, .6); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); animation: redIn .5s cubic-bezier(.2, 1.5, .4, 1); pointer-events: none; max-width: calc(100vw - 32px); }
.cz-red img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.cz-red b { font-weight: 900; color: #ffc2cb; }
.cz-red.part { transition: opacity .4s, transform .4s; opacity: 0; transform: translateY(10px); }
@keyframes redIn { from { transform: translateY(30px) rotate(4deg); opacity: 0; } }
.cz-sous { display: block; font-size: 11px; font-weight: 800; color: rgba(246, 242, 255, .6); letter-spacing: .02em; }
.cz-jeu-tete small { font-size: 12px; font-weight: 800; color: var(--texte-doux); white-space: nowrap; }

/* ================================================================ guide des règles (📖) */
.cz-tuile { position: relative; min-width: 0; display: flex; }
.cz-tuile > .cz-carte-jeu { flex: 1; }
.cz-livre { position: absolute; top: 8px; left: 8px; z-index: 3; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(14, 8, 32, .62); font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); transition: transform .15s, background .15s; }
.cz-livre:hover { transform: rotate(-8deg) scale(1.06); background: rgba(123, 63, 228, .8); }
.cz-livre-tete { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--verre-bord); background: var(--verre-fort); color: #fff; font: 800 14px var(--police); white-space: nowrap; }
.cz-livre-tete:hover { background: rgba(255, 255, 255, .17); }
.cz-regles-btn { width: 100%; }
.rg-fond { position: fixed; inset: 0; z-index: 870; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 3, 20, .66); animation: fondu .2s ease; }
.rg-fond.part { animation: fondu .2s ease reverse forwards; }
body.rg-ouvert { overflow: hidden; }
.rg-feuille { --c1: #7b3fe4; --c2: #2a1150; position: relative; width: min(720px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c2) 70%, #1b1238), #140b2c); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: feuilleIn .3s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes feuilleIn { from { transform: translateY(30px) scale(.97); opacity: 0; } }
.rg-tete { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 55%, transparent), transparent); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.rg-titre { flex: 1; min-width: 0; font: 900 20px/1.15 var(--police); }
.rg-titre small { display: block; font-size: 12px; font-weight: 800; color: var(--texte-doux); }
.rg-x { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff; font: 900 18px var(--police); }
.rg-x:hover { background: rgba(255, 255, 255, .22); }
.rg-corps { overflow-y: auto; padding: 14px 18px 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.rg-crp { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.rg-crp img { width: 96px; height: auto; flex: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.rg-crp p { position: relative; margin: 0 0 12px; padding: 10px 14px; border-radius: 16px; background: linear-gradient(160deg, rgba(123, 63, 228, .9), rgba(52, 22, 104, .9)); border: 2px solid rgba(255, 255, 255, .5); font-weight: 800; line-height: 1.35; }
.rg-contenu section { margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: rgba(10, 6, 25, .35); border: 1px solid rgba(255, 255, 255, .08); }
.rg-contenu h3 { margin: 0 0 6px; font: 900 15px var(--police); color: var(--or-doux); }
.rg-contenu p { margin: 4px 0; line-height: 1.45; color: #ebe4ff; }
.rg-note { font-size: 13px; color: var(--texte-doux) !important; }
.rg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 4px; }
.rg-table th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-doux); padding: 4px 6px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.rg-table td { padding: 6px; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: middle; }
.rg-table td:last-child { font-weight: 900; color: #fff3c4; white-space: nowrap; }
.rg-table.keno td:last-child, .rg-table.keno td:last-child b { white-space: normal; }
.rg-kv { display: inline-block; margin: 1px 8px 1px 0; font-weight: 700; color: #ebe4ff; } .rg-kv b { color: #fff3c4; }
.rg-sym { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.rg-sym i { width: 32px; height: 32px; border-radius: 50%; flex: none; background: center / cover no-repeat; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--or); }
.rg-cartes { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.rg-carte { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 40px; padding: 0 3px; border-radius: 5px; background: #fffdf6; color: #1b1b22; font: 900 13px var(--police); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.rg-carte.rouge { color: #d0193c; }
.rg-lignes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rg-ligne { display: flex; flex-direction: column; align-items: center; gap: 3px; } .rg-ligne b { font-size: 12px; color: var(--texte-doux); }
.rg-grille5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; width: 100%; max-width: 80px; }
.rg-grille5 i { aspect-ratio: 1; border-radius: 2px; background: rgba(255, 255, 255, .12); } .rg-grille5 i.on { background: var(--or); }
.rg-pk { font-size: 12.5px; word-break: break-word; }
.rg-pied { margin: 6px 0 0; text-align: center; font-size: 12px; color: rgba(184, 172, 216, .7); }
@media (max-width: 640px) {
  .rg-fond { align-items: flex-end; padding: 0; }
  .rg-feuille { width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; animation: feuilleBas .3s cubic-bezier(.2, 1.1, .4, 1); padding-bottom: env(safe-area-inset-bottom, 0px); }
  @keyframes feuilleBas { from { transform: translateY(100%); } }
  .rg-crp img { width: 72px; }
  .rg-lignes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .rg-table { font-size: 12.5px; }
  .cz-livre-tete span { display: none; }
  .cz-livre { width: 44px; height: 44px; top: 6px; left: 6px; }
}
