/* ******************************************** HEIGHT 860 ********************************************* */
@media screen and (max-height: 860px) {

/* ---------- WELCOME_PAGES ---------- */
    .main_container {
        justify-content: flex-start;
        padding: 0;
        overflow: visible;
    }
    body.welcome_page .fst_screen {
        height: auto;
        margin-top: 5%;
    }


    body.welcome_page .fst_screen .logo {
        width: 320px;
        height: 170px;
    }

    body.welcome_page .fst_screen .btn {font-size: 23px;}


    body.welcome_page .welcome_text {margin: 15px auto 10px;}
    body.welcome_page .heading {font-size: 30px;}
    body.welcome_page .subheading {font-size: 20px;}
    body.welcome_page .question {font-size: 18px; margin-bottom: 15px;}
    body.welcome_page .forget {
        margin-top: 15px;
        font-size: 14px;
    }

    .form_field p {font-size: 16px;}

    body.welcome_page .reg_wrapper p {font-size: 16px;}
    body.welcome_page .reg_wrapper .btn {
        font-size: 18px;
        margin: 5px auto;
    }

    body.welcome_page .modal {
        width: min(480px, 100% - 20px);
        padding: 20px;
    }


    /* ***********************************************************
    LK PAGES
    ************************************************************ */

    .white_block {
        width: calc(100% - 40px);
        padding: 20px;
        border-radius: 20px;            
    }
    .user_info_block {height: calc(100% - 40px);}


    .user_info_block .f_top,
    .user_info_block .f_middle,
    .user_info_block .f_bottom {margin-bottom: 10px;}


    body.welcome_page .welcome_screen .logo,
    body.welcome_page .register_screen .logo,
    .user_info_block .logo {
        width: 146px;
        height: 70px;
        margin: 15px auto;
    }

    .user_avatar_block {
        width: 180px;
        height: 180px;
    }
    .user_avatar_block .skins_btn {top: 20px;}

    .user_avatar_block .user_skin {       
        width: 150px;
        height: 150px;
        padding: 5px;
    }


    .user_info_block .level {margin: 6px auto;}
    .user_info_block .level span {font-size: 18px;}
    .user_info_block .level .circle {
        width: 46px;
        height: 46px;
    }
    .user_info_block .level .circle span {font-size: 23px;}

    
    
    
    .page_tabs {border-radius: 20px;}
    .page_tabs .tab {
        padding: 8px 0 9px;
        border-radius: 20px;
    }

    .page_tabs span.active_back {
        height: 40px;
        border-radius: 20px;
    }

    .battle_items .battle_item {
        border-radius: 20px;
        padding-bottom: 20px;
    }

    .battle_items .battle_item .image {
        width: 96%;
        height: 160px;
        border-radius: 20px;    
        margin: 2%;
    }
    .battle_items .battle_item .text p {
        font-size: 14px;
        line-height: 1.1;
        margin-top: 6px;    
    }

    .battle_items .battle_item .btn {font-size: 16px;}

    .tabs_content {height: calc(100% - 20px);}
    .tab_content.white_block {
        width: calc(100% - 80px);
        min-width: 0;
    }


    .scroll_block,
    .skins_list.scroll_block {
        width: calc(100% + 5px);
        margin-right: -15px;
    }

    .heading_line {
        padding: 10px 20px;
        margin: -20px -20px 20px -20px;
        border-radius: 20px;
    }

    .heading_line .heading {font-size: 20px;}

    .skins_page {height: calc(100% - 40px);}






    /* ***********************************************************
    GAME PAGES
    ************************************************************ */
    .game_grid .game_field {height: 350px;}
    .game_grid .game_field .inner p {line-height: 1.3;}
    .game_grid .game_field .inner p.fw7 {
        line-height: 1.1;
        margin-bottom: 10px;
    }
    .game_grid .game_field .inner p.fw6 {margin-top: 8px;}
    .game_grid .game_field .inner p.fw9 {
        margin: 15px 0;
        font-size: 17px;
    }
    .game_grid .game_field .inner .btn {margin: 20px auto 10px;}




    .battle_result_block .bs_bon {margin-top: 5px;}
    .battle_result_block .time_stat {
        font-size: 16px;
        margin: 10px auto;
    }
    .battle_result_block .battle_stats .item,
    .battle_result_block .time_stat,
    .battle_score_block .win_lose_score {margin-bottom: 2px;}
    .battle_result_block .battle_stats .item span.caption,
    .battle_result_block .battle_stats .item span.qtty,
    .battle_score_block .win_lose_score  {font-size: 16px;}

    .battle_score_block  {margin-top: -10px;}
    .battle_score_block .score {margin: 10px auto;}






}



/* **********************************************************************************************************************
****************************************************************************************************************************
768
****************************************************************************************************************************
************************************************************************************************************************ */
@media screen and (max-width: 768px) {
    
    
    body {min-width: 375px;} 
    body.welcome_page {background-image: url(../img/back/m/2/win.webp);}
    body.lk_pages {background-image: url(../img/back/m/empty.webp);}


    .ms {display: flex !important;}   
   
    .main_container {
        width: calc(100% - 20px);
        justify-content: flex-start;
        padding: 0;
        overflow: visible;
    }


    p {font-size: 12px;}
    h2 {
        font-size: 14px;
        line-height: 1;
    }

    hr {margin: 10px auto;}


    .heading_line {
        width: calc(100% - 5px);
        padding: 10px 15px 10px 10px;
        margin: -10px -10px 10px -10px;
        border-radius: 30px;
        box-shadow: 0px 3px 6px rgba(0,0,0,0.23);
    }

    .heading_line .heading {font-size: 16px;}




    ul {margin: 5px 0;}
    li {margin-bottom: 5px;}
    
    ul.xlist li,
    ul.vlist li,
    ul.olist li {padding-left: 12px;}
    ul.llist li {padding-left: 6px;}

    ul.olist li::before {
        left: 4px;
        top: 4px;
        width: 4px;
        height: 4px;
    }






    /* ---------- BUTTONS ---------- */
    .btn {
        padding: 7px 25px 8px;
        font-size: 16px;
    }

    /* ---------- ICONS ---------- */
    span.icon {background-image: url(../img/m_sprite.svg);}


    span.icon.swords {
        width: 18px;
        height: 16px;
        background-position: 0px -158px;    
    }

    span.icon.stats {
        width: 16px;
        height: 16px;
    }

    span.icon.lock {
        width: 31px;
        height: 45px;
        
    }

    span.icon.win {
        width: 12px;
        height: 12px;
        margin-right: 4px;
    }
    span.icon.win.color {background-position: -19px -577px;}
    span.icon.lose {
        width: 10px;
        height: 12px;
        margin-right: 4px;
    }
    span.icon.lose.color {background-position: -21px -613px;}
    span.icon.fstar {
        width: 13px;
        height: 12px;
        margin-right: 4px;
    }
    span.icon.fspeed {
        width: 14px;
        height: 11px;
        margin-right: 4px;
    }

    span.icon.edit {
        width: 19px;
        height: 16px;
    }




    /* ---------- CLOSE ---------- */
    .close span.text {
        font-size: 10px;
        margin-right: 5px;
    }

    .close span.icon {
        width: 12px;
        height: 12px;
        background-image: url(../img/m_sprite.svg);
        background-position: 0px 0px;
    }


    /* ---------- DROPDOWN ---------- */
    .dd_btn {
        height: 12px;
        padding: 5px 7px;
        border-radius: 12px;
    }
    .dropdown.openned .dd_btn {border-radius: 12px 12px 0 0;}
    .dd_btn span.text {
        font-size: 12px;
        margin-right: 6px;
    }
    .dd_text {
        height: 12px;
        padding: 5px 7px;
    }
    .dd_text span.text {font-size: 12px;}

    .dd_list {
        width: calc(100% - 10px);
        padding: 0 5px;
        border-radius: 0 0 12px 12px;
    }
    .dd_list>* {
        width: calc(100% - 10px);
        padding: 3px 5px;
        font-size: 12px;
    }
    .dd_list>*:last-child {border: none;}

    .dropdown.openned .dd_list {
        max-height: 200px;
        padding: 5px;
    }



    /* ---------- FORMS ---------- */
    .form_field {margin-bottom: 6px;}
    .form_field p {font-size: 12px;}
    .form_field p.desc {font-size: 11px;}


    form input,
    form textarea {
        width: calc(100% - 28px);
        padding: 5px 12px;
        font-size: 14px;
    }





    
    /* ---------- FST_SCREEN ---------- */
    body.welcome_page .fst_screen .logo {
        width: 250px;
        height: 132px;        
    }

    body.welcome_page .fst_screen .btn {font-size: 23px;}

    /* ---------- WELCOME_SCREEN ---------- */
    body.welcome_page .modal {
        width: min(620px, 100% - 20px);
        padding: 20px 10px;
        overflow-y: scroll;
        max-height: calc(100dvh - 60px);
    }

    body.welcome_page .welcome_screen .logo,
    body.welcome_page .register_screen .logo {
        width: 147px;
        height: 70px;
    }

    body.welcome_page .close {
        top: 20px;
        right: 20px;
    }

    body.welcome_page .welcome_text {margin: 15px auto 10px;}
    body.welcome_page .heading {font-size: 23px;}
    body.welcome_page .subheading {
        font-size: 17px;        
        margin-top: 5px;
    }

    body.welcome_page .question {
        font-size: 18px;
        margin-bottom: 10px;
    }
    body.welcome_page .forget {
        margin-top: 10px;
        font-size: 12px;
    }

    body.welcome_page .login_wrapper,
    body.welcome_page .reg_wrapper,
    body.welcome_page .register_wrapper {
        width: calc(100% - 20px);
        margin-bottom: 20px;
    }
    body.welcome_page .reg_wrapper {margin-bottom: 10px;}

    body.welcome_page .reg_wrapper p {    
        font-size: 14px;        
    }
    body.welcome_page .reg_wrapper .btn {
        font-size: 18px;
        padding: 7px 35px 8px;
        margin: 6px auto;
    }


    /* ---------- REGISTER_SCREEN ---------- */
    .invalid-feedback span {font-size: 12px;}

    .register_screen .avatars {
        width: 240px;
        margin: 10px auto;
    }

    .avatar_gender label {
        width: 110px;
        height: 110px;
    }
    .avatar_gender label.checked {outline: 4px solid var(--darkblue);}
    .avatar_gender label>span {
        width: 100px;
        height: 100px;
    }

    .avatar_gender label::before,
    .skins_list .skin_item::before {
        right: 1px;
        top: 1px;
        width: 20px;
        height: 20px;
        background-image: url(../img/m_sprite.svg);
        background-position: 4px -37px;
    }








    /* ***********************************************************
    LK PAGES
    ************************************************************ */
    .lk_grid {
        height: calc(100% - 20px);
        display: flex; 
        flex-flow: column;
        justify-content: flex-start;
        align-items: stretch;
        margin: 10px 0;
        grid-gap: 0;
    }

    .lk_grid .left_side,
    .lk_grid .right_side {
        min-height: 0;
        height: auto;
        min-height: unset;        
        padding: 0;
        margin-bottom: 10px;
    }

    
    .modal {border-radius: 20px;}

    .white_block {
        width: calc(100% - 20px);
        padding: 10px;
        border-radius: 20px;  
        box-shadow: 0px 3px 6px rgba(0,0,0,0.23); 
    }
    .user_info_block {height: calc(100% - 20px);}

    .user_info_block .f_top {
        display: grid;
        grid-template-columns: 3fr 2fr;
        grid-gap: 10px;
        margin: 0;
    }
    .user_avatar_block {grid-area: 2/2/2/3;}
    .user_name_level {grid-area: 2/1/2/2;}
    .user_info_block .score {grid-column: span 2;}


    .user_info_block .logo {
        margin: 5px 0 0;
        justify-self: center;
    }
    .menu_btn  {
        align-self: center;
        justify-self: center;
        box-shadow: 0 3px 6px rgba(0,0,0,0.23);
        font-size: 14px;
        line-height: 1;
        padding: 8px 20px;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    span.icon.hamburger {
        position: relative;
        width: 14px;
        height: 10px;
        margin: 3px 0 -3px 5px;
    }
    span.icon.hamburger::before,
    span.icon.hamburger::after {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        content: '';
        background-image: url(../img/m_sprite.svg);        
        transition: 230ms ease-out;
    }
    span.icon.hamburger::before {background-position: 0 -260px;}
    span.icon.hamburger::after {
        background-position: 2px -235px;
        transform: scale(0);
        opacity: 0;
    }
    .user_info_block.openned span.icon.hamburger::before {
        transform: scale(0);
        opacity: 0;
    }
    .user_info_block.openned span.icon.hamburger::after {
        transform: scale(1);
        opacity: 1;
    }


    .user_avatar_block {
        width: 125px;
        height: 125px;
        justify-self: center;
        align-self: center;
        margin: -10px auto 0;
    }
    .user_avatar_block .user_skin {
        width: 105px;
        height: 105px;
        padding: 5px;
    }


    .user_avatar_block .skins_btn {
        position: absolute;
        left: calc(-100% + 45px);
        top: unset;
        bottom: 0px;
        cursor: pointer;    
    }

    .user_avatar_block .skins_btn span.skins {order: 2; margin: 0 0 0 6px;}
    .user_avatar_block .skins_btn span.text {order: 1;}


    .user_info_block .user_name_level {padding-bottom: 20px;}
    .user_info_block .username {font-size: 18px;}

    .user_info_block .level {margin: 10px auto 0;}
    .user_info_block .level span {font-size: 15px;}
    .user_info_block .level .circle {
        width: 26px;
        height: 26px;
        margin: 0 3px;
    }
    .user_info_block .level .circle span {font-size: 16px;}



    .user_info_block .f_bottom {
        overflow: hidden;    
        max-height: 0;
        min-height: 0;
        padding: 0;
        margin: 0;
        opacity: 0;
        transition: 320ms ease-out, overflow 60ms ease-out 320ms;
        display: grid;
        grid-template-columns: 2fr 5fr;
        grid-gap: 10px;
    }

    .user_info_block.openned .f_bottom {        
        max-height: 100px;
        opacity: 1;
        margin: 10px auto 5px;
        overflow: visible;
    }

    .user_info_block .f_bottom .btn {
        width: 100%;
        font-size: 14px;
        padding: 8px 0;
        text-align: center;
        box-shadow: 0 3px 6px rgba(0,0,0,0.23);
        margin: 0;
        justify-content: center;
    }
    .user_info_block .f_bottom .user_stat {grid-column: span 2;}
    .user_info_block .f_bottom .yellow_btn {grid-area: 2/2/2/3;}
    .user_info_block .f_bottom .grey_btn {grid-area: 2/1/2/2; box-shadow: none;}

    
    .user_info_block .health_line,
    .user_info_block .health_line span {
        height: 10px;
        border-radius: 5px;
    }
        
    .user_info_block .score p,
    .user_info_block .health p {
        margin-top: 3px;
        font-size: 12px;
    }
    


    body.skins_openned .user_avatar_block {
        position: absolute;
        left: 50%;
        top: 50%;    
        transform: translate(-50%, -42%);
    }
    body.skins_openned .user_avatar_block .user_skin {
        width: 180px;
        height: 180px;
        padding: 10px;
        background-color: #fff;
        box-shadow: 0 0 0 10px #fff, 0 0 10px 10px rgba(0,0,0,0.23);
        cursor: default;
        z-index: 3;
    }




    /* *****************************************
    Right_side 
    ***************************************** */
    .page_tabs {
        border-radius: 18px;
        box-shadow: 0px 3px 6px rgba(0,0,0,0.23);
        margin-bottom: 10px;
    }

    .page_tabs .tab {
        padding: 10px 0;
        border-radius: 18px;
    }
    .page_tabs .tab span.icon {margin-right: 3px;}
    .page_tabs .tab span.text {
        font-size: 16px;
        line-height: 16px;
    }
    .page_tabs span.active_back {
        height: 36px;
        border-radius: 18px;
        box-shadow: 0px 4px 12px rgba(0,0,0,0.12);
    }

    .battle_items {margin-bottom: 10px;}

    .battle_items .battle_item {
        width: calc(50% - 5px);
        border-radius: 20px;
        padding-bottom: 10px;
        box-shadow: 0px 3px 6px rgba(0,0,0,0.23);
    }
    .battle_items .battle_item .image {
        width: calc(100% - 6px);
        height: 122px;
        border-radius: 17px;  
        margin: 3px;  
    }

    .battle_items .battle_item .image span.offer {
        right: -4px;
        top: -4px;
        font-size: 12px;
    }



    .battle_items .battle_item .text {
        width: calc(100% - 20px);
        margin: 3px auto 10px;
    }

    .battle_items .battle_item .text p {
        font-size: 10px;
        line-height: 1;
        margin-top: 6px;    
    }

    .battle_items .battle_item .btn {
        width: calc(100% - 20px);
        font-size: 12px;
        padding: 6px 0;
        text-align: center;
    }




    .rules {max-height: 250px;}
    .rules h2 {text-align: center;}
    .rules p,
    .rules li {
        font-size: 12px;
        line-height: 1.2;
    }
    .scroll_block {
        width: 100%;
        padding-right: 5px;
        margin-right: -5px;
    }
    .scroll_block::-webkit-scrollbar {width: 5px;}
    .scroll_block::-moz-scrollbar {width: 5px;}
    .scroll_block::-webkit-scrollbar-track {border-radius: 3px;}
    .scroll_block::-moz-scrollbar-track {border-radius: 3px;}
    .scroll_block::-webkit-scrollbar-thumb {border-radius: 3px;}
    .scroll_block::-moz-scrollbar-thumb {border-radius: 3px;}


    .tabs_content {
        height: calc(100% - 20px);
        width: calc(100% + 20px);
        margin: -10px;
    }
    .tab_content {
        width: calc(100% - 20px);
        margin: 10px 10px 0;
    }
    .tab_content.active[data-tab="rating"] {transform: translateX(calc(-100% - 20px));}


    .tab_content.white_block {
        width: calc(100% - 40px);
        max-height: 517px;
    }


    /* *****************************************
    Rating 
    ***************************************** */
    .rating_page .filters {margin-bottom: 5px;}
    .rating_page .filters>* {margin: 0 10px 5px 0;}

    .rating_page .filters .dropdown.city {width: 156px;}
    .rating_page .filters .dropdown.school {width: 93px;}
    .rating_page .filters .dropdown.class_num {width: 70px;}


    .rating_page h2.rating_title {margin: 10px 0 5px;}
    .fst_places {margin-bottom: 5px;}

    .rating_item {
        width: calc(100% - 20px);
        padding: 5px 10px 5px 5px;
        border-left: 5px solid #fff;
        border-radius: 10px;
        grid-template-columns: 23px auto;
        margin-bottom: 3px;
        grid-gap: 1px 5px;
    }    
    .fst_places .rating_item .place span {
        width: 20px;
        height: 28px;
        background-image: url(../img/m_sprite.svg);
    }
    .rating_list_block .rating_item .place span {
        width: 22px;
        height: 22px;        
        font-size: 10px;        
    }
    .rating_item .name {
        font-size: 14px;
        margin-right: 10px;
    }

    .rating_item .level_block,
    .rating_item .perfect_game {margin-right: 10px;}
    .rating_item .level span {font-size: 10px;}
    .rating_item .level .circle {
        width: auto;
        height: 10px;
        margin: 0 2px;
        border-radius: 0;
        background: none;
    }
    .rating_item .level .circle span {
        font-size: 12px;
        line-height: 10px;
        color: var(--darkblue);
    }

    .rating_item .score span,
    .rating_item .wins span,
    .rating_item .perfect_game span,
    .rating_item .speed_game span {font-size: 10px;}    
    
    .rating_item .wins span,
    .rating_item .perfect_game span:not(.icon),
    .rating_item .speed_game span:not(.icon) {margin: 1px 0 -1px;}



    /* *****************************************
    Skins
    ***************************************** */
    .skins_page,
    .stat_page {        
        top: 0;        
        height: 563px;
        margin-bottom: 10px;     
    }

    body.profile_edit_page .stat_page {height: auto;}



    .skins_list.scroll_block {
        width: calc(100% - 5px);
        height: calc(100% - 50px);
        padding: 15px 5px 5px;
        margin: -10px 0;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }

    .skins_page .heading span.icon.skins {
        width: 18px;
        height: 18px;
        background-position: -18px -75px;
        outline: none;
    }

    .skins_list .skin_item::before {right: 3px; top: 3px;}

    .skins_list .skin_item {
        width: calc(100% - 40px);        
        padding-top: calc(100% - 30px);
    }

    .skins_list .skin_item>span {
        top: 4%;
        left: 4%;
        width: 92%;
        height: 92%;
    }


    .skins_list .skin_item span.lock_stub span.text {margin-top: 5px;}
    .skins_list .skin_item span.lock_stub span {
        font-size: 10px;
        line-height: 1;
    }


    /* *****************************************
    Stats
    ***************************************** */
    .sec_filter_btns {
        margin: 5px auto 10px;
        flex-flow: row wrap;
        justify-content: center;
    }
    .sec_filter_btns .sfilter_btn {
        padding: 0 15px;
        margin: 5px;
    }
    .sec_filter_btns .sfilter_btn:last-child {margin-right: 5px;}
    .sec_filter_btns .sfilter_btn span.text {font-size: 12px;}

    .edit_user_form .form_field .invalid-feedback.h_span2 {text-align: center;}





    .stat_list.scroll_block {
        width: 100%;
        height: calc(100% - 145px);
        padding-right: 5px;
        margin-right: 0;    
    }



    .stat_item {
        margin-bottom: 5px;
        border-radius: 10px;
    }
    .stat_item .inner {
        width: calc(100% - 30px);
        border-radius: 10px;
    }
    .stat_item.win .inner {
        padding: 5px 15px 5px 7px;
        margin-left: 8px;
    }
    .stat_item.lose .inner {
        padding: 5px 7px 5px 15px;
        margin-right: 8px;
    }

    .stat_item .inner .line {
        grid-template-columns: auto max-content;
        grid-gap: 2px 5px;
    }

    .stat_item .inner .date {font-size: 10px;}
    .stat_item .inner .game_name {
        grid-area: 2/1/3/2;
        font-size: 12px;
    }
    .stat_item .inner .win_icon,
    .stat_item .inner .lose_icon {
        grid-area: 2/2/3/3;
        font-size: 12px;
    }
    .stat_item .inner .battle_time,
    .stat_item .inner .answers,
    .stat_item .inner .score span {
        font-size: 10px;
        font-weight: 400;
    }

    .stat_item .inner .answers {grid-area: 2/1/3/2;}
    .stat_item .inner .score {grid-area: 1/2/2/3;}


    .stat_item .bonuses_line {padding: 2px 15px 4px;}    

    .stat_item .bonuses_line>div:not(.bonus_score)>* {        
        margin-right: 5px;
        font-size: 10px;        
    }

    .stat_item.speed .bonuses_line div.speed {width: auto;}
    .stat_item .bonuses_line .bonus_score {font-size: 10px;}

    .referral_block {margin: 20px 0 0;}

    .referral_block a span {font-size: 14px;}



    /* *****************************************
    EDIT
    ***************************************** */
    .edit_user_form {padding: 0 0 10px;}
    .edit_user_form .success_message {
        height: 16px;
        margin-bottom: 10px;
    }
    .edit_user_form .success_message span {font-size: 16px;}


    .edit_user_form .form_field {
        grid-template-columns: 85px auto;
        grid-gap: 0 10px;
    }
    .edit_user_form .form_field p:not(.desc) {font-size: 13px;}
    .edit_user_form .form_field p.desc,
    .edit_user_form .form_field .invalid-feedback {
        grid-column: 1/3;
        text-align: right;
    }

    .edit_user_form h2+p {margin: 5px 0 10px;}

    .edit_user_form .form_field.col6 {
        grid-template-columns: repeat(2, min-content auto);
        grid-gap: 10px;
    }
    .edit_user_form .form_field.col6 .hspan5,
    .edit_user_form .form_field.col6 .hspan2 {grid-column: span 3;}


    .edit_user_form .form_field.submit_lines {margin-top: 30px;}
    .edit_user_form .form_field.submit_lines input {margin: 0 10px;}



    /* ***********************************************************
    GAME PAGES
    ************************************************************ */
    .game_grid {
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px 0;
        padding: 10px 0;
    }
    .game_grid .left_side,
    .game_grid .right_side {min-height: 0;}

    .game_grid .left_side,
    .game_grid .left_side .white_block {border-radius: 20px 0 0 20px;}
    .game_grid .right_side,
    .game_grid .right_side .white_block {border-radius: 0 20px 20px 0;}
    .game_grid .left_side .white_block,
    .game_grid .right_side .white_block {
        width: calc(100% - 15px);
        box-shadow: none;
        z-index: 2;
    }   
    .game_grid .left_side .white_block {padding-right: 5px;}
    .game_grid .right_side .white_block {padding-left: 5px;}
    
    .game_grid .left_side,    
    .game_grid .right_side {box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.23);}
    
    
    .game_grid .user_avatar_block {margin: 0 auto;}
    .game_grid .user_info_block .level {margin: 0 auto 5px;}
    
    
    .game_grid .user_info_block .gg_top,
    .game_grid .user_info_block .gg_middle,
    .game_grid .user_info_block .gg_bottom {
        width: 100%;
        display: flex;
        flex-flow: column;
        align-items: center;
    }

    .game_grid .user_info_block .gg_top {justify-content: flex-start;}
    .game_grid .user_info_block .gg_middle {justify-content: center; flex-grow: 1;}
    .game_grid .user_info_block .gg_bottom {justify-content: flex-end; margin-top: 5px;}

    
    .game_grid .game_field {
        grid-column: 1/3;
        grid-row: 2/3;
        height: auto;
    }


    .game_grid .game_field .inner {width: 100%;}

    .game_grid .game_field .inner p.fw7 {margin-bottom: 10px;}
    .game_grid .game_field .inner p.fw6 {margin-top: 8px;}
    .game_grid .game_field .inner p.fw9 {
        margin: 5px 0 8px;
        font-size: 16px;
    }
    .game_grid .game_field .inner .btn,
    .battle_score_block .btn {
        margin: 10px auto;
        font-size: 16px;
    }


    .game .timer_block {
        grid-gap: 5px;
        margin-bottom: 10px;
    }
    .game .timer_block * {font-size: 10px;}

    .game .problem_counter {font-size: 14px;}
    .game .problem_desc {font-size: 12px;}

    .game .problem {
        margin: 20px auto;
        font-size: 23px;
    }

    .game .problem input {
        width: 80px;
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 23px;
    }

    
    .game .problem .equation {
        margin-top: 5px;
        font-size: 32px;
    }
    .game .problem .equation input {
        width: 60px;
        font-size: 32px;
    }

    .game_grid .game_field .inner .game .controls .btn {margin: 5px;}

    .game_grid .game_field.win_lose_message {height: 300px;}
    .game_grid .game_field.win_lose_message * {font-size: 60px;}





    .game_field.battle_details_block.white_block {  
        position: relative;  
        z-index: 2;
        grid-area: 3/1/4/3;
        max-height: 230px;
        border-radius: 0;    
        padding-top: 0;
        box-shadow: 0 6px 6px rgba(0,0,0,0.32);
    }
    .game_field.battle_details_block h3 {
        width: 96%;
        font-size: 14px;
        margin: 5px auto;
    }

    .battle_details .item {
        grid-template-columns: 30px auto 210px;
        grid-gap: 0 5px;
        border-radius: 6px;
        margin-bottom: 2px;
    }
    .battle_details .item .num {
        border-radius: 6px 0 0 6px;
        font-size: 12px;        
    }
    .battle_details .item .problem {font-size: 10px;}

    .battle_details .item .top_line,
    .battle_details .item .bottom_line {padding: 2px 10px 2px 0;}

    .battle_details .item .top_line *,
    .battle_details .item .bottom_line * {
        font-size: 10px;
        line-height: 1;
    }
    .battle_details .item .top_line span.ms,
    .battle_details .item .bottom_line span.ms {margin: 0 4px;}

    .battle_details .item .damage span.text,
    .battle_details .item .damage + span.ms {display: none;}




    .battle_result_block.white_block {
        grid-area: 2/1/3/3;
        height: 100%;
    }
    .battle_result_block h2 {font-size: 23px;}

    .battle_result_block .bs_bon {
        margin-top: 10px;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        align-items: stretch;
    }
    .battle_result_block .battle_stats .item,
    .battle_result_block .time_stat,
    .battle_score_block .win_lose_score {width: 100%;}

    .battle_result_block .battle_stats {
        margin-bottom: 0;
        display: flex;
        flex-flow: column;
        justify-content: space-between;
    }
    .battle_result_block .battle_stats .item {margin-bottom: 5px;}
    .battle_result_block .battle_stats .item:last-child {margin-bottom: 0;}


    .battle_result_block .time_stat {
        display: block;
        text-align: center;
        font-size: 14px;
        margin-bottom: 5px;
    }
    .battle_result_block .time_stat span.line {display: none;}


    .battle_result_block .battle_stats .item span.caption,
    .battle_result_block .battle_stats .item span.qtty {font-size: 14px;}
    .battle_result_block .perf_bonus_info {
        width: 157px;
        flex-shrink: 0;
        flex-flow: column;
        justify-content: center;
        align-items: center;
        margin-left: 10px;
    }

    .battle_result_block .time_bonus_info {width: calc(100% - 10px);}

    .battle_result_block .perf_bonus_info,
    .battle_result_block .time_bonus_info {
        padding: 5px;
        border-radius: 6px;
    }
    .battle_result_block .perf_bonus_info span.text,
    .battle_result_block .time_bonus_info span.text {
        font-size: 10px;
        text-align: center;
    }

    .battle_result_block .perf_bonus_info span.icon_block,
    .battle_result_block .time_bonus_info span.icon_block {
        display: flex;
        flex-flow: row nowrap;    
        justify-content: flex-end;
        align-items: center;
        grid-gap: 0;    
    }
    .battle_result_block .perf_bonus_info span.icon_block {margin-top: 4px;}
    .battle_result_block .perf_bonus_info span.icon_block span.qtty,
    .battle_result_block .time_bonus_info span.icon_block span.qtty {font-size: 12px; margin-right: 4px;}


    .battle_result_block .btn.start_new_battle {
        width: fit-content;
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: center;
        margin: 10px auto 5px;
    }

    .battle_result_block .btn.start_new_battle span.icon {filter: brightness(200);}


    .battle_score_block.white_block {
        grid-area: 4/1/5/3;
        z-index: 3;
        box-shadow: 0 6px 6px rgba(0,0,0,0.32);
    }
    .battle_score_block .win_lose_score {font-size: 16px;}
    .battle_score_block .win_lose_score span.caption {font-size: 14px;}
    .battle_score_block .win_lose_score span.line {margin: 0 5px 5px;}



























    .mh {display: none !important;}
}
