/* Denshub Phase 5. Mobile-only footer for all frontend pages and member game sections. */
@media screen and (max-width:575.98px){
  /* All frontend routes render one unified mobile footer. Original rich desktop footer is preserved for desktop. */
  body footer#aboutus {display:none!important;}
  body .dhm-global-mobile-footer{display:block!important;width:100%;box-sizing:border-box;margin:0;padding:8px 0 22px;background:transparent;color:#fff;overflow:hidden;clear:both;}
  body .dhm-global-mobile-footer .dhm-section{margin:8px 0 0;padding:12px 8px;box-sizing:border-box;}
  body .dhm-global-mobile-footer .dhm-bank h2{font-size:14px!important;text-align:center;font-weight:900;color:#fff!important;margin:0 0 13px!important;}
  body .dhm-global-mobile-footer .dhm-bank-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
  body .dhm-global-mobile-footer .dhm-bank-card{position:relative;aspect-ratio:1.12;min-width:0;border:2px solid #018ce6;border-radius:16px;background:radial-gradient(circle at center,#124bb7,#041555 65%,#00112c);box-shadow:inset 0 0 8px #5ffaff,0 0 4px #048bea;display:flex;align-items:center;justify-content:center;overflow:hidden;}
  body .dhm-global-mobile-footer .dhm-bank-card::after{content:'';position:absolute;inset:5px;border:1px solid #56caff;border-radius:12px;pointer-events:none;}
  body .dhm-global-mobile-footer .dhm-bank-card img{width:85%;height:65%;position:relative;z-index:1;object-fit:contain;}
  body .dhm-global-mobile-footer .dhm-bank-card .dhm-image-fallback{position:absolute;opacity:.4;color:#fff;font-size:25px;}
  body .dhm-global-mobile-footer .dhm-bank-card span{position:absolute;bottom:4px;left:4px;right:4px;color:#dcffff;text-align:center;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  body .dhm-global-mobile-footer .dhm-seo{background:rgba(0,0,0,.85);margin-top:16px;padding:18px 14px 22px;}
  body .dhm-global-mobile-footer .dhm-seo-copy{color:#fff!important;font-size:12px;line-height:1.4;overflow-wrap:anywhere;}
  body .dhm-global-mobile-footer .dhm-seo-copy h1,body .dhm-global-mobile-footer .dhm-global-seo-title{font-size:21px!important;line-height:1.2!important;text-align:center!important;margin:0 0 9px!important;font-weight:900;color:white!important;}
  body .dhm-global-mobile-footer .dhm-seo-copy h2:not(.dhm-global-seo-title),body .dhm-global-mobile-footer .dhm-seo-copy h3{font-size:15px!important;line-height:1.3!important;font-weight:900;color:#fff!important;margin:13px 0 7px!important;}
  body .dhm-global-mobile-footer .dhm-seo-copy p{font-size:12px!important;line-height:1.45!important;color:#fff!important;margin-bottom:10px!important;}
  body .dhm-global-mobile-footer .dhm-seo-copy a{color:#b6ff3a!important;}
  body .dhm-global-mobile-footer .dhm-mobile-footer-three{background:rgba(0,0,0,.88);padding:18px 10px 30px;border-top:1px solid #255d8d;color:#fff;box-sizing:border-box;}
  body .dhm-global-mobile-footer .dhm-mobile-footer-three h4{font-size:16px!important;color:#fff!important;}
  body .dhm-global-mobile-footer .dhm-mobile-footer-three p,body .dhm-global-mobile-footer .dhm-mobile-footer-three li{font-size:12px!important;color:#fff!important;}
  body .dhm-global-mobile-footer .dhm-mobile-footer-three a{color:#aaff1b!important;}
  body .dhm-global-mobile-footer .dhm-mobile-footer-three .container{max-width:100%;padding:0 5px;}
  body .dhm-global-mobile-footer .dhm-footer-admin-logo{display:block!important;height:auto!important;max-height:60px!important;max-width:min(85vw,280px)!important;object-fit:contain!important;}
  /* Populer member: two compact rows per horizontally swipeable column, matching the supplied screenshot. */
  body.dhm-homepage .dhm-member-popular{margin:0 7px 14px;color:#fff;}
  body.dhm-homepage .dhm-member-popular .dhm-section-head{margin:0 0 9px;padding:0 0 5px;}
  body.dhm-homepage .dhm-member-popular .dhm-section-head h2{font-size:14px!important;font-weight:900!important;}
  body.dhm-homepage .dhm-member-popular-rail{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x proximity;overscroll-behavior-x:contain;padding:1px 0 10px;}
  body.dhm-homepage .dhm-member-popular-rail::-webkit-scrollbar{display:none;}
  body.dhm-homepage .dhm-member-popular-column{flex:0 0 min(282px,calc(100vw - 42px));min-width:0;display:grid;grid-template-rows:repeat(2,54px);gap:8px;scroll-snap-align:start;}
  body.dhm-homepage .dhm-member-popular-card{display:grid;grid-template-columns:54px minmax(0,1fr) 45px;align-items:center;gap:5px;min-height:54px;max-height:54px;padding:4px 6px 4px 4px;background:#020d1d;border-radius:9px;box-sizing:border-box;color:#fff!important;text-decoration:none!important;overflow:hidden;}
  body.dhm-homepage .dhm-member-popular-image{position:relative;display:flex;width:48px;height:46px;align-items:center;justify-content:center;overflow:hidden;border-radius:8px;background:#122f4b;}
  body.dhm-homepage .dhm-member-popular-image img{position:relative;z-index:2;width:100%;height:100%;object-fit:cover;}
  body.dhm-homepage .dhm-member-popular-image i{position:absolute;color:#ffec6e;}
  body.dhm-homepage .dhm-member-popular-title{display:flex;min-width:0;flex-direction:column;gap:1px;}
  body.dhm-homepage .dhm-member-popular-title strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:11px;line-height:13px;color:#fff;font-weight:800;}
  body.dhm-homepage .dhm-member-popular-title small{display:block;font-size:9px;line-height:12px;color:#cdd3d8;}
  body.dhm-homepage .dhm-member-popular-play{background:#9cff00;border-radius:17px;padding:4px 2px;color:#0c2100;text-align:center;font-weight:900;font-size:10px;line-height:13px;}
  body.dhm-homepage .dhm-member-popular-rail:focus-visible{outline:2px solid #b2ff26;outline-offset:-2px;}
  body.dhm-homepage .dhm-member-history{margin-bottom:15px;}
  /* Shared original guest-style TOTO cards + slot provider grid are now also below member history. */
  body.dhm-homepage .dhm-member-content>.dhm-section{margin:0 7px 17px;padding:0;}
}
@media screen and (min-width:576px){
  body .dhm-global-mobile-footer{display:none!important;}
}
