/* Denshub Phase 14 category mobile: slot, togel, casino, sports. Scoped to these four pages. */
@media(max-width:575.98px){
 body:has(#dhmCategoryUI) {background:#020917!important;}
 #dhmCategoryUI.dhm-cat-page{display:block!important;position:relative;isolation:isolate;background:radial-gradient(ellipse at 20% 0%,rgba(9,78,155,.24),transparent 47%),radial-gradient(ellipse at 90% 36%,rgba(58,161,28,.08),transparent 48%),linear-gradient(#030c20,#010611 65%);color:#f4f8ff;min-height:65vh;padding:8px 11px 125px;overflow:hidden;}
 #dhmCategoryUI .dhm-cat-bar{display:flex;align-items:center;justify-content:space-between;min-height:46px;gap:8px;margin:0 0 8px;}
 #dhmCategoryUI .dhm-cat-heading{display:flex;align-items:center;gap:9px;min-width:0;}
 #dhmCategoryUI .dhm-cat-heading-icon{font-size:14px;color:#caff25;filter:drop-shadow(0 0 3px #75a600);}
 #dhmCategoryUI h2{margin:0;font-size:15px;line-height:19px;font-weight:900;color:#fff;text-transform:uppercase;letter-spacing:.3px;}
 #dhmCategoryUI p{margin:0;color:#9ab2cf;font-size:10px;line-height:15px;}
 #dhmCategoryUI .dhm-cat-view-all{flex:0 0 auto;display:flex;align-items:center;gap:5px;font-size:10px;font-weight:800;color:#b5ecff;text-decoration:none;border:1px solid #315b7d;border-radius:8px;padding:6px 8px;}
 #dhmCategoryUI .dhm-cat-search-box{position:relative;margin:0 0 15px;}
 #dhmCategoryUI .dhm-cat-search-box input{background:rgba(7,18,36,.94)!important;border:1px solid #395570!important;border-radius:12px!important;box-shadow:inset 0 1px 3px #0009!important;width:100%;height:37px!important;color:#fff!important;font-size:12px!important;padding:0 37px 0 13px!important;outline:0!important;}
 #dhmCategoryUI .dhm-cat-search-box input::placeholder{color:#94a6bc;opacity:1;}
 #dhmCategoryUI .dhm-cat-search-box input:focus{border-color:#a9ff21!important;box-shadow:0 0 0 2px #80ff0030!important;}
 #dhmCategoryUI .dhm-cat-search-box>i{position:absolute;right:12px;top:12px;color:#c2e4ff;font-size:14px;pointer-events:none;}
 #dhmCategoryUI .dhm-cat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:9px;row-gap:13px;align-items:start;}
 #dhmCategoryUI .dhm-cat-entry{min-width:0;margin:0;position:relative;}
 #dhmCategoryUI .dhm-cat-card{display:flex;flex-direction:column;text-decoration:none!important;min-width:0;}
 #dhmCategoryUI .dhm-cat-card-media{position:relative;display:flex;align-items:center;justify-content:center;height:auto;aspect-ratio:1.48/1;overflow:hidden;border:1px solid #1085c2;border-radius:14px;background:radial-gradient(ellipse at 50% 40%,#134995 0,#042758 50%,#010b20 88%);box-shadow:inset 0 0 0 1px #49d1ff53,inset 0 -7px 9px #031135,0 3px 8px #0009,0 0 8px #005fff60;}
 #dhmCategoryUI .dhm-cat-card-media:before{position:absolute;inset:2px;content:"";border:1px solid #a2ff3229;border-radius:11px;pointer-events:none;z-index:2;}
 #dhmCategoryUI .dhm-cat-card-media img{display:block;width:100%;height:100%;object-fit:contain;z-index:1;transition:transform .18s ease;}
 #dhmCategoryUI .dhm-cat-card:active .dhm-cat-card-media img{transform:scale(.96);}
 #dhmCategoryUI .dhm-cat-card-fallback{position:absolute;inset:0;display:grid;place-items:center;font-size:42px;color:#7bff17;text-shadow:0 0 14px #32aecc;}
 #dhmCategoryUI .dhm-cat-card-media:not(.dhm-cat-img-missing):has(img) .dhm-cat-card-fallback{display:none;}
 #dhmCategoryUI .dhm-cat-card-glow{position:absolute;left:12%;right:12%;bottom:0;height:4px;border-radius:100%;background:#b0ff20;filter:blur(5px);opacity:.65;z-index:3;pointer-events:none;}
 #dhmCategoryUI .dhm-cat-card-caption{padding:5px 3px 0;display:block;text-align:center;color:#d7e1ee!important;font-size:10px!important;line-height:14px!important;white-space:normal;overflow-wrap:anywhere;min-height:19px;}
 #dhmCategoryUI .dhm-cat-card-extra{display:block;text-align:center;font-size:9px;color:#95add0;line-height:12px;}
 #dhmCategoryUI .dhm-cat-classic-toggle{width:100%;min-height:41px;margin-top:17px;border:1px solid #397c88;border-radius:10px;background:#08263b;color:#e5fbff;text-align:center;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:10px;}
 .dhm-cat-legacy.dhm-cat-legacy-open{display:block!important;max-width:100%;background:#071224;}
 #dhmCategoryUI .dhm-cat-demo{display:block;width:100%;font-size:10px;text-align:center;color:#c3ff2b!important;margin-top:2px;text-decoration:underline;}
 #dhmCategoryUI .dhm-cat-empty{display:grid;justify-items:center;gap:5px;text-align:center;border:1px dashed #244664;border-radius:12px;padding:30px 15px;color:#fff;background:#071a2c;}
 #dhmCategoryUI .dhm-cat-empty[hidden]{display:none!important;}
 #dhmCategoryUI .dhm-cat-empty i{font-size:22px;color:#a3f911;}
 #dhmCategoryUI .dhm-cat-empty strong{font-size:13px;}
 #dhmCategoryUI .dhm-cat-empty p{font-size:11px;}
 #dhmCategoryUI .dhm-cat-note{margin-top:12px;color:#f1be77;font-size:11px;}
 body:has(#dhmCategoryUI) .dhm-mobile-brand{position:sticky!important;top:0!important;z-index:2050!important;}
 body:has(#dhmCategoryUI) .dhm-category-back{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:34px;height:36px;display:grid;place-items:center;color:#fff!important;text-decoration:none!important;font-size:20px;z-index:4;}
}
@media(min-width:576px){#dhmCategoryUI{display:none!important;}}
@media(max-width:359px){#dhmCategoryUI.dhm-cat-page{padding-left:7px;padding-right:7px;}#dhmCategoryUI .dhm-cat-grid{gap:8px;}}
@media(max-width:575.98px) and (prefers-reduced-motion:reduce){#dhmCategoryUI .dhm-cat-card-media img{transition:none!important;}}


/* Phase 14 FIX1: sticky brand, scrolled-away category tabs, game-first visual hierarchy. */
@media(max-width:575.98px){
 body:has(#dhmCategoryUI) .dhm-mobile-brand{position:sticky!important;top:0!important;z-index:2050!important;isolation:isolate;}
 body:has(#dhmCategoryUI) .mcp-top-header>section.site-header{position:relative!important;top:auto!important;z-index:1!important;}
 body:has(#dhmCategoryUI) .dhm-mobile-brand img{max-height:41px!important;}
 body:has(#dhmCategoryUI) #dhmCategoryUI.dhm-cat-detail{background:#f7fafc!important;color:#1a2637!important;padding:0 8px 115px!important;min-height:80vh;isolation:auto;overflow:visible!important;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-popular{margin:0 -8px 0;padding:12px 8px 14px;background:radial-gradient(ellipse at 12% 22%,#154c7d 0,#061c3f 60%,#03132d 100%);color:#fff;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-popular h2{margin:0 0 8px!important;font-size:14px!important;line-height:20px!important;font-weight:900;color:#fff!important;letter-spacing:0;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-popular h2 i{font-size:13px;color:#b8ff15;margin-right:3px;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-popular-rail{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0 0 4px;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-popular-rail::-webkit-scrollbar{display:none;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-popular-item{flex:0 0 min(80vw,282px);max-width:282px;display:grid;grid-template-columns:60px minmax(0,1fr) auto;align-items:center;gap:7px;padding:6px;border-radius:11px;background:rgba(0,11,34,.73);border:1px solid #29658b;min-height:69px;color:#fff!important;text-decoration:none;scroll-snap-align:start;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-popular-item img{width:58px;height:55px;border-radius:8px;object-fit:cover;background:#15325a;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-popular-item span{min-width:0;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-popular-item strong{font-size:11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:14px;color:#fff;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-popular-item small{display:block;font-size:9px;color:#cad6e6;margin-top:3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-popular-item b{border-radius:16px;background:#95ff09;color:#052300;font-size:9px;font-weight:900;padding:5px 9px;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-toolbar{position:sticky;top:55px;z-index:150;background:#f7fafc;border-bottom:1px solid #e3e7ee;margin:0 -8px 11px;padding:9px 8px 8px;box-shadow:0 2px 5px #20354b12;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-bar{padding:0!important;margin:0 0 6px!important;min-height:19px;gap:8px;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-heading{flex:1;min-width:0;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-heading h2{font-size:13px!important;font-weight:800!important;line-height:17px!important;color:#344154!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-view-all{background:#eef4f9;border-color:#dee7ef;color:#205071!important;font-size:10px;padding:3px 9px;line-height:17px;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-search-box{margin:0!important;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-search-box input{height:34px!important;border:1px solid #d1dbe5!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important;color:#1a304d!important;font-size:12px!important;padding-left:11px!important;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-search-box input::placeholder{color:#9aaabd;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-search-box input:focus{border-color:#3c8ae1!important;box-shadow:0 0 0 2px #86c9fd3c!important;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-search-box>i{top:9px;color:#8798a9;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;column-gap:10px!important;row-gap:14px!important;align-items:start;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-entry{min-width:0;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-card-media{aspect-ratio:1 / 1!important;border:none!important;border-radius:9px!important;background:#e5edf4!important;box-shadow:0 1px 3px #0a29431e!important;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-card-media:before,#dhmCategoryUI.dhm-cat-detail .dhm-cat-card-glow{display:none!important;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-card-media img{object-fit:cover!important;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-card-fallback{color:#3783af;background:linear-gradient(135deg,#f0f5fb,#c7ddec);}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-card-caption{color:#3a4658!important;font-size:10px!important;line-height:13px!important;text-align:center;padding:5px 1px 0!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;min-height:31px;max-height:31px;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-demo{color:#146a9f!important;font-size:10px;margin:2px auto 0;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-empty{background:#fff;color:#44536b;border-color:#c9d5df;margin-top:8px;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-empty strong{color:#35435c;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-empty p{color:#65778a;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-load-footer{min-height:32px;padding:10px 0 8px;text-align:center;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-loading{color:#45556c;font-size:12px;padding:10px 0;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-loading[hidden],#dhmCategoryUI.dhm-cat-detail .dhm-cat-load-more[hidden]{display:none!important;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-load-more{padding:9px 17px;border-radius:9px;border:1px solid #b5cce0;color:#16517c;background:#e8f5ff;font-size:11px;font-weight:800;margin:0 auto;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-sentinel{height:1px;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-page-message{color:#687b91;font-size:11px;margin:3px 0;}
 #dhmCategoryUI.dhm-cat-detail.dhm-cat-is-searching .dhm-cat-popular{display:none;}
 #dhmCategoryUI.dhm-cat-detail .dhm-cat-note{color:#a45c25!important;}
}
@media(max-width:350px){#dhmCategoryUI.dhm-cat-detail .dhm-cat-grid{column-gap:7px!important;row-gap:10px!important;}}
