/* 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(14px)}
.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)}
}


/* ETAPE 1 : annulation des trois jeux et des tests solo, dans le style néon existant.
   Aucun changement aux dimensions de la roue, des quatre badges ni aux récompenses. */
.surprise-actions #surpriseCancel{
  flex:1 1 175px;
  min-height:43px;
  padding:10px 14px;
  border:1px solid #ff647b;
  border-radius:12px;
  background:linear-gradient(135deg,rgba(86,18,35,.96),rgba(33,10,27,.97));
  color:#ffe7ed;
  font-weight:900;
  line-height:1.25;
  text-shadow:0 0 8px rgba(255,100,130,.23);
  box-shadow:inset 0 0 15px rgba(255,90,120,.08),0 0 12px rgba(255,65,104,.16);
}
.surprise-actions #surpriseCancel:hover{border-color:#ff98aa;box-shadow:0 0 18px rgba(255,90,130,.3)}
.surprise-actions #surpriseCancel:focus-visible{outline:2px solid #ffbfc9;outline-offset:2px}
.surprise-actions #surpriseCancel:disabled{opacity:.5;cursor:wait}
@media(max-width:680px){
  .surprise-actions #surpriseCancel{flex:1 1 100%;min-height:44px;font-size:12px;padding:10px 12px}
}


/* COFFRE : affiche néon / relief 3D de l'objectif. Indépendante de la roue et du défi. */
.surprise-chest-target[hidden]{display:none!important}
.surprise-chest-target{position:relative;z-index:8;margin:12px auto 9px;max-width:100%;padding:13px 18px 15px;border:2px solid #e8b85d;border-radius:20px;text-align:center;overflow:hidden;background:linear-gradient(130deg,rgba(30,14,49,.98),rgba(15,48,69,.98) 48%,rgba(52,28,15,.98));box-shadow:0 0 19px #edb65c77,0 12px 28px #0009,inset 0 0 23px #22d9e42b}
.surprise-chest-target:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.09) 44%,transparent 57%);transform:skewX(-12deg)}
.surprise-target-kicker{position:relative;display:block;font-size:clamp(10px,1.2vw,13px);font-weight:900;color:#aefbff;letter-spacing:.13em;text-shadow:0 0 10px #0df0ffbd}
.surprise-chest-target strong{position:relative;display:block;margin:7px 0;font-size:clamp(17px,2.4vw,30px);font-weight:1000;line-height:1.2;letter-spacing:.025em;color:#fff4bb;text-shadow:0 2px 0 #a36215,0 4px 0 #723b0d,0 6px 7px #000,0 0 18px #ffe179c7,0 0 27px #ff8c3d6b}
.surprise-chest-target strong em{font-style:normal;font-size:1.18em;color:#fff;white-space:nowrap;text-shadow:0 2px 0 #0d7197,0 4px 0 #124563,0 7px 11px #000,0 0 17px #61f0ff,0 0 27px #76deff}
.surprise-target-rewards{position:relative;display:block;color:#def9f5;font-size:clamp(10px,1.3vw,14px);font-weight:800;line-height:1.5;text-shadow:0 0 9px #14c7db7a}
@media(max-width:680px){.surprise-chest-target{margin:7px auto 9px;padding:11px 7px 12px;border-radius:14px}.surprise-chest-target strong{font-size:clamp(15px,4.4vw,21px)}.surprise-target-rewards{font-size:11px}.surprise-target-kicker{font-size:9px}}

/* ETAPE 3 : coffre recentré, records visibles, bannière plus explosive, cadrage PC/GSM renforcé. */
.surprise-dialog{max-height:min(96vh,940px)}
.surprise-body{display:flex;flex-direction:column;gap:8px}
.surprise-headline>div{min-height:20px}
.surprise-stage{margin:4px 0 10px;height:245px}
.surprise-stage[data-game="coffre"]{height:258px}
.surprise-stats{padding:8px 1px 6px}
.surprise-actions{margin-top:2px}
.surprise-staff{margin-top:8px}
.surprise-note{margin-top:7px}

.surprise-chest-arena{position:relative;z-index:1;width:min(100%,830px);height:100%;display:grid;grid-template-columns:minmax(132px,168px) minmax(0,1fr) minmax(132px,168px);gap:12px;align-items:center;padding:8px 10px 8px}
.surprise-chest-center{display:grid;place-items:center;min-width:0}
.surprise-stage[data-game="coffre"] .surprise-chest-wrap{transform:translateY(12px) scale(.96)}
.surprise-records{position:relative;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:11px 10px 10px;border:1px solid rgba(111,228,255,.26);border-radius:18px;background:linear-gradient(180deg,rgba(7,19,34,.95),rgba(10,29,44,.92));box-shadow:0 0 16px rgba(83,225,255,.12),inset 0 0 18px rgba(255,213,103,.06)}
.surprise-records:before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(125deg,rgba(255,255,255,.08),transparent 35%,transparent 70%,rgba(255,223,137,.08))}
.surprise-records-title{position:relative;text-align:center;font-weight:1000;letter-spacing:.08em;color:#ffe9a1;font-size:15px;text-shadow:0 0 14px rgba(255,207,93,.42)}
.surprise-records-sub{position:relative;text-align:center;font-size:10px;color:#8fefff;letter-spacing:.12em;margin:3px 0 8px;text-shadow:0 0 10px rgba(105,234,255,.36)}
.surprise-records-list{position:relative;display:flex;flex-direction:column;gap:6px}
.surprise-record-row{display:grid;grid-template-columns:23px minmax(0,1fr) auto;gap:7px;align-items:center;padding:6px 7px;border-radius:11px;border:1px solid rgba(92,183,208,.23);background:linear-gradient(180deg,rgba(12,35,50,.9),rgba(8,22,34,.94));box-shadow:inset 0 0 12px rgba(38,170,201,.05)}
.surprise-record-row.is-empty{border-style:dashed;background:linear-gradient(180deg,rgba(13,24,35,.72),rgba(6,15,24,.82));opacity:.95}
.surprise-record-rank{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:linear-gradient(180deg,#ffd96b,#d59434);color:#392000;font-weight:1000;font-size:12px;box-shadow:0 0 12px rgba(255,210,108,.22)}
.surprise-record-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f4fbff;font-size:12px;font-weight:800}
.surprise-record-row.is-empty .surprise-record-name{text-transform:uppercase;letter-spacing:.06em;color:#7eb6c4}
.surprise-record-points{color:#7affb2;font-size:11px;font-weight:900;text-align:right;white-space:nowrap}
.surprise-record-row.is-empty .surprise-record-points{color:#6f8e99}

.surprise-chest-target{animation:surp-target-pulse 2.2s ease-in-out infinite;transform-origin:50% 50%}
.surprise-chest-target:after{content:'';position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;border:1px solid rgba(255,255,255,.18);box-shadow:0 0 0 1px rgba(109,240,255,.2),0 0 30px rgba(255,200,89,.18);animation:surp-target-flare 2.8s ease-in-out infinite}
.surprise-target-cheers{position:relative;display:flex;justify-content:center;gap:14px;margin-top:8px;font-size:24px;filter:drop-shadow(0 0 10px rgba(255,223,109,.26))}
.surprise-target-cheers span:nth-child(1){animation:surp-clap-a .56s ease-in-out infinite alternate}
.surprise-target-cheers span:nth-child(2){animation:surp-target-cup 1.5s ease-in-out infinite}
.surprise-target-cheers span:nth-child(3){animation:surp-clap-b .56s ease-in-out infinite alternate}

.surprise-clap-show{position:absolute;left:50%;bottom:11%;transform:translateX(-50%);display:flex;gap:18px;z-index:2147482503;filter:drop-shadow(0 0 12px rgba(255,219,108,.35))}
.surprise-clap-show span{font-size:42px;animation:surp-clap-wave 1.05s ease-in-out infinite}
.surprise-clap-show span:nth-child(2){animation-delay:.16s}.surprise-clap-show span:nth-child(3){animation-delay:.08s}.surprise-clap-show span:nth-child(4){animation-delay:.24s}

@keyframes surp-target-pulse{0%,100%{transform:scale(.985)}50%{transform:scale(1.015)}}
@keyframes surp-target-flare{0%,100%{opacity:.58;transform:scale(1)}50%{opacity:1;transform:scale(1.02)}}
@keyframes surp-clap-a{0%{transform:rotate(-12deg) scale(.95)}100%{transform:rotate(10deg) scale(1.14)}}
@keyframes surp-clap-b{0%{transform:rotate(12deg) scale(1.14)}100%{transform:rotate(-10deg) scale(.95)}}
@keyframes surp-target-cup{0%,100%{transform:translateY(0) scale(.98)}50%{transform:translateY(-4px) scale(1.08)}}
@keyframes surp-clap-wave{0%,100%{transform:translateY(0) scale(.88)}35%{transform:translateY(-10px) scale(1.12)}60%{transform:translateY(0) scale(.98)}}

@media(max-width:930px){
  .surprise-chest-arena{grid-template-columns:minmax(118px,146px) minmax(0,1fr) minmax(118px,146px);gap:8px;padding:8px 6px}
  .surprise-records{padding:9px 8px;border-radius:14px}
  .surprise-record-row{gap:6px;padding:5px 6px}
  .surprise-record-name{font-size:11px}
  .surprise-record-points{font-size:10px}
  .surprise-stage[data-game="coffre"] .surprise-chest-wrap{transform:translateY(8px) scale(.88)}
}
@media(max-width:680px){
  .surprise-main{gap:10px}
  .surprise-body{gap:6px}
  .surprise-stage{height:224px}
  .surprise-stage[data-game="coffre"]{height:auto;min-height:355px}
  .surprise-chest-arena{grid-template-columns:1fr;gap:8px;padding:8px 5px 10px}
  .surprise-records{padding:8px 8px 7px}
  .surprise-records--left{order:2}.surprise-records--right{order:3}.surprise-chest-center{order:1}
  .surprise-records-title{font-size:14px}.surprise-records-sub{font-size:9px;margin-bottom:6px}
  .surprise-records-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .surprise-records--left .surprise-records-list{grid-template-columns:1fr}
  .surprise-records--right .surprise-records-list{grid-template-columns:1fr}
  .surprise-record-row{padding:6px}
  .surprise-stage[data-game="coffre"] .surprise-chest-wrap{transform:translateY(2px) scale(.82)}
  .surprise-target-cheers{font-size:20px;gap:10px}
  .surprise-clap-show{gap:11px;bottom:8%}
  .surprise-clap-show span{font-size:32px}
}


/* ETAPE 4 : tout le contenu intérieur du coffre est légèrement réduit
   pour rentrer dans l'encadrement principal sans devoir scroller. */
.surprise-dialog{max-height:min(95vh,900px)}
.surprise-main{gap:12px;padding:14px}
.surprise-body{gap:5px;padding:3px 8px 8px}
.surprise-headline h3{margin:1px 0 4px}
.surprise-headline>div{min-height:16px;font-size:11px}
.surprise-stage[data-game="coffre"]{height:232px;margin:2px 0 8px}

.surprise-chest-target{margin:7px auto 6px;padding:10px 14px 11px;border-radius:16px}
.surprise-target-kicker{font-size:11px}
.surprise-chest-target strong{margin:4px 0;font-size:clamp(15px,2vw,24px);line-height:1.12}
.surprise-chest-target strong em{font-size:1.1em}
.surprise-target-rewards{font-size:clamp(9px,1.1vw,12px);line-height:1.35}
.surprise-target-cheers{margin-top:5px;gap:10px;font-size:20px}

.surprise-chest-arena{width:min(100%,790px);grid-template-columns:minmax(118px,148px) minmax(0,1fr) minmax(118px,148px);gap:8px;padding:4px 4px 4px}
.surprise-stage[data-game="coffre"] .surprise-chest-wrap{transform:translateY(2px) scale(.74)}

.surprise-records{padding:8px 7px 7px;border-radius:14px}
.surprise-records-title{font-size:13px}
.surprise-records-sub{font-size:9px;margin:2px 0 6px}
.surprise-records-list{gap:4px}
.surprise-record-row{grid-template-columns:20px minmax(0,1fr) auto;gap:5px;padding:4px 5px;border-radius:9px}
.surprise-record-rank{width:20px;height:20px;font-size:10px}
.surprise-record-name{font-size:10.5px}
.surprise-record-points{font-size:9.5px}

.surprise-stats{padding:6px 1px 4px;font-size:12px}
.surprise-actions button,.surprise-staff button{padding:9px 10px;font-size:12px}
.surprise-staff{margin-top:6px;gap:8px}
.surprise-note{margin-top:5px;font-size:11px;min-height:15px}

@media(max-width:930px){
  .surprise-stage[data-game="coffre"]{height:226px}
  .surprise-chest-arena{grid-template-columns:minmax(108px,132px) minmax(0,1fr) minmax(108px,132px);gap:6px}
  .surprise-stage[data-game="coffre"] .surprise-chest-wrap{transform:translateY(0) scale(.68)}
  .surprise-records{padding:7px 6px 6px}
  .surprise-records-list{gap:3px}
  .surprise-record-row{padding:4px 4px}
  .surprise-record-name{font-size:10px}
  .surprise-record-points{font-size:9px}
}
@media(max-width:680px){
  .surprise-main{padding:9px;gap:9px}
  .surprise-body{padding:2px}
  .surprise-stage[data-game="coffre"]{height:auto;min-height:318px}
  .surprise-chest-target{padding:9px 6px 10px;margin:6px auto}
  .surprise-chest-target strong{font-size:clamp(14px,4vw,19px)}
  .surprise-target-rewards{font-size:10px}
  .surprise-target-cheers{font-size:18px;gap:8px}
  .surprise-chest-arena{grid-template-columns:1fr;gap:6px;padding:3px 1px 6px}
  .surprise-stage[data-game="coffre"] .surprise-chest-wrap{transform:translateY(0) scale(.70)}
  .surprise-records{padding:7px 6px}
  .surprise-records-list{gap:4px}
  .surprise-record-row{padding:5px}
  .surprise-record-name{font-size:10px}
  .surprise-record-points{font-size:9px}
  .surprise-stats{font-size:11px}
  .surprise-actions button,.surprise-staff button{font-size:11px;padding:9px 8px}
}


/* ETAPE 5 : deux petites actions dans la ligne existante du compteur.
   Aucun changement aux dimensions du coffre, des records, de l'objectif ou du cadre. */
.surprise-clock-tools{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}
.surprise-clock-tools button{border:1px solid #3dbed0;border-radius:9px;padding:4px 8px;min-height:25px;color:#e5ffff;background:#0d3141;box-shadow:inset 0 0 9px #2be7f51c;font-size:11px;font-weight:900;cursor:pointer}
.surprise-clock-tools #surprisePreview{border-color:#e5ba58;color:#fff4be;background:#3b2811}
.surprise-clock-tools button:hover{filter:brightness(1.18)}
.surprise-clock-tools button:disabled{opacity:.55;cursor:wait}
.surprise-clock-tools button[hidden]{display:none!important}
@media(max-width:680px){.surprise-clock-tools{gap:4px}.surprise-clock-tools button{padding:3px 5px;min-height:23px;font-size:10px}}
/* Les boutons occupent la largeur libre du compteur, sans augmenter sa hauteur. */
.surprise-clock-tools{position:relative;display:inline-block;padding-right:80px;line-height:inherit}
.surprise-clock-tools button{position:absolute;right:0;top:50%;transform:translateY(-50%);height:22px;min-height:22px;padding:1px 5px;line-height:18px}
@media(max-width:680px){.surprise-clock-tools{padding-right:70px}.surprise-clock-tools button{height:21px;min-height:21px;padding:1px 4px;font-size:9px}}

/* CHAT-STARTER — Défis chanteur et animaux. Cinq cartes intégrées au panneau existant. */
.surprise-nav .surprise-choice{height:66px;min-height:66px;box-sizing:border-box;flex-shrink:0}
.surprise-stage[data-game="chanteur"],.surprise-stage[data-game="animaux"]{
  height:324px;display:block;overflow:hidden;padding:11px;
  background:radial-gradient(ellipse at 25% 30%,#233460 0,transparent 55%),radial-gradient(ellipse at 80% 80%,#104a52 0,transparent 60%),#080e1d;
}
.surprise-stage[data-game="chanteur"]:before,.surprise-stage[data-game="animaux"]:before{pointer-events:none;opacity:.3}
.photo-challenge{position:relative;z-index:1;display:grid;grid-template-columns:minmax(150px,1.05fr) minmax(0,1.45fr);gap:12px;width:100%;height:100%;max-height:300px}
.photo-big-card{position:relative;min-width:0;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:9px;border:2px solid #b7ddff;border-radius:16px;background:linear-gradient(145deg,#173a5b,#121532 58%,#241b45);box-shadow:inset 0 0 18px #4bcbff24,0 0 18px #6be9ff22}
.photo-image-wrap{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:calc(100% - 38px);min-height:0;overflow:hidden;border-radius:11px;background:linear-gradient(140deg,#0c2746,#1f1640)}
.photo-loading{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:12px;color:#ffe2a0;font-size:54px;text-shadow:0 0 22px #7ccffd77}
.photo-loading small{font-size:11px;text-align:center;font-weight:800;color:#f7f3ff;text-shadow:none}
.photo-main-image{display:none;max-width:100%;width:100%;height:100%;object-fit:contain}
.photo-big-card.photo-loaded .photo-main-image{display:block}
.photo-big-card.photo-loaded .photo-loading{display:none}
.photo-big-card.photo-error .photo-loading{font-size:18px}
.photo-big-card.photo-error .photo-loading small{font-size:12px}
.photo-big-card.photo-error .photo-loading small:after{content:' — image indisponible';color:#ffc5c5}
.photo-big-label{font-size:11px;font-weight:1000;text-align:center;letter-spacing:.07em;color:#fff0b4;margin:7px 0 1px;text-shadow:0 0 8px #ffca6477}
.photo-credit{font-size:9px;color:#9fe5f9;text-decoration:underline}
.photo-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;min-width:0;min-height:0}
.photo-option{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:0;padding:7px 8px;overflow:hidden;border:2px solid rgba(142,235,255,.7);border-radius:15px;background:linear-gradient(135deg,#225881 0%,#122d59 53%,#2b1b61 100%);box-shadow:inset 0 1px 2px #ffffff3b,inset 0 -12px 24px #050b2250,0 5px 13px #0008;color:#fff;font-family:inherit;cursor:pointer;transition:transform .15s,border-color .15s,filter .15s;touch-action:manipulation}
.photo-option:nth-child(2){background:linear-gradient(135deg,#713468,#3f245b 55%,#232452);border-color:#e1b5ff}
.photo-option:nth-child(3){background:linear-gradient(135deg,#26775d,#17495e 55%,#113e48);border-color:#b5f9d4}
.photo-option:nth-child(4){background:linear-gradient(135deg,#816125,#694034 55%,#4c2756);border-color:#ffe39f}
.photo-option:before{content:'';position:absolute;z-index:-1;top:-42px;left:-18px;width:100px;height:100px;border-radius:50%;background:#ffffff12;box-shadow:88px 78px 0 #ffffff0c}
.photo-option:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.2);border-color:#fff}
.photo-option:focus-visible{outline:3px solid #fff8b3;outline-offset:2px}
.photo-option:disabled{cursor:default;opacity:.7}
.photo-option strong{font-weight:1000;font-size:clamp(13px,1.8vw,20px);line-height:1.18;overflow-wrap:anywhere;text-align:center;text-shadow:0 2px 9px #000c}
.photo-option-icon{font-size:27px;filter:drop-shadow(0 0 7px #ffffff70)}
.photo-option.photo-selected{border-color:#fff5a2;box-shadow:0 0 15px #ffe16b7a,inset 0 0 20px #fff8ac2b}
.photo-option.photo-correct-answer{opacity:1;background:linear-gradient(140deg,#116643,#248b5a);border-color:#7dffc7;box-shadow:0 0 14px #28c98270}
.photo-option.photo-waiting{cursor:wait}
.photo-challenge-preview .photo-placeholder{font-size:90px;filter:drop-shadow(0 0 20px #91eeff77)}
.photo-challenge-preview .photo-big-card b{font-size:14px;color:#fff2b7}
.photo-option-preview{cursor:default;opacity:.9}
.photo-option-preview span{font-size:28px}
.photo-option-preview b{font-size:15px}
.surprise-stage[data-game="chanteur"]:has(.photo-results),.surprise-stage[data-game="animaux"]:has(.photo-results){height:418px;overflow:auto}
.surprise-stage:has(.photo-results) .photo-challenge{height:284px}
.photo-results{position:relative;z-index:1;margin:9px 2px 0;padding:8px 10px;background:#081d2aee;border:1px solid #74def2;border-radius:12px;text-align:center;color:#fff0b3;font-size:12px}
.photo-results>b{display:block;color:#ffdc7b;letter-spacing:.07em;font-size:14px}
.photo-correct{font-weight:800;color:#a0ffd5;margin:5px 0}
.photo-podium{display:inline-flex;align-items:center;gap:7px;justify-content:center;margin:3px 5px;padding:4px 8px;border:1px solid #ffffff3b;border-radius:8px;background:#29345a}
.photo-podium strong{color:#fff}.photo-podium span{font-weight:900;color:#a0ffd5}
@media(max-width:680px){
  .surprise-nav .surprise-choice{height:51px;min-height:51px;padding:5px 7px;flex:1 1 27%}
  .surprise-stage[data-game="chanteur"],.surprise-stage[data-game="animaux"]{height:300px;padding:6px}
  .photo-challenge{grid-template-columns:minmax(105px,.95fr) minmax(0,1.3fr);gap:6px;max-height:283px}
  .photo-options{gap:5px}
  .photo-big-card{padding:5px;border-radius:11px}
  .photo-big-label{font-size:9px}
  .photo-credit{font-size:8px}
  .photo-option{gap:5px;padding:4px;border-radius:10px}
  .photo-option-icon{font-size:20px}
  .photo-option strong{font-size:clamp(11px,3vw,16px)}
  .photo-results{margin-top:5px;padding:6px}
  .surprise-stage[data-game="chanteur"]:has(.photo-results),.surprise-stage[data-game="animaux"]:has(.photo-results){height:395px}
  .surprise-stage:has(.photo-results) .photo-challenge{height:266px}
}
