/* Louis Casino — même famille visuelle que le hub (verre dépoli violet, Nunito), en plus « tapis de casino ». */
:root {
  --nuit: #140726; --nuit-2: #1f0c3a; --nuit-3: #2a1150;
  --violet: #7b3fe4; --violet-clair: #b48cff; --or: #f5c542; --or-fonce: #c9962a; --rose: #ff3fa4; --cyan: #4fd8ff; --vert: #5fe0a0; --rouge: #ff5a6e;
  --police: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --verre: rgba(255, 255, 255, .075); --verre-fort: rgba(255, 255, 255, .11); --verre-bord: rgba(255, 255, 255, .14);
  --verre-ombre: 0 12px 40px rgba(8, 3, 24, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  --flou: blur(18px) saturate(1.3);
  --lavande: #c9b8ff; --or-doux: #f3cf6b; --texte: #f6f2ff; --texte-doux: #b8acd8; --rayon: 22px;
  --creux: rgba(10, 6, 25, .32); --or-btn: linear-gradient(180deg, #ffe08e, #f2bd4c);
  --tapis: #0f5a37; --tapis-2: #083521;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--texte); font-family: var(--police); font-weight: 600; font-size: 14px;
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(60vw 50vh at 12% 8%, rgba(167, 139, 250, .22), transparent 70%),
    radial-gradient(50vw 45vh at 92% 18%, rgba(244, 114, 182, .14), transparent 70%),
    radial-gradient(70vw 60vh at 50% 110%, rgba(245, 197, 66, .10), transparent 70%),
    linear-gradient(165deg, #2a1d4f 0%, #1b1238 45%, #0e0a20 100%) fixed;
  background-color: #1b1238;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(201, 184, 255, .85); outline-offset: 2px; }
[hidden] { display: none !important; }
.cz-fond { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px); background-size: 26px 26px; }

/* ---------------------------------------------------------------- en-tête */
.cz-entete {
  position: sticky; top: 0; z-index: 50; margin: 10px auto 0; width: calc(100% - 24px); max-width: 1500px;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 60px;
  border-radius: 20px; border: 1px solid var(--verre-bord); background: rgba(30, 20, 60, .7); box-shadow: var(--verre-ombre);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
}
.cz-entete h1 { margin: 0; font: 900 24px/1 var(--police); letter-spacing: -.015em; white-space: nowrap; }
.cz-entete h1 a { text-decoration: none; background: linear-gradient(180deg, #fff7dc, var(--or-doux)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cz-entete h1 em { font-style: normal; background: linear-gradient(180deg, #ffd0ec, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cz-lobby {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border-radius: 14px; text-decoration: none; white-space: nowrap;
  background: var(--verre-fort); border: 1px solid var(--verre-bord); color: #fff; font: 800 14px var(--police);
}
.cz-lobby:hover { background: rgba(255, 255, 255, .17); }
body.en-jeu .cz-entete > a.cz-lobby { display: none; }
.cz-espace { flex: 1; }
.cz-solde {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 16px 4px 6px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 197, 66, .2), rgba(245, 197, 66, .08)); border: 1px solid rgba(245, 197, 66, .45);
  box-shadow: 0 0 0 0 rgba(245, 197, 66, 0); transition: box-shadow .3s ease, transform .2s ease;
}
.cz-solde img { width: 34px; height: 34px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.cz-solde b { font: 900 21px/1 var(--police); color: var(--or-doux); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.cz-solde.monte { box-shadow: 0 0 0 4px rgba(245, 197, 66, .25), 0 0 26px rgba(245, 197, 66, .55); transform: scale(1.04); }
.cz-solde.monte b { color: #fff3c4; }
.cz-solde.baisse b { color: #e9defc; }
.cz-solde-bulle { position: absolute; right: 10px; top: 100%; font: 900 15px var(--police); pointer-events: none; animation: bulle 1.4s ease-out forwards; white-space: nowrap; }
.cz-solde-bulle.plus { color: #8cffc5; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.cz-solde-bulle.moins { color: #ffb3c0; }
@keyframes bulle { from { opacity: 0; transform: translateY(-6px); } 15% { opacity: 1; } to { opacity: 0; transform: translateY(18px); } }

/* ---------------------------------------------------------------- page */
.cz-page { position: relative; z-index: 1; width: 100%; max-width: 1500px; margin: 0 auto; padding: 14px 12px 8px; flex: 1; }
.cz-pied { position: relative; z-index: 1; text-align: center; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); color: rgba(184, 172, 216, .7); font-size: 12px; font-weight: 700; }
.cz-panneau {
  padding: 14px 16px; border-radius: var(--rayon); background: var(--verre); border: 1px solid var(--verre-bord); box-shadow: var(--verre-ombre);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
}
.cz-panneau h2 { margin: 0 0 10px; font: 900 15px var(--police); color: #fff; }

/* boutons */
.cz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 16px; border: 1px solid var(--verre-bord);
  background: var(--verre-fort); color: #fff; font: 900 15px var(--police); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); transition: transform .1s ease, filter .15s ease, background .15s ease; user-select: none; -webkit-user-select: none;
}
.cz-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .17); }
.cz-btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.cz-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.cz-btn.or { background: var(--or-btn); color: #2a1a05; border-color: transparent; box-shadow: 0 6px 18px rgba(242, 189, 76, .3), inset 0 1px 0 rgba(255, 255, 255, .6); }
.cz-btn.or:hover:not(:disabled) { background: var(--or-btn); filter: brightness(1.07); }
.cz-btn.vert { background: linear-gradient(180deg, #7af0b8, #28b874); color: #062a18; border-color: transparent; box-shadow: 0 6px 18px rgba(40, 184, 116, .3), inset 0 1px 0 rgba(255, 255, 255, .5); }
.cz-btn.vert:hover:not(:disabled) { background: linear-gradient(180deg, #7af0b8, #28b874); filter: brightness(1.07); }
.cz-btn.rouge { background: linear-gradient(180deg, #ff8c9b, #e2364f); border-color: transparent; }
.cz-btn.rouge:hover:not(:disabled) { background: linear-gradient(180deg, #ff8c9b, #e2364f); filter: brightness(1.07); }
.cz-btn.grand { min-height: 58px; font-size: 18px; border-radius: 18px; }
.cz-btn.petit { min-height: 44px; padding: 0 14px; font-size: 14px; }
.cz-btn.pulse:not(:disabled) { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(245, 197, 66, .18), 0 6px 24px rgba(242, 189, 76, .45); } }
.cz-btn small { font-weight: 800; font-size: 12px; opacity: .8; }

/* ---------------------------------------------------------------- accueil */
.cz-reprendre {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 12px; padding: 10px 12px 10px 16px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(245, 197, 66, .2), rgba(245, 197, 66, .06)); border: 1px solid rgba(245, 197, 66, .4); font-weight: 800;
}
.cz-accueil-grille { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.cz-intro { margin: 2px 4px 12px; }
.cz-intro h2 { margin: 0; font: 900 26px/1.1 var(--police); }
.cz-intro p { margin: 4px 0 0; color: var(--texte-doux); font-size: 14px; }
.cz-intro b { color: var(--or-doux); }
.cz-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cz-carte-jeu {
  --c1: #7b3fe4; --c2: #2a1150;
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 20px; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 55%, transparent), color-mix(in srgb, var(--c2) 80%, #120826) 70%);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 10px 26px rgba(8, 3, 24, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; animation: entree .4s ease both;
}
@keyframes entree { from { opacity: 0; transform: translateY(8px); } }
.cz-carte-jeu:hover, .cz-carte-jeu:focus-visible { transform: translateY(-4px); border-color: rgba(255, 255, 255, .35); box-shadow: 0 18px 36px rgba(8, 3, 24, .5), 0 0 0 1px color-mix(in srgb, var(--c1) 60%, transparent); }
.cz-carte-jeu:active { transform: translateY(-1px) scale(.99); }
.cz-illus { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(80% 90% at 50% 30%, rgba(255, 255, 255, .18), transparent 70%); }
.cz-illus::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-120%); transition: transform .6s ease; }
.cz-carte-jeu:hover .cz-illus::after { transform: translateX(120%); }
.cz-illus svg { width: 88%; height: 88%; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); transition: transform .3s ease; }
.cz-carte-jeu:hover .cz-illus svg { transform: scale(1.05) rotate(-1.5deg); }
.cz-carte-txt { position: relative; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(180deg, rgba(10, 6, 25, .1), rgba(10, 6, 25, .45)); flex: 1; }
.cz-cat { font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--c1) 50%, #fff); }
.cz-carte-txt h3 { margin: 0; font: 900 17px/1.15 var(--police); color: #fff; }
.cz-carte-txt p { margin: 2px 0 0; color: rgba(246, 242, 255, .78); font-size: 12.5px; line-height: 1.3; }
.cz-rtp { margin-top: 6px; align-self: flex-start; font-size: 10.5px; font-weight: 800; color: rgba(246, 242, 255, .55); letter-spacing: .02em; }
.cz-encours { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; background: var(--or-btn); color: #2a1a05; font-size: 11px; font-weight: 900; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.cz-cote { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 86px; }
.cz-histo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cz-histo-ligne { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; background: var(--creux); border: 1px solid rgba(255, 255, 255, .07); animation: entree .3s ease; }
.cz-histo-ico { display: inline-flex; font-size: 18px; }
.cz-pastille { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: linear-gradient(150deg, var(--c1), var(--c2)); color: #fff; font: 900 14px/1 var(--police); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 8px rgba(0, 0, 0, .3); }
.cz-histo-mil { min-width: 0; display: flex; flex-direction: column; }
.cz-histo-mil b { font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.cz-histo-mil small { color: var(--texte-doux); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-histo-val { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cz-histo-val.plus, .cz-histo-val.gros { color: #8cffc5; }
.cz-histo-val.gros { color: var(--or-doux); }
.cz-histo-val.moins { color: #c4b2e8; opacity: .75; }
.cz-vide { color: var(--texte-doux); font-size: 13px; padding: 6px 2px; }

/* ---------------------------------------------------------------- vue d'un jeu */
.cz-vjeu { --c1: #7b3fe4; --c2: #2a1150; }
.cz-jeu-tete { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; min-width: 0; }
.cz-jeu-tete h2 { margin: 0; font: 900 22px/1.1 var(--police); outline: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-jeu-tete .cz-rtp { margin: 0 0 0 auto; align-self: center; white-space: nowrap; }
.cz-jeu-corps { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.cz-table {
  position: relative; min-height: 440px; border-radius: 26px; overflow: hidden; padding: 18px;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 65%), linear-gradient(180deg, color-mix(in srgb, var(--c2) 85%, #0b0618), #0d0820);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .18), inset 0 2px 30px rgba(0, 0, 0, .45), 0 16px 40px rgba(8, 3, 24, .45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  user-select: none; -webkit-user-select: none;
}
.cz-table.tapis {
  background: radial-gradient(110% 80% at 50% 20%, #1b7a4c, var(--tapis) 55%, var(--tapis-2)); border-color: rgba(245, 197, 66, .35);
  box-shadow: inset 0 0 0 8px #3b2210, inset 0 0 0 10px rgba(245, 197, 66, .5), inset 0 2px 40px rgba(0, 0, 0, .55), 0 16px 40px rgba(8, 3, 24, .45);
}
.cz-commandes {
  display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--rayon);
  background: var(--verre); border: 1px solid var(--verre-bord); box-shadow: var(--verre-ombre); backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou);
}
.cz-ligne-btn { display: flex; gap: 8px; flex-wrap: wrap; }
.cz-ligne-btn > .cz-btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
.cz-etiquette { font-size: 12px; font-weight: 800; color: var(--texte-doux); letter-spacing: .04em; text-transform: uppercase; margin-bottom: -4px; }
.cz-regles { font-size: 12.5px; color: var(--texte-doux); line-height: 1.45; }
.cz-regles summary { cursor: pointer; font-weight: 800; color: #fff; min-height: 32px; display: flex; align-items: center; }
.cz-regles p { margin: 6px 0; }
.cz-info { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--creux); font-weight: 800; font-size: 13px; }
.cz-info b { color: var(--or-doux); font-variant-numeric: tabular-nums; }

/* sélecteur de mise */
.cz-mise { display: flex; flex-direction: column; gap: 10px; }
.cz-mise-val { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-radius: 14px; background: var(--creux); border: 1px solid rgba(255, 255, 255, .08); }
.cz-mise-val > span:first-child { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-doux); }
.cz-mise-nb { display: inline-flex; align-items: center; gap: 6px; }
.cz-mise-nb img { width: 24px; height: 24px; }
.cz-mise-nb b { font: 900 24px/1 var(--police); color: #fff; font-variant-numeric: tabular-nums; }
.cz-jetons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.cz-jetons .cz-jeton { width: min(50px, 100%); height: auto; aspect-ratio: 1; }
.cz-jeton-btn { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0; border: 0; background: none; border-radius: 50%; }
.cz-jeton-btn .cz-jeton { transition: transform .15s ease, box-shadow .15s ease; }
.cz-jeton-btn:hover:not(:disabled) .cz-jeton { transform: translateY(-3px) rotate(-8deg); }
.cz-jeton-btn.actif .cz-jeton { transform: translateY(-4px) scale(1.06); box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(245, 197, 66, .6), 0 8px 16px rgba(0, 0, 0, .5); }
.cz-jeton-btn:disabled { cursor: not-allowed; opacity: .5; }
.cz-jeton {
  --jc: #e5e7eb; --jt: #222;
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; flex: none;
  background: repeating-conic-gradient(var(--jc) 0 22.5deg, #fff 22.5deg 30deg, var(--jc) 30deg 45deg);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--jc) 60%, #000), 0 6px 12px rgba(0, 0, 0, .45); color: var(--jt);
}
.cz-jeton::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--jc); border: 2px dashed rgba(255, 255, 255, .75); }
.cz-jeton span { position: relative; font: 900 14px/1 var(--police); letter-spacing: -.02em; text-shadow: 0 1px 0 rgba(255, 255, 255, .25); }
.cz-jeton.j10 { --jc: #e8e3f5; --jt: #3b2a6b; }
.cz-jeton.j50 { --jc: #e2364f; --jt: #fff; }
.cz-jeton.j100 { --jc: #2563eb; --jt: #fff; }
.cz-jeton.j500 { --jc: #16a34a; --jt: #fff; }
.cz-jeton.j1000 { --jc: #1f1530; --jt: #f5c542; }
.cz-jeton.j1000::before { border-color: rgba(245, 197, 66, .8); }
.cz-jeton.j10000 { --jc: #e0a92a; --jt: #2a1600; background: repeating-conic-gradient(#f5c542 0 22.5deg, #1f1530 22.5deg 30deg, #f5c542 30deg 45deg); box-shadow: 0 4px 0 #7a4e00, 0 0 12px rgba(245, 197, 66, .55), 0 6px 12px rgba(0, 0, 0, .45); }
.cz-jeton.j10000::before { background: radial-gradient(circle at 35% 30%, #fff4c4, #f0bd3c 50%, #9a6400); border-color: rgba(31, 21, 48, .65); }
.cz-jeton.j10000 span { text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.cz-jeton.j50 span, .cz-jeton.j100 span, .cz-jeton.j500 span { text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.cz-jeton.petit { width: 30px; height: 30px; box-shadow: 0 2px 0 color-mix(in srgb, var(--jc) 60%, #000), 0 3px 6px rgba(0, 0, 0, .5); }
.cz-jeton.petit::before { inset: 4px; border-width: 1.5px; }
.cz-jeton.petit span { font-size: 10px; }
.cz-mise-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 6px; }
.cz-op { min-height: 44px; border-radius: 12px; border: 1px solid var(--verre-bord); background: var(--verre-fort); color: #fff; font: 900 15px var(--police); }
.cz-op:hover:not(:disabled) { background: rgba(255, 255, 255, .17); }
.cz-op:disabled { opacity: .45; cursor: not-allowed; }
.cz-op.actif { background: var(--or-btn); color: #2a1a05; border-color: transparent; }

/* bannière de résultat */
.cz-banniere {
  position: absolute; left: 50%; top: 50%; z-index: 20; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 28px; border-radius: 22px; pointer-events: none; text-align: center; animation: banniere .45s cubic-bezier(.2, 1.6, .4, 1) both;
  background: rgba(14, 8, 32, .82); border: 2px solid rgba(255, 255, 255, .25); box-shadow: 0 16px 50px rgba(0, 0, 0, .6); backdrop-filter: blur(6px);
}
.cz-banniere b { font: 900 38px/1.05 var(--police); font-variant-numeric: tabular-nums; }
.cz-banniere small { font-weight: 800; font-size: 13px; color: var(--texte-doux); }
.cz-banniere.gagne { border-color: rgba(245, 197, 66, .8); box-shadow: 0 0 0 6px rgba(245, 197, 66, .15), 0 16px 50px rgba(0, 0, 0, .6), 0 0 60px rgba(245, 197, 66, .35); }
.cz-banniere.gagne b { background: linear-gradient(180deg, #fff7dc, var(--or)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cz-banniere.rendu b { color: #c7f9e0; }
.cz-banniere.perdu { padding: 10px 22px; }
.cz-banniere.perdu b { font-size: 24px; color: #d6c8f2; }
.cz-banniere.part { animation: banniereFin .5s ease forwards; }
@keyframes banniere { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
@keyframes banniereFin { to { opacity: 0; transform: translate(-50%, -60%) scale(.95); } }

/* effets, célébration, toasts */
.cz-fx { position: fixed; inset: 0; pointer-events: none; z-index: 900; }
.cz-celeb { position: fixed; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 45%, rgba(60, 20, 110, .55), rgba(5, 2, 15, .82)); animation: fondu .3s ease; cursor: pointer; padding: 16px; }
.cz-celeb.part { animation: fondu .3s ease reverse forwards; }
@keyframes fondu { from { opacity: 0; } }
.cz-celeb-carte { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: celebIn .7s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes celebIn { from { opacity: 0; transform: scale(.3) rotate(-8deg); } }
.cz-celeb-rayons { position: absolute; left: 50%; top: 45%; width: 900px; height: 900px; margin: -450px 0 0 -450px; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(rgba(245, 197, 66, .28) 0 8deg, transparent 8deg 20deg); -webkit-mask: radial-gradient(circle, #000 10%, transparent 60%); mask: radial-gradient(circle, #000 10%, transparent 60%); animation: tourne 14s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.cz-celeb-titre { font: 900 clamp(38px, 10vw, 84px)/1 var(--police); letter-spacing: -.02em; background: linear-gradient(180deg, #fffbe6 10%, var(--or) 55%, #d08a12); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(90, 40, 0, .6)) drop-shadow(0 0 30px rgba(245, 197, 66, .5)); animation: vibre 1s ease-in-out infinite; }
.mega .cz-celeb-titre { background: linear-gradient(180deg, #fff 0%, #ffd0ec 30%, var(--rose) 60%, #8b2cff); -webkit-background-clip: text; background-clip: text; }
@keyframes vibre { 50% { transform: scale(1.04) rotate(-1deg); } }
.cz-celeb-montant { display: flex; align-items: center; gap: 12px; }
.cz-celeb-montant img { width: clamp(46px, 12vw, 80px); height: auto; animation: piecetourne 1.2s linear infinite; }
@keyframes piecetourne { 50% { transform: scaleX(.15); } }
.cz-celeb-montant b { font: 900 clamp(40px, 12vw, 96px)/1 var(--police); color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 30px rgba(255, 255, 255, .35); }
.cz-celeb-x { font: 900 18px var(--police); color: var(--or-doux); }
.cz-celeb-aide { margin-top: 18px; font-size: 13px; color: var(--texte-doux); opacity: 0; transition: opacity .4s; }
.cz-celeb-carte.fini .cz-celeb-aide { opacity: 1; }
.cz-toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 950; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.cz-toast { padding: 10px 18px; border-radius: 999px; background: #2a1150; border: 2px solid var(--violet-clair); color: #fff; font-weight: 800; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: entree .25s ease; text-align: center; }
.cz-toast.erreur { border-color: #ff8c9b; }
.cz-toast.part { opacity: 0; transition: opacity .4s; }

/* ---------------------------------------------------------------- cartes à jouer (3D) */
.cz-main { position: relative; display: flex; justify-content: center; align-items: center; gap: 0; min-height: calc(var(--cw, 86px) * 1.42); }
.cz-cartejeu { --cw: 86px; position: relative; width: var(--cw); height: calc(var(--cw) * 1.42); perspective: 900px; flex: none; margin: 0 calc(var(--cw) * -0.18); transition: transform .3s ease; }
.cz-main.ecartee .cz-cartejeu { margin: 0 4px; }
.cz-cartejeu .in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, 1.3, .5, 1); transform: rotateY(180deg); }
.cz-cartejeu.face .in { transform: rotateY(0deg); }
.cz-cartejeu .f, .cz-cartejeu .d { position: absolute; inset: 0; border-radius: calc(var(--cw) * .1); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.cz-cartejeu .f { background: linear-gradient(160deg, #fffdf6, #f1ebdc); color: #1b1b22; border: 1px solid rgba(0, 0, 0, .15); overflow: hidden; }
.cz-cartejeu .f.rouge { color: #d0193c; }
.cz-cartejeu .d { transform: rotateY(180deg); background: radial-gradient(circle at 50% 50%, #8b5cf6, #4c1d95 70%); border: 3px solid #fff; overflow: hidden; }
.cz-cartejeu .d::before { content: ""; position: absolute; inset: 5px; border-radius: calc(var(--cw) * .06); border: 1.5px solid rgba(245, 197, 66, .7);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 6px, transparent 6px 12px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .08) 0 6px, transparent 6px 12px); }
.cz-cartejeu .d::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); background: url(/monnaie-louis-64.png) center / contain no-repeat; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.cz-cartejeu .coin { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: .9; font-weight: 900; }
.cz-cartejeu .coin b { font-size: calc(var(--cw) * .24); letter-spacing: -.05em; }
.cz-cartejeu .coin i { font-style: normal; font-size: calc(var(--cw) * .2); }
.cz-cartejeu .coin.h { left: 6%; top: 4%; }
.cz-cartejeu .coin.b { right: 6%; bottom: 4%; transform: rotate(180deg); }
.cz-cartejeu .centre { position: absolute; inset: 22% 18%; display: flex; align-items: center; justify-content: center; font-size: calc(var(--cw) * .5); }
.cz-cartejeu .portrait { position: absolute; inset: 20% 16%; border-radius: 6px; background: center / cover no-repeat; border: 2px solid currentColor; box-shadow: inset 0 0 0 2px #fff; }
.cz-cartejeu .portrait::after { content: attr(data-r); position: absolute; right: 3px; bottom: 1px; font-weight: 900; font-size: calc(var(--cw) * .18); color: #fff; text-shadow: 0 1px 3px #000; }
.cz-cartejeu.vole { animation: vole .45s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes vole { from { transform: translate(var(--dx, 300px), var(--dy, -200px)) rotate(var(--dr, -30deg)); opacity: .3; } }
.cz-cartejeu.gagnante .f { box-shadow: 0 0 0 3px var(--or), 0 0 24px rgba(245, 197, 66, .7), 0 6px 14px rgba(0, 0, 0, .4); }
.cz-cartejeu.terne { opacity: .45; filter: grayscale(.4); }
.cz-cartejeu.leve { transform: translateY(-14px); }
.cz-total { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 32px; padding: 0 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .3); font: 900 16px var(--police); color: #fff; }
.cz-total.bust { background: #b4233c; border-color: #ff8c9b; }
.cz-total.bj { background: var(--or-btn); color: #2a1a05; border-color: transparent; }
.cz-etiq-zone { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: 8px; justify-content: center; }
.cz-sabot { position: absolute; right: 18px; top: 18px; width: 64px; height: 84px; border-radius: 8px; background: linear-gradient(180deg, #4c1d95, #2e1065); border: 2px solid rgba(255, 255, 255, .5); box-shadow: 4px 4px 0 #2e1065, 8px 8px 0 #1e0b45, 0 10px 18px rgba(0, 0, 0, .5); }
.cz-sabot::after { content: ""; position: absolute; inset: 22%; background: url(/monnaie-louis-64.png) center / contain no-repeat; opacity: .9; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .cz-accueil-grille { grid-template-columns: minmax(0, 1fr) 290px; }
  .cz-jeu-corps { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .cz-accueil-grille { grid-template-columns: 1fr; }
  .cz-cote { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .cz-jeu-corps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cz-entete { width: calc(100% - 16px); margin-top: 8px; padding: 6px 8px; min-height: 56px; gap: 8px; border-radius: 18px; }
  .cz-entete h1 { font-size: 19px; }
  .cz-lobby span { display: none; }
  .cz-lobby { padding: 0 14px; font-size: 18px; }
  .cz-solde { padding-right: 12px; }
  .cz-solde img { width: 30px; height: 30px; }
  .cz-solde b { font-size: 18px; }
  .cz-page { padding: 10px 8px 6px; }
  .cz-intro h2 { font-size: 21px; }
  .cz-intro p { font-size: 13px; }
  .cz-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cz-carte-txt { padding: 8px 10px 10px; }
  .cz-carte-txt h3 { font-size: 14.5px; }
  .cz-carte-txt p { display: none; }
  .cz-cote { grid-template-columns: 1fr; }
  .cz-table { min-height: 360px; padding: 12px; border-radius: 20px; }
  .cz-commandes { padding: 10px; gap: 9px; border-radius: 18px; bottom: 4px; }
  .cz-jeu-tete h2 { font-size: 18px; }
  .cz-jeton { width: 44px; height: 44px; }
  .cz-jeton span { font-size: 12.5px; }
  .cz-jeton-btn { min-height: 48px; }
  .cz-mise-val { padding: 6px 12px; }
  .cz-mise-nb b { font-size: 20px; }
  .cz-cartejeu { --cw: 66px; }
  .cz-banniere b { font-size: 30px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .cz-entete { position: relative; min-height: 50px; margin-top: 4px; }
  .cz-jeu-corps { grid-template-columns: minmax(0, 1fr) 280px; }
  .cz-commandes { position: static; max-height: calc(100dvh - 90px); overflow-y: auto; }
  .cz-table { min-height: 300px; }
  .cz-cote { grid-template-columns: 1fr 1fr; }
  .cz-jeu-tete { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- le croupier (hôte du casino) */
.cz-rond { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--verre-bord); background: var(--verre-fort); font-size: 19px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.cz-rond:hover { background: rgba(255, 255, 255, .17); }
.cz-rond[aria-pressed="true"] { opacity: .75; }
.cz-crp-slot, .cz-crp-scene { position: relative; }
.cz-croupier { position: absolute; inset: 0; -webkit-tap-highlight-color: transparent; --ry: 0deg; --rx: 0deg; --tr: 0deg; --tx: 0%; --ty: 0%; --hx: 50%; --hy: 17%; --cou: 33%; }
.cz-crp-incl { position: absolute; left: 50%; bottom: 0; width: var(--crp-l, 300px); transform: translateX(-50%); perspective: 900px; cursor: pointer; }
.cz-crp-geste { transform-origin: 50% 100%; }
.cz-crp-corps { position: relative; transform-origin: 50% 100%; animation: crpRespire 3.6s ease-in-out infinite; will-change: transform; }
.cz-crp-img { display: block; }
.cz-crp-img img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; pointer-events: none; }
/* le corps s'incline vers le pointeur ; la tête (calque masqué) tourne un peu plus, autour du cou */
.cz-crp-corps > .cz-crp-img:first-child { transform: rotateY(var(--ry)) rotateX(var(--rx)); transform-origin: 50% 100%; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45));
  -webkit-mask-image: radial-gradient(ellipse 17% 20% at var(--hx) var(--hy), transparent 45%, #000 80%); mask-image: radial-gradient(ellipse 17% 20% at var(--hx) var(--hy), transparent 45%, #000 80%); }
.cz-crp-tete { position: absolute; left: 0; top: 0; width: 100%;
  transform: rotateY(var(--ry)) rotateX(var(--rx)) translate(var(--tx), var(--ty)) rotate(var(--tr)); transform-origin: var(--hx) var(--cou);
  -webkit-mask-image: radial-gradient(ellipse 18% 22% at var(--hx) var(--hy), #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 18% 22% at var(--hx) var(--hy), #000 72%, transparent 100%); }
.cz-crp-main { position: absolute; width: 10px; height: 10px; bottom: 9%; pointer-events: none; }
.cz-crp-main.g { left: 9%; } .cz-crp-main.d { right: 9%; }
.cz-crp-ombre { position: absolute; left: 50%; bottom: -6px; width: calc(var(--crp-l, 300px) * .7); height: 14px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .5), transparent 70%); animation: crpOmbre 3.6s ease-in-out infinite; }
@keyframes crpRespire { 0%, 100% { transform: rotate(0deg) scale(1, 1); } 25% { transform: rotate(-.7deg) scale(1.005, 1.012); } 50% { transform: rotate(0deg) scale(1, 1.02); } 75% { transform: rotate(.7deg) scale(1.005, 1.012); } }
@keyframes crpOmbre { 50% { transform: translateX(-50%) scaleX(.94); opacity: .85; } }
.cz-crp-corps.rebond { animation: crpRebond .56s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes crpRebond { 0% { transform: scale(1, 1) translateY(0); } 18% { transform: scale(1.1, .86); } 42% { transform: scale(.94, 1.08) translateY(-9%); } 64% { transform: scale(1.04, .96) translateY(0); } 82% { transform: scale(.99, 1.02) translateY(-1.5%); } 100% { transform: scale(1, 1) translateY(0); } }
.cz-crp-corps.triomphe { animation: crpTriomphe 1.5s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes crpTriomphe { 0% { transform: none; } 8% { transform: scale(1.14, .82); } 20% { transform: scale(.9, 1.14) translateY(-18%) rotate(-3deg); } 32% { transform: scale(1.1, .88); } 44% { transform: scale(.93, 1.1) translateY(-13%) rotate(3deg); } 56% { transform: scale(1.07, .92); } 68% { transform: scale(.96, 1.06) translateY(-7%) rotate(-1deg); } 80% { transform: scale(1.03, .97); } 100% { transform: none; } }
.cz-crp-corps.parle { animation: crpParle .2s ease-in-out infinite alternate; }
@keyframes crpParle { from { transform: translateY(0) scale(1.015, .985); } to { transform: translateY(-4%) scale(.99, 1.015); } }
/* gestes en jeu */
.cz-crp-geste.g-donne { animation: gDonne .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes gDonne { 30% { transform: translateY(5%) scale(1.04, .95) rotate(var(--gr, 0deg)); } 100% { transform: none; } }
.cz-croupier[data-pose="gauche"] .cz-crp-geste { --gr: -2deg; } .cz-croupier[data-pose="droite"] .cz-crp-geste { --gr: 2deg; }
.cz-crp-geste.g-lance { animation: gLance .6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes gLance { 20% { transform: scale(1.08, .9); } 45% { transform: translateY(-10%) scale(.95, 1.07) rotate(var(--gr, 0deg)); } 100% { transform: none; } }
.cz-crp-geste.g-tire { animation: gTire .35s ease-out; }
@keyframes gTire { 40% { transform: translateY(-4%) scale(.98, 1.03); } }
/* bulle style BD en verre violet */
.cz-crp-bulle {
  position: absolute; z-index: 15; width: max-content; min-width: 120px; padding: 11px 15px; border-radius: 18px; color: #fff; font: 800 14.5px/1.35 var(--police);
  background: linear-gradient(160deg, rgba(123, 63, 228, .94), rgba(52, 22, 104, .95)); border: 2px solid rgba(255, 255, 255, .55);
  box-shadow: 0 10px 28px rgba(8, 3, 24, .5), inset 0 1px 0 rgba(255, 255, 255, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer;
}
.cz-crp-bulle::before { content: ""; position: absolute; left: -11px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: rgba(78, 36, 150, .96); border-left: 2px solid rgba(255, 255, 255, .55); border-bottom: 2px solid rgba(255, 255, 255, .55); transform: rotate(45deg); border-radius: 0 0 0 4px; }
.cz-crp-bulle.entre { animation: bulleIn .35s cubic-bezier(.2, 1.6, .4, 1) both; }
.cz-crp-bulle.part { animation: bulleOut .2s ease forwards; }
@keyframes bulleIn { from { opacity: 0; transform: scale(.4); } }
@keyframes bulleOut { to { opacity: 0; transform: scale(.85); } }

/* lobby : l'hôte au centre, les jeux s'organisent dessous */
.cz-hote { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0 0 14px; }
.cz-hote-halo { position: absolute; left: 50%; top: 10px; width: min(560px, 90vw); height: 360px; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245, 197, 66, .28), rgba(255, 63, 164, .12) 55%, transparent 75%); filter: blur(4px); animation: halo 6s ease-in-out infinite; }
@keyframes halo { 50% { transform: translateX(-50%) scale(1.06); opacity: .85; } }
.cz-crp-slot.hote { --crp-l: min(400px, 82vw); width: 100%; height: calc(var(--crp-l) * .85); z-index: 1; }
.cz-crp-slot.hote .cz-crp-bulle { left: calc(50% + var(--crp-l) * .36); top: 18%; max-width: min(320px, calc(50% - var(--crp-l) * .36 - 10px)); transform-origin: 0 50%; }
.cz-hote-comptoir { position: relative; z-index: 2; margin-top: -16px; width: min(760px, 100%); padding: 14px 20px 16px; text-align: center; border-radius: 22px;
  background: linear-gradient(180deg, rgba(60, 24, 110, .92), rgba(30, 12, 60, .92)); border: 2px solid rgba(245, 197, 66, .55); box-shadow: 0 -2px 0 rgba(245, 197, 66, .25), 0 16px 34px rgba(8, 3, 24, .5), inset 0 1px 0 rgba(255, 255, 255, .15); }
.cz-hote-comptoir h2 { margin: 0; font: 900 26px/1.1 var(--police); background: linear-gradient(180deg, #fff7dc, var(--or-doux)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cz-hote-comptoir p { margin: 4px 0 0; color: var(--texte-doux); font-size: 14px; }
.cz-hote-comptoir b { color: var(--or-doux); }

/* en jeu : le croupier derrière la table, ses mains posées sur le bord */
.cz-col-table { position: relative; min-width: 0; display: flex; flex-direction: column; }
.cz-crp-scene { --crp-l: 250px; height: 200px; margin-bottom: -26px; z-index: 1; }
.cz-col-table > .cz-table { z-index: 2; }
.cz-crp-scene .cz-crp-bulle { left: calc(50% + var(--crp-l) * .4); top: 16%; max-width: min(360px, calc(50% - var(--crp-l) * .4 - 8px)); }
.cz-crp-scene .cz-crp-ombre { display: none; }
.cz-table.bj-t, .cz-table.bac-t, .cz-table.tc-t, .cz-table.hl-t, .cz-table.vp-t { overflow: visible; }
.cz-celeb-crp { display: block; width: clamp(150px, 34vw, 260px); margin-bottom: -10px; animation: crpTriomphe 1.5s cubic-bezier(.3, 1.4, .5, 1) .2s both, crpRespire 2s ease-in-out 1.8s infinite; transform-origin: 50% 100%; }
.cz-celeb-crp img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
@media (max-width: 900px) { .cz-crp-scene { --crp-l: 210px; height: 168px; } }
@media (max-width: 640px) {
  .cz-crp-slot.hote { --crp-l: min(250px, 66vw); }
  .cz-crp-slot.hote .cz-crp-incl { left: 37%; }
  .cz-crp-slot.hote .cz-crp-bulle { left: auto; right: 0; top: 4%; bottom: auto; max-width: 47vw; min-width: 0; font-size: 12.5px; padding: 8px 11px; }
  .cz-crp-slot.hote .cz-crp-bulle::before { display: none; }
  .cz-hote-comptoir { padding: 10px 14px 12px; } .cz-hote-comptoir h2 { font-size: 21px; } .cz-hote-comptoir p { font-size: 13px; }
  /* téléphone : le croupier à gauche en haut de la table, la bulle à côté */
  .cz-crp-scene { --crp-l: 140px; height: 112px; margin-bottom: -14px; }
  .cz-crp-scene .cz-crp-incl { left: calc(var(--crp-l) / 2 + 4px); }
  .cz-crp-scene .cz-crp-bulle { left: calc(var(--crp-l) + 14px); right: 4px; top: 6px; max-width: none; width: auto; font-size: 12.5px; padding: 8px 11px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .cz-crp-slot.hote { --crp-l: 220px; }
  .cz-crp-scene { --crp-l: 130px; height: 100px; margin-bottom: -12px; }
  .cz-crp-scene .cz-crp-incl { left: calc(var(--crp-l) / 2 + 4px); }
  .cz-crp-scene .cz-crp-bulle { left: calc(var(--crp-l) + 14px); right: 4px; top: 4px; max-width: none; width: auto; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .cz-crp-corps, .cz-crp-geste, .cz-crp-ombre, .cz-celeb-crp, .cz-hote-halo { animation: none !important; }
  .cz-crp-corps > .cz-crp-img, .cz-crp-tete { transform: none !important; }
}
