/* MP Raffle (js/raffle.js). Same building blocks as Home: the league-style hero, h14 cards with an h2 header, white pill buttons. */
#rfs .rf{--pad:16px;padding:4px var(--pad) calc(var(--sab,0px) + 40px);display:flex;flex-direction:column;gap:14px;max-width:640px;margin:0 auto;width:100%;box-sizing:border-box}
#rfs .rf>*{flex-shrink:0;margin-top:0}
.rf-ai{position:relative;flex:none;display:block;width:44px;height:44px;border-radius:13px;overflow:hidden;box-shadow:0 8px 18px -10px rgba(0,0,0,.9)}
.rf-ai>.gic>svg{width:80%!important;height:80%!important}
.rf-ai.big{width:76px;height:76px;border-radius:22px;transform:rotate(6deg);box-shadow:0 16px 30px -14px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.12)}
.rf-bal{flex:none;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px 0 9px;border-radius:99px;background:rgba(255,255,255,.08);font-weight:800;font-size:13.5px;font-variant-numeric:tabular-nums}
.rf-bal .mp-i{width:16px;height:16px;margin:0}

/* ---------- jackpot ---------- */
.rf-hero{position:relative;overflow:hidden;padding:16px 18px 16px;border-radius:24px;
  background:radial-gradient(90% 120% at 85% -10%,rgba(250,204,21,.38),transparent 60%),radial-gradient(70% 90% at 0% 110%,rgba(234,88,12,.22),transparent 70%),linear-gradient(180deg,#1f1708,#0f0b05);
  border:1px solid rgba(250,204,21,.3);box-shadow:0 20px 40px -24px rgba(250,204,21,.6)}
.rf-hero.skl{min-height:210px}
.rf-shine{position:absolute;right:-30%;top:-60%;width:120%;aspect-ratio:1;background:conic-gradient(from 0deg,transparent 0 20deg,rgba(255,236,170,.08) 30deg,transparent 40deg 110deg,rgba(255,236,170,.06) 120deg,transparent 130deg 200deg,rgba(255,236,170,.08) 210deg,transparent 220deg 290deg,rgba(255,236,170,.06) 300deg,transparent 310deg);animation:rf-rot 26s linear infinite;pointer-events:none}
@keyframes rf-rot{to{transform:rotate(360deg)}}
.rf-spark{position:absolute;width:4px;height:4px;border-radius:50%;background:#fde68a;box-shadow:0 0 8px #facc15;opacity:0;animation:rf-tw 3.2s ease-in-out infinite;pointer-events:none}
.rf-spark:nth-of-type(2){left:58%;top:18%;animation-delay:.2s}.rf-spark:nth-of-type(3){left:92%;top:12%;animation-delay:.9s}.rf-spark:nth-of-type(4){left:66%;top:56%;animation-delay:1.6s}
.rf-spark:nth-of-type(5){left:96%;top:50%;animation-delay:.5s}.rf-spark:nth-of-type(6){left:76%;top:8%;animation-delay:2.2s}.rf-spark:nth-of-type(7){left:52%;top:40%;animation-delay:1.2s}
.rf-spark:nth-of-type(8){left:84%;top:66%;animation-delay:2.6s}.rf-spark:nth-of-type(9){left:40%;top:14%;animation-delay:1.9s}
@keyframes rf-tw{0%,100%{opacity:0;transform:scale(.4)}50%{opacity:1;transform:scale(1.2)}}
.rf-hh{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px}
.rf-tag{display:inline-flex;align-items:center;height:26px;padding:0 11px;border-radius:99px;font-size:12px;font-weight:800;color:#fde68a;
  background:linear-gradient(#1a1307,#1a1307) padding-box,linear-gradient(135deg,#fde68a,#b45309) border-box;border:1.5px solid transparent}
.rf-hh em{display:inline-flex;align-items:center;gap:6px;font-style:normal;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.rf-hh em i{width:7px;height:7px;border-radius:50%;background:#30d158;box-shadow:0 0 0 3px rgba(48,209,88,.22);animation:rf-pulse 1.8s ease-in-out infinite}
@keyframes rf-pulse{50%{box-shadow:0 0 0 6px rgba(48,209,88,0)}}
.rf-hm{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}
.rf-hl{min-width:0;display:flex;flex-direction:column;gap:2px}
.rf-lab{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:rgba(253,230,138,.7)}
.rf-pot{margin:2px 0 0;display:flex;align-items:center;gap:8px;font-size:clamp(34px,10.5vw,48px);font-weight:900;letter-spacing:-.045em;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;
  background:linear-gradient(180deg,#fffaf0,#fde68a 40%,#f59e0b);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 4px 16px rgba(250,204,21,.35));transition:transform .3s;transform-origin:left center}
.rf-pot .mp-i{width:.7em;height:.7em;margin:0;flex:none;-webkit-text-fill-color:initial}
.rf-pot.bump{transform:scale(1.04)}
.rf-grow{margin:4px 0 0;font-size:13px;font-weight:600;color:rgba(255,236,190,.7)}.rf-grow b{color:#fcd34d}
.rf-stats{position:relative;display:grid;grid-template-columns:repeat(3,1fr);margin-top:16px;padding-top:14px;border-top:1px solid rgba(253,230,138,.14)}
.rf-stats div{display:flex;flex-direction:column;gap:2px}
.rf-stats div+div{padding-left:14px;border-left:1px solid rgba(253,230,138,.1)}
.rf-stats b{font-size:19px;font-weight:900;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:#fff}
.rf-stats small{font-size:11.5px;font-weight:700;color:rgba(253,230,138,.6)}

/* ---------- your tickets ---------- */
.rf-you{display:flex;align-items:center;gap:14px;padding:14px 16px!important}
.rf-you>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.rf-you>div b{font-size:16px;font-weight:800}.rf-you>div small{font-size:12.5px;font-weight:600;color:rgba(235,235,245,.55)}
.rf-ring{position:relative;flex:none;width:52px;height:52px;display:grid;place-items:center}
.rf-ring svg{position:absolute;inset:0;transform:rotate(-90deg)}
.rf-ring circle{fill:none;stroke:rgba(255,255,255,.1);stroke-width:5}
.rf-ring circle.v{stroke:#fbbf24;stroke-linecap:round;transition:stroke-dasharray .5s}
.rf-ring b{position:relative;font-size:12px;font-weight:850;font-variant-numeric:tabular-nums}
.rf-you.none .rf-ring b{color:rgba(255,255,255,.5)}

/* ---------- buy ---------- */
.rf-buy{display:flex;flex-direction:column;gap:12px}
.rf-buy .h14-h{margin-bottom:2px}
.rf-q{display:flex;align-items:center;gap:8px}
.rf-step{all:unset;cursor:pointer;flex:none;width:52px;height:52px;border-radius:99px;display:grid;place-items:center;background:rgba(255,255,255,.08);transition:transform .12s}
.rf-step svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round}
.rf-step:active{transform:scale(.92)}
.rf-n{flex:1;min-width:0;height:52px;border-radius:16px;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.07);display:flex;align-items:center;justify-content:center;gap:6px}
.rf-n input{all:unset;width:5.5ch;text-align:right;font-size:26px;font-weight:900;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:#fff}
.rf-n input::-webkit-inner-spin-button{display:none}
.rf-n small{font-size:14px;color:rgba(255,255,255,.5);font-weight:700}
.rf-chips{display:flex;gap:6px}
.rf-chips button{all:unset;cursor:pointer;flex:1;text-align:center;height:34px;line-height:34px;border-radius:99px;background:rgba(255,255,255,.07);font-size:13.5px;font-weight:700;color:rgba(255,255,255,.78)}
.rf-chips button.on{background:#fff;color:#000}
.rf-sum{display:flex;flex-direction:column;gap:9px;padding:12px 14px;border-radius:16px;background:rgba(0,0,0,.24);border:1px solid rgba(255,255,255,.06)}
.rf-sum>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13.5px}
.rf-sum>div>span{color:rgba(235,235,245,.6);font-weight:600}
.rf-sum b{display:inline-flex;align-items:center;gap:5px;font-size:15px;font-weight:850;font-variant-numeric:tabular-nums;white-space:nowrap}
.rf-sum b .mp-i{width:15px;height:15px;margin:0}.rf-sum b.up{color:#fcd34d}.rf-sum b em{font-style:normal;color:rgba(255,255,255,.4);font-weight:700}
.rf-bar{display:block;height:6px;border-radius:99px;background:linear-gradient(90deg,#fbbf24 0 var(--a),rgba(251,191,36,.45) var(--a) var(--b),rgba(255,255,255,.1) var(--b))}
.rf-go{all:unset;cursor:pointer;box-sizing:border-box;width:100%;height:52px;border-radius:99px;text-align:center;line-height:52px;font-size:16px;font-weight:800;color:#0b0a12;background:#fff;box-shadow:0 12px 28px -14px rgba(255,255,255,.4);transition:transform .12s,opacity .15s}
.rf-go:active{transform:scale(.98)}.rf-go[disabled]{opacity:1;background:rgba(255,255,255,.1);color:rgba(255,255,255,.5);cursor:default;box-shadow:none}

/* ---------- admin ---------- */
.rf-adm{background:linear-gradient(160deg,rgba(143,130,236,.14),rgba(255,255,255,.03) 70%)!important;border-color:rgba(143,130,236,.3)!important}
.rf-adm .h14-h{margin-bottom:8px}.rf-adm .h14-h small{color:#c4b5fd}
.rf-adm p{margin:0 0 12px;font-size:13.5px;line-height:1.45;color:rgba(255,255,255,.7)}.rf-adm p b{color:#fff}
.rf-draw{all:unset;cursor:pointer;box-sizing:border-box;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;height:48px;border-radius:99px;background:var(--a,#8f82ec);font-size:15px;font-weight:800;color:#fff}
.rf-draw svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.rf-draw[disabled]{opacity:.45;cursor:default}

/* ---------- lists ---------- */
.rf-lb .h14-h{margin-bottom:6px}
.rf-list{display:flex;flex-direction:column}
.rf-r{display:flex;align-items:center;gap:10px;padding:10px 2px;cursor:pointer}
.rf-r+.rf-r{border-top:1px solid rgba(255,255,255,.06)}
.rf-r.me{margin:0 -8px;padding-left:10px;padding-right:10px;border-radius:14px;background:rgba(250,204,21,.08)}
.rf-r em{font-style:normal;font-size:10.5px;font-weight:850;padding:1px 6px;border-radius:99px;background:#fde68a;color:#3b2503;margin-left:4px;vertical-align:2px}
.rf-rk{flex:none;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:850;color:rgba(255,255,255,.5)}
.rf-r.p1 .rf-rk{background:linear-gradient(135deg,#fde68a,#f59e0b);color:#3b2503}.rf-r.p2 .rf-rk{background:linear-gradient(135deg,#f1f5f9,#94a3b8);color:#1e293b}.rf-r.p3 .rf-rk{background:linear-gradient(135deg,#fdba74,#b45309);color:#2a1203}
.rf-av{flex:none;width:36px;height:36px;border-radius:50%;object-fit:cover;display:grid;place-items:center;font-weight:800;font-size:14px;color:#fff;background:linear-gradient(160deg,hsl(var(--h,40) 60% 55%),hsl(var(--h,40) 60% 32%))}
.rf-rm{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.rf-rm b{font-size:15px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rf-rm i{display:block;height:4px;width:var(--w);border-radius:99px;background:linear-gradient(90deg,#fbbf24,#f97316)}
.rf-r:not(.p1) .rf-rm i{opacity:.55}
.rf-rn{flex:none;display:flex;flex-direction:column;align-items:flex-end}.rf-rn b{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}.rf-rn small{font-size:11.5px;font-weight:600;color:rgba(255,255,255,.5)}
.rf-wn{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.rf-wn b{font-size:15px;font-weight:750}.rf-wn small{font-size:12px;font-weight:600;color:rgba(255,255,255,.5);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rf-pz{flex:none;display:inline-flex;align-items:center;gap:5px;font-size:15px;font-weight:850;color:#fcd34d;font-variant-numeric:tabular-nums}.rf-pz .mp-i{width:15px;height:15px;margin:0}

/* ---------- how it works ---------- */
.rf-steps{display:flex;flex-direction:column;gap:12px}
.rf-steps>div{display:flex;align-items:center;gap:12px}
.rf-steps>div>span{display:flex;flex-direction:column;gap:1px;min-width:0}.rf-steps b{font-size:14.5px;font-weight:750}.rf-steps small{font-size:12.5px;font-weight:600;line-height:1.35;color:rgba(235,235,245,.55)}
.rf-how{margin-top:12px;border-top:1px solid rgba(255,255,255,.07)}
.rf-how summary{cursor:pointer;padding:12px 0 0;font-weight:700;font-size:14px;color:rgba(255,255,255,.75);list-style:none}.rf-how summary::-webkit-details-marker{display:none}
.rf-how summary::after{content:" ›";color:rgba(255,255,255,.4)}
.rf-how[open] summary{padding-bottom:10px}
.rf-how ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;font-size:13.5px;line-height:1.45;color:rgba(255,255,255,.7)}
.rf-empty{display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;padding:40px 10px}.rf-empty small{color:rgba(255,255,255,.6)}
@media (min-width:1100px){.rf-hero{padding:22px 24px 20px}.rf-ai.big{width:96px;height:96px;border-radius:26px}}

/* the draw */
#rfwin{position:fixed;inset:0;z-index:210;display:grid;place-items:center;padding:24px;background:rgba(0,0,0,.7);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;transition:opacity .22s}
#rfwin.on{opacity:1}
.rf-wc{width:min(100%,360px);padding:28px 22px 20px;border-radius:28px;text-align:center;display:flex;flex-direction:column;gap:10px;
  background:radial-gradient(120% 80% at 50% 0%,rgba(250,204,21,.3),transparent 60%),linear-gradient(180deg,#24190a,#120c03);border:1px solid rgba(250,204,21,.45);box-shadow:0 30px 80px -20px rgba(250,204,21,.45)}
.rf-wc>small{font-size:12.5px;font-weight:900;letter-spacing:.2em;text-transform:uppercase;color:#fbbf24}
.rf-roll{height:56px;display:grid;place-items:center;overflow:hidden;border-radius:16px;background:rgba(0,0,0,.35)}
.rf-roll b{font-size:24px;font-weight:900;color:#fff}
.rf-roll b.win{font-size:28px;background:linear-gradient(180deg,#fff7d6,#f59e0b);-webkit-background-clip:text;background-clip:text;color:transparent;animation:rf-pop .5s cubic-bezier(.2,1.6,.4,1)}
@keyframes rf-pop{from{transform:scale(.6)}to{transform:none}}
#rfwp{margin:0;display:flex;flex-direction:column;gap:2px;min-height:44px}#rfwp b{font-size:26px;font-weight:900;color:#fcd34d}#rfwp span{font-size:13px;color:rgba(255,255,255,.6)}
@media (prefers-reduced-motion:reduce){.rf-shine,.rf-spark,.rf-hh em i{animation:none}}
/* Arcade lobby banner */
.lz-friends.rf-lobby{background:linear-gradient(120deg,rgba(250,204,21,.24),rgba(234,88,12,.16))!important;border-color:rgba(250,204,21,.3)!important}
.rf-lobby .rf-lic:not(.aih){flex:none;width:52px;height:46px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#fde68a,#f59e0b);transform:rotate(-6deg);box-shadow:0 8px 18px -8px rgba(245,158,11,.8)}
.rf-lobby .rf-lic svg{width:34px;height:34px;fill:none;stroke:#7c4a03;stroke-width:1.6}
.rf-lobby .lz-t small{color:#fcd34d!important}
