@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


:root {
    --darkblue: #183B56;
    --lightblue: #B5C0C9;
    --red: #BC2C2E;
    --darkred: #912425;
    --lightred: #C48C8D;
    --green: #2EB032;
    --lightgreen: #A6D6A8;
    --yellow: #E4BA2C;
    --text: #323232;
    --lightback: rgba(220,227,233,0.92);
    --grey: #B5B5B5;
}

*{
	margin: 0px;
	padding: 0px;
	font-family: "Montserrat Alternates", sans-serif;
    background-repeat: no-repeat;
    color: var(--text);
}

img {border: none;}
a {
	outline: none;
	text-decoration: none;
}


input, button, textarea {outline: none;}


body {
    width: 100%;
    min-width: 1200px;
    height: 100dvh;
    background-size: cover;
    background-position: bottom center;
    background-attachment: fixed;
}

body.welcome_page {background-image: url(../img/back/pc/2/win.webp);}
body.lk_pages {background-image: url(../img/back/pc/empty.webp);}


.logo {
    background-image: url(../img/logo.svg);
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
    transition: 230ms ease-out;
}

.main_container {
    position: relative;
	width: min(1130px, 100% - 80px);
    height: 100dvh;
    padding: 0 25px;
    overflow: hidden;
    margin: auto;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

hr {
    width: 100%;
    height: 2px;
    background-color: var(--darkblue);
    border: none;
    border-radius: 1px;
    margin: 30px auto;
}

h2 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--darkblue);
}

p {
    font-size: 16px;
    line-height: 1.2;
    color: var(--text);
}

p a {
    color: var(--darkred);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

@media screen and (min-width: 768px) {
    p a:hover {text-decoration-style: wavy;}
}








.heading_line {
    position: relative;
    width: 100%;    
    padding: 15px 30px;
    margin: -30px -30px 20px -30px;
    border-radius: 30px;
    background-color: #fff;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.23);
    z-index: 2;
}

.heading_line .heading {
    font-size: 23px;    
    line-height: 1.1;
    font-weight: 700;
    color: var(--darkblue);
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}

.heading_line .heading span.icon {margin-right: 6px;}

/* ---------- FONT-WEIGHT ---------- */
.fw1 {font-weight: 100;}
.fw2 {font-weight: 200;}
.fw3 {font-weight: 300;}
.fw4 {font-weight: 400;}
.fw5 {font-weight: 500;}
.fw6 {font-weight: 600;}
.fw7 {font-weight: 700;}
.fw8 {font-weight: 800;}
.fw9 {font-weight: 900;}
.it {font-style: italic;}

.nobr {white-space: nowrap;}

span.red {color: var(--darkred);}
/* ---------- FLEX ---------- */
.fnw, .fw {
    display: flex;
    align-items: center;
}

.fnw {flex-flow: row nowrap;}
.fw {flex-flow: row wrap;}

.fs {justify-content: flex-start;}
.fe {justify-content: flex-end;}
.sb {justify-content: space-between;}
.cc {justify-content: center;}

/* ---------- GRID ---------- */
.grid {display: grid;}
.grid.col2 {grid-template-columns: repeat(2, 1fr);}
.grid.col3 {grid-template-columns: repeat(3, 1fr);}
.grid.col4 {grid-template-columns: repeat(4, 1fr);}

.h_span2 {grid-column: span 2;}
.h_span3 {grid-column: span 3;}
.h_span4 {grid-column: span 4;}
.v_span2 {grid-row: span 2;}
.v_span3 {grid-row: span 3;}
.v_span4 {grid-row: span 4;}




/* ---------- Animation ---------- */

.blink {animation: blink 960ms ease both;}
@keyframes blink {
    0% {opacity: 0;}
    20% {opacity: 1;}
    40% {opacity: 0;}
    60% {opacity: 1;}
    80% {opacity: 0;}
    100% {opacity: 1;}
}



/* ---------- LIST ---------- */
ul {
    margin: 15px 0;
}
li {
    position: relative;
    display: block;
    margin-bottom: 10px;
}
li:last-child {margin-bottom: 0;}

ul.xlist li,
ul.vlist li,
ul.olist li {padding-left: 20px;}
ul.llist li {padding-left: 12px;}

ul.olist li::before {
    position: absolute;
    left: 6px;
    top: 7px;
    width: 6px;
    height: 6px;
    content: '';
    border-radius: 50%;
    background-color: var(--darkblue);
}


ul.xlist li::before,
ul.vlist li::before {
    position: absolute;
    left: 0;
    top: 4px;
    width: 17px;
    height: 17px;
    content: '';
    background-image: url(../img/sprite.svg);
    background-repeat: no-repeat;
}
ul.llist li::before {
    position: absolute;
    left: 0;
    top: 0px;
    width: 3px;
    height: 100%;
    border-radius: 2px;
    content: '';
    background-color: var(--darkblue);
}
ul.llist li:nth-child(even)::before {background-color: var(--lightblue);}

ul.xlist li::before {background-position: 5px 1px;}
ul.vlist li::before {background-position: 2px -54px;}

ul.dlist li span:first-child {
    color: #668FB0;
    margin-right: 10px;
    font-weight: 800;
}







/* ---------- BUTTONS ---------- */
.btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 10px 40px 11px;
    background: linear-gradient(109deg, #447093 0%, #204560 100%);
    font-size: 18px;
    color: #fff;
    line-height: 1.1;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: 230ms ease-out;
    box-shadow: 0px 6px 10px rgba(0,0,0,0.23);    
}
.btn.red_btn {
    background: linear-gradient(109deg, var(--red) 0%, var(--darkred) 100%);
    color: #fff;
}
.btn.yellow_btn {
    background: var(--yellow);
    color: var(--text);
}
.btn.grey_btn {
    background: var(--grey);
    color: #fff;
    box-shadow: none;
}

@media screen and (min-width: 768px) {
    .btn:not(.grey_btn):hover {
        transform: translateY(2px);
        box-shadow: 0px 3px 6px rgba(0,0,0,0.32);
    }
    .btn.grey_btn:hover {
        background: #fff;
        color: var(--grey);
    }
}


/* ---------- ICONS ---------- */
span.icon {
    background-image: url(../img/sprite.svg);
    flex-shrink: 0;
}

span.icon.skins {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--darkblue);
    background-position: 7px -71px;
    outline: 4px solid #d9e2e9;
    margin-right: 6px;
    z-index: 2;
}

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

span.icon.rating {
    width: 23px;
    height: 23px;
    background-position: 0px -244px;
}
span.icon.stats {
    width: 23px;
    height: 23px;
    background-position: 0px -201px;
}

span.icon.dd {
    width: 10px;
    height: 6px;
    background-position: 0px -685px;
}

span.icon.star {
    width: 14px;
    height: 13px;
    background-position: 0px -287px;
    margin-right: 4px;
}

span.icon.speed {
    width: 15px;
    height: 12px;
    background-position: 0px -329px;
    margin-right: 4px;
}

span.icon.lock {
    width: 39px;
    height: 57px;
    background-position: 0px -711px;
}

span.icon.win {
    width: 16px;
    height: 16px;
    background-position: 0px -577px;
    margin-right: 5px;
}
span.icon.win.color {background-position: -23px -577px;}

span.icon.lose {
    width: 13px;
    height: 16px;
    background-position: 0px -613px;
    margin-right: 5px;
}
span.icon.lose.color {background-position: -26px -613px;}


span.icon.fstar {
    width: 17px;
    height: 16px;
    background-position: 0px -649px;
    margin-right: 5px;
}
span.icon.fspeed {
    width: 18px;
    height: 14px;
    background-position: 0px -369px;
    margin-right: 5px;
}

span.icon.edit {
    width: 29px;
    height: 25px;
    background-position: 0px -113px;
}



/* ---------- DROPDOWN ---------- */
.dropdown {
    position: relative;
    z-index: 5;
}
.dd_btn {
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.23);
    height: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}
.dropdown.openned .dd_btn {border-radius: 10px 10px 0 0;}


.dropdown.changed .dd_btn,
.dropdown.disabled .dd_btn {
    box-shadow: none;
    background-color: rgba(255,255,255,0.6);
}
.dropdown.changed .dd_btn {background-color: var(--lightblue);}

.dropdown.disabled .dd_btn {cursor: default;}
.dropdown.changed span.icon.dd {
    height: 10px;
    background-position: -21px -683px;
}
.dropdown.disabled span.icon.dd {opacity: 0;}


.dd_btn span.text {
    width: 100%;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--darkblue);
    margin-right: 10px;
    overflow: hidden;
    white-space: nowrap;
}

.dd_text {
    height: 14px;
    padding: 8px 10px;
}
.dd_text span.text {
    font-size: 14px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--darkblue);
}

.dd_btn span.text span,
.dd_text span.text span {color: inherit;}


.dd_list {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 20px);
    padding: 0 10px;
    max-height: 0;
    background-color: #fff;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: stretch;
}
.dd_list>* {
    width: calc(100% - 20px);
    padding: 3px 10px;
    border-bottom: 1px dashed var(--text);
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    color: var(--darkblue);
    transition: 230ms ease-out;
    cursor: pointer;
}
.dd_list>*:last-child {border: none;}

.dd_list>* span {color: inherit;}


.dropdown.openned .dd_list {
    max-height: 250px;
    padding: 10px;
    overflow: auto;
    box-shadow: 0 3px 3px rgba(0,0,0,0.23);
}



@media screen and (min-width: 768px) {
    .dd_list>*:hover {
        border-bottom: 1px solid var(--darkblue);
        background-color: var(--lightblue);
    }
}






/* ---------- CLOSE ---------- */
.close {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
}

.close span.text {
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    color: var(--darkblue);
    margin-right: 7px;
    transition: 230ms ease-out;
}

.close span.icon {
    width: 21px;
    height: 21px;
    background-image: url(../img/sprite.svg);
    background-position: 0px 0px;
    transition: 230ms ease-out 80ms;
}

@media screen and (min-width: 768px) {
    .close:hover span.text {text-decoration: underline;}
    .close:hover span.icon {transform: rotate(90deg);}
}



/* ---------- FORMS ---------- */
a span.alert {
    position: absolute;
    right: -40px;
    top: 150%;
    width: 190px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 110%;
    font-weight: 400;
    color: var(--darkblue) !important;
    text-decoration: none !important;
    text-align: center;
    background-color: white;
    border-radius: 4px;
    border: 2px solid var(--blue);
    box-shadow: 0px 4px 23px rgba(0,0,0,0.12);
    z-index: 10;
    animation: opacity_in 300ms both;
}
@keyframes opacity_in {
    0% {opacity: 0;}
    100% {opacity: 1;}
}





.form_field {margin-bottom: 10px;}
.form_field p {
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 3px;
}

.form_field p a {
    color: var(--darkred);
    text-decoration: underline;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: 230ms ease-out;
}

.form_field p.desc {
    font-size: 14px;
    font-weight: 500;
    margin-top: 3px;
}

form input,
form textarea {
    width: calc(100% - 40px);
    padding: 7px 18px;
    background-color: #fff;
    border-radius: 18px;
    border: 2px solid var(--darkblue);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    color: var(--darkblue);
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
form input:-webkit-autofill,
form textarea:-webkit-autofill,
form input:-webkit-autofill:focus,
form textarea:-webkit-autofill:focus {transition: 0s 600000s !important;}
form input::placeholder,
form textarea::placeholder,
form input.stub {color: #B9B9B9;}

form input.btn {
    border: none;
    width: auto;
}

.mail_field input {
    border: 2px solid var(--yellow);
}

form input.company {display: none;}
form textarea {
    height: 90px;
    resize: none;
}

form button {
    border: none;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
    transition: 230ms ease-out;
    cursor: pointer;
}

p.politika {
    font-size: 12px;
    line-height: 110%;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
}

p.politika a {
    color: rgba(255,255,255,0.75);
    text-decoration: underline;
}

@media screen and (min-width: 768px) {
    form button:hover {background-color: var(--lb_hover);}
    .form_field p a:hover {text-decoration-style: wavy;}
    p.politika a:hover {color: rgba(255,255,255,1);}
}



.hidden {display: none !important;}



/* ---------- FST_SCREEN ---------- */
body.welcome_page .fst_screen {
    height: 90%;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    transition: 320ms ease-out;
}

body.welcome_page .fst_screen .logo {
    width: 380px;
    height: 202px;
    background-image: url(../img/logo.webp);
}

body.welcome_page .fst_screen .btn {
    margin-top: 10px;
    font-size: 32px;
}




/* ---------- WELCOME_SCREEN ---------- */
body.welcome_page .modal {
    position: relative;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    transition: 320ms ease-out;
}

body.welcome_page .welcome_screen .logo,
body.welcome_page .register_screen .logo {
    width: 210px;
    height: 100px;
}

body.welcome_page .close {
    position: absolute;
    top: 30px;
    right: 30px;
}

body.welcome_page .welcome_text {margin: 30px auto 20px;}
body.welcome_page .heading {
    font-size: 36px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--red);
}
body.welcome_page .subheading {
    font-size: 25px;
    line-height: 1.1;
    font-weight: 600;
    color: var(--darkblue);
    margin-top: 10px;
}


body.welcome_page .question {
    font-size: 25px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 20px;
}
body.welcome_page .forget {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 400;
    color: var(--darkblue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: 230ms ease-out;
}

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

body.welcome_page .reg_wrapper p {
    font-size: 21px;
    font-weight: 600;
    color: var(--text);
}
body.welcome_page .reg_wrapper .btn {
    font-size: 23px;
    padding: 10px 60px 11px;
    margin: 10px auto;
}

@media screen and (min-width: 768px) {
    body.welcome_page .forget:hover {text-decoration-style: wavy;}
}


/* ---------- REGISTER_SCREEN ---------- */
body.welcome_page .register_screen .heading {color: var(--darkblue);}
body.welcome_page .register_screen .mail_field {margin-top: 20px;}
.invalid-feedback, 
.invalid-feedback span {
    color: var(--darkred);
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
}


.register_screen .avatars {
    width: 360px;
    margin: 15px auto;
}

.avatar_gender label {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 50%;
    outline: 0px solid var(--darkblue);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    transition: 60ms ease-out;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.avatar_gender label.checked {
    transition: 120ms ease-out;
    outline: 5px solid var(--darkblue);
}

.avatar_gender label>span {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
}
.avatar_gender label.female>span {background-color: #DB5B35;}
.avatar_gender label.male>span {background-color: #71B1B8;}

.avatar_gender label::before,
.skins_list .skin_item::before {
    position: absolute;
    right: 1px;
    top: 1px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    content: '';
    background-color: var(--darkblue);
    background-image: url(../img/sprite.svg);
    background-position: 8px -34px;
    border: 4px solid #d9e2e9;
    z-index: 2;
    transform: scale(0);
    transition: 60ms ease-out;
}

.avatar_gender label.checked::before,
.skins_list .skin_item.active::before {
    transition: 230ms ease-out 120ms;
    transform: scale(1);
}

.avatar_gender label span.shadow {
    position: absolute;
    left: 5%;
    top: 80%;
    width: 90%;
    height: 20%;
    background: radial-gradient(ellipse closest-side at 50% 50%, rgba(0, 0, 0, 0.4) 25%, rgba(0, 0, 0, 0.2) 65%, rgba(0,0,0,0) 100%);
}
.avatar_gender label span.skin {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
}

.avatar_gender label.female span.skin {background-image: url(../img/skins/2/1.webp);}
.avatar_gender label.male span.skin {background-image: url(../img/skins/1/1.webp);}

.avatar_gender label input {
    visibility: hidden;
    height: 0;
    width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
}





/* ***********************************************************
**************************************************************
**************************************************************
LK PAGES
**************************************************************
**************************************************************
************************************************************ */
.lk_grid {
    position: relative;
    width: 100%;
    height: calc(100% - 40px);
    grid-template-columns: 4fr 6fr;
    grid-gap: 20px;
    align-items: center;
    margin: 20px 0;
    min-width: 0;    
}
.lk_grid .left_side,
.lk_grid .right_side {
    position: relative;
    min-height: 0;
    min-width: 0;
    height: 100%;
    min-height: 720px;
    max-height: 1000px;
    padding: 20px 0;
    
}


.white_block {
    position: relative;
    width: calc(100% - 60px);
    padding: 30px;
    background: var(--lightback);
    border-radius: 30px;
    transition: 320ms ease-out, height 0ms ease;
	box-shadow: 0px 4px 23px rgba(0,0,0,0.46);
}

.user_info_block {
    height: calc(100% - 60px);
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
.user_info_block .f_top,
.user_info_block .f_middle,
.user_info_block .f_bottom {
    width: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
    margin-bottom: 20px;
    transition: 230ms ease-out;
}

.user_info_block .f_top {justify-content: space-between; flex-grow: 1;}
.user_info_block .f_middle {justify-content: center; flex-grow: 1;}
.user_info_block .f_bottom {justify-content: flex-end; margin-bottom: 10px;}

.user_info_block .logo {
    width: 210px;
    height: 100px;
}

.user_avatar_block {
    position: relative;
    width: 235px;
    height: 235px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    transition: 230ms ease-out;
    margin: 0 auto;
}
.user_avatar_block .skins_btn {
    position: absolute;
    left: 73%;
    top: 18px;
    cursor: pointer;
}

.user_avatar_block .skins_btn span.text {
    font-size: 14px;
    font-weight: 500;
    color: var(--darkblue);
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


.user_avatar_block .user_skin,
.skins_list .skin_item {
    position: relative;
    width: 190px;
    height: 190px;
    padding: 10px;
    border-radius: 50%;
    outline: 5px solid var(--darkblue);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: 230ms ease-out;
    box-shadow: 0 0 0 0 transparent;
}
.monster .user_avatar_block .user_skin {outline: 5px solid var(--darkred);}
body.game_pages .user_avatar_block .user_skin {cursor: default;}

.user_avatar_block .user_skin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: 320ms ease-out;
}

.user_avatar_block .user_skin span.damage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(145, 36, 37, 1);
    display: none;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    z-index: 4;
    animation: hide 600ms ease-out both;
    animation-delay: 120ms;
}
.user_avatar_block.damage .user_skin span.damage {display: flex;}


.user_avatar_block .user_skin span.damage span {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    transform: translateY(100%);
    animation: hide_in_top 600ms ease-out both;
    animation-delay: 120ms;
}


@keyframes hide {
    0% {background-color: rgba(145, 36, 37, 1);}
    100% {background-color: rgba(145, 36, 37, 0);}
}
@keyframes hide_in_top {
    0% {
        opacity: 1;
        transform: translateY(100%);
    }
    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}






.user_avatar_block .user_skin>span,
.skins_list .skin_item>span {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    transition: 230ms ease-out;
}




.user_avatar_block .user_skin>span[data-color="2"],
.skins_list .skin_item.active>span[data-color="2"] {background-color: #DB5B35;}
.user_avatar_block .user_skin>span[data-color="1"],
.skins_list .skin_item.active>span[data-color="1"] {background-color: #71B1B8;}
.monster .user_avatar_block .user_skin>span {background-color: #C48C8D;}

.user_avatar_block .user_skin span.shadow,
.skins_list .skin_item span.shadow {
    position: absolute;
    left: 5%;
    top: 80%;
    width: 90%;
    height: 20%;
    background: radial-gradient(ellipse closest-side at 50% 50%, rgba(0, 0, 0, 0.4) 25%, rgba(0, 0, 0, 0.2) 65%, rgba(0,0,0,0) 100%);
}

.user_avatar_block .user_skin span.skin,
.skins_list .skin_item span.skin {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    transition: 230ms ease-out;
}

body.win .monster .user_avatar_block .user_skin>span:not(.line) {background-color: #BFBFBF;}
body.win .monster .user_avatar_block .user_skin span.skin {filter: grayscale(1);}
.monster .user_avatar_block .user_skin span.line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--darkred);
    transform-origin: center;
    transform: translateY(-50%) rotate(45deg);
    opacity: 1;
    border-radius: 0;
    z-index: 5;
    display: none;
}

body.win .monster .user_avatar_block .user_skin span.line {display: block;}





.user_info_block .username {
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    color: var(--darkblue);
    transition: 230ms ease-out;
}

.level {margin: 10px auto;}
.level span {
    font-size: 23px;
    line-height: 1;
    font-weight: 600;
    color: var(--darkblue);
}
.user_info_block.monster .username,
.monster .level span {color: var(--darkred);}

.level .circle {
    width: 51px;
    height: 51px;
    border-radius: 50%;
    background-color: var(--darkblue);
    margin: 0 6px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}
.monster .level .circle {background-color: var(--darkred);}

.level .circle span {
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
    color: #fff;
}


.user_info_block .score,
.battle_score_block .score,
.user_info_block .health {
    position: relative;
    width: 100%;
}
.user_info_block .score_line,
.battle_score_block .score_line,
.user_info_block .health_line {
    position: relative;
    width: 100%;
    height: 16px;
    border-radius: 8px;
    background-color: var(--lightblue);
    overflow: hidden;
}
.user_info_block .health_line {background-color: var(--lightgreen);}
.user_info_block.monster .health_line {background-color: var(--lightred);}

.user_info_block .score_line span,
.battle_score_block .score_line span,
.user_info_block .health_line span {
    position: absolute;
    top: 0;
    width: 24px;
    height: 16px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    color: var(--darkblue);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}
.user_info_block .score_line span.act_level,
.battle_score_block .score_line span.act_level {left: 0;}
.user_info_block .score_line span.next_level,
.battle_score_block .score_line span.next_level {right: 0;}

.user_info_block .current_score,
.battle_score_block .current_score,
.user_info_block .current_health {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    border-radius: 8px;
    background-color: var(--darkblue);
}
.user_info_block .current_health {background-color: var(--green);}
.user_info_block.monster .current_health {background-color: var(--darkred);}


.user_info_block .score p,
.battle_score_block .score p,
.user_info_block .health p {
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    margin-top: 6px;
}



.stats_block .short_stats {
    width: 100%;
    margin: 15px auto;
}

.stats_block .short_stats .item {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    margin-bottom: 5px;
}
.stats_block .short_stats .item>* {white-space: nowrap;}
.stats_block .short_stats .item span.caption,
.stats_block .short_stats .item span.qtty {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
}
.stats_block .short_stats .item span.qtty {font-weight: 700;}
.stats_block .short_stats .item span.line {
    width: 100%;
    border-bottom: 2px dotted var(--text);
    margin: 0 10px 2px;
}


.stats_block .btn {
    font-size: 16px;
    padding: 10px 25px;
}

.stats_block .btn.back_btn,
body.userstat_page .stats_block .btn.user_stat {display: none;}
body.userstat_page .stats_block .btn.back_btn {display: block;}

.stats_block .btn,
.user_info_block .f_bottom .btn {
    font-size: 16px;
    padding: 10px 25px;
}
.user_info_block .f_bottom .btn {margin-bottom: 10px;}


@media screen and (min-width: 768px) {
    .user_avatar_block .skins_btn:hover span.text {text-decoration-style: wavy;}
}

body.skins_openned .user_avatar_block .user_skin {
    width: 350px;
    height: 350px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 0 0 15px #fff, 0 0 15px 15px rgba(0,0,0,0.23);
    cursor: default;
    z-index: 3;
}


body.skins_openned .user_avatar_block .skins_btn {opacity: 0;}
body.skins_openned .user_info_block .logo,
body.skins_openned .user_info_block .skins_btn,
body.skins_openned .user_info_block .user_name_level,
body.skins_openned .user_info_block .score,
body.skins_openned .user_info_block .stats_block,
body.skins_openned .user_info_block .menu_btn,
body.skins_openned .user_info_block .f_bottom {z-index: -2;}





/* *****************************************
*********************************************
Right_side
************************************
***************************************** */
.lk_main_page {height: 100%;}

.page_tabs {
    position: relative;
    background-color: var(--lightback);
    border-radius: 30px;
    box-shadow: 0px 4px 23px rgba(0,0,0,0.46);
    margin-bottom: 20px;
}

.page_tabs .tab {
    position: relative;
    width: calc(50% - 10px);
    padding: 18px 0 19px;
    border-radius: 30px;
    z-index: 2;
    transition: 230ms ease-out;
    cursor: default;
}
.page_tabs .tab:not(.active) {cursor: pointer;}

.page_tabs .tab span.icon {margin-right: 6px;}
.page_tabs .tab span.text {
    font-size: 23px;
    line-height: 23px;
    font-weight: 700;
    color: var(--darkblue);
}
.page_tabs span.active_back {
    position: absolute;
    top: 0;
    left: 0;
    height: 60px;
    width: calc(50% - 10px);
    border-radius: 30px;
    background-color: #fff;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.12);
    z-index: 0;
}
.page_tabs span.active_back.battles {animation: tab_slide_to_left 460ms ease-out both;}
.page_tabs span.active_back.rating {animation: tab_slide_to_right 460ms ease-out both;}

@keyframes tab_slide_to_left {
    0% {
        right: 0px;
        left: auto;
        width: calc(50% - 10px);
    }
    49.9% {
        right: 0px;
        left: auto;
        width: 100%;
    }
    50% {
        right: auto;
        left: 0px;
        width: 100%;
    }
    100% {
        right: auto;
        left: 0px;
        width: calc(50% - 10px);
    }
}

@keyframes tab_slide_to_right {
    0% {
        left: 0px;
        right: auto;
        width: calc(50% - 10px);
    }
    49.9% {
        left: 0px;
        right: auto;
        width: 100%;
    }
    50% {
        left: auto;
        right: 0px;
        width: 100%;
    }
    100% {
        left: auto;
        right: 0px;
        width: calc(50% - 10px);
    }
}


.tabs_content {
    height: calc(100% - 40px);
    width: calc(100% + 40px);
    margin: -20px;
    min-height: 0;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
}


.tab_content {
    position: relative;
    width: calc(100% - 40px);
    margin: 20px;
    flex-shrink: 0;
    min-height: 0;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    transition: transform 320ms ease-out, box-shadow 0ms ease 0ms;
}

.tab_content.white_block,
.tab_content:not(.white_block) .rules {box-shadow: 0 0 0 rgba(0,0,0,0);}

.tab_content[data-tab="battles"] {transform: translateX(calc(-100% - 50px));}
.tab_content[data-tab="rating"] {transform: translateX(calc(100% + 50px));}
.tab_content.active.white_block,
.tab_content.active:not(.white_block) .rules {box-shadow: 0px 4px 23px rgba(0,0,0,0.46);}
.tab_content.active[data-tab="battles"] {transform: translateX(0);}
.tab_content.active[data-tab="rating"] {transform: translateX(calc(-100% - 40px));}

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



.battle_items {
    margin-bottom: 20px;
    align-items: stretch;
    flex-shrink: 0;
}
.battle_items .battle_item {
    width: calc(50% - 10px);
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 30px;
    padding-bottom: 30px;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 23px rgba(0,0,0,0.46);
}
.battle_items .battle_item .image {
    position: relative;
    width: 100%;
    height: 200px;
    background-position: center;
    background-size: cover;
    border-radius: 30px;
}

.battle_items .battle_item .image span.offer {
    position: absolute;
    right: -2px;
    top: -2px;
    padding: 4px 8px;
    background-color: var(--yellow);
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.2;
    outline: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.46);
}


.battle_items .battle_item .text {
    width: calc(100% - 60px);
    margin: 10px auto;
    text-align: center;
}
.battle_items .battle_item .text p {
    font-size: 16px;
    line-height: 1.2;
    margin-top: 10px;
}

.rules {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
}
.rules h2 {margin-bottom: 10px;}
.rules p,
.rules li {
    font-size: 14px;
    line-height: 1.2;
}
.scroll_block {
    width: calc(100% + 10px);
    padding-right: 10px;
    margin-right: -20px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}


.scroll_block::-webkit-scrollbar {width: 10px;}
.scroll_block::-moz-scrollbar {width: 10px;}
.scroll_block::-webkit-scrollbar-track {
    background: var(--lightblue);
    border-radius: 5px;
}
.scroll_block::-moz-scrollbar-track {
    background: var(--lightblue);
    border-radius: 5px;
}
.scroll_block::-webkit-scrollbar-thumb {
    background: var(--darkblue);
    border-radius: 5px;
}

.scroll_block::-moz-scrollbar-thumb {
    background: var(--darkblue);
    border-radius: 5px;
}




@media screen and (min-width: 768px) {
    .page_tabs .tab:not(.active):hover {background-color: rgba(255,255,255,0.32);}
}




/* *****************************************
*********************************************
Rating
*********************************************
***************************************** */
.rating_page .filters {
    display: flex;
    flex-flow: row;
    justify-content: flex-start;
    align-items: center;
}
.rating_page .filters>* {margin: 0 20px 10px 0;}
.rating_page .filters>*:last-child {margin-right: 0;}

.rating_page .filters .dropdown.city {width: 300px;}
.rating_page .filters .dropdown.school {width: 120px;}
.rating_page .filters .dropdown.class_num {width: 90px;}

.rating_page h2.rating_title {
    line-height: 1.1;
    margin: 20px 0 10px;
}
.fst_places {margin-bottom: 10px;}

.rating_item {
    width: calc(100% - 35px);
    padding: 4px 20px 6px 7px;
    border-left: 7px solid #fff;
    border-radius: 14px;
    background-color: #fff;
    display: grid;
    grid-template-columns: 30px auto;
    margin-bottom: 5px;
    grid-gap: 2px 10px;
    cursor: pointer;
}
.fst_places .rating_item.fst,
.fst_places .rating_item.scnd,
.fst_places .rating_item.thrd {box-shadow: 0 2px 3px rgba(0,0,0,0.23);}
.fst_places .rating_item.fst {border-left: 7px solid #E4BA2C;}
.fst_places .rating_item.scnd {border-left: 7px solid #C3C3C3;}
.fst_places .rating_item.thrd {border-left: 7px solid #D06710;}

.rating_item .place {
    grid-row: span 2;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}
.fst_places .rating_item .place span {
    width: 26px;
    height: 38px;
    background-image: url(../img/sprite.svg);
    font-size: 0;
    line-height: 0;
    color: transparent;
}

.fst_places .rating_item.fst .place span {background-position: 0px -403px;}
.fst_places .rating_item.scnd .place span {background-position: 0px -461px;}
.fst_places .rating_item.thrd .place span {background-position: 0px -519px;}


.rating_list_block .rating_item .place span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--darkblue);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--darkblue);
    text-align: center;
}

.rating_item .line,
.rating_item .line>* {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}
.rating_item .line {justify-content: space-between;}
.rating_item .line .level_score,
.rating_item .line .perf_speed {justify-content: flex-end;}


.rating_item .name {
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    color: var(--darkblue);
    margin-right: 20px;
}

.rating_item .level_block,
.rating_item .perfect_game {margin-right: 20px;}
.rating_item .level {margin: 0;}
.rating_item .level span {font-size: 12px;}
.rating_item .level .circle {
    width: 22px;
    height: 22px;
    margin: 0 4px;
}
.rating_item .level .circle span {font-size: 14px;}

.rating_item .score span,
.rating_item .wins span,
.rating_item .perfect_game span,
.rating_item .speed_game span {
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    color: var(--text);
}
.rating_item .score span.qtty {font-weight: 700;}
.rating_item .wins span.qtty {font-weight: 600;}

.rating_item .score,
.rating_item .perfect_game,
.rating_item .speed_game {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}
.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 {
    position: relative;
    height: calc(100% - 60px);
    transition: min-height 320ms ease-out, 
                height 320ms ease-out, 
                opacity 0ms,
                padding 0ms,
                margin 0ms, 
                width 0ms;
}
.skins_page .heading span.icon.skins {outline: none;}
.skins_list.scroll_block {
    width: calc(100% + 10px);
    height: calc(100% - 60px);
    padding: 20px 10px 5px 5px;
    margin: -20px -20px 0 -5px;    
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.skins_list .skin_item {
    width: calc(100% - 20px);
    height: 0;
    padding-top: calc(100% - 10px);    
    outline: 0px solid var(--darkblue);
    transition: 230ms ease-out;
}
.skins_list .skin_item.active {outline: 5px solid var(--darkblue);}
.skins_list .skin_item::before {right: 4px; top: 4px;}


.skins_list .skin_item>span {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background-color: #fff;
}
.skins_list .skin_item.locked {cursor: default;}
.skins_list .skin_item.locked>span {background-color: #BFBFBF;}
.skins_list .skin_item.locked span.skin  {
    filter: grayscale(1) blur(2px); 
    opacity: 0.2;
}
.skins_list .skin_item.locked span.shadow {opacity: 0.2;}

.skins_list .skin_item span.lock_stub {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: 2;
}
.skins_list .skin_item.locked span.lock_stub {opacity: 1;}

.skins_list .skin_item span.lock_stub span.text {margin-top: 5px;}
.skins_list .skin_item span.lock_stub span {
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    text-align: center;
    color: #fff;
}



@media screen and (min-width: 768px) {
    .skins_list .skin_item:not(.locked, .active):hover {outline: 5px solid var(--darkblue);}
}


/* *****************************************
Stats
***************************************** */
.sec_filter_btns {margin: 10px auto 20px;}
.sec_filter_btns .sfilter_btn {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    margin: 5px;
}

.sec_filter_btns .sfilter_btn:first-child {margin-left: 0;}
.sec_filter_btns .sfilter_btn:last-child {margin-right: 0;}
.sec_filter_btns .sfilter_btn span.text {
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    color: var(--darkblue);
}
.sec_filter_btns .sfilter_btn span.text span.qtty {
    color: inherit;
    font-weight: 700;    
}



.stat_list.scroll_block {
    width: calc(100% + 10px);
    height: calc(100% - 145px);
    padding-right: 10px;
    margin-right: -20px;    
}
p.empty_history {
    font-size: 18px;
    font-weight: 600;
    color: var(--darkblue);
    text-align: center;
    margin: 30px auto;
}




.stat_item {
    width: 100%;
    background-color: var(--yellow);
    border-radius: 14px;
    margin-bottom: 10px;
}
.stat_item.lose {background-color: var(--red);}
.stat_item:last-child {margin-bottom: 0;}


.stat_item .inner {
    width: calc(100% - 40px);
    background-color: #fff;
    border-radius: 14px;
}
.stat_item.win .inner {
    padding: 7px 20px 7px 10px;
    margin-left: 10px;
}
.stat_item.lose .inner {
    padding: 7px 10px 7px 20px;
    margin-right: 10px;
}

.stat_item .inner .line {
    width: 100%;
    display: grid;
    grid-template-columns: 165px auto max-content;
    grid-gap: 0 20px;
    align-items: center;
}
.stat_item .inner .line:first-child {
    padding-bottom: 5px;
    border-bottom: 1px solid var(--yellow);
}
.stat_item.lose .inner .line:first-child {border-bottom: 1px solid #817575;}
.stat_item .inner .line:last-child {padding-top: 5px;}

.stat_item .inner .line * {white-space: nowrap; line-height: 1;}
.stat_item .inner .date {
    font-size: 14px;
    font-weight: 300;
}
.stat_item .inner .game_name {
    font-size: 14px;
    font-weight: 700;
    color: var(--darkblue);
}
.stat_item.lose .inner .game_name {color: #817575;}

.stat_item .win_icon,
.stat_item .lose_icon,
.stat_item .bonuses_line {display: none;}

.stat_item.win .win_icon,
.stat_item.lose .lose_icon,
.stat_item.bonus .bonuses_line {display: flex;}

.stat_item .inner .win_icon,
.stat_item .inner .lose_icon {
    font-size: 12px;
    font-weight: 700;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
}



.stat_item .inner .battle_time,
.stat_item .inner .answers,
.stat_item .inner .score span {
    font-size: 12px;
    font-weight: 400;
}
.stat_item .inner .battle_time span,
.stat_item .inner .answers span,
.stat_item .inner .score span.add_score {font-weight: 600;}
.stat_item .inner .score {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
}

.stat_item .bonuses_line {
    padding: 2px 20px 4px;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}
.stat_item .bonuses_line>div:not(.bonus_score) {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;   
    align-items: center;
}

.stat_item .bonuses_line>div:not(.bonus_score)>* {
    display: none;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    align-items: center;
    margin-right: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}
.stat_item .bonuses_line>div:not(.bonus_score)>* span.icon {filter: brightness(200);}

.stat_item.perfect_game .bonuses_line div.perfect {display: flex;}
.stat_item.speed .bonuses_line div.speed {
    width: 165px;
    display: flex;
}

.stat_item .bonuses_line .bonus_score {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.stat_item .bonuses_line .bonus_score span {color: inherit;}
.stat_item .bonuses_line .bonus_score span.add_bonus_score {font-weight: 600;}



/* *****************************************
EDIT
***************************************** */
.edit_user_form {padding: 0 0 30px;}
.edit_user_form .success_message {
    height: 18px;
    margin-bottom: 20px;
}
.edit_user_form .success_message span {
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
    animation: blink 960ms ease both;
    animation-delay: 320ms;
}


.edit_user_form .form_field {
    display: grid;
    grid-template-columns: 160px auto;
    grid-gap: 0 20px;
    align-items: center;
}
.edit_user_form .form_field p:not(.desc) {
    font-size: 16px;
    font-weight: 600;
    color: var(--darkblue);
    text-align: right;
}
.edit_user_form .form_field p.desc,
.edit_user_form .form_field .invalid-feedback {
    grid-column: 2/3;
    text-align: center;    
}
.edit_user_form .form_field .invalid-feedback.h_span2 {grid-column: 1/3;}


.edit_user_form .form_field .invalid-feedback {
    animation: blink 960ms ease both;
    animation-delay: 320ms;
}

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

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


.edit_user_form .form_field.submit_lines {
    margin-top: 40px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    grid-gap: 0;
}
.edit_user_form .form_field.submit_lines span {
    width: 100%;
    height: 2px;
    background-color: var(--darkblue);
    border-radius: 1px;
}
.edit_user_form .form_field.submit_lines input {
    flex-shrink: 0;
    margin: 0 20px;
}


.referral_block {margin: 40px 0 0;}
.referral_block a {position: relative;}
.edit_user_form .referral_block h2+p {margin-bottom: 5px;}


.referral_block a span {
    color: var(--darkred);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    font-size: 16px;
}



@media screen and (min-width: 768px) {
    .referral_block a:hover {text-decoration-style: wavy;}
}


/* ***********************************************************
**************************************************************
**************************************************************
GAME PAGES
**************************************************************
**************************************************************
************************************************************ */
.game_grid {
    position: relative;
    width: 100%;
    grid-template-columns: 4fr 2fr 4fr;
    grid-gap: 20px;
    align-items: stretch;
    padding: 20px 0;
    min-width: 0;    
}
.game_grid .left_side,
.game_grid .right_side,
.game_grid .center {
    position: relative;
    min-width: 0;
    height: 100%;
    min-height: 350px;
    max-height: 440px;    
}

.game_grid .center {
    height: calc(100% - 60px);
    align-self: center;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
}
.game_grid .center .logo {
    width: 210px;
    height: 100px;
    background-image: url(../img/logo.webp);
}
.game_grid .center .image {
    width: 200px;
    height: 130px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    border: 5px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.32);
}
.game_grid .center h1 {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 6px rgba(0,0,0,0.46);
    text-align: center;
}

.game_grid .center .btn.back_to_menu {
    font-size: 16px;
    padding: 10px 20px 11px;
}



.game_grid .game_field {
    grid-column: 1/4;
    height: 430px;
}

.game_grid .game_field .inner {
    width: 60%;
    margin: auto;
    text-align: center;
}
.game_grid .game_field .inner p {line-height: 1.5;}
.game_grid .game_field .inner p span.icon {display: inline-block;}

.game_grid .game_field .inner p.fw7 {
    line-height: 1.2;
    margin-bottom: 15px;
}
.game_grid .game_field .inner p.fw6 {margin-top: 10px;}
.game_grid .game_field .inner p.fw9 {
    margin: 20px 0;
    font-size: 18px;
}
.game_grid .game_field .inner .btn,
.battle_score_block .btn {
    width: fit-content;
    margin: 30px auto;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
}
.game_grid .game_field .inner .btn span.icon,
.battle_score_block .btn span.icon {
    margin-right: 6px;
    filter: brightness(200);
}

/* ***********************
GAME 
************************ */
.game {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
}
.game .timer_block {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-gap: 5px 20px;
    margin-bottom: 30px;
}
.game .timer_block * {
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    color: var(--text);
}
.game .timer_block .bonus_time {
    text-align: left;
    padding-left: 10px;
}
.game .timer_block .battle_time {
    text-align: right;
    padding-right: 10px;
}
.game .timer_block * span {font-weight: 700;}

.game .timer_block .time_line,
.game .timer_block .time_line span {
    grid-column: span 2;
    background-color: var(--lightgreen);
    height: 16px;
    width: 100%;
    border-radius: 8px;
}

.game .timer_block .time_line span {    
    background-color: var(--green);
    width: 80%;    
    display: block;
}

.game .problem_counter {
    font-size: 18px;
    font-weight: 700;
}
.game .problem_desc {font-size: 16px;}

.game .problem {
    margin: 30px auto;
    font-size: 36px;
    font-weight: 700;
}

.game .problem input {
    width: 120px;
    padding: 7px 10px;
    background-color: #fff;
    border-radius: 12px;
    border: 2px solid var(--darkblue);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    color: var(--darkblue);
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.game .problem .equation {
    margin-top: 10px;
    font-size: 46px;
}
.game .problem .equation input {
    width: 96px;
    font-size: 46px;
}

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



.game_field.win_lose_message {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.game_field.win_lose_message .message {
    font-size: 120px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0px 4px 12px rgba(0,0,0,0.46);
    display: none;
    animation: tada 800ms ease-in both;
    text-transform: uppercase;
}


body.win .game_field.win_lose_message .message,
body.lose .game_field.win_lose_message .message {display: block;}

@keyframes tada {
    0% {transform: scale(0) rotate(0deg);}
    25% {transform: scale(1.25) rotate(0deg);}
    40% {transform: scale(1.25) rotate(-15deg);}
    55% {transform: scale(1.25) rotate(15deg);}
    70% {transform: scale(1.25) rotate(-15deg);}
    85% {transform: scale(1.25) rotate(0deg);}
    100% {transform: scale(1) rotate(0deg);}
}



.game_field.battle_details_block {    
    grid-area: 2/1/4/3;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.game_field.battle_details_block h2.message {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--darkblue);
    text-align: center;
}
.game_field.battle_details_block h2.message span {color: inherit;}

.game_field.battle_details_block h3 {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--text);
    margin: 10px 0;
}


.battle_details .item {
    display: grid;
    grid-template-columns: 40px auto 370px;
    grid-gap: 0 10px;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 5px;
    align-items: center;
}
.battle_details .item .num {
    grid-row: 1/3;
    height: 100%;
    width: 100%;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    text-align: center;    
    background-color: var(--green);
    border-radius: 10px 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.battle_details .item.incorrect .num {background-color: var(--red);}

.battle_details .item .problem {
    grid-row: 1/3;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
}
.battle_details .item .problem span {font-weight: 700; color: var(--green);}
.battle_details .item.incorrect .problem span {color: var(--red);}

.battle_details .item .top_line,
.battle_details .item .bottom_line {
    padding: 4px 20px 4px 0;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-end;
}
.battle_details .item .top_line *,
.battle_details .item .bottom_line * {
    font-size: 14px;
    line-height: 1.1;
}


.battle_details .item .user_answer span,
.battle_details .item .correct_answer span:not(.mh),
.battle_details .item .damage span:not(.text),
.battle_details .item .score span {
    font-weight: 600;
    color: var(--green);
}

.battle_details .item.incorrect .user_answer span,
.battle_details .item.incorrect .correct_answer span:not(.mh),
.battle_details .item.incorrect .damage span:not(.text),
.battle_details .item.incorrect .score span {
    font-weight: 600;
    color: var(--red);
}







.battle_result_block.white_block {
    position: relative;    
    grid-area: 2/3/3/4;
    border-radius: 20px 20px 0 0;
    padding-bottom: 0;
    height: calc(100% - 10px);
    overflow: hidden;
}


.battle_score_block.white_block {
    position: relative;
    z-index: 2;    
    grid-area: 3/3/4/4;
    border-radius: 0 0 20px 20px;
    padding-top: 0;
    text-align: center;
    box-shadow: 0 12px 12px rgba(0,0,0,0.32);
}


.battle_result_block h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 900;
    color: var(--green);
    transform: scale(3);
    opacity: 0;
    animation: zoom_out 600ms ease-in both 300ms;
    text-transform: uppercase;
}

@keyframes zoom_out {
    0% {transform: scale(3); opacity: 0;}
    75% {transform: scale(0.75); opacity: 1;}
    90% {transform: scale(1.1); opacity: 1;}
    100% {transform: scale(1); opacity: 1;}
}


body.lose .battle_result_block h2 {color: var(--red);}

.battle_result_block .bs_bon {margin-top: 15px;}

.battle_result_block .battle_stats {
    width: 100%;
    margin-bottom: 10px;
}
.battle_result_block .battle_stats .item,
.battle_result_block .time_stat,
.battle_score_block .win_lose_score {
    width: 96%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    margin: 0 auto 5px;
}
.battle_result_block .battle_stats .item>*,
.battle_result_block .time_stat>*,
.battle_score_block .win_lose_score>* {
    white-space: nowrap;
    color: inherit;
}
.battle_result_block .battle_stats .item span.caption,
.battle_result_block .battle_stats .item span.qtty {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
}
.battle_result_block .battle_stats .item span.qtty {font-weight: 900;}
.battle_result_block .battle_stats .item span.line,
.battle_result_block .time_stat span.line,
.battle_score_block .win_lose_score span.line {
    width: 100%;
    border-bottom: 2px dotted var(--text);
    margin: -2px 5px 2px;
}

.battle_result_block .battle_stats .item.all {color: var(--darkblue);}
.battle_result_block .battle_stats .item.all span.line {border-bottom: 2px dotted var(--darkblue);}
.battle_result_block .battle_stats .item.correct {color: var(--green);}
.battle_result_block .battle_stats .item.correct span.line {border-bottom: 2px dotted var(--green);}
.battle_result_block .battle_stats .item.wrong {color: var(--red);}
.battle_result_block .battle_stats .item.wrong span.line {border-bottom: 2px dotted var(--red);}

.battle_result_block .time_stat {
    font-size: 18px;
    font-weight: 600;    
    margin: 15px auto 10px;
}
.battle_result_block .time_stat * {color: var(--darkblue);}

.battle_result_block .time_stat span.user_time {font-weight: 900;}
.battle_result_block .time_stat.green span.user_time {color: var(--green);}
.battle_result_block .time_stat.red span.user_time {color: var(--red);}
.battle_result_block .time_stat span.line,
.battle_score_block .win_lose_score span.line {border-bottom: 2px dotted var(--darkblue);}




.battle_result_block .perf_bonus_info,
.battle_result_block .time_bonus_info {
    position: relative;
    width: calc(100% - 20px);
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    animation: zoom_out 800ms ease-in both;
    z-index: 5;
    transform: scale(0) rotate(-360deg);
}


.battle_result_block .perf_bonus_info {animation-delay: 1200ms;}
.battle_result_block .time_bonus_info {animation-delay: 2000ms;}

.battle_result_block .perf_bonus_info span.text,
.battle_result_block .time_bonus_info span.text {font-size: 12px;}

.battle_result_block .perf_bonus_info span.icon_block,
.battle_result_block .time_bonus_info span.icon_block {
    display: grid;
    grid-template-columns: 26px auto;
    grid-gap: 0 6px;
    align-items: center;
}

.battle_result_block .perf_bonus_info span.icon_block span.icon,
.battle_result_block .time_bonus_info span.icon_block span.icon {grid-row: span 2;}

@media screen and (min-width: 768px) {
    .battle_result_block .perf_bonus_info span.icon_block span.icon {
        width: 23px;
        height: 22px;
        background-position: 0 -788px;
    }
    .battle_result_block .time_bonus_info span.icon_block span.icon {
        width: 26px;
        height: 20px;
        background-position: 0 -830px;
    }
}


.battle_result_block .perf_bonus_info span.icon_block span.qtty,
.battle_result_block .time_bonus_info span.icon_block span.qtty {
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
}
.battle_result_block .perf_bonus_info span.icon_block span.caption,
.battle_result_block .time_bonus_info span.icon_block span.caption {
    font-size: 12px;
    line-height: 1;
    font-weight: 300;
}


.battle_score_block .win_lose_score {
    font-size: 18px;
    font-weight: 900;
    color: var(--darkblue)
}
.battle_score_block .win_lose_score span.text {color: inherit;}
body.lose .battle_score_block .win_lose_score {color: var(--red);}
body.lose .battle_score_block .win_lose_score span.line {border-bottom: 2px dotted var(--red);}

.battle_score_block .score {margin: 20px auto 30px;}
.battle_score_block .btn {margin: 0 auto;}

















.hide {
    overflow: hidden;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
}


.ms {display: none !important;}
