/* Hot-game squares, category active look, header balance refresh. */
html body #root .mb66-shell .mb66-hot-lobby {
    display: none !important;
}
html body #root .mb66-shell .home-gamelobby.hot_games #game-wrap-scroll-list,
html body #root .mb66-shell .home-gamelobby.hot_games .egame-list,
html body #root .mb66-shell #j88m-hot-list {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}
html body #root .mb66-shell .home-gamelobby.hot_games .game-wrap,
html body #root .mb66-shell .home-gamelobby.hot_games .game-block,
html body #root .mb66-shell .home-gamelobby.hot_games .game-list,
html body #root .mb66-shell .home-gamelobby.hot_games .egame-list {
    margin: 0 !important;
    padding: 0 !important;
}
html body #root .mb66-shell #j88m-hot-list .game-group {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    row-gap: 8px !important;
    column-gap: 8px !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 8px 8px !important;
    box-sizing: border-box;
}
html body #root .mb66-shell #j88m-hot-list .egame-item,
html body #root .mb66-shell .home-gamelobby.hot_games .egame-item,
html body #root .mb66-shell #j88m-hot-list .egame-item.j88m-hot-md5 {
    width: calc((100% - 16px) / 3) !important;
    max-width: calc((100% - 16px) / 3) !important;
    flex: 0 0 calc((100% - 16px) / 3) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    height: auto !important;
    float: none !important;
    overflow: hidden !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}
html body #root .mb66-shell #j88m-hot-list .egame-item .game-img-transtion,
html body #root .mb66-shell #j88m-hot-list .game-img-transtion,
html body #root .mb66-shell #j88m-hot-list .egame-item.j88m-hot-md5 .game-img-transtion {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 0.82 / 1 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    border: 0 !important;
    background: #f3f3f3 !important;
    line-height: 0 !important;
}
html body #root .mb66-shell #j88m-hot-list .egame-item img,
html body #root .mb66-shell #j88m-hot-list .egame-item img.loaded,
html body #root .mb66-shell #j88m-hot-list .egame-item.j88m-hot-md5 img {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 8px !important;
    border: 0 !important;
    display: block !important;
}
html body #root .mb66-shell #j88m-hot-list .name-block,
html body #root .mb66-shell #j88m-hot-list .gp-logo,
html body #root .mb66-shell #j88m-hot-list .favorite-game-icon-wrapper {
    display: none !important;
}

/* Category strip: TARGET active = red-to-white gradient, white icon, black title */
html body #root .mb66-shell .mb66-cates .home-quick-item.active,
html body #root .mb66-shell .mb66-cates .nav-anchor.home-quick-item.active {
    background: linear-gradient(180deg, #ff1b1b 0%, #ff6a5a 42%, #ffffff 100%) !important;
    background-color: #ff1b1b !important;
    background-image: linear-gradient(180deg, #ff1b1b 0%, #ff6a5a 42%, #ffffff 100%) !important;
    border: 1.5px solid #ff1b1b !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    box-shadow: none !important;
}
html body #root .mb66-shell .mb66-cates .home-quick-item.active span,
html body #root .mb66-shell .mb66-cates .home-quick-item.active h3 {
    display: block !important;
    background: transparent !important;
    background-image: none !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
html body #root .mb66-shell .mb66-cates .home-quick-item.active:before {
    opacity: 1 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    filter: none !important;
}
html body #root .mb66-shell .mb66-cates .home-quick-item.active:after {
    display: none !important;
    opacity: 0 !important;
    content: none !important;
    background-image: none !important;
}

html body #root .mb66-shell .mb66-member-bal {
    display: flex !important;
    align-items: center !important;
}
html body #root .mb66-shell .mb66-bal-refresh {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    line-height: 0 !important;
    vertical-align: middle !important;
}
html body #root .mb66-shell .mb66-bal-refresh svg {
    display: block;
    width: 14px;
    height: 14px;
}
html body #root .mb66-shell .mb66-bal-refresh.is-spin svg {
    animation: mb66-spin .6s linear infinite;
}
