/* LasVegas Casino — style commun (paysage uniquement). Les jeux ont leur feuille dans css/games/<id>.css,
   toutes leurs règles préfixées par .cs-game[data-game="<id>"] ou par un préfixe propre (bj-, bc-, cr-, sl-, vp-, rl-).
   Unités : dans un jeu, --u = 1 % de la hauteur de la zone de jeu, --w = 1 % de sa largeur (posées par le socle). */
@font-face{font-family:Outfit;src:url(../fonts/outfit.woff2?v=035f9f2b27d1) format('woff2');font-weight:100 900;font-display:swap}
:root{
  --bg:#12060A;--bg2:#2A0A14;--panel:#1D0C12;--line:rgba(255,214,120,.22);
  --gold:#F5C542;--gold2:#FFE9A3;--gold3:#A8780A;--red:#D21F3C;--green:#0E7A45;--felt:#0B6B3C;--felt2:#064A29;
  --txt:#FFF6E0;--mut:rgba(255,246,224,.62);
  --sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px);
  --top:46px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
/* Sans ceci, Safari iOS grossit tout seul les textes en paysage. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{height:100%;margin:0;overflow:hidden;background:var(--bg);color:var(--txt);font-family:Outfit,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:none;touch-action:manipulation}
button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer}
h1,h2,h3,p{margin:0}
#cs-app{position:fixed;inset:0;overflow:hidden;
  background:radial-gradient(120% 90% at 50% -10%,#5A1226 0,#2A0A14 45%,#12060A 100%)}
#cs-app::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:radial-gradient(circle at 1px 1px,rgba(255,214,120,.09) 1px,transparent 1.6px);background-size:22px 22px}
#cs-lobby,#cs-game{position:absolute;inset:0;display:none}
#cs-app[data-view=lobby] #cs-lobby{display:flex}
#cs-app[data-view=game] #cs-game{display:flex}

/* ---------- boutons ---------- */
.cs-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 20px;border-radius:999px;font-weight:800;font-size:15px;letter-spacing:.2px;white-space:nowrap;
  isolation:isolate;overflow:hidden;transition:transform .09s cubic-bezier(.3,.7,.4,1),filter .15s,opacity .15s,box-shadow .09s}
/* Reflet : une bande claire sur la moitié haute, comme un bouton en verre laqué. */
.cs-btn::after{content:"";position:absolute;left:3px;right:3px;top:2px;height:48%;border-radius:999px 999px 60% 60%/999px 999px 100% 100%;pointer-events:none;z-index:-1;
  background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.08))}
.cs-btn:active{transform:translateY(3px) scale(.985)}
.cs-btn:disabled{opacity:.38;filter:grayscale(.5);pointer-events:none}
.cs-btn svg{flex:none;width:1.15em;height:1.15em;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.cs-btn.gold{color:#3B2500;text-shadow:0 1px 0 rgba(255,255,255,.45);background:linear-gradient(180deg,#FFE27A 0,#FBC531 46%,#F0A70A 54%,#D98A00 100%);
  box-shadow:inset 0 0 0 1px rgba(255,244,190,.7),inset 0 -3px 0 rgba(140,80,0,.35),0 4px 0 #A46400,0 10px 18px rgba(0,0,0,.45),0 0 22px rgba(251,197,49,.28)}
.cs-btn.gold:active{box-shadow:inset 0 0 0 1px rgba(255,244,190,.7),inset 0 -1px 0 rgba(140,80,0,.35),0 1px 0 #A46400,0 4px 8px rgba(0,0,0,.4)}
.cs-btn.dark{color:#fff;background:linear-gradient(180deg,#3A2030,#1B0D14);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 4px 0 #0B0408,0 10px 20px rgba(0,0,0,.4)}
.cs-btn.dark::after{background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,.02))}
.cs-btn.red{color:#fff;text-shadow:0 1px 0 rgba(90,0,20,.5);background:linear-gradient(180deg,#FF7A8E 0,#E22848 46%,#C4142F 54%,#96102A 100%);box-shadow:inset 0 0 0 1px rgba(255,200,210,.5),inset 0 -3px 0 rgba(80,0,20,.4),0 4px 0 #5E0718,0 10px 18px rgba(0,0,0,.45)}
.cs-btn.green{color:#fff;text-shadow:0 1px 0 rgba(0,60,30,.5);background:linear-gradient(180deg,#5FE9A0 0,#18B564 46%,#0E9A52 54%,#0A6E3B 100%);box-shadow:inset 0 0 0 1px rgba(200,255,225,.5),inset 0 -3px 0 rgba(0,60,30,.4),0 4px 0 #064525,0 10px 18px rgba(0,0,0,.45)}
.cs-btn.blue{color:#fff;text-shadow:0 1px 0 rgba(0,30,80,.5);background:linear-gradient(180deg,#8CCBFF 0,#3A8BE6 46%,#2470CC 54%,#17509A 100%);box-shadow:inset 0 0 0 1px rgba(210,235,255,.5),inset 0 -3px 0 rgba(0,30,80,.4),0 4px 0 #0D3266,0 10px 18px rgba(0,0,0,.45)}
.cs-btn.red::after,.cs-btn.green::after,.cs-btn.blue::after{background:linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,.04))}
.cs-btn.red:active,.cs-btn.green:active,.cs-btn.blue:active,.cs-btn.dark:active{box-shadow:inset 0 0 0 1px rgba(255,255,255,.3),0 1px 0 rgba(0,0,0,.6),0 4px 8px rgba(0,0,0,.4)}
.cs-btn.line{color:#fff;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.07));box-shadow:inset 0 0 0 1px rgba(255,255,255,.24),0 3px 0 rgba(0,0,0,.35),0 8px 14px rgba(0,0,0,.3)}
.cs-btn.line::after{background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,0))}
.cs-btn.line:active{box-shadow:inset 0 0 0 1px rgba(255,255,255,.24),0 1px 0 rgba(0,0,0,.35)}
.cs-btn.big{min-height:50px;font-size:18px;padding:0 28px}
.cs-btn.sm{min-height:32px;font-size:13px;padding:0 13px}
.cs-ib{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);color:#fff;flex:none}
.cs-ib svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cs-ib.txt{width:auto;height:36px;border-radius:999px;padding:0 12px 0 10px;font-size:13px;font-weight:700;white-space:nowrap;color:rgba(255,255,255,.6)}
.cs-ib.txt svg{flex:none}
.cs-ib.txt span{flex:none}
.cs-ib.txt::after{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.28)}
.cs-ib.txt.on{color:#fff;background:rgba(247,192,43,.16);box-shadow:inset 0 0 0 1.5px var(--gold)}
.cs-ib.txt.on::after{background:#3DF08A;box-shadow:0 0 8px #3DF08A}
.cs-ib:active{transform:scale(.94)}

/* ---------- solde, pièce ---------- */
.cs-coin{display:inline-block;width:1.2em;height:1.2em;vertical-align:-.24em;flex:none;background:url(../img/credits/coin.webp?v=035f9f2b27d1) center/contain no-repeat;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}
.cs-bal{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px 0 9px;border-radius:999px;background:rgba(0,0,0,.4);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);font-weight:800;font-size:16px;font-variant-numeric:tabular-nums;color:#fff;white-space:nowrap;flex:none}
.cs-bal.big{height:42px;font-size:19px;padding:0 18px 0 11px}
.cs-bal.pop b{animation:cs-pop .5s}
@keyframes cs-pop{30%{transform:scale(1.25);color:#fff}}

/* ---------- lobby (design moderne, owner 30/11 : visuels peints plein cadre, verre dépoli, moins de dorures) ---------- */
#cs-lobby{flex-direction:column;padding:calc(var(--sat) + 10px) 0 calc(var(--sab) + 6px);
  background:linear-gradient(180deg,rgba(14,5,10,.86) 0,rgba(14,5,10,.66) 32%,rgba(14,5,10,.94) 100%),url(../img/lobby.jpg?v=035f9f2b27d1) center/cover no-repeat}
.cs-lhead{display:flex;align-items:center;gap:14px;flex:none;padding:0 calc(var(--sar) + 18px) 0 calc(var(--sal) + 18px)}
.cs-sign{display:flex;align-items:baseline;gap:7px;font-weight:900;line-height:1;white-space:nowrap}
.cs-sign span,.cs-sign b{font-size:clamp(22px,6.4vh,32px);font-style:italic;letter-spacing:-.5px;color:#FFF6DC;text-shadow:0 0 10px rgba(255,190,60,.9),0 0 28px rgba(255,120,0,.55)}
.cs-sign b{color:#FFE1EA;text-shadow:0 0 10px rgba(255,60,120,.95),0 0 30px rgba(255,0,110,.6)}
.cs-sign em{font-style:normal;font-size:clamp(9px,2.6vh,12px);font-weight:800;letter-spacing:5px;color:var(--gold2);padding:4px 4px 4px 9px;border-radius:6px;background:rgba(255,255,255,.08);align-self:center}
.cs-lsub{flex:1;min-width:0;color:var(--mut);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-lright{display:flex;align-items:center;gap:8px;flex:none}
.cs-lright .cs-bal,.cs-lright .cs-ib,.cs-daily{-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);background:rgba(20,10,16,.55);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.cs-daily{display:flex;align-items:center;gap:9px;height:42px;padding:0 16px 0 7px;border-radius:999px;text-align:left;opacity:.75}
.cs-daily span{display:flex;flex-direction:column;line-height:1.12}
.cs-daily small{font-size:9.5px;font-weight:700;color:var(--mut);text-transform:uppercase;letter-spacing:1px}
.cs-daily b{font-size:13px;color:#fff}
.cs-daily.due{opacity:1;background:linear-gradient(135deg,#FF2D7A,#B5179E 55%,#7209B7);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35),0 6px 22px rgba(255,45,122,.55);animation:cs-glow 1.8s ease-in-out infinite}
.cs-daily.due small{color:rgba(255,255,255,.8)}
@keyframes cs-glow{50%{box-shadow:inset 0 0 0 1px rgba(255,255,255,.5),0 6px 34px rgba(255,45,122,.95)}}
.cs-gift{width:28px;height:28px;border-radius:50%;flex:none;background:url(../img/credits/coin.webp?v=035f9f2b27d1) center/contain no-repeat;filter:drop-shadow(0 2px 3px rgba(0,0,0,.45))}
/* Tuiles : grandes en hauteur (owner 30/11 : « remets-les plus haut, c'était plus impressionnant »), largeur contenue. */
.cs-tiles{flex:1;min-height:0;display:flex;gap:14px;align-items:center;overflow-x:auto;overflow-y:hidden;padding:12px calc(var(--sar) + 18px) 10px calc(var(--sal) + 18px);scroll-snap-type:x proximity;scroll-padding:0 calc(var(--sar) + 18px) 0 calc(var(--sal) + 18px);-webkit-overflow-scrolling:touch;scrollbar-width:none}
.cs-tiles::-webkit-scrollbar{display:none}
.cs-tile{position:relative;flex:0 0 clamp(180px,52vh,330px);height:100%;max-height:760px;display:flex;flex-direction:column;justify-content:flex-end;border-radius:26px;overflow:hidden;scroll-snap-align:start;cursor:pointer;isolation:isolate;
  background:#150910;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),0 18px 34px rgba(0,0,0,.55);transition:transform .16s cubic-bezier(.2,.8,.3,1),box-shadow .16s}
.cs-tile:active{transform:scale(.97)}
.cs-tile-art{position:absolute;inset:0;z-index:-1;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(90% 80% at 50% 30%,var(--accent) 0,color-mix(in srgb,var(--accent) 45%,#000) 70%,#0A0406 100%)}
.cs-tile-art>svg{width:64%;height:64%;margin-bottom:26%;filter:drop-shadow(0 8px 14px rgba(0,0,0,.5))}
.cs-tile-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cs-tile-art::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 38%,rgba(10,4,8,.72) 68%,rgba(10,4,8,.96) 100%);pointer-events:none}
.cs-tile::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 1px rgba(255,255,255,.1)}
.cs-tile-t{flex:none;padding:0 16px}
.cs-tile-t h3{font-size:clamp(18px,5.6vh,28px);font-weight:900;letter-spacing:-.3px;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.7)}
.cs-tile-t p{font-size:12.5px;color:rgba(255,255,255,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.cs-tile-f{flex:none;display:flex;flex-direction:column;align-items:stretch;gap:2px;padding:8px 14px 8px}
.cs-learn{align-self:center;padding:7px 12px;font-size:12.5px;font-weight:700;color:rgba(255,255,255,.78);text-decoration:underline;text-decoration-color:rgba(255,255,255,.35);text-underline-offset:3px}
.cs-tile-f .cs-btn{min-height:clamp(38px,9vh,52px);font-size:clamp(15px,4.2vh,19px);letter-spacing:.4px;text-transform:uppercase}
/* Bouton « Jouer » : un éclat de lumière le traverse de temps en temps. */
.cs-tile-f .cs-btn.gold::before{content:"";position:absolute;top:-20%;bottom:-20%;left:-40%;width:28%;transform:skewX(-22deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);animation:cs-shine 3.6s ease-in-out infinite;pointer-events:none}
@keyframes cs-shine{0%,62%{left:-40%}100%{left:130%}}
.cs-tile:nth-child(2n) .cs-btn.gold::before{animation-delay:.6s}.cs-tile:nth-child(3n) .cs-btn.gold::before{animation-delay:1.2s}
.cs-tile-f .cs-btn.gold{flex:1}
.cs-tile-f .cs-btn.line{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);color:#fff;font-weight:700}
.cs-tile-s{position:absolute;top:10px;right:10px;font-size:10.5px;font-weight:700;padding:4px 9px;border-radius:999px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:rgba(10,4,8,.55);color:#fff}
.cs-legal{flex:none;font-size:10px;line-height:1.25;color:rgba(255,246,224,.45);text-align:center;padding:0 18px}

/* ---------- écran de jeu ---------- */
#cs-game{flex-direction:column}
/* Entête en dégradé posé par-dessus la table (owner 30/11) : plus de barre pleine, le tapis continue dessous. */
.cs-top{position:absolute;left:0;right:0;top:0;height:calc(var(--top) + var(--sat) + 14px);padding-bottom:14px;pointer-events:none;padding:var(--sat) calc(var(--sar) + 12px) 0 calc(var(--sal) + 12px);display:flex;align-items:center;gap:10px;
  background:linear-gradient(180deg,rgba(8,3,6,.82) 0,rgba(8,3,6,.5) 55%,rgba(8,3,6,0) 100%);z-index:5}
.cs-top>*{pointer-events:auto}
.cs-top h1{text-shadow:0 1px 6px rgba(0,0,0,.7)}
.cs-top .cs-ib,.cs-top .cs-bal{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:rgba(10,4,8,.5)}
.cs-top h1{font-size:18px;font-weight:800;color:#fff;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.cs-top-r{margin-left:auto;display:flex;align-items:center;gap:8px;flex:none}
.cs-game{position:relative;flex:1;min-height:0;overflow:hidden;padding:calc(var(--top) + var(--sat)) var(--sar) var(--sab) var(--sal);
  background:radial-gradient(110% 120% at 50% 0,color-mix(in srgb,var(--accent) 100%,#fff 0%) 0,color-mix(in srgb,var(--accent) 62%,#000) 60%,color-mix(in srgb,var(--accent) 30%,#000) 100%)}
.cs-game::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.35;mix-blend-mode:overlay;
  background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.05) 0 2px,transparent 2px 5px),repeating-linear-gradient(-45deg,rgba(0,0,0,.08) 0 2px,transparent 2px 5px)}
.cs-coach{position:absolute;left:0;right:0;margin:0 auto;width:fit-content;bottom:calc(var(--sab) + 6px);transform:translateY(16px);max-width:min(86vw,720px);display:flex;align-items:center;gap:8px;padding:7px 14px 7px 9px;border-radius:999px;
  background:rgba(12,10,20,.9);box-shadow:0 0 0 1.5px #7FC1FF,0 8px 18px rgba(0,0,0,.5);font-size:13px;line-height:1.25;color:#EAF4FF;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:6}
.cs-coach.on{opacity:1;transform:none}
.cs-coach i{display:flex;flex:none;color:#7FC1FF}
.cs-coach i svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cs-coach b{color:#FFE9A3}
.cs-flash{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);padding:8px 22px;border-radius:14px;font-weight:900;font-size:clamp(18px,7vh,30px);white-space:nowrap;z-index:7;pointer-events:none;
  background:rgba(10,8,14,.86);color:#fff;box-shadow:0 0 0 2px var(--line),0 10px 24px rgba(0,0,0,.5);animation:cs-flash .3s cubic-bezier(.2,1.6,.4,1)}
.cs-flash.win{color:#3A2500;background:linear-gradient(180deg,#FFF0B8,#F5C542);box-shadow:0 0 0 2px #fff,0 0 30px rgba(255,200,60,.8)}
.cs-flash.lose{color:#FFD0DA}
.cs-flash.out{opacity:0;transition:opacity .35s}
@keyframes cs-flash{from{transform:translate(-50%,-50%) scale(.6);opacity:0}}

/* ---------- jetons ---------- */
.cs-chip{--c:#E9E9EE;--d:#9A9AA6;--t:#22222A;position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;flex:none;font-size:13px;color:var(--t);
  background:radial-gradient(circle,var(--c) 0 52%,transparent 53%),repeating-conic-gradient(var(--c) 0 20deg,#fff 20deg 40deg);
  box-shadow:inset 0 0 0 2px var(--d),0 3px 0 var(--d),0 5px 8px rgba(0,0,0,.45)}
.cs-chip::after{content:"";position:absolute;inset:6px;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.75),inset 0 0 0 3px var(--d)}
.cs-chip b{position:relative;z-index:1;font-weight:900}
.cs-chip.v1{--c:#F2F2F5;--d:#9A9AA6;--t:#22222A}
.cs-chip.v5{--c:#E0283F;--d:#8E1024;--t:#fff}
.cs-chip.v25{--c:#18A058;--d:#0A6235;--t:#fff}
.cs-chip.v100{--c:#22232B;--d:#000;--t:#FFE9A3}
.cs-chip.v500{--c:#7B3FE4;--d:#44189A;--t:#fff}
.cs-chip.v1000{--c:#F5C542;--d:#A8780A;--t:#3A2500}
.cs-chipbar{display:flex;gap:8px;align-items:center}
.cs-chipbar .cs-chip{cursor:pointer;transition:transform .12s,filter .12s}
.cs-chipbar .cs-chip.on{transform:translateY(-6px) scale(1.1);filter:drop-shadow(0 0 8px rgba(255,220,120,.95))}
.cs-chipbar.lock{opacity:.45;pointer-events:none}
.cs-stack{position:relative;display:inline-flex;flex-direction:column-reverse;align-items:center}
.cs-stack .cs-chip{width:30px;height:30px;font-size:0;margin-bottom:-25px}
.cs-stack .cs-chip:first-child{margin-bottom:0}
.cs-stack em{order:-1;font-style:normal;font-weight:800;font-size:12px;margin-top:3px;padding:1px 7px;border-radius:999px;background:rgba(0,0,0,.6);color:var(--gold2)}

/* ---------- cartes ---------- */
.cs-card{--cw:calc(var(--u,4px) * 15);width:var(--cw);height:calc(var(--cw) * 1.4);flex:none;perspective:600px}
.cs-card-in{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .35s cubic-bezier(.3,.9,.3,1)}
.cs-card.down .cs-card-in{transform:rotateY(180deg)}
.cs-card-f,.cs-card-b{position:absolute;inset:0;border-radius:calc(var(--cw) * .09);backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 2px 6px rgba(0,0,0,.45)}
.cs-card-f{background:linear-gradient(160deg,#FFFDF8,#F3EBDA);color:#17151C;overflow:hidden}
.cs-card.red .cs-card-f{color:#D21F3C}
.cs-card-b{transform:rotateY(180deg);background:#7A0E1E url(../img/cards/back.webp?v=035f9f2b27d1) center/100% 100% no-repeat;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25),0 2px 6px rgba(0,0,0,.45)}
.cs-ci{position:absolute;top:4%;left:7%;display:flex;flex-direction:column;align-items:center;font-style:normal;line-height:.95}
.cs-ci.r{top:auto;left:auto;right:7%;bottom:4%;transform:rotate(180deg)}
.cs-ci b{font-size:calc(var(--cw) * .3);font-weight:800;letter-spacing:-.04em}
.cs-ci u{text-decoration:none;font-size:calc(var(--cw) * .24)}
.cs-cm{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:calc(var(--cw) * .58)}
.cs-cp{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.cs-ci.tab{top:0;left:0;padding:3% 5% 2% 5%;background:#FBF4E6;border-radius:calc(var(--cw) * .09) 0 calc(var(--cw) * .12) 0;box-shadow:1px 1px 2px rgba(0,0,0,.25)}
.cs-ci.r.tab{top:auto;left:auto;right:0;bottom:0}
.cs-card.deal{animation:cs-deal .32s cubic-bezier(.2,.8,.3,1) both}
@keyframes cs-deal{from{transform:translate(40vw,-60vh) rotate(25deg);opacity:0}}
.cs-card.dim{filter:brightness(.55)}
.cs-card.hold .cs-card-f{box-shadow:0 0 0 3px var(--gold),0 0 16px rgba(255,200,60,.8)}

/* ---------- feuilles ---------- */
.cs-sheet{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:calc(var(--sat) + 10px) calc(var(--sar) + 16px) calc(var(--sab) + 10px) calc(var(--sal) + 16px);
  background:rgba(6,2,4,.72);opacity:0;transition:opacity .2s;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.cs-sheet.on{opacity:1}
.cs-sheet-in{position:relative;max-width:min(640px,100%);max-height:100%;overflow:auto;padding:18px 22px;border-radius:22px;
  background:linear-gradient(180deg,rgba(52,22,36,.97),rgba(22,9,15,.98));box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 0 0 1px rgba(255,255,255,.1),0 30px 70px rgba(0,0,0,.7);transform:scale(.92);transition:transform .22s cubic-bezier(.2,1.4,.4,1)}
.cs-sheet.on .cs-sheet-in{transform:none}
.cs-sheet h2{font-size:22px;font-weight:900;color:#fff;letter-spacing:-.2px}
.cs-sheet p{color:var(--mut);font-size:14px;line-height:1.35}
.cs-x{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.12);font-size:0;z-index:2}
.cs-x::before,.cs-x::after{content:"";position:absolute;left:10px;right:10px;top:16px;height:2px;border-radius:2px;background:#fff;transform:rotate(45deg)}
.cs-x::after{transform:rotate(-45deg)}
.cs-sheet.win .cs-sheet-in{overflow:visible;padding:0 30px 18px}
.cs-win{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;min-width:min(340px,70vw)}
.cs-win .cs-heap{position:relative;width:min(230px,46vh);margin:-13vh 0 0;animation:cs-heap .55s cubic-bezier(.3,1.5,.5,1) both}
.cs-win .cs-heap.l0{width:min(130px,30vh)}.cs-win .cs-heap.l1{width:min(190px,40vh)}.cs-win .cs-heap.l3{width:min(250px,50vh)}
@keyframes cs-heap{from{transform:scale(.4) translateY(30px);opacity:0}}
.cs-win h2{position:relative;font-size:clamp(22px,8vh,32px)}
.cs-win p{position:relative}
.cs-amount{position:relative;display:flex;align-items:center;gap:8px;font-size:clamp(34px,13vh,52px);line-height:1.05;font-weight:900;color:#FFD23F;text-shadow:0 3px 0 #8A5A00,0 0 26px rgba(255,200,60,.55)}
.cs-win .cs-btn{position:relative;min-width:200px;margin-top:8px}
/* Rayons de soleil derrière le gain : grands, sur tout l'écran, et qui tournent (owner 30/11). */
.cs-rays,.cs-sheet.win::before{content:"";position:absolute;left:50%;top:50%;width:200vh;height:200vh;margin:-100vh 0 0 -100vh;border-radius:50%;pointer-events:none;opacity:.5;
  background:repeating-conic-gradient(rgba(255,214,94,.95) 0 7deg,transparent 7deg 18deg);-webkit-mask:radial-gradient(circle,#000 0,rgba(0,0,0,.6) 28%,transparent 62%);mask:radial-gradient(circle,#000 0,rgba(0,0,0,.6) 28%,transparent 62%);animation:cs-spin 18s linear infinite}
@keyframes cs-spin{to{transform:rotate(360deg)}}
.cs-sheet.win{overflow:hidden}
.cs-win .cs-rays{display:none}
.cs-set{min-width:min(420px,80vw);display:flex;flex-direction:column;gap:8px}
.cs-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:38px;font-size:15px}
.cs-sw{width:48px;height:28px;border-radius:999px;background:rgba(255,255,255,.14);position:relative;transition:background .15s}
.cs-sw i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .15s}
.cs-sw.on{background:linear-gradient(180deg,#F5C542,#C8900E)}.cs-sw.on i{transform:translateX(20px)}
.cs-seg{display:inline-flex;border-radius:999px;overflow:hidden;box-shadow:inset 0 0 0 1.5px var(--line)}
.cs-seg button{padding:5px 14px;font-weight:800;font-size:13px;color:var(--mut)}
.cs-seg button.on{background:var(--gold);color:#3A2500}
.cs-set-b{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}

/* ---------- tutoriel ---------- */
.cs-sheet.tuto .cs-sheet-in{width:min(680px,100%);height:min(100%,360px);display:flex;padding:0;overflow:hidden}
.cs-tuto{display:flex;flex-direction:column;width:100%;min-height:0}
.cs-tuto-h{flex:none;display:flex;align-items:center;gap:10px;padding:14px 52px 8px 20px}
.cs-tuto-n{flex:none;font-size:12px;font-weight:800;padding:3px 9px;border-radius:999px;background:var(--gold);color:#3A2500}
.cs-tuto-b{flex:1;min-height:0;overflow-y:auto;padding:0 20px 8px;font-size:14.5px;line-height:1.45;color:#F3E9D2;-webkit-user-select:text;user-select:text}
.cs-tuto-b p{color:inherit;font-size:inherit;margin:0 0 8px}
.cs-tuto-b b{color:var(--gold2)}
.cs-tuto-b .cs-card b{color:inherit}
.cs-tuto-b ul{margin:0 0 8px;padding-left:20px}
.cs-tuto-b li{margin-bottom:3px}
.cs-tuto-b table{border-collapse:collapse;width:100%;font-size:13px;margin-bottom:8px}
.cs-tuto-b th,.cs-tuto-b td{padding:4px 8px;border-bottom:1px solid var(--line);text-align:left}
.cs-tuto-b th{color:var(--gold2);font-weight:800}
.cs-tuto-b .tip{padding:8px 12px;border-radius:12px;background:rgba(127,193,255,.12);box-shadow:inset 0 0 0 1px rgba(127,193,255,.4);color:#DCEEFF;margin-bottom:8px}
.cs-tuto-b .cards{display:flex;gap:6px;margin:4px 0 10px;--u:3.2px}
.cs-tuto-f{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 16px 14px}
.cs-dots{display:flex;gap:5px}
.cs-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.2)}
.cs-dots i.on{background:var(--gold)}

/* ---------- message, pluie de pièces, confettis ---------- */
.cs-toast{position:fixed;left:50%;top:calc(var(--sat) + 54px);transform:translate(-50%,-14px);padding:8px 18px;border-radius:999px;background:rgba(10,8,14,.92);box-shadow:0 0 0 1.5px var(--line),0 8px 20px rgba(0,0,0,.5);font-size:14px;font-weight:700;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:60;white-space:nowrap;max-width:90vw;overflow:hidden;text-overflow:ellipsis}
.cs-toast.on{opacity:1;transform:translate(-50%,0)}

/* ---------- portrait : on demande de tourner le téléphone (les coques natives verrouillent déjà le paysage) ---------- */
.cs-rotate{display:none;position:absolute;inset:0;z-index:90;background:var(--bg);flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:30px}
.cs-rotate i{width:54px;height:90px;border-radius:10px;box-shadow:inset 0 0 0 3px var(--gold);animation:cs-turn 1.8s ease-in-out infinite}
@keyframes cs-turn{50%,100%{transform:rotate(-90deg)}}
@media (orientation:portrait) and (max-width:700px){.cs-rotate{display:flex}}
@media (max-height:340px){:root{--top:40px}.cs-top h1{font-size:16px}.cs-ib{width:32px;height:32px}.cs-bal{height:32px;font-size:14px}}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01s!important;transition-duration:.01s!important}}

/* ---------- récompense à récupérer puis écran de succès (repris de KDO) ---------- */
.cs-sheet.rw{align-items:flex-end;padding-bottom:0}
.cs-sheet.rw .cs-sheet-in{width:min(520px,100%);overflow:visible;padding:0 26px calc(var(--sab) + 14px);border-radius:28px 28px 0 0;transform:translateY(40%);transition:transform .32s cubic-bezier(.2,1.2,.3,1)}
.cs-sheet.rw.on .cs-sheet-in{transform:none}
.cs-rw{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px}
.cs-heap{width:min(240px,60%);margin-top:-12vh;filter:drop-shadow(0 12px 18px rgba(0,0,0,.5));pointer-events:none}
.cs-rw .cs-amount{font-size:clamp(28px,11vh,42px);line-height:1.1}
.cs-rw .cs-btn{width:100%;margin-top:6px}
.cs-later{padding:8px 20px;font-size:14px;font-weight:700;color:rgba(255,255,255,.6)}
.cs-ok{position:absolute;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .25s;
  background:radial-gradient(90% 120% at 50% 40%,#FFD75E 0,#F7B500 45%,#EE8F00 100%)}
.cs-ok.on{opacity:1}
.cs-ok-in{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;padding:0 24px;transform:scale(.85);transition:transform .35s cubic-bezier(.2,1.5,.4,1)}
.cs-ok.on .cs-ok-in{transform:none}
.cs-ok .cs-rays{width:240vh;height:240vh;margin:-120vh 0 0 -120vh;opacity:.55;background:repeating-conic-gradient(rgba(255,255,255,.8) 0 7deg,transparent 7deg 18deg)}
.cs-ok .cs-heap{position:relative;width:auto;height:min(30vh,220px);margin:0;flex:none}
.cs-ok h1{position:relative;line-height:1.05;font-size:clamp(22px,8.5vh,44px);font-weight:900;color:#fff;letter-spacing:-.5px;text-shadow:0 3px 0 rgba(160,90,0,.55)}
.cs-ok-amt{position:relative;display:flex;align-items:center;gap:8px;font-size:clamp(30px,13vh,64px);line-height:1.05;font-weight:900;color:#fff;text-shadow:0 4px 0 rgba(160,90,0,.55)}
.cs-ok p{position:relative;font-weight:700;color:#fff;font-size:14px;line-height:1.2;margin-bottom:1.5vh}
.cs-ok .cs-btn{position:relative;min-width:220px}

/* ---------- missions (inviter 3 amis, revenir chaque jour, compléter son profil) et profil ---------- */
.cs-sheet.ms .cs-sheet-in{width:min(860px,100%);max-width:none;padding:14px 18px 16px}
.cs-ms h2{margin-bottom:10px}
.cs-ms-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cs-ms-card{display:flex;flex-direction:column;gap:7px;padding:12px;border-radius:18px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.cs-ms-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.cs-ms-card h3{font-size:15px;font-weight:800;line-height:1.15;color:#fff}
.cs-ms-amt{flex:none;display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;font-size:13px;background:rgba(247,192,43,.18);color:var(--gold2);white-space:nowrap}
.cs-ms-card p{font-size:12px;line-height:1.3;flex:1}
.cs-ms-dots{display:flex;justify-content:space-around;gap:4px}
.cs-ms-dot{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}
.cs-ms-dot i{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;font-style:normal;font-weight:800;font-size:12px;background:rgba(0,0,0,.35);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.18);color:rgba(255,255,255,.6)}
.cs-ms-dots.five .cs-ms-dot i{width:30px;height:30px}
.cs-ms-dot svg,.cs-ms-ok svg,.cs-ms-card .cs-btn svg,.cs-pf-img svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cs-ms-dot small{font-size:10px;color:var(--mut);white-space:nowrap}
.cs-ms-dot.on i{background:linear-gradient(180deg,#4BE08F,#12A35A);box-shadow:none;color:#fff}
.cs-ms-dot.last i{background:linear-gradient(180deg,#FFE58A,#E09B0C);box-shadow:none;color:#2B1B00;font-size:10px}
.cs-ms-dot.last.on i{background:linear-gradient(180deg,#4BE08F,#12A35A);color:#fff}
.cs-ms-card .cs-btn{width:100%;min-height:36px;font-size:14px}
.cs-ms-card .cs-btn em{font-style:normal;font-size:11px;padding:1px 7px;border-radius:999px;background:rgba(0,0,0,.18)}
.cs-ms-ok{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;font-size:13px;font-weight:700;color:#7DF0AE}
.cs-sheet.pf .cs-sheet-in{width:min(560px,100%)}
.cs-pf{display:flex;flex-direction:column;gap:10px}
.cs-pf-in{display:flex;gap:16px;align-items:center}
.cs-pf-ph{display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;flex:none}
.cs-pf-ph small{font-size:11px;color:var(--mut)}
.cs-pf-img{display:flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:50%;background:rgba(0,0,0,.35) center/cover no-repeat;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.22);color:rgba(255,255,255,.7)}
.cs-pf-img svg{width:28px;height:28px}
.cs-pf-img.has svg{display:none}
.cs-pf-f{flex:1;display:flex;flex-direction:column;gap:7px;min-width:0}
.cs-pf input:not([type=file]){width:100%;height:38px;padding:0 14px;border:0;border-radius:12px;background:rgba(0,0,0,.35);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);color:#fff;font:inherit;font-size:16px;outline:none;-webkit-user-select:text;user-select:text}
.cs-pf input:focus{box-shadow:inset 0 0 0 1.5px var(--gold)}
.cs-pf input::placeholder{color:rgba(255,255,255,.45)}
@media (max-height:360px){.cs-ms-card p{display:none}}

/* ---------- icônes des boutons d'action (owner 30/11 : « no icon ? ») : posées par le socle d'après data-a, pour tous les jeux.
   Un bouton qui a déjà son propre dessin (svg) n'en reçoit pas. Dessin = masque teinté de la couleur du texte. ---------- */
.cs-game .cs-btn:is([data-a=deal],[data-a=go],[data-a=rebet],[data-a=clear],[data-a=undo],[data-a=hit],[data-a=stand],[data-a=double],[data-a=dbl],[data-a=split],[data-a=yes],[data-a=no],[data-a=spin],.cr-rollbtn,[data-a=roll],[data-a=one],[data-a=max],[data-a=call],[data-a=fold]):not(:has(svg))::before{content:"";flex:none;width:1.25em;height:1.25em;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.cs-game .cs-btn:is([data-a=deal],[data-a=go]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223.5%22 y=%226%22 width=%2210%22 height=%2214%22 rx=%222%22 transform=%22rotate%28-10 8.5 13%29%22/%3E%3Crect x=%2210.5%22 y=%224%22 width=%2210%22 height=%2214%22 rx=%222%22 transform=%22rotate%2810 15.5 11%29%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=rebet]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 11a8 8 0 1 0-2.3 5.7%22/%3E%3Cpath d=%22M20 4v7h-7%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=clear]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=undo]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 14 4 9l5-5%22/%3E%3Cpath d=%22M4 9h10.5a5.5 5.5 0 0 1 0 11H11%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=hit]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%223.5%22 width=%2212%22 height=%2217%22 rx=%222.5%22/%3E%3Cpath d=%22M19 8v8M15.5 12h7%22 stroke-width=%222.6%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=stand]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7 11V5.5a1.5 1.5 0 0 1 3 0V10M10 10V4a1.5 1.5 0 0 1 3 0v6M13 10V5a1.5 1.5 0 0 1 3 0v6M16 11V7.5a1.5 1.5 0 0 1 3 0V14c0 4-2.5 7-6.5 7S7 19 5.5 16.5L3.6 13a1.5 1.5 0 0 1 2.6-1.5L7 13%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=double],[data-a=dbl]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 8l6 8M10 8l-6 8%22/%3E%3Cpath d=%22M14 9.5c0-2 5.5-2.2 5.5.6 0 2.200-5.5 3.400-5.500 6.400H20%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=split]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 21v-7%22/%3E%3Cpath d=%22M12 14 5 7M12 14l7-7%22/%3E%3Cpath d=%22M5 12V7h5M19 12V7h-5%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=yes]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12.5l4.5 4.5L19 7.5%22 stroke-width=%222.8%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=no]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 6l12 12M18 6 6 18%22 stroke-width=%222.8%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=spin]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 12a8 8 0 0 1 13.700-5.700L20 8.500%22/%3E%3Cpath d=%22M20 3.500v5h-5%22/%3E%3Cpath d=%22M20 12a8 8 0 0 1-13.700 5.700L4 15.500%22/%3E%3Cpath d=%22M4 20.500v-5h5%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is(.cr-rollbtn,[data-a=roll]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%224%22/%3E%3Ccircle cx=%228.500%22 cy=%228.500%22 r=%221.100%22 fill=%22black%22/%3E%3Ccircle cx=%2215.500%22 cy=%228.500%22 r=%221.100%22 fill=%22black%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%221.100%22 fill=%22black%22/%3E%3Ccircle cx=%228.500%22 cy=%2215.500%22 r=%221.100%22 fill=%22black%22/%3E%3Ccircle cx=%2215.500%22 cy=%2215.500%22 r=%221.100%22 fill=%22black%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=one]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%228.500%22/%3E%3Cpath d=%22M12 7.500v9M9.500 10h3.500a1.800 1.800 0 0 1 0 3.600H10%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=max]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 20V5M5.500 11.500 12 5l6.500 6.500%22/%3E%3Cpath d=%22M5 20h14%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=call]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%228.500%22/%3E%3Cpath d=%22M8 12.500l3 3 5-6%22 stroke-width=%222.600%22/%3E%3C/svg%3E")}
.cs-game .cs-btn:is([data-a=fold]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.3%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%225%22 y=%224%22 width=%2214%22 height=%2216%22 rx=%222.500%22/%3E%3Cpath d=%22M9 9l6 6M15 9l-6 6%22/%3E%3C/svg%3E")}

/* ---------- serveur : liens des réglages, suppression du compte, mise à jour ---------- */
.cs-set-l{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:2px}
.cs-set-l button{padding:6px 0;font-size:13px;font-weight:700;color:var(--mut);text-decoration:underline;text-underline-offset:3px}
.cs-set-l button.del{margin-left:auto;color:#FF8FA0}
.cs-del{max-width:440px;display:flex;flex-direction:column;gap:10px}
.cs-btn:disabled{opacity:.55;pointer-events:none}
/* Plein écran, au-dessus de tout (fenêtres, confettis) : « Mise à jour du casino… » puis rechargement, ou « Mets l'app à jour ». */
.cs-upd{position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:30px;text-align:center;background:radial-gradient(120% 90% at 50% 0%,#4A0F1E 0%,#2A0A12 50%,#12060A 100%);animation:cs-upd-in .25s both}
.cs-upd h1{font-size:clamp(20px,7vh,30px);font-weight:900;color:var(--gold2)}
.cs-upd p{max-width:460px;font-size:15px;line-height:1.4;color:var(--mut)}
.cs-upd i{width:46px;height:46px;border-radius:50%;border:4px solid rgba(245,197,66,.25);border-top-color:var(--gold);animation:cs-upd-spin .9s linear infinite}
@keyframes cs-upd-in{from{opacity:0}}
@keyframes cs-upd-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.cs-upd i{animation-duration:2.4s}}

/* ---------- leçon ludique (grand visuel, une idée par étape, mini-quiz, étoiles) ---------- */
.cs-sheet.ls{padding:calc(var(--sat) + 8px) calc(var(--sar) + 12px) calc(var(--sab) + 8px) calc(var(--sal) + 12px)}
.cs-sheet.ls .cs-sheet-in{width:min(940px,100%);height:min(100%,520px);max-width:none;padding:0;overflow:hidden;display:flex}
.cs-ls{display:flex;flex-direction:column;width:100%;min-height:0}
.cs-ls-bar{flex:none;height:5px;background:rgba(255,255,255,.1)}
.cs-ls-bar i{display:block;height:100%;width:0;border-radius:0 5px 5px 0;background:linear-gradient(90deg,#FBC531,#FF2D7A);transition:width .35s cubic-bezier(.3,.8,.3,1)}
.cs-ls-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;padding:12px 52px 6px 14px}
.cs-ls-vis{position:relative;min-height:0;border-radius:18px;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:10px;--u:4.2px;
  background:radial-gradient(110% 110% at 50% 20%,var(--accent) 0,color-mix(in srgb,var(--accent) 55%,#000) 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),inset 0 0 40px rgba(0,0,0,.35)}
.cs-ls-vis.in>*{animation:cs-ls-in .45s cubic-bezier(.2,1.3,.4,1) both}
.cs-ls-vis.in>*:nth-child(2){animation-delay:.08s}.cs-ls-vis.in>*:nth-child(3){animation-delay:.16s}.cs-ls-vis.in>*:nth-child(4){animation-delay:.24s}.cs-ls-vis.in>*:nth-child(5){animation-delay:.32s}
@keyframes cs-ls-in{from{transform:translateY(18px) scale(.8);opacity:0}}
.cs-ls-side{min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:6px;justify-content:center}
.cs-ls-n{align-self:flex-start;font-size:11px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.12);color:rgba(255,255,255,.8)}
.cs-ls-n.quiz{background:linear-gradient(90deg,#FF2D7A,#B5179E);color:#fff}
.cs-ls h2{font-size:clamp(19px,6.4vh,26px);line-height:1.1}
.cs-ls-t{font-size:clamp(14px,4.4vh,17px)!important;line-height:1.35!important;color:#F3E9D2!important}
.cs-ls-t b,.cs-ls-why b{color:var(--gold2)}
.cs-ls-qq{font-size:14px!important;font-weight:800;color:#fff!important;margin-top:4px}
.cs-ls-opts{display:flex;flex-wrap:wrap;gap:8px}
.cs-ls-opt{flex:1 1 30%;min-height:44px;padding:6px 12px;border-radius:14px;font-weight:800;font-size:15px;color:#fff;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.22),0 3px 0 rgba(0,0,0,.35);transition:transform .1s}
.cs-ls-opt:active{transform:translateY(2px)}
.cs-ls-opt:disabled{opacity:.35}
.cs-ls-opt.ok{background:linear-gradient(180deg,#4BE08F,#12A35A);box-shadow:inset 0 0 0 1.5px #C8FFE1,0 3px 0 #064525}
.cs-ls-opt.no{background:#B3122F;animation:cs-shake .4s}
@keyframes cs-shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.cs-ls-why{min-height:1.3em;font-size:13px!important;line-height:1.3!important}
.cs-ls-why.ok{color:#C8FFE1!important}.cs-ls-why.no{color:#FFD0DA!important}
.cs-ls-f{flex:none;display:flex;justify-content:space-between;gap:10px;padding:8px 14px 12px}
.cs-ls-f .cs-btn.gold{min-width:150px}
.cs-ls-end{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center}
.cs-ls-stars{display:flex;gap:10px;font-size:clamp(44px,18vh,72px);line-height:1}
.cs-ls-stars i{font-style:normal;color:rgba(255,255,255,.16)}
.cs-ls-stars i.on{color:#FFD23F;text-shadow:0 3px 0 #8A5A00,0 0 24px rgba(255,200,60,.7);animation:cs-ls-in .5s cubic-bezier(.2,1.6,.4,1) both}
.cs-learn{display:inline-flex;align-items:center;gap:6px}
.cs-learn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cs-learn em{font-style:normal;color:#FFD23F;text-decoration:none;letter-spacing:1px}
