/* SURPRISE LIVE — autonome. Aucun filtre blur. */
.surprise-shade[hidden],.surprise-staff[hidden],.surprise-actions button[hidden],.surprise-staff button[hidden]{display:none!important}
.surprise-shade{position:fixed;inset:0;z-index:2147482100;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:14px;color:#e9fcff;font-family:Arial,Helvetica,sans-serif}
.surprise-dialog{width:min(985px,98vw);max-height:94vh;overflow:auto;background:linear-gradient(145deg,#0b1726,#090c17 73%);border:2px solid #23d3c5;border-radius:20px;box-shadow:0 0 0 2px #11485a,0 0 38px #16cef456;position:relative}
.surprise-top{padding:17px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #256273;background:linear-gradient(90deg,#11273a,#140e29)}
.surprise-top h2{margin:3px 0;color:#f8fcff;font-size:26px;letter-spacing:.07em;text-shadow:0 0 12px #1cc6e999}.surprise-top h2 em{color:#58ffd2;font-style:normal}.surprise-kicker{color:#70eeea;font-weight:800;font-size:10px;letter-spacing:.15em}
.surprise-x{cursor:pointer;border:1px solid #ff6475;border-radius:50%;background:#340e19;color:#fff;font-size:28px;width:38px;height:38px;line-height:32px}
.surprise-main{display:grid;grid-template-columns:230px minmax(0,1fr);gap:15px;padding:17px}
.surprise-nav{display:flex;flex-direction:column;gap:10px;padding:12px;background:#091523;border:1px solid #254457;border-radius:13px}.surprise-nav>b{font-size:13px;color:#7ee5e9;margin-bottom:8px}.surprise-choice{border:1px solid #315c68;background:#10263b;color:#d8f7ff;border-radius:11px;padding:12px 9px;text-align:left;display:flex;align-items:center;gap:8px;font-size:23px;cursor:pointer}.surprise-choice span{font-size:12px;font-weight:900}.surprise-choice small{display:block;color:#a8bdcc;font-weight:400;margin-top:5px;font-size:11px}.surprise-choice.selected{border-color:#78ffcb;background:#154e4b;box-shadow:0 0 18px #35eac344}.surprise-choice:disabled{opacity:.75;cursor:default}.surprise-opt{margin-top:auto;font-size:12px;padding-top:15px;border-top:1px solid #285060}.surprise-opt label{display:block;margin:9px 0;color:#ceeaf2}.surprise-opt input[type=range]{max-width:100%;accent-color:#70f5d0;vertical-align:middle}
.surprise-body{min-width:0;padding:5px 10px 10px}.surprise-headline h3{font-size:clamp(19px,3vw,29px);color:#ffdd83;text-align:center;margin:3px 0 7px;text-shadow:0 0 15px #f5bf4b88}.surprise-headline>div{font-size:12px;color:#abcbd1;text-align:center;min-height:29px}
.surprise-stage{height:267px;display:grid;place-items:center;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 70%,#16355c 0,#0b132a 52%,#070d1d 95%);border:1px solid #31536b;border-radius:15px;margin:6px 0 14px}.surprise-stage:before{content:'';width:500px;height:500px;position:absolute;border-radius:50%;border:1px dashed #43e6fc3c;box-shadow:0 0 0 52px #43e6fc09,0 0 0 102px #43e6fc05;animation:surp-spin 40s linear infinite}
.surprise-meter{height:13px;border:1px solid #3a6172;background:#06111b;overflow:hidden;border-radius:20px}.surprise-meter>div{height:100%;background:linear-gradient(90deg,#13b6e1,#83f4b1,#ffe185);box-shadow:0 0 16px #85ffee;transition:width .5s ease;width:0}
.surprise-stats{display:flex;justify-content:space-between;font-size:13px;padding:11px 1px;color:#bcf6ed}.surprise-stats strong{color:#e9ffb1}
.surprise-actions{display:flex;gap:9px;flex-wrap:wrap}.surprise-actions button,.surprise-staff button{flex:1 1 auto;cursor:pointer;border-radius:10px;border:1px solid #2583a3;background:#102b48;color:#dffcff;padding:11px 12px;font-weight:800;font-size:13px}.surprise-actions .surprise-primary{background:linear-gradient(125deg,#137d82,#2856a3);border-color:#5af3dc}.surprise-actions .surprise-stop{border-color:#ba5361;color:#ffd7df;background:#351826}.surprise-actions button:hover,.surprise-staff button:hover{filter:brightness(1.3)}
.surprise-staff{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}.surprise-staff button{font-size:12px;border-color:#8c67ff;background:#211d40}.surprise-note{font-size:12px;color:#ffe9a7;min-height:19px;text-align:center;margin-top:10px}
.surprise-chest-wrap{position:relative;width:260px;height:195px;transform:translateY(22px)}.surprise-chest-glow{position:absolute;inset:28px 30px 5px;border-radius:50%;background:#e4af2645;filter:drop-shadow(0 0 20px #fae65b);animation:surp-pulse 2.3s infinite}
.surprise-chest-lid{position:absolute;z-index:3;left:24px;top:39px;width:214px;height:77px;border-radius:85px 85px 12px 12px;border:9px solid #eab656;background:linear-gradient(135deg,#6d2d24,#af5a26 45%,#4c2719);box-shadow:0 -7px 14px #ffd28a70,inset 0 10px 0 #f3c884;transform-origin:45% 95%;transition:transform 1.3s ease}
.surprise-chest-base{position:absolute;z-index:2;top:103px;left:20px;width:221px;height:107px;border:9px solid #e1a43a;background:linear-gradient(#c77e2b,#652d25);border-radius:10px 10px 30px 30px;display:grid;place-items:center;color:#fff0a2;font-size:37px;text-shadow:0 0 12px #fff4bb;box-shadow:0 12px 28px #0009,inset 0 7px #f7d480}
.surprise-chest-treasure{position:absolute;left:8px;right:0;bottom:92px;text-align:center;z-index:1;font-size:34px;opacity:0;transform:translateY(40px) scale(.5);transition:opacity .7s,transform 1.1s;filter:drop-shadow(0 0 8px #fff7b3)}
.surprise-stage.won .surprise-chest-lid{transform:rotate(-28deg) translate(-9px,-45px)}.surprise-stage.won .surprise-chest-treasure{opacity:1;transform:translateY(-35px) scale(1.25)}
.surprise-wheel-wrap{position:relative;width:237px;height:238px;display:grid;place-items:center}.surprise-pointer{position:absolute;z-index:3;top:0;left:calc(50% - 14px);width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;border-top:31px solid #fff0af;filter:drop-shadow(0 0 9px #f9d277)}
.surprise-wheel{position:relative;border-radius:50%;width:210px;height:210px;border:9px solid #f6d48a;background:conic-gradient(#ff9099 0 60deg,#f6cc79 60deg 120deg,#7cdeca 120deg 180deg,#c9a1fc 180deg 240deg,#81aff8 240deg 300deg,#ffb9d8 300deg);box-shadow:0 0 27px #d4c9856b,inset 0 0 0 5px #14283c;display:grid;place-items:center}.surprise-wheel span{position:absolute;font-size:24px}.surprise-wheel span:nth-child(1){top:22px;left:85px}.surprise-wheel span:nth-child(2){top:61px;right:18px}.surprise-wheel span:nth-child(3){bottom:38px;right:27px}.surprise-wheel span:nth-child(4){bottom:17px;left:83px}.surprise-wheel span:nth-child(5){bottom:65px;left:18px}.surprise-wheel span:nth-child(6){top:56px;left:22px}.surprise-wheel b{border:4px solid #fce3ac;background:#232344;padding:8px;border-radius:50%;z-index:1}.surprise-stage.won .surprise-wheel{animation:surp-wheel 5s cubic-bezier(.09,.74,.14,1) both}
.surprise-challenge{width:225px;height:225px;display:grid;place-items:center;position:relative}.surprise-ring{position:absolute;inset:9px;border:3px dashed #79eeff;border-radius:50%;animation:surp-spin 18s linear infinite;box-shadow:0 0 22px #7cdeff40}.surprise-bolt{font-size:105px;filter:drop-shadow(0 0 28px #f7e373);animation:surp-pulse 1.3s ease-in-out infinite}.surprise-trophy{font-size:100px;position:absolute;opacity:0;transform:scale(.25)}.surprise-stage.won .surprise-bolt{opacity:0}.surprise-stage.won .surprise-trophy{opacity:1;transform:scale(1);transition:opacity 1s,transform 1s}
.surprise-celebration{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:2147482500;background:radial-gradient(ellipse at center,#eccd4b2b,transparent 70%);animation:surp-vanish 8.5s both}.surprise-victory{position:absolute;top:17%;left:50%;transform:translateX(-50%);text-align:center;color:#fff2a7;font-size:clamp(26px,5.7vw,70px);font-weight:1000;white-space:nowrap;text-shadow:0 0 12px #facd40,0 0 32px #ed429c;animation:surp-victory 6s both}.surprise-victory small{display:block;color:#fff;font-size:clamp(13px,2vw,24px);margin-top:18px;white-space:normal}
.surprise-particle{position:absolute;top:-20px;left:var(--sx);width:8px;height:16px;background:var(--color);box-shadow:0 0 12px var(--color);animation:surp-rain var(--duration) linear var(--delay) both;transform:rotate(var(--rotate))}
@keyframes surp-spin{to{transform:rotate(360deg)}}@keyframes surp-pulse{50%{opacity:.6;transform:scale(1.07)}}@keyframes surp-wheel{to{transform:rotate(1880deg)}}@keyframes surp-rain{to{top:120vh;transform:rotate(840deg)}}@keyframes surp-victory{0%{opacity:0;transform:translateX(-50%) scale(.4)}15%,80%{opacity:1;transform:translateX(-50%) scale(1)}100%{opacity:0;transform:translateX(-50%) scale(1.1)}}@keyframes surp-vanish{90%{opacity:1}100%{opacity:0}}
@media(max-width:680px){.surprise-main{grid-template-columns:1fr;padding:9px}.surprise-nav{flex-direction:row;flex-wrap:wrap;padding:9px}.surprise-nav>b{width:100%}.surprise-choice{flex:1 1 28%;min-width:85px;padding:7px;font-size:19px}.surprise-choice span{font-size:10px}.surprise-choice small{font-size:9px}.surprise-opt{display:flex;width:100%;gap:12px;padding-top:2px;margin:0}.surprise-top{padding:11px}.surprise-top h2{font-size:20px}.surprise-stage{height:235px}.surprise-body{padding:2px}.surprise-dialog{max-height:97dvh}.surprise-actions button{font-size:12px}}
@media(prefers-reduced-motion:reduce){.surprise-dialog *,.surprise-celebration *{animation:none!important;transition:none!important}}

@media(max-width:680px){.surprise-victory{top:4%;font-size:clamp(22px,6vw,35px)}.surprise-victory small{font-size:12px;margin-top:7px}}

/* V2 : bouton JEUX suffisamment large, même dans la barre des options compacte. */
.options-panel .toolbar .group-b #surpriseLiveButton{
  width:74px!important;min-width:74px!important;flex:0 0 74px!important;
  box-sizing:border-box;padding:0 6px;white-space:nowrap;overflow:visible;
  font-size:13px;font-weight:900;letter-spacing:.2px;cursor:pointer;pointer-events:auto;
}
.options-panel .toolbar .group-b #surpriseLiveButton[hidden]{display:none!important}


/* SURPRISE LIVE V6 visuel : coffre réaliste, roue enrichie, victoire plus spectaculaire. */
.surprise-chest-rich{transform:translateY(-12px)}
.surprise-chest-key{position:absolute;right:-6px;top:12px;z-index:5;font-size:46px;filter:drop-shadow(0 0 10px #ffe07e);animation:surp-keybob 2.4s ease-in-out infinite}
.surprise-chest-spark{position:absolute;z-index:4;color:#fff4b4;text-shadow:0 0 12px #ffd45d,0 0 22px #fff;font-size:28px;animation:surp-sparkle 2.2s ease-in-out infinite}
.surprise-chest-spark-a{left:18px;top:26px}.surprise-chest-spark-b{right:36px;top:70px;animation-delay:.6s}
.surprise-chest-lid{overflow:visible}
.surprise-chest-rim{position:absolute;inset:10px 16px auto 16px;height:10px;border-radius:20px;background:linear-gradient(90deg,#ffefab,#e7b94b,#fff0b3);box-shadow:0 0 10px rgba(255,230,123,.6)}
.surprise-chest-lock{position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);font-size:28px;color:#fff0ad;text-shadow:0 0 10px rgba(255,232,149,.75)}
.surprise-chest-base{overflow:visible}
.surprise-chest-goldbar{position:absolute;left:24px;top:-12px;width:56px;height:22px;border-radius:7px;background:linear-gradient(180deg,#fff4a7,#d89b25 58%,#9a5b15);box-shadow:0 2px 6px rgba(0,0,0,.28),0 0 10px rgba(255,226,132,.45);transform:skewX(-16deg)}
.surprise-chest-goldbar-2{left:78px;top:-18px;transform:skewX(-14deg) rotate(6deg)}
.surprise-chest-goldbar-3{left:136px;top:-12px;transform:skewX(-12deg) rotate(-5deg)}
.surprise-chest-lockplate{position:absolute;left:50%;top:18px;transform:translateX(-50%);width:38px;height:48px;border-radius:10px 10px 16px 16px;border:4px solid #ffdd79;background:linear-gradient(180deg,#8c3d22,#5f2317);box-shadow:inset 0 5px 0 rgba(255,223,116,.48),0 0 12px rgba(255,211,90,.25)}
.surprise-chest-lockplate:after{content:'';position:absolute;left:50%;top:14px;transform:translateX(-50%);width:11px;height:19px;border-radius:20px 20px 40% 40%;background:#ffefbb;box-shadow:0 0 10px rgba(255,239,187,.5)}
.surprise-chest-treasure{left:-4px;right:-4px;display:flex;justify-content:center;gap:10px;bottom:94px;font-size:32px}
.surprise-stage.won .surprise-chest-treasure{transform:translateY(-42px) scale(1.18)}
.surprise-chest-coins{position:absolute;left:20px;right:20px;bottom:86px;display:flex;justify-content:center;gap:8px;z-index:1;opacity:0;transform:translateY(24px);transition:opacity .75s,transform 1s}
.surprise-chest-coins i{display:block;width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#fff8bc,#ffca45 50%,#b66b13 88%);box-shadow:0 0 10px rgba(255,221,97,.55)}
.surprise-stage.won .surprise-chest-coins{opacity:1;transform:translateY(-18px)}
.surprise-wheel-rich{width:252px;height:252px}
.surprise-wheel-glow{position:absolute;inset:20px;border-radius:50%;background:radial-gradient(circle,rgba(255,227,123,.28),rgba(109,239,255,.10) 45%,transparent 72%);filter:blur(2px);animation:surp-pulse 2.6s ease-in-out infinite}
.surprise-wheel-rich .surprise-wheel{width:224px;height:224px;border-width:10px;box-shadow:0 0 30px rgba(255,222,115,.45), inset 0 0 0 5px #14283c, inset 0 0 24px rgba(255,255,255,.08)}
.surprise-wheel-rich .surprise-wheel b{font-size:18px;padding:10px 11px;background:linear-gradient(180deg,#2d2f55,#18192d)}
.surprise-wheel-hub{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;padding:7px 12px;border-radius:999px;border:2px solid #ffe28e;background:linear-gradient(180deg,#19324a,#111826);color:#fff3bf;font-size:11px;font-weight:900;letter-spacing:.15em;box-shadow:0 0 15px rgba(255,228,140,.3)}
.surprise-wheel-badges{position:absolute;left:50%;bottom:-18px;transform:translateX(-50%);display:flex;gap:6px;flex-wrap:wrap;justify-content:center;width:280px}
.surprise-wheel-badges i{font-style:normal;font-size:10px;font-weight:900;color:#eafaff;background:#10263b;border:1px solid #426d88;border-radius:999px;padding:5px 8px;box-shadow:0 0 10px rgba(75,218,255,.12)}
.surprise-challenge-rich .surprise-ring-2{inset:25px;border-style:solid;border-color:#ffe47f66;animation-duration:24s;animation-direction:reverse}
.surprise-challenge-stars{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:space-between;padding:30px 36px;color:#fff2b3;text-shadow:0 0 12px #ffd253;font-size:24px}
.surprise-challenge-stars i:nth-child(2){margin-top:10px}.surprise-challenge-stars i:nth-child(3){margin-top:28px}
.surprise-burst-icons{position:absolute;inset:0;pointer-events:none;z-index:2147482501}
.surprise-burst-icons span{position:absolute;left:50%;top:48%;font-size:clamp(26px,5vw,60px);line-height:1;opacity:0;transform:translate(-50%,-50%) scale(.2);text-shadow:0 0 18px rgba(255,255,255,.45);animation:surp-burst 4.6s ease-out var(--burst-delay) both}
.surprise-burst-icons span:nth-child(1){transform-origin:-140px 50px}.surprise-burst-icons span:nth-child(2){transform-origin:140px -20px}.surprise-burst-icons span:nth-child(3){transform-origin:-60px -120px}.surprise-burst-icons span:nth-child(4){transform-origin:90px 110px}.surprise-burst-icons span:nth-child(5){transform-origin:-170px -80px}.surprise-burst-icons span:nth-child(6){transform-origin:160px 70px}
@keyframes surp-keybob{0%,100%{transform:rotate(18deg) translateY(0)}50%{transform:rotate(6deg) translateY(-9px)}}
@keyframes surp-sparkle{0%,100%{opacity:.35;transform:scale(.7)}45%{opacity:1;transform:scale(1.15)}}
@keyframes surp-burst{0%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(0)}18%{opacity:1}72%{opacity:1;transform:translate(calc(-50% + 140px),calc(-50% - 110px)) scale(1.08) rotate(22deg)}100%{opacity:0;transform:translate(calc(-50% + 210px),calc(-50% - 160px)) scale(.75) rotate(40deg)}}
@media(max-width:680px){.surprise-chest-key{font-size:34px;right:6px;top:18px}.surprise-wheel-badges{width:230px;bottom:-8px}.surprise-wheel-badges i{font-size:9px;padding:4px 6px}.surprise-burst-icons span{font-size:30px}}


/* V7 : clés déposées visibles + roue lisible + vrais contenus de récompense. */
.surprise-entries{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:10px auto 8px;min-height:44px;max-width:100%}
.surprise-entry{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:54px;padding:13px 8px 6px;border-radius:16px;background:linear-gradient(180deg,rgba(24,42,60,.95),rgba(11,18,28,.98));border:1px solid rgba(255,230,135,.26);box-shadow:0 8px 22px rgba(0,0,0,.34), inset 0 0 16px rgba(255,255,255,.03)}
.surprise-entry-name{display:block;max-width:76px;margin-bottom:3px;font-size:10px;line-height:1.15;font-weight:900;text-align:center;color:#fff5c7;text-shadow:0 0 8px rgba(255,220,120,.25);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.surprise-entry-icon{display:block;font-size:26px;line-height:1;filter:drop-shadow(0 0 10px rgba(255,223,129,.5))}
.surprise-entry--coffre .surprise-entry-icon{transform:rotate(-12deg)}
.surprise-wheel-result{margin:6px auto 8px;max-width:min(360px,100%)}
.surprise-wheel-card{border-radius:18px;padding:12px 14px;background:linear-gradient(180deg,rgba(12,24,38,.98),rgba(7,13,21,.98));border:1px solid color-mix(in srgb,var(--wheel-color) 45%, rgba(255,255,255,.15));box-shadow:0 10px 28px rgba(0,0,0,.32), inset 0 0 22px rgba(255,255,255,.02);text-align:left}
.surprise-wheel-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.surprise-wheel-card-top b{color:#f5fbff;font-size:13px;letter-spacing:.04em}
.surprise-wheel-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:color-mix(in srgb,var(--wheel-color) 18%, rgba(10,18,28,.85));border:1px solid color-mix(in srgb,var(--wheel-color) 48%, rgba(255,255,255,.12));color:#fff;font-size:11px;font-weight:900;letter-spacing:.08em;box-shadow:0 0 14px color-mix(in srgb,var(--wheel-color) 25%, transparent)}
.surprise-wheel-card-text{color:#fff7df;font-size:13px;line-height:1.45;text-shadow:0 0 8px rgba(0,0,0,.2)}
.surprise-victory-badge{display:inline-flex;align-items:center;gap:6px;margin-top:14px;padding:6px 12px;border-radius:999px;background:color-mix(in srgb,var(--badge-color) 22%, rgba(12,24,38,.88));border:1px solid color-mix(in srgb,var(--badge-color) 56%, rgba(255,255,255,.12));color:#fff;font-size:clamp(11px,1.8vw,15px);font-weight:1000;letter-spacing:.08em;box-shadow:0 0 18px color-mix(in srgb,var(--badge-color) 28%, transparent)}
.surprise-wheel-badges{position:absolute;left:50%;bottom:-26px;transform:translateX(-50%);display:flex;gap:6px;flex-wrap:nowrap;justify-content:center;width:min(340px,calc(100vw - 48px))}
.surprise-wheel-badges i{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;text-align:center;font-style:normal;font-size:10px;font-weight:900;border-radius:999px;padding:5px 6px;white-space:nowrap;box-shadow:0 0 12px rgba(75,218,255,.12)}
.surprise-wheel-badges .badge-blague{color:#fff6d5;background:linear-gradient(180deg,rgba(84,60,12,.96),rgba(49,35,8,.98));border:1px solid rgba(255,216,95,.52)}
.surprise-wheel-badges .badge-defi{color:#e8fbff;background:linear-gradient(180deg,rgba(10,62,78,.95),rgba(7,33,45,.98));border:1px solid rgba(104,225,255,.55)}
.surprise-wheel-badges .badge-horoscope{color:#faf0ff;background:linear-gradient(180deg,rgba(69,39,96,.95),rgba(35,21,56,.98));border:1px solid rgba(214,168,255,.55)}
.surprise-wheel-badges .badge-cadeau{color:#f2fff3;background:linear-gradient(180deg,rgba(21,80,37,.95),rgba(13,43,22,.98));border:1px solid rgba(141,242,154,.55)}
@media(max-width:680px){
  .surprise-entries{gap:8px;margin-top:8px}
  .surprise-entry{min-width:48px;padding:11px 6px 6px}
  .surprise-entry-name{max-width:58px;font-size:9px}
  .surprise-entry-icon{font-size:23px}
  .surprise-wheel-result{max-width:100%}
  .surprise-wheel-card{padding:10px 11px;border-radius:16px}
  .surprise-wheel-card-text{font-size:12px;line-height:1.35}
  .surprise-wheel-badges{bottom:-18px;width:min(310px,calc(100vw - 36px));gap:4px}
  .surprise-wheel-badges i{font-size:8px;padding:4px 3px;letter-spacing:0}
}


/* V8 : roue recadrée + participations visibles pour roue et défi. */
.surprise-stage[data-game="roue"]{height:250px}
.surprise-stage[data-game="roue"] .surprise-wheel-rich{width:228px;height:226px;transform:translateY(-14px)}
.surprise-stage[data-game="roue"] .surprise-wheel-glow{inset:24px}
.surprise-stage[data-game="roue"] .surprise-wheel-rich .surprise-wheel{width:196px;height:196px;border-width:9px}
.surprise-stage[data-game="roue"] .surprise-wheel-rich .surprise-wheel span{font-size:21px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(1){top:18px;left:79px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(2){top:54px;right:18px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(3){bottom:31px;right:24px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(4){bottom:13px;left:78px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(5){bottom:58px;left:16px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(6){top:50px;left:19px}
.surprise-stage[data-game="roue"] .surprise-wheel-hub{font-size:10px;padding:6px 10px}
.surprise-stage[data-game="roue"] .surprise-wheel-badges{bottom:-2px;width:min(296px,calc(100% - 18px));gap:4px}
.surprise-stage[data-game="roue"] .surprise-wheel-badges i{font-size:9px;padding:4px 3px;letter-spacing:0}
.surprise-entry--roue{border-color:rgba(109,239,255,.34);box-shadow:0 8px 22px rgba(0,0,0,.34),0 0 14px rgba(86,224,255,.08), inset 0 0 16px rgba(255,255,255,.03)}
.surprise-entry--roue .surprise-entry-name{color:#dffcff}
.surprise-entry--roue .surprise-entry-icon{color:#9ff6ff;filter:drop-shadow(0 0 10px rgba(109,239,255,.45))}
.surprise-entry--defi{border-color:rgba(255,225,111,.34);box-shadow:0 8px 22px rgba(0,0,0,.34),0 0 14px rgba(255,215,94,.08), inset 0 0 16px rgba(255,255,255,.03)}
.surprise-entry--defi .surprise-entry-name{color:#fff0b9}
.surprise-entry--defi .surprise-entry-icon{color:#ffe66a;filter:drop-shadow(0 0 10px rgba(255,225,111,.45))}
@media(max-width:680px){
  .surprise-stage[data-game="roue"]{height:236px}
  .surprise-stage[data-game="roue"] .surprise-wheel-rich{width:206px;height:206px;transform:translateY(-14px)}
  .surprise-stage[data-game="roue"] .surprise-wheel-rich .surprise-wheel{width:178px;height:178px;border-width:8px}
  .surprise-stage[data-game="roue"] .surprise-wheel-rich .surprise-wheel span{font-size:18px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(1){top:16px;left:72px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(2){top:48px;right:15px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(3){bottom:28px;right:21px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(4){bottom:11px;left:70px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(5){bottom:52px;left:14px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(6){top:44px;left:16px}
  .surprise-stage[data-game="roue"] .surprise-wheel-badges{bottom:1px;width:min(264px,calc(100% - 12px));gap:3px}
  .surprise-stage[data-game="roue"] .surprise-wheel-badges i{font-size:7px;padding:4px 2px}
}


/* V9 : badges roue descendus/agrandis + participants roue/défi mieux visibles. */
.surprise-entries{margin:6px auto 8px;min-height:54px}
.surprise-entry{min-width:58px;padding:14px 9px 7px}
.surprise-entry-name{max-width:84px;font-size:10px;margin-bottom:4px}
.surprise-entry-icon{font-size:28px}
.surprise-stage[data-game="roue"]{height:258px}
.surprise-stage[data-game="roue"] .surprise-wheel-rich{width:214px;height:212px;transform:translateY(-26px)}
.surprise-stage[data-game="roue"] .surprise-wheel-rich .surprise-wheel{width:184px;height:184px;border-width:8px}
.surprise-stage[data-game="roue"] .surprise-wheel-rich .surprise-wheel span{font-size:19px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(1){top:16px;left:73px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(2){top:48px;right:15px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(3){bottom:27px;right:20px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(4){bottom:10px;left:72px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(5){bottom:51px;left:14px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(6){top:45px;left:16px}
.surprise-stage[data-game="roue"] .surprise-wheel-hub{font-size:10px;padding:6px 10px}
.surprise-stage[data-game="roue"] .surprise-wheel-badges{bottom:-21px;width:min(420px,calc(100% - 8px));gap:7px}
.surprise-stage[data-game="roue"] .surprise-wheel-badges i{font-size:13px;padding:7px 8px;line-height:1.12;min-height:32px;box-sizing:border-box}
.surprise-entry--roue .surprise-entry-icon{font-size:27px}
.surprise-entry--defi .surprise-entry-icon{font-size:27px}
@media(max-width:680px){
  .surprise-entries{min-height:48px}
  .surprise-entry{min-width:50px;padding:12px 7px 6px}
  .surprise-entry-name{max-width:62px;font-size:9px}
  .surprise-entry-icon{font-size:24px}
  .surprise-stage[data-game="roue"]{height:242px}
  .surprise-stage[data-game="roue"] .surprise-wheel-rich{width:196px;height:196px;transform:translateY(-20px)}
  .surprise-stage[data-game="roue"] .surprise-wheel-rich .surprise-wheel{width:170px;height:170px}
  .surprise-stage[data-game="roue"] .surprise-wheel-rich .surprise-wheel span{font-size:17px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(1){top:14px;left:67px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(2){top:43px;right:14px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(3){bottom:25px;right:19px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(4){bottom:10px;left:66px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(5){bottom:47px;left:13px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(6){top:40px;left:15px}
  .surprise-stage[data-game="roue"] .surprise-wheel-badges{bottom:-17px;width:min(320px,calc(100% - 8px));gap:4px}
  .surprise-stage[data-game="roue"] .surprise-wheel-badges i{font-size:9px;padding:5px 3px;min-height:24px}
}


/* V10 : agrandissement des encadrements des 4 badges de la roue. */
.surprise-stage[data-game="roue"] .surprise-wheel-badges{bottom:-21px;width:min(560px,calc(100% - 4px));gap:8px}
.surprise-stage[data-game="roue"] .surprise-wheel-badges i{flex:1 1 0;font-size:15px;padding:9px 12px;line-height:1.12;min-height:42px;border-radius:999px;box-sizing:border-box}
@media(max-width:680px){
  .surprise-stage[data-game="roue"] .surprise-wheel-badges{bottom:-17px;width:min(340px,calc(100% - 4px));gap:5px}
  .surprise-stage[data-game="roue"] .surprise-wheel-badges i{font-size:10px;padding:6px 6px;min-height:30px}
}


/* V11 : correction structurelle — les 4 badges appartiennent à la scène entière,
   non au conteneur étroit de la roue (214 px), qui provoquait le chevauchement. */
.surprise-stage[data-game="roue"] .surprise-wheel-badges {
  position:absolute;
  left:10px;
  right:10px;
  top:auto;
  bottom:7px;
  width:auto;
  max-width:none;
  min-width:0;
  transform:none;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.83fr) minmax(0,1.45fr) minmax(0,1.12fr);
  align-items:stretch;
  gap:8px;
  z-index:6;
  margin:0;
}
.surprise-stage[data-game="roue"] .surprise-wheel-badges i {
  display:flex;
  box-sizing:border-box;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:40px;
  border-radius:999px;
  font-size:clamp(10px,1.1vw,13px);
  line-height:1.1;
  font-weight:900;
  letter-spacing:0;
  white-space:nowrap;
  padding:7px 7px;
  overflow:visible;
}
@media (max-width:680px) {
  .surprise-stage[data-game="roue"] .surprise-wheel-badges {
    left:6px;
    right:6px;
    bottom:6px;
    gap:4px;
  }
  .surprise-stage[data-game="roue"] .surprise-wheel-badges i {
    font-size:clamp(8px,2.15vw,10px);
    min-height:29px;
    padding:5px 2px;
  }
}

/* Les réserves invisibles ne doivent pas créer de vide ni de défilement. */
.surprise-entries[hidden],.surprise-wheel-result[hidden]{display:none!important}


/* V12 : grandes cartes de récompense colorées pour blague / horoscope / défi / surprise. */
.surprise-visuals{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
.surprise-wheel-result{margin:0;max-width:none}
.surprise-reward-card{position:relative;overflow:hidden;border-radius:24px;padding:16px 16px 18px;min-height:340px;background:linear-gradient(180deg,rgba(16,22,35,.98),rgba(7,12,20,.99));border:1px solid color-mix(in srgb,var(--wheel-color) 52%, rgba(255,255,255,.12));box-shadow:0 16px 44px rgba(0,0,0,.36), inset 0 0 28px rgba(255,255,255,.03);color:#fff}
.surprise-reward-glow{position:absolute;inset:-30% -20% auto auto;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--wheel-color) 58%, transparent),transparent 68%);filter:blur(10px);opacity:.55;pointer-events:none}
.surprise-reward-header{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.surprise-reward-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;background:color-mix(in srgb,var(--wheel-color) 18%, rgba(10,18,28,.88));border:1px solid color-mix(in srgb,var(--wheel-color) 56%, rgba(255,255,255,.12));font-size:12px;font-weight:1000;letter-spacing:.08em;box-shadow:0 0 16px color-mix(in srgb,var(--wheel-color) 26%, transparent)}
.surprise-reward-header b{font-size:12px;font-weight:900;letter-spacing:.08em;color:#eef7ff;opacity:.9}
.surprise-reward-art{position:relative;z-index:1;height:146px;border-radius:20px;display:flex;align-items:center;justify-content:center;margin-bottom:14px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.015));border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 0 22px rgba(255,255,255,.03)}
.reward-main-icon{font-size:74px;line-height:1;filter:drop-shadow(0 0 18px color-mix(in srgb,var(--wheel-color) 45%, transparent))}
.reward-accent{position:absolute;font-size:28px;line-height:1;filter:drop-shadow(0 0 12px rgba(255,255,255,.22))}
.reward-accent-a{top:16px;left:18px}.reward-accent-b{top:20px;right:22px}.reward-accent-c{bottom:18px;left:24px}.reward-accent-d{bottom:16px;right:18px}
.surprise-reward-body{position:relative;z-index:1}
.surprise-reward-body h4{margin:0 0 10px;font-size:24px;line-height:1.1;color:#fffdf1;text-shadow:0 0 16px rgba(0,0,0,.18)}
.surprise-reward-body p{margin:0;padding:14px 14px 15px;border-radius:18px;background:rgba(7,13,21,.42);border:1px solid rgba(255,255,255,.08);font-size:15px;line-height:1.5;color:#fff8e7;box-shadow:inset 0 0 20px rgba(255,255,255,.02)}
.surprise-reward-card--blague{background:linear-gradient(180deg,#4d3308,#22150a 56%,#120c08)}
.surprise-reward-card--blague .surprise-reward-art{background:linear-gradient(180deg,rgba(255,216,95,.20),rgba(255,255,255,.05))}
.surprise-reward-card--horoscope{background:linear-gradient(180deg,#3b1f55,#1f1333 58%,#100b1a)}
.surprise-reward-card--horoscope .surprise-reward-art{background:linear-gradient(180deg,rgba(214,168,255,.18),rgba(255,255,255,.04))}
.surprise-reward-card--defi{background:linear-gradient(180deg,#103f4f,#0a2230 58%,#09131e)}
.surprise-reward-card--defi .surprise-reward-art{background:linear-gradient(180deg,rgba(104,225,255,.18),rgba(255,255,255,.04))}
.surprise-reward-card--cadeau{background:linear-gradient(180deg,#204d2c,#102418 58%,#09110b)}
.surprise-reward-card--cadeau .surprise-reward-art{background:linear-gradient(180deg,rgba(141,242,154,.18),rgba(255,255,255,.04))}
@media(min-width:980px){
  .surprise-visuals{grid-template-columns:minmax(0,1fr) 340px;gap:16px}
  .surprise-wheel-result{align-self:stretch}
}
@media(max-width:979px){
  .surprise-reward-card{min-height:300px}
}
@media(max-width:680px){
  .surprise-visuals{gap:10px}
  .surprise-reward-card{min-height:268px;padding:13px 13px 15px;border-radius:20px}
  .surprise-reward-art{height:118px;margin-bottom:11px}
  .reward-main-icon{font-size:58px}
  .reward-accent{font-size:22px}
  .surprise-reward-body h4{font-size:20px}
  .surprise-reward-body p{font-size:13px;padding:11px 11px 12px}
  .surprise-reward-pill{font-size:10px;padding:6px 9px}
  .surprise-reward-header b{font-size:10px}
}


/* V13 : retour à la disposition V11 validée. Carte de résultat DÉTACHÉE du panneau.
   Aucun changement aux 4 badges V11 : grille, hauteur, espacements, positions. */
.surprise-dialog{width:min(1140px,calc(100vw - 24px));max-width:none;box-sizing:border-box}
.surprise-visuals{display:block!important}
/* La scène occupe à nouveau toute la colonne de droite, jamais deux colonnes. */
.surprise-stage[data-game="roue"]{width:100%;box-sizing:border-box;height:338px}
.surprise-stage[data-game="roue"] .surprise-wheel-rich{width:270px;height:266px;transform:translateY(-29px)}
.surprise-stage[data-game="roue"] .surprise-wheel-rich .surprise-wheel{width:240px;height:240px;border-width:9px}
.surprise-stage[data-game="roue"] .surprise-wheel-rich .surprise-wheel span{font-size:24px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(1){top:21px;left:96px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(2){top:62px;right:20px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(3){bottom:35px;right:26px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(4){bottom:14px;left:96px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(5){bottom:66px;left:19px}
.surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(6){top:59px;left:21px}
/* La récompense est un pop-up séparé, positionné par JS, sans modifier le layout. */
.surprise-wheel-result{
  position:fixed;top:50%;z-index:2147482700;
  width:min(360px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);
  margin:0;padding:0;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;
  transform:translateY(-50%);pointer-events:auto;
  border-radius:24px;box-shadow:0 20px 65px #000b,0 0 30px #61e8ee36;
}
.surprise-wheel-result[hidden]{display:none!important}
.surprise-reward-close{
  position:absolute;top:10px;right:11px;z-index:10;width:35px;height:35px;
  display:grid;place-items:center;cursor:pointer;border-radius:50%;
  color:#fff;background:#471726;border:1px solid #ff7d99;
  font-size:26px;line-height:1;box-shadow:0 2px 8px #0008;
}
.surprise-wheel-result .surprise-reward-header{padding-right:33px}
@media(max-width:750px){
  .surprise-wheel-result{left:50%!important;right:auto!important;transform:translate(-50%,-50%)}
  .surprise-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px)}
  .surprise-stage[data-game="roue"]{height:278px}
  .surprise-stage[data-game="roue"] .surprise-wheel-rich{width:220px;height:220px;transform:translateY(-25px)}
  .surprise-stage[data-game="roue"] .surprise-wheel-rich .surprise-wheel{width:192px;height:192px;border-width:8px}
  .surprise-stage[data-game="roue"] .surprise-wheel-rich .surprise-wheel span{font-size:20px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(1){top:17px;left:76px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(2){top:49px;right:16px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(3){bottom:28px;right:21px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(4){bottom:11px;left:76px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(5){bottom:53px;left:15px}
  .surprise-stage[data-game="roue"] .surprise-wheel span:nth-child(6){top:47px;left:17px}
}


/* V14 : défi éclair spectaculaire, avec gros éclairs du ciel vers le sol. */
.surprise-challenge-electric{overflow:hidden;background:radial-gradient(circle at 50% 24%,rgba(121,227,255,.16),transparent 42%),radial-gradient(circle at 50% 72%,rgba(255,240,140,.10),transparent 44%)}
.surprise-challenge-flash{position:absolute;inset:14% 16% 18%;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.26),rgba(147,235,255,.15) 35%,transparent 70%);filter:blur(4px);animation:surp-electric-pulse 2.2s ease-in-out infinite;pointer-events:none}
.surprise-lightning-storm{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden}
.surprise-lightning-storm--scene{opacity:.94}
.surprise-lightning-storm--celebration{position:fixed;inset:0;z-index:2147482500;opacity:1}
.surprise-lightning-bolt{position:absolute;top:-12%;left:var(--bolt-left);width:clamp(18px,2.4vw,34px);height:128%;opacity:0;transform:translateX(-50%) scaleY(0.2) scaleX(var(--bolt-scale)) rotate(var(--bolt-rotate));transform-origin:50% 0;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(177,241,255,.97) 26%,rgba(108,219,255,.94) 52%,rgba(255,251,181,.92) 78%,rgba(255,255,255,.0) 100%);clip-path:polygon(48% 0,62% 8%,54% 19%,74% 24%,56% 40%,67% 46%,43% 66%,56% 70%,30% 92%,41% 100%,12% 72%,30% 67%,17% 48%,36% 42%,23% 25%,42% 18%,34% 6%);filter:drop-shadow(0 0 8px rgba(133,229,255,.95)) drop-shadow(0 0 18px rgba(133,229,255,.62)) drop-shadow(0 0 34px rgba(255,250,163,.35));animation:surp-lightning-strike var(--bolt-duration) ease-out var(--bolt-delay) infinite}
.surprise-lightning-bolt:before,.surprise-lightning-bolt:after{content:'';position:absolute;inset:0;background:inherit;clip-path:inherit;opacity:.92}
.surprise-lightning-bolt:before{transform:translateX(-10px) translateY(14%) scale(.58) rotate(-10deg);filter:blur(1px)}
.surprise-lightning-bolt:after{transform:translateX(11px) translateY(33%) scale(.42) rotate(12deg);filter:blur(1px)}
.surprise-lightning-storm--celebration .surprise-lightning-bolt{width:clamp(22px,2vw,42px);height:135%;animation-duration:calc(var(--bolt-duration) + .16s)}
.surprise-lightning-storm .bolt-1{--bolt-rotate:-6deg}.surprise-lightning-storm .bolt-2{--bolt-rotate:4deg}.surprise-lightning-storm .bolt-3{--bolt-rotate:-2deg}.surprise-lightning-storm .bolt-4{--bolt-rotate:7deg}.surprise-lightning-storm .bolt-5{--bolt-rotate:-9deg}.surprise-lightning-storm .bolt-6{--bolt-rotate:2deg}
.surprise-challenge-electric .surprise-bolt{position:relative;z-index:3;font-size:118px;filter:drop-shadow(0 0 18px #fbf7bb) drop-shadow(0 0 38px rgba(114,224,255,.65));animation:surp-electric-icon 1.15s ease-in-out infinite}
.surprise-challenge-electric .surprise-ring,.surprise-challenge-electric .surprise-ring-2{z-index:2}
.surprise-challenge-electric .surprise-challenge-stars{z-index:2;color:#fff9b9;text-shadow:0 0 12px rgba(255,221,93,.85),0 0 22px rgba(141,232,255,.55)}
.surprise-challenge-electric .surprise-trophy{z-index:4;text-shadow:0 0 16px rgba(255,233,124,.6)}
.surprise-celebration--defi{background:radial-gradient(circle at 50% 15%,rgba(115,227,255,.18),transparent 35%),radial-gradient(circle at 50% 80%,rgba(255,244,160,.08),transparent 38%)}
.surprise-celebration--defi .surprise-victory{z-index:2147482502;text-shadow:0 0 18px rgba(96,234,255,.28)}
.surprise-celebration--defi .surprise-burst-icons{z-index:2147482501}
.surprise-screen-flash{position:fixed;inset:0;z-index:2147482499;pointer-events:none;background:radial-gradient(circle at 50% 24%,rgba(255,255,255,.36),rgba(125,231,255,.17) 33%,transparent 58%);animation:surp-screen-flash 1.25s ease-out .2s 3 both}
.surprise-particle--defi{width:4px;height:42px;border-radius:999px;opacity:.88;background:linear-gradient(180deg,rgba(255,255,255,.0),var(--color) 28%,#fff 55%,var(--color) 78%,rgba(255,255,255,0));box-shadow:0 0 14px var(--color),0 0 24px rgba(255,255,255,.18)}
@keyframes surp-electric-pulse{0%,100%{opacity:.45;transform:scale(.9)}50%{opacity:.98;transform:scale(1.1)}}
@keyframes surp-electric-icon{0%,100%{transform:scale(.94) rotate(-2deg)}35%{transform:scale(1.08) rotate(2deg)}55%{transform:scale(.98) rotate(-1deg)}70%{transform:scale(1.1) rotate(1deg)}}
@keyframes surp-lightning-strike{0%,12%,100%{opacity:0;transform:translateX(-50%) scaleY(.18) scaleX(calc(var(--bolt-scale) * .92)) rotate(var(--bolt-rotate))}14%{opacity:1;transform:translateX(-50%) scaleY(1.04) scaleX(var(--bolt-scale)) rotate(var(--bolt-rotate))}18%{opacity:.25;transform:translateX(-50%) scaleY(.76) scaleX(calc(var(--bolt-scale) * .96)) rotate(var(--bolt-rotate))}22%{opacity:1;transform:translateX(-50%) scaleY(1.08) scaleX(calc(var(--bolt-scale) * 1.04)) rotate(var(--bolt-rotate))}30%{opacity:.16;transform:translateX(-50%) scaleY(.94) scaleX(calc(var(--bolt-scale) * .98)) rotate(var(--bolt-rotate))}38%{opacity:.92;transform:translateX(-50%) scaleY(1) scaleX(var(--bolt-scale)) rotate(var(--bolt-rotate))}52%{opacity:0;transform:translateX(-50%) scaleY(.68) scaleX(calc(var(--bolt-scale) * .9)) rotate(var(--bolt-rotate))}}
@keyframes surp-screen-flash{0%,100%{opacity:0}12%{opacity:.95}30%{opacity:0}46%{opacity:.78}63%{opacity:0}78%{opacity:.52}95%{opacity:0}}
@media(max-width:680px){
  .surprise-challenge-electric .surprise-bolt{font-size:94px}
  .surprise-lightning-storm--scene .surprise-lightning-bolt{width:clamp(14px,3vw,24px)}
  .surprise-lightning-storm--celebration .surprise-lightning-bolt{width:clamp(16px,3.6vw,28px)}
}

/* Adaptation Real Time : l'icône se place directement APRÈS Cadeau dans chat-font-controls. */
#chat-font-controls #surpriseLiveButton {display:inline-flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;flex:0 0 auto;min-height:30px;min-width:118px;padding:4px 8px!important;white-space:nowrap;border:1px solid #7ff5d0!important;border-radius:9px;background:linear-gradient(130deg,#073e46,#302151)!important;color:#e8fff9!important;box-shadow:0 0 11px #27dcc066!important;font-size:11px;font-weight:900;cursor:pointer}
#chat-font-controls #surpriseLiveButton[hidden] {display:none!important}
#chat-font-controls #surpriseLiveButton .dc-trigger-icon {font-size:16px}
#chat-font-controls #surpriseLiveButton:hover {box-shadow:0 0 17px #45f9c8!important}
.surprise-wheel-result[hidden], .surprise-entries[hidden] {display:none!important}
@media(max-width:768px){
 #chat-font-controls #surpriseLiveButton {min-width:36px;min-height:27px;padding:3px 5px!important;font-size:10px}
 #chat-font-controls #surpriseLiveButton .dc-trigger-text {display:none}
 .surprise-shade {padding:5px}
 .surprise-dialog {max-height:96dvh}
}
@media(max-width:390px){
 .surprise-nav {gap:5px}.surprise-choice {min-width:80px;padding:5px;font-size:16px}.surprise-choice span {font-size:9px}.surprise-choice small {font-size:8px}
 .surprise-wheel-badges {gap:3px}
}

/* V2 : coffre relevé d’environ 7 mm, sans toucher à ses dimensions ni au visuel des autres jeux. */
@media(max-width:680px){.surprise-stage[data-game="coffre"] .surprise-chest-wrap{transform:translateY(-14px)}}


/* V3 — ROUE DU DESTIN : deuxième séquence APRÈS les effets, grande carte
   centrée et lisible. Le coffre, le défi éclair et Cadeau ne changent pas. */
.surprise-wheel-result{
  position:fixed!important;inset:0!important;left:0!important;right:0!important;
  top:0!important;bottom:0!important;transform:none!important;
  z-index:2147482800!important;display:flex;align-items:center;justify-content:center;
  width:100vw!important;height:100dvh!important;max-height:none!important;max-width:none!important;
  overflow-y:auto;overflow-x:hidden;box-sizing:border-box;
  padding:clamp(10px,2.5vw,28px);margin:0;border:0;border-radius:0;
  background:rgba(2,6,18,.90);box-shadow:none;overscroll-behavior:contain;
}
.surprise-wheel-result .surprise-reward-card{
  flex:0 1 780px;width:min(780px,100%);max-height:calc(100dvh - 24px);
  overflow-y:auto;min-height:0;box-sizing:border-box;
  padding:clamp(20px,3vw,34px);border-width:2px;
  border-radius:26px;box-shadow:0 24px 80px #000e,0 0 55px color-mix(in srgb,var(--wheel-color) 28%, transparent);
}
.surprise-wheel-result .surprise-reward-header{padding-right:44px;gap:12px;margin-bottom:16px}
.surprise-wheel-result .surprise-reward-pill{font-size:clamp(14px,1.7vw,19px);padding:10px 18px}
.surprise-wheel-result .surprise-reward-header b{font-size:clamp(13px,1.6vw,18px)}
.surprise-wheel-result .surprise-reward-art{height:clamp(106px,19dvh,175px);margin-bottom:17px}
.surprise-wheel-result .reward-main-icon{font-size:clamp(66px,9vw,108px)}
.surprise-wheel-result .reward-accent{font-size:clamp(24px,3vw,38px)}
.surprise-wheel-result .surprise-reward-body h4{font-size:clamp(27px,3.6vw,38px);margin-bottom:14px}
.surprise-wheel-result .surprise-reward-body p{
  font-size:clamp(22px,2.7vw,31px);font-weight:800;line-height:1.46;
  padding:clamp(17px,2vw,26px);color:#fffef5;
  background:rgba(5,10,19,.54);border-color:rgba(255,255,255,.16);
  overflow-wrap:break-word;
}
.surprise-wheel-result .surprise-reward-x{
  position:fixed;top:clamp(12px,3vw,30px);right:clamp(12px,3vw,30px);
  width:48px;height:48px;font-size:29px;
}
.surprise-reward-footer{position:relative;z-index:1;display:flex;gap:12px;
  align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:18px;
  font-size:13px;font-weight:700;color:#e8faff;
}
.surprise-reward-footer .surprise-reward-done{
  cursor:pointer;position:static;display:inline-flex;align-items:center;justify-content:center;
  width:auto;height:auto;min-height:44px;padding:11px 20px;border-radius:12px;
  color:#092b34;background:linear-gradient(120deg,#81ffe0,#94ddff);
  border:1px solid #bdfff2;box-shadow:0 0 22px #35ddc755;
  font-size:15px;font-weight:900;line-height:1.2;
}
.surprise-reward-footer .surprise-reward-done:hover{filter:brightness(1.1)}
@media(max-width:600px){
 .surprise-wheel-result{padding:10px}
 .surprise-wheel-result .surprise-reward-card{border-radius:19px;padding:19px 14px;max-height:calc(100dvh - 20px)}
 .surprise-wheel-result .surprise-reward-header{padding-right:34px;margin-bottom:11px}
 .surprise-wheel-result .surprise-reward-pill{font-size:13px;padding:8px 11px}
 .surprise-wheel-result .surprise-reward-header b{font-size:12px}
 .surprise-wheel-result .surprise-reward-art{height:clamp(76px,16dvh,130px);margin-bottom:11px}
 .surprise-wheel-result .reward-main-icon{font-size:clamp(51px,12vw,74px)}
 .surprise-wheel-result .reward-accent{font-size:22px}
 .surprise-wheel-result .surprise-reward-body h4{font-size:clamp(24px,7vw,30px);margin-bottom:9px}
 .surprise-wheel-result .surprise-reward-body p{font-size:clamp(20px,5.3vw,24px);line-height:1.43;padding:15px 13px}
 .surprise-wheel-result .surprise-reward-x{top:12px;right:12px;width:40px;height:40px;font-size:26px}
 .surprise-reward-footer{margin-top:12px;font-size:11px}
 .surprise-reward-footer .surprise-reward-done{min-height:40px;padding:9px 12px;font-size:13px}
}
@media(max-width:360px) and (max-height:680px){
 .surprise-wheel-result .surprise-reward-art{height:70px}
 .surprise-wheel-result .reward-main-icon{font-size:48px}
 .surprise-wheel-result .surprise-reward-body p{font-size:20px}
}

/* COFFRE MYSTÈRE seulement : décoration gagnant 24 heures et sélecteur. */
/* Cadre 3 couleurs lumineux autour de la fiche, intérieur inchangé (V3). */
#user-list li.user-list-item.coffre-gradient-card,
#mobile-user-list li.user-list-item.coffre-gradient-card {
  position:relative;
  isolation:isolate;
  overflow:visible;
}
#user-list li.user-list-item.coffre-gradient-card > *,
#mobile-user-list li.user-list-item.coffre-gradient-card > * {
  position:relative;
  z-index:3;
}
/* Pas de fond dégradé : l'intérieur de la fiche conserve son fond habituel. */
#user-list li.user-list-item.coffre-gradient-card::after,
#mobile-user-list li.user-list-item.coffre-gradient-card::after {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  padding:3px;
  background:var(--coffre-border-gradient,linear-gradient(90deg,#a855f7,#facc15,#22d3ee));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask-composite:exclude;
  pointer-events:none;
  z-index:2;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.16),
    0 0 9px color-mix(in srgb,var(--coffre-edge,#a855f7) 90%, white 10%),
    0 0 17px color-mix(in srgb,var(--coffre-edge,#a855f7) 76%, transparent);
  filter:saturate(1.6) brightness(1.3)
         drop-shadow(0 0 4px color-mix(in srgb,var(--coffre-edge,#a855f7) 84%, white 16%))
         drop-shadow(0 0 9px color-mix(in srgb,var(--coffre-edge,#a855f7) 85%, transparent));
}
.coffre-trophy{font-size:13px;line-height:1;flex-shrink:0;}
.coffre-picker-shade{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.83);display:flex;align-items:center;justify-content:center;padding:12px;}
.coffre-picker-panel{width:min(490px,96vw);max-height:95vh;overflow:auto;border:2px solid #b86aff;border-radius:18px;box-shadow:0 0 22px #9546ff;background:#100c20;color:white;padding:20px;text-align:center;}
.coffre-picker-panel h2{font-size:22px;color:#ffe08a;margin:0 0 8px;}.coffre-picker-panel p{font-size:14px;line-height:1.5;}
.coffre-picker-tabs{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin:15px 0;}.coffre-picker-tabs button{border:2px solid;padding:9px;border-radius:8px;background:#201632;color:white;cursor:pointer;}.coffre-picker-tabs button.selected{background:#483077;}
.coffre-picker-colors{display:grid;grid-template-columns:repeat(10,1fr);gap:7px;margin:16px 0;}.coffre-picker-colors button{aspect-ratio:1;border:1px solid #aaa;border-radius:6px;cursor:pointer;min-width:0;}
.coffre-picker-preview{border:1px solid #b86aff;border-radius:12px;padding:15px 6px;font-size:22px;font-weight:bold;}.coffre-picker-preview span{background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}
.coffre-picker-submit{margin-top:13px;background:#6736be;color:white;border:1px solid #d9adff;padding:12px 20px;border-radius:10px;cursor:pointer;font-size:15px;}.coffre-picker-error{color:#ffb2b2;min-height:1em;}
@media(max-width:480px){.coffre-picker-panel{padding:12px}.coffre-picker-colors{grid-template-columns:repeat(8,1fr)}.coffre-picker-panel h2{font-size:18px}}

.coffre-points-counter{margin-top:10px;padding:7px;color:#ffe4a0;border:1px solid rgba(255,215,90,.35);border-radius:9px;font-size:12px;text-align:center;}

/* Coffre : fermeture accessible, y compris pour les comptes staff et les écrans mobiles. */
.coffre-picker-panel{position:relative;}
.coffre-picker-close{position:absolute;right:9px;top:8px;width:32px;height:32px;border:1px solid #b86aff;border-radius:9px;background:#26153c;color:#fff;font-size:25px;line-height:1;cursor:pointer;z-index:2;}
.coffre-picker-close:hover,.coffre-picker-close:focus-visible{background:#59338a;outline:2px solid #e2b9ff;}
.coffre-picker-panel h2{padding-left:24px;padding-right:24px;}
.coffre-picker-submit:disabled{opacity:.65;cursor:wait;}

/* Préférences individuelles des défis collectifs — PC et mobile. */
.surprise-preference{display:flex;flex-direction:column;gap:8px;margin-top:12px;padding:12px;border:1px solid rgba(75,222,211,.45);border-radius:12px;background:rgba(7,29,51,.7);color:#e6ffff}
.surprise-preference strong{font-size:13px;color:#7df4e5}
.surprise-preference label{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:13px}
.surprise-preference input{accent-color:#27cdb0}
.surprise-preference small{font-size:11px;line-height:1.4;opacity:.82}
.surprise-interested{font-size:12px;line-height:1.4;color:#ffdf82;font-weight:600}
@media(max-width:700px){.surprise-preference{padding:9px;gap:6px}.surprise-preference label{font-size:12px}}

/* REAL TIME : sous-menu Jeux réflexion et cartes photo Chanteur / Animaux.
   Styles limités aux nouveaux jeux : coffre et roue intacts. */
#surpriseReflectionSub[hidden],#surprisePhotoFeedback[hidden]{display:none!important}
.surprise-reflection-sub{display:flex;flex-direction:column;gap:7px;padding-left:12px;border-left:2px solid #64aaff}
.surprise-reflection-sub .surprise-choice{width:100%;font-size:19px;padding:9px 8px;box-sizing:border-box;border-color:#6673be}
#surpriseReflection.selected{border-color:#8eaaff}
.surprise-stage[data-game="chanteur"],.surprise-stage[data-game="animaux"]{height:350px;display:block;overflow:hidden;padding:12px;box-sizing:border-box}
.surprise-stage[data-game="chanteur"]:before,.surprise-stage[data-game="animaux"]:before{display:none}
.photo-challenge{display:grid;grid-template-columns:minmax(0,44%) minmax(0,1fr);gap:12px;width:100%;height:100%;min-height:0}
.photo-big-card{border-radius:17px;border:2px solid #6ac2ee;background:linear-gradient(150deg,#172a52,#261944);display:flex;flex-direction:column;overflow:hidden;min-width:0;box-shadow:inset 0 0 15px #47a6ff33}
.photo-challenge--animaux .photo-big-card{border-color:#6bcb91;background:linear-gradient(150deg,#142e29,#1b3b3a)}
.photo-big-card img{width:100%;min-height:0;height:calc(100% - 46px);object-fit:contain;flex:1 1 auto;color:white}
.photo-big-card strong{font-size:clamp(11px,1.4vw,15px);line-height:1.25;text-align:center;color:#fff3ac;background:#0a1225;padding:8px 4px;letter-spacing:.02em}
.photo-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:1fr 1fr;gap:10px;min-width:0;min-height:0}
.photo-option{min-width:0;min-height:0;border:2px solid #73b9e9;border-radius:15px;padding:6px 4px;background:linear-gradient(140deg,#253c74,#513475);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;overflow-wrap:anywhere;box-shadow:0 4px 13px #05091277}
.photo-challenge--animaux .photo-option{background:linear-gradient(140deg,#1f6144,#37696a);border-color:#7bddaa}
.photo-option>span{font-size:clamp(19px,2.8vw,28px)}.photo-option b{font-size:clamp(12px,1.45vw,18px);line-height:1.15;text-align:center}
.photo-option:not(:disabled):hover{filter:brightness(1.3);transform:translateY(-1px)}
.photo-option:disabled{opacity:.7;cursor:default}.photo-option.correct{border-color:#a7ff79;background:linear-gradient(140deg,#176b38,#2ba854);opacity:1}
.surprise-photo-feedback{margin:8px 0 13px;border:1px solid #d6bb66;background:#22233d;color:#fffbe1;border-radius:12px;padding:13px;text-align:center;font-size:14px}
.surprise-photo-feedback h3{font-size:19px;color:#ffda76;margin:3px 0 6px}.surprise-photo-feedback p{margin:5px 0 10px}
.photo-podium-item{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:7px;border-top:1px solid #74664b;flex-wrap:wrap}
.photo-image-error{position:absolute;bottom:2px;left:10px;border-radius:7px;background:#371820;border:1px solid #ee6a75;color:white;padding:5px 9px;font-size:11px;cursor:pointer;z-index:1}
.photo-image-error[hidden]{display:none!important}.photo-loading{display:grid;place-items:center;min-height:100%;color:#cee2fa;padding:20px;text-align:center}
.photo-win-celebration{position:fixed;inset:0;z-index:2147482600;pointer-events:none;display:grid;place-items:start center;background:radial-gradient(ellipse at center,#ffcc3150,transparent 65%);animation:surp-vanish 7.7s both}
.photo-win-celebration strong{margin-top:13vh;font-size:clamp(26px,6vw,64px);color:#fff7b8;text-shadow:0 0 25px gold;text-align:center}
.photo-crown-badge{white-space:nowrap;display:inline!important;font-size:1.1em;filter:drop-shadow(0 0 4px #ffc840)}
@media(max-width:680px){
  .surprise-reflection-sub{flex-direction:row;flex:1 1 100%;padding:0 0 0 8px;gap:7px}
  .surprise-reflection-sub .surprise-choice{flex:1 1 50%;min-width:0;font-size:16px;line-height:1.1}
  .surprise-stage[data-game="chanteur"],.surprise-stage[data-game="animaux"]{height:270px;padding:7px}
  .photo-challenge{grid-template-columns:minmax(0,41%) minmax(0,1fr);gap:6px}
  .photo-options{gap:5px}
  .photo-big-card{border-radius:10px}
  .photo-option{border-radius:9px;padding:3px 2px;gap:3px;border-width:1px}
  .photo-option>span{font-size:18px}.photo-option b{font-size:clamp(10px,2.8vw,14px)}
  .photo-big-card strong{font-size:10px;padding:5px 2px}
  .surprise-photo-feedback{font-size:12px;padding:8px}
}
@media(max-width:360px){.surprise-stage[data-game="chanteur"],.surprise-stage[data-game="animaux"]{height:250px}.photo-option b{font-size:10px}}

/* Défis Chanteur/Animaux V4 : podium jusqu'à 10 et bonus gagnant personnel. */
.surprise-photo-feedback{max-height:min(42vh,400px);overflow-y:auto;overscroll-behavior:contain}
.photo-bonus-result{border:2px solid #ffdd7f;border-radius:13px;margin:8px 0;padding:10px;background:linear-gradient(110deg,#75431e,#612c80,#145987);box-shadow:0 0 15px #ffbd56b3;color:#fff6ba;font-size:clamp(16px,2.2vw,23px);font-weight:900;animation:photoBonusGlow 1.15s ease-in-out infinite alternate}
.photo-win-celebration .photo-bonus-banner{position:absolute;top:3vh;left:50%;transform:translateX(-50%);width:max-content;max-width:94vw;box-sizing:border-box;padding:14px 28px;text-align:center;color:#fffde0;border:3px solid #fff0a8;border-radius:18px;background:linear-gradient(110deg,#8a4a12,#742b99,#116083);box-shadow:0 0 24px 8px #ffc741aa,0 0 60px #db8bffbf;text-shadow:0 0 8px #fcbf4e;font-size:clamp(19px,4.6vw,39px);font-weight:900;line-height:1.3;animation:photoBonusGlow 1.15s ease-in-out infinite alternate}
.photo-win-celebration:has(.photo-bonus-banner) strong{margin-top:clamp(115px,18vh,190px)}
@keyframes photoBonusGlow{from{filter:brightness(1);box-shadow:0 0 11px #ffcb63b0}to{filter:brightness(1.35);box-shadow:0 0 30px #fcbaff,0 0 50px #ffcd73}}
@media(max-width:680px){.photo-win-celebration .photo-bonus-banner{top:4vh;padding:9px 12px;border-radius:10px}.surprise-photo-feedback{max-height:35vh}}

/* V6 — Pièges personnels, indépendants des animations existantes. */
.photo-trap-banner,.photo-trap-result,.surprise-trap-notice{color:#fff1d5;background:linear-gradient(115deg,#5a122b,#b31e46,#5a122b);border:2px solid #ffce71;border-radius:14px;padding:12px 18px;text-align:center;font-weight:900;box-shadow:0 0 28px #ff496288;text-shadow:0 1px 2px #240918;animation:surprise-trap-glow 1.1s ease-in-out infinite alternate}
.photo-trap-banner{font-size:clamp(18px,3vw,30px)}.photo-trap-result{margin:9px auto;font-size:clamp(15px,2.2vw,22px)}
.surprise-trap-notice{position:fixed;z-index:2147483100;left:50%;top:17%;transform:translateX(-50%);max-width:min(92vw,600px);width:max-content;font-size:clamp(17px,3vw,27px);pointer-events:none}
@keyframes surprise-trap-glow{from{box-shadow:0 0 9px #ffb44c99}to{box-shadow:0 0 35px #ff4962cc}}

.photo-win-celebration .photo-trap-banner{position:absolute;top:4vh;left:50%;transform:translateX(-50%);width:max-content;max-width:94vw;box-sizing:border-box}
.photo-win-celebration:has(.photo-trap-banner) strong{margin-top:24vh}
.photo-win-celebration:has(.photo-trap-banner):has(.photo-bonus-banner) .photo-trap-banner{top:18vh}
.photo-win-celebration:has(.photo-trap-banner):has(.photo-bonus-banner) strong{margin-top:33vh}
@media(max-width:680px){.photo-win-celebration .photo-trap-banner{top:5vh;padding:10px 12px;border-radius:11px}.photo-win-celebration:has(.photo-trap-banner):has(.photo-bonus-banner) .photo-trap-banner{top:18vh}}

/* AUTO-DÉFIS V1 : commandes simples réservées à l'administration du salon. */
.surprise-auto-tools[hidden],.surprise-auto-controls button[hidden],.surprise-auto-controls input[hidden]{display:none!important}
.surprise-auto-tools{margin:13px 0 5px;padding:12px 14px;border:1px solid rgba(133,238,198,.65);border-radius:14px;background:linear-gradient(125deg,#0e2833,#153024 70%,#1e2544);box-shadow:inset 0 0 14px rgba(90,230,179,.07);color:#e5fff5}
.surprise-auto-head{display:flex;align-items:center;gap:7px;margin-bottom:9px;color:#a6ffd4;font-size:13px;letter-spacing:.02em}
.surprise-auto-controls{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.surprise-auto-controls label{font-size:12px;color:#e8f9ff;display:flex;align-items:center;gap:8px}
.surprise-auto-controls input[type=number]{width:68px;min-height:36px;border:1px solid #6be7c4;border-radius:8px;padding:7px;color:#fff;background:#142b38;font-size:15px;font-weight:800;text-align:center}
.surprise-auto-controls input[type=checkbox]{accent-color:#74f6c4;width:17px;height:17px}
.surprise-auto-controls button{min-height:38px;flex:1 1 155px;border:1px solid #78f5bd;border-radius:10px;padding:8px 11px;background:linear-gradient(125deg,#166851,#15536a);color:#f0fffa;font-weight:900;cursor:pointer}
.surprise-auto-controls button.surprise-auto-stop{border-color:#ff8b97;background:linear-gradient(120deg,#66243a,#391c3e)}
.surprise-auto-tools #surpriseAutoStatus{margin:10px 0 4px;color:#ffe8a5;font-size:12px;font-weight:800}
.surprise-auto-tools>small{font-size:11px;color:#bad7d5;line-height:1.45;display:block}
@media(max-width:680px){.surprise-auto-tools{padding:10px;margin-top:8px}.surprise-auto-controls{gap:7px}.surprise-auto-head{font-size:12px}.surprise-auto-controls button{flex:1 1 100%;min-height:36px}}
