/* Modern E storefront — scoped to .e-storefront and .e-member-header.
   Layout inspired by the provided Paotung reference. No fake account/payout data. */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;600;700;800&display=swap');
:root{--e-orange:#ffb329;--e-pink:#fa7795;--e-cream:#ffebc7;--e-text:#5d4d46;--e-surface:#fffaf3;--e-border:#ffcf91;--e-round:16px}
.e-storefront,.e-storefront button,.e-storefront input,.e-member-header,.e-member-header button{font-family:Kanit,"Noto Sans Thai",Tahoma,sans-serif}
.e-storefront *,.e-member-header *,.e-member-home *{box-sizing:border-box}
.e-storefront{margin:0;min-width:320px;color:var(--e-text);background:#ffebc7;font-size:14px}
.e-storefront a,.e-member-home a,.e-member-header a{text-decoration:none}
.e-storefront button,.e-member-header button{cursor:pointer}
.e-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.e-site-head,.e-member-header .e-site-head{background:linear-gradient(180deg,var(--e-orange) 0%,#ff9570 54%,var(--e-pink) 100%);border-top:4px solid #ffb222;box-shadow:0 1px 3px #ae6e4b22;position:relative;z-index:99}
.e-head-inner{max-width:1920px;margin:0 auto;padding:5px 26px;min-height:54px;display:flex;align-items:center;gap:13px}
.e-brand{min-width:105px;max-width:200px;display:flex;align-items:center;justify-content:center}
.e-brand img{width:auto;height:auto;max-width:160px;max-height:43px;object-fit:contain}
.e-brand b{color:#fff;font-size:19px;line-height:1.2;text-shadow:0 2px 3px #bb622e}
.e-country{font-size:28px;line-height:1;width:39px;flex:none;text-align:center}
.e-event{background:linear-gradient(180deg,#ffb72d,#fa8e14);border:1px solid #f3a528;box-shadow:0 2px 5px #a4535333;border-radius:10px;height:42px;padding:0 17px;display:flex;align-items:center;color:#fff!important;font-weight:700;white-space:nowrap}
.e-search{display:flex;align-items:center;gap:9px;height:43px;width:232px;border-radius:11px;background:#f5f5f6;padding:0 14px;border:1px solid #eee;max-width:27vw}
.e-search span{font-size:25px;color:#a46b65}
.e-search input{background:transparent;border:0;outline:0;color:#624c4d;font-size:14px;width:100%;min-width:0}
.e-head-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.e-btn{font-size:14px;font-weight:800;text-align:center;display:flex;align-items:center;justify-content:center;min-height:42px;padding:8px 17px;border-radius:10px;white-space:nowrap}
.e-btn-login{background:#f68c19;color:#fff!important;border:1px solid #f5b044}
.e-btn-register{background:#fff;color:#f04c27!important;border:1px solid #fa5e39}
.e-nav-toggle{display:none;background:transparent;color:#fff;border:0;font-size:23px;width:38px}
.e-categories{background:#ffebc7;position:relative;z-index:15}
.e-category-list{display:flex;align-items:stretch;justify-content:space-around;gap:2px;max-width:1900px;margin:0 auto;min-height:66px;padding:5px 22px 13px;overflow-x:auto;scrollbar-width:none}
.e-category-list::-webkit-scrollbar{display:none}
.e-category-list a{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:8px;color:#5d554c;white-space:nowrap;padding:8px 10px 10px;font-weight:700;font-size:15px;position:relative}
.e-category-list a span{font-size:19px}
.e-category-list a.is-active:after,.e-category-list a:hover:after{content:"";position:absolute;height:4px;left:14px;right:14px;bottom:2px;background:#ffac2a;border-radius:9px;box-shadow:0 2px 4px #ffad2966}
.e-app-body{margin:0 auto;max-width:2048px;padding:0 1.25%}
.e-hero{position:relative;width:100%;margin-top:0}
.e-slider{position:relative;width:100%;aspect-ratio:5.34/1;overflow:hidden;background:linear-gradient(120deg,#f56f6d,#ffba35);border-radius:1px}
.e-slide{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .5s ease}
.e-slide.is-active{opacity:1;pointer-events:auto}
.e-slide picture,.e-slide img{display:block;width:100%;height:100%}
.e-slide img{object-fit:cover;object-position:center}
.e-slide-dots{display:flex;justify-content:center;gap:7px;margin:6px 0 4px}
.e-slide-dots button{width:8px;height:8px;border-radius:50%;background:#fff;border:0;opacity:.85;padding:0}
.e-slide-dots button.active{background:#ffa02a;opacity:1}
.e-announcement{display:flex;align-items:center;gap:16px;min-height:68px;overflow:hidden;white-space:nowrap}
.e-megaphone{font-size:27px;padding:0 16px}
.e-announce-track{width:100%;overflow:hidden}.e-announce-track span{display:inline-block;min-width:max-content;animation:eTicker 40s linear infinite;color:#5f5a54;font-weight:500;font-size:15px}
@keyframes eTicker{from{transform:translateX(20%)}to{transform:translateX(-50%)}}
.e-ribbon,.e-section-ribbon{background:linear-gradient(100deg,var(--e-orange),var(--e-pink));color:#fff;text-align:center;font-size:16px;font-weight:700;line-height:32px;margin:0;border-radius:2px}
.e-winner-track{display:flex;align-items:start;gap:13px;overflow-x:auto;scrollbar-width:thin;padding:12px 0 19px}
.e-winner-item{min-width:71px;width:71px;display:flex;flex-direction:column;gap:4px;color:#76616b;text-align:center;align-items:center}
.e-winner-item img{width:70px;height:98px;border-radius:13px;object-fit:cover;box-shadow:0 2px 4px #0002}
.e-winner-item span{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:9px;font-weight:700}
.e-winner-item small{font-size:9px;color:#8f7872;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.e-lower-grid{display:grid;grid-template-columns:minmax(0,3.2fr) minmax(295px,1fr);gap:20px;align-items:start;margin-top:3px}
.e-left{min-width:0}
.e-three-promos{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
.e-promo-tile{min-height:114px;background:var(--e-pink);border:2px solid #ffbc36;border-radius:18px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff!important;transition:transform .2s}
.e-promo-tile:hover{transform:translateY(-2px)}.e-promo-tile span{font-size:38px;line-height:1.3}.e-promo-tile strong{font-size:19px}
.e-referral-tile{position:relative;min-height:114px;padding:11px 66px 8px 12px;border:1px solid #f0cac4;border-radius:19px;background:#fffdf8;color:#a45d45!important;overflow:hidden}
.e-referral-tile b{font-size:15px}.e-referral-input{display:flex;border:1px solid #d5d5d5;background:#efeff0;border-radius:11px;height:36px;align-items:center;justify-content:space-between;font-size:12px;padding:0 10px;color:#a7645e;margin:3px 0}
.e-referral-tile small{display:block;font-size:10px;line-height:1.35}.e-referral-tile i{position:absolute;right:12px;top:21px;font-style:normal;font-size:37px}
.e-promo-strip{display:flex;overflow-x:auto;gap:10px;margin-top:14px}.e-promo-strip>a{flex:0 0 32%}.e-promo-strip img{width:100%;border-radius:10px;aspect-ratio:16/7;object-fit:cover}
.e-game-section{margin-top:17px;scroll-margin-top:10px}
.e-section-ribbon{text-align:left;padding:0 15px;font-size:16px;line-height:32px}
.e-game-filters{display:flex;gap:7px;margin:13px 0 12px;overflow-x:auto}.e-game-filters button{border:1px solid #ebbf92;padding:6px 15px;border-radius:100px;background:#fff4de;color:#895340;white-space:nowrap;font-size:13px}.e-game-filters button.active{background:#ff9d37;color:#fff;border-color:#ff8a3b}
.e-game-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:13px;padding:7px 10px 12px}
.e-game-item{color:#6c554e!important;text-align:center;min-width:0;display:block}
.e-game-image{aspect-ratio:0.76;position:relative;overflow:hidden;border-radius:10px;border:1px solid #efbf6d;background:linear-gradient(145deg,#ea8435,#bd4e76)}
.e-game-image img{width:100%;height:100%;object-fit:cover;transition:transform .23s ease}
.e-game-item:hover img{transform:scale(1.05)}
.e-game-item>b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:6px}.e-game-item small{display:block;opacity:.65;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.e-game-flag{position:absolute;left:4px;top:5px;background:#fb4482;border-radius:999px;color:white;font-size:10px;font-weight:800;padding:2px 5px}
.e-empty{padding:16px;color:#ae6e66;font-size:13px;line-height:1.5}
.e-result-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 22px}.e-result-card{border:1px solid #f1bf8d;border-radius:12px;background:#fff9ec;min-width:0;text-align:center;padding:11px;display:flex;align-items:center;flex-direction:column;gap:2px}.e-result-card>span{font-weight:700;font-size:12px}.e-result-card>b{font-size:24px;color:#f27b34}.e-result-card>small{color:#907a70}
.e-aside{min-width:0}.e-board{background:#fffaf2;border-radius:17px;padding:15px 12px 15px;min-height:430px}
.e-board h3{font-size:14px;margin:2px 0 10px;padding:0 10px 7px;border-bottom:2px solid #ffdfab;color:#564e4e}
.e-board-heading{display:grid;grid-template-columns:38px 1fr;padding:5px 11px;font-size:11px;font-weight:700;color:#655b53;gap:5px}
.e-board-row{display:grid;grid-template-columns:39px 30px minmax(0,1fr) 15px;align-items:center;min-height:50px;background:#f4f3f2;color:#514a47!important;gap:5px;padding:6px 7px;margin:2px 0}
.e-board-row:nth-of-type(even){background:#faf9f8}.e-board-row img{height:38px;width:28px;border-radius:4px;object-fit:cover}.e-board-row b{font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.e-board-row small{display:block;font-size:9px;opacity:.65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.e-board-row i{font-style:normal;font-weight:bold;font-size:20px}
.e-rank{font-weight:900;text-align:center;color:#6e5950;font-size:18px}.e-board-row:nth-of-type(1) .e-rank{color:#e8a900}.e-board-row:nth-of-type(2) .e-rank{color:#9699a0}.e-board-row:nth-of-type(3) .e-rank{color:#d47d57}
.e-mini-head{margin-top:16px!important}.e-mini-game{display:flex;align-items:center;justify-content:space-between;padding:15px;border:1px solid #ffc9ba;border-radius:14px;color:#5e554c!important;font-size:12px}
.e-footer{margin:36px 0 0;padding:24px 15px 100px;border-top:1px solid #e7cdaa;text-align:center;display:flex;flex-direction:column;gap:7px;font-size:12px}.e-footer strong{font-size:17px}.e-footer a{color:#d2604f}
.e-mobile-bottom{display:none}.e-preview{position:fixed;z-index:200;top:65px;right:10px;background:#fff;color:#b45309;border-radius:12px;padding:9px 15px;box-shadow:0 3px 12px #0002}
/* Reusable member navigation, shared by all logged-in pages. */
.e-member-header{position:relative;z-index:10005;font-family:Kanit,"Noto Sans Thai",sans-serif!important;color:#624d46}
.e-member-header .e-member-identity{display:flex;align-items:center;gap:8px;margin-left:auto}
.e-member-header .e-member-balance{background:#fff9e9;border:1px solid #fff2b2;border-radius:10px;color:#bc622d!important;font-weight:700;padding:8px 14px;white-space:nowrap}
.e-member-header .e-member-user{background:#fff;border:1px solid #ffbf9d;color:#a46148!important;border-radius:10px;padding:8px 12px;white-space:nowrap;max-width:210px;overflow:hidden;text-overflow:ellipsis}
.e-member-header .e-member-mobile-toggle{display:none;background:#fff8e5;color:#b56248;border-radius:9px;border:1px solid #f9dba7;min-width:43px;min-height:41px;font-size:23px}
.e-member-header .e-category-list a{font-size:14px}
.e-member-home{font-family:Kanit,"Noto Sans Thai",sans-serif;color:#624d46!important;width:min(1460px,calc(100% - 30px));margin:16px auto 65px}
.e-member-hero{position:relative;border-radius:12px;overflow:hidden;background:linear-gradient(120deg,#fa6891,#ffb340);aspect-ratio:5.34/1}
.e-member-hero img{width:100%;height:100%;object-fit:cover}
.e-member-toolbar{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:12px;margin:16px 0}
.e-member-box{min-width:0;background:#fff9ef;border:1px solid #f8c99c;border-radius:16px;padding:16px;text-align:center;color:#9e6242!important;font-weight:800;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px}
.e-member-box b{font-size:24px;color:#ea8057}.e-member-box span{font-size:23px}.e-member-box small{font-size:12px;font-weight:400;color:#8c786f}
.e-member-box.e-orange{background:linear-gradient(110deg,var(--e-orange),var(--e-pink));color:white!important}.e-member-box.e-orange span,.e-member-box.e-orange b{color:#fff}
.e-member-section{margin-top:20px}.e-member-section h2{background:linear-gradient(100deg,var(--e-orange),var(--e-pink));color:#fff;padding:8px 14px;font-size:17px;border-radius:4px;margin:0 0 12px}
.e-member-provider-list{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}.e-member-provider{min-width:0;background:#fff9ec;border-radius:13px;border:1px solid #f3d2a3;padding:12px 5px;text-align:center;color:#735647!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:120px}.e-member-provider img{width:76px;height:68px;object-fit:contain;max-width:90%}.e-member-provider b{font-size:12px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.e-member-promo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:16px 0}.e-member-promo-grid a{background:#fa7996;border:1px solid #ffa132;border-radius:15px;padding:24px;text-align:center;color:#fff!important;font-size:18px;font-weight:800}
body:has(.e-member-header){background:#ffebc7!important;color:#614c45!important}
body:has(.e-member-header) #main-wrapper{background:transparent!important;min-height:100vh}
body:has(.e-member-header) #header{display:none!important}
body:has(.e-member-header) #main-wrapper>.container,body:has(.e-member-header) #main-wrapper>.container-fluid{max-width:1460px;margin-inline:auto}
body:has(.e-member-header) .bg-card,body:has(.e-member-header) .card:not(.swal2-popup),body:has(.e-member-header) .content-wrapper{border-radius:13px;border-color:#f1cf9d;background-color:#fffaf2}
body:has(.e-member-header) .btn-primary{background:#ff9842;border-color:#fa8746}
body:has(.e-member-header) .btn-success{background:#50ad79;border-color:#50ad79}
@media(max-width:1260px){.e-head-inner{gap:8px;padding:5px 14px}.e-event{padding:0 10px}.e-category-list{justify-content:flex-start}.e-category-list a{font-size:13px;padding-inline:11px}.e-game-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.e-member-provider-list{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1024px){.e-lower-grid{grid-template-columns:minmax(0,1fr) 270px;gap:10px}.e-three-promos{gap:9px}.e-game-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.e-head-inner{flex-wrap:wrap}.e-search{max-width:none;flex:1}.e-hero{margin-top:0}.e-member-provider-list{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){.e-brand{min-width:64px}.e-brand img{max-width:105px;max-height:35px}.e-country{width:30px;font-size:22px}.e-event{display:none}.e-head-inner{min-height:57px;gap:7px;padding:5px 8px;flex-wrap:nowrap}.e-search{min-width:0;width:100%;flex:1;height:36px;padding:0 8px}.e-search input{font-size:12px}.e-head-actions{gap:5px;margin-left:0}.e-head-actions .e-btn{padding:7px 9px;font-size:11px;min-height:35px}.e-btn-register{display:none}.e-nav-toggle{display:block}.e-category-list{min-height:51px;padding:3px 9px 7px;gap:2px}.e-category-list a{font-size:11px;gap:3px;padding:4px 9px 7px}.e-category-list a span{font-size:17px}.e-app-body{padding:0 8px}.e-slider{aspect-ratio:auto;height:175px;border-radius:10px}.e-slide img{object-position:center}.e-announcement{min-height:41px;gap:5px}.e-megaphone{padding:0 4px;font-size:19px}.e-announce-track span{font-size:11px}.e-ribbon,.e-section-ribbon{font-size:14px;line-height:29px}.e-winner-track{gap:9px;padding:10px 0 12px}.e-winner-item{min-width:62px;width:62px}.e-winner-item img{width:60px;height:80px}.e-lower-grid{display:block}.e-aside{margin-top:17px}.e-three-promos{grid-template-columns:1fr 1fr;gap:7px}.e-promo-tile{min-height:85px}.e-promo-tile span{font-size:29px}.e-promo-tile strong{font-size:16px}.e-referral-tile{grid-column:1/-1;min-height:86px;padding-right:75px}.e-referral-tile i{top:14px}.e-game-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:7px 0}.e-game-item>b{font-size:11px}.e-result-row{grid-template-columns:repeat(2,minmax(0,1fr))}.e-board{min-height:0}.e-footer{padding-bottom:90px}.e-mobile-bottom{position:fixed;display:flex;bottom:0;left:0;right:0;z-index:100;background:#fffaf1;border-top:1px solid #f9cf9a;box-shadow:0 -3px 14px #563b3422;padding:7px 4px calc(7px + env(safe-area-inset-bottom));justify-content:space-around}.e-mobile-bottom a{color:#a7624d!important;display:flex;flex-direction:column;align-items:center;gap:1px;font-size:21px;line-height:1.1}.e-mobile-bottom span{font-size:10px}.e-member-header .e-search,.e-member-header .e-country{display:none}.e-member-header .e-member-identity{gap:5px}.e-member-header .e-member-balance{padding:6px;font-size:11px}.e-member-header .e-member-user{padding:7px 5px;max-width:105px;font-size:11px}.e-member-header .e-member-mobile-toggle{display:block}.e-member-header .e-category-list{display:none}.e-member-header .e-category-list.is-open{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px;gap:6px}.e-member-header .e-category-list a{background:#fff9ee;border-radius:9px;justify-content:center;font-size:12px}.e-member-home{width:calc(100% - 16px);margin-top:9px}.e-member-hero{aspect-ratio:auto;height:170px}.e-member-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.e-member-box{padding:10px;min-height:85px}.e-member-box b{font-size:19px}.e-member-provider-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.e-member-provider{min-height:105px;padding:6px}.e-member-provider img{height:60px}.e-member-promo-grid{grid-template-columns:1fr 1fr;gap:7px}.e-member-promo-grid a{padding:13px;font-size:13px}}
@media(max-width:430px){.e-brand img{max-width:85px}.e-brand b{font-size:13px}.e-country{display:none}.e-head-actions .e-btn{font-size:10px;padding-inline:7px}.e-slider{height:139px}.e-game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.e-member-provider-list{grid-template-columns:repeat(3,minmax(0,1fr))}.e-member-header .e-member-user{display:none}.e-member-header .e-head-inner{min-height:56px}}

/* Mobile navigation & legacy member footer integration */
@media(max-width:760px){
 .e-storefront .e-category-list.is-open{position:absolute;top:100%;left:8px;right:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));white-space:normal;background:#fff9ec;border:1px solid #f3bf8e;border-radius:15px;padding:9px;box-shadow:0 10px 25px #a0634933;max-height:60vh;overflow-y:auto}
 .e-storefront .e-category-list.is-open a{border-radius:8px;background:#ffeed1;padding:10px 3px;font-size:12px;white-space:normal;flex-direction:column;text-align:center}
 body:has(.e-member-header) #nav-footer-fixed{background:#fffaf0!important;border-top:1px solid #f4c397!important;box-shadow:0 -3px 18px #7d594426!important}
 body:has(.e-member-header) #nav-footer-fixed .btn-home-footer{background:linear-gradient(135deg,#ffb329,#fa7795)!important;border:2px solid #fff0cd!important}
 body:has(.e-member-header) #nav-footer-fixed a,body:has(.e-member-header) #nav-footer-fixed figcaption{color:#a45b48!important}
}

/* Modern E v2 – horizontal drag/swipe carousel rows instead of static game grids. */
.e-hero{isolation:isolate}
.e-slide-dots{position:relative;z-index:3;min-height:12px}
.e-hero-arrow{position:absolute;z-index:4;top:calc(50% - 22px);width:37px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid #fff9;background:#fff9edb8;color:#ae5835;font-size:31px;font-family:Arial,sans-serif;cursor:pointer;opacity:0;transition:opacity .2s,background .2s;box-shadow:0 2px 8px #743a2b25}
.e-hero:hover .e-hero-arrow,.e-hero-arrow:focus-visible{opacity:1}
.e-hero-prev{left:9px}.e-hero-next{right:9px}
.e-hero-arrow:hover{background:#fff8ed}
.e-carousel-wrap{position:relative;min-width:0;isolation:isolate}
.e-track-arrow{position:absolute;top:50%;transform:translateY(-50%);width:31px;height:49px;border:1px solid #e2c09b;border-radius:10px;background:#fff8edee;color:#d16d48;box-shadow:0 3px 12px #9f62402a;font:700 27px/1 Arial,sans-serif;z-index:5;cursor:pointer;opacity:0;transition:opacity .2s ease,background .2s ease}
.e-carousel-wrap:hover .e-track-arrow,.e-track-arrow:focus-visible{opacity:1}
.e-track-arrow:hover{background:#fff}
.e-track-arrow:disabled{display:none}
.e-track-prev{left:0}.e-track-next{right:0}
.e-winner-track,.e-game-track,.e-member-provider-list{scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scroll-behavior:smooth;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.e-winner-track::-webkit-scrollbar,.e-game-track::-webkit-scrollbar,.e-member-provider-list::-webkit-scrollbar{display:none}
.e-winner-track{padding-inline:17px}
.e-winner-item{scroll-snap-align:start;flex:none}
.e-game-track{display:flex;align-items:flex-start;gap:15px;padding:15px 11px 9px;overflow-x:auto;min-width:0}
.e-game-card{position:relative;display:flex!important;flex:0 0 calc((100% - 90px)/7);min-width:92px;flex-direction:column;scroll-snap-align:start;align-self:stretch;padding:0 0 4px;color:#6c554e;text-align:center}
.e-game-card[hidden]{display:none!important}
.e-game-card .e-game-image{aspect-ratio:.79;z-index:1;border-radius:10px;border:1px solid #f4cf83;box-shadow:0 3px 6px #a47f5222;overflow:hidden}
.e-game-card .e-game-image img{width:100%;height:100%;object-fit:cover}
.e-game-card .e-game-flag{background:linear-gradient(90deg,#fb3683,#ffae2b);font-size:10px;left:5px;top:5px;padding:2px 6px}
.e-game-card>b{position:relative;z-index:1;max-width:100%;margin-top:6px;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.e-game-rank{position:absolute;z-index:0;bottom:17px;left:-16px;font-size:60px;line-height:1;font-weight:900;color:#f9bc71;text-shadow:1px 2px 1px #ec9d3b}
.e-game-section{margin-top:14px}
.e-game-section[hidden]{display:none!important}
.e-winner-wrap{margin-top:0}
.e-partners{margin:34px 0 10px;text-align:center}
.e-partners h2{color:#805e4a;font-size:15px;font-weight:700;margin:0 0 12px}
.e-partners-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px}
.e-partners-grid a{min-height:38px;border:1px solid #e6d5b7;border-radius:6px;background:#fff2d5;display:flex;align-items:center;justify-content:center;padding:5px;min-width:0}
.e-partners-grid img{display:block;max-width:100%;height:29px;object-fit:contain}
.e-partners-grid b{font-size:10px;color:#725847;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.e-aside .e-board{position:sticky;top:10px}
.e-member-hero{display:block;position:relative;overflow:visible;border-radius:0;background:transparent;aspect-ratio:auto}
.e-member-hero .e-member-slider{border-radius:12px}
.e-member-hero .e-hero-arrow{top:calc(50% - 23px)}
.e-member-provider-list{display:flex;gap:12px;padding:8px 12px 11px;overflow-x:auto}
.e-member-provider-list .e-member-provider{flex:0 0 132px;scroll-snap-align:start}
.e-game-track.e-dragging,.e-winner-track.e-dragging,.e-member-provider-list.e-dragging{scroll-behavior:auto;scroll-snap-type:none;user-select:none;cursor:grabbing}
@media(max-width:1250px){.e-game-card{flex-basis:calc((100% - 66px)/6)}.e-partners-grid{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:1024px){.e-game-card{flex-basis:calc((100% - 48px)/5)}.e-game-track{gap:12px}.e-aside .e-board{position:static}}
@media(max-width:760px){.e-hero-arrow{opacity:.92;width:26px;height:33px;border-radius:8px;top:calc(50% - 17px);font-size:25px}.e-game-card{flex-basis:calc((100% - 26px)/3.2);min-width:92px}.e-game-track{gap:9px;padding:12px 7px 10px}.e-game-rank{font-size:44px;left:-8px}.e-game-card>b{font-size:11px}.e-track-arrow{opacity:.92;width:25px;height:36px;border-radius:8px;font-size:23px}.e-winner-track{padding-inline:10px}.e-partners-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.e-member-provider-list .e-member-provider{flex-basis:105px}.e-aside .e-board{position:static}}
@media(max-width:430px){.e-game-card{flex-basis:calc((100% - 20px)/2.65)}.e-partners-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(hover:none){.e-track-arrow,.e-hero-arrow{opacity:.85}}
@media(prefers-reduced-motion:reduce){.e-slide,.e-track-arrow,.e-hero-arrow{transition:none!important}.e-winner-track,.e-game-track,.e-member-provider-list{scroll-behavior:auto!important}}

/* Modern E v3: tighter reference-inspired storefront grid and deliberate
   narrow-screen composition. All rules remain scoped to Modern E. */
.e-storefront{overflow-x:clip;line-height:1.45}
.e-site-head .e-head-inner{max-width:2000px}
.e-brand{justify-content:flex-start}
.e-country{display:inline-flex;align-items:center;justify-content:center;width:37px;height:37px;flex:0 0 auto;border-radius:50%;background:rgba(255,255,255,.15);font-size:24px}
.e-event,.e-btn,.e-promo-tile,.e-member-promo-grid a{transition:filter .2s ease,transform .2s ease}
.e-event:hover,.e-btn:hover,.e-member-promo-grid a:hover{filter:brightness(1.05);transform:translateY(-1px)}
.e-search:focus-within{background:#fff;outline:2px solid #ffcc9c;outline-offset:1px}
.e-categories .e-category-list a,.e-member-header .e-category-list a{transition:color .15s ease,background .15s ease}
.e-categories .e-category-list a:hover{color:#da8040!important;background:rgba(255,255,255,.2)}
.e-app-body{padding:0 clamp(9px,1.3vw,20px)}
.e-slider{border-radius:2px;aspect-ratio:1920/360;max-height:380px}
.e-slide img{object-fit:cover;object-position:center}
.e-slide-dots{margin:6px 0 4px}
.e-slide-dots button{width:9px;height:9px;cursor:pointer;transition:transform .2s,background .2s}
.e-slide-dots button.active{transform:scale(1.14)}
.e-hero:focus-within .e-hero-arrow,.e-hero:hover .e-hero-arrow{opacity:1}
.e-announcement{min-height:59px;gap:12px}
.e-megaphone{font-size:26px;padding:0 14px}
.e-ribbon,.e-section-ribbon{background:linear-gradient(100deg,#ffb029 0%,#ff8c6e 52%,#fa7294 100%);text-shadow:0 1px 1px #b5614130;font-weight:700}
.e-ribbon{margin-top:1px}
.e-winner-track{padding-block:12px 17px;gap:12px}
.e-winner-item{width:74px;min-width:74px}
.e-winner-item img{width:72px;height:100px;object-fit:cover;border-radius:12px;border:1px solid #f8daab;background:#fff3e2}
.e-lower-grid{grid-template-columns:minmax(0,3fr) minmax(290px,1fr);gap:22px;align-items:start;margin-top:1px}
.e-three-promos{grid-template-columns:1fr 1fr 1fr;gap:14px}
.e-promo-tile{min-height:113px;background:linear-gradient(135deg,#fc7190,#fb7796);border:2px solid #ffc65e;border-radius:18px;box-shadow:0 1px 2px #cf8e6623}
.e-promo-tile span{filter:drop-shadow(0 4px 6px #b53f6537)}
.e-promo-tile strong{font-size:19px;line-height:1.2}
.e-referral-tile{border:1px solid #f2cbbf;background:#fffdfa;box-shadow:0 1px 3px #b65f4021}
.e-section-ribbon{min-height:33px;display:flex;align-items:center}
.e-game-track{gap:12px;padding:15px 10px 12px}
.e-game-card{flex:0 0 calc((100% - 72px)/7);min-width:92px}
.e-game-card .e-game-image{box-shadow:0 2px 5px #91604222}
.e-game-card .e-game-flag{font-size:10px;padding:2px 7px}
.e-game-card>b{font-size:12px;font-weight:600}
.e-game-rank{color:#f2aa4b;text-shadow:0 2px 2px #fff6d6,1px 0 #e88f32}
.e-board{border:1px solid #f2e0ca;background:#fffcf8;box-shadow:0 2px 6px #7a513c0c}
.e-board-row{border-radius:3px}
.e-partners-grid a{background:#fff6e7}
.e-member-header .e-head-inner{min-height:58px}
.e-member-header .e-country{margin-left:3px}
.e-member-header .e-member-balance{box-shadow:0 2px 5px #a6643a12}
.e-member-home .e-member-slider{aspect-ratio:1920/360}
.e-member-home .e-member-box{box-shadow:0 3px 12px #a7714618}
.e-member-home .e-member-section h2{background:linear-gradient(100deg,#ffb029,#fb7796)}
.e-carousel-wrap .e-track-arrow:focus-visible,.e-hero-arrow:focus-visible,.e-slide-dots button:focus-visible,.e-nav-toggle:focus-visible{outline:3px solid #8e51ee;outline-offset:2px}
@media (min-width:761px) and (max-width:1200px){
 .e-lower-grid{grid-template-columns:minmax(0,1fr) 260px;gap:12px}
 .e-game-card{flex-basis:calc((100% - 50px)/6)}
 .e-three-promos{gap:9px}
 .e-referral-tile{padding-right:38px}
 .e-referral-tile i{right:6px;font-size:27px}
 .e-head-inner{gap:8px}
}
@media(max-width:760px){
 .e-storefront{font-size:13px}
 .e-site-head{border-top-width:3px}
 .e-head-inner{padding:6px 9px;min-height:58px}
 .e-brand img{max-width:112px;max-height:38px}
 .e-country{background:transparent;height:28px;width:31px;font-size:21px}
 .e-search{height:38px;background:#fff8f6;min-width:60px}
 .e-head-actions .e-btn{min-height:36px;border-radius:9px}
 .e-category-list{min-height:53px;padding:5px 5px 7px;scroll-snap-type:x proximity}
 .e-category-list a{scroll-snap-align:start;font-size:12px}
 .e-app-body{padding:0 8px}
 .e-slider{aspect-ratio:auto;height:clamp(178px,44vw,238px);border-radius:10px}
 .e-announcement{min-height:47px}
 .e-megaphone{font-size:21px;padding:0 6px}
 .e-announce-track span{font-size:12px}
 .e-ribbon,.e-section-ribbon{font-size:14px;line-height:32px;min-height:32px}
 .e-winner-track{gap:10px;padding:9px 5px 14px}
 .e-winner-item{width:65px;min-width:65px}
 .e-winner-item img{height:87px;width:64px;border-radius:11px}
 .e-three-promos{display:grid;grid-template-columns:1fr 1fr;gap:9px}
 .e-promo-tile{min-height:95px;border-radius:15px}
 .e-promo-tile strong{font-size:17px}
 .e-referral-tile{grid-column:1 / -1;min-height:93px;padding:10px 78px 11px 12px;border-radius:15px}
 .e-lower-grid{display:flex;flex-direction:column;gap:16px}
 .e-left,.e-aside{width:100%}
 .e-aside{margin-top:0}
 .e-game-section{margin-top:16px}
 .e-game-card{min-width:102px;flex:0 0 calc((100% - 27px)/3.22)}
 .e-game-track{gap:10px;padding:13px 8px 11px}
 .e-game-card>b{font-size:11px}
 .e-game-rank{font-size:45px}
 .e-board{border-radius:17px;min-height:0}
 .e-board-row{min-height:54px}
 .e-member-home{width:calc(100% - 16px);margin:9px auto 85px}
 .e-member-home .e-member-slider{aspect-ratio:auto;height:clamp(178px,44vw,238px)}
 .e-member-home .e-member-hero{height:auto}
 .e-member-home .e-member-toolbar{margin:12px 0}
 .e-member-home .e-member-box{min-height:84px}
 .e-member-header .e-head-inner{min-height:61px}
 .e-member-header .e-member-balance{font-size:12px}
 .e-member-header .e-category-list.is-open{position:absolute;left:7px;right:7px;top:100%;grid-template-columns:repeat(3,minmax(0,1fr));background:#fffaf0;border:1px solid #f6d1a4;border-radius:14px;box-shadow:0 16px 26px #80543b35;z-index:25;max-height:65vh;overflow-y:auto}
 .e-member-header .e-category-list.is-open form{grid-column:1/-1}
 .e-member-header .e-category-list.is-open form .e-btn{width:100%}
}
@media(max-width:430px){
 .e-brand img{max-width:96px}
 .e-head-inner{gap:5px}
 .e-btn-login{padding:7px 8px}
 .e-slider,.e-member-home .e-member-slider{height:clamp(171px,47vw,210px)}
 .e-game-card{flex-basis:calc((100% - 20px)/2.75)}
 .e-three-promos{gap:8px}
 .e-winner-track{padding-inline:3px}
 .e-country{display:none}
}
@media(max-width:360px){
 .e-search{max-width:120px}
 .e-brand img{max-width:79px}
 .e-head-actions .e-btn{font-size:10px;padding:6px 7px}
 .e-game-card{flex-basis:calc((100% - 18px)/2.45)}
}

.e-member-home .e-member-announcement{min-height:56px}
.e-member-home .e-member-featured{margin-top:0}
.e-member-home .e-member-featured .e-winner-track{padding:12px 5px 14px}
.e-member-home .e-member-featured .e-winner-item img{object-fit:contain;background:#fffae9}
.e-member-home .e-featured-fallback{width:72px;height:100px;border:1px solid #ffcf9e;background:#fff9ec;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:34px}
@media(max-width:760px){.e-member-home .e-member-announcement{min-height:45px}.e-member-home .e-featured-fallback{width:65px;height:87px}}

/* Modern E mobile V4: dedicated app-like storefront, not a scaled desktop page.
   Everything below is scoped to the new theme; no changes to business forms/APIs. */
.e-mobile-shortcuts,.e-mobile-rail,.e-mobile-game-tabs,.e-mobile-tab-empty,.e-game-fav{display:none}
.e-member-mobile-bottom{display:none}
@media(max-width:760px){
  .e-storefront,.e-storefront button,.e-storefront input,.e-member-home,.e-member-header{font-family:Kanit,'Noto Sans Thai',Tahoma,sans-serif}
  .e-storefront{overflow-x:clip;background:#ffebc8}
  .e-storefront .e-site-head{border-top:0;border-bottom:2px solid #f34b39;border-radius:0 0 20px 20px;background:linear-gradient(180deg,#ffb12c 0%,#ff916a 59%,#fb7797 100%);box-shadow:none}
  .e-storefront .e-head-inner{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:'logo logo' 'buttons buttons';justify-content:center;align-items:center;gap:8px;padding:9px 20px 13px;min-height:0}
  .e-storefront .e-brand{grid-area:logo;justify-content:center;min-width:0;max-width:none;height:44px}
  .e-storefront .e-brand img{max-width:min(48vw,172px);max-height:43px}
  .e-storefront .e-brand b{font-size:23px;text-align:center}
  .e-storefront .e-country,.e-storefront .e-event,.e-storefront .e-nav-toggle{display:none!important}
  .e-storefront .e-head-actions{grid-area:buttons;display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%;margin:0}
  .e-storefront .e-btn{width:100%;min-height:40px;font-size:14px;font-weight:800;border-radius:9px;box-shadow:0 2px 4px #8f4c4733}
  .e-storefront .e-btn-register{display:flex!important;background:#fff;color:#ef4438!important;border:2px solid #f64e39}
  .e-storefront .e-btn-login{background:linear-gradient(180deg,#ffad28,#ef8315);border-color:#fda427}
  .e-storefront .e-search{display:none;width:calc(100% - 28px);height:42px;max-width:none;position:absolute;top:100%;left:14px;z-index:101;margin-top:7px;border-radius:10px;border:2px solid #ffb35b;box-shadow:0 5px 24px #7b4a352e;background:#fff}
  .e-storefront .e-search.is-mobile-open{display:flex}
  .e-storefront .e-search input{font-size:14px}
  .e-storefront>.e-categories{display:none!important}
  .e-mobile-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;align-items:stretch;width:100%;padding:8px 5px 11px;background:#fff8f0;margin:0;min-height:64px}
  .e-mobile-shortcuts a,.e-mobile-shortcuts button{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;border:1px solid #ffad8b;border-radius:9px;background:#fff;color:#544a47!important;padding:5px 2px;font-size:11px;text-align:center;box-shadow:0 1px 2px #f7b59435}
  .e-mobile-shortcuts button:first-child{background:#fff;color:#5a4b46;border:0}
  .e-mobile-shortcuts span{font-size:24px;line-height:1}
  .e-mobile-shortcuts b{display:block;white-space:nowrap;font-weight:600;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .e-storefront .e-app-body{padding:0;max-width:100%}
  .e-storefront .e-hero{width:100%;margin:0}
  .e-storefront .e-slider{width:100%;height:auto!important;aspect-ratio:4.35/1;border-radius:0;max-height:none}
  .e-storefront .e-slide picture,.e-storefront .e-slide img{width:100%;height:100%}
  .e-storefront .e-slide img{object-fit:cover;object-position:center}
  .e-storefront .e-slide-dots{position:absolute;bottom:3px;left:0;right:0;margin:0;min-height:10px}
  .e-storefront .e-slide-dots button{height:6px;width:6px}
  .e-storefront .e-hero-arrow{display:none}
  .e-storefront .e-announcement{min-height:29px;height:32px;padding:0 5px;gap:6px;margin:0;border-bottom:1px solid #f7d7a8}
  .e-storefront .e-megaphone{font-size:17px;padding:0 4px}
  .e-storefront .e-announce-track span{font-size:12px;font-weight:500}
  .e-storefront .e-ribbon{font-size:14px;line-height:34px;min-height:34px;border-radius:0;margin:0}
  .e-storefront .e-winner-track{gap:9px;padding:10px 7px 12px}
  .e-storefront .e-winner-item{min-width:70px;width:70px}
  .e-storefront .e-winner-item img{height:91px;width:68px;border-radius:12px}
  .e-storefront .e-winner-item span{font-size:9px}
  .e-storefront .e-winner-item small{font-size:9px}
  .e-storefront .e-winner-wrap .e-track-arrow{display:none}
  .e-storefront .e-lower-grid{display:grid;grid-template-columns:clamp(42px,10.6vw,105px) minmax(0,1fr);gap:7px;padding:4px 7px 0 4px;align-items:start}
  .e-mobile-rail{display:flex;flex-direction:column;align-items:stretch;position:sticky;top:7px;gap:6px;max-height:calc(100vh - 90px);overflow-y:auto;scrollbar-width:none;z-index:3}
  .e-mobile-rail::-webkit-scrollbar{display:none}
  .e-mobile-rail a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;padding:5px 1px;border-radius:9px;border:1px solid #5d6260;background:linear-gradient(180deg,#fff,#fff9ed);box-shadow:0 2px 0 #ee783f;color:#925549!important;font-weight:600;font-size:clamp(9px,1.3vw,13px);text-align:center}
  .e-mobile-rail a span{font-size:clamp(17px,3.4vw,31px);line-height:1.2}
  .e-mobile-rail a b{white-space:nowrap;max-width:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}
  .e-mobile-rail a.is-active{color:#fff!important;background:linear-gradient(150deg,#ffbb39,#fb7567);border-color:#de7749}
  .e-mobile-rail .e-rail-up{display:block;min-height:22px;height:22px;border:1px solid #5a5651;border-radius:10px;background:#fff;color:#665a50;font-size:17px;line-height:1;padding:0}
  .e-storefront .e-left{display:flex;flex-direction:column;width:100%;min-width:0}
  .e-mobile-game-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;margin:0 0 8px;border-bottom:2px solid #875b61;min-height:38px;order:0}
  .e-mobile-game-tabs button,.e-mobile-game-tabs a{border:0;border-radius:0;background:transparent;min-width:0;font-weight:600;color:#986d60!important;font-size:14px;display:flex;align-items:center;justify-content:center;text-decoration:none;padding:6px 3px}
  .e-mobile-game-tabs button.is-active,.e-mobile-game-tabs a.is-active{border-radius:16px 16px 0 0;background:#fff;color:#f54d3f!important;border-bottom:3px solid #ff4d43}
  .e-storefront .e-game-section{order:1;margin:0 0 13px;width:100%;scroll-margin-top:8px}
  .e-storefront .e-game-section .e-section-ribbon{border-radius:5px;min-height:31px;line-height:31px;margin:0 0 7px;padding:0 10px;font-size:14px}
  .e-storefront .e-game-section .e-section-ribbon:before{content:'🔥';margin-right:6px}
  .e-storefront .e-game-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px 7px;overflow:visible;padding:0;scroll-snap-type:none}
  .e-storefront .e-game-card{display:flex!important;min-width:0;flex:none!important;max-width:100%;padding:0 0 6px;align-self:start}
  .e-storefront .e-game-card[hidden]{display:none!important}
  .e-storefront .e-game-image{width:100%;aspect-ratio:.73;border:0;border-radius:10px;box-shadow:none}
  .e-storefront .e-game-card>b{margin-top:4px;font-size:11px;font-weight:500;color:#704a40}
  .e-storefront .e-game-rank{display:none}
  .e-storefront .e-game-flag{top:3px;left:3px;font-size:9px}
  .e-storefront .e-game-carousel-wrap .e-track-arrow{display:none}
  .e-storefront .e-three-promos{order:3;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
  .e-storefront .e-promo-tile{min-height:87px}
  .e-storefront .e-referral-tile{min-height:81px}
  .e-storefront .e-promo-strip{order:4}
  .e-storefront .e-partners{order:5}
  .e-storefront .e-search-empty{order:6}
  .e-mobile-tab-empty{order:1;background:#fffdf6;border:1px solid #edccad;border-radius:10px;padding:14px;margin:8px 0 16px;font-size:12px;text-align:center;color:#98685c}
  .e-mobile-tab-empty:not([hidden]){display:block}
  .e-game-fav{display:flex;align-items:center;justify-content:center;position:absolute;top:5px;right:5px;width:24px;height:24px;padding:0;border:1px solid #fff9;border-radius:100%;font-size:17px;background:#35221f99;color:#fff;z-index:6}
  .e-game-fav.is-favorite{color:#ffdb42;background:#8c3928d9}
  .e-storefront .e-aside{grid-column:2;width:100%;margin:0 0 20px}
  .e-storefront .e-board{border-radius:12px}
  .e-storefront .e-footer{margin:12px 0 0;padding:20px 7px 120px}
  .e-storefront .e-mobile-bottom,body:has(.e-member-header) .e-member-mobile-bottom{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;justify-content:space-between;position:fixed;left:0;right:0;bottom:0;z-index:100050;width:100%;min-height:66px;padding:4px 5px calc(4px + env(safe-area-inset-bottom));border-top:2px solid #ffb02b;border-radius:16px 16px 0 0;background:linear-gradient(120deg,#ffad28 0%,#ff9156 50%,#fa7892 100%);box-shadow:0 -2px 12px #ae694844}
  .e-storefront .e-mobile-bottom a,body:has(.e-member-header) .e-member-mobile-bottom a{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;min-width:0;min-height:54px;font-size:11px;line-height:1.2;color:#493d39!important;font-weight:800;border-radius:14px;text-align:center}
  .e-storefront .e-mobile-bottom a.is-active,body:has(.e-member-header) .e-member-mobile-bottom a.is-active{background:#fff;color:#f34d3d!important;box-shadow:0 3px 0 #ff513f}
  .e-storefront .e-mobile-bottom .e-bottom-icon,body:has(.e-member-header) .e-member-mobile-bottom .e-bottom-icon{font:800 25px/1.15 Kanit,Arial,sans-serif}
  /* Existing member-page navigation must not cover this theme's five-item footer. */
  body:has(.e-member-header) #nav-footer-fixed{display:none!important}
  body:has(.e-member-header){padding-bottom:80px!important}
  /* Logged-in header: centered logo, genuine balance and menu remain usable. */
  .e-member-header .e-site-head{border-top:0;border-bottom:2px solid #f34b39;border-radius:0 0 16px 16px;background:linear-gradient(180deg,#ffb12c 0%,#ff9069 55%,#fb7797 100%)}
  .e-member-header .e-head-inner{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;min-height:78px;padding:8px 12px 10px;position:relative}
  .e-member-header .e-brand{width:100%;max-width:none;min-width:0;justify-content:center}
  .e-member-header .e-brand img{max-width:140px;max-height:40px}
  .e-member-header .e-country,.e-member-header .e-event{display:none!important}
  .e-member-header .e-member-identity{margin:0 auto;display:flex;justify-content:center;width:calc(100% - 50px)}
  .e-member-header .e-member-user{display:inline-flex!important;max-width:38%;font-size:11px}
  .e-member-header .e-member-balance{font-size:12px}
  .e-member-header .e-member-mobile-toggle{display:block;position:absolute;right:10px;bottom:12px;min-height:35px;min-width:35px;font-size:21px;background:#fff9ec}
  .e-member-header>.e-categories{position:relative;min-height:0}
  .e-member-header .e-category-list{display:none!important}
  .e-member-header .e-category-list.is-open{display:grid!important;position:absolute;left:5px;right:5px;top:0;z-index:105;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff9ec;box-shadow:0 12px 20px #80543b35;border-radius:12px;padding:10px;gap:5px}
  .e-member-header .e-category-list.is-open a{padding:9px 4px;white-space:normal;font-size:11px;text-align:center}
  .e-member-header .e-category-list.is-open form{grid-column:1/-1}
  .e-member-home{display:flex;flex-direction:column;gap:0;width:100%;margin:0 auto 80px;padding:0;min-width:0}
  .e-member-home>.e-member-shortcuts{order:0}
  .e-member-home>.e-member-hero{order:1;width:100%;border-radius:0}
  .e-member-home .e-member-slider{width:100%;height:auto!important;aspect-ratio:4.35/1;border-radius:0}
  .e-member-home .e-member-slider .e-slide img{object-fit:cover}
  .e-member-home .e-member-hero .e-hero-arrow{display:none}
  .e-member-home>.e-member-announcement{order:2;height:34px;min-height:34px;margin:0;padding:0 5px}
  .e-member-home>.e-member-featured{order:3;margin:0}
  .e-member-home .e-member-featured .e-winner-item img{object-fit:cover}
  .e-member-home>.e-member-game-stage{order:4;display:grid;grid-template-columns:clamp(42px,10.6vw,105px) minmax(0,1fr);gap:7px;padding:9px 7px 0 4px;align-items:start}
  .e-member-home .e-member-stage-content{min-width:0}
  .e-member-home .e-member-section{margin-top:0}
  .e-member-home .e-member-section>h2{padding:6px 10px;font-size:14px;margin:0 0 8px}
  .e-member-home .e-member-section>h3{margin:12px 0 7px!important;font-size:13px!important}
  .e-member-home .e-member-provider-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 7px;padding:0;overflow:visible;scroll-snap-type:none}
  .e-member-home .e-member-provider{width:100%;min-height:0;padding:4px 3px;aspect-ratio:.79;flex:none;justify-content:center;gap:4px;border-radius:9px}
  .e-member-home .e-member-provider img{width:90%;height:72%;object-fit:contain;max-height:unset}
  .e-member-home .e-member-provider b{font-size:10px}
  .e-member-home .e-member-provider-wrap>.e-track-arrow{display:none}
  .e-member-home>.e-member-toolbar{order:5;padding:0 10px;margin:12px 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .e-member-home>.e-member-promo-grid{order:6;padding:0 10px}
  .e-member-home>.e-member-section{order:7;padding:0 10px;margin:14px 0}
  .e-member-home>.ak-home-cashback-alert{order:5}
  .e-member-home .e-mobile-game-tabs{margin:0 0 8px}
  .e-member-home .e-member-box{min-width:0}
  .e-member-home .e-member-box b{font-size:18px}
}
@media(max-width:380px){
  .e-storefront .e-head-inner{padding:7px 12px 11px}
  .e-mobile-shortcuts b{font-size:9px}
  .e-storefront .e-btn{min-height:37px;font-size:13px}
  .e-storefront .e-game-track{gap:6px 5px}
  .e-storefront .e-game-card>b{font-size:10px}
  .e-mobile-game-tabs button,.e-mobile-game-tabs a{font-size:12px}
  .e-mobile-rail a{min-height:47px}
}
@media(prefers-reduced-motion:reduce){.e-mobile-rail,.e-mobile-shortcuts,.e-mobile-game-tabs{scroll-behavior:auto}}
/* V4 favorite shell: keeps the card as a link while providing a separate button. */
.e-mobile-card-shell{position:relative;min-width:0}
.e-mobile-card-shell>.e-game-card{width:100%;height:100%}
.e-mobile-card-shell>.e-game-fav{display:none}
@media(max-width:760px){
 .e-mobile-card-shell>.e-game-fav{display:flex}
 .e-storefront .e-game-card{max-width:none}
 .e-storefront .e-mobile-card-shell[hidden]{display:none}
}
/* Keep unwrapped and favorite-enhanced carousel cards the same size on desktop. */
.e-game-track>.e-mobile-card-shell{position:relative;flex:0 0 calc((100% - 72px)/7);min-width:92px;scroll-snap-align:start}
.e-game-track>.e-mobile-card-shell[hidden]{display:none!important}
@media(min-width:1025px) and (max-width:1250px){.e-game-track>.e-mobile-card-shell{flex-basis:calc((100% - 66px)/6)}}
@media(max-width:760px){
 .e-storefront .e-game-track>.e-mobile-card-shell{flex:none;min-width:0;max-width:100%;width:100%}
 .e-storefront .e-slide img,.e-member-home .e-member-slider .e-slide img{object-fit:contain!important}
 .e-storefront .e-slider,.e-member-home .e-member-slider{background:linear-gradient(110deg,#fa9b56,#f87188)}
}
/* Tablet-width / 990px mobile-browser captures: keep the mobile structure
   while scaling controls and game strips with available space. */
@media(min-width:640px) and (max-width:760px){
 .e-storefront .e-brand,.e-member-header .e-brand{height:52px}
 .e-storefront .e-brand img{max-width:170px;max-height:49px}
 .e-storefront .e-btn{min-height:59px;font-size:17px}
 .e-mobile-shortcuts{min-height:79px}
 .e-mobile-shortcuts a,.e-mobile-shortcuts button{min-height:70px;font-size:13px}
 .e-mobile-shortcuts span{font-size:28px}
 .e-storefront .e-slider,.e-member-home .e-member-slider{aspect-ratio:5.15/1}
 .e-storefront .e-announcement,.e-member-home>.e-member-announcement{height:52px;min-height:52px}
 .e-storefront .e-ribbon,.e-member-home .e-ribbon{min-height:45px;line-height:45px;font-size:17px}
 .e-storefront .e-winner-track,.e-member-home .e-winner-track{gap:15px;padding:13px 10px 20px}
 .e-storefront .e-winner-item,.e-member-home .e-winner-item{min-width:94px;width:94px}
 .e-storefront .e-winner-item img,.e-member-home .e-winner-item img{width:93px;height:136px}
 .e-storefront .e-winner-item span,.e-member-home .e-winner-item span{font-size:12px}
 .e-storefront .e-winner-item small{font-size:11px}
 .e-mobile-rail a{min-height:78px;font-size:15px}
 .e-mobile-rail a span{font-size:26px}
 .e-mobile-rail .e-rail-up{min-height:34px;height:34px}
 .e-mobile-game-tabs{min-height:57px}
 .e-mobile-game-tabs button,.e-mobile-game-tabs a{font-size:18px}
 .e-storefront .e-game-section .e-section-ribbon,.e-member-home .e-member-section>h2{min-height:44px;line-height:44px;font-size:17px}
 .e-storefront .e-game-card>b{font-size:15px}
 .e-storefront .e-mobile-bottom,body:has(.e-member-header) .e-member-mobile-bottom{min-height:91px}
 .e-storefront .e-mobile-bottom a,body:has(.e-member-header) .e-member-mobile-bottom a{min-height:78px;font-size:16px}
 .e-storefront .e-mobile-bottom .e-bottom-icon,body:has(.e-member-header) .e-member-mobile-bottom .e-bottom-icon{font-size:33px}
}


/* ====================================
   Modern E V5 – Mobile footer refresh
   All rules intentionally scoped to the mobile/tablet layout;
   the established desktop header, grids and footer are unchanged.
   ==================================== */
.e-mobile-detail-footer{display:none}
@media(max-width:760px){
  .e-storefront .e-aside{display:none!important} /* Leaderboard and mini-game are not part of the mobile reference */
  .e-storefront .e-lower-grid{margin-bottom:0}
  .e-storefront .e-footer{display:none!important}
  .e-storefront .e-mobile-detail-footer{display:block;width:100%;max-width:100%;margin:18px 0 0;padding:0 0 calc(97px + env(safe-area-inset-bottom));font-size:12px;color:#5a4540;line-height:1.45;background:#ffebc7}
  .e-mobile-footer-cta{display:grid;grid-template-columns:clamp(84px,22vw,172px) minmax(0,1fr);align-items:center;gap:clamp(10px,2vw,24px);margin:0 7px;border-radius:14px;background:linear-gradient(110deg,#ffa824 0%,#ff8a5e 63%,#fb7292 100%);color:#fff;padding:15px clamp(12px,2.5vw,24px);min-height:126px}
  .e-mobile-footer-logo{display:flex;align-items:center;justify-content:center;min-width:0}
  .e-mobile-footer-logo img{max-width:100%;max-height:86px;object-fit:contain}
  .e-mobile-footer-logo strong{font-size:clamp(15px,2vw,22px);color:#fff;overflow-wrap:anywhere;text-align:center}
  .e-mobile-footer-cta-copy{min-width:0;text-align:left}
  .e-mobile-footer-cta h2{font-size:clamp(14px,2.2vw,23px);line-height:1.3;margin:0 0 4px;color:#fff;font-weight:800;overflow-wrap:anywhere}
  .e-mobile-footer-cta p{font-size:clamp(11px,1.4vw,15px);margin:0 0 10px;color:#fff;line-height:1.3}
  .e-mobile-footer-cta-button{display:inline-flex;align-items:center;justify-content:center;gap:13px;min-width:112px;min-height:37px;padding:6px 16px;background:linear-gradient(180deg,#ffb532,#f7801f);border:1px solid #ffc05e;border-radius:10px;box-shadow:0 3px 7px #b0444b44;font-size:14px;font-weight:800;color:#fff!important}
  .e-mobile-footer-cta-button span{font-size:22px;line-height:1}
  .e-mobile-footer-payment{padding:28px 16px 21px;text-align:center;border-bottom:1px solid #eecfa7}
  .e-mobile-footer-payment h2{font-size:16px;margin:0 0 22px;color:#514b46;font-weight:700}
  .e-mobile-footer-bank-list{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:13px 15px;margin:0 auto 12px;max-width:860px}
  .e-mobile-footer-bank{width:46px;height:46px;flex:none;border-radius:50%;background:#fff8ed;box-shadow:0 1px 3px #76482a22;display:flex;align-items:center;justify-content:center;overflow:hidden}
  .e-mobile-footer-bank img{width:100%;height:100%;object-fit:cover}
  .e-mobile-footer-hint{font-size:11px;color:#96715b;margin:9px 0 0;line-height:1.6}
  .e-mobile-footer-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start;padding:20px 18px 24px;border-bottom:1px solid #eecfa7}
  .e-mobile-footer-block{min-width:0}
  .e-mobile-footer-block h3{font-size:14px;color:#564f4a;font-weight:800;margin:0 0 18px;line-height:1.3}
  .e-mobile-footer-block p{font-size:11px;color:#847062;line-height:1.6;margin:0}
  .e-mobile-footer-socials{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
  .e-mobile-footer-social{width:43px;height:43px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff!important;font-weight:800;text-decoration:none;box-shadow:0 2px 4px #76482a22;font-size:12px}
  .e-footer-line{background:#04c755}
  .e-footer-telegram{background:#20a4e5;font-size:25px;line-height:1}
  .e-mobile-footer-care{display:flex;align-items:center;gap:10px;max-width:360px;line-height:1.4;font-size:11px;color:#826c5e}
  .e-mobile-footer-age{display:flex;flex:none;align-items:center;justify-content:center;width:47px;height:47px;border-radius:50%;border:3px solid #f37555;background:#fff4e4;color:#f34a3e;font-size:19px;font-weight:800}
  .e-mobile-footer-safety{display:flex;align-items:center;gap:8px;font-size:11px;line-height:1.55;color:#826c5e}
  .e-mobile-footer-safety span:first-child{font-size:31px}
  .e-mobile-footer-lastline{font-size:11px;padding:12px 14px 6px;text-align:center;color:#a17d69}
  /* Balanced five-column floating navigation; the middle payment route is more prominent. */
  .e-storefront .e-mobile-bottom,body:has(.e-member-header) .e-member-mobile-bottom{overflow:visible;isolation:isolate;min-height:70px;padding:5px 5px calc(5px + env(safe-area-inset-bottom));border-top:3px solid #ffae31;border-radius:22px 22px 0 0;box-shadow:0 -3px 15px #ae69483a;background:linear-gradient(105deg,#ffab28,#ff9650 46%,#fa7594)}
  .e-storefront .e-mobile-bottom a,body:has(.e-member-header) .e-member-mobile-bottom a{min-height:59px;font-size:11px;gap:3px;overflow:visible;white-space:nowrap}
  .e-storefront .e-mobile-bottom a.is-active,body:has(.e-member-header) .e-member-mobile-bottom a.is-active{border-radius:16px 16px 10px 10px}
  .e-storefront .e-mobile-bottom .e-bottom-icon,body:has(.e-member-header) .e-member-mobile-bottom .e-bottom-icon{font-family:Kanit,'Noto Sans Thai',Tahoma,sans-serif;font-size:25px;line-height:1.1}
  .e-storefront .e-mobile-bottom a.e-bottom-primary,body:has(.e-member-header) .e-member-mobile-bottom a.e-bottom-primary{position:relative;z-index:2;color:#fff!important;justify-content:flex-end;padding-bottom:4px}
  .e-storefront .e-mobile-bottom .e-bottom-coin,body:has(.e-member-header) .e-member-mobile-bottom .e-bottom-coin{display:flex;align-items:center;justify-content:center;width:65px;height:65px;max-width:none;flex:none;margin-top:-38px;margin-bottom:1px;border-radius:50%;background:radial-gradient(circle at 34% 27%,#fff2b2 0%,#f7cc64 20%,#bf7715 58%,#f9c750 73%,#e89c26 100%);border:4px double #ffe79c;box-shadow:0 0 0 4px #ffbf62,0 4px 14px #90501d66;color:#9c601e;font-size:32px;font-weight:800;text-shadow:0 1px 1px #fff8c6}
  .e-storefront .e-mobile-bottom a.e-bottom-primary span:last-child,body:has(.e-member-header) .e-member-mobile-bottom a.e-bottom-primary span:last-child{color:#fff;font-size:11px;font-weight:800}
  body:has(.e-member-header){padding-bottom:90px!important}
}
@media(min-width:640px) and (max-width:760px){
  .e-storefront .e-mobile-bottom,body:has(.e-member-header) .e-member-mobile-bottom{min-height:89px}
  .e-storefront .e-mobile-bottom a,body:has(.e-member-header) .e-member-mobile-bottom a{min-height:77px;font-size:15px}
  .e-storefront .e-mobile-bottom .e-bottom-coin,body:has(.e-member-header) .e-member-mobile-bottom .e-bottom-coin{height:77px;width:77px;font-size:37px;margin-top:-43px}
  .e-storefront .e-mobile-bottom a.e-bottom-primary span:last-child,body:has(.e-member-header) .e-member-mobile-bottom a.e-bottom-primary span:last-child{font-size:14px}
  .e-mobile-footer-bank{width:50px;height:50px}
}
@media(max-width:380px){
  .e-mobile-footer-cta{grid-template-columns:76px minmax(0,1fr);gap:10px;padding:12px 10px;min-height:106px}
  .e-mobile-footer-cta-button{font-size:12px;min-height:33px}
  .e-mobile-footer-info-grid{gap:12px;padding-inline:11px}
  .e-mobile-footer-block h3{font-size:12px}
  .e-mobile-footer-care{gap:6px;font-size:10px}
  .e-mobile-footer-age{width:38px;height:38px;font-size:15px}
  .e-storefront .e-mobile-bottom a,body:has(.e-member-header) .e-member-mobile-bottom a{font-size:10px}
  .e-storefront .e-mobile-bottom .e-bottom-coin,body:has(.e-member-header) .e-member-mobile-bottom .e-bottom-coin{width:59px;height:59px;margin-top:-32px}
}
@media(prefers-reduced-motion:reduce){.e-mobile-footer-cta-button{transition:none}}

/* Modern E V5 – full mobile proportion/polish pass referencing user-provided
   screenshots. Intentional original assets and live provider/game data. */
@media(max-width:760px){
  .e-storefront .e-site-head{border-bottom:2px solid #f94e43;border-radius:0 0 19px 19px}
  .e-storefront .e-head-inner{padding-bottom:14px}
  .e-mobile-shortcuts{gap:4px;padding:0 7px 9px;margin-top:0;border-radius:0 0 11px 11px;background:#fff9ef;position:relative}
  .e-mobile-shortcuts a,.e-mobile-shortcuts button{border-radius:9px;border-color:#ff744c;border-top-color:#ffcc9a;background:linear-gradient(180deg,#fff,#fffaf4);box-shadow:0 2px 0 #ffd0ac;line-height:1.2}
  .e-mobile-shortcuts span{filter:grayscale(1);opacity:.85}
  .e-mobile-shortcuts button:first-child{box-shadow:none;background:#fff}
  .e-storefront .e-app-body{background:#ffebc7}
  .e-storefront .e-announcement{margin:0;height:36px;min-height:36px}
  .e-storefront .e-ribbon{font-weight:700;min-height:35px}
  .e-storefront .e-winner-track{gap:10px;padding:11px 0 19px;overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
  .e-storefront .e-winner-item{scroll-snap-align:center}
  .e-storefront .e-winner-item img{border:0;border-radius:13px;box-shadow:none}
  .e-storefront .e-lower-grid{margin-top:4px}
  .e-storefront .e-mobile-game-tabs{margin:0 0 10px;min-height:41px}
  .e-storefront .e-mobile-game-tabs button{font-weight:700}
  .e-storefront .e-mobile-game-tabs button.is-active{border-bottom:4px solid #f84c45}
  .e-storefront .e-game-section{margin-bottom:16px}
  .e-storefront .e-game-section .e-section-ribbon{background:linear-gradient(100deg,#ffb22b,#fd7894);box-shadow:none}
  .e-storefront .e-game-track{row-gap:11px}
  .e-storefront .e-game-image{aspect-ratio:0.73;border-radius:12px;background:#f4c2a5}
  .e-storefront .e-game-card>b{line-height:1.45;min-height:18px}
  .e-mobile-rail{overscroll-behavior-y:contain}
  .e-mobile-rail a{border-radius:11px;background:#fffdfa;border-color:#736a62;box-shadow:0 3px 0 #f07640}
  .e-mobile-rail a.is-active{border-color:#e07f49}
  .e-storefront .e-partners{margin-bottom:2px}
  .e-storefront .e-partners-grid{gap:7px}
  .e-storefront .e-partners-grid a{border:1px solid #f3d1a7;min-height:54px;border-radius:8px;background:#fff8ed}
  .e-storefront .e-partners-grid a:nth-child(n+13){display:none}
  .e-storefront .e-partners.is-expanded .e-partners-grid a:nth-child(n+13){display:flex}
  .e-storefront .e-partners-showmore{display:block;width:100%;max-width:none;height:41px;margin:16px auto 14px;border:1px solid #ff654a;border-radius:10px;background:#fff;color:#f64a38;font-weight:700;font-size:14px;cursor:pointer}
  .e-storefront .e-mobile-detail-footer{margin-top:0}
  .e-mobile-footer-cta{border-radius:13px}
  .e-storefront .e-mobile-chat-float{display:flex;align-items:center;justify-content:center;position:fixed;right:17px;bottom:calc(93px + env(safe-area-inset-bottom));z-index:100040;width:48px;height:48px;background:#fff;border:5px solid #fff;color:#ff4f40;border-radius:50%;font-size:24px;box-shadow:0 3px 17px #a5674759}
  .e-storefront .e-mobile-chat-float:hover{transform:translateY(-2px)}
  .e-storefront .e-mobile-bottom .e-bottom-icon,body:has(.e-member-header) .e-member-mobile-bottom .e-bottom-icon{filter:none}
}
@media(min-width:1025px){
  .e-storefront .e-partners-showmore,.e-storefront .e-mobile-chat-float{display:none}
}
@media(min-width:640px) and (max-width:760px){
  .e-storefront .e-mobile-shortcuts{padding-left:9px;padding-right:9px;padding-bottom:13px;min-height:81px}
  .e-storefront .e-winner-track{gap:15px;padding-top:16px;padding-bottom:24px}
  .e-storefront .e-mobile-game-tabs{min-height:58px}
  .e-storefront .e-game-track{gap:11px 10px}
  .e-storefront .e-partners-grid a{min-height:60px}
  .e-storefront .e-mobile-chat-float{bottom:calc(111px + env(safe-area-inset-bottom));width:62px;height:62px;font-size:30px}
  .e-mobile-footer-cta{min-height:145px}
  .e-mobile-footer-cta-button{min-height:46px;font-size:18px}
  .e-mobile-footer-payment{padding-top:36px;padding-bottom:32px}
  .e-mobile-footer-payment h2{font-size:18px}
  .e-mobile-footer-bank{width:54px;height:54px}
  .e-mobile-footer-info-grid{padding:28px 22px 32px}
  .e-mobile-footer-block h3{font-size:17px}
  .e-mobile-footer-social{width:51px;height:51px}
  .e-mobile-footer-hint,.e-mobile-footer-block p,.e-mobile-footer-care,.e-mobile-footer-safety{font-size:13px}
}
@media(max-width:380px){
  .e-mobile-footer-cta-copy h2{font-size:13px}
  .e-storefront .e-partners-showmore{margin-top:11px}
  .e-storefront .e-mobile-chat-float{width:43px;height:43px;right:11px}
}

/* ============================================================
   Modern E V6 / art direction refresh
   This is an additive, theme-scoped styling layer. No credit,
   banking, game-launch or member API code is modified.
   ============================================================ */
.e-storefront{
  --e-text:#624348;
  --e-cream:#fff0cf;
  --e-cherry:#f65c75;
  background:linear-gradient(180deg,#fff0d3 0%,#ffe9c3 54%,#fff0d6 100%);
  color:var(--e-text);
}
.e-storefront button,.e-storefront a{-webkit-tap-highlight-color:transparent}
.e-storefront .e-icon,.e-member-home .e-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:1}
.e-storefront .e-icon svg,.e-member-home .e-icon svg{display:block;width:22px;height:22px;stroke:currentColor;fill:none}
.e-storefront .e-site-head{background:linear-gradient(104deg,#ffb432 0%,#ff9e5c 43%,#ff728f 100%);box-shadow:0 2px 12px #b04e5330}
.e-storefront .e-head-inner{min-height:61px}
.e-storefront .e-btn,.e-storefront .e-event{box-shadow:0 3px 0 #cc6a4b2b,0 5px 14px #d4684833}
.e-storefront .e-btn:hover,.e-storefront .e-event:hover{filter:brightness(1.045)}
.e-storefront .e-categories{background:#ffedc9}
.e-storefront .e-category-list{min-height:61px}
.e-storefront .e-category-list a{font-weight:700;gap:6px;transition:color .16s ease}
.e-storefront .e-category-list .e-icon{color:#9b5d49}
.e-storefront .e-category-list .e-icon svg{height:19px;width:19px}
.e-storefront .e-category-list a.is-active{color:#d94c3a}
.e-storefront .e-category-list a.is-active .e-icon{color:#f2773f}
.e-storefront .e-app-body{max-width:1920px;padding-inline:clamp(10px,1.35vw,25px)}
.e-storefront .e-hero{margin-top:5px}
.e-storefront .e-slider{aspect-ratio:1920/420;border-radius:14px;overflow:hidden;max-height:420px;background:#ff987b;box-shadow:0 8px 22px #a85d4e24}
.e-storefront .e-slide img{object-fit:cover;object-position:center}
.e-storefront .e-slide-dots{margin:7px 0 6px}
.e-storefront .e-slide-dots button{height:9px;width:9px;box-shadow:0 1px 3px #73402c20}
.e-storefront .e-slide-dots button.active{background:#f25f70}
.e-storefront .e-announcement{min-height:58px}
.e-storefront .e-announce-track span{font-size:14px;color:#775b54}
.e-storefront .e-ribbon,.e-storefront .e-section-ribbon{background:linear-gradient(100deg,#ffaf2f 0%,#ff955f 50%,#f86e93 100%);color:#fff;letter-spacing:.04px;box-shadow:0 2px 0 #f49a4d2b}
.e-storefront .e-ribbon{border-radius:7px;font-size:15px;line-height:39px}
.e-storefront .e-section-ribbon{border-radius:7px;font-size:15px;line-height:38px;padding:0 15px}
.e-storefront .e-winner-track{gap:13px;padding:17px 10px 21px}
.e-storefront .e-winner-item{min-width:78px;width:78px;gap:5px}
.e-storefront .e-winner-item img{width:77px;height:106px;border:2px solid #fff8e9;border-radius:13px;box-shadow:0 4px 10px #714a4640;transition:transform .2s ease}
.e-storefront .e-winner-item:hover img{transform:translateY(-4px)}
.e-storefront .e-winner-item span{color:#73504c;font-size:10px}
.e-storefront .e-lower-grid{grid-template-columns:minmax(0,3.1fr) minmax(275px,.98fr);gap:19px}
.e-storefront .e-three-promos{gap:13px}
.e-storefront .e-promo-tile{min-height:122px;border-radius:17px;border:2px solid #ffc875;background:radial-gradient(circle at 50% -20%,#ffadc3 0%,#fb7898 57%,#ef587f 100%);box-shadow:0 5px 12px #a9575d24,inset 0 1px 0 #fff7;position:relative;overflow:hidden}
.e-storefront .e-promo-tile::before{content:"";position:absolute;inset:-70% 44% auto -40%;height:170px;background:#fff4;transform:rotate(-25deg);filter:blur(22px);pointer-events:none}
.e-storefront .e-promo-tile span{position:relative;font-size:39px}
.e-storefront .e-promo-tile strong{position:relative;text-shadow:0 2px 3px #bb49608c;font-size:20px}
.e-storefront .e-referral-tile{min-height:122px;border-radius:17px;box-shadow:0 4px 12px #c2766320;background:#fffefa;border-color:#eec7a6}
.e-storefront .e-referral-tile b{color:#a45548}
.e-storefront .e-referral-input{background:#f7f5f3}
.e-storefront .e-game-section{margin-top:17px}
.e-storefront .e-game-track{gap:13px;padding:17px 10px 16px}
.e-storefront .e-game-card,.e-storefront .e-game-track>.e-mobile-card-shell{flex-basis:calc((100% - 78px)/7)}
.e-storefront .e-game-image{border:2px solid #fff3dc;box-shadow:0 5px 12px #a45b5038;aspect-ratio:.76;border-radius:12px}
.e-storefront .e-game-image img{object-fit:cover}
.e-storefront .e-game-image::after{content:"";position:absolute;left:0;right:0;bottom:0;height:18%;pointer-events:none;background:linear-gradient(0deg,#190e1980,transparent);opacity:.3}
.e-storefront .e-game-card>b{font-size:12px;font-weight:700;color:#704b47;margin-top:9px}
.e-storefront .e-game-flag{background:linear-gradient(100deg,#ff3f79,#ff9c3d);border:1px solid #fff8;box-shadow:0 2px 5px #78364566}
.e-storefront .e-board{border:1px solid #f8dfbe;box-shadow:0 5px 17px #8d603619;background:#fffefb;padding:16px}
.e-storefront .e-board h3{font-weight:800;color:#7b4e42;font-size:15px;border-color:#ffd39c;padding-bottom:10px}
.e-storefront .e-board-row{border:1px solid #f7f1ed;border-radius:8px;min-height:54px;margin-block:5px;transition:background .15s,transform .15s}
.e-storefront .e-board-row:hover{background:#fff1e6;transform:translateX(2px)}
.e-storefront .e-board-row:nth-of-type(even){background:#faf6f3}
.e-storefront .e-partners{margin-top:30px}
.e-storefront .e-partners-grid{gap:8px}
.e-storefront .e-partners-grid a{background:#fff8ec;border-radius:9px;border:1px solid #f1d6b8;min-height:52px;transition:transform .2s ease,box-shadow .2s ease}
.e-storefront .e-partners-grid a:hover{transform:translateY(-2px);box-shadow:0 4px 8px #8c5c3c26}
.e-storefront .e-footer{color:#75554a}
.e-storefront .e-track-arrow{opacity:.94;border:1px solid #ffdaae;box-shadow:0 4px 12px #77402e33;background:#fff9f2f0}
.e-storefront .e-track-arrow:focus-visible{outline:3px solid #b85cef;outline-offset:2px}
.e-member-home .e-member-slider{aspect-ratio:1920/420}
@media(min-width:1025px) and (max-width:1290px){
 .e-storefront .e-game-card,.e-storefront .e-game-track>.e-mobile-card-shell{flex-basis:calc((100% - 54px)/6)}
}
@media(max-width:760px){
 .e-storefront .e-site-head{background:linear-gradient(170deg,#ffb63d 0%,#ff9775 55%,#fa6e91 100%);border-radius:0 0 17px 17px;box-shadow:0 4px 10px #ac534320}
 .e-storefront .e-head-inner{gap:9px;padding:9px 14px 14px}
 .e-storefront .e-brand{height:42px}
 .e-storefront .e-brand img{max-height:42px}
 .e-storefront .e-btn{min-height:42px;border-radius:11px;box-shadow:0 3px 8px #9f48302e}
 .e-storefront .e-btn-register{border-color:#f64f4f}
 .e-mobile-shortcuts{padding:9px 7px 10px;background:#fffaf0;gap:6px;min-height:72px}
 .e-mobile-shortcuts a,.e-mobile-shortcuts button{background:#fffefa;border:1px solid #ffd8b8;border-bottom:2px solid #ff9b68;box-shadow:0 3px 8px #9d614321;border-radius:11px;gap:5px;min-height:58px}
 .e-mobile-shortcuts .e-icon{color:#e87553}
 .e-mobile-shortcuts .e-icon svg{width:23px;height:23px}
 .e-mobile-shortcuts b{color:#795448;font-weight:700;font-size:clamp(10px,2.1vw,13px)}
 .e-storefront .e-app-body{background:#ffebc9;padding:0}
 .e-storefront .e-hero{width:100%;margin:0 auto;padding:7px 7px 0}
 .e-storefront .e-slider{width:100%;height:auto!important;aspect-ratio:4.5/1;border-radius:12px;box-shadow:0 5px 12px #b6654e29;max-height:none}
 .e-storefront .e-slide img{object-fit:cover!important;object-position:center}
 .e-storefront .e-slide-dots{bottom:6px}
 .e-storefront .e-ribbon{border-radius:0;line-height:38px;min-height:38px;font-size:14px}
 .e-storefront .e-winner-track{gap:11px;padding:13px 9px 15px}
 .e-storefront .e-winner-item img{width:75px;height:105px;border:2px solid #fff9e9;box-shadow:0 3px 7px #8e574042}
 .e-storefront .e-lower-grid{grid-template-columns:clamp(46px,10.5vw,108px) minmax(0,1fr);gap:9px;margin-top:3px;padding:3px 10px 0 5px}
 .e-mobile-rail{gap:8px;top:9px}
 .e-mobile-rail a{border:1px solid #e6ad86;border-bottom:3px solid #e96f43;background:#fffcf8;border-radius:12px;box-shadow:0 3px 9px #92563a22;min-height:55px;color:#835649!important}
 .e-mobile-rail .e-icon{color:#db754d}
 .e-mobile-rail .e-icon svg{width:clamp(19px,2.8vw,29px);height:clamp(19px,2.8vw,29px)}
 .e-mobile-rail a.is-active{background:linear-gradient(160deg,#ffba45,#ff8668);color:#fff!important;border-color:#e67c50}
 .e-mobile-rail a.is-active .e-icon{color:#fff}
 .e-storefront .e-mobile-game-tabs{border-bottom:2px solid #ce8775;margin-bottom:11px;min-height:44px}
 .e-storefront .e-mobile-game-tabs button{font-size:clamp(12px,2.3vw,18px);font-weight:700;color:#8c5b51}
 .e-storefront .e-mobile-game-tabs button.is-active{border-bottom:4px solid #fa5b54;border-radius:13px 13px 0 0;background:#fffdfa;color:#ee544e!important;box-shadow:0 -2px 7px #b37a5f12}
 .e-storefront .e-game-section{margin-bottom:18px}
 .e-storefront .e-game-section .e-section-ribbon{line-height:37px;min-height:37px;border-radius:7px;margin-bottom:10px;font-size:clamp(13px,2vw,16px)}
 .e-storefront .e-game-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px;padding:0}
 .e-storefront .e-game-card,.e-storefront .e-game-track>.e-mobile-card-shell{width:100%;min-width:0;max-width:100%;flex:none!important}
 .e-storefront .e-game-image{border-radius:11px;border:2px solid #fff5db;aspect-ratio:.78;box-shadow:0 3px 9px #94594338}
 .e-storefront .e-game-card>b{font-size:clamp(10px,1.7vw,14px);font-weight:600;line-height:1.3;margin-top:6px}
 .e-storefront .e-game-flag{font-size:9px;border-radius:10px 10px 10px 0}
 .e-storefront .e-partners-grid a{background:#fffcf6;border:1px solid #f0d6bd}
 .e-storefront .e-mobile-bottom,body:has(.e-member-header) .e-member-mobile-bottom{box-shadow:0 -5px 22px #aa65463d;border-top-color:#ffba4f}
 .e-storefront .e-mobile-bottom .e-icon svg{width:26px;height:26px}
 .e-storefront .e-mobile-bottom a.is-active{box-shadow:0 3px 0 #ff594d}
 .e-storefront .e-mobile-detail-footer{background:#ffebc9}
 .e-storefront .e-mobile-footer-cta{background:linear-gradient(115deg,#ffad2c,#ff9670 60%,#f77095);box-shadow:0 5px 16px #aa574534}
 .e-storefront .e-mobile-footer-bank{border:2px solid #fffdf0;box-shadow:0 3px 8px #9b634032}
 .e-storefront .e-mobile-chat-float{border:3px solid white}
 .e-member-home .e-member-slider{object-fit:cover}
 .e-member-home .e-member-slider .e-slide img{object-fit:cover!important}
}
@media(max-width:600px){
 .e-storefront .e-hero{padding:7px 7px 0}
 .e-storefront .e-slider{aspect-ratio:900/470!important;height:auto!important}
 .e-storefront .e-slide img{object-fit:cover!important}
 .e-storefront .e-winner-item{width:72px;min-width:72px}
 .e-storefront .e-winner-item img{width:70px;height:100px}
 .e-storefront .e-lower-grid{grid-template-columns:49px minmax(0,1fr);gap:7px;padding-inline:5px 8px}
 .e-storefront .e-mobile-rail a{font-size:9px;min-height:53px}
 .e-storefront .e-game-track{gap:9px 6px}
 .e-storefront .e-game-card>b{font-size:11px}
 .e-storefront .e-mobile-footer-cta{margin-inline:6px}
 .e-member-home .e-member-slider{aspect-ratio:900/470!important;height:auto!important}
}
@media(max-width:359px){
 .e-storefront .e-head-inner{padding-inline:9px}
 .e-storefront .e-mobile-shortcuts{gap:3px;padding-inline:4px}
 .e-mobile-shortcuts .e-icon svg{width:19px;height:19px}
 .e-storefront .e-mobile-rail a{min-height:49px}
 .e-storefront .e-game-track{gap:7px 5px}
}

/* Desktop: show the same honest, data-backed information footer as mobile. */
@media(min-width:761px){
 .e-storefront .e-footer{display:none}
 .e-storefront .e-mobile-detail-footer{display:block;margin:54px -0.7% 0;padding:28px max(24px,3vw) 26px;background:linear-gradient(180deg,#ffebc9,#ffedcf);border-top:1px solid #f4cfaa;color:#704c45}
 .e-mobile-footer-cta{display:grid;grid-template-columns:160px minmax(0,1fr);gap:26px;align-items:center;min-height:132px;background:linear-gradient(110deg,#ffac2f,#ff9461 58%,#f97896);border-radius:17px;padding:19px 30px;box-shadow:0 5px 18px #ad554a24}
 .e-mobile-footer-logo{display:flex;justify-content:center;align-items:center}
 .e-mobile-footer-logo img{max-width:150px;max-height:96px;object-fit:contain}
 .e-mobile-footer-logo strong{font-size:20px;color:white;text-align:center}
 .e-mobile-footer-cta-copy h2{color:#fff;font-size:25px;line-height:1.25;margin:0 0 5px}
 .e-mobile-footer-cta-copy p{color:#fffaf4;font-size:15px;margin:0 0 10px}
 .e-mobile-footer-cta-button{display:inline-flex;align-items:center;gap:10px;padding:10px 25px;border-radius:10px;background:linear-gradient(180deg,#ffbb45,#fa8421);border:1px solid #ffce73;color:#fff!important;font-size:16px;font-weight:700;box-shadow:0 3px 9px #a4563949}
 .e-mobile-footer-cta-button span{font-size:20px}
 .e-mobile-footer-payment{padding:27px 8px 24px;text-align:center;border-bottom:1px solid #f0d3ab}
 .e-mobile-footer-payment h2{font-size:18px;margin:0 0 13px;color:#78514b}
 .e-mobile-footer-bank-list{display:flex;align-items:center;justify-content:center;gap:13px;flex-wrap:wrap}
 .e-mobile-footer-bank{width:46px;height:46px;display:flex;justify-content:center;align-items:center;border-radius:50%;background:#fff7eb;border:2px solid white;overflow:hidden;box-shadow:0 2px 7px #9b693321}
 .e-mobile-footer-bank img{width:100%;height:100%;object-fit:contain}
 .e-mobile-footer-hint{font-size:12px;color:#99725e;line-height:1.6;margin:8px 0}
 .e-mobile-footer-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;border-bottom:1px solid #f0d3ab;padding:27px 15px 29px}
 .e-mobile-footer-block h3{font-size:16px;color:#6c4c43;margin:0 0 15px}
 .e-mobile-footer-block p{color:#96745e;font-size:13px;line-height:1.6}
 .e-mobile-footer-socials{display:flex;gap:11px;align-items:center}
 .e-mobile-footer-social{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border-radius:50%;font-size:11px;font-weight:700;color:white!important}
 .e-footer-line{background:#04c755}
 .e-footer-telegram{background:#20a4e5;font-size:24px}
 .e-mobile-footer-care{display:flex;align-items:center;gap:12px;color:#886556;font-size:13px}
 .e-mobile-footer-age{height:47px;width:47px;border:3px solid #f17658;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#ea553d;font-size:17px;font-weight:800}
 .e-mobile-footer-safety{display:flex;align-items:center;gap:12px;font-size:13px;color:#886556}
 .e-mobile-footer-safety span:first-child{font-size:30px}
 .e-mobile-footer-lastline{text-align:center;padding:18px 0 0;font-size:12px;color:#9e7a62}
}

/* Modern E V7: correct the desktop/mobile viewport boundary.
   A 900px browser panel is not a phone: retain the top categories, genuine
   carousel rows, 3-column promotion bar and leaderboard at tablet/desktop sizes.
   Mobile-only rail, bottom nav and 3-column cards start <=760px.
   No game/member/payment routes or API handlers are changed. */
@media (min-width:761px) {
 .e-storefront .e-mobile-shortcuts,
 .e-storefront .e-mobile-rail,
 .e-storefront .e-mobile-game-tabs,
 .e-storefront .e-mobile-bottom,
 .e-storefront .e-mobile-tab-empty { display:none!important; }
 .e-storefront>.e-categories {display:block!important}
 .e-storefront .e-site-head {border-radius:0;box-shadow:none}
 .e-storefront .e-head-inner {display:flex;flex-wrap:nowrap;align-items:center;gap:9px;min-height:55px;padding:5px 13px}
 .e-storefront .e-brand {height:auto;min-width:78px;max-width:130px;flex:0 0 auto}
 .e-storefront .e-brand img {max-height:46px;max-width:130px}
 .e-storefront .e-country {display:inline-flex!important;width:32px;height:32px;font-size:21px}
 .e-storefront .e-event {display:inline-flex!important;font-size:12px;flex:0 0 auto;padding:8px}
 .e-storefront .e-search {display:flex!important;position:static;flex:1 1 165px;min-width:100px;max-width:300px;height:38px;margin:0}
 .e-storefront .e-head-actions {display:flex;gap:5px;width:auto;flex:0 0 auto;margin-left:auto}
 .e-storefront .e-btn {display:inline-flex!important;width:auto;min-height:36px;font-size:12px;white-space:nowrap;padding:5px 10px}
 .e-storefront .e-nav-toggle {display:none!important}
 .e-storefront .e-category-list {display:flex;flex-flow:row nowrap;white-space:nowrap;overflow-x:auto;justify-content:flex-start;scrollbar-width:thin;max-width:100%;padding:7px 7px 9px;min-height:43px}
 .e-storefront .e-category-list a {flex:0 0 auto;font-size:12px;padding:5px 9px}
 .e-storefront .e-app-body {padding:0 clamp(10px,1.2vw,20px);max-width:1560px;margin:0 auto;background:transparent}
 .e-storefront .e-hero{padding:0;margin:0 auto}
 .e-storefront .e-slider{width:100%;height:auto!important;max-height:none;aspect-ratio:1920/360;border-radius:2px}
 .e-storefront .e-slide img{object-fit:cover!important}
 .e-storefront .e-announcement{min-height:43px;gap:9px}
 .e-storefront .e-ribbon{min-height:31px;line-height:31px;font-size:13px}
 .e-storefront .e-winner-track {display:flex;gap:9px;padding:10px 7px 12px;overflow-x:auto}
 .e-storefront .e-winner-item {flex:0 0 62px;width:62px;min-width:62px}
 .e-storefront .e-winner-item img{width:62px;height:84px;object-fit:cover}
 .e-storefront .e-lower-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(218px,25%);gap:12px;margin-top:1px;padding:0}
 .e-storefront .e-left {display:block;min-width:0;width:auto}
 .e-storefront .e-aside {display:block;grid-column:auto;width:auto;margin:0}
 .e-storefront .e-aside .e-board{position:sticky;top:10px}
 .e-storefront .e-three-promos{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:0}
 .e-storefront .e-promo-tile{min-height:79px;border-radius:13px}
 .e-storefront .e-promo-tile strong{font-size:14px}
 .e-storefront .e-referral-tile{min-height:79px;grid-column:auto}
 .e-storefront .e-game-section {margin:10px 0 0;width:auto}
 .e-storefront .e-game-section .e-section-ribbon {font-size:13px;min-height:30px;line-height:30px;border-radius:4px;margin:0}
 .e-storefront .e-game-track{display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x proximity;padding:9px 4px 12px}
 .e-storefront .e-game-card,.e-storefront .e-game-track>.e-mobile-card-shell {flex:0 0 calc((100% - 45px)/6)!important;width:auto;max-width:none;min-width:77px}
 .e-storefront .e-game-track>.e-mobile-card-shell>.e-game-card{min-width:0;width:100%;height:100%}
 .e-storefront .e-game-image{aspect-ratio:.76;border:1px solid #f8dfad;border-radius:8px;box-shadow:0 2px 6px #9b664020}
 .e-storefront .e-game-card>b{font-size:10px;line-height:1.3;margin-top:5px}
 .e-storefront .e-game-rank{display:block}
 .e-storefront .e-game-carousel-wrap .e-track-arrow{display:flex}
 .e-storefront .e-game-fav{display:none}
 .e-storefront .e-partners-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media (min-width:1250px) {
 .e-storefront .e-game-card,.e-storefront .e-game-track>.e-mobile-card-shell{flex-basis:calc((100% - 54px)/7)!important}
 .e-storefront .e-partners-grid{grid-template-columns:repeat(9,minmax(0,1fr))}
}
@media (min-width:761px) and (max-width:900px) {
 .e-storefront .e-event {display:none!important}
 .e-storefront .e-head-inner{gap:5px;padding-inline:7px}
 .e-storefront .e-brand img{max-width:98px}
 .e-storefront .e-category-list a{font-size:11px;padding-inline:6px}
 .e-storefront .e-lower-grid{grid-template-columns:minmax(0,1fr) minmax(200px,27%);gap:8px}
 .e-storefront .e-three-promos{gap:5px}
 .e-storefront .e-promo-tile strong{font-size:12px}
 .e-storefront .e-game-card,.e-storefront .e-game-track>.e-mobile-card-shell{flex-basis:calc((100% - 36px)/5)!important}
}

/* V8 desktop footer + partner marquee */
@keyframes ePartnerMarqueeMove{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
.e-desktop-footer-wrap{display:none}
@media (min-width:761px){
  .e-storefront .e-mobile-detail-footer,.e-storefront .e-footer{display:none!important}
  .e-desktop-footer-wrap{display:block;margin:38px 0 0;padding:0 0 18px;border-top:1px solid #e6c9a1}
  .e-desktop-partners{padding:26px 0 18px}
  .e-desktop-partners h2{margin:0 0 16px;text-align:center;color:#6f4f45;font-size:20px;font-weight:800}
  .e-partner-marquee{overflow:hidden;position:relative}
  .e-partner-marquee-track{display:flex;align-items:center;gap:12px;width:max-content;animation:ePartnerMarqueeMove 34s linear infinite;will-change:transform}
  .e-partner-marquee:hover .e-partner-marquee-track{animation-play-state:paused}
  .e-partner-pill{width:110px;min-width:110px;height:46px;padding:8px 10px;border:1px solid #7d655b;border-radius:8px;background:#f8ecd1;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 1px rgba(255,255,255,.5)}
  .e-partner-pill img{max-width:100%;max-height:28px;object-fit:contain;filter:saturate(.8)}
  .e-partner-pill span{font-size:11px;font-weight:700;color:#73554c;text-align:center}
  .e-desktop-footer{margin-top:20px;padding-top:18px;border-top:1px solid #ddc1a0;color:#705249}
  .e-desktop-footer-main{display:grid;grid-template-columns:minmax(260px,1.05fr) 170px 190px minmax(360px,1.25fr);gap:28px;align-items:start}
  .e-desktop-brand img{max-width:150px;max-height:72px;object-fit:contain}
  .e-desktop-brand strong{font-size:32px;color:#f26648}
  .e-desktop-brandcol p{margin:18px 0 22px;line-height:1.75;color:#7e655c;font-size:14px}
  .e-desktop-contact-icons{display:flex;gap:10px;align-items:center}
  .e-desktop-contact-icons a{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;text-decoration:none;color:#fff!important;font-weight:800}
  .e-desktop-linkcol h3,.e-desktop-badgescol h3{margin:0 0 12px;color:#61473f;font-size:18px}
  .e-desktop-linkcol ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
  .e-desktop-linkcol a{color:#6b554d;text-decoration:none;font-size:14px}
  .e-desktop-linkcol a:hover{color:#d56a4d}
  .e-desktop-badge-block small{font-size:12px;color:#8b6e63;font-weight:600}
  .e-desktop-badge-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:18px}
  .e-desktop-badge{min-height:70px;border:1px solid #8b7d7b;border-radius:12px;background:#f3f1ee;display:flex;align-items:center;justify-content:center;padding:8px;font-size:17px;font-weight:800;color:#6f6a68;text-align:center;line-height:1.15}
  .e-desktop-mini-row{display:grid;grid-template-columns:1fr 1fr;gap:24px}
  .e-desktop-mini-row h4{margin:0 0 10px;color:#624840;font-size:15px}
  .e-desktop-mini-badges{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
  .e-desktop-mini-badge{min-width:62px;height:38px;padding:0 10px;border-radius:10px;background:#fff8eb;border:1px solid #e6cb9f;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;color:#6f534b}
  .e-desktop-payments{margin-top:28px;padding-top:18px;border-top:1px solid #ddc1a0;text-align:center}
  .e-desktop-payments h3{margin:0 0 12px;color:#61473f;font-size:18px}
  .e-desktop-payment-list{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}
  .e-desktop-payment-icon{width:42px;height:42px;border-radius:50%;background:#fff8eb;border:2px solid #fff;box-shadow:0 2px 7px #9b693321;display:flex;align-items:center;justify-content:center;overflow:hidden}
  .e-desktop-payment-icon img{width:100%;height:100%;object-fit:contain}
  .e-desktop-footer-bottom{margin-top:18px;padding-top:16px;border-top:1px solid #ddc1a0;font-size:13px;color:#7e665c}
}
@media (max-width:760px){
  .e-desktop-footer-wrap{display:none!important}
  .e-mobile-detail-footer{display:block!important}
}


/* Modern E V9 — three independent, seamless desktop partner rows and reference-order footer.
   The mobile footer stays as in V8, and no gambling/payment backend is changed. */
@media (min-width:761px) {
 .e-storefront .e-partners{display:none!important}
 .e-desktop-footer-wrap {width:100%;max-width:100%;margin-top:26px;padding:0 0 16px;border-top:none}
 .e-desktop-partners {padding:25px 0 26px;border-bottom:1px solid #8b766b}
 .e-desktop-partners h2 {font-size:17px;line-height:1.4;margin:0 0 15px;text-align:center;font-weight:800}
 .e-desktop-partners-rows {display:grid;gap:11px;max-width:100%;overflow:hidden}
 .e-partner-marquee {overflow:hidden;min-width:0;width:100%;position:relative}
 .e-partner-marquee-track {display:flex;align-items:center;gap:0;width:max-content;animation:ePartnerMarqueeMove 50s linear infinite;will-change:transform}
 .e-partner-marquee-row-2 .e-partner-marquee-track {animation-duration:57s;animation-direction:reverse}
 .e-partner-marquee-row-3 .e-partner-marquee-track {animation-duration:46s}
 .e-partner-marquee:hover .e-partner-marquee-track,.e-partner-marquee:focus-within .e-partner-marquee-track {animation-play-state:paused}
 .e-partner-marquee-set {display:flex;flex:0 0 auto;align-items:center;gap:8px;padding-right:8px;width:max-content}
 .e-partner-pill {width:78px;min-width:78px;height:50px;flex:0 0 78px;border:1px solid #938478;border-radius:8px;padding:6px;background:transparent;box-shadow:none}
 .e-partner-pill img {max-width:95%;max-height:35px;object-fit:contain;filter:none}
 .e-partner-pill span {font-size:9px;line-height:1.15}
 .e-desktop-footer {margin:0;padding:25px clamp(12px,2.5vw,35px) 0;border-top:0}
 .e-desktop-footer-main {display:grid;grid-template-columns:minmax(120px,1.0fr) minmax(260px,2.5fr) minmax(80px,.68fr) minmax(100px,.83fr) minmax(110px,.87fr);column-gap:clamp(12px,2vw,34px);align-items:start}
 .e-desktop-brand img {max-width:150px;max-height:70px;object-fit:contain}
 .e-desktop-brandcol p {font-size:12px;line-height:1.68;margin:18px 0 0;max-width:260px}
 .e-desktop-linkcol h3,.e-desktop-badgescol h3,.e-desktop-contactcol h3 {margin:0 0 15px;font-size:14px;color:#644940;font-weight:800}
 .e-desktop-linkcol ul{display:grid;gap:10px}
 .e-desktop-linkcol a{font-size:12px;white-space:normal}
 .e-desktop-badge-block small {font-size:10px;font-weight:500;color:#86695e;white-space:normal}
 .e-desktop-badge-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0 0 18px}
 .e-desktop-badge {min-height:57px;border-radius:9px;background:#f3f1ee;padding:5px;font-size:9px;line-height:1.12;overflow-wrap:anywhere}
 .e-desktop-badge.e-desktop-age {font-size:19px}
 .e-desktop-mini-row {grid-template-columns:1fr 1fr;gap:14px}
 .e-desktop-mini-row h4 {margin:0 0 10px;font-size:11px;font-weight:800;line-height:1.5}
 .e-desktop-mini-row p,.e-desktop-mini-note {margin:0;font-size:10px;line-height:1.5;color:#8e766a}
 .e-desktop-mini-badges{gap:7px;flex-wrap:nowrap;align-items:center}
 .e-desktop-mini-badge {min-width:40px;height:34px;font-size:12px}
 .e-desktop-contact-icons{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
 .e-desktop-contact-icons a{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff!important;text-decoration:none;font-weight:800}
 .e-desktop-contact-placeholder{font-size:11px;color:#8e7468}
 .e-desktop-payments {margin-top:29px;padding:18px 0 0}
 .e-desktop-payments h3 {font-size:14px;margin:0 0 13px}
 .e-desktop-payment-list {gap:10px}
 .e-desktop-payment-icon {width:40px;height:40px}
 .e-desktop-payment-hint{font-size:11px;color:#937767}
 .e-desktop-footer-bottom {padding:15px 0 0;font-size:11px;border-top:none;margin-top:20px}
}
@media (min-width:761px) and (max-width:1150px) {
 .e-desktop-footer {padding-inline:10px}
 .e-desktop-footer-main {grid-template-columns:minmax(90px,.8fr) minmax(195px,2fr) minmax(65px,.62fr) minmax(70px,.71fr) minmax(75px,.68fr);column-gap:12px}
 .e-desktop-badge-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .e-desktop-badge {min-height:37px;font-size:9px}
 .e-desktop-badge.e-desktop-age{font-size:14px}
 .e-desktop-brand img{max-width:115px}
 .e-desktop-brandcol p{font-size:10px}
 .e-desktop-mini-row {gap:8px}
 .e-desktop-linkcol h3,.e-desktop-badgescol h3,.e-desktop-contactcol h3 {font-size:12px}
}
@media (max-width:760px) {
 .e-storefront .e-partners {display:none!important}
 .e-desktop-footer-wrap {display:none!important}
}
@media (prefers-reduced-motion:reduce) {
 .e-partner-marquee-track {animation:none!important;transform:none!important}
}
