/* Styles propres à chaque jeu. */

/* ---------- Commun aux tapis ---------- */
.case-mise { position: relative; cursor: pointer; transition: filter 0.12s, box-shadow 0.12s; user-select: none; }
.case-mise:hover { filter: brightness(1.18); }
.case-mise:focus-visible { outline: 3px solid var(--laiton-clair); outline-offset: -3px; }
.verrou .choix-jetons, .verrou .rangee .btn:not(.principal) { opacity: 0.6; }
.gagnant { animation: gagnant 0.9s ease-in-out infinite alternate; }
@keyframes gagnant { from { box-shadow: 0 0 0 2px #fff3cf, 0 0 6px 2px rgba(246, 216, 143, 0.5); } to { box-shadow: 0 0 0 3px #fff3cf, 0 0 22px 6px rgba(246, 216, 143, 0.9); } }
.historique-num { display: flex; gap: 5px; flex-wrap: nowrap; overflow-x: auto; min-height: 30px; margin-bottom: 10px; scrollbar-width: none; }
.pastille {
  flex: none; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 14px var(--texte); background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(246, 238, 219, 0.3);
}
.pastille.rouge { background: var(--laque); }
.pastille.noir { background: #1d1a24; }
.pastille.vert { background: #127a4a; }
.pastille.dernier { outline: 2px solid var(--laiton-clair); }
.pastille.large { padding: 0 9px; }
.pastille.gagne, .pastille.haut { background: #1f8a55; }
.pastille.moyen { background: #2f63b7; }
.pastille.bas { background: rgba(0, 0, 0, 0.4); }
.doux { color: var(--doux); font-size: 15px; }
h4 { margin: 12px 0 4px; font-size: 15px; color: var(--doux); font-weight: 600; }

/* ---------- Roulette ---------- */
.tapis-cadre { display: flex; justify-content: center; }
.tapis-roulette {
  display: grid; gap: 2px; width: 100%; max-width: 460px;
  grid-template-columns: repeat(3, 1fr) 0.75fr 0.75fr;
  grid-template-rows: 38px repeat(12, minmax(30px, 1fr)) 34px;
}
.tapis-roulette.horizontal {
  max-width: 980px;
  grid-template-columns: 0.9fr repeat(12, 1fr) 1.1fr;
  grid-template-rows: repeat(3, 52px) 40px 40px;
}
.tapis-roulette .num, .tapis-roulette .ext {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(246, 238, 219, 0.55); border-radius: 4px; font-weight: 700;
}
.tapis-roulette .num { font-size: 17px; }
.num.rouge { background: var(--laque); }
.num.noir { background: #1d1a24; }
.num.vert { background: #127a4a; }
.tapis-roulette .ext { background: rgba(0, 0, 0, 0.12); font-size: 14px; text-align: center; line-height: 1.1; }
.tapis-roulette:not(.horizontal) .ext.dz .lib, .tapis-roulette:not(.horizontal) .ext.ch .lib { writing-mode: vertical-rl; transform: rotate(180deg); }
.ext.rouge .lib { color: var(--laque-claire); font-size: 22px; writing-mode: horizontal-tb !important; transform: none !important; }
.ext.noir .lib { color: #000; font-size: 22px; writing-mode: horizontal-tb !important; transform: none !important; }
.tapis-roulette .ext.col { font-size: 12px; }
.tapis-roulette:not(.horizontal) .ext .mise-posee.autre { top: 2px; bottom: auto; }
.tapis-roulette:not(.horizontal) .ext .mise-posee:not(.autre) { top: auto; bottom: 2px; }
.voile-cylindre {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(10, 6, 22, 0.55); transition: opacity 0.4s;
}
.voile-cylindre.replie { opacity: 0; pointer-events: none; }
.cylindre { border-radius: 50%; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7); }
.boule-resultat { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 400 36px var(--affiche); opacity: 0; transform: scale(0.5); transition: 0.3s; border: 3px solid #fff3cf; }
.boule-resultat.visible { opacity: 1; transform: scale(1); }
.boule-resultat.rouge { background: var(--laque); }
.boule-resultat.noir { background: #1d1a24; }
.boule-resultat.vert { background: #127a4a; }

/* ---------- Roue de la fortune ---------- */
.roue-cadre { display: flex; justify-content: center; margin: 4px 0 14px; }
.grande-roue { border-radius: 50%; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); }
.cases-roue { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; max-width: 760px; margin: 0 auto; }
.case-roue {
  background: var(--c); color: #2a1c14; border-radius: 12px; padding: 10px 4px; text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.6); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); min-height: 70px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.case-roue b { font: 400 26px var(--affiche); }
.case-roue small { font-weight: 700; font-size: 12.5px; }
.case-roue:nth-child(n + 6) { color: #fff; }

/* ---------- Baccarat ---------- */
.route-bac { display: flex; gap: 4px; flex-wrap: wrap; min-height: 24px; margin-bottom: 10px; }
.rond { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; border: 2px solid; }
.rond.cote-joueur { border-color: #6aa0ff; color: #6aa0ff; }
.rond.cote-banquier { border-color: var(--laque-claire); color: var(--laque-claire); }
.rond.cote-egalite { border-color: var(--gagne); color: var(--gagne); }
.mains-bac { display: flex; justify-content: center; align-items: stretch; gap: 12px; margin-bottom: 16px; }
.contre { align-self: center; color: var(--laiton-clair); font: 400 18px var(--affiche); }
.main-bac { flex: 1; max-width: 300px; border-radius: 14px; padding: 10px; text-align: center; background: rgba(0, 0, 0, 0.18); border: 2px solid rgba(246, 238, 219, 0.3); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.main-bac h3 { margin: 0; font: 400 22px var(--affiche); }
.main-bac.cote-joueur h3 { color: #8fb6ff; }
.main-bac.cote-banquier h3 { color: #ff8f9c; }
.main-bac .cartes { justify-content: center; min-height: 82px; }
.main-bac.gagne { border-color: var(--laiton-clair); box-shadow: 0 0 22px rgba(246, 216, 143, 0.6); }
.total-bac { font: 400 34px var(--affiche); color: #ffe9a8; min-height: 40px; }
.cases-bac { display: grid; grid-template-columns: 0.8fr 1fr 1fr 1fr 0.8fr; gap: 8px; max-width: 760px; margin: 0 auto; }
.case-bac { border-radius: 12px; padding: 14px 6px; text-align: center; border: 2px solid rgba(246, 238, 219, 0.55); display: flex; flex-direction: column; gap: 2px; min-height: 76px; justify-content: center; }
.case-bac b { font: 400 20px var(--affiche); }
.case-bac small { color: rgba(246, 238, 219, 0.8); font-size: 13px; }
.case-bac.cote-joueur { background: rgba(47, 99, 183, 0.45); }
.case-bac.cote-banquier { background: rgba(184, 29, 47, 0.45); }
.case-bac.cote-egalite { background: rgba(31, 138, 85, 0.45); }
.case-bac.cote-paire { background: rgba(0, 0, 0, 0.18); }

/* ---------- Sic bo ---------- */
.cloche {
  margin: 0 auto 14px; width: 220px; height: 120px; border-radius: 110px 110px 18px 18px;
  background: radial-gradient(ellipse at 40% 25%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.06) 60%), rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(246, 238, 219, 0.4); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px;
}
.des-cloche { display: flex; gap: 12px; }
.de { --t: 54px; width: var(--t); height: var(--t); border-radius: calc(var(--t) * 0.18); background: linear-gradient(145deg, #fffaf0, #e9dfc6); display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(var(--t) * 0.12); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); flex: none; }
.de i { display: block; margin: auto; width: 62%; height: 62%; border-radius: 50%; }
.de i.p { background: #1d1630; }
.de.mini { --t: 17px; padding: 2px; border-radius: 3px; box-shadow: none; }
.de.moyen { --t: 30px; }
.de.secoue { animation: secoue 0.11s linear infinite; }
.de.pose { animation: pose-de 0.35s ease-out; }
@keyframes secoue { 25% { transform: translate(3px, -4px) rotate(10deg); } 75% { transform: translate(-3px, 2px) rotate(-12deg); } }
@keyframes pose-de { from { transform: translateY(-14px) rotate(25deg); } }
.tapis-sb { max-width: 820px; margin: 0 auto; }
.sb-titre { margin: 10px 0 4px; color: rgba(246, 238, 219, 0.75); font-size: 14px; }
.sb-ligne { display: grid; gap: 5px; margin-bottom: 5px; }
.sb-ligne.l5 { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; }
.sb-ligne.l6 { grid-template-columns: repeat(6, 1fr); }
.sb-ligne.l7 { grid-template-columns: repeat(7, 1fr); }
.case-sb { border: 1px solid rgba(246, 238, 219, 0.5); border-radius: 8px; padding: 6px 2px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; background: rgba(0, 0, 0, 0.12); }
.case-sb b { font: 400 18px var(--affiche); }
.case-sb small { font-size: 11px; color: rgba(246, 238, 219, 0.8); line-height: 1.1; }
.mini-des { display: flex; gap: 2px; }
.sb-ligne.l7 .case-sb { min-height: 46px; }

/* ---------- Blackjack ---------- */
.croupier { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.etiquette { font: 400 18px var(--affiche); color: var(--laiton-clair); }
.total-bj { font: 400 24px var(--affiche); min-height: 30px; }
.regle-bj { text-align: center; color: rgba(246, 238, 219, 0.5); font: 400 15px var(--affiche); margin: 10px auto 14px; letter-spacing: 0.04em; }
.places-bj { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: flex-end; }
.place-bj { min-width: 120px; padding: 8px; border-radius: 14px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(246, 238, 219, 0.25); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.place-bj.moi { border-color: var(--laiton); background: rgba(70, 50, 20, 0.35); min-width: 170px; order: 0; }
.place-bj.joue { box-shadow: 0 0 0 2px var(--laiton-clair), 0 0 16px rgba(246, 216, 143, 0.55); }
.place-bj.deconnecte { opacity: 0.55; }
.place-bj .nom { font-weight: 700; display: flex; gap: 5px; align-items: center; font-size: 14.5px; }
.place-bj .pile { color: #ffe9a8; font-size: 14px; }
.mains-bj { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.main-bj { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; border-radius: 10px; }
.main-bj.active { background: rgba(246, 216, 143, 0.16); outline: 2px dashed var(--laiton-clair); }
.total-main { font-size: 14px; font-weight: 700; }
.total-main.gagne, .res-bj.gagne { color: var(--gagne); }
.total-main.perdu, .res-bj.perdu { color: var(--perdu); }
.mise-bj { position: relative; min-height: 26px; min-width: 40px; }
.mise-bj .mise-posee { position: static; }
.res-bj { font-weight: 700; min-height: 1.2em; }

/* ---------- Poker ---------- */
.adversaires { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.adv { padding: 7px 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(246, 238, 219, 0.2); display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center; min-height: 128px; }
.adv .nom { font-weight: 700; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: 14.5px; }
.adv .pile { color: #ffe9a8; font-size: 14px; }
.adv .action { font-size: 13px; color: var(--doux); min-height: 1.1em; }
.adv.joue { box-shadow: 0 0 0 2px var(--laiton-clair), 0 0 14px rgba(246, 216, 143, 0.6); }
.adv.couche { opacity: 0.45; }
.adv.gagnant { border-color: var(--laiton-clair); background: rgba(224, 172, 74, 0.25); }
.adv.deconnecte { opacity: 0.4; }
.mise-table { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #1e1e2a; color: #f6d88f; font-weight: 700; font-size: 13px; border: 1px dashed #f6d88f; }
.jeton-d { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #fffaf0; color: #1d1630; font-size: 12px; font-weight: 800; align-items: center; justify-content: center; }
.centre-poker { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0; }
.board { justify-content: center; min-height: 82px; }
.pot { font: 400 22px var(--affiche); color: #ffe9a8; min-height: 28px; }
.resultats-poker { text-align: center; font-weight: 700; color: var(--gagne); }
.moi-poker { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 10px; border-radius: 14px; background: rgba(70, 50, 20, 0.35); border: 1px solid var(--laiton); max-width: 480px; margin: 0 auto; }
.moi-poker.joue { box-shadow: 0 0 0 2px var(--laiton-clair), 0 0 16px rgba(246, 216, 143, 0.55); }
.mes-cartes .carte { --l: 70px; }
.mes-cartes.couche { opacity: 0.4; }
.moi-droite { display: flex; flex-direction: column; gap: 4px; }
.ma-main { font: 400 19px var(--affiche); color: var(--laiton-clair); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ma-mise { color: var(--doux); }
.panneau-relance { display: flex; flex-direction: column; gap: 8px; }
.ligne-relance { display: flex; gap: 12px; align-items: center; }
.ligne-relance input { flex: 1; accent-color: var(--laiton); }
.montant-relance { font: 400 20px var(--affiche); color: #ffe9a8; min-width: 150px; text-align: right; }

/* ---------- Crash ---------- */
.ciel { position: relative; height: clamp(240px, 42vh, 420px); border-radius: 14px; overflow: hidden; background: linear-gradient(#0b1530, #1f2f5a 70%, #3a2a5a); }
.courbe-crash { position: absolute; inset: 0; width: 100%; height: 100%; }
.affiche-crash { position: absolute; left: 0; right: 0; top: 18%; text-align: center; pointer-events: none; }
.mult-crash { font: 400 clamp(38px, 9vw, 72px)/1 var(--affiche); color: #ffe9a8; text-shadow: 0 0 18px rgba(255, 200, 90, 0.6); font-variant-numeric: tabular-nums; }
.mult-crash.attente { font-size: clamp(24px, 5vw, 38px); color: var(--ivoire); }
.mult-crash.explose { color: #ff6b6b; text-shadow: 0 0 18px rgba(255, 80, 80, 0.7); }
.sous-crash { color: var(--doux); margin-top: 6px; }
.cible-crash { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.cible-crash label { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.cible-crash input { width: 86px; padding: 7px 8px; border-radius: 8px; border: 1px solid #6b5a99; background: #120c24; }
.encaisser { width: 100%; font-size: 22px; padding: 16px; }

/* ---------- Machine à sous ---------- */
.cabinet { max-width: 620px; margin: 0 auto; padding: 14px; border-radius: 24px; background: linear-gradient(#a0213a, #6b1222); border: 4px solid var(--laiton); box-shadow: inset 0 0 0 4px #4a0c18, var(--ombre); }
.fronton { text-align: center; font: 400 clamp(26px, 5vw, 38px) var(--affiche); color: #ffe9a8; text-shadow: 0 0 12px rgba(255, 200, 90, 0.8); margin-bottom: 8px; }
.tours-gratuits { text-align: center; font-weight: 700; color: var(--gagne); margin-bottom: 6px; }
.vitre { position: relative; border-radius: 12px; background: #fffaf0; border: 4px solid #3a0a14; overflow: hidden; }
.rouleaux { display: grid; grid-template-columns: repeat(5, 1fr); }
.rouleau { display: grid; grid-template-rows: repeat(3, 1fr); border-right: 2px solid rgba(0, 0, 0, 0.12); }
.rouleau:last-child { border-right: 0; }
.case-rouleau { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: clamp(28px, 7vw, 48px); line-height: 1; }
.rouleau.tourne .case-rouleau { filter: blur(2px); transform: translateY(6px); }
.rouleau.arret { animation: arret 0.26s ease-out; }
@keyframes arret { 40% { transform: translateY(8px); } }
.case-rouleau.gagne { animation: pulse 0.6s ease-in-out infinite alternate; background: rgba(246, 216, 143, 0.45); }
@keyframes pulse { to { transform: scale(1.12); } }
.lignes-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ligne-gagnante { fill: none; stroke: #ff3b5c; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; vector-effect: non-scaling-stroke; }
.ligne-gagnante.l1, .ligne-gagnante.l6 { stroke: #2f63b7; }
.ligne-gagnante.l2, .ligne-gagnante.l7 { stroke: #1f8a55; }
.ligne-gagnante.l3, .ligne-gagnante.l8 { stroke: #7b3fa6; }
.ligne-gagnante.l4, .ligne-gagnante.l9 { stroke: #e07a2f; }
.gain-machine { text-align: center; font: 400 26px var(--affiche); color: #ffe9a8; margin-top: 10px; min-height: 34px; }
.gain-machine.gagne { color: #b6ffcf; text-shadow: 0 0 12px rgba(123, 227, 164, 0.7); }
.table-gains summary { cursor: pointer; color: var(--laiton-clair); font-weight: 600; }
.table-gains table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14.5px; }
.table-gains td { padding: 3px 4px; border-bottom: 1px solid #3a2e5f; }
.table-gains p { font-size: 14px; color: var(--doux); }

/* ---------- 777 ---------- */
.jeu-sept .scene { display: flex; justify-content: center; align-items: center; gap: 0; --fond-scene: #2a1a10; }
.meuble-777 { width: min(440px, 100%); padding: 16px; border-radius: 30px 30px 18px 18px; background: linear-gradient(90deg, #8a8f99, #e8ebef 20%, #b9bec7 50%, #e8ebef 80%, #8a8f99); box-shadow: var(--ombre), inset 0 0 0 4px #5a3a1a; }
.fronton-777 { text-align: center; font: 400 44px var(--affiche); color: var(--laque); text-shadow: 0 2px 0 #fff, 0 0 18px rgba(184, 29, 47, 0.6); letter-spacing: 0.15em; }
.tableau-777 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px 10px; background: #1d1630; color: var(--ivoire); border-radius: 10px; padding: 8px 10px; margin: 8px 0 12px; font-size: 13px; }
.tableau-777 div { display: flex; justify-content: space-between; gap: 6px; }
.tableau-777 b { color: var(--laiton-clair); white-space: nowrap; }
.tableau-777 span { display: inline-flex; gap: 3px; align-items: center; }
.tableau-777 i { font-style: normal; display: inline-flex; flex-direction: column; gap: 1px; align-items: center; justify-content: center; min-width: 14px; }
.tableau-777 .m7 { color: #ff6b6b; font: 400 15px/1 var(--affiche); }
.tableau-777 .mc { font-size: 12px; }
.tableau-777 .mb u { display: block; width: 14px; height: 3px; background: #ffe9a8; border-radius: 1px; }
.vitre-777 { position: relative; border-radius: 12px; border: 5px solid #5a3a1a; background: #2a1c14; padding: 6px; }
.rouleaux-777 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fenetre-777 { height: 252px; overflow: hidden; background: linear-gradient(#bdb3a0, #fffaf0 25%, #fffaf0 75%, #bdb3a0); border-radius: 6px; }
.bande { will-change: transform; }
.s7 { height: 84px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; }
.s7.sept { font: 400 66px/1 var(--affiche); color: var(--laque); text-shadow: 2px 2px 0 #3a0a14; }
.s7.cerise { font-size: 50px; }
.s7.bar span { display: block; background: #1d1630; color: #ffe9a8; font: 800 13px/1 var(--texte); padding: 3px 10px; border-radius: 4px; letter-spacing: 0.1em; }
.ligne-777 { position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: rgba(184, 29, 47, 0.8); transform: translateY(-50%); pointer-events: none; }
.message-777 { text-align: center; font: 400 22px var(--affiche); color: #1d1630; margin-top: 12px; min-height: 30px; }
.message-777.gagne { color: #1f6a3a; }
.message-777.jackpot { color: var(--laque); animation: pulse 0.5s ease-in-out infinite alternate; }
.levier { width: 46px; height: 260px; background: none; border: 0; position: relative; margin-left: 4px; align-self: center; }
.levier::before { content: ''; position: absolute; left: 50%; top: 40px; bottom: 30px; width: 10px; transform: translateX(-50%); background: linear-gradient(90deg, #8a8f99, #f2f4f7, #8a8f99); border-radius: 5px; transform-origin: bottom center; transition: transform 0.2s; }
.levier::after { content: ''; position: absolute; left: 50%; bottom: 10px; width: 34px; height: 30px; transform: translateX(-50%); background: #3a2508; border-radius: 6px; }
.levier .boule { position: absolute; left: 50%; top: 14px; width: 40px; height: 40px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8f9c, var(--laque) 60%, #6b1222); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); transition: transform 0.2s; }
.levier.tire .boule { transform: translateX(-50%) translateY(150px); }
.levier.tire::before { transform: translateX(-50%) scaleY(0.35); }

/* ---------- Plinko ---------- */
.jeu-plinko .scene { display: flex; flex-direction: column; align-items: center; }
.plinko { display: block; }
.cases-plinko { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; box-sizing: border-box; }
.case-plinko { border-radius: 5px; color: #2a1c14; font: 700 clamp(9px, 1.8vw, 13px) var(--texte); text-align: center; padding: 5px 0; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4); }
.case-plinko.touche { animation: touche 0.35s ease-out; }
@keyframes touche { 40% { transform: translateY(6px); filter: brightness(1.3); } }
.derniers-plinko { display: flex; gap: 4px; min-height: 30px; margin-bottom: 8px; flex-wrap: wrap; justify-content: center; }

/* ---------- Mines ---------- */
.jeu-mines .scene, .jeu-tour .scene, .jeu-hilo .scene, .jeu-keno .scene, .jeu-des .scene, .jeu-videopoker .scene { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.grille-mines { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: min(440px, 100%); }
.case-mine { aspect-ratio: 1; border-radius: 12px; border: 0; background: linear-gradient(#4c6a5a, #2f4a3c); box-shadow: 0 4px 0 #18281f; font-size: clamp(22px, 6vw, 34px); transition: transform 0.1s; }
.case-mine:not(:disabled):hover { transform: translateY(-3px); filter: brightness(1.15); }
.case-mine:disabled { opacity: 1; }
.case-mine.diamant { background: linear-gradient(#2aa36a, #1b6e47); box-shadow: 0 4px 0 #0f3a26; }
.case-mine.mine { background: linear-gradient(#e2475a, #8a1424); box-shadow: 0 4px 0 #4a0a14; }
.case-mine.revele { opacity: 0.5; }
.case-mine.boum { animation: boum 0.4s; }
@keyframes boum { 25% { transform: scale(1.2) rotate(6deg); } 75% { transform: scale(0.95) rotate(-6deg); } }
.info-mines { font: 400 clamp(20px, 4vw, 28px) var(--affiche); text-align: center; color: #ffe9a8; min-height: 36px; }
.info-mines.gagne { color: var(--gagne); }
.info-mines.perdu { color: var(--perdu); }

/* ---------- Tour ---------- */
.tour-etages { display: flex; flex-direction: column; gap: 6px; width: min(460px, 100%); }
.etage { display: flex; gap: 6px; align-items: center; padding: 4px; border-radius: 10px; }
.etage.actif { background: rgba(246, 216, 143, 0.18); outline: 2px solid var(--laiton-clair); }
.etage.passe { opacity: 0.75; }
.mult-etage { width: 62px; font-weight: 700; color: var(--laiton-clair); font-size: 14px; text-align: right; flex: none; }
.case-tour { flex: 1; height: 42px; border: 0; border-radius: 8px; background: linear-gradient(#5d4c8c, #3a2e63); box-shadow: 0 3px 0 #211a3a; font-size: 22px; }
.case-tour:disabled { opacity: 0.85; }
.case-tour.sure { background: linear-gradient(#e0ac4a, #9c6f22); }
.case-tour.piege { background: linear-gradient(#e2475a, #8a1424); }
.case-tour.revele { opacity: 0.4; }
.case-tour.choisie { outline: 2px solid #fff3cf; }

/* ---------- Hi-Lo ---------- */
.table-hilo { display: flex; justify-content: center; padding: 8px; }
.carte-hilo .carte { --l: 110px; }
.choix-hilo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(460px, 100%); }
.choix-hilo .btn { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.choix-hilo .btn small { font-size: 14px; color: var(--laiton-clair); font-weight: 600; }
.historique-hilo { min-height: 58px; flex-wrap: wrap; justify-content: center; }

/* ---------- Dés ---------- */
.nombre-des { font: 400 clamp(54px, 13vw, 110px)/1 var(--affiche); color: #ffe9a8; text-shadow: 0 0 20px rgba(255, 200, 90, 0.5); font-variant-numeric: tabular-nums; margin: 20px 0; }
.nombre-des.gagne { color: var(--gagne); text-shadow: 0 0 20px rgba(123, 227, 164, 0.6); }
.nombre-des.perdu { color: var(--perdu); text-shadow: none; }
.barre-des { --seuil: 50%; position: relative; width: min(560px, 100%); height: 26px; border-radius: 13px; margin-top: 30px;
  background: linear-gradient(90deg, #c8323f 0 var(--seuil), #2e9b62 var(--seuil) 100%); }
.barre-des.moins { background: linear-gradient(90deg, #2e9b62 0 var(--seuil), #c8323f var(--seuil) 100%); }
.curseur-des { position: absolute; inset: -6px 0; width: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; }
.curseur-des::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 38px; border-radius: 8px; background: var(--ivoire); border: 3px solid var(--laiton); cursor: grab; }
.curseur-des::-moz-range-thumb { width: 26px; height: 34px; border-radius: 8px; background: var(--ivoire); border: 3px solid var(--laiton); cursor: grab; }
.marqueur-des { position: absolute; top: -36px; transform: translateX(-50%); background: #fffaf0; color: #1d1630; font-weight: 800; padding: 3px 8px; border-radius: 8px; font-size: 14px; transition: left 0.3s ease-out; }
.graduation { display: flex; justify-content: space-between; width: min(560px, 100%); color: var(--doux); font-size: 13px; }

/* ---------- Keno ---------- */
.grille-keno { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; width: min(560px, 100%); }
.case-keno { aspect-ratio: 1; border-radius: 10px; border: 1px solid #6b5a99; background: #241a42; font-weight: 700; font-size: clamp(14px, 3vw, 18px); }
.case-keno.choisi { background: linear-gradient(var(--laiton-clair), var(--laiton)); color: var(--encre); border-color: #fff3cf; }
.case-keno.tire { outline: 3px solid #6aa0ff; outline-offset: -3px; }
.case-keno.touche { background: linear-gradient(#3fbf7f, #1f8a55); color: #04150c; animation: pose 0.25s ease-out; }
.gains-keno { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gk { display: flex; flex-direction: column; align-items: center; padding: 5px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); font-size: 13.5px; }
.gk b { color: var(--laiton-clair); }
.gk.actif { background: rgba(31, 138, 85, 0.6); }

/* ---------- Vidéo poker ---------- */
.paytable { width: min(640px, 100%); border-collapse: collapse; font-size: 14px; background: rgba(0, 0, 0, 0.3); border-radius: 10px; overflow: hidden; }
.paytable th { text-align: left; padding: 4px 8px; font-weight: 600; color: #ffe9a8; }
.paytable td { text-align: right; padding: 4px 8px; font-variant-numeric: tabular-nums; }
.paytable td.col { background: rgba(184, 29, 47, 0.45); }
.paytable tr.gagnante { background: rgba(31, 138, 85, 0.55); }
.cartes-vp { display: flex; gap: 8px; justify-content: center; flex-wrap: nowrap; }
.slot-vp { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform 0.12s; }
.slot-vp .carte { --l: clamp(54px, 15vw, 92px); }
.slot-vp .garde { font-size: 12px; font-weight: 800; color: var(--laiton-clair); visibility: hidden; letter-spacing: 0.06em; }
.slot-vp.gardee { transform: translateY(-10px); }
.slot-vp.gardee .garde { visibility: visible; }

@media (max-width: 760px) {
  .tapis-roulette { max-width: 100%; grid-template-rows: 34px repeat(12, minmax(28px, 1fr)) 30px; }
  .cases-roue { grid-template-columns: repeat(4, 1fr); }
  .cases-bac { grid-template-columns: repeat(6, 1fr); }
  .case-bac.cote-paire { grid-column: span 3; min-height: 50px; padding: 8px; }
  .case-bac.cote-joueur, .case-bac.cote-egalite, .case-bac.cote-banquier { grid-column: span 2; }
  .case-bac.cote-paire { order: 1; }
  .case-bac.cote-joueur, .case-bac.cote-egalite, .case-bac.cote-banquier { order: 2; }
  .sb-ligne.l7 { grid-template-columns: repeat(7, 1fr); }
  .case-sb small { font-size: 9.5px; }
  .sb-ligne.l5 .case-sb small { font-size: 10px; }
  .de { --t: 46px; }
  .adversaires { grid-template-columns: repeat(3, 1fr); }
  .adv { min-height: 112px; padding: 5px; }
  .mes-cartes .carte { --l: 58px; }
  .fenetre-777 { height: 210px; }
  .s7 { height: 70px; }
  .s7.sept { font-size: 54px; }
  .levier { height: 220px; width: 40px; }
  .levier.tire .boule { transform: translateX(-50%) translateY(120px); }
  .tableau-777 { grid-template-columns: repeat(2, 1fr); }
  .grille-keno { gap: 4px; }
  .mains-bac { gap: 6px; }
  .main-bac { padding: 6px; }
  .montant-relance { min-width: 120px; font-size: 17px; }
}
