/* Couche visuelle des jeux : couleur propre à chaque jeu, scène lumineuse, boutons, effets de gain (confettis, flash, paliers « big win »). */
.game-page { --ga: #39ff88; --ga-soft: color-mix(in srgb, var(--ga) 22%, transparent); --ga-glow: color-mix(in srgb, var(--ga) 55%, transparent); }

/* entrée de page */
.game-wrap, .game-info { animation: fxUp .55s cubic-bezier(.2, .8, .2, 1) both; }
.game-info { animation-delay: .08s; }
@keyframes fxUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* cadre de jeu : liseré et halo à la couleur du jeu */
.game-page .game-wrap { box-shadow: 0 18px 50px rgba(0, 0, 0, .35), 0 0 0 1px var(--ga-soft), 0 0 70px -24px var(--ga-glow); }
.game-page .game-panel { position: relative; background: linear-gradient(180deg, rgba(36, 40, 44, .96), rgba(26, 29, 32, .96)); }
.game-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--ga), transparent); opacity: .9; }

/* scène : lueur qui respire + trame de points */
.game-stage { isolation: isolate; }
.game-stage::before, .game-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.game-stage::before {
  background: radial-gradient(75% 60% at 50% -5%, color-mix(in srgb, var(--ga) 20%, transparent), transparent 70%), radial-gradient(55% 45% at 100% 105%, color-mix(in srgb, var(--ga) 12%, transparent), transparent 70%);
  animation: fxBreath 7s ease-in-out infinite alternate;
}
.game-stage::after {
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}
@keyframes fxBreath { from { opacity: .65; } to { opacity: 1; } }

/* champs de mise */
.inp-coin:focus-within, .inp-suf:focus-within { border-color: var(--ga); box-shadow: 0 0 0 3px var(--ga-soft); }
.game-panel .mini { border-radius: 8px; }
.game-panel .mini:hover { background: var(--ga-soft); color: #fff; }
.game-panel .seg button.on { background: linear-gradient(180deg, #454b51, #33383d); box-shadow: inset 0 -2px 0 var(--ga); }

/* bouton principal : dégradé, halo, reflet qui passe, ondulation au clic */
.game-panel .btn { position: relative; overflow: hidden; }
.game-panel .btn.big.green:not(:disabled) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ga) 78%, #fff), var(--ga)); color: #07120c; text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
  box-shadow: 0 10px 28px -8px var(--ga-glow), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -3px 0 rgba(0, 0, 0, .14);
}
.game-panel .btn.big.green:not(:disabled)::after { content: ''; position: absolute; top: 0; bottom: 0; width: 38%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); animation: fxShine 3.8s ease-in-out infinite; }
@keyframes fxShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.game-panel .btn.big.green:disabled { filter: grayscale(.55) brightness(.8); box-shadow: none; }
.game-panel .btn.big.green:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px var(--ga-glow), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -3px 0 rgba(0, 0, 0, .14); }
.game-panel .btn.big.red:not(:disabled) { box-shadow: 0 10px 26px -8px rgba(239, 68, 68, .6); }
.fx-rip { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: translate(-50%, -50%) scale(0); animation: fxRip .55s ease-out forwards; pointer-events: none; width: 20px; height: 20px; }
@keyframes fxRip { to { transform: translate(-50%, -50%) scale(14); opacity: 0; } }

/* dernières parties : la nouvelle arrive avec un petit rebond */
.recent-strip .rc:first-child { animation: fxPop .4s cubic-bezier(.3, 1.6, .5, 1); }
.rc.g { box-shadow: inset 0 0 0 1px rgba(61, 190, 126, .35); }
@keyframes fxPop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* affichage du gain */
.game-stage .win-pop { border-radius: 18px; padding: 18px 36px; min-width: 150px; text-align: center; background: linear-gradient(165deg, rgba(36, 40, 44, .97), rgba(14, 16, 18, .97)); border-width: 2px; overflow: visible; }
.win-pop.win { border-color: var(--ga); box-shadow: 0 0 0 4px var(--ga-soft), 0 0 50px -4px var(--ga-glow), 0 22px 50px rgba(0, 0, 0, .65); }
.win-pop.win b { color: #39ff88; font-size: 40px; line-height: 1.05; text-shadow: 0 0 24px currentColor; font-variant-numeric: tabular-nums; }
.win-pop.lose { opacity: .92; }
.wp-tag { font-size: 11px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.win-pop.t-big { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 197, 66, .22), 0 0 70px -2px rgba(245, 197, 66, .6), 0 22px 50px rgba(0, 0, 0, .65); }
.win-pop.t-big b { color: var(--gold); font-size: 48px; }
.win-pop.t-mega { border-color: #ff9d2e; box-shadow: 0 0 0 5px rgba(255, 157, 46, .25), 0 0 90px 0 rgba(255, 157, 46, .7), 0 22px 50px rgba(0, 0, 0, .7); animation: popIn .25s forwards, fxThrob .7s ease-in-out infinite alternate; }
.win-pop.t-mega b { color: #ffb45a; font-size: 56px; }
.win-pop.t-epic { border-color: #c084fc; box-shadow: 0 0 0 6px rgba(192, 132, 252, .28), 0 0 110px 4px rgba(192, 132, 252, .75), 0 22px 50px rgba(0, 0, 0, .7); animation: popIn .25s forwards, fxThrob .55s ease-in-out infinite alternate; }
.win-pop.t-epic b { font-size: 64px; background: linear-gradient(90deg, #f5c542, #f472b6, #a78bfa, #38bdf8, #f5c542); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: fxRainbow 1.6s linear infinite; }
.win-pop.t-mega .wp-tag { color: #ffb45a; } .win-pop.t-epic .wp-tag { color: #d8b4fe; }
@keyframes fxRainbow { to { background-position: 250% 0; } }
@keyframes fxThrob { to { filter: brightness(1.12); } }
.fx-flash { position: absolute; inset: 0; z-index: 15; pointer-events: none; background: radial-gradient(circle at 50% 50%, var(--ga-glow), transparent 65%); animation: fxFlash .8s ease-out forwards; }
.fx-flash.gold { background: radial-gradient(circle at 50% 50%, rgba(245, 197, 66, .55), transparent 70%); }
.fx-flash.lose { background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, .2), transparent 70%); animation-duration: .6s; }
@keyframes fxFlash { from { opacity: 1; } to { opacity: 0; } }
.fx-shake { animation: fxShake .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes fxShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.fx-conf { position: absolute; inset: 0; z-index: 19; pointer-events: none; overflow: hidden; }
.fx-conf i { position: absolute; left: 50%; top: 48%; width: 9px; height: 14px; border-radius: 2px; background: var(--c); opacity: 0; animation: fxConf var(--t) cubic-bezier(.15, .6, .3, 1) forwards; }
.fx-conf i:nth-child(3n) { width: 8px; height: 8px; border-radius: 50%; }
@keyframes fxConf {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0); }
  45% { opacity: 1; transform: translate(calc(-50% + var(--dx) * .75), calc(-50% + var(--up))) rotate(calc(var(--r) * .6)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--down))) rotate(var(--r)); }
}

/* cartes de jeu de l'accueil : couleur du jeu, inclinaison 3D, reflet qui suit la souris */
.gc-wrap .game-card { --ga: #39ff88; background: linear-gradient(180deg, color-mix(in srgb, var(--ga) 55%, #07140e), #07140e 92%); transform-style: preserve-3d; }
.gc-wrap .game-card:hover { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); box-shadow: 0 18px 38px rgba(0, 0, 0, .45), 0 0 34px -6px var(--ga-glow, rgba(61, 190, 126, .5)), inset 0 0 0 1px color-mix(in srgb, var(--ga) 60%, transparent); }
.gc-wrap .game-card .gc-glow { background: radial-gradient(70% 55% at 50% 35%, color-mix(in srgb, var(--ga) 45%, transparent), transparent 70%), linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .3)); }
.gc-wrap .game-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .22), transparent 45%); }
.gc-wrap .game-card:hover::after { opacity: 1; }

/* la roulette et le keno gagnent aussi en relief */
.rt-n, .rt-o { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.rt-n:active, .rt-o:active { transform: translateY(1px); }
.roul-wheel { filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px var(--ga-soft)); }
.roul-wheel svg { border-radius: 50%; box-shadow: 0 0 0 6px #2a2e33, 0 0 0 8px #4a5058; }
.kn { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.kn:hover:not(:disabled) { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .game-wrap, .game-info, .game-stage::before, .game-panel .btn.big.green::after, .win-pop.t-mega, .win-pop.t-epic, .win-pop.t-epic b { animation: none !important; }
  .fx-conf { display: none; }
}
@media (max-width: 767px) { .win-pop { padding: 14px 24px; } .win-pop.win b { font-size: 32px; } .win-pop.t-big b, .win-pop.t-mega b, .win-pop.t-epic b { font-size: 40px; } .game-stage::after { display: none; } }

/* ===== animations propres à chaque jeu ===== */

/* Flip / Coinflip : la pièce monte, grossit, puis retombe ; halo doré.
   ATTENTION : aucun « filter » sur .coin3d (ni dans l'animation) : un filtre aplatit la 3D (transform-style: preserve-3d) et la pièce n'affiche plus qu'une seule face. L'ombre et le halo sont sur les faces. */
.coin3d.toss { animation: fxToss var(--tt, 1.1s) cubic-bezier(.3, .1, .3, 1); }
@keyframes fxToss { 0% { translate: 0 0; scale: 1; } 45% { translate: 0 -120px; scale: 1.28; } 100% { translate: 0 0; scale: 1; } }
.cf-face.heads { box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .25), 0 0 34px rgba(245, 197, 66, .45), 0 14px 18px rgba(0, 0, 0, .4); }
.cf-face.tails { box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .2), 0 0 34px rgba(57, 255, 136, .45), 0 14px 18px rgba(0, 0, 0, .4); }

/* Dice : curseur néon, le résultat roule puis clignote */
.ds-track { box-shadow: 0 0 18px rgba(239, 68, 68, .35); }
.ds-fill { background: linear-gradient(90deg, #1fdc72, #39ff88); box-shadow: 0 0 18px rgba(57, 255, 136, .6); }
.ds-handle { background: linear-gradient(180deg, #6aa4ff, #3f78e6); box-shadow: 0 6px 18px rgba(77, 139, 245, .55), 0 0 0 2px rgba(255, 255, 255, .18); transition: transform .15s; }
.ds-handle:hover { transform: translate(-50%, -50%) scale(1.12); }
.ds-marker.win span { color: #0a0a0d; background: #39ff88; box-shadow: 0 0 24px rgba(57, 255, 136, .8), 0 6px 16px rgba(0, 0, 0, .4); }
.ds-marker.win::after { border-top-color: #39ff88; }
.ds-marker.lose span { color: #fff; background: var(--red); box-shadow: 0 0 22px rgba(239, 68, 68, .7), 0 6px 16px rgba(0, 0, 0, .4); }
.ds-marker.lose::after { border-top-color: var(--red); }
.ds-track.flash-win { animation: fxTrackWin .7s ease-out; }
.ds-track.flash-lose { animation: fxTrackLose .6s ease-out; }
@keyframes fxTrackWin { 0% { box-shadow: 0 0 0 0 rgba(57, 255, 136, .9); } 100% { box-shadow: 0 0 0 26px rgba(57, 255, 136, 0); } }
@keyframes fxTrackLose { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .8); } 100% { box-shadow: 0 0 0 22px rgba(239, 68, 68, 0); } }
.dice-hist span, .dice-hist .w { transition: transform .2s; }
.dice-hist span:first-child { animation: fxPop .35s cubic-bezier(.3, 1.6, .5, 1); }

/* Limbo : chiffre géant qui brille en montant, éclate à la victoire, tremble à la défaite */
.limbo-big { text-shadow: 0 0 30px rgba(255, 255, 255, .18); transition: color .2s, text-shadow .3s; }
.limbo-big.run { color: #fff; text-shadow: 0 0 34px rgba(57, 255, 136, .7), 0 0 80px rgba(57, 255, 136, .35); animation: fxPulse .35s ease-in-out infinite alternate; }
.limbo-big.win { color: #39ff88; text-shadow: 0 0 40px rgba(57, 255, 136, .85), 0 0 100px rgba(57, 255, 136, .45); animation: fxBurst .5s cubic-bezier(.3, 1.5, .5, 1); }
.limbo-big.lose { color: var(--red); text-shadow: 0 0 34px rgba(239, 68, 68, .6); animation: fxShake .5s; }
@keyframes fxPulse { from { transform: scale(1); } to { transform: scale(1.04); } }
@keyframes fxBurst { 0% { transform: scale(.85); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }

/* Mines : les cases s'ouvrent avec un éclat, la mine explose */
.tile { background: linear-gradient(180deg, #474e56, #3a4048); }
.mines-grid.live .tile:not(.open):hover { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .25), 0 0 0 2px rgba(57, 255, 136, .55), 0 8px 18px -6px rgba(57, 255, 136, .5); }
.tile.open.gem:not(.dim) { background: radial-gradient(circle, rgba(57, 255, 136, .3), rgba(57, 255, 136, .08)); box-shadow: inset 0 0 0 2px rgba(57, 255, 136, .55), 0 0 22px -2px rgba(57, 255, 136, .55); animation: tileIn .45s cubic-bezier(.22, 1, .36, 1), fxGem .6s ease-out; }
.tile.open.gem:not(.dim) span { animation: fxSpin .6s cubic-bezier(.3, 1.4, .5, 1); }
.tile.open.mine.boom { animation: fxBoom .6s ease-out; box-shadow: 0 0 40px rgba(239, 68, 68, .8), inset 0 0 0 2px rgba(239, 68, 68, .8); z-index: 2; }
@keyframes fxGem { 0% { filter: brightness(2.2); } 100% { filter: none; } }
@keyframes fxSpin { from { transform: scale(.2) rotate(-180deg); } to { transform: none; } }
@keyframes fxBoom { 0% { transform: scale(.7); filter: brightness(3); } 25% { transform: scale(1.35) rotate(-4deg); } 50% { transform: scale(.95) rotate(3deg); } 100% { transform: none; filter: none; } }

/* Towers / Keno : mêmes éclats */
.tw-tile.gem { box-shadow: inset 0 0 0 2px rgba(57, 255, 136, .5), 0 0 16px -2px rgba(57, 255, 136, .5); animation: fxGem .5s ease-out; }
.tw-tile.boom { box-shadow: 0 0 28px rgba(239, 68, 68, .8); animation: fxBoom .6s ease-out; }
.tw-row.cur .tw-tile { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25), 0 0 14px -4px rgba(57, 255, 136, .5); }
.kn.hit { background: #39ff88; box-shadow: 0 0 22px rgba(57, 255, 136, .8); animation: tileIn .2s, fxGem .5s ease-out; }
.kn.pick:not(.hit):not(.miss) { background: linear-gradient(180deg, #9a6cf8, #7c4ae6); box-shadow: 0 0 16px -2px rgba(139, 92, 246, .6); }
.kn.miss { opacity: .75; }

/* Crash : le cadre tremble au crash, chiffre néon */
.crash-graph { box-shadow: inset 0 0 60px rgba(57, 255, 136, .06); }
.crash-mult { text-shadow: 0 0 30px rgba(57, 255, 136, .5), 0 4px 20px rgba(0, 0, 0, .5); }
.crash-mult.crashed { text-shadow: 0 0 34px rgba(239, 68, 68, .75); animation: fxBurst .45s cubic-bezier(.3, 1.5, .5, 1); }
.crash-bar span { background: linear-gradient(90deg, #1fdc72, #39ff88); box-shadow: 0 0 12px rgba(57, 255, 136, .8); }

/* Roulette : bille blanche lumineuse */
#rwBallG { transform-box: view-box; transform-origin: 0 0; }   /* repère de la roue : le centre est en (0,0) */
.rw-ball { fill: #fff; filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px rgba(57, 255, 136, .8)); opacity: 0; }
.rw-in { fill: #14171a; }
.rw-hub { fill: #2a2f34; stroke: #39ff88; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(57, 255, 136, .6)); }
.rt-n.win, .rt-o.win { animation: fxWinCell .9s ease-in-out 3; }
@keyframes fxWinCell { 0%, 100% { box-shadow: 0 0 0 3px #fff; } 50% { box-shadow: 0 0 0 3px #fff, 0 0 26px 6px rgba(57, 255, 136, .9); } }

/* Cartes (Blackjack, Baccarat, HiLo) : relief */
.pcard { box-shadow: 0 10px 22px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(0, 0, 0, .06); }

/* Double : pointeur néon */
.dbl-ptr { background: #39ff88; box-shadow: 0 0 14px #39ff88, 0 0 30px rgba(57, 255, 136, .6); }
.dbl-wheel { box-shadow: inset 0 0 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .05); }

@media (prefers-reduced-motion: reduce) { .coin3d.toss, .limbo-big.run, .tile.open.gem, .tile.open.mine.boom, .rt-n.win, .pcard.deal { animation: none !important; } }


/* roulette : roue plus grande */
.roul .roul-wheel { width: min(380px, 86vw); height: min(380px, 86vw); }
.roul .rw-res { width: 92px; height: 92px; margin: -46px; font-size: 38px; }
.roul .rw-res.tm { font-size: 40px; }
.roul .roul-players { height: auto; min-height: 140px; max-height: 260px; width: 100%; max-width: 380px; }
.roul .roul-mid { max-width: 380px; }
.roul .roul-wheel text { font-size: 9.5px; }

/* ===== cartes : distribution depuis le sabot, retournement en 3D ===== */
.pcard { backface-visibility: hidden; will-change: transform; }
.game-stage .pcard.deal { animation: fxDealCard .6s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes fxDealCard {
  0% { opacity: 0; transform: translate(150px, -190px) rotate(22deg) scale(.7); }
  35% { opacity: 1; }
  80% { transform: translate(-3px, 2px) rotate(-1.5deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
.game-stage .pcard.flip { animation: fxFlipCard .55s cubic-bezier(.3, .8, .3, 1) both; }
@keyframes fxFlipCard {
  0% { transform: perspective(700px) rotateY(88deg) translateY(-6px) scale(1.04); filter: brightness(.7); }
  60% { filter: brightness(1.15); }
  100% { transform: perspective(700px) rotateY(0) translateY(0) scale(1); filter: none; }
}
.game-stage .pcard.glow-w { box-shadow: 0 0 0 3px #39ff88, 0 0 30px rgba(57, 255, 136, .7), 0 10px 22px rgba(0, 0, 0, .5); }
@media (prefers-reduced-motion: reduce) { .pcard.deal, .pcard.flip { animation: none !important; } }


/* =====================================================================
   Cartes de jeu de l'accueil — fond en dégradé vif propre à chaque jeu, grande illustration, gros titre blanc, légende « Originals »
   (les couleurs --c1/--c2/--c3 sont posées par fx.js)
   ===================================================================== */
.gc-wrap .game-card {
  --c1: #3b82ff; --c2: #2563eb; --c3: #1d4ed8;
  aspect-ratio: 130 / 178; border-radius: 14px; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 58%, var(--c3) 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .28);
  transform-style: flat;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, filter .3s;
}
/* décor : ronds clairs, halo derrière l'illustration, voile en bas pour lire le titre */
.gc-wrap .game-card .gc-glow {
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, .22) 0 11%, transparent 12%),
    radial-gradient(circle at 88% 34%, rgba(255, 255, 255, .15) 0 8%, transparent 9%),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, .12) 0 5%, transparent 6%),
    radial-gradient(62% 42% at 50% 30%, rgba(255, 255, 255, .32), transparent 72%),
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, .22));
  -webkit-mask-image: none; mask-image: none; transition: transform .6s;
}
.gc-wrap .game-card:hover .gc-glow { transform: scale(1.08); }
/* étincelle blanche */
.gc-wrap .game-card::before {
  content: '✦'; position: absolute; inset: auto; top: 9%; right: 12%; width: auto; height: auto; padding: 0; border-radius: 0; z-index: 4; opacity: .9;
  font-size: 18px; line-height: 1; color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, .85);
  background: none; -webkit-mask: none; mask: none; animation: fxTwinkle 2.8s ease-in-out infinite; animation-play-state: running;
}
.gc-wrap .game-card:hover::before { opacity: .9; }
@keyframes fxTwinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }
.gc-wrap .game-card::after { background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .22), transparent 45%); z-index: 3; }
/* illustration */
.gc-wrap .game-card .gc-art { width: 90%; height: 58%; margin-top: 6%; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .3)); animation: fxBob 4.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.37s); }
.gc-wrap .game-card .gc-art::after { display: none; }
.gc-wrap .game-card:hover .gc-art { animation-play-state: paused; transform: translateY(-6px) scale(1.07) rotate(-2deg); filter: drop-shadow(0 16px 10px rgba(0, 0, 0, .3)); }
.gc-wrap .game-card .gc-emoji { filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }
/* titre : gros, blanc, gras */
.gc-wrap .game-card .gc-title {
  z-index: 3; left: 3px; right: 3px; bottom: 19%; font-family: var(--font); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; color: #fff;
  font-size: clamp(18px, 2.1vw, 30px); line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, .14), 0 4px 14px rgba(0, 0, 0, .25);
}
.gc-wrap .game-card .gc-title.mid { font-size: clamp(15px, 1.6vw, 22px); }
.gc-wrap .game-card .gc-title.long { font-size: clamp(11px, 1.15vw, 15px); }
/* légende */
.gc-wrap .game-card .gc-cap { z-index: 3; bottom: 7%; display: block; white-space: nowrap; color: rgba(255, 255, 255, .78); letter-spacing: .16em; font-size: 7px; font-weight: 600; }
.gc-wrap .game-card .gc-cap::before, .gc-wrap .game-card .gc-cap::after { display: none; }
/* survol */
.gc-wrap .game-card:hover { transform: translateY(-6px); filter: saturate(1.12) brightness(1.04); box-shadow: 0 16px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
/* badges LIVE / PVP */
.gc-tag { position: absolute; top: 8px; left: 8px; z-index: 6; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 99px; font-size: 9px; font-weight: 800; letter-spacing: .1em; color: #fff; background: rgba(0, 0, 0, .38); backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.gc-tag i { width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 8px #ff4d4d; animation: fxLive 1.2s ease-in-out infinite; }
.gc-tag.pvp i { background: #fff; box-shadow: 0 0 8px #fff; animation: none; }
@keyframes fxLive { 50% { opacity: .35; transform: scale(.7); } }
/* nombre de joueurs sous la carte */
.gc-wrap .gc-play { justify-content: flex-start; font-size: 13px; font-weight: 600; gap: 7px; padding: 4px 0 0 2px; color: var(--txt2); }
.gc-wrap .gc-play .dot { width: 8px; height: 8px; border-radius: 50%; background: #1fd36b; box-shadow: none; }
.gc-wrap .gc-play span { color: #fff; font-weight: 700; }
.game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 760px) { .gc-tag { top: 6px; left: 6px; font-size: 8px; padding: 2px 6px 2px 5px; } .gc-wrap .game-card::before { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .gc-wrap .game-card .gc-art, .gc-wrap .game-card::before, .gc-tag i { animation: none !important; } }

/* ===== roulette : jetons de casino ===== */
.roul-board .chip {
  --c0: #f2f4f6; --c1: #8b94a0; --ct: #1b2128;
  width: 32px; height: 32px; min-width: 32px; padding: 0; border: 0; border-radius: 50%; right: -7px; top: -10px; z-index: 3;
  font-size: 9.5px; font-weight: 900; letter-spacing: -.02em; color: var(--ct); text-shadow: none;
  background: radial-gradient(circle at 50% 50%, var(--c0) 0 57%, transparent 58%), repeating-conic-gradient(from 8deg, #fff 0 14deg, var(--c1) 14deg 45deg);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55), inset 0 0 0 4.5px var(--c1), 0 2px 0 var(--c1), 0 4px 0 rgba(0, 0, 0, .35), 0 8px 12px rgba(0, 0, 0, .45);
  transition: transform .15s;
}
.roul-board .chip::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .55); pointer-events: none; }
.roul-board .chip.t0 { --c0: #f2f4f6; --c1: #8b94a0; --ct: #1b2128; }
.roul-board .chip.t1 { --c0: #e8394a; --c1: #a8222f; --ct: #fff; }
.roul-board .chip.t2 { --c0: #2f7bff; --c1: #1c4fb8; --ct: #fff; }
.roul-board .chip.t3 { --c0: #1fbf6a; --c1: #0f7f43; --ct: #fff; }
.roul-board .chip.t4 { --c0: #2a2f36; --c1: #0f1216; --ct: #fff; }
.roul-board .chip.t5 { --c0: #9b5cf6; --c1: #5f2fbf; --ct: #fff; }
.roul-board .chip.t6 { --c0: #f5c542; --c1: #b8841a; --ct: #3b2a00; }
/* jeton déjà validé : posé sur la table */
.roul-board .chip.set { animation: fxChipDrop .35s cubic-bezier(.3, 1.5, .5, 1); }
/* jeton pas encore validé : il flotte, avec un contour pointillé blanc */
.roul-board .chip.stg { top: auto; bottom: -10px; right: auto; left: -7px; background-color: transparent; outline: 2px dashed rgba(255, 255, 255, .55); outline-offset: 2px; animation: fxChipFloat 1.6s ease-in-out infinite; }
@keyframes fxChipDrop { from { transform: translateY(-18px) scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fxChipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .roul-board .chip.set, .roul-board .chip.stg { animation: none !important; } }

/* ===== roulette : plus lisible ===== */
.roul .roul-wheel text { font-size: 11.5px; font-weight: 800; }
.roul .rw-in { fill: #0f1215; }
.roul .rw-res { width: 104px; height: 104px; margin: -52px; font-size: 50px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 0 30px rgba(0, 0, 0, .6); }
.roul .rw-res.tm { font-size: 54px; background: #1c2024; box-shadow: 0 0 0 4px #39ff88, 0 0 26px rgba(57, 255, 136, .5); }
.roul .rw-res.show.red { box-shadow: 0 0 0 4px #fff, 0 0 34px rgba(232, 57, 74, .8); }
.roul .rw-res.show.green { box-shadow: 0 0 0 4px #fff, 0 0 34px rgba(47, 166, 107, .8); }
.roul .rw-ptr { border-width: 13px; border-top-width: 22px; top: -8px; }
.roul .roul-status { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.roul .roul-bar { height: 14px; border-radius: 7px; }
.roul .roul-hist { gap: 6px; }
.roul .roul-mid .roul-hist span, .roul .roul-hist span { width: 38px; height: 38px; font-size: 16px; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.roul .roul-hist span:first-child { box-shadow: 0 0 0 3px #fff, 0 3px 0 rgba(0, 0, 0, .3); }
.roul .roul-fair { font-size: 12px; }
.roul .rp-row { font-size: 15px; }
.roul .rp-head { font-size: 13px; }
/* table de mise : cases plus grandes, chiffres plus gros */
.roul .roul-board { grid-template-columns: 64px repeat(12, minmax(48px, 1fr)) 64px; grid-template-rows: repeat(3, 60px) 52px 52px; gap: 5px; min-width: 780px; }
.roul .rt-n, .roul .rt-o { font-size: 19px; font-weight: 800; border-radius: 7px; }
.roul .rt-o { font-size: 15px; letter-spacing: .02em; color: #fff; background: #343a41; }
.roul .rt-o.ev.red { background: #e8394a; } .roul .rt-o.ev.black { background: #1b1f23; }
.roul .rt-n.zero { font-size: 26px; }
.roul .rt-n.win, .roul .rt-o.win { transform: scale(1.06); z-index: 2; }
@media (max-width: 760px) { .roul .roul-board { min-width: 700px; } }

/* roulette : bille plus grosse et bien visible (contour sombre + halo) */
.roul .rw-ball { fill: #fff; stroke: none; opacity: 0; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 9px rgba(57, 255, 136, .95)) drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }

/* ===== pourboire annoncé dans le chat ===== */
.msg-sys.tip { background: linear-gradient(135deg, rgba(245, 197, 66, .14), rgba(57, 255, 136, .08)); border-color: rgba(245, 197, 66, .45); line-height: 1.5; }
.msg-sys.tip .sys-h { color: var(--gold); }
.msg-sys.tip b { color: #fff; }
.msg-sys.tip .tip-amt { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--gold); }
.msg-sys.tip .tip-note { margin-top: 3px; font-style: italic; color: var(--txt2); }

/* ===== crash en direct ===== */
.crash-fair { font-size: 12px; color: var(--txt2); word-break: break-all; padding: 0 2px; }
.crash-fair code { font-size: 11px; }
.cp-none { color: var(--txt2); font-size: 13px; text-align: center; padding: 14px 0; }
.cp-row .u { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cp-row .u img { width: 18px; height: 18px; border-radius: 4px; image-rendering: pixelated; flex: none; }
.cp-row.out { background: rgba(57, 255, 136, .08); }


/* ===== Cases : choix des caisses, bande, révélation ===== */
.cases .case-tiers { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 6px; }
.cases .case-tiers button { padding: 7px 14px; border-radius: 99px; background: #161b20; border: 1px solid rgba(255, 255, 255, .08); color: var(--txt2); font-weight: 700; font-size: 13px; cursor: pointer; transition: .18s; }
.cases .case-tiers button small { opacity: .6; margin-left: 4px; }
.cases .case-tiers button:hover { color: #fff; border-color: rgba(57, 255, 136, .4); }
.cases .case-tiers button.on { background: #39ff88; color: #04140b; border-color: #39ff88; box-shadow: 0 0 16px rgba(57, 255, 136, .35); }
.cases .case-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.cases .case-card { border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, #10151a), #0d1115 75%); transition: transform .22s, box-shadow .22s; }
.cases .case-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 14px 30px color-mix(in srgb, var(--c) 28%, transparent); }
.cases .case-card .cc-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 48%, transparent 60%); transform: translateX(-120%); pointer-events: none; }
.cases .case-card:hover .cc-shine { animation: ccShine .8s ease; }
@keyframes ccShine { to { transform: translateX(120%); } }
.cases .cc-top { position: relative; color: var(--txt2); font-size: 11px; }
.cases .case-card[data-tier="legend"] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 22px color-mix(in srgb, var(--c) 22%, transparent); }
.cases .case-card[data-tier="legend"] .cc-icon, .cases .case-card[data-tier="high"] .cc-icon { animation: ccFloat 3.2s ease-in-out infinite; }
@keyframes ccFloat { 50% { transform: translateY(-4px) rotate(-3deg); } }

.cases .cs-stage { position: relative; border-radius: 14px; padding: 14px 0; overflow: hidden; background: radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--c) 18%, #0c1014), #0a0d10 70%); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.cs-aura { position: absolute; inset: -30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%); opacity: .3; transition: opacity .4s; pointer-events: none; }
.cs-stage.spinning .cs-aura { opacity: .8; animation: csAura 1.1s ease-in-out infinite alternate; }
@keyframes csAura { to { transform: scale(1.08); opacity: .5; } }
.cases .cs-stage .reel { background: transparent; height: 150px; }
.cases .cs-stage .reel::before { background: linear-gradient(90deg, #0a0d10, transparent); }
.cases .cs-stage .reel::after { background: linear-gradient(-90deg, #0a0d10, transparent); }
.cases .cs-stage .rt { transition: transform .12s, filter .35s, opacity .35s; background: linear-gradient(180deg, color-mix(in srgb, var(--r) 14%, #12171c), #0e1216); border: 1px solid color-mix(in srgb, var(--r) 30%, transparent); border-bottom: 3px solid var(--r); }
.cases .cs-stage .rt.hot { transform: scale(1.1); filter: brightness(1.28); }
.cases .cs-stage.done .rt:not(.won) { opacity: .28; filter: saturate(.3); }
.cases .cs-stage .rt.won { transform: scale(1.14); position: relative; z-index: 2; background: color-mix(in srgb, var(--r) 28%, #10151a); box-shadow: 0 0 0 2px var(--r), 0 0 34px var(--r); animation: csWon 1.1s ease-in-out infinite alternate; }
@keyframes csWon { to { box-shadow: 0 0 0 2px var(--r), 0 0 54px var(--r); } }
.cases .reel-ptr { width: 3px; background: linear-gradient(180deg, #fff, #39ff88); box-shadow: 0 0 14px #39ff88; }
.cases .reel-ptr i { position: absolute; left: 50%; top: -1px; transform: translateX(-50%); border: 8px solid transparent; border-top-color: #39ff88; }
.cases .reel-ptr i::after { content: ''; position: absolute; left: -8px; top: 126px; border: 8px solid transparent; border-bottom-color: #39ff88; }
.cs-stage.shake { animation: csShake .6s; }
@keyframes csShake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-6px, 3px); } 40%, 60% { transform: translate(6px, -3px); } }
.cs-stage.flash::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .75), transparent 70%); animation: csFlash .9s ease-out forwards; pointer-events: none; z-index: 5; }
@keyframes csFlash { from { opacity: 1; } to { opacity: 0; } }
.cases .cs-prize { display: flex; align-items: center; gap: 14px; height: 0; opacity: 0; overflow: hidden; margin: 0; padding: 0 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--r, #39ff88) 40%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--r, #39ff88) 16%, #10151a), #0e1216); transition: height .35s ease, opacity .35s, margin .35s, padding .35s; }
.cases .cs-prize.on { height: 78px; opacity: 1; margin: 12px 0 4px; padding: 10px 16px; }
.cs-prize .cp-ic { font-size: 44px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); animation: cpIn .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cpIn { from { transform: scale(.2) rotate(-25deg); } to { transform: none; } }
.cs-prize .cp-n { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cs-prize .cp-n b { color: #fff; font-size: 17px; }
.cs-prize .cp-n small { color: var(--r); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.cs-prize .cp-v { display: flex; flex-direction: column; align-items: flex-end; }
.cs-prize .cp-v b { color: var(--gold); display: flex; gap: 6px; align-items: center; font-size: 17px; }
.cs-prize .cp-v em { font-style: normal; font-weight: 800; font-size: 13px; }
.cases .cs-hist { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.cs-hist i { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; border-radius: 8px; background: #10151a; border-bottom: 3px solid var(--r); animation: cpIn .4s cubic-bezier(.2, 1.4, .4, 1); }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 6; }
.burst i { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); background: var(--c); border-radius: 2px; box-shadow: 0 0 8px var(--c); animation: burstFly var(--t) cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes burstFly { from { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cs-stage.spinning .cs-aura, .cs-stage.shake, .cs-stage .rt.won, .cases .case-card .cc-icon, .burst i { animation: none !important; } }

/* ===== Case Battles : une mini-bande par joueur ===== */
.cb .cb-p { position: relative; overflow: visible; }
.cb .cb-reel { position: relative; width: 100%; height: 84px; overflow: hidden; border-radius: 10px; background: #0c1014; border: 1px solid rgba(255, 255, 255, .08); transition: border-color .3s, box-shadow .3s; }
.cb-reel .reel-strip { position: absolute; top: 10px; left: 0; display: flex; will-change: transform; }
.cb-reel .rt { width: 56px; height: 64px; margin: 0 4px; border-radius: 8px; background: #12171c; border-bottom: 3px solid var(--r); display: flex; align-items: center; justify-content: center; flex: none; transition: transform .12s; }
.cb-reel .rt span { font-size: 30px; }
.cb-reel::before, .cb-reel::after { content: ''; position: absolute; top: 0; bottom: 0; width: 22px; z-index: 2; pointer-events: none; }
.cb-reel::before { left: 0; background: linear-gradient(90deg, #0c1014, transparent); }
.cb-reel::after { right: 0; background: linear-gradient(-90deg, #0c1014, transparent); }
.cb-reel .reel-ptr { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: #39ff88; box-shadow: 0 0 10px #39ff88; z-index: 3; }
.cb-reel .reel-ptr i { display: none; }
.cb-reel .rt.hot { transform: scale(1.12); }
.cb .cb-reel.landed { border-color: var(--r); box-shadow: 0 0 18px color-mix(in srgb, var(--r) 55%, transparent); }
.cb-reel .rt.won { box-shadow: 0 0 0 2px var(--r), 0 0 18px var(--r); }
.cb .cb-p.leader { border-color: #ffd84a; box-shadow: 0 0 22px rgba(255, 216, 74, .25); }
.cb .cb-p.winner { box-shadow: 0 0 32px rgba(57, 255, 136, .35); }
.cb-crown { display: none; font-size: 18px; margin-left: auto; }
.cb-p.leader .cb-crown, .cb-p.winner .cb-crown { display: inline-flex; animation: crownBob 1s ease-in-out infinite alternate; }
@keyframes crownBob { to { transform: translateY(-3px) rotate(6deg); } }
.cb-skip { display: flex; justify-content: center; margin-top: 12px; }
.cb-tot b { font-variant-numeric: tabular-nums; }
