:root{--red:#ed0c0c;--deep:#2b0000;--gold:#ffe100;--black:#100000}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#100000;color:white;font-family:Arial,Helvetica,sans-serif;background-image:var(--site-bg-desktop,url('/assets/img/background-desktop-full.jpg'));background-position:center top;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}img{max-width:100%}.shell{width:min(1454px,100%);margin:auto;min-height:100vh;background:linear-gradient(105deg,#260000,#500000 42%,#270000);border-left:1px solid #710000;border-right:1px solid #710000;position:relative}.site-header{height:73px;position:relative;background:#0b0b0b var(--site-header-pattern,url('/assets/img/header-pattern.jpg')) center / auto 73px repeat-x;display:flex;justify-content:center;align-items:center;border-bottom:4px solid #a50000}.site-logo{font-weight:1000;font-size:41px;color:#ffcd19;text-shadow:2px 2px #530000,3px 4px #a00000,-1px -1px #ff6110;transform:skewX(-7deg);display:flex;align-items:center;gap:4px;line-height:1}.logo-crest{font-size:53px;color:#ffcf2d;text-shadow:2px 3px 3px black}.hamb{position:absolute;left:14px;top:5px;background:linear-gradient(#ff4c43,#e30000 54%,#6e0000);box-shadow:inset 0 2px #ffafa2,0 3px 0 #5b0000,0 0 3px red;color:white;border:1px solid #ff7460;border-radius:9px;height:65px;width:65px;font-size:30px;z-index:12}.topnav{background:linear-gradient(#ff1919,#c80000 28%,#920000);padding:9px 10px 9px}.topnav-inner{background:linear-gradient(180deg,#b51515 0%,#790900 58%,#270000 100%);border-radius:55px;border-top:2px solid #f76360;box-shadow:inset 0 -6px 9px #330000;min-height:94px;display:flex;justify-content:space-around;gap:5px;align-items:center;overflow:hidden}.topnav a{display:flex;flex:1 0 0;align-items:center;justify-content:center;flex-direction:column;min-width:72px;gap:1px;font-size:12px;text-align:center;white-space:nowrap}.topnav a:hover{color:#ffe900}.topnav img{width:52px;height:54px;object-fit:contain;mix-blend-mode:normal;border-radius:50%}.notice{background:linear-gradient(#ff1c18,#eb0000 50%,#880000);height:49px;display:flex;align-items:center;overflow:hidden;font-size:19px;font-weight:600}.notice-icon{height:49px;width:61px;flex:none;background:linear-gradient(#fff500,#c4a400);color:#170000;clip-path:polygon(0 0,85% 0,100% 50%,85% 100%,0 100%);display:flex;align-items:center;justify-content:center;font-size:20px}.notice-line{overflow:hidden;white-space:nowrap}.notice-line span{display:inline-block;animation:scrollmarquee 18s linear infinite;padding-left:10px}@keyframes scrollmarquee{0%{transform:translateX(20%)}100%{transform:translateX(-100%)}}.drawer{position:absolute;top:73px;left:10px;width:240px;background:#190000;border:2px solid #da0000;border-radius:8px;z-index:30;box-shadow:0 12px 28px #000}.drawer[hidden]{display:none}.drawer a{display:block;padding:12px 15px;border-bottom:1px solid #602323}.drawer a:hover{background:#930000}.site-main{padding-bottom:100px}.hero{background:#520000}.hero-frame img{width:100%;height:auto;display:block}.hero-slide{display:block}.desktop-actions{display:flex;gap:7px;padding:10px 13px 9px}.desktop-actions a,.big-action{display:flex;justify-content:center;align-items:center;min-height:52px;text-align:center;flex:1;background:linear-gradient(#ff4545 0%,#f60a0a 44%,#a70000 100%);border:3px solid #f00000;border-radius:35px;box-shadow:inset 0 0 0 2px #340000,0 2px 3px #000;font-weight:1000;letter-spacing:1px;font-size:23px;text-shadow:0 2px 2px #550000}.desktop-actions .yellow,.big-action.yellow{color:black;text-shadow:0 1px #fff;background:linear-gradient(#fffeb6,#ffe600 27%,#ffca00 85%,#bb9500);border-color:#ffe722;box-shadow:inset 0 0 0 2px #4a2900,0 2px 3px #000}.mobile-auth{display:none}.desktop-stats{display:flex;gap:3px;align-items:center;padding:14px 14px 9px;background:linear-gradient(90deg,#390000,#480000,#320000)}.stat{width:147px;min-width:105px;height:147px;text-align:center;background:linear-gradient(#640000,#1e0000);border:1px solid #f11;border-radius:15px;overflow:hidden;display:flex;flex-direction:column}.stat b{font-size:13px;background:linear-gradient(#ff3434,#8d0000);padding:6px 3px}.stat small{font-size:12px;margin-top:4px}.stat strong{font-size:36px;line-height:1.5}.stat em{font-size:10px;color:#ffdc39;font-style:normal}.jackpot{margin-left:auto;min-width:34%;padding:14px;text-align:center;min-height:95px;border:3px solid #ffc900;border-radius:55px;background:linear-gradient(100deg,#5d0000,#9c1000,#430000);box-shadow:inset 0 0 8px #000;display:flex;flex-direction:column;align-items:center;justify-content:center}.jackpot small{font-weight:900;color:#ffea23;font-size:18px}.jackpot strong{font-size:19px;color:#fff}.bottomnav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(1454px,100%);height:106px;z-index:19;background:#210000;border-top:5px solid #e10a0a;border-radius:65px 65px 0 0;display:flex;align-items:center;justify-content:space-around;padding:9px 35px 4px}.bottomnav a,.bottomnav button{min-width:75px;display:flex;flex-direction:column;align-items:center;gap:2px;background:transparent;border:0;color:white;font-size:14px}.bottomnav img{height:45px;width:45px;object-fit:cover;border-radius:50%}.content-block{margin:14px 15px 24px;padding:14px 18px;background:linear-gradient(#410000,#190000);border:1px solid #a10c0c;border-radius:13px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:5px}.section-head h2{font-size:20px;margin:5px 0 12px;color:#ffdd17}.section-head a{color:#ffcd4a;font-size:13px}.market-list{padding:18px;background:#170000;text-align:center;color:#ddd}.category-cards{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}.category-cards a{background:#390000;border:1px solid #ae1919;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:8px;gap:5px;font-size:12px;text-align:center}.category-cards img{width:52px;height:54px;border-radius:50%}.promotion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.promo img{width:100%;height:160px;object-fit:cover}.promo h3{font-size:13px;margin:6px}.logged-in{margin:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#180000;padding:16px}.logged-in a{background:#b60000;padding:10px;margin:3px}.alert,.flash{background:#3b0000;padding:13px;margin:10px;border:1px solid #d30}.form-card{background:#160000;border:1px solid #880000;padding:18px;border-radius:10px;margin:20px auto;max-width:700px}.form-card label{display:block;margin:10px 0}.form-card input,.form-card select,.form-card textarea{width:100%;margin-top:4px;background:#080000;color:#fff;border:1px solid #ad3333;border-radius:5px;padding:12px}.btn{display:inline-flex;background:linear-gradient(#ff3e3e,#ac0000);color:#fff;border:1px solid red;border-radius:8px;padding:11px 20px;font-weight:bold}.scroll{overflow:auto}.games-shell,.promos,.section{padding:18px}.promos{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.provider-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.provider-tabs a{background:#850000;padding:8px 15px;border-radius:8px}.game-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.game-tile{padding:9px;background:#210000;border:1px solid #8a1717;border-radius:8px}.game-tile img{width:100%;aspect-ratio:1/1;object-fit:cover}.game-tile strong,.game-tile small{display:block;margin:5px 0}.chatbtn{position:fixed;right:10px;bottom:122px;background:#f00;color:white;border:1px solid #ffde00;border-radius:50%;height:53px;width:53px;font-size:28px;z-index:22}.chatbox{position:fixed;bottom:110px;right:14px;width:min(380px,calc(100vw - 28px));height:390px;background:#140000;border:2px solid #de0000;border-radius:12px;z-index:100;display:flex;flex-direction:column}.chatbox[hidden]{display:none}.chatbox header{background:#900000;display:flex;justify-content:space-between;padding:12px}.chatbox header button{color:#fff;font-size:24px}.chatmessages{flex:1;overflow:auto;padding:10px}.chatbox form{display:flex;padding:8px}.chatbox form input{flex:1;min-width:0;background:#070000;color:#fff;border:1px solid #a00;padding:8px}.chatbox form button{background:#b50000;color:white;padding:8px}table{width:100%;border-collapse:collapse}td,th{border-bottom:1px solid #773434;padding:9px;text-align:left}
@media(min-width:1455px){body{background-size:calc((100vw - 1454px)/2) 790px;background-color:#130000}}
@media(max-width:767px){body{background:#3b3344;background-image:none}.shell{width:calc(100% - 46px);min-width:300px;margin:12px auto 0;background:#230000}.site-header{height:68px;justify-content:center;background:#0f0f0f;border-bottom:0}.site-logo{font-size:28px;margin-left:35px;text-shadow:1px 2px #a20000}.logo-crest{font-size:35px}.hamb{width:58px;height:58px;left:14px;top:4px;font-size:26px;border-radius:10px}.notice{height:46px;font-size:17px}.notice-icon{width:53px;height:46px}.hero{order:1}.hero-frame img{width:100%;aspect-ratio:418/138;object-fit:cover}.site-main{display:flex;flex-direction:column;padding-bottom:100px}.topnav{position:relative;margin-top:0;order:2;padding:7px 6px;background:linear-gradient(#e41919,#9e0000)}.topnav-inner{min-height:72px;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;border-radius:35px;gap:10px;padding:3px 7px}.topnav-inner::-webkit-scrollbar{display:none}.topnav a{flex:0 0 65px;min-width:65px;font-size:11px}.topnav img{height:44px;width:44px}.notice{position:relative}.site-header{order:0}.shell{display:flex;flex-direction:column}.topnav{order:3}.notice{order:1}.site-main{order:2}.hero{order:0}.mobile-auth{order:1;display:flex;flex-direction:column;gap:10px;padding:19px 13px 8px;background:radial-gradient(ellipse at center,#4c0303ad,#120000dd),var(--site-auth-bg,url('/assets/img/decor-left.jpg')) center center / cover}.mobile-auth h2{text-align:center;font-size:17px;font-weight:500;margin:0 0 4px}.login-inline{display:flex;flex-direction:column;gap:14px}.login-inline label{display:flex;align-items:stretch;width:100%;border:2px solid red;border-radius:38px;background:#000;overflow:hidden;height:42px}.login-inline label span{display:flex;justify-content:center;align-items:center;width:46px;background:linear-gradient(#ff3434,#b70000);font-size:21px;flex-shrink:0}.login-inline label input{background:black;border:0;color:#eee;outline:0;flex:1;min-width:0;text-align:center;font-size:17px;padding:4px 12px}.big-action{width:100%;flex:none;min-height:49px;font-size:20px;border-width:3px}.desktop-actions,.desktop-stats{display:none}.bottomnav{width:calc(100% - 46px);bottom:0;height:75px;border-radius:38px 38px 0 0;border-top-width:3px;padding:4px 5px;gap:0}.bottomnav a,.bottomnav button{flex:1;min-width:0;font-size:10px;gap:0}.bottomnav img{width:43px;height:43px}.content-block{margin:10px;padding:12px}.content-block:first-of-type{margin-top:4px}.category-cards{grid-template-columns:repeat(4,1fr);gap:6px}.promos,.promotion-grid{grid-template-columns:1fr 1fr;gap:8px;padding:10px}.game-grid{grid-template-columns:repeat(3,1fr)}.form-card{margin:10px}.chatbtn{bottom:88px}.chatbox{bottom:82px}.drawer{top:67px}.logged-in{flex-direction:column}.site-logo strong{font-size:26px}.notice-line span{font-size:14px}}
@media(max-width:370px){.site-logo strong{font-size:20px}.bottomnav img{width:34px;height:34px}.bottomnav{height:67px}.big-action{font-size:16px}}

.mobile-catbar{display:none}@media(max-width:767px){.topnav{display:none}.mobile-catbar{display:block;order:1;padding:5px;background:linear-gradient(#f31414,#a50000)}.mobile-catbar-inner{background:linear-gradient(#a91b1b,#420000);border-radius:32px;display:flex;overflow-x:auto;scrollbar-width:none;gap:7px;padding:4px 6px}.mobile-catbar-inner a{flex:0 0 63px;text-align:center;display:flex;flex-direction:column;align-items:center;font-size:11px;gap:1px}.mobile-catbar-inner img{width:43px;height:44px;border-radius:50%}.mobile-auth{order:2}.content-block{order:3}.logged-in{order:2}}

/* Remote brand/media controls */
.site-logo .brand-logo{display:block;max-height:64px;max-width:380px;width:auto;height:auto;object-fit:contain;transform:skewX(7deg)}
.jackpot{background-image:var(--site-jackpot-bg);background-position:center;background-size:cover}
@media(max-width:767px){.site-logo .brand-logo{max-width:245px;max-height:58px}}


/* AKAZA BYDBET - tambahan tampilan desktop/mobile ala referensi, tidak mengubah API */
.shell{background-image:linear-gradient(90deg,#1c0000db,#400000ae 50%,#1c0000db);background-position:center;background-repeat:repeat-y;background-size:cover}
.site-header{z-index:22}.topnav{z-index:21}.bottomnav{z-index:25}.hero-slide{position:relative}.overview-row{display:flex;align-items:center;gap:16px;margin:15px 13px}.stats-cards{display:flex;gap:5px;flex:0 0 40%}.stats-cards .stat{flex:1;width:auto;min-width:0;height:145px;background-image:var(--stat-background),linear-gradient(#470000,#1b0000);background-size:cover}.stats-cards .stat b{font-size:12px}.stats-cards .stat strong{margin:auto 0;font-size:37px;color:#fff}.stats-cards .stat em{font-size:11px;margin-bottom:9px}.overview-row .jackpot{margin:0;flex:1;min-width:0;min-height:99px;border:3px solid #edc24b;background-image:var(--site-jackpot-bg),linear-gradient(90deg,#570000,#970500,#570000);background-size:cover;background-position:center}.overview-row .jackpot small{font-size:15px}.overview-row .jackpot strong{font-size:28px;color:#ffdc00}.overview-row .jackpot span{font-size:12px}
.ribbon-title{display:flex;align-items:center;min-height:42px;background:linear-gradient(#fa2828 0%,#f80b0b 45%,#8c0000 85%,#330000 100%);border-radius:10px 10px 5px 5px;overflow:hidden;border-bottom:2px solid #ff3b23}.ribbon-title h2{margin:0;padding:8px 15px;font-size:17px;flex:1;color:white;font-weight:900}.ribbon-title a{flex:0 0 auto;align-self:stretch;display:flex;align-items:center;padding:0 21px;color:#100500;font-size:14px;font-weight:800;background:linear-gradient(#fff82a,#ffcc00);clip-path:polygon(5% 0,100% 0,100% 100%,0 100%)}.market-section,.display-games{margin:15px}.market-grid{display:flex;overflow-x:auto;gap:8px;padding:16px 3px 8px;scrollbar-color:#7a1000 transparent}.market-card{min-width:145px;flex:1;min-height:173px;background-image:var(--site-market-bg),linear-gradient(#c70404,#ff2222 45%,#ab0000);background-position:center;background-size:cover;border:3px solid #ffd91b;border-radius:13px;box-shadow:inset 0 0 10px #ffcc49,0 0 5px #e40000;color:#ffed15;text-align:center;display:flex;align-items:center;flex-direction:column;justify-content:space-between;padding:8px 4px}.market-status{font-size:10px;color:#f3f3f3;background:#870000;padding:2px 5px;border-radius:9px}.market-card>b{font-size:12px}.market-card strong{font-size:44px;background:#330000;padding:0 8px;border-radius:8px;min-width:80%;line-height:1.15}.market-card small{font-size:10px;color:white}
.event-and-winner{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin:25px 16px}.event-panel{min-width:0}.tabs{display:flex;justify-content:center;gap:8px}.tabs button{background:transparent;color:#f66;font-size:16px;font-weight:800;padding:12px 20px;border:0;border-radius:9px 9px 0 0}.tabs button.active{background:linear-gradient(#ff3333,#be0000);color:white}.feature-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;background:#180000;border:2px solid #e10000;border-radius:0 0 18px 18px;padding:22px 15px;min-height:205px}.feature-gallery[hidden]{display:none}.feature-image{overflow:hidden;border:2px solid #ca2112;border-radius:12px;aspect-ratio:1/1}.feature-image img{width:100%;height:100%;object-fit:cover}.winner-panel{background-image:var(--site-winner-bg),linear-gradient(#9b0000,#410000);background-size:cover;background-position:center;border-radius:15px;align-self:end;overflow:hidden;border:2px solid #d70000;padding:9px}.winner-title{display:flex;justify-content:space-between;font-weight:900;font-size:17px;padding:4px}.winner-title span{font-size:10px;background:#ffdf00;color:#160000;border-radius:20px;padding:5px 7px}.winner-panel table{width:100%}.winner-panel th{background:linear-gradient(#ffff34,#dfb500);color:#180000;font-size:13px;padding:9px 4px;text-align:center}.winner-panel td{background:#7c0000;color:#fff;text-align:center;padding:19px 5px}.search-games{margin:12px 15px}.search-games form{display:flex;border:1px solid #ffd300;border-radius:9px;overflow:hidden;background:#111}.search-games input{width:100%;border:0;background:#151515;color:#fff;padding:12px 18px;font-size:17px;outline:none}.search-games button{padding:0 17px;background:linear-gradient(#fa3232,#a00000);color:white;font-size:28px;border-left:1px solid #ffe300}.showcase-track{display:flex;overflow-x:auto;gap:11px;padding:13px 0 5px;scrollbar-width:thin;scrollbar-color:#ae1000 transparent}.showcase-card{flex:0 0 195px;min-width:0;padding:5px 5px 7px;background:linear-gradient(#ad0000,#fa1616);border:2px solid #ef3300;border-radius:14px;display:flex;align-items:center;flex-direction:column;gap:5px}.showcase-card>img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px}.showcase-label{color:white;font-size:11px;font-weight:800;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.play-button{display:block;border:2px solid #ac9400;color:#150800;background:linear-gradient(#ffff8f,#ffe800 47%,#cbad00);border-radius:30px;min-width:72%;padding:5px;text-align:center;font-weight:900;font-size:14px}.play-button.unavailable{font-size:10px;background:#542e09;color:#ffdc69;cursor:default}
.media-footer-grids{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:45px 15px 22px}.media-logo-section{background:linear-gradient(#3b0000,#1b0000);border:3px solid #e50000;border-radius:15px;padding:28px 12px 12px;position:relative}.media-logo-section h2,.contact-ours h2{position:absolute;top:-3px;left:25%;right:25%;min-width:135px;text-align:center;margin:0;font-size:18px;background:linear-gradient(#ff3838,#af0000);border-radius:0 0 10px 10px;padding:7px;color:#fff}.brand-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.brand-cell{height:62px;display:flex;align-items:center;justify-content:center;min-width:0;padding:5px;background:linear-gradient(120deg,#b96363 0 35%,#6a1c1c 35% 100%);border-radius:7px;color:#ffc97b;text-align:center;font-size:12px;font-weight:900;overflow:hidden}.brand-cell img{height:100%;width:100%;object-fit:contain}.brand-cell span{overflow-wrap:anywhere}.contact-ours{position:relative;border:3px solid #f00;border-radius:10px;margin:28px 15px;padding:50px 10px 25px;text-align:center;background:#2b0000}.contact-ours h2{left:30%;right:30%}.contact-ours a{color:#ffdd00;font-weight:800;font-size:19px}
@media(max-width:900px){.media-footer-grids{gap:10px}.brand-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:767px){.shell{background-image:linear-gradient(#1a0000be,#3d00004f),var(--site-auth-bg);background-size:auto,cover;background-attachment:scroll}.overview-row{display:block;order:3;margin:9px 9px}.overview-row .stats-cards{display:flex;gap:4px;width:100%}.stats-cards .stat{height:127px;min-width:0}.stats-cards .stat b{font-size:10px;padding:4px 1px}.stats-cards .stat small{font-size:10px}.stats-cards .stat strong{font-size:28px}.stats-cards .stat em{font-size:9px}.overview-row .jackpot{margin-top:12px;min-height:75px}.market-section{order:4;margin:8px}.market-card{min-width:105px;flex:0 0 105px;min-height:137px;padding:6px 3px}.market-card strong{font-size:32px}.market-card>b{font-size:10px}.market-status{font-size:8px}.event-and-winner{order:5;display:flex;flex-direction:column;gap:15px;margin:20px 9px}.feature-gallery{grid-template-columns:repeat(2,1fr);padding:14px 10px;gap:10px}.winner-panel{width:100%}.search-games{order:6;margin:14px 9px 0}.display-games{order:7;margin:9px}.showcase-card{flex-basis:calc((100vw - 90px)/3);min-width:88px;max-width:145px}.showcase-label{font-size:9px}.play-button{font-size:10px;min-width:95%;padding:4px 0}.play-button.unavailable{font-size:8px}.media-footer-grids{order:8;display:flex;flex-direction:column;gap:24px;margin:33px 9px 15px}.media-logo-section{padding:30px 9px 10px}.media-logo-section h2{font-size:15px}.brand-grid{grid-template-columns:repeat(3,1fr);gap:5px}.brand-cell{height:58px;font-size:11px}.contact-ours{order:9;margin:22px 9px}.contact-ours h2{font-size:15px}.content-block{order:10}.ribbon-title{min-height:37px}.ribbon-title h2{font-size:14px}.ribbon-title a{font-size:11px;padding:0 10px}}


/* BYDBET v9 mobile full width and per-tenant graphical asset controls. */
.site-header{background-image:var(--site-header-top-bg),var(--site-header-pattern);background-repeat:no-repeat,repeat-x;background-position:center,center;background-size:cover,auto 73px}
.topnav-inner,.mobile-catbar-inner{background-image:var(--site-nav-bg),linear-gradient(180deg,#b51515 0%,#790900 58%,#270000 100%);background-size:cover,auto}
.bottomnav{background-image:var(--site-bottom-bg),linear-gradient(#210000,#210000);background-size:cover,auto}
.big-action,.desktop-actions a{background-image:var(--site-btn-red-bg),linear-gradient(#ff4545 0%,#f60a0a 44%,#a70000 100%);background-size:cover,auto}
.big-action.yellow,.desktop-actions .yellow{background-image:var(--site-btn-gold-bg),linear-gradient(#fffeb6,#ffe600 27%,#ffca00 85%,#bb9500);background-size:cover,auto}
.ribbon-title{background-image:var(--site-ribbon-bg),linear-gradient(#fa2828 0%,#f80b0b 45%,#8c0000 85%,#330000 100%);background-size:cover,auto}
.hamb .ui-icon,.notice-icon .ui-icon,.search-games button .ui-icon,.chatbtn .ui-icon{display:block;width:25px;height:25px;object-fit:contain;margin:auto}
.mobile-auth .login-inline label span img{display:block;width:22px;height:22px;object-fit:contain;margin:auto}
.contact-ours .contact-icon{display:block;width:42px;height:42px;object-fit:contain;margin:0 auto 8px}
.hero-frame picture,.hero-frame .hero-media{display:block;width:100%}
@media(max-width:767px){
 html,body{width:100%;max-width:100%;margin:0;overflow-x:clip}
 body{background:#190000!important;background-image:none!important}
 .shell{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;border-left:0!important;border-right:0!important;padding:0!important;box-sizing:border-box;overflow-x:clip;background-image:var(--site-auth-bg),linear-gradient(#250000,#3d0000)!important;background-size:cover,auto!important;background-position:center top!important;background-repeat:repeat-y!important}
 .site-header,.site-main,.notice,.hero,.hero-frame,.mobile-catbar,.mobile-auth,.overview-row,.market-section,.event-and-winner,.display-games,.media-footer-grids{box-sizing:border-box;max-width:100%;min-width:0}
 .site-header{width:100%;margin:0;height:69px;background-image:var(--site-header-top-bg),var(--site-header-pattern)!important;background-repeat:no-repeat,repeat-x!important;background-size:cover,auto 69px!important}
 .site-logo{max-width:calc(100% - 96px);margin-left:30px;min-width:0;justify-content:center;overflow:hidden}
 .site-logo strong{font-size:clamp(19px,6.8vw,27px);white-space:nowrap}
 .site-logo .brand-logo{max-width:min(245px, 100%);height:auto;max-height:60px}
 .hamb{width:52px;height:55px;left:8px;top:6px}
 .site-main{width:100%!important;padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important}
 .hero{width:100%;overflow:hidden}
 .hero-frame img{width:100%;max-width:100%;display:block;height:auto;aspect-ratio:418 / 138;object-fit:cover}
 .mobile-catbar{width:100%;padding:5px 4px}
 .mobile-catbar-inner{min-width:0;width:100%}
 .mobile-auth{width:100%;padding:18px 11px 9px;background-image:var(--site-mobile-login-bg),radial-gradient(ellipse at center,#4c0303ad,#120000dd),var(--site-auth-bg);background-size:cover,auto,cover;background-position:center}
 .mobile-auth form,.mobile-auth label,.mobile-auth .big-action{max-width:100%}
 .bottomnav{width:100%!important;max-width:100vw!important;left:0!important;right:0!important;transform:none!important;bottom:0!important;gap:2px;padding:6px 5px calc(4px + env(safe-area-inset-bottom,0px))!important;height:calc(77px + env(safe-area-inset-bottom,0px))!important;border-radius:30px 30px 0 0;justify-content:space-around}
 .bottomnav a,.bottomnav button{flex:1 1 0!important;min-width:0!important;width:20%;gap:2px;font-size:clamp(9px,2.6vw,11px)!important;white-space:nowrap;text-align:center}
 .bottomnav img{object-fit:contain!important;width:clamp(33px,10.5vw,46px)!important;height:clamp(33px,10.5vw,46px)!important;border-radius:0!important}
 .bottomnav a span,.bottomnav button span{display:block;max-width:100%;overflow:hidden;text-overflow:clip;line-height:1.18}
 .chatbtn{display:none!important}
 .chatbox{bottom:calc(82px + env(safe-area-inset-bottom,0px))}
 .overview-row,.market-section,.display-games,.search-games,.event-and-winner,.media-footer-grids,.contact-ours{margin-left:8px!important;margin-right:8px!important}
 .stats-cards{width:100%;min-width:0}.stats-cards .stat{flex:1 1 0;min-width:0!important}
 .media-logo-section,.winner-panel,.feature-gallery{max-width:100%;min-width:0}
 .showcase-card{flex-basis:calc((100vw - 54px)/3);min-width:86px;max-width:160px}
 .ribbon-title a{flex-shrink:0}
}
@media(max-width:360px){.bottomnav{gap:0}.bottomnav img{width:34px!important;height:34px!important}.site-logo{margin-left:37px}.mobile-auth{padding-left:8px;padding-right:8px}}

/* ===== BYDBET v10: one desktop background, flat red-and-gold demo markets ===== */
@media (min-width:768px){
 body{background:#170000!important;background-image:var(--site-bg-desktop)!important;background-repeat:no-repeat!important;background-size:cover!important;background-position:center top!important;background-attachment:fixed!important}
}
.market-grid{gap:10px;padding-top:12px;padding-bottom:9px;scroll-snap-type:x proximity}
.market-card{
 position:relative;isolation:isolate;overflow:hidden;
 flex:0 0 150px;min-width:150px;width:150px;min-height:192px;
 padding:8px 5px 10px;justify-content:space-between;
 border:3px solid #ffd500;border-radius:12px;
 background-image:var(--site-market-bg),linear-gradient(155deg,#e30a0a 0%,#f51b13 58%,#b30000 100%)!important;
 background-size:cover!important;background-position:center!important;
 box-shadow:0 0 6px #b90000,inset 0 0 7px #ffb900;
 scroll-snap-align:start
}
.market-card .market-status{align-self:flex-end;color:#ffe16d;border-radius:0 0 0 8px;background:#7b0000a8;font-size:9px;font-weight:900;padding:1px 4px;min-height:16px}
.market-card .market-dot{display:inline-block;width:6px;height:6px;background:#ffd400;border-radius:50%;vertical-align:1px}
.market-card>b{font-size:12px;color:#ffe400;line-height:1.15;white-space:nowrap;letter-spacing:-.3px;text-shadow:0 1px #670000}
.market-card strong{width:100%;min-width:0;background:#330000;color:#ffe500;border-radius:10px;font-size:42px;line-height:1.55;padding:0 2px;font-weight:900;font-variant-numeric:tabular-nums;text-shadow:0 1px #790000}
.market-card small{display:block;color:#fff6b3;font-size:9px;line-height:1.1;max-width:100%;min-height:22px}
.stats-cards .stat strong{font-variant-numeric:tabular-nums}
.stats-cards .stat em{font-style:normal;color:#ffe427;line-height:1.15;min-height:24px;padding:0 3px}
@media (max-width:767px){
 body{background:#190000!important;background-image:none!important}
 .market-grid{gap:7px;padding:8px 2px 10px}
 .market-card{flex:0 0 116px!important;min-width:116px!important;width:116px!important;min-height:165px!important;padding:5px 3px 8px!important}
 .market-card>b{font-size:10px!important;white-space:normal}
 .market-card strong{font-size:33px!important;line-height:1.55}
 .market-card small{font-size:8px!important}
 .market-card .market-status{font-size:8px}
 .stats-cards .stat strong{font-size:29px}
 .stats-cards .stat em{font-size:9px;min-height:23px}
}
