/* Mobile HAR: 7px gutters, 1:1 banners, four products, 53px tab bar.
   Merlot 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}
 body:not(.backoffice):has(dialog[open]){overflow:hidden}
 body:not(.backoffice) .header-bc{height:var(--mobile-header-height);padding:0;background:#160f22!important;box-shadow:none}
 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(135deg,#7545a0,#613684)!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-radius:6px;touch-action:pan-y;isolation:isolate}
 body:not(.backoffice) .merlot-hero .hero-link{display:block;height:100%;width:100%}
 body:not(.backoffice) .merlot-hero #hero-image{width:100%;height:100%;aspect-ratio:1;object-fit:cover;object-position:center;filter:brightness(.8) saturate(.8)}
 body:not(.backoffice) .merlot-hero .hero-link:after{display:block;inset:0;background:linear-gradient(180deg,#160f22c9,#160f2255 30%,transparent 52%,#160f22a8 100%)}
 body:not(.backoffice) .merlot-hero-copy{position:absolute;inset:0;display:flex;justify-content:flex-start;align-items:flex-start;padding:6% 6% 18%;min-height:0;background:none}
 body:not(.backoffice) .merlot-hero-copy>small{font-size:8px;letter-spacing:2px}
 body:not(.backoffice) .merlot-hero-copy>strong{max-width:100%;font-size:clamp(21px,6vw,39px);line-height:1.08;letter-spacing:-.5px;margin:8px 0 0;text-shadow:0 2px 6px #100718}
 body:not(.backoffice) .merlot-hero-copy>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body:not(.backoffice) .merlot-hero-copy>b{position:absolute;bottom:18px;left:6%;max-width:65%;min-height:36px;padding:10px 12px;margin:0;font-size:9px;background:#8650b9}
 body:not(.backoffice) .merlot-hero .hero-controls{top:auto;right:8px;bottom:14px;gap:0;padding:0;border-radius:20px;font-size:10px;z-index:4}
 body:not(.backoffice) .merlot-hero .hero-controls button{width:28px;height:44px;font-size:22px}
 body:not(.backoffice) .product-banner-container-bc:has(.merlot-product){display:grid!important;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc((100% - 21px)/4);gap:7px;overflow-x:auto;padding:0 0 4px;scrollbar-width:none;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}
 body:not(.backoffice) .merlot-product{min-width:0;width:auto;min-height:0;aspect-ratio:500/610;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:7px 2px;border-radius:16px;scroll-snap-align:start;background:linear-gradient(145deg,#261832,#372245)}
 body:not(.backoffice) .merlot-product .merlot-product-art{width:72%;height:auto;aspect-ratio:1;flex:none}
 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(53px + env(safe-area-inset-bottom));padding:0 0 env(safe-area-inset-bottom);z-index:45;background:#21172ff2;border-top:1px solid #ba9dd14d;backdrop-filter:blur(3px);box-shadow:0 -4px 20px #7c3dab45;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:53px;justify-content:center;gap:3px;padding:4px 2px 7px;border-radius:0;background:none;color:#c2b1d0;font-weight:500}
 .mobile-bottom .ui-icon{width:21px;height:21px}.mobile-bottom span{font-size:clamp(8px,2.6vw,11px);line-height:13px;white-space:nowrap}
 .mobile-bottom :is(a,button):focus-visible{outline:2px solid #dec19f;outline-offset:-3px}
 .mobile-bottom a.mobile-slot-play{height:85px;padding:0 0 3px;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%,85px);height:auto;max-height:82px;object-fit:contain;filter:drop-shadow(0 0 5px #754a9e99);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:#f2dcff;background:#945ace20;box-shadow:inset 0 2px #b382df}
 .mobile-bottom [aria-expanded=true]{color:#fff;background:#945ace20}
 body:not(.backoffice) :is(.support-button,.back-top){display:none}
 body:not(.backoffice) .tools-dropdown{top:46px}
 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) .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}
}
