/* Casino Dragon d'Or, seconde salle et machines vidéo (ui/casino-games-view.js) : baccara, sic bo, craps, roue de la fortune,
   vidéo poker, machines vidéo à cinq rouleaux, célébrations des gros gains. Complète css/casino.css. */
.cz-chip.v20 { --c: #b0306a; } .cz-chip.v200 { --c: #6a4a1a; }
.btn-ghost.on { color: #1a0a04; background: var(--gold); border-color: var(--gold); }

/* Dés (3 × 3 points) */
.cz-die {
  display: inline-grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 3px; width: 52px; height: 52px; padding: 7px; flex: none;
  border-radius: 10px; background: linear-gradient(145deg, #ff2a3a, #a00a18); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.5);
}
.cz-die i { border-radius: 50%; }
.cz-die i.on { background: #fff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3); }
.cz-die.mini { width: 18px; height: 18px; padding: 2px; gap: 1px; border-radius: 4px; box-shadow: none; }
.cz-die.roll { animation: cz-roll 0.35s linear infinite; }
.cz-die.roll.r1 { animation-duration: 0.29s; animation-direction: reverse; }
.cz-die.roll.r2 { animation-duration: 0.41s; }
@keyframes cz-roll { 0% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-14px) rotate(90deg); } 50% { transform: translateY(0) rotate(180deg); } 75% { transform: translateY(-8px) rotate(270deg); } 100% { transform: translateY(0) rotate(360deg); } }

/* Baccara */
.cz-felt.bac { flex-direction: row; justify-content: space-around; background: radial-gradient(ellipse at 50% 0%, #8a1a2a, #3a0610); min-height: 200px; }
.bac-side { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border-radius: 16px; border: 2px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.bac-side h4 { margin: 0; font-family: 'Orbitron'; font-size: 14px; letter-spacing: 0.14em; }
.bac-side.joueur h4 { color: #6aa8ff; } .bac-side.banque h4 { color: #ff6a7a; }
.bac-side h4 b { color: #fff; font-size: 18px; }
.bac-side.win { border-color: var(--gold); box-shadow: 0 0 26px rgba(255, 210, 122, 0.45); }
.bac-spots { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1.6fr 1fr; gap: 8px; }
.bac-spot {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; border-radius: 14px; cursor: pointer;
  background: rgba(10, 74, 42, 0.85); border: 2px solid rgba(242, 234, 210, 0.6); color: #f2ead2; font-family: 'Rajdhani';
}
.bac-spot b { font-family: 'Orbitron'; font-size: 13px; letter-spacing: 0.08em; }
.bac-spot small { font-size: 13px; color: var(--gold); }
.bac-spot.joueur { background: rgba(26, 58, 122, 0.85); } .bac-spot.banque { background: rgba(122, 20, 36, 0.85); }
.bac-spot:hover:not(:disabled) { filter: brightness(1.2); }
.bac-spot:disabled { cursor: not-allowed; opacity: 0.8; }
.bac-spot.won, .sic-cell.won, .cr-spot.won { animation: cz-won 0.8s ease-in-out infinite alternate; border-color: var(--gold); }
@keyframes cz-won { from { box-shadow: 0 0 6px rgba(255, 210, 122, 0.3); } to { box-shadow: 0 0 24px rgba(255, 210, 122, 0.9), inset 0 0 14px rgba(255, 210, 122, 0.4); } }
.bac-road { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-radius: 12px; background: #f4f0e6; min-height: 40px; align-items: center; }
.road { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 12px; color: #fff; }
.road.joueur { background: #2a5ac0; } .road.banque { background: #c0142a; } .road.egalite { background: #1a8a3a; }

/* Sic bo */
.sic-top { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sic-dome {
  display: flex; gap: 10px; padding: 22px 30px 26px; border-radius: 50% 50% 18px 18px / 70% 70% 18px 18px;
  background: radial-gradient(ellipse at 40% 25%, rgba(255, 255, 255, 0.35), rgba(160, 200, 230, 0.12) 50%, rgba(20, 40, 60, 0.4));
  border: 2px solid rgba(220, 240, 255, 0.5); box-shadow: inset 0 -12px 18px rgba(0, 0, 0, 0.35), 0 8px 0 #c9a050, 0 12px 20px rgba(0, 0, 0, 0.5);
}
.sic-dome.shaking { animation: cz-shake 0.12s linear infinite; }
@keyframes cz-shake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-4px, -3px) rotate(-2deg); } 75% { transform: translate(4px, -2px) rotate(2deg); } }
.sic-sum { margin: 0; font-size: 17px; color: #fff2d0; }
.sic-sum b { color: var(--gold); font-family: 'Orbitron'; }
.sic-grid { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 14px; background: radial-gradient(ellipse at center, #173c7a, #0a1a38); border: 3px solid #3a1a0a; }
.sic-row { display: flex; gap: 5px; }
.sic-row > * { flex: 1; }
.sic-row.combis { flex-wrap: wrap; }
.sic-row.combis > * { flex: 1 0 calc(100% / 8 - 5px); }
.sic-cell {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 36px; padding: 4px 2px;
  border-radius: 6px; border: 1.5px solid rgba(242, 234, 210, 0.6); background: rgba(0, 0, 0, 0.18); color: #f2ead2; cursor: pointer;
  font-family: 'Orbitron'; font-weight: 900; font-size: 15px;
}
.sic-dice { display: flex; gap: 2px; }
.sic-cell small { font-family: 'Rajdhani'; font-weight: 700; font-size: 11px; color: var(--gold); }
.sic-cell:hover:not(:disabled) { background: rgba(255, 210, 122, 0.18); }
.sic-cell:disabled { cursor: not-allowed; }
.sic-cell .cz-die:not(.mini) { width: 30px; height: 30px; padding: 4px; gap: 2px; }

/* Craps */
.cz-felt.cr { border-radius: 26px; }
.cr-top { display: flex; align-items: center; gap: 18px; }
.cr-puck {
  display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; font-family: 'Orbitron'; font-weight: 900; font-size: 13px;
  background: #141414; color: #fff; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.cr-puck.on { background: #f4f0e6; color: #141414; border-color: #c0142a; }
.cr-puck b { display: block; font-size: 20px; line-height: 1; color: #c0142a; }
.cr-dice { display: flex; gap: 10px; }
.cr-say { margin: 0; flex: 1; font-size: 16px; color: #fff2d0; }
.cr-spots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cr-spot {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px; border-radius: 12px; cursor: pointer;
  border: 2px solid rgba(242, 234, 210, 0.65); background: rgba(0, 0, 0, 0.15); color: #f2ead2;
}
.cr-spot b { font-family: 'Orbitron'; font-size: 12px; letter-spacing: 0.06em; }
.cr-spot small { font-size: 12px; color: var(--gold); text-align: center; }
.cr-spot.pass, .cr-spot.dontpass { background: rgba(255, 255, 255, 0.06); }
.cr-spot.field b { color: #ffe066; } .cr-spot.any7 b { color: #ff6a7a; }
.cr-spot:hover:not(:disabled) { background: rgba(255, 210, 122, 0.2); }
.cr-spot:disabled { cursor: not-allowed; opacity: 0.55; }
.cr-spot.lost { opacity: 0.6; border-color: #ff6a7a; }
.cr-spot.push { border-color: #8ab4ff; }
.cr-history { display: flex; flex-wrap: wrap; gap: 4px; }
.cr-h { min-width: 28px; padding: 3px 5px; border-radius: 6px; text-align: center; font-style: normal; font-weight: 700; background: #1a3a2a; color: #fff; }
.cr-h.seven { background: #c0142a; }

/* Roue de la fortune */
.ro-boxes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ro-box {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 4px; border-radius: 12px; cursor: pointer;
  background: color-mix(in srgb, var(--c) 30%, #0a0a14); border: 2px solid var(--c); color: #fff;
}
.ro-box b { font-family: 'Orbitron'; font-weight: 900; font-size: 22px; text-shadow: 0 0 10px var(--c); }
.ro-box small { font-size: 12px; color: #f2ead2; text-align: center; }
.ro-box:hover:not(:disabled) { filter: brightness(1.25); }
.ro-box:disabled { cursor: not-allowed; opacity: 0.75; }
.ro-h { min-width: 28px; padding: 3px 6px; border-radius: 6px; text-align: center; font-weight: 700; font-size: 14px; color: #fff; background: color-mix(in srgb, var(--c) 55%, #000); }
.cz-wheel.ro { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 0 4px #c9a050, 0 0 30px rgba(255, 180, 80, 0.25); }

/* Vidéo poker */
.vp-screen {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px; border-radius: 18px;
  background: radial-gradient(ellipse at center, #10106a, #04043a); border: 4px solid #3a3a5a; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(80, 120, 255, 0.15);
}
.vp-screen .cz-bar { align-self: stretch; }
.vp-cards { display: flex; gap: 10px; }
.vp-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px; border-radius: 10px; border: 2px solid transparent; background: transparent; cursor: pointer; }
.vp-card:disabled { cursor: default; }
.vp-card .cz-card { width: 72px; height: 102px; }
/* L'étiquette seulement : « .vp-card span » prenait aussi la carte (un span) et peignait piques et trèfles en jaune (18/10) */
.vp-card .vp-hold { min-height: 18px; font-family: 'Orbitron'; font-size: 11px; font-weight: 900; color: #ffe066; letter-spacing: 0.08em; }
.vp-card.held { border-color: #ffe066; box-shadow: 0 0 16px rgba(255, 224, 102, 0.5); }
.vp-card.held .cz-card { transform: translateY(-6px); }
.vp-msg { margin: 0; min-height: 22px; font-size: 17px; color: #ffe066; text-align: center; }
.cz-pays.vp li.hit { background: rgba(255, 224, 102, 0.25); border-radius: 6px; animation: cz-won 0.7s ease-in-out infinite alternate; }
.cz-pays.vp li.now { color: #ffe066; }
.cz-pays.vp li { padding: 2px 6px; }

/* Machines vidéo */
.vs-machine {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border-radius: 26px 26px 18px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, #08060e), #06040a 40%); border: 3px solid var(--c);
  box-shadow: 0 0 28px color-mix(in srgb, var(--c) 40%, transparent), inset 0 0 30px rgba(0, 0, 0, 0.6);
  animation: vs-glow 3s ease-in-out infinite alternate;
}
@keyframes vs-glow { from { box-shadow: 0 0 14px color-mix(in srgb, var(--c) 30%, transparent), inset 0 0 30px rgba(0, 0, 0, 0.6); } to { box-shadow: 0 0 34px color-mix(in srgb, var(--a) 50%, transparent), inset 0 0 30px rgba(0, 0, 0, 0.6); } }
.vs-machine .cz-bar { align-self: stretch; }
.vs-top { display: flex; align-items: center; justify-content: space-between; align-self: stretch; gap: 10px; }
.vs-top > b { font-family: 'Orbitron'; font-weight: 900; font-size: 22px; letter-spacing: 0.1em; color: #fff; text-shadow: 0 0 12px var(--c), 0 0 24px var(--a); }
.vs-top span { font-family: 'Orbitron'; font-size: 11px; letter-spacing: 0.12em; color: #ffb0b8; }
.vs-top em { display: block; font-style: normal; font-size: 20px; font-weight: 900; color: #ffe9b0; text-shadow: 0 0 10px #ff3b4f, 0 0 20px #ffb030; animation: vs-jp 1.6s ease-in-out infinite alternate; }
@keyframes vs-jp { from { filter: brightness(0.9); } to { filter: brightness(1.35); } }
.vs-window { position: relative; padding: 8px; border-radius: 12px; background: #030208; border: 3px solid var(--gold-d); box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9); }
.vs-reels { position: relative; display: grid; grid-template-columns: repeat(5, 92px); gap: 4px; }
.vs-reel { position: relative; height: 174px; overflow: hidden; border-radius: 6px; background: linear-gradient(180deg, #120a1c, #2a1840 50%, #120a1c); transition: box-shadow 0.2s; }
.vs-reels.koi .vs-reel { background: linear-gradient(180deg, #06202a, #0e4050 50%, #06202a); }
.vs-reel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 25%, transparent 75%, rgba(0, 0, 0, 0.6)); }
.vs-reel.blur .vs-strip { filter: blur(1.5px) brightness(1.15); }
.vs-reel.tease { box-shadow: 0 0 0 3px #ffd27a, 0 0 24px #ffb030; animation: vs-tease 0.25s linear infinite alternate; }
@keyframes vs-tease { from { box-shadow: 0 0 0 2px #ffd27a, 0 0 12px #ffb030; } to { box-shadow: 0 0 0 4px #fff2c0, 0 0 30px #ffb030; } }
.vs-strip { display: flex; flex-direction: column; will-change: transform; }
.vs-sym { height: 58px; display: grid; place-items: center; font-size: 36px; line-height: 1; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.vs-sym.s-sept { font-family: 'Orbitron'; font-weight: 900; font-size: 40px; color: #ff3b4f; text-shadow: 0 0 10px #ff3b4f; }
.vs-sym.s-bar { font-family: 'Orbitron'; font-weight: 900; font-size: 18px; color: #ffe3a0; letter-spacing: 0.05em; padding: 4px 6px; }
.vs-sym.wild { font-family: 'Orbitron', 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 17px; color: #ffe3a0; text-shadow: 0 0 10px #ffb030, 0 0 18px #ff3b4f; }
.vs-reels.koi .vs-sym.wild { font-size: 38px; }
.vs-sym.scatter { color: #ff9af0; text-shadow: 0 0 10px #ff4fd8, 0 0 22px #ff4fd8; font-size: 38px; }
.vs-sym.hit { animation: vs-hit 0.5s ease-in-out infinite alternate; }
@keyframes vs-hit { from { transform: scale(1); filter: brightness(1); } to { transform: scale(1.18); filter: brightness(1.6) drop-shadow(0 0 8px #ffd27a); } }
.vs-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vs-lines polyline { fill: none; stroke-width: 4; stroke-linejoin: round; filter: drop-shadow(0 0 4px currentColor); opacity: 0.9; vector-effect: non-scaling-stroke; }
.vs-banner {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px;
  background: radial-gradient(ellipse at center, rgba(255, 79, 216, 0.55), rgba(10, 2, 20, 0.92)); font-family: 'Orbitron'; font-weight: 900; font-size: 30px; color: #fff;
  text-shadow: 0 0 16px #ff4fd8, 0 0 30px #ffd27a; animation: vs-banner 0.5s ease-out;
}
.vs-banner small { font-size: 15px; color: #ffe3a0; margin-top: 8px; }
@keyframes vs-banner { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.vs-info { display: flex; gap: 16px; align-items: center; min-height: 24px; font-size: 16px; color: #fff2d0; }
.vs-info b { color: var(--gold); }
.vs-free { padding: 3px 10px; border-radius: 999px; background: rgba(255, 79, 216, 0.25); border: 1px solid #ff4fd8; }
.vs-mini { display: inline-block; min-width: 58px; font-size: 20px; font-family: 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.vs-mini.s-sept { font-family: 'Orbitron'; font-weight: 900; color: #ff3b4f; } .vs-mini.s-bar { font-family: 'Orbitron'; font-weight: 900; font-size: 13px; color: #ffe3a0; }
.vs-mini.scatter { color: #ff9af0; } .vs-mini.wild { font-family: 'Orbitron', 'Noto Sans JP', sans-serif; font-size: 13px; font-weight: 900; color: #ffd27a; }
.cz-pays.vs li b { font-size: 13px; text-align: right; }

/* Célébration d'un gros gain : rayons, pluie de pièces, compteur */
.cz-fx { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(40, 8, 0, 0.35), rgba(0, 0, 0, 0.65)); cursor: pointer; animation: fade-in 0.25s ease-out; }
.cz-rays {
  position: absolute; width: 160vmax; height: 160vmax; border-radius: 50%; opacity: 0.35;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 122, 0.6) 0deg 8deg, transparent 8deg 22deg);
  mask: radial-gradient(circle, #000 0, transparent 60%); -webkit-mask: radial-gradient(circle, #000 0, transparent 60%);
  animation: cz-spin 12s linear infinite;
}
@keyframes cz-spin { to { transform: rotate(360deg); } }
.cz-coins { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cz-bigwin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: cz-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1); }
.cz-bigwin .t {
  font-family: 'Orbitron'; font-weight: 900; font-size: clamp(38px, 8vw, 92px); letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff6d0, #ffd27a 45%, #c9902a 55%, #ffe9a0); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 176, 48, 0.8)) drop-shadow(0 6px 0 #6a3a08);
}
.cz-bigwin .n { font-style: normal; font-family: 'Orbitron'; font-weight: 900; font-size: clamp(28px, 5vw, 60px); color: #fff; text-shadow: 0 0 18px #ffb030, 0 0 40px #ff3b4f; }
.cz-fx.jackpot { background: radial-gradient(ellipse at center, rgba(120, 0, 20, 0.5), rgba(0, 0, 0, 0.75)); }
.cz-fx.jackpot .cz-bigwin .t { font-size: clamp(54px, 11vw, 130px); animation: cz-flash 0.35s steps(2) infinite; }
@keyframes cz-flash { 50% { filter: drop-shadow(0 0 30px #ff3b4f) drop-shadow(0 6px 0 #6a3a08) brightness(1.4); } }
@keyframes cz-pop { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  .bac-spots { grid-template-columns: repeat(3, 1fr); }
  .ro-boxes { grid-template-columns: repeat(4, 1fr); }
  .vs-reels { grid-template-columns: repeat(5, 62px); }
  .cr-spots { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .cz-rays, .vs-machine, .vs-sym.hit, .cz-die.roll, .sic-dome.shaking, .cz-fx.jackpot .cz-bigwin .t { animation: none; }
}
