/* Mobile HAR: 7px gutters, 1:1 banners, four products, 53px tab bar.
   Nirvana palette/art remain local. Desktop/backoffice retain their layouts. */
.merlot-hero picture{display:block;width:100%;height:100%}
@media(max-width:768px){
 body:not(.backoffice){--mobile-header-height:96px;padding-bottom:calc(85px + env(safe-area-inset-bottom));background:#160f22!important;background-image:radial-gradient(circle at 12% 12%,#8d38cb2e,transparent 34%),radial-gradient(circle at 92% 35%,#ef32c41c,transparent 32%),linear-gradient(180deg,#160f22,#1c1029 58%,#130c1e)!important;background-attachment:fixed!important}
 body:not(.backoffice):has(dialog[open]){overflow:hidden}
 body:not(.backoffice) .header-bc{height:var(--mobile-header-height);padding:0;background:linear-gradient(180deg,#1c102bfa,#160f22f5)!important;box-shadow:0 8px 24px #09040f66;backdrop-filter:blur(14px)}
 body:not(.backoffice) .hdr-main-content-bc{height:46px;padding:0 7px;gap:6px;border-bottom:1px solid #b799cc14}
 body:not(.backoffice) .mobile-menu{display:none}
 body:not(.backoffice) .hdr-logo-bc{width:clamp(124px,36vw,150px);max-width:150px!important;height:40px;flex-shrink:1}
 body:not(.backoffice) .hdr-logo-bc img{width:100%!important;height:32px!important;object-fit:contain!important}
 body:not(.backoffice) .hdr-user-bc{gap:5px!important;margin:0}
 body:not(.backoffice) .hdr-user-bc .btn{min-width:53px;height:32px;padding:5px 9px!important;font-size:11px!important;border-radius:4px!important}
 body:not(.backoffice) .hdr-user-bc .btn.register{background:linear-gradient(110deg,#8753e6,#ad42db)!important;box-shadow:none!important;color:#fff}
 body:not(.backoffice) .hdr-user-bc .quick-button,body:not(.backoffice) .header-tier,body:not(.backoffice) .hdr-user-bc .balance-button,body:not(.backoffice) .language,body:not(.backoffice) #clock{display:none}
 body:not(.backoffice).mobile-signed-in .hdr-user-bc .balance-button{display:block;max-width:90px;min-width:0;padding:0 3px;border:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body:not(.backoffice).mobile-signed-in .hdr-user-bc .deposit-shortcut{display:flex;justify-content:center;align-items:center;width:30px;height:30px;min-width:30px;padding:0;background:#654080;border-radius:5px}
 body:not(.backoffice).mobile-signed-in .deposit-shortcut span{display:none}
 body:not(.backoffice).mobile-signed-in .hdr-logo-bc{max-width:124px!important}
 body:not(.backoffice) .account-trigger{width:40px;height:44px;padding:6px}
 body:not(.backoffice) .account-trigger .ui-icon{width:28px;height:28px}
 body:not(.backoffice) .settings-button{display:block;flex:none;width:32px;height:44px;background:transparent;color:#c5b6d3;font-size:15px;padding:0}
 body:not(.backoffice) .header-navigation{height:50px;border-radius:0;background:#160f22;border-bottom:1px solid #b799cc14}
 body:not(.backoffice) .nav-menu{height:50px;gap:0;overflow-x:auto;overscroll-behavior-x:contain;padding:0 2px;scrollbar-width:none}
 body:not(.backoffice) .header-navigation .nav-menu>li:nth-child(n){display:block}
 body:not(.backoffice) .header-navigation .nav-menu>li:has(a[href="/tickets"]){display:none}
 body:not(.backoffice) .header-navigation .nav-menu>li>.nav-menu-item{height:40px;margin:5px;border-radius:8px!important;padding:0 10px!important;font-size:11px;gap:6px;justify-content:center;border:1px solid #78499d80;background:linear-gradient(135deg,#261a34,#39224980);box-shadow:0 2px 8px -2px #754a9e40,inset 0 1px #ffffff0d;font-weight:500}
 body:not(.backoffice) .nav-menu-item img{width:16px;height:16px}
 body:not(.backoffice) .header-navigation .nav-menu>li>.nav-menu-item.active{color:#f2dcff;background:linear-gradient(135deg,#46305e,#382048);border-color:#a16fc1}
 body:not(.backoffice) .layout-content-holder-bc{margin:7px auto 0;padding:0 7px;width:100%;min-width:0}
 body:not(.backoffice) .hm-row-bc{margin-bottom:18px}
 body:not(.backoffice) .hero-slider.merlot-hero{aspect-ratio:1;border:1px solid #9c57c842;border-radius:14px;touch-action:pan-y;isolation:isolate;background:#160f22;box-shadow:0 18px 42px #09040f70,0 0 28px #7d31af20}
 body:not(.backoffice) .merlot-hero .hero-link{display:block;position:relative;height:100%;min-height:0;width:100%;background:#160f22}
 body:not(.backoffice) .merlot-hero picture{display:block;width:100%;height:100%;background:radial-gradient(circle at 70% 40%,#71379844,#160f22 72%)}
 body:not(.backoffice) .merlot-hero #hero-image{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;object-position:right center;filter:none}
 body:not(.backoffice) .merlot-hero .hero-link:after{display:none!important;content:none;background:none!important}
 body:not(.backoffice) .merlot-hero-copy{position:absolute;inset:0;display:flex;justify-content:flex-end;align-items:flex-start;width:100%;min-height:0;padding:18px 18px 66px;background:none;border:0;z-index:2;pointer-events:none}
 body:not(.backoffice) .merlot-hero-copy>small{font-size:8px;letter-spacing:2.4px;color:#e0baff;text-shadow:0 2px 7px #09030e}
 body:not(.backoffice) .merlot-hero-copy>strong{max-width:88%;font-size:clamp(21px,6.15vw,33px);line-height:1.07;letter-spacing:-.45px;margin:7px 0 0;text-shadow:0 3px 12px #08020e,0 1px 2px #08020e}
 body:not(.backoffice) .merlot-hero-copy>span{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;max-width:72%;margin-top:7px;font-size:9px;line-height:1.42;color:#f0e4f7;text-shadow:0 2px 7px #09030e}
 body:not(.backoffice) .merlot-hero-copy>b{display:none!important}
 body:not(.backoffice) .merlot-hero .hero-controls{display:none!important}
 body:not(.backoffice) .merlot-hero .hero-controls button{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #d79af24d;border-radius:50%;background:linear-gradient(145deg,#6f3c9b,#a348cb);color:#fff;font-size:22px;line-height:1;box-shadow:0 5px 12px #6d268c55;transition:transform .16s,filter .16s}
 body:not(.backoffice) .merlot-hero .hero-controls button:active{transform:scale(.92);filter:brightness(1.18)}
 body:not(.backoffice) .merlot-hero .hero-controls>span{min-width:38px;text-align:center;color:#f1ddff;font-weight:700;letter-spacing:.2px}
 body:not(.backoffice) .product-banner-container-bc:has(.merlot-product){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;gap:7px;overflow:visible;padding:0 0 4px;scroll-snap-type:none}
 body:not(.backoffice) .merlot-product{min-width:0!important;width:auto;min-height:0;aspect-ratio:500/610;display:flex;flex:none!important;flex-direction:column;justify-content:center;gap:6px;padding:7px 2px;border:1px solid #a862d85c;border-radius:14px;background:radial-gradient(circle at 50% 28%,#a047c847,transparent 45%),linear-gradient(145deg,#2b173b,#432050);box-shadow:0 10px 22px #09040f5c,inset 0 1px #ffffff14}
 body:not(.backoffice) .merlot-product .merlot-product-art{width:78%;height:auto;aspect-ratio:1;flex:none;opacity:1;filter:drop-shadow(0 6px 10px #080310a6) saturate(1.18) contrast(1.05)}
 body:not(.backoffice) .merlot-product .merlot-product-label{font-size:clamp(7px,1.8vw,11px);white-space:normal;line-height:1.3;padding:0 2px}
 body:not(.backoffice) .sectionTitle{min-height:48px;height:auto!important;margin-bottom:10px;padding:12px 10px!important;border-radius:12px;gap:6px;border-inline-start:3px solid #9569b8;background:linear-gradient(110deg,#39224c,#23182f 70%)!important}
 body:not(.backoffice) .sectionTitleText{font-size:13px!important;line-height:18px;min-width:0}
 body:not(.backoffice) .section-count{font-size:9px;padding:4px 6px}
 body:not(.backoffice) .section-arrow{display:none}
 body:not(.backoffice) :is(.combination-grid,.player-grid,.recommended-grid,.tournament-grid){display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc(100% - 14px);gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 0 6px;scrollbar-width:thin}
 body:not(.backoffice) :is(.combination-card,.player-card,.recommended-card,.tournament-card){min-width:0;width:auto;scroll-snap-align:start}
 body:not(.backoffice) .game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 /* The mobile HAR home widgets have two rows; catalog pages keep a full grid. */
 body:not(.backoffice) :is(#home-slots,#home-live,#home-games){grid-template-columns:none;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-auto-columns:calc((100% - 14px)/3);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:6px;scrollbar-width:thin}
 body:not(.backoffice) :is(#home-slots,#home-live,#home-games) .game-card{scroll-snap-align:start;min-width:0}
 body:not(.backoffice) .hm-row-bc:has(>.temperature-grid){display:none}
 body:not(.backoffice) .provider-tile{min-width:110px;height:50px}
 body:not(.backoffice) .mobile-bottom{position:fixed;bottom:0;left:0;width:100%;display:flex;align-items:flex-end;height:calc(46px + env(safe-area-inset-bottom));padding:0 0 env(safe-area-inset-bottom);z-index:45;background:#151426f5;border-top:1px solid #6f536f80;backdrop-filter:blur(3px);box-shadow:0 -2px 10px #08061080;overflow:visible}
 .mobile-bottom :is(a,button){position:relative;display:flex;flex-direction:column;align-items:center;flex:1 1 20%;min-width:0;height:46px;justify-content:center;gap:1px;padding:3px 2px 4px;border-radius:0;background:none;color:#9f9dac;font-weight:500}
 .mobile-bottom .ui-icon{width:18px;height:18px;stroke-width:1.65}.mobile-bottom span{font-size:9px;line-height:11px;white-space:nowrap;font-weight:500}
 .mobile-bottom a.mobile-nav-reference{padding:4px 2px 4px;gap:1px}
 .mobile-bottom .mobile-bottom-icon{display:block;width:18px;height:18px;color:currentColor;filter:none}
 .mobile-bottom .mobile-bottom-icon-live{width:22px;height:20px}
 .mobile-bottom .mobile-live-badge{fill:#7654e8;stroke:none}
 .mobile-bottom .mobile-bottom-icon-casino{width:20px;height:18px}
 .mobile-bottom .mobile-casino-mark{fill:currentColor;stroke:none}
 .mobile-bottom :is(a,button):focus-visible{outline:2px solid #dec19f;outline-offset:-3px}
 .mobile-bottom a.mobile-slot-play{height:76px;padding:0 0 2px;align-self:flex-end;justify-content:flex-end;isolation:isolate;background:none;box-shadow:none}
 .mobile-bottom .mobile-slot-play img{display:block;position:relative;width:min(100%,58px);height:auto;max-height:56px;object-fit:contain;filter:drop-shadow(0 0 4px #754a9e77);transition:filter .15s}
 .mobile-bottom .mobile-slot-play img[hidden]{display:none}
 .mobile-bottom .mobile-slot-fallback{display:none}
 .mobile-bottom .mobile-slot-play.art-unavailable .mobile-slot-fallback{display:grid;place-content:center;width:58px;height:65px;white-space:normal;text-align:center;background:linear-gradient(135deg,#573573,#26172f);border:1px solid #ccac70;border-radius:14px;color:#f7e6bd;font-size:13px;line-height:17px;font-weight:800}
 .mobile-bottom a.mobile-slot-play[aria-current=page] img{filter:drop-shadow(0 0 7px #b788d4)}
 .mobile-bottom [aria-current=page]:not(.mobile-slot-play){color:#d7c6df;background:#76528a16;box-shadow:inset 0 1px #8e6a9f}
 .mobile-bottom [aria-expanded=true]{color:#d7c6df;background:#76528a16}
 body:not(.backoffice) .back-top{display:none}
 body:not(.backoffice) .settings-button{width:34px;height:34px;border-radius:50%;background:#6f7077;color:#08080a;font-size:0;display:grid;place-items:center;box-shadow:0 4px 12px #0005}
 body:not(.backoffice) .settings-button:after{content:'•••';font-size:17px;line-height:1;letter-spacing:.5px;transform:translateY(-2px)}
 body:not(.backoffice) .tools-dropdown{position:fixed;top:48px!important;right:7px!important;width:54px;padding:5px 0;background:#353535;border:0;border-radius:0 0 6px 6px;box-shadow:0 12px 24px #0008;overflow:visible}
 body:not(.backoffice) .tools-dropdown:before{top:-12px;right:8px;border-width:0 12px 12px;border-style:solid;border-color:transparent transparent #353535}
 body:not(.backoffice) .tools-dropdown :is(a,button){position:relative;display:grid;place-items:center;width:54px;height:54px;margin:0;padding:0;border:0;border-radius:0;background:transparent!important;color:#f1f1f1}
 body:not(.backoffice) .tools-dropdown :is(a,button):hover,
 body:not(.backoffice) .tools-dropdown :is(a,button):focus-visible{background:#ffffff14!important;color:#fff;outline:0}
 body:not(.backoffice) .tools-dropdown .ui-icon{width:26px;height:26px;stroke-width:1.8}
 body:not(.backoffice) .tools-dropdown small{position:absolute;top:7px;right:5px;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#ffca16;color:#3e3420;font-size:10px;font-weight:800}
 body:not(.backoffice) dialog:not(#account-modal):not(.mobile-menu-modal){width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;inset:0;border-radius:0;border:0;overscroll-behavior:contain;padding:54px 16px calc(20px + env(safe-area-inset-bottom))}
 body:not(.backoffice) :is(dialog.login-modal,dialog.signup-modal){padding:0!important}
 body:not(.backoffice) .auth-header{height:54px;min-height:54px;padding:10px 58px 10px 14px}
 body:not(.backoffice) .auth-header img{max-width:170px;object-fit:contain!important}
 body:not(.backoffice) .auth-body{padding:25px 20px}
 body:not(.backoffice) .signup-modal #modal-content{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body:not(.backoffice) .signup-modal .auth-header{flex:0 0 54px;position:relative;z-index:2;background:#171025}
 body:not(.backoffice) .signup-modal .signup-form{flex:1 1 auto;min-height:0;overflow:hidden}
 body:not(.backoffice) .signup-modal .auth-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px 14px 12px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 body:not(.backoffice) .signup-modal .auth-intro{font-size:12px}
 body:not(.backoffice) .signup-modal .modal-title{font-size:17px;line-height:1.25;margin:6px 0 14px;letter-spacing:-.25px}
 body:not(.backoffice) .signup-modal .signup-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 body:not(.backoffice) .signup-modal .signup-fields>input,
 body:not(.backoffice) .signup-modal .signup-fields :is(.auth-date,.auth-country){width:100%;min-width:0;min-height:48px;height:48px;margin:0;border:1px solid #b98cdb24;border-radius:7px}
 body:not(.backoffice) .signup-modal .signup-fields .auth-country{height:60px;min-height:60px;padding:7px 14px;overflow:visible}
 body:not(.backoffice) .signup-modal .auth-country select{display:block;width:100%;min-height:28px;height:28px;line-height:28px;margin-top:2px;padding:0;overflow:visible;text-overflow:ellipsis;white-space:nowrap}
 body:not(.backoffice) .signup-modal .auth-phone{display:grid;grid-template-columns:128px minmax(0,1fr);gap:8px;width:100%;min-width:0}
 body:not(.backoffice) .signup-modal .auth-phone :is(select,input:not([type=hidden])){display:block;width:100%;min-width:0;height:48px;margin:0;border:1px solid #b98cdb24;border-radius:7px;background:#352a49;color:#f0e9f6;font-size:16px}
 body:not(.backoffice) .signup-modal .auth-phone select{padding:0 8px;text-overflow:ellipsis}
 body:not(.backoffice) .signup-modal .auth-phone input{padding:0 12px}
 body:not(.backoffice) .signup-modal .signup-fields>input{padding:0 14px;background:#352a49}
 body:not(.backoffice) .signup-modal .signup-terms{margin:4px 0 0;padding:10px;border-radius:7px;background:#251a34;font-size:11px;line-height:1.45}
 body:not(.backoffice) .signup-modal .signup-disclosure{margin:0;padding:2px 2px 4px;font-size:10px;line-height:1.45}
 body:not(.backoffice) .signup-modal .signup-submit{flex:0 0 auto;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #b98cdb24;box-shadow:0 -10px 24px #100b1dcc}
 body:not(.backoffice) .signup-modal .signup-submit .btn-primary{min-height:46px;border-radius:7px;font-size:14px}
 body:not(.backoffice) .signup-modal .auth-support{display:none!important}
 body:not(.backoffice) .signup-modal .modal-close{position:absolute;top:5px;right:5px;z-index:4}
 body:not(.backoffice) .auth-support{margin:24px 16px;min-height:48px}
 body:not(.backoffice) dialog.mobile-menu-modal{inset:46px 0 0;margin:0;width:100%;max-width:none;height:calc(100dvh - 46px);max-height:calc(100dvh - 46px);border:0;border-radius:0;padding:0 0 env(safe-area-inset-bottom);overscroll-behavior:contain;background:#160f22}
 .mobile-menu-modal .modal-title{text-align:left;height:44px;line-height:44px;font-size:16px;margin:0;padding:0 14px;border-bottom:1px solid #b595cd26;font-weight:500;position:sticky;top:0;background:#21162e;z-index:2}
 .mobile-menu-modal .modal-close{position:fixed;top:46px;right:7px;z-index:4;width:44px;height:44px}
 .mobile-menu-auth{display:flex;gap:8px;padding:14px 7px}
 .mobile-menu-auth>button{display:flex;align-items:center;justify-content:center;gap:12px;flex:1;min-height:44px;text-align:left}
 .mobile-menu-auth [data-mobile-account]{justify-content:flex-start;padding:10px 12px;background:#2a1c3a;border-radius:6px}
 .mobile-menu-auth small{display:block;font-size:11px;color:#b7a3c7;margin-top:4px}.mobile-menu-auth b{margin-left:auto}
 .mobile-app-menu{padding:0 7px}
 .mobile-app-menu :is(a,button){display:flex;align-items:center;text-align:left;width:100%;min-height:48px;gap:10px;padding:5px 7px;background:none;border-bottom:1px solid #a983c514;font-size:13px;color:#e6d9f0}
 .mobile-nav-icon{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:4px;background:linear-gradient(145deg,#7840a6,#452458);color:#ead7fa}
 .mobile-nav-icon .ui-icon{width:18px;height:18px}.mobile-app-menu b{margin-left:auto;color:#a78db9;font-weight:400}
 .mobile-menu-secondary{padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:6px}
 .mobile-menu-secondary :is(a,button){display:flex;gap:6px;align-items:center;min-height:44px;font-size:11px;color:#beabd0;text-align:left;background:none}
 body:not(.backoffice) #account-modal{margin:0;inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0}
 body:not(.backoffice) .account-window{display:flex;flex-direction:column;position:relative;height:100%;min-width:0}
 body:not(.backoffice) .account-main{flex:1;min-height:0}
 body:not(.backoffice) .account-window .account-sidebar{display:none}
 body:not(.backoffice) .account-title{height:50px;padding:0 7px;gap:8px}
 body:not(.backoffice) .account-title h1{flex:1;min-width:0;font-size:12px;line-height:1.3}
 body:not(.backoffice) .account-title button{min-width:44px;min-height:44px}
 body:not(.backoffice) .account-title .mobile-account-menu{display:flex;align-items:center;gap:5px;font-size:18px;background:transparent;color:#ddc6ef}
 body:not(.backoffice) .mobile-account-menu span{font-size:11px}
 body:not(.backoffice) .account-body{padding:12px 7px calc(20px + env(safe-area-inset-bottom));overscroll-behavior:contain}
 body:not(.backoffice) .account-window.mobile-navigation-open .account-sidebar{display:block;position:absolute;inset:50px 0 0;width:100%;height:auto;z-index:5;padding:14px;overflow:auto;border:0;background:#21172d}
 body:not(.backoffice) .mobile-navigation-open .account-body{visibility:hidden}
 body:not(.backoffice) .account-sidebar :is(.account-identity,.bonus-wallet,.promo-code){display:flex}
 body:not(.backoffice) .account-sidebar .bonus-wallet{display:block}
 body:not(.backoffice) .account-sidebar :is(.wallet-card,.loyalty-shortcut,.account-group,.account-rewards){width:100%;min-width:0;margin-bottom:10px;height:auto}
 body:not(.backoffice) .account-sidebar .account-group>div{max-height:none;padding:6px}
 body:not(.backoffice) .account-sidebar .account-group>div>a{min-height:44px;display:flex;align-items:center;font-size:12px!important}
 body:not(.backoffice) .account-sidebar .account-logout{min-height:44px;width:100%}
 body:not(.backoffice) .account-sidebar .account-identity{margin-bottom:16px}
 body:not(.backoffice) .account-body .form-grid{grid-template-columns:1fr}
 body:not(.backoffice) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
 body:not(.backoffice) .layout-footer-holder-bc{padding:20px 14px!important}
 body:not(.backoffice) .footer-local{padding-bottom:20px}
 .mobile-menu-modal :is(a,button):focus-visible{outline:2px solid #c79ce9;outline-offset:-2px}
}
