/* Watch Together · v75 Diwali theme for the join screen (body.dw, set by diwali.js only when theme = diwali).
   Loaded after halloween.css so these rules win over body.hw ones while the free-room offer runs. */
body.dw{--ink:#fff3e6;--muted:#f0c9e0;--card:#2a0b3dcc;--lav2:#5e2a6e;--pink:#ffb31f;--lav:#e0307a;color:#fff3e6;
 background:radial-gradient(120% 70% at 50% -10%,#7a1d6b 0%,#4a1060 36%,#24073a 70%,#14051f 100%) fixed}
body.dw::before{opacity:.55;background-image:radial-gradient(#ffe7a3 1px,transparent 1.5px),radial-gradient(#ff9ac8 .8px,transparent 1.3px);background-size:52px 52px,77px 77px;background-position:0 0,26px 38px}
body.dw::after{content:"";position:fixed;left:-10%;right:-10%;bottom:-40px;height:190px;pointer-events:none;z-index:0;
 background:radial-gradient(60% 80% at 30% 100%,rgba(255,180,60,.20),transparent 70%),radial-gradient(55% 70% at 75% 100%,rgba(224,48,122,.20),transparent 70%);filter:blur(6px)}
body.dw .login-wrap{padding:18px 14px 70px;align-items:flex-start}
body.dw .card.login{position:relative;max-width:380px;padding:16px 16px 26px;background:linear-gradient(180deg,rgba(62,14,78,.88),rgba(30,7,46,.92));border:1px solid rgba(255,200,90,.38);
 box-shadow:0 0 0 1px rgba(0,0,0,.25),0 18px 50px rgba(0,0,0,.45),0 0 60px rgba(255,170,40,.16);overflow:visible}
body.dw .join .logo.logo-img{width:56px;height:56px;border-radius:16px;margin:-44px auto 4px;box-shadow:0 0 0 3px #3a0f4f,0 0 26px rgba(255,190,60,.6);position:relative;z-index:3}
body.dw .login h1{font-size:22px;color:#fff;text-shadow:0 0 18px rgba(255,190,70,.5)}
body.dw .join label{color:#ffd9ec}
body.dw .input{background:#1c0629;color:#fff;border-color:#5e2a6e}
body.dw .input::placeholder{color:#c79ad8}
body.dw .input:focus{border-color:#ffc23a;box-shadow:0 0 0 3px rgba(255,194,58,.2)}
body.dw .btn{background:linear-gradient(135deg,#ffe07a 0%,#ffb31f 50%,#f08a0c 100%);color:#3a1500;box-shadow:0 6px 18px rgba(255,170,30,.38),inset 0 1px 0 rgba(255,255,255,.5);text-shadow:0 1px 0 rgba(255,255,255,.3)}
body.dw .btn.soft{background:#3d1350;color:#fff3e6;box-shadow:0 4px 12px rgba(0,0,0,.35),inset 0 0 0 1px #6e2f80;text-shadow:none}
body.dw .err{color:#ffc2a0}
body.dw .or{color:#e0b3d6}
body.dw .loginsec,body.dw .signed{border-top-color:#6e2f80}
body.dw .seg2,body.dw .seg{background:#1c0629;box-shadow:inset 0 0 0 1px #5e2a6e}
body.dw .seg2 button,body.dw .seg button{color:#ffe6f3}
body.dw .seg2 button.active,body.dw .seg button.active{background:linear-gradient(135deg,#ff5a9a,#c2185b);color:#fff;text-shadow:none}
body.dw .sheet{background:#2a0b3d;color:#fff3e6;box-shadow:0 -10px 40px rgba(0,0,0,.5),0 -2px 0 rgba(255,190,60,.4)}
body.dw .sheet .x{background:#45175a;color:#fff}
body.dw .dim{background:rgba(14,3,22,.6)}
body.dw .pwbox{background:#1c0629;border-color:#ffc23a}
body.dw .pwbox .dots{color:#ffe7a3}
body.dw .toast{background:#45175a;color:#fff}
body.dw .hint,body.dw .tgnote,body.dw .muted{color:#e7bfdc}
body.dw .hwmine{color:#ffe6f3}body.dw .hwmine .code{color:#ffd23a}
body.dw .hwlink{color:#ffc23a}body.dw .hwlink.del{color:#ff9ac0}
body.dw .hwnote{color:#e0b3d6}
body.dw .hwcorner{display:none}
/* "Making your room…" while halloween.js has the button disabled */
body.dw #createFree:disabled{color:transparent;text-shadow:none}
body.dw #createFree:disabled::before{content:"Making your room… 🪔";position:absolute;inset:0;display:grid;place-items:center;color:#3a1500}

/* ---- poster ---- */
.dwposter{position:relative;margin:2px 0 14px;border-radius:20px;overflow:hidden;min-height:250px;text-align:center;isolation:isolate;
 background:radial-gradient(80% 55% at 50% 100%,rgba(255,170,40,.42),transparent 70%),radial-gradient(70% 50% at 50% 30%,rgba(224,48,122,.35),transparent 70%),linear-gradient(180deg,#24073a 0%,#4a1060 45%,#7a1d6b 78%,#a3305a 100%);
 box-shadow:inset 0 0 0 1px rgba(255,210,110,.42),inset 0 -30px 50px rgba(255,160,30,.22),0 10px 26px rgba(0,0,0,.45)}
.dwposter.dwonly{min-height:232px}
.dwposter .dwsky{position:absolute;inset:0;z-index:-2;opacity:.7;background-image:radial-gradient(#fff 1px,transparent 1.4px);background-size:37px 31px;background-position:9px 6px;-webkit-mask:linear-gradient(#000 0 45%,transparent 70%);mask:linear-gradient(#000 0 45%,transparent 70%)}
.dwposter .rg-bg{position:absolute;left:50%;top:50%;width:250px;height:250px;margin:-150px 0 0 -125px;opacity:.10;z-index:-1}
.dwposter .dwtoran{position:absolute;left:0;top:0;width:100%;height:40px;z-index:3;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}
.dwposter .fw{position:absolute;width:64px;height:64px;z-index:-1;opacity:0;transform-box:fill-box;animation:dwBurst 4.2s ease-out infinite}
.dwposter .fw.f1{left:14px;top:40px}.dwposter .fw.f2{right:12px;top:30px;width:56px;height:56px;animation-delay:-1.4s}.dwposter .fw.f3{left:58%;top:98px;width:44px;height:44px;animation-delay:-2.8s}
@keyframes dwBurst{0%{opacity:0;transform:scale(.15)}12%{opacity:1}55%{opacity:.85;transform:scale(1)}80%,100%{opacity:0;transform:scale(1.12)}}
.dwposter .sp{position:absolute;height:auto;z-index:-1;animation:dwTw 3.1s ease-in-out infinite}
@keyframes dwTw{0%,100%{opacity:.2;transform:scale(.6)}50%{opacity:1;transform:scale(1)}}
.dwtxt{position:relative;z-index:2;padding:36px 14px 0}
.dwkick{color:#ffe7a3!important;background:rgba(36,7,58,.6)!important;border-color:rgba(255,210,110,.5)!important}
.dwtitle{margin:8px 0 2px;font:italic 900 36px/1.02 Georgia,"Times New Roman",serif;letter-spacing:.5px;
 background:linear-gradient(180deg,#fffbe0 0%,#ffe07a 38%,#ffb31f 70%,#e0760c 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
 filter:drop-shadow(0 2px 0 #4a1060) drop-shadow(0 0 14px rgba(255,200,60,.6))}
.dwsub b{color:#3a1500!important;background:linear-gradient(135deg,#fff09a,#ffb31f)!important}
.dwsub2{font-size:15px}
.dwposter .hwtime{background:rgba(36,7,58,.65);color:#fff0c8}
.dwfloor{position:relative;z-index:2;height:78px;margin-top:2px}
.dwfloor .rg-floor{position:absolute;left:50%;bottom:-62px;width:230px;height:230px;margin-left:-115px;transform:perspective(300px) rotateX(64deg);transform-origin:50% 50%;opacity:.95;filter:drop-shadow(0 0 10px rgba(255,180,60,.35))}
.dwdiyas{position:absolute;left:0;right:0;bottom:4px;display:flex;justify-content:space-between;align-items:flex-end;padding:0 8px}
.dwg{display:flex;align-items:flex-end}
.dwdiyas .dy{width:66px}.dwdiyas .dy.s{width:48px}

/* ---- diya (SVG clay lamp; flame flickers with transform/opacity only) ---- */
.dy{display:block;height:auto;overflow:visible}
.dy [class^="dy-f"]{transform-box:fill-box;transform-origin:50% 100%;animation:dwFlick 1.9s ease-in-out infinite}
.dy .dy-f1{animation-duration:2.3s;animation-delay:-.7s}.dy .dy-f2{animation-duration:2.1s;animation-delay:-1.3s}
.dy .dy-halo{animation:dwGlow 2.6s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 50%}
.dy .dy-pool{animation:dwGlow 3.1s ease-in-out infinite}
@keyframes dwFlick{0%,100%{transform:scale(1,1) rotate(0)}20%{transform:scale(.96,1.06) rotate(-2deg)}45%{transform:scale(1.03,.94) rotate(1.5deg)}70%{transform:scale(.98,1.04) rotate(-1deg)}}
@keyframes dwGlow{0%,100%{opacity:.85}50%{opacity:1}}
.dwcorner{position:absolute;bottom:-16px;width:54px;z-index:4;pointer-events:none}
.dwcorner.l{left:-10px}.dwcorner.r{right:-8px;width:44px;bottom:-12px}
#sFree .dy.dwready{width:96px;margin:0 auto 2px}

@media (prefers-reduced-motion: reduce){
 .dy [class^="dy-f"],.dy .dy-halo,.dy .dy-pool,.dwposter .fw,.dwposter .sp{animation:none!important}
 .dwposter .fw{opacity:.55;transform:none}
 .dwposter .sp{opacity:.8}
}

/* v74b pieces: 2-4 people picker sheet + 🔑 Login chip */
body.dw .hwsize button{background:#3d1350;color:#fff3e6;box-shadow:inset 0 0 0 1px #6e2f80}
body.dw .hwsize button.active{background:linear-gradient(135deg,#ffe07a,#ffb31f 55%,#f08a0c);color:#3a1500;box-shadow:0 6px 16px rgba(255,170,30,.35)}
body.dw .hwlogin{background:#3d1350;color:#ffe7a3;box-shadow:0 4px 14px rgba(0,0,0,.4),inset 0 0 0 1px rgba(255,200,90,.55)}
#sFree .dy.dwready{width:96px;margin:0 auto 2px}
