/* Denshub Mobile Phase 4. Mobile only; no changes to desktop or admin. */
@media(max-width:575.98px){
  /* Guest: four items; signed-in member: five items. Keep modals above both bars. */
  body .dhm-bottom-nav.dhm-bottom-guest{grid-template-columns:repeat(4,minmax(0,1fr))!important;z-index:50!important;}
  body .dhm-bottom-nav.dhm-bottom-member{grid-template-columns:repeat(5,minmax(0,1fr))!important;z-index:50!important;}
  body .dhm-bottom-nav.dhm-bottom-member .dhm-bottom-item{font-size:7px!important;gap:1px!important;}
  body .dhm-bottom-nav.dhm-bottom-member .dhm-bottom-item i{font-size:21px!important;line-height:23px!important;}
  body .dhm-bottom-nav.dhm-bottom-member .dhm-bottom-item span{font-size:7px!important;line-height:10px!important;}
  /* No duplication: on homepage, responsive original footer is replaced by the mobile footer-3 partial. */
  body.dhm-homepage footer#aboutus{display:none!important;}
  body.dhm-homepage.dhm-logged-in .mcp-top-header .notificationtext{display:none!important;}
  body .dhm-footer-admin-logo{object-fit:contain!important;max-width:min(85vw,280px)!important;height:auto!important;max-height:60px!important;}
  /* Member home nav: dark unselected items, green active home, horizontal swiping. */
  body.dhm-homepage .dhm-nav-scroll.dhm-member-nav{display:flex!important;gap:5px!important;padding:4px 8px 7px!important;max-width:100vw;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;}
  body.dhm-homepage .dhm-member-nav .dhm-category{flex:0 0 68px!important;height:57px!important;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;color:#f8faff!important;}
  body.dhm-homepage .dhm-member-nav .dhm-category i{font-size:24px!important;line-height:27px!important;color:#f3f7ff!important;}
  body.dhm-homepage .dhm-member-nav .dhm-category span{font-size:11px!important;color:#f8fbff!important;text-transform:none;font-weight:800!important;}
  body.dhm-homepage .dhm-member-nav .dhm-category.dhm-member-home{background:#9dff00!important;border-radius:6px!important;}
  body.dhm-homepage .dhm-member-nav .dhm-member-home i,body.dhm-homepage .dhm-member-nav .dhm-member-home span{color:#001807!important;}
  body.dhm-homepage .dhm-member-content{width:100%;max-width:100%;overflow:hidden;color:#fff;padding-bottom:16px;}
  body.dhm-homepage .dhm-member-wallet{margin:4px 8px 10px;padding:43px 12px 14px;border-radius:12px;background:linear-gradient(120deg,rgba(7,19,24,.9),rgba(6,23,44,.88));box-shadow:inset 0 1px 12px rgba(86,232,179,.12),0 3px 7px #0007;}
  body.dhm-homepage .dhm-member-greeting{font-size:12px!important;color:#f8f8ff!important;margin:0 0 12px!important;}
  body.dhm-homepage .dhm-member-saldo{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;min-height:25px;}
  body.dhm-homepage .dhm-member-amount{font-weight:800;font-size:14px;letter-spacing:.35px;min-width:0;overflow-wrap:anywhere;}
  body.dhm-homepage .dhm-member-eye{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#07359b;color:white;box-shadow:inset 0 0 5px #6d8cef;flex:0 0 28px;cursor:pointer;}
  body.dhm-homepage .dhm-member-wallet-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
  body.dhm-homepage .dhm-member-wallet-actions a{height:33px;display:flex;align-items:center;justify-content:center;text-align:center;border-radius:22px;font-weight:800;font-size:12px!important;text-decoration:none!important;}
  body.dhm-homepage .dhm-member-deposit{background:#9dff00;color:#091200!important;box-shadow:0 2px 0 #335400;}
  body.dhm-homepage .dhm-member-withdraw{background:#0c1b3d;color:#f5faff!important;}
  body.dhm-homepage .dhm-member-hero{margin:4px 4px 12px;}
  body.dhm-homepage .dhm-member-hero .containerslide{max-width:100%!important;padding:0!important;border:2px solid #9bff00!important;border-radius:12px!important;overflow:hidden!important;box-shadow:0 1px 8px #051536;}
  body.dhm-homepage .dhm-member-hero .carousel-item img{width:100%!important;height:auto!important;object-fit:cover;}
  body.dhm-homepage .dhm-member-history{margin:0 7px 18px;}
  body.dhm-homepage .dhm-member-history h2{font-size:15px!important;color:#fff!important;font-weight:800;margin:0 0 10px!important;padding-bottom:5px;border-bottom:1px solid rgba(255,255,255,.18);}
  body.dhm-homepage .dhm-member-history-empty{background:rgba(4,17,31,.9);padding:28px 12px;min-height:95px;border-radius:10px;font-size:12px!important;color:#e3e8ea;margin:0!important;display:flex;align-items:center;}
  body.dhm-homepage .dhm-member-recent-list{display:flex;gap:9px;padding:3px 1px 10px;overflow-x:auto;scroll-snap-type:x proximity;}
  body.dhm-homepage .dhm-member-recent-game{flex:0 0 100px;display:flex;flex-direction:column;gap:5px;color:white!important;font-size:10px!important;text-decoration:none!important;scroll-snap-align:start;}
  body.dhm-homepage .dhm-member-recent-game img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;border:1px solid #4784c5;}
  body.dhm-homepage .dhm-member-recent-game span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  body.dhm-homepage .dhm-mobile-footer-three{background:rgba(0,0,0,.9);padding:18px 10px 30px;border-top:1px solid #255d8d;color:#fff;}
  body.dhm-homepage .dhm-mobile-footer-three h4{font-size:16px!important;color:white!important;}
  body.dhm-homepage .dhm-mobile-footer-three p,body.dhm-homepage .dhm-mobile-footer-three li{font-size:12px!important;color:white!important;}
  body.dhm-homepage .dhm-mobile-footer-three a{color:#aaff1b!important;}
  body.dhm-homepage .dhm-mobile-footer-three .container{max-width:100%;padding:0 5px;}
}
@media(max-width:575.98px) and (prefers-reduced-motion:reduce){
  body.dhm-homepage .dhm-member-nav .dhm-category{transition:none!important;transform:none!important;}
}
