/* MEGAWIN Reference-Matched Homepage V4 | cosmetic only */
:root { --mw-ref-pink:#fd4181; --mw-ref-gold:#ffd776; }
.site-header{background:linear-gradient(180deg,#300a19 0%,#350914 48%,#21070e 100%)!important;border-bottom:1px solid #f0487a88!important;box-shadow:0 4px 22px #fe47792c,0 1px 0 #e9bd65aa!important}
.site-header .logo-text{position:relative;color:#ffdb84!important;font-style:italic!important;font-weight:950!important;text-shadow:0 2px 0 #854d14,0 0 10px #fcae4a,0 0 26px #f55156!important}
.site-header .logo-text::before{content:'♛';position:absolute;font-style:normal;font-size:16px;top:-15px;left:50%;transform:translateX(-50%);color:#ffe9a8;text-shadow:0 0 15px #ffa43f}
.site-header .btn-login{background:linear-gradient(170deg,#e13a7b,#a81251 72%,#540b2e)!important;box-shadow:0 3px 0 #5c123c,0 0 14px #ef3d7660!important;border:1px solid #e96a9d!important}
.site-header .btn-register{background:linear-gradient(170deg,#ffea97,#f6c34b 60%,#ae6b1c)!important;box-shadow:0 3px 0 #704309,0 0 12px #e6a53c66!important;border:1px solid #ffe19a!important}
/* Provider tiles: the supplied reference artwork has its own exact logo, sparkle frame and play icon. */
.mw-home-footer .mw-provider-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:clamp(6px,1.6vw,11px)!important;margin-top:12px!important}
.mw-home-footer .mw-provider-grid>a.mw-ref-provider{position:relative!important;min-width:0!important;width:100%!important;min-height:unset!important;aspect-ratio:1/1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;border-radius:13px!important;border:1px solid #ff539b!important;background:radial-gradient(ellipse at 50% 14%,#65213c,#250914 72%)!important;box-shadow:0 0 0 1px #ffd58e29 inset,0 0 11px #fb40845e,0 5px 16px #0007!important;transition:transform .35s ease,filter .35s ease,box-shadow .35s ease!important;isolation:isolate!important;text-decoration:none!important;color:#ffdc87!important}
.mw-home-footer .mw-provider-grid>a.mw-ref-provider.mw-ref-art{background-image:var(--mw-ref-img)!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;border-color:#ff629e!important}
.mw-home-footer .mw-provider-grid>a.mw-ref-provider.mw-ref-art>img,.mw-home-footer .mw-provider-grid>a.mw-ref-provider.mw-ref-art>span{display:none!important}
.mw-home-footer .mw-provider-grid>a.mw-ref-provider:not(.mw-ref-art)>img{width:90%!important;max-height:45%!important;height:auto!important;object-fit:contain!important;opacity:1!important;filter:drop-shadow(0 1px 3px #000b)!important}
.mw-home-footer .mw-provider-grid>a.mw-ref-provider:not(.mw-ref-art)>span{font-size:clamp(9px,2.3vw,14px)!important;line-height:1.2!important;font-weight:800!important;text-align:center!important;overflow-wrap:anywhere!important;padding:3px!important}
.mw-home-footer .mw-provider-grid>a.mw-ref-provider:not(.mw-ref-art):after{content:'▶  MEGAWIN';position:absolute;bottom:8%;left:0;right:0;font-size:clamp(7px,1.4vw,10px);font-weight:900;color:#f7ce6c;text-align:center}
.mw-home-footer .mw-provider-grid>a.mw-ref-provider:before{content:'';position:absolute;z-index:3;inset:-110% -130%;pointer-events:none;background:linear-gradient(95deg,transparent 44%,#ffeba900 48%,#ffda8a80 50%,#ffffff7a 52%,transparent 58%);transform:translateX(-120%) rotate(11deg);animation:mwRefSweep 7s ease-in-out infinite}
.mw-home-footer .mw-provider-grid>a.mw-ref-provider:hover,.mw-home-footer .mw-provider-grid>a.mw-ref-provider:focus-visible{transform:translateY(-4px) scale(1.025)!important;box-shadow:0 0 0 1px #ffe49a inset,0 0 26px #ff458dba,0 7px 20px #0009!important;filter:brightness(1.09)!important}
.mw-home-footer .mw-provider-grid>a.mw-ref-provider:nth-child(4n + 2)::before{animation-delay:-1.8s}
.mw-home-footer .mw-provider-grid>a.mw-ref-provider:nth-child(4n + 3)::before{animation-delay:-4.1s}
.mw-home-footer .mw-provider-grid>a.mw-ref-provider:nth-child(4n + 4)::before{animation-delay:-5.5s}
@keyframes mwRefSweep{0%,55%{transform:translateX(-120%) rotate(11deg)}82%,100%{transform:translateX(120%) rotate(11deg)}}
/* Banner is a separate, user-reference-matched artwork directly beneath the actual provider grid. */
.mw-ref-casino{position:relative;display:block!important;overflow:hidden;isolation:isolate;width:100%;aspect-ratio:2.37/1;min-height:120px;margin:15px 0 19px!important;background:#0c3525;border:2px solid #e6bb54;border-radius:13px;box-shadow:0 0 0 1px #fff4ad66 inset,0 6px 23px #0009,0 0 17px #ffc64d59;transition:transform .3s ease;text-decoration:none!important}
.mw-ref-casino img{display:block;width:100%;height:100%;object-fit:cover!important;transition:transform .6s ease;transform-origin:center}
.mw-ref-casino::after{content:'';position:absolute;pointer-events:none;inset:0;background:linear-gradient(110deg,transparent 42%,#ffe6b000 48%,#fffac255 51%,transparent 57%);transform:translateX(-100%);animation:mwRefBannerShine 9s ease-in-out infinite}
.mw-ref-casino:hover img,.mw-ref-casino:focus-visible img{transform:scale(1.035)}
@keyframes mwRefBannerShine{0%,65%{transform:translateX(-100%)}86%,100%{transform:translateX(100%)}}
/* Stronger but restrained 9-card hot section animation; game anchors are never modified. */
#top-hot-games .game-grid{gap:10px!important;perspective:950px}
#top-hot-games .game-card{position:relative!important;isolation:isolate!important;overflow:hidden!important;border:1px solid #ff4c96!important;border-radius:14px!important;background:#330c1e!important;transform:translateZ(0);box-shadow:0 0 0 1px #ffe6a833 inset,0 0 12px #ff41974c,0 5px 13px #000a!important;animation:mwRefPop .9s cubic-bezier(.16,.8,.2,1) backwards,mwRefPulse 5.8s ease-in-out infinite!important;animation-delay:calc(var(--mw-i,0)*85ms),calc(1000ms + var(--mw-i,0)*170ms)!important;transition:transform .38s ease,box-shadow .38s ease!important}
#top-hot-games .game-card:before{content:''!important;position:absolute!important;z-index:4!important;top:-45%!important;bottom:-45%!important;left:-150%!important;width:75%!important;pointer-events:none!important;background:linear-gradient(100deg,transparent 20%,#ffd87300 40%,#ffdd8980 53%,#fff8d9ad 57%,transparent 75%)!important;transform:skewX(-19deg)!important;animation:mwRefHotSweep 6.1s ease-in-out infinite!important;animation-delay:calc(var(--mw-i,0)*.42s)!important}
#top-hot-games .game-card:after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2;box-shadow:inset 0 0 0 1px #ffe5ab44,inset 0 0 14px #ff568544}
#top-hot-games .game-card .game-card-img{transition:transform .7s cubic-bezier(.16,.8,.25,1),filter .5s ease!important;will-change:transform}
#top-hot-games .game-card:hover,#top-hot-games .game-card:focus-within{transform:translateY(-5px) scale(1.035)!important;box-shadow:0 0 0 1px #ffe6ad inset,0 0 28px #ff428faa,0 11px 26px #000a!important}
#top-hot-games .game-card:hover .game-card-img,#top-hot-games .game-card:focus-within .game-card-img{transform:scale(1.09)!important;filter:saturate(1.16) brightness(1.09)!important}
#top-hot-games .game-card .game-card-name{position:relative;z-index:5!important;background:linear-gradient(180deg,#50142f,#350d21)!important}
@keyframes mwRefPop{from{opacity:0;transform:translateY(24px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes mwRefPulse{0%,100%{filter:drop-shadow(0 0 0 transparent)}50%{filter:drop-shadow(0 0 8px #ff499755)}}
@keyframes mwRefHotSweep{0%,55%{left:-150%;opacity:0}63%{opacity:1}83%{left:155%;opacity:1}86%,100%{left:155%;opacity:0}}
@media (min-width:760px){.mw-home-footer .mw-provider-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}.mw-ref-casino{max-height:440px}}
@media (max-width:400px){.mw-home-footer .mw-provider-grid{gap:6px!important}.mw-home-footer .mw-provider-grid>a.mw-ref-provider{border-radius:10px!important}.mw-ref-casino{margin:13px 0 17px!important}}
@media (prefers-reduced-motion:reduce){#top-hot-games .game-card,#top-hot-games .game-card:before,.mw-home-footer .mw-provider-grid>a.mw-ref-provider:before,.mw-ref-casino:after{animation:none!important}#top-hot-games .game-card:hover,.mw-home-footer .mw-provider-grid>a.mw-ref-provider:hover{transform:none!important}}
