/* BUT IT'S MATH — CASINO 3 (13/10) : refonte visuelle / ergonomique des 10 jeux de casino. AUCUNE logique de jeu ici.
   Réglage VISUALS › MATH DETAIL (js/theme.js → <body data-detail>) :
     full    = disposition d'avant, tout visible (aucune règle de mise en page de ce fichier ne s'applique)
     clean   = (défaut) hiérarchie « en un coup d'œil » : bandeau HUD identique dans les 10 jeux, plateau agrandi au centre,
               bande de DÉCISION (un grand % + un libellé court) sous le plateau, oscilloscope réduit, une formule clé ;
               le détail (E[·], stats, lignes f2..f4, équations du son) passe derrière le bouton Σ MATH (js/juice.js)
     minimal = comme clean, sans le panneau Σ MATH (seulement la probabilité clé)
   Scène 720×1280 (mise à l'échelle par js/main.js). Le mode YOUR PICK du démineur (#game.mspick) garde sa propre disposition.
   Les améliorations d'ASSETS (cartes, jetons, tuiles, pions…) en bas de fichier valent pour toutes les densités. */

/* =====================================================================
   1. DISPOSITION CLEAN / MINIMAL
   ===================================================================== */
/* ---------- en-tête compact : SIGMA à gauche, titre au centre, boutique + ? à droite ---------- */
body:not([data-detail="full"]) #game:not(.mspick) #gTitle { top: 106px; font-size: 38px; padding: 10px 20px 8px; border-radius: 12px; }
body:not([data-detail="full"]) #game:not(.mspick) #gTitle.long { font-size: 34px; }
body:not([data-detail="full"]) #game:not(.mspick) #sub { top: 166px; font-size: 19px; padding: 5px 10px 4px; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
body:not([data-detail="full"]) #game:not(.mspick) #sub.alert { font-size: 17px; }

/* ---------- bandeau HUD : mêmes positions dans les 10 jeux (jetons · mise · compteur du jeu · manches) ---------- */
body:not([data-detail="full"]) #game:not(.mspick) :is(#hudL, #msHud, #crHud, #rrHud, #bsHud, #plHud, #swHud, #hlHud, #pnHud, #scHud) {
  left: 20px; right: 20px; width: auto; top: 208px; height: 74px; z-index: 2;
  display: grid; grid-auto-flow: column; grid-template-rows: 20px 46px; row-gap: 4px; column-gap: 22px;
  justify-content: center; justify-items: center; align-items: center;
  padding: 0 16px; border-radius: 16px;
  background: linear-gradient(rgba(255,255,255,.035), rgba(255,255,255,.01)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
body:not([data-detail="full"]) #game:not(.mspick) :is(#hudL, #msHud, #crHud, #rrHud, #bsHud, #plHud, #swHud, #hlHud, #pnHud, #scHud) .lab {
  margin: 0; font: 700 15px/20px 'Barlow Semi Condensed'; letter-spacing: 1.6px; color: color-mix(in srgb, var(--ink) 62%, transparent);
}
body:not([data-detail="full"]) #game:not(.mspick) :is(#hudL, #msHud, #crHud, #rrHud, #bsHud, #plHud, #swHud, #hlHud, #pnHud, #scHud) .seg { padding: 4px 5px; }
body:not([data-detail="full"]) #game:not(.mspick) :is(#hudL, #msHud, #crHud, #rrHud, #bsHud, #plHud, #swHud, #hlHud, #pnHud, #scHud) .seg svg { width: 17px; height: 31px; }
/* manches : une seule rangée de 8 pastilles */
body:not([data-detail="full"]) #game:not(.mspick) .hands { grid-template-columns: repeat(8, 20px); gap: 4px; }
body:not([data-detail="full"]) #game:not(.mspick) .hands i { width: 20px; height: 20px; font-size: 13px; line-height: 20px; }
body:not([data-detail="full"]) #game:not(.mspick) #bsMatches { grid-template-columns: repeat(5, 22px); }
body:not([data-detail="full"]) #game:not(.mspick) #bsMatches i { width: 22px; height: 22px; }
body:not([data-detail="full"]) #game:not(.mspick) #msLives { gap: 5px; }

/* ---------- plateau : agrandi, centré, entre le bandeau et la bande de décision (y 292 → 652) ---------- */
body:not([data-detail="full"]) #game:not(.mspick) :is(#table, #msBoard, #rrPanel, #bsPanel) { top: 294px; transform: scale(1.34); transform-origin: 50% 0; }
body:not([data-detail="full"]) #game:not(.mspick) :is(#swBoard, #hlBoard, #pnBoard, #scBoard) { top: 298px; transform: scale(1.29); transform-origin: 50% 0; }
body:not([data-detail="full"]) #game:not(.mspick) #plBoard { top: 300px; transform: scale(1.05); transform-origin: 50% 0; }

/* ---------- pastille d'état, minuteur, SKIP, CLIP : juste sous le plateau ---------- */
body:not([data-detail="full"]) #game:not(.mspick) #status { top: 660px; font-size: 23px; }
body:not([data-detail="full"]) #game:not(.mspick) #prog { top: 702px; }
body:not([data-detail="full"]) #game:not(.mspick) #bSkip { top: 656px; right: 22px; }
body:not([data-detail="full"]) #game:not(.mspick) #bClip { top: 654px; }

/* ---------- bande de DÉCISION : un grand nombre + un libellé court (+ MATH SAYS après coup) ---------- */
body:not([data-detail="full"]) #game:not(.mspick) #hudR {
  left: 40px; right: 40px; width: auto; top: 712px; min-height: 86px; z-index: 2;
  display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 16px; row-gap: 2px;
  text-align: left; padding: 6px 22px 8px; border-radius: 18px;
}
body:not([data-detail="full"]) #game:not(.mspick) #hudR .pct { grid-row: 1; font-size: 66px; letter-spacing: -1px; line-height: 1; }
body:not([data-detail="full"]) #game:not(.mspick) #hudR .pctlab { grid-row: 1; margin: 0; font-size: 23px; line-height: 1.05; max-width: 300px; }
body:not([data-detail="full"]) #game:not(.mspick) #hudR :is(#pctSub, #stat2) { display: none; }
body:not([data-detail="full"]) #game:not(.mspick) #hudR #mathSays { grid-column: 1 / 3; margin: 2px 0 0; text-align: center; font-size: 20px; line-height: 1.15; }
body:not([data-detail="full"]) #game:not(.mspick) #hudR #mathSays:empty { display: none; }
body:not([data-detail="full"]) #game:not(.mspick) #hudR #mathSays br { display: none; }
body:not([data-detail="full"]) #game:not(.mspick) #hudR #mathSays span { margin-left: 8px; font-size: 17px; }
body:not([data-detail="full"]) #game.pl:not(.mspick) #hudR #mathSays { display: none; }
/* le gros résultat (×0.37, BUST…) et l'intro s'affichent au centre, au-dessus de l'oscilloscope */
body:not([data-detail="full"]) #game:not(.mspick) .big { left: 160px; width: 400px; top: 812px; }
body:not([data-detail="full"]) #game:not(.mspick) .intro { top: 300px; z-index: 9; }
body:not([data-detail="full"]) #game:not(.mspick):not(.ms):not(.cr):not(.rr):not(.bs):not(.pl):not(.sw):not(.hl):not(.pn):not(.sc) .intro { top: 690px; } /* DON'T BUST : l'annonce passe sous la table, plus sur les cartes */
body:not([data-detail="full"]) #game:not(.mspick) .intro .l1, body:not([data-detail="full"]) #game:not(.mspick) .intro .l2, body:not([data-detail="full"]) #game:not(.mspick) .intro .l3 { text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 30px rgba(0,0,0,.8); }

/* ---------- oscilloscope : identité du jeu, réduit (×0,66) et centré, ne concurrence plus la décision ---------- */
body:not([data-detail="full"]) #game:not(.mspick) #scope { left: 142px; top: 812px; width: 436px; height: 140px; opacity: .9; }
body:not([data-detail="full"]) #game:not(.mspick) .packtag { left: 150px; top: 815px; font-size: 12px; }
body:not([data-detail="full"]) #game:not(.mspick) .scopetex { display: none; }

/* ---------- une formule clé + la phrase jaune ---------- */
body:not([data-detail="full"]) #game:not(.mspick) .f1 { top: 958px; font-size: 32px; }
body:not([data-detail="full"]) #game:not(.mspick) .cap { top: 1014px; font-size: 22px; padding: 7px 12px; max-width: 680px; overflow: hidden; text-overflow: ellipsis; }
body:not([data-detail="full"]) #game:not(.mspick) #fx { display: none; }

/* ---------- boutons : zone du pouce, primaires larges, secondaires plus discrets ---------- */
body:not([data-detail="full"]) #game:not(.mspick) :is(#actions, #msActions, #crActions, #rrActions, #bsActions, #plActions, #swActions, #hlActions, #pnActions, #scActions) { top: 1070px; }
body:not([data-detail="full"]) #game :is(#actEnd, #msEnd, #crEnd, #rrEnd, #bsEnd, #plEnd, #swEnd, #hlEnd, #pnEnd, #scEnd) .btn.clipbtn { flex: .62; font-size: 24px; }

/* ---------- Σ MATH : le détail replié (js/juice.js crée #bMathX et #mathPanel) ---------- */
#bMathX, #mathPanel { display: none; }
body[data-detail="clean"] #game:not(.mspick) #bMathX {
  display: flex; align-items: center; gap: 6px; position: absolute; right: 22px; top: 902px; z-index: 8; height: 46px; padding: 0 14px;
  border-radius: 23px; border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent); background: rgba(8,14,11,.82);
  color: var(--cyan); font: 800 19px/1 'Barlow Semi Condensed'; letter-spacing: 1.2px; cursor: pointer;
  transition: transform var(--m-fast) var(--m-spring), background-color var(--m-fast);
}
body[data-detail="clean"] #game:not(.mspick) #bMathX::after { content: ''; position: absolute; inset: -10px -8px; }
body[data-detail="clean"] #game:not(.mspick) #bMathX:active { transform: scale(.92); }
#bMathX b { font: 900 22px/1 'Times New Roman', serif; font-style: italic; }
#bMathX i { font-style: normal; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 5px; background: var(--cyan); color: #06100c; font: 900 14px/22px Montserrat; text-align: center; }
#bMathX i:empty { display: none; }
#bMathX.ping { animation: mxPing .9s var(--m-out); }
@keyframes mxPing { 30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--cyan) 35%, transparent), 0 0 24px color-mix(in srgb, var(--cyan) 50%, transparent); } }
/* ouvert : plaque sur la zone oscilloscope + formule ; les stats du % en tête, puis f1 et f2..f4 */
body[data-detail="clean"] #game.mathopen:not(.mspick) #mathPanel {
  display: block; position: absolute; left: 14px; right: 14px; top: 806px; height: 202px; z-index: 4; pointer-events: none;
  border-radius: 18px; background: linear-gradient(rgba(6,12,9,.94), rgba(6,12,9,.88)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 22%, transparent), 0 10px 30px rgba(0,0,0,.45);
  animation: mpIn var(--m-med) var(--m-out);
}
@keyframes mpIn { from { opacity: 0; transform: translateY(10px); } }
#mathPanel .mpstats { position: absolute; left: 16px; right: 120px; top: 8px; font: 700 18px/1.2 'Barlow Semi Condensed'; letter-spacing: .4px; color: color-mix(in srgb, var(--ink) 80%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mathPanel .mpstats b { color: var(--ink); }
#mathPanel .mpstats br { display: none; }
#mathPanel .mpstats em { font-style: normal; opacity: .45; margin: 0 8px; }
body[data-detail="clean"] #game.mathopen:not(.mspick) #scope, body[data-detail="clean"] #game.mathopen:not(.mspick) .packtag { visibility: hidden; }
body[data-detail="clean"] #game.mathopen:not(.mspick) .f1 { top: 836px; z-index: 5; font-size: 30px; }
body[data-detail="clean"] #game.mathopen:not(.mspick) #fx { display: flex; z-index: 5; }
body[data-detail="clean"] #game.mathopen:not(.mspick) #bMathX { top: 810px; height: 40px; background: var(--cyan); color: #06100c; }
body[data-detail="clean"] #game.mathopen:not(.mspick) #bMathX i { background: #06100c; color: var(--cyan); }
body[data-theme="paper"] #mathPanel { background: linear-gradient(rgba(255,255,255,.96), rgba(250,248,240,.94)) !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 10px 30px rgba(60,50,20,.18) !important; }
body[data-theme="paper"] #bMathX { background: rgba(255,255,255,.92) !important; color: #1170a0 !important; border-color: rgba(0,0,0,.2) !important; }
body[data-theme="paper"] #game.mathopen #bMathX { background: #1597b8 !important; color: #fff !important; }
body[data-theme="mono"] #mathPanel { background: #000 !important; box-shadow: inset 0 0 0 2px #fff !important; }

/* ---------- CASH OUT : la courbe EST le plateau ---------- */
body:not([data-detail="full"]) #game.cr #crPanel {
  left: 30px; width: 660px; top: 292px; height: 116px; display: grid; grid-template-columns: 300px 1fr; grid-template-rows: 26px 1fr;
  align-items: center; justify-items: center; padding: 6px 14px; border-radius: 14px;
}
body:not([data-detail="full"]) #game.cr #crPanel .crlab { margin: 0; grid-row: 1; }
body:not([data-detail="full"]) #game.cr #crPanel #crMult { grid-column: 1; grid-row: 2; font-size: 70px; line-height: 1; }
body:not([data-detail="full"]) #game.cr #crPanel .crlab.small { grid-column: 2; font-size: 13px; }
body:not([data-detail="full"]) #game.cr #crPanel #crHist { grid-column: 2; grid-row: 2; padding: 0; align-self: center; max-height: 70px; overflow: hidden; }
body:not([data-detail="full"]) #game.cr #scope { left: 30px; top: 420px; width: 660px; height: 212px; opacity: 1; }
body:not([data-detail="full"]) #game.cr .packtag { left: 92px; top: 425px; }
body[data-detail="clean"] #game.cr.mathopen #scope, body[data-detail="clean"] #game.cr.mathopen .packtag { visibility: visible; }
body:not([data-detail="full"]) #game.cr .big { top: 470px; left: 300px; width: 380px; }

/* =====================================================================
   2. SYSTÈME DE MOUVEMENT (variables dans css/polish.css) appliqué aux éléments communs
   ===================================================================== */
#game .pill { transition: background-color var(--m-fast), opacity var(--m-fast), transform var(--m-fast) var(--m-out); }
#game .pct { transition: color var(--m-med); }
#game .pct.bump { animation: pctBump var(--m-med) var(--m-spring); }
@keyframes pctBump { 40% { transform: scale(1.08); } }
#hudR #mathSays:not(:empty) { animation: msIn var(--m-med) var(--m-out); }
@keyframes msIn { from { opacity: 0; transform: translateY(6px); } }

/* streak : pastille ×N à côté des manches (js/juice.js) */
.strk { display: none; }
body:not([data-detail="full"]) #game:not(.mspick) .strk.on {
  display: block; position: absolute; left: 50%; top: 284px; transform: translate(-50%, -50%); z-index: 3;
  padding: 3px 10px 2px; border-radius: 10px; font: 900 15px/1.2 Montserrat; letter-spacing: .6px; color: #1a0e00;
  background: linear-gradient(#ffe27a, #ffb52e); box-shadow: 0 0 14px rgba(255,190,60,.55); animation: strkIn var(--m-med) var(--m-spring);
}
.strk.on.hot { background: linear-gradient(#ff9a6b, #ff3d5e); color: #fff; box-shadow: 0 0 18px rgba(255,61,94,.6); }
@keyframes strkIn { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } }

/* near-miss : le résultat « à un cheveu » clignote en ambre (js/juice.js pose .nearmiss sur #hudR) */
#hudR.nearmiss { animation: nearMiss 1.2s var(--m-out); }
@keyframes nearMiss { 0%, 40% { box-shadow: inset 0 0 0 2px rgba(255,177,60,.9), 0 0 26px rgba(255,177,60,.45); } 100% { box-shadow: none; } }

/* =====================================================================
   3. THÈMES : la bande de décision et le bandeau suivent la palette
   ===================================================================== */
body[data-theme="paper"]:not([data-detail="full"]) #game :is(#hudL, #msHud, #crHud, #rrHud, #bsHud, #plHud, #swHud, #hlHud, #pnHud, #scHud) { background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
body[data-theme="paper"]:not([data-detail="full"]) #game :is(#hudL, #msHud, #crHud, #rrHud, #bsHud, #plHud, #swHud, #hlHud, #pnHud, #scHud) .lab { color: rgba(30,30,30,.66); }
body[data-theme="mono"]:not([data-detail="full"]) #game :is(#hudL, #msHud, #crHud, #rrHud, #bsHud, #plHud, #swHud, #hlHud, #pnHud, #scHud) { background: #000; box-shadow: inset 0 0 0 1px #fff; }
body[data-theme="mono"] #hudR { background: #000 !important; box-shadow: inset 0 0 0 2px #fff !important; }
body[data-theme="mono"] #hudR .pct { text-shadow: none !important; }
body[data-theme="paper"] .pill { background: rgba(255,255,255,.9); color: #1a1a1a; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
body[data-theme="paper"] .pill.blue { background: #2457b0; color: #fff; }
body[data-theme="paper"] .pill.red { background: #d81e45; color: #fff; }
body[data-theme="paper"] .pill.gold { background: #f0c545; color: #111; }
body[data-theme="paper"] .pill.grey { background: #8b928e; color: #fff; }
body[data-theme="paper"] .skipbtn { background: rgba(255,255,255,.9); color: #1a1a1a; border-color: rgba(0,0,0,.25); }
body[data-theme="paper"] .betbox { background: rgba(255,255,255,.85); border-color: rgba(0,0,0,.16); }
body[data-theme="paper"] .betval span { color: rgba(30,30,30,.6); }
body[data-theme="paper"] .betval b { color: #9a6c00; text-shadow: none; }
body[data-theme="paper"] .chip { background: radial-gradient(circle at 40% 35%, #ffffff, #e6e0cf); color: #1a1a1a; border-color: rgba(0,0,0,.28); }
body[data-theme="paper"] .crlab, body[data-theme="paper"] .rowlab { color: rgba(30,30,30,.7); }
body[data-theme="paper"] .crmult { color: #9a6c00; text-shadow: none; }
body[data-theme="paper"] .crhist i { background: #fff; color: #1a1a1a; }
body[data-theme="mono"] .betbox, body[data-theme="mono"] .chip, body[data-theme="mono"] .pill, body[data-theme="mono"] .skipbtn { background: #000; border: 2px solid #fff; color: #fff; }
body[data-theme="mono"] .betval b, body[data-theme="mono"] .crmult { color: #ffe600; text-shadow: none; }

/* CLIP : à gauche de l'oscilloscope en CLEAN (la pastille d'état reste lisible) */
body:not([data-detail="full"]) #game:not(.mspick) #bClip { top: 898px; right: auto; left: 22px; height: 50px; padding: 0 16px 0 12px; font-size: 19px; }
body:not([data-detail="full"]) #game:not(.mspick) #bClip i { width: 26px; height: 26px; }
body:not([data-detail="full"]) #game:not(.mspick) #bClip i::before { left: 10px; top: 7px; border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; }

/* =====================================================================
   4. ASSETS (toutes densités) — un seul langage de lumière : source en haut à gauche, reflet doux, ombre portée
   double (contact + diffuse). Les skins de la boutique (body[data-*], css/skins.css) restent prioritaires.
   ===================================================================== */
/* ---------- jetons de mise (− / +) : vraie plaque de casino à rayures de tranche ---------- */
.betbox .chip {
  --ca: var(--pink); --cb: #f3f3ee; --cc: #15201a;
  border: 0; color: #fff; font-weight: 900;
  background:
    radial-gradient(circle at 50% 50%, var(--cc) 0 47%, color-mix(in srgb, var(--cb) 70%, transparent) 48% 51%, transparent 52%),
    repeating-conic-gradient(var(--ca) 0 22.5deg, var(--cb) 22.5deg 30deg, var(--ca) 30deg 45deg);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.35), 0 3px 0 rgba(0,0,0,.45), 0 6px 14px rgba(0,0,0,.4);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  transition: transform var(--m-fast) var(--m-spring);
}
.betbox .chip:active { transform: scale(.88) rotate(-25deg); }
.betbox.tgt .chip, .betbox.rows .chip, .betbox.doors .chip, .betbox.bul .chip { --ca: #2a6ccb; }
body[data-theme="paper"] .betbox .chip { --cb: #ffffff; --cc: #fbf8ef; color: #1a1a1a; text-shadow: none; background:
    radial-gradient(circle at 50% 50%, var(--cc) 0 47%, rgba(0,0,0,.18) 48% 51%, transparent 52%),
    repeating-conic-gradient(var(--ca) 0 22.5deg, var(--cb) 22.5deg 30deg, var(--ca) 30deg 45deg); }
body[data-theme="mono"] .betbox .chip { --ca: #fff; --cb: #000; --cc: #000; border: 2px solid #fff; }

/* ---------- boutons d'action : même éclairage partout (reflet haut, tranche basse), appui qui s'enfonce ---------- */
#game .arow .btn:not(.mmode) { position: relative; overflow: hidden; box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -4px 0 rgba(0,0,0,.18), 0 5px 0 rgba(0,0,0,.38), 0 0 26px var(--glow, transparent); }
#game .arow .btn:not(.mmode)::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 46%; border-radius: inherit; pointer-events: none; background: linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,0)); }
#game .arow .btn:not([disabled]):active { transform: translateY(4px) scale(.98); box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 1px 0 rgba(0,0,0,.38); }
#game .arow .btn.chosen { box-shadow: 0 0 0 4px #fff, 0 0 40px var(--glow); }
body[data-theme="mono"] #game .arow .btn::before { display: none; }

/* ---------- cartes (DON'T BUST, HIGHER / LOWER) : relief, cadre intérieur, reflet, ombre double ---------- */
.card { perspective: 700px; }
.card .front, .card .back { box-shadow: 0 1px 1px rgba(0,0,0,.5), 0 6px 14px rgba(0,0,0,.5), inset 1.5px 1.5px 0 rgba(255,255,255,.1), inset -1.5px -1.5px 0 rgba(0,0,0,.4); }
.card .front::after { content: ''; position: absolute; inset: 3px; border-radius: 4px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); pointer-events: none; }
.card .front::before { background: linear-gradient(125deg, rgba(255,255,255,.13), rgba(255,255,255,0) 42%); }
.card .face { transition: transform .38s cubic-bezier(.3,.7,.2,1.15); }
.card.dealt { animation: dealIn2 .34s var(--m-out); }
@keyframes dealIn2 { from { transform: translate(60px, -160px) rotate(24deg) scale(.7); opacity: 0; } 70% { opacity: 1; } to { transform: none; opacity: 1; } }
.hlface.front, .hlface.back { box-shadow: 0 2px 2px rgba(0,0,0,.45), 0 12px 26px rgba(0,0,0,.5), inset 0 0 18px rgba(0,0,0,.4); }
.hlface.front::after { content: ''; position: absolute; inset: 5px; border-radius: 7px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); pointer-events: none; }
.hlface.front::before { content: ''; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.12), transparent 45%); pointer-events: none; }
.hlcur { perspective: 900px; }
.hlcur.flip .hlface { animation: hlFlip2 .46s cubic-bezier(.3,.7,.2,1.15); }
@keyframes hlFlip2 { 0% { transform: rotateY(-180deg) scale(.92); } 55% { transform: rotateY(-20deg) scale(1.04); } 100% { transform: none; } }

/* ---------- tapis (DON'T BUST) : feutre tissé + halo de lampe ---------- */
#table::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(120,200,160,.10), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px), repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px); }
body[data-felt] #table::before { display: none; }

/* ---------- démineur : ouverture qui s'enfonce, chiffre qui surgit ---------- */
#msBoard .mc.rev { animation: mcRev .24s var(--m-out); }
@keyframes mcRev { from { transform: scale(.7); opacity: .2; } }
#msBoard .mc.rev[class*="n"] { animation: mcRevN .3s var(--m-spring); }
@keyframes mcRevN { from { transform: scale(.4); opacity: 0; } }

/* ---------- plinko : pions en relief, bille éclairée, cases avec ombre ---------- */
#plBoard .pg { stroke: rgba(255,255,255,.5); stroke-width: .7px; filter: drop-shadow(0 1.2px 0 rgba(0,0,0,.55)) drop-shadow(0 0 2px rgba(143,246,255,.35)); }
#plBoard .pg.hit { filter: drop-shadow(0 0 6px rgba(143,246,255,1)); }
#plBall { filter: drop-shadow(0 2px 1px rgba(0,0,0,.5)) drop-shadow(0 0 8px rgba(255,207,61,.9)); }

/* ---------- barillet : flou de mouvement pendant un vrai tour (js/roulette.js pose .spin) ---------- */
#rrCyl.spin { animation: cylBlur 1s cubic-bezier(.15,.75,.25,1); }
@keyframes cylBlur { 0% { filter: none; } 15%, 45% { filter: blur(1.6px); } 100% { filter: none; } }
@media (prefers-reduced-motion: reduce) { #rrCyl.spin { animation: none; } }

/* ---------- portes (SWITCH?) : profondeur ---------- */
.door .inside { box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), inset 0 18px 30px rgba(0,0,0,.6), 0 6px 16px rgba(0,0,0,.5); }

/* ---------- pièces (PENNEY'S GAME) : tranche crantée, reflet, lancer en 3D ---------- */
.pncoin { box-shadow: 0 2px 0 rgba(0,0,0,.4), 0 6px 14px rgba(0,0,0,.45), inset 0 0 0 3px rgba(255,255,255,.12), inset 0 -3px 0 rgba(0,0,0,.18); }
.pncoin::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px dashed rgba(0,0,0,.18); pointer-events: none; }
.pnstrip .pncoin::after { display: none; }
.pnstrip .pncoin { animation: pnToss .42s cubic-bezier(.25,.8,.35,1.2); }
@keyframes pnToss { 0% { transform: translateY(-46px) rotateX(0) scale(.6); opacity: 0; } 45% { transform: translateY(-20px) rotateX(540deg) scale(1.05); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pnstrip .pncoin { animation: none; } }

/* ---------- cartes cachées (STOP AT THE BEST) : relief + reflet, record qui se dresse ---------- */
.scbar { box-shadow: 0 2px 0 rgba(0,0,0,.4), 0 6px 12px rgba(0,0,0,.35), inset 1px 1px 0 rgba(255,255,255,.14); }
.scslot.rec .scbar { animation: scRec .4s var(--m-spring); transform-origin: 50% 100%; }
@keyframes scRec { from { transform: scaleY(.6); } }

/* ---------- 7 segments : halo vert / rouge pendant que les jetons défilent (js/ui.js) ---------- */
.seg.green.rolling.up { box-shadow: inset 0 0 12px rgba(0,0,0,.85), 0 0 22px rgba(92,240,138,.4); }
.seg.green.rolling.down { box-shadow: inset 0 0 12px rgba(0,0,0,.85), 0 0 22px rgba(255,61,94,.35); }

/* @@LOT8-DEBUT@@ */
/* =====================================================================
   LOT 8 : tables Blender sous l'interface, disposition CLEAN lisible (tout texte ≥ 22 px de scène = 11 px à 360 px de large).
   AUCUNE logique de jeu. Thème NEON : tables et objets rendus (assets/tables/, tools/casino_blender/). Autres thèmes : leurs couleurs.
   Source de la section : tools/casino_blender/lot8_src.css (build_css.py la recopie ici, entre les deux marqueurs).
   ===================================================================== */
/* ---------- 1. la table : sur #bg, sous #tint et #beatfx (les flashes restent visibles) ---------- */
body[data-room] #stage.incas #bg, body[data-felt] #stage.incas #bg { isolation: isolate; }
body:is(:not([data-theme]),[data-theme="neon"]) #stage.incas #bg::before { content: ''; position: absolute; inset: 0; background: var(--feltdk, transparent); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]) #stage.incas #bg::after { background: var(--felt, transparent); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="blackjack"] #bg { background: #0d3a24 url(../assets/tables/blackjack.webp) 50% 50%/100% 100% no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="blackjack"] :is(#bg)::before, body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="blackjack"] #bg::after { -webkit-mask-image: url(../assets/tables/blackjack_mask.webp); mask-image: url(../assets/tables/blackjack_mask.webp); }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="mines"] #bg { background: #10233f url(../assets/tables/mines.webp) 50% 50%/100% 100% no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="mines"] :is(#bg)::before, body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="mines"] #bg::after { -webkit-mask-image: url(../assets/tables/mines_mask.webp); mask-image: url(../assets/tables/mines_mask.webp); }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="crash"] #bg { background: #0a1420 url(../assets/tables/crash.webp) 50% 50%/100% 100% no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="crash"] :is(#bg)::before, body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="crash"] #bg::after { -webkit-mask-image: url(../assets/tables/crash_mask.webp); mask-image: url(../assets/tables/crash_mask.webp); }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="roulette"] #bg { background: #3d0a14 url(../assets/tables/roulette.webp) 50% 50%/100% 100% no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="roulette"] :is(#bg)::before, body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="roulette"] #bg::after { -webkit-mask-image: url(../assets/tables/roulette_mask.webp); mask-image: url(../assets/tables/roulette_mask.webp); }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="buckshot"] #bg { background: #1c2a20 url(../assets/tables/buckshot.webp) 50% 50%/100% 100% no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="buckshot"] :is(#bg)::before, body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="buckshot"] #bg::after { -webkit-mask-image: url(../assets/tables/buckshot_mask.webp); mask-image: url(../assets/tables/buckshot_mask.webp); }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="plinko"] #bg { background: #141d3d url(../assets/tables/plinko.webp) 50% 50%/100% 100% no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="plinko"] :is(#bg)::before, body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="plinko"] #bg::after { -webkit-mask-image: url(../assets/tables/plinko_mask.webp); mask-image: url(../assets/tables/plinko_mask.webp); }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="switch"] #bg { background: #2a0a14 url(../assets/tables/switch.webp) 50% 50%/100% 100% no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="switch"] :is(#bg)::before, body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="switch"] #bg::after { -webkit-mask-image: url(../assets/tables/switch_mask.webp); mask-image: url(../assets/tables/switch_mask.webp); }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="hilo"] #bg { background: #1e0f40 url(../assets/tables/hilo.webp) 50% 50%/100% 100% no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="hilo"] :is(#bg)::before, body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="hilo"] #bg::after { -webkit-mask-image: url(../assets/tables/hilo_mask.webp); mask-image: url(../assets/tables/hilo_mask.webp); }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="penney"] #bg { background: #0f2e22 url(../assets/tables/penney.webp) 50% 50%/100% 100% no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="penney"] :is(#bg)::before, body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="penney"] #bg::after { -webkit-mask-image: url(../assets/tables/penney_mask.webp); mask-image: url(../assets/tables/penney_mask.webp); }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="secretary"] #bg { background: #07302f url(../assets/tables/secretary.webp) 50% 50%/100% 100% no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="secretary"] :is(#bg)::before, body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #stage.incas[data-scr="secretary"] #bg::after { -webkit-mask-image: url(../assets/tables/secretary_mask.webp); mask-image: url(../assets/tables/secretary_mask.webp); }
/* salles par mise, puis tapis du joueur (cosmétique, prioritaire) : seule la teinte du feutre change */
body[data-room] #stage.incas, body[data-felt] #stage.incas { --feltdk: rgba(0,0,0,.34); }
body[data-room] #stage.incas #bg::after, body[data-felt] #stage.incas #bg::after { mix-blend-mode: color; }
body[data-room="salon"] #stage.incas { --felt: #84142f; }
body[data-room="vip"] #stage.incas { --felt: #6e5417; }
body[data-felt="emerald"] #stage.incas { --felt: #0d8a53; }
body[data-felt="crimson"] #stage.incas { --felt: #8a1230; }
body[data-felt="midnight"] #stage.incas { --felt: #16306e; }
body[data-felt="royal"] #stage.incas { --felt: #5a2a9e; }
body:is(:not([data-theme]),[data-theme="neon"]) #stage.incas #vignette { opacity: .4; }
body:is(:not([data-theme]),[data-theme="neon"]) #stage.incas #tint { opacity: 0; }
body:is(:not([data-theme]),[data-theme="neon"]) #stage.incas #tint:is(.blue, .red, .gold) { opacity: .55; }
/* greybox : sans décor, tout doit rester lisible et jouable (tools/lot8/shot.js ... nodecor) */
body.qa-nodecor #stage.incas #bg { background: #3c3c3c !important; }
body.qa-nodecor #stage.incas #bg::after { display: none !important; }
body.qa-nodecor #stage.incas #bg::before { display: none !important; }
body.qa-nodecor #stage.incas #vignette { display: none; }

/* ---------- 2. en-tête, plaque HUD ---------- */
body:not([data-detail="full"]) #game:not(.mspick) #sub { top: 165px; font-size: 22px; padding: 4px 10px 3px; max-width: 520px; }
body:not([data-detail="full"]) #game:not(.mspick) #sub.alert { font-size: 22px; }
body:not([data-detail="full"]) #game:not(.mspick) :is(#hudL, #msHud, #crHud, #rrHud, #bsHud, #plHud, #swHud, #hlHud, #pnHud, #scHud) { top: 198px; height: 88px; grid-template-rows: 24px 54px; row-gap: 2px; column-gap: 18px; padding: 2px 12px; }
body:not([data-detail="full"]) #game:not(.mspick) :is(#hudL, #msHud, #crHud, #rrHud, #bsHud, #plHud, #swHud, #hlHud, #pnHud, #scHud) .lab { font: 700 22px/24px 'Barlow Semi Condensed'; letter-spacing: .6px; color: color-mix(in srgb, var(--ink) 82%, transparent); }
body:not([data-detail="full"]) #game:not(.mspick) .hands { grid-template-columns: repeat(8, 26px); gap: 3px; }
body:not([data-detail="full"]) #game:not(.mspick) .hands i { width: 26px; height: 26px; font-size: 22px; line-height: 26px; }
body:not([data-detail="full"]) #game:not(.mspick) #bsMatches { grid-template-columns: repeat(5, 28px); }
body:not([data-detail="full"]) #game:not(.mspick) #bsMatches i { width: 28px; height: 28px; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #game:not(.mspick) :is(#hudL, #msHud, #crHud, #rrHud, #bsHud, #plHud, #swHud, #hlHud, #pnHud, #scHud) { background: linear-gradient(rgba(16,10,6,.82), rgba(8,5,3,.86)); box-shadow: inset 0 0 0 1.5px rgba(214,164,84,.55), 0 4px 14px rgba(0,0,0,.4); }
.strk.on, body:not([data-detail="full"]) #game:not(.mspick) .strk.on { font-size: 22px; top: 290px; }
#roomTag { display: none; }
body:not([data-detail="full"]) #game:not(.mspick):not(.ms) #roomTag[data-room] {
  display: block; position: absolute; left: 18px; top: 110px; z-index: 3; padding: 4px 10px 3px; border-radius: 9px; pointer-events: none;
  font: 800 22px/1.1 'Barlow Semi Condensed'; letter-spacing: .6px; color: #ffe2a0; background: rgba(12,8,4,.78); box-shadow: inset 0 0 0 1.5px rgba(214,164,84,.55);
}

/* ---------- 3. plateaux : la zone y 296 → 668 ---------- */
body:not([data-detail="full"]) #game:not(.mspick) :is(#table, #bsPanel, #hlBoard, #pnBoard, #scBoard) { left: 18px; width: 490px; height: 264px; top: 298px; transform: scale(1.4); transform-origin: 0 0; }
body:not([data-detail="full"]) #game:not(.mspick) :is(#msBoard, #rrPanel) { top: 298px; transform: scale(1.4); transform-origin: 50% 0; }
body:not([data-detail="full"]) #game:not(.mspick) #swBoard { top: 296px; transform: scale(1.3); transform-origin: 50% 0; }
body:not([data-detail="full"]) #game:not(.mspick) #plBoard { left: 15px; width: 690px; height: 351px; top: 306px; transform: none; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #game:not(.mspick) :is(#table, #rrPanel, #bsPanel) { background: none; border: 0; box-shadow: none; }
body:is(:not([data-theme]),[data-theme="neon"]) #table::before { display: none; }

/* DON'T BUST */
body:not([data-detail="full"]) #game:not(.mspick) .row { left: 98px; width: 294px; }
body:not([data-detail="full"]) #game:not(.mspick) #dRow { top: 8px; }
body:not([data-detail="full"]) #game:not(.mspick) #pRow { top: 142px; }
body:not([data-detail="full"]) #game:not(.mspick) .rowlab { left: 4px; width: 92px; font: 800 17px/20px 'Barlow Semi Condensed'; letter-spacing: .4px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.75); }
body:not([data-detail="full"]) #game:not(.mspick) .rowlab b { display: block; font-size: 34px; line-height: 36px; margin: 0; }
body:not([data-detail="full"]) #game:not(.mspick) .rowlab small { display: block; font: 700 16px/18px 'Barlow Semi Condensed'; margin: 0; color: #cdfbff; }
body:not([data-detail="full"]) #game:not(.mspick) #dLab { top: 14px; }
body:not([data-detail="full"]) #game:not(.mspick) #pLab { top: 148px; }
body:not([data-detail="full"]) #game:not(.mspick) .tbl-rule { left: 0; right: 0; top: 118px; border: 0; }
body:not([data-detail="full"]) #game:not(.mspick) .tbl-rule span { top: -10px; padding: 1px 10px; border-radius: 8px; font: 700 16px/20px 'Barlow Semi Condensed'; letter-spacing: .4px; color: #ffe2a0; background: rgba(6,20,12,.62); }
body:not([data-detail="full"]) #game:not(.mspick) #payout { font-size: 18px; }
.card .front .cf-val { font: 700 16px/1 'Barlow Semi Condensed'; letter-spacing: 0; }
.card .front .cf-idx b { font-size: 17px; }
.card .front .cf-idx .cf-s { width: 12px; height: 12px; }
.card .front .cf-face span { font-size: 18px; }
.cf-idx.br:has(~ .cf-val) { display: none; }
.cb-ring span { font-size: 24px; }
/* cartes : vrai papier ivoire, encre franche */
body:is(:not([data-theme]),[data-theme="neon"]) .card .front { background: linear-gradient(155deg, #fffdf6, #efe8d6); border: 1px solid rgba(40,30,10,.35); color: #15171c; box-shadow: 0 1px 1px rgba(0,0,0,.5), 0 7px 14px rgba(0,0,0,.45); }
body:is(:not([data-theme]),[data-theme="neon"]) .card .front.red { color: #c5112d; box-shadow: 0 1px 1px rgba(0,0,0,.5), 0 7px 14px rgba(0,0,0,.45); }
body:is(:not([data-theme]),[data-theme="neon"]) .card .front .cf-idx b { text-shadow: none; }
body:is(:not([data-theme]),[data-theme="neon"]) .cf-pip { filter: none; }
body:is(:not([data-theme]),[data-theme="neon"]) .card .front::after { border-color: rgba(120,90,30,.25); }
body:is(:not([data-theme]),[data-theme="neon"]) .card .front .cf-val { color: #6c5316; bottom: 2px; }
body:is(:not([data-theme]),[data-theme="neon"]) .cf-ace { background: none; border: 0; box-shadow: none; }
body:is(:not([data-theme]),[data-theme="neon"]) .cf-face { background: linear-gradient(#ffe9a6, #e6b84a); box-shadow: inset 0 0 0 1px rgba(90,60,10,.5); border: 0; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-cardback]) .card .back { background: url(../assets/tables/cardback.webp) 50% 50%/100% 100% no-repeat; box-shadow: 0 1px 1px rgba(0,0,0,.5), 0 7px 14px rgba(0,0,0,.45); border: 0; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-cardback]) .card .back :is(.cb-pat, .cb-ring) { display: none; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-cardback]) .hlface.back { background: url(../assets/tables/cardback.webp) 50% 50%/100% 100% no-repeat; border: 0; box-shadow: 0 2px 2px rgba(0,0,0,.45), 0 12px 26px rgba(0,0,0,.5); }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-cardback]) .hlface.back span { display: none; }

/* SURVIVE THE BOARD */
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #game:not(.mspick) #msBoard { background: rgba(6,8,14,.55); border: 0; box-shadow: none; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-mtile]) .mc { border: 0; background: url(../assets/tables/tile_up.webp) 50% 50%/100% 100% no-repeat; box-shadow: none; font-size: 19px; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-mtile]) .mc.rev { background: url(../assets/tables/tile_down.webp) 50% 50%/100% 100% no-repeat; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-mtile]) .mc.n1 { color: #1546c8; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-mtile]) .mc.n2 { color: #0a7a2e; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-mtile]) .mc.n3 { color: #c81e1e; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-mtile]) .mc.n4 { color: #1a1a8a; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-mtile]) .mc.n5 { color: #8a1a1a; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-mtile]) .mc.n6 { color: #0a7a7a; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-mtile]) .mc.n7 { color: #222; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-mtile]) .mc.n8 { color: #555; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-mtile]) .mc:is(.flag, .boom) { background: linear-gradient(#ef2c55, #b51d3a); border-radius: 6px; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-mtile]) .mc.boom { background: radial-gradient(#ff8a9b, #c0152f 70%); }

/* CASH OUT */
body:not([data-detail="full"]) #game.cr #crPanel { top: 296px; height: 108px; grid-template-rows: 28px 1fr; background: none; border: 0; box-shadow: none; }
body:not([data-detail="full"]) #game.cr #crPanel #crMult { font-size: 60px; line-height: 64px; }
#game .crlab, #game .crlab.small, body:not([data-detail="full"]) #game.cr #crPanel .crlab.small { font-size: 22px; letter-spacing: .6px; }
#game .crhist i { font-size: 22px; padding: 3px 7px; }

/* ONE IN SIX */
.rr-ch.unk .rr-q { font-size: 17px; }

/* BUCKSHOTS */
body:not([data-detail="full"]) #game:not(.mspick) .bs-gun { left: 125px; }
body:not([data-detail="full"]) #game:not(.mspick) .bs-count { font-size: 18px; left: 50%; right: auto; transform: translateX(-50%); padding: 0 10px; border-radius: 8px; background: rgba(5,10,7,.72); white-space: nowrap; }
body:not([data-detail="full"]) #game:not(.mspick) .bs-row { font-size: 18px; }
body:not([data-detail="full"]) #game:not(.mspick) .bs-sawb { font-size: 17px; }
body:not([data-detail="full"]) #game:not(.mspick) #bsPlay { height: 100px; }
#game .bs-items { top: 108px; height: 92px; }
#game .bs-item b { font-size: 26px; }
#game .bs-item small { font-size: 22px; letter-spacing: 0; }

/* DROP IT */
#plTag text { font-size: 22px; transform: translateY(8px); }
#plTag rect { height: 30px; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .pg { fill: #ffe9b0; stroke: rgba(90,50,5,.75); }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .pg.hit { fill: #fff; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .bin text { paint-order: stroke; stroke: rgba(0,0,0,.5); stroke-width: 2px; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .bin.lo rect { fill: #6d1422; stroke: #ff8a9b; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .bin.lo text { fill: #ffd3da; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .bin.w1 rect { fill: #0f5c2a; stroke: #6fe08a; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .bin.w1 text { fill: #d8ffe3; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .bin.w2 rect { fill: #137a38; stroke: #8ff5a8; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .bin.w2 text { fill: #fff; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .bin.w10 rect { fill: #b87d0d; stroke: #ffe28a; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .bin.w10 text { fill: #fff6d0; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .bin.w100 rect { fill: #b3195e; stroke: #ffb3cb; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .bin.w100 text { fill: #fff; }

/* SWITCH? */
body:not([data-detail="full"]) #game:not(.mspick) .door .dtag { font-size: 18px; top: -26px; height: 22px; line-height: 22px; }
body:not([data-detail="full"]) #game:not(.mspick) .door.n10 .dtag { font-size: 17px; top: -22px; left: -8px; right: -8px; letter-spacing: -.4px; }
body:not([data-detail="full"]) #game:not(.mspick) .door .dyou { font-size: 18px; bottom: -24px; letter-spacing: .6px; }
body:not([data-detail="full"]) #game:not(.mspick) .door.n10 .dyou { font-size: 17px; line-height: 18px; bottom: 2px; letter-spacing: 0; }
body:is(:not([data-theme]),[data-theme="neon"]) .door .panel { background: url(../assets/tables/door.webp) 50% 50%/100% 100% no-repeat; border: 0; box-shadow: 0 6px 14px rgba(0,0,0,.5); }
body:is(:not([data-theme]),[data-theme="neon"]) .door .panel b { color: #ffe9a6; text-shadow: 0 2px 3px rgba(0,0,0,.8); }
body:is(:not([data-theme]),[data-theme="neon"]) .door.you .panel { box-shadow: 0 0 0 3px var(--cyan), 0 0 22px rgba(143,246,255,.5); border: 0; }
body:is(:not([data-theme]),[data-theme="neon"]) .door.alt .panel { box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(255,207,61,.45); border: 0; }
body:is(:not([data-theme]),[data-theme="neon"]) .door .dtag { color: #fff; text-shadow: 0 1px 3px #000; }
body:is(:not([data-theme]),[data-theme="neon"]) .door .inside { background: radial-gradient(ellipse at 50% 70%, #5a3514, #1c0f06 80%); border-color: #7a5420; }
body:is(:not([data-theme]),[data-theme="neon"]) .door.open .inside .empty { color: #c7a771; }

/* HIGHER / LOWER */
body:not([data-detail="full"]) #game:not(.mspick) .hlprev { left: 34px; top: 34px; width: 80px; height: 114px; opacity: .85; filter: none; }
body:not([data-detail="full"]) #game:not(.mspick) .hlcur { left: 182px; top: 0; width: 112px; height: 158px; }
body:not([data-detail="full"]) #game:not(.mspick) .hlpot { left: 334px; top: 20px; width: 150px; }
body:not([data-detail="full"]) #game:not(.mspick) .hlchart { width: 490px; top: 164px; }
body:not([data-detail="full"]) #game:not(.mspick) .hlcol i { width: 28px; }
body:not([data-detail="full"]) #game:not(.mspick) .hlcol b { font-size: 20px; }
body:is(:not([data-theme]),[data-theme="neon"]) .hlcol:not(.lo):not(.hi):not(.eq) b { color: #fff; }
body:is(:not([data-theme]),[data-theme="neon"]) .hlpot span { color: #ffe2a0; }
body:is(:not([data-theme]),[data-theme="neon"]) .hlface.front { background: linear-gradient(155deg, #fffdf6, #efe8d6); border: 1px solid rgba(40,30,10,.35); color: #15171c; box-shadow: 0 2px 2px rgba(0,0,0,.45), 0 12px 26px rgba(0,0,0,.5); }
body:is(:not([data-theme]),[data-theme="neon"]) .hlface.front.red { color: #c5112d; border-color: rgba(40,30,10,.35); box-shadow: 0 2px 2px rgba(0,0,0,.45), 0 12px 26px rgba(0,0,0,.5); }
body:is(:not([data-theme]),[data-theme="neon"]) .hlface :is(.i1, .rk) { text-shadow: none; }
body:is(:not([data-theme]),[data-theme="neon"]) .hlface .pip { filter: none; }
body:is(:not([data-theme]),[data-theme="neon"]) .hlcol i { border-color: rgba(255,255,255,.4); background: rgba(0,0,0,.25); }
body:is(:not([data-theme]),[data-theme="neon"]) .hlcol:not(.lo):not(.hi):not(.eq) i.on { background: #d9dfd6; }

/* PENNEY'S GAME */
body:not([data-detail="full"]) #game:not(.mspick) .pnlab { font-size: 22px; }
body:is(:not([data-theme]),[data-theme="neon"]) .pnlab { color: #fff; text-shadow: 0 1px 3px #000; }
body:not([data-detail="full"]) #game:not(.mspick) .pnlab small { font-size: 18px; }
body:is(:not([data-theme]),[data-theme="neon"]) .pnlab small { color: #ffe2a0; }
body:not([data-detail="full"]) #game:not(.mspick) .pnrow.house { top: 28px; }
body:not([data-detail="full"]) #game:not(.mspick) .pnstrip { top: 208px; height: 42px; gap: 4px; }
body:not([data-detail="full"]) #game:not(.mspick) .pnstrip .pncoin { width: 34px; height: 34px; font-size: 18px; margin-top: 4px; }
body:is(:not([data-theme]),[data-theme="neon"]) .pncoin.h { background: url(../assets/tables/coin_h.webp) 50% 50%/100% 100% no-repeat; border: 0; color: #5a3a02; box-shadow: 0 5px 10px rgba(0,0,0,.5); }
body:is(:not([data-theme]),[data-theme="neon"]) .pncoin.t { background: url(../assets/tables/coin_t.webp) 50% 50%/100% 100% no-repeat; border: 0; color: #1e2428; box-shadow: 0 5px 10px rgba(0,0,0,.5); }
body:is(:not([data-theme]),[data-theme="neon"]) .pncoin::after { display: none; }
body:is(:not([data-theme]),[data-theme="neon"]) #pnBoard.pickable .pnrow.you .pncoin { box-shadow: 0 0 0 3px rgba(143,246,255,.85), 0 5px 12px rgba(0,0,0,.5); }

/* STOP AT THE BEST */
body:not([data-detail="full"]) #game:not(.mspick) .scslots { width: 490px; }
body:not([data-detail="full"]) #game:not(.mspick) .scline { left: 148px; }
body:not([data-detail="full"]) #game:not(.mspick) .scskip { width: 144px; }
.scslot.shown:not(.rec):not(.cur) .scbar b, #scBoard.final .scbar b, .scbar b { font-size: 17px; letter-spacing: -.3px; }
.scline span, .scskip { font-size: 18px; }
body:not([data-detail="full"]) #game:not(.mspick) .scno { font-size: 18px; }
body:is(:not([data-theme]),[data-theme="neon"]) .scno { color: #fff; text-shadow: 0 1px 2px #000; }
body:is(:not([data-theme]),[data-theme="neon"]) .scbar { background: linear-gradient(160deg, #7c1426, #4a0a18 70%); border: 2px solid #d9a441; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
body:is(:not([data-theme]),[data-theme="neon"]) .scbar b { color: #ffe9a6; text-shadow: 0 1px 2px #000; }
body:is(:not([data-theme]),[data-theme="neon"]) .scslot.shown .scbar { background: linear-gradient(#fffdf6, #e5dec9); border-color: #b9a673; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
body:is(:not([data-theme]),[data-theme="neon"]) .scslot.shown .scbar b { color: #15171c; text-shadow: none; }
body:is(:not([data-theme]),[data-theme="neon"]) .scline { border-left-color: #fff; }
body:is(:not([data-theme]),[data-theme="neon"]) .scline span, body:is(:not([data-theme]),[data-theme="neon"]) .scskip { color: #fff; text-shadow: 0 1px 3px #000; opacity: 1; }

/* ---------- 4. console : pastille d'état, décision, oscilloscope, formule ---------- */
body:not([data-detail="full"]) #game:not(.mspick) #status { top: 672px; font-size: 24px; z-index: 3; }
body:not([data-detail="full"]) #game:not(.mspick) #prog { top: 708px; }
body:not([data-detail="full"]) #game:not(.mspick) #bSkip { top: 804px; right: 16px; height: 54px; width: 112px; font-size: 24px; padding: 0; z-index: 8; }
#bSkip::after { content: ''; position: absolute; inset: -18px -6px; }
body:not([data-detail="full"]) #game:not(.mspick) #hudR { left: 24px; right: 24px; top: 712px; min-height: 72px; padding: 3px 18px 3px; row-gap: 0; z-index: 2; }
body:not([data-detail="full"]) #game:not(.mspick) #hudR .pct { font-size: 58px; }
body:not([data-detail="full"]) #game:not(.mspick) #hudR .pctlab { font-size: 24px; max-width: 400px; }
body:not([data-detail="full"]) #game:not(.mspick) #hudR #mathSays { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 640px; }
body:not([data-detail="full"]) #game:not(.mspick) #hudR #mathSays span { font-size: 22px; margin-left: 6px; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #game:not(.mspick) #hudR { background: linear-gradient(rgba(14,9,5,.8), rgba(6,4,2,.82)); box-shadow: inset 0 0 0 1.5px rgba(214,164,84,.45); }
body:not([data-detail="full"]) #game:not(.mspick) .big { left: 130px; width: 460px; top: 828px; padding: 4px 0 8px; border-radius: 18px; z-index: 7; }
body:not([data-detail="full"]) #game:not(.mspick) .big.show { background: rgba(5,4,2,.86); box-shadow: inset 0 0 0 2px currentColor, 0 8px 26px rgba(0,0,0,.55); }
body:not([data-detail="full"]) #game:not(.mspick) .big div:first-child { font-size: 66px; }
body:not([data-detail="full"]) #game:not(.mspick) .big div:last-child { font-size: 24px; opacity: 1; color: #fff; }
body:not([data-detail="full"]) #game:not(.mspick) #scope { top: 806px; height: 120px; left: 142px; width: 436px; opacity: 1; border-radius: 12px; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #game:not(.mspick) #scope { background: rgba(2,9,8,.84); box-shadow: 0 0 0 2px rgba(214,164,84,.7), 0 0 0 5px rgba(0,0,0,.45), inset 0 0 18px rgba(0,0,0,.8); }
body:not([data-detail="full"]) #game:not(.mspick) .packtag { display: none; }
body:not([data-detail="full"]) #game:not(.mspick) .f1 { top: 932px; }
body:not([data-detail="full"]) #game:not(.mspick) .cap { top: 984px; bottom: auto; font-size: 22px; padding: 5px 12px; }
body[data-detail="clean"] #game:not(.mspick) #bMathX { top: 866px; right: 16px; height: 54px; padding: 0 10px; font-size: 22px; letter-spacing: .4px; }
body[data-detail="clean"] #game:not(.mspick) #bMathX::after { inset: -17px -6px; }
body:not([data-detail="full"]) #game:not(.mspick) #fx .f { font-size: 31px; }
body:not([data-detail="full"]) #game:not(.mspick) #fx.squeeze .f { font-size: 31px; }
#bMathX i { min-width: 28px; height: 28px; border-radius: 14px; font: 900 22px/28px Montserrat; }
body:not([data-detail="full"]) #game:not(.mspick) #bClip { top: 866px; left: 16px; height: 54px; padding: 0 10px 0 8px; font-size: 22px; }
#bClip::after { content: ''; position: absolute; inset: -17px -6px; }
#bQuest { display: none; }
body:not([data-detail="full"]) #game:not(.mspick) #bQuest {
  display: block; position: absolute; left: 16px; top: 804px; z-index: 8; height: 54px; width: 112px; padding: 0; border-radius: 26px; cursor: pointer;
  border: 1px solid rgba(214,164,84,.8); background: rgba(14,9,5,.86); color: #ffe2a0; font: 800 22px/1 'Barlow Semi Condensed';
}
#bQuest::after { content: ''; position: absolute; inset: -18px -6px; }
#bQuest.ping { animation: mxPing .9s var(--m-out); }
#questPanel { display: none; }
#questPanel.open { display: block; position: absolute; left: 14px; right: 14px; top: 796px; height: 226px; z-index: 9; padding: 10px 16px; border-radius: 18px;
  background: linear-gradient(rgba(14,9,5,.97), rgba(6,4,2,.97)); box-shadow: inset 0 0 0 1.5px rgba(214,164,84,.7), 0 10px 30px rgba(0,0,0,.5); font: 700 24px/1.15 'Barlow Semi Condensed'; color: #fff; animation: mpIn var(--m-med) var(--m-out); }
#questPanel h4 { margin: 0 0 6px; font: 800 24px/1.1 'Barlow Semi Condensed'; letter-spacing: .6px; color: #ffe2a0; }
#questPanel div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.12); }
#questPanel div.done { color: #8ff5a8; }
#questPanel small { font: 700 22px/1.15 'Barlow Semi Condensed'; color: #cfd6d0; white-space: nowrap; }
#mathPanel .mpstats { font-size: 22px; }
body:not([data-detail="full"]) #game.cr:not(.mspick) #scope { left: 30px; top: 414px; width: 660px; height: 226px; background: none; box-shadow: none; }
body:not([data-detail="full"]) #game.cr:not(.mspick) .big { top: 450px; left: 130px; width: 460px; }

/* ---------- 5. boutons : zone du pouce ---------- */
body:not([data-detail="full"]) #game:not(.mspick) :is(#actions, #msActions, #crActions, #rrActions, #bsActions, #plActions, #swActions, #hlActions, #pnActions, #scActions) { top: 1030px; left: 20px; right: 20px; height: 210px; }
body:not([data-detail="full"]) #game:not(.mspick) .arow { height: 166px; gap: 12px; }
body:not([data-detail="full"]) #game:not(.mspick) .btn small { font: 700 22px/1.05 'Barlow Semi Condensed'; letter-spacing: 0; margin-top: 5px; opacity: 1; }
body:not([data-detail="full"]) #game:not(.mspick) .betbox { padding: 0 8px; }
body:not([data-detail="full"]) #game:not(.mspick) .betbox .chip { width: 76px; height: 76px; font-size: 40px; }
body:not([data-detail="full"]) #game:not(.mspick) .betbox .chip::after { inset: -10px; }
body:not([data-detail="full"]) #game:not(.mspick) .betval span { font-size: 22px; letter-spacing: .6px; }
body:is(:not([data-theme]),[data-theme="neon"]) .betval span { color: #ffe2a0; }
body:not([data-detail="full"]) #game:not(.mspick) .betval b { font-size: 42px; }
body:not([data-detail="full"]) #game:not(.mspick) .betval small { font-size: 22px !important; }
body:not([data-detail="full"]) #game:not(.mspick) #rrSetup .betval .mode, body:not([data-detail="full"]) #game:not(.mspick) #hudL .mode { font-size: 22px; letter-spacing: 0; white-space: nowrap; }
/* réglages à deux étages : mise + réglage en haut, le grand bouton dessous */
body:not([data-detail="full"]) #game:not(.mspick) :is(#crBet, #rrSetup, #plBet, #swBet) { flex-wrap: wrap; height: 206px; gap: 8px 10px; align-content: flex-start; }
body:not([data-detail="full"]) #game:not(.mspick) :is(#crBet, #rrSetup, #plBet, #swBet) .betbox { flex: 1 1 46%; height: 96px; padding: 0 6px; }
body:not([data-detail="full"]) #game:not(.mspick) :is(#crBet, #rrSetup, #plBet, #swBet) .btn { height: 100px; flex: 1 1 30%; }
body:not([data-detail="full"]) #game:not(.mspick) :is(#crBet, #rrSetup, #plBet, #swBet) .chip { width: 70px; height: 70px; font-size: 36px; }
body:not([data-detail="full"]) #game:not(.mspick) :is(#crBet, #rrSetup, #plBet, #swBet) .chip::after { inset: -11px; }
body:not([data-detail="full"]) #game:not(.mspick) :is(#crBet, #rrSetup, #plBet, #swBet) .betval b { font-size: 34px; line-height: 1; }
body:not([data-detail="full"]) #game:not(.mspick) :is(#crBet, #rrSetup, #plBet, #swBet) .betval span { font-size: 22px; line-height: 1.05; }
body:not([data-detail="full"]) #game:not(.mspick) #swBet .betval small { font: 800 22px/1 'Barlow Semi Condensed'; }
body:not([data-detail="full"]) #game:not(.mspick) #swBet .btn small, body:not([data-detail="full"]) #game:not(.mspick) #plBet .btn small { font-size: 22px; letter-spacing: 0; }
body:not([data-detail="full"]) #game:not(.mspick) #swBet #bSwGo, body:not([data-detail="full"]) #game:not(.mspick) #plBet #bPlDrop, body:not([data-detail="full"]) #game:not(.mspick) #crBet #bLaunch, body:not([data-detail="full"]) #game:not(.mspick) #rrSetup #bRrLoad { flex: 2 1 60%; font-size: 42px; }
body:not([data-detail="full"]) #game:not(.mspick) #swBet #bSwGo small { font-size: 22px; }
body:not([data-detail="full"]) #game:not(.mspick) #swBet .btn.mode, body:not([data-detail="full"]) #game:not(.mspick) #plBet .btn.risk { flex: 1 1 28%; font-size: 30px; }
body:not([data-detail="full"]) #game:not(.mspick) #bsPlay .btn small, body:not([data-detail="full"]) #game:not(.mspick) #rrPlay .btn small { font-size: 22px; }
body:not([data-detail="full"]) #game:not(.mspick) #hlPlay .btn { font-size: 28px; padding: 0 2px; }
body:not([data-detail="full"]) #game:not(.mspick) #hlPlay .btn small { font-size: 22px; margin-top: 6px; letter-spacing: 0; }
body:not([data-detail="full"]) #game:not(.mspick) #pnBet #bPnGo small, body:not([data-detail="full"]) #game:not(.mspick) #scBet #bScGo small, body:not([data-detail="full"]) #game:not(.mspick) #hlBet #bHlDeal small { font-size: 22px; }
body:not([data-detail="full"]) #game:not(.mspick) #scPlay .btn small, body:not([data-detail="full"]) #game:not(.mspick) #swPlay .btn small { font-size: 22px; }
body:is(:not([data-theme]),[data-theme="neon"]):not([data-detail="full"]) #game:not(.mspick) .betbox { background: linear-gradient(rgba(16,10,6,.86), rgba(8,5,3,.9)); border: 1.5px solid rgba(214,164,84,.6); }
body:is(:not([data-theme]),[data-theme="neon"]) .betbox .chip { background: url(../assets/tables/chip_red.webp) 50% 50%/100% 100% no-repeat; border: 0; box-shadow: 0 5px 8px rgba(0,0,0,.55); text-shadow: 0 2px 2px #000; }
body:is(:not([data-theme]),[data-theme="neon"]) .betbox:is(.tgt, .rows, .doors, .bul) .chip { background: url(../assets/tables/chip_blue.webp) 50% 50%/100% 100% no-repeat; }
#game .betbox .chip:active { transform: scale(.88) rotate(-25deg); }
#msBoard .mc.tgt { outline: 4px solid #ffd23f; outline-offset: -2px; box-shadow: 0 0 16px 3px rgba(255,210,63,.95); }
/* YOUR PICK : sa propre disposition (css/mines-pick.css), mêmes planchers de taille */
#game.mspick .packtag { display: none; }
#game.mspick #pctSub { font-size: 22px; }
#game.mspick .hands i { width: 26px; height: 26px; font-size: 22px; line-height: 26px; }
#game.mspick .f1 { font-size: 32px; }
#game.mspick #fx .f, #game.mspick #fx.squeeze .f { font-size: 31px; }
#game.mspick #bSkip { font-size: 22px; height: 54px; }
#game.mspick #sub, #game.mspick #sub.alert { font-size: 22px; }
#game.mspick .lab { font-size: 22px; }
#msMode .btn.mmode small { font-size: 22px; opacity: 1; }
#msTap .mstap span { font-size: 22px; }
/* coût par image : pas de filtre SVG sur les clous, pas d'ombre sur les petites pièces ni les barres */
body:is(:not([data-theme]),[data-theme="neon"]):not([data-pegs]) #plBoard :is(.pg, .pg.hit, #plBall) { filter: none; }
body:is(:not([data-theme]),[data-theme="neon"]) #plBoard .bin.hit rect { filter: none; }
body:is(:not([data-theme]),[data-theme="neon"]) .pnstrip .pncoin { box-shadow: none; }
body:is(:not([data-theme]),[data-theme="neon"]) .scbar { box-shadow: none; }
body:is(:not([data-theme]),[data-theme="neon"]) .scslot.shown .scbar { box-shadow: none; }
/* CASH OUT : le pouls passe du box-shadow (repeint à chaque image) à une échelle composée */
#game .btn.cash:not([disabled]) { animation: cashPulse2 .5s ease-in-out infinite alternate; box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -4px 0 rgba(0,0,0,.18), 0 5px 0 rgba(0,0,0,.38), 0 0 34px rgba(250,208,63,.6); }
@keyframes cashPulse2 { from { transform: scale(1); } to { transform: scale(1.018); } }
@media (prefers-reduced-motion: reduce) { #game .btn.cash:not([disabled]) { animation: none; } }
/* @@LOT8-FIN@@ */
