/* Shared mobile layout rules. Desktop templates opt in only in Mobile mode. */
html.mobile-fit{width:100%;min-width:0;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.mobile-fit body{min-width:0!important;max-width:100%;margin-left:0;margin-right:0;box-sizing:border-box}
.mobile-fit *, .mobile-fit *::before,.mobile-fit *::after{box-sizing:border-box}
.mobile-fit img,.mobile-fit video,.mobile-fit canvas{max-width:100%}
.mobile-fit input,.mobile-fit select,.mobile-fit textarea{min-width:0;max-width:100%}
.mobile-fit input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.mobile-fit select,.mobile-fit textarea{font-size:16px!important}
.mobile-fit .mobile-table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.mobile-fit .mobile-table-scroll>table{margin-left:0;margin-right:0}
.mobile-fit .mobile-table-scroll:focus-visible{outline:2px solid #e93d49;outline-offset:-2px}
.mobile-fit .bank_recharge .bank_form_list>li{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;padding:8px 10px}
.mobile-fit .bank_form_left{flex:0 0 90px;float:none!important;line-height:1.5!important;font-size:15px!important}
.mobile-fit .bank_right_input,.mobile-fit .bank_right_select{float:none!important;flex:1 1 150px;width:auto!important;min-width:0;margin:0!important}
.mobile-fit .bank_right_input .input_txt,.mobile-fit .bank_right_select select{width:100%!important;min-height:40px}
.mobile-fit .bank_pass,.mobile-fit .billrecord_main p,.mobile-fit .my_info,.mobile-fit .gift-progress,.mobile-fit .chat-message-text{overflow-wrap:anywhere}
.mobile-fit .searchbar.row{display:flex;flex-wrap:wrap;gap:8px;height:auto!important;min-height:44px;margin-left:0!important;padding:8px 0}
.mobile-fit .searchbar.row>[class*=col-]{flex:1 1 110px;width:auto!important;margin:0!important;min-width:0}
.mobile-fit .searchbar input,.mobile-fit .searchbar select{width:100%;height:36px}
.mobile-fit .buttons-tab{display:flex;overflow-x:auto;flex-shrink:0}
.mobile-fit .buttons-tab .button{flex:1 0 auto;min-width:52px;white-space:nowrap}
.mobile-fit .am-tabs-default>.am-tabs-nav{display:flex}
.mobile-fit .am-tabs-default>.am-tabs-nav>li{flex:1;min-width:0}
.mobile-fit .am-tabs-default>.am-tabs-nav>li>a{width:100%!important}
.mobile-fit .member-pag{display:flex;flex-wrap:wrap;gap:6px;max-width:100%}
.mobile-fit .bar-tab,.mobile-fit .bottom_navbar,.mobile-fit .am-navbar{padding-bottom:env(safe-area-inset-bottom,0px);height:auto;min-height:50px}
.mobile-fit .page-group>.page{height:100vh;height:100dvh}
.mobile-fit .mobile-game-bar{display:flex;align-items:center;gap:6px;padding:0 8px}
.mobile-fit .mobile-game-bar>.pull-left{order:0;flex:0 0 24px;margin:0;float:none}
.mobile-fit .mobile-game-bar>.gameInfo{order:1;flex-shrink:0;margin:0!important}
.mobile-fit .mobile-game-bar>.choice_lottery_playdetail_left{order:2;flex-shrink:0;font-size:16px;margin:0}
.mobile-fit .mobile-game-bar>.title{order:3;position:static;flex:1;min-width:0;width:auto;margin:0;text-align:right;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.mobile-fit .mobile-game-bar>.pull-right{order:4;flex:0 0 24px;width:24px;margin:0;font-size:0;float:none;overflow:hidden}
.mobile-fit .mobile-game-bar>.pull-right .icon{font-size:20px}
.mobile-fit .page>.content{bottom:var(--mobile-bottom,0px)!important;padding-bottom:12px!important}
.mobile-fit .lottey_footer{bottom:var(--mobile-nav-height,0px)!important;padding-bottom:0}
.mobile-fit .lottey_footer .betting_box{display:flex;align-items:center;justify-content:space-between;gap:4px;height:auto;min-height:55px;line-height:1.5;overflow:visible;padding:6px}
.mobile-fit .betting_left,.mobile-fit .betting_right{float:none!important;min-width:0}
.mobile-fit .betting_right{flex-shrink:0}
.mobile-fit .lottey_footer .betting_right_btn{margin:0;min-height:40px;font-size:16px;padding:0 12px}
.mobile-fit .lottey_footer .betting_sum_box{font-size:14px;overflow-wrap:anywhere}
.mobile-fit .lottey_footer .betting_empty{font-size:16px;padding:0 5px}
.mobile-fit .lottey_footer .lottery_inputBox,.mobile-fit .lottey_footer .lottery_footer_sum{height:auto;min-height:35px;line-height:1.6;padding:5px 8px;overflow-wrap:anywhere}
.mobile-fit .lottey_footer .lottery_input{max-width:70px}
.mobile-fit .modal{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
.mobile-fit .modal-inner{max-height:calc(100dvh - 100px);overflow-y:auto}
.mobile-fit .aui_state_lock{max-width:calc(100vw - 24px)!important}
.mobile-fit .aui_content{max-width:calc(100vw - 48px)!important;max-height:calc(100dvh - 130px);overflow:auto;box-sizing:border-box}
.mobile-fit .aui_content>div{max-width:100%!important}
.mobile-fit dialog{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px);overflow:auto}
.mobile-fit #chat-app{min-height:0;height:calc(100vh - 52px);height:calc(100dvh - 52px)}
.mobile-fit #chat-compose{padding-bottom:max(10px,env(safe-area-inset-bottom,0px))}
.mobile-fit #room-list,.mobile-fit #room-lobby,.mobile-fit #room-view{min-width:0;min-height:0}
.mobile-fit .chat-room-copy,.mobile-fit .chat-profile-meta{min-width:0;overflow-wrap:anywhere}
.mobile-fit .chat-plan{max-width:100%}
.mobile-fit .gift-filter{flex-wrap:wrap}
.mobile-fit .gift-filter input,.mobile-fit .gift-filter select{flex:1 1 130px;width:auto}
.mobile-fit #team-app,.mobile-fit #gift-app{min-width:0;max-width:100%}
.mobile-fit #app>#tabs{height:calc(60px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px)}
.mobile-fit .team-table{max-width:100%;overflow-x:auto}
@media(max-width:360px){
 .mobile-fit .am-header .am-header-title{margin:0 64px;font-size:18px!important}
 .mobile-fit .gift-bar h1{font-size:19px}.mobile-fit .gift-bar button{font-size:14px!important}
 .mobile-fit .chat-profile{gap:6px}.mobile-fit .chat-profile #profile-avatar{width:48px;height:48px}
 .mobile-fit .chat-profile #profile-name{font-size:16px}.mobile-fit .chat-profile #nickname{width:130px}
 .mobile-fit .lottery_inputBox{font-size:14px}.mobile-fit .lottery_inputBox .lottery_input{max-width:55px}
}
