.fancybox__container{
    --fancybox-bg: rgba(82, 82, 87, 0.5);
}
.fancybox__backdrop{
    backdrop-filter: blur(5px);
}
.fancybox__content>.f-button.is-close-btn{
    top: 5px;
    right: 5px;
    --f-button-color: #000
}
.fancybox__slide{
    padding: 20px;
}
.is-compact .fancybox__content>.f-button.is-close-btn{
    --f-button-color: #000;    
    --f-button-hover-color: #1bb5db;
    --f-button-bg: transparent;
    --f-button-active-bg: transparent;
    --f-button-hover-bg: transparent;
}
body{
    position: relative;
    background: #272731;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}
input{
    outline: none;
}
.game{
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    padding: 20px;
    max-width: 576px;
    margin: 0 auto;
    background: #272731;
} 
.game__wrapper{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.game__title{
    font-size: 72px;
    color: rgb(27, 181, 219);
    text-align: center;
    margin-top: 40px;
}
.game__content{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.game__note{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: max-content;
    height: max-content;
    font-size: 18px;
    color: #fff;
}
.game__buttons{
    margin-bottom: -150px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 150px;
    button{
        margin-top: 10px;
        &:first-child{
            margin-top: 0;
        }
    }
}
.status{
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    margin: auto;
    max-width: 250px;
    width: 100%;
    div{
        background: rgba(26, 26, 26, 0.8);
        color: #fff;
        font-size: 12px;
        border-radius: 4px;
        padding: 5px;
        margin-bottom: 5px;
        transition: all 0.3s;
        &:last-child{
            margin-bottom: 0;
        }
    }
}
.btn{
    position: relative;    
    width: 200px; 
    height: 48px;
    border-radius: 6px;
    border: 0px;
    background: #1bb5db;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    svg{
        margin-right: 5px;
    }
    &:active{
        background: #209dbd;
    }
}
.btn--mini{
    width: 70px;
    svg{
        margin-right: 0;
    }
}
.btn--custom{
    background: #343440;
    padding: 0px 45px;
    svg{
        margin-right: 0;
        position: absolute;
        left: 15px;
    }
}
.result{
    display: none;
    width: max-content;
    justify-content: center;
    height: 90px;
    background: rgb(27, 181, 219);
    border-radius: 4px;
    gap: 10px;
    padding: 10px;    
    top: 15vh;
    margin-bottom: 15px;
}
.result div{
    height: 70px;
    position: relative;
    background: #eeeeee;
    aspect-ratio: 1;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #000;
    transition: all 0.2s;
    img{
        position: absolute;
        top: 0;
        left: 0;
        object-fit: contain;
        width: 100%;
        height: 100%;
    }
}
.result div.selected{
    border: 4px solid #fd7198;
}

.players{
    position: relative;
}

.players__step{
    font-size: 18px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.players__title{
    font-size: 18px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.players__wrapper{
    width: 100%;
    display: flex;
    overflow-x: auto;
}
.result-round{
    font-size: 18px;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    height: 22px;
    margin-top: -32px;
}
.player{
    position: relative;
    min-width: 155px;
    max-width: 155px;
    border-radius: 4px;
    padding: 10px;
    overflow: hidden;
    color: #000;
    margin-left: 10px;
    background: #343440;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    &:first-child{
        margin-left: 0;
    }
}
.player.active .player__color{
    width: 100px;
    height: 100px;
    bottom: -50px;
    right: -50px;
}
.player__color{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    bottom: -30px;
    right: -30px;
    transition: all 0.4s;
    div{
        width: 15px;
        height: 15px;
        position: absolute;
        top: 25px;
        left: 25px;
        font-size: 12px;
        font-weight: bold;
        color: #fff;
        text-align: center;
    }
}
.player__title{
    font-size: 14px;
    margin-top: 10px;
    color: #cacbd1;
    b{
        font-weight: normal;
    }
}
.player__name{
    font-size: 14px;
    width: 100%;
    color: #cacbd1;
    flex-grow: 1;
}
.player__text{
    color: #fd7198;
    font-size: 12px;
    span{
        font-size: 16px;
        color: #cacbd1;
    }
}
.modal{
    max-width: 450px;
    width: 100%;
    min-height: 170px;
    border-radius: 10px;
    padding: 20px;
}
.modal__title{
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}
.modal__content{
    max-height: 500px;
    overflow-y: auto;
    margin-top: 15px;
}
.modal__button{
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.menu{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.menu__title{
    font-size: 42px;
    color: #fff;
    text-align: center;    
    margin-bottom: 30px;
}
.menu__content{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.menu__block{
    margin-bottom: 10px;
    &:last-child{
        margin-bottom: 0;
    }
}
.menu__version{
    text-align: center;
    font-size: 12px;
    color: #fff;
}
.room{
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 15px;
    border: 1px solid #e9e9e9;
    background: #f3f3f3;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    &:last-child{
        margin-bottom: 0;
    }
}
.room.error{
    background: #ff4242;
}
/*.room.room--lock .room__name svg{
    fill: #ff4242;
}
.room.room--unlock .room__name svg{
    fill: #1bdb55;
}*/
.room__name{
    font-size: 16px;
    color: #000;
    display: flex;
    align-items: center;
    width: calc(100% - 60px);
    svg{
        min-width: 20px;
        margin-right: 10px;
    }
}
.room__avatar{
    min-width: 50px;
    max-width: 50px;
    height: 50px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
    margin-right: 10px;    
    border: 4px solid #57d8ff;
    box-shadow: 0px 10px 16px -5px rgba(34, 60, 80, 0.6);
    img{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
.room__settings{
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    flex-grow: 1;
}
.room__setting{
    margin-top: 5px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    &:last-child{
        margin-right: 0;
    }
    span{
        background: #1bb5db;
        color: #fff;
        padding: 3px 5px;
        border-radius: 4px;
        font-size: 10px;
        margin-left: 5px;
    }
    i{
        font-style: normal;
    }
}
.room__group{
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.room__button{
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    button{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        svg{
            margin-right: 15px;
            fill: #fff;
        }
    }
}
.room__button button.btn--mini{
    width: 70px;
    svg{
        margin-right: 0px;
    }
}
.room-bg{
    position: fixed;
    z-index: 8;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(82, 82, 87, 0.5);
    backdrop-filter: blur(5px);
}
.create-room{
    background: #41414f;
    max-width: 576px;
    width: 100%;
    bottom: -100%;
    position: fixed;
    padding: 20px;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 9;
    border-radius: 10px 10px 0 0;
    box-shadow: 0px -5px 35px 5px rgb(0 0 0 / 20%);
    transition: all 0.6s;
}
.create-room.active{
    bottom: 0;
}
.create-room__title{
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}
.create-room__row{
    display: flex;
    margin-bottom: 15px;
}
.create-room__row .field{
    width: 50%;
    margin-right: 15px;
    margin-bottom: 0;
    &:last-child{
        margin-right: 0;
    }
}
.create-room__buttons{
    margin-top: 15px;
    display: flex;
    div{
        width: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 14px;
        background: #da3939;
        color: #fff;
        margin-right: 15px;
        &:active{
            background: #da2e2e;
        }
    }
    button{
        width: 50%;
        margin-right: 0px;
        background: #1bdb55;
        color: #fff;
        &:active{
            background: #19b146;
        }
    }
}
.field{
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    &:last-child{
        margin-bottom: 0;
    }
    label{
        font-size: 14px;
        margin-bottom: 5px;
        color: #fff;
    }
    input{
        width: 100%;
        border: 0px;
        border-radius: 4px;
        height: 40px;
        padding: 0px 15px;
        background: #30303b;
        color: #9698a7;
        &:disabled{
            border: 1px solid #30303b;
            background: #41414f;
        }
    }
}
.field-input{
    width: 100%;
    height: 48px;
    margin-right: 10px;
    border-radius: 6px;
    border: 1px solid #1bb5db;
    padding: 0px 20px;
}
.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    &:last-child{
        margin-bottom: 0;
    }
    label{
        display: inline-block;
        cursor: pointer;
        user-select: none;
        margin-bottom: 0;
    }
    input{
        display: none;
        &:checked ~ div::before {
            box-sizing: border-box;
            background: #30303b url(../images/check.svg) no-repeat;
            background-position: center;
        }
    }
    div{
        position: relative;
        display: flex;
        align-items: center;
        color: #fff;
        font-size: 14px;
        line-height: 22px;
        transition: 0.3s ease-in-out;
        &::before{
            content: "";
            box-sizing: border-box;
            max-width: 20px;
            min-width: 20px;
            height: 20px;
            background: #30303b;
            border-radius: 4px;
            display: block;
            margin-right: 12px;
            transition: border 0.3s ease-in-out;
        }
    }
}
.player-connect{
    width: 100%;
    margin-bottom: 15px;
    border: 1px solid #e9e9e9;
    background: #f3f3f3;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    &:last-child{
        margin-bottom: 0;
    }
}
.player-connect.admin{
    background: #1bb5db;
    border: 1px solid #1bb5db;
}
.player-connect.admin .player-connect__name{
    color: #fff;
}

.player-connect.user .player-connect__avatar{
    border: 4px solid #1bdb55;
}
.player-connect.user .player-connect__name{
    color: #1bdb55;
}
.player-connect__avatar{
    min-width: 50px;
    max-width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0px 10px 16px -5px rgba(34, 60, 80, 0.6);
    border: 4px solid #57d8ff;
    margin-right: 15px;
    background: #fff;
    position: relative;
    img{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
.player-connect__name{
    flex-grow: 1;
}
.player-connect__button{
    margin-left: 15px;
    width: 48px;
    height: 48px;
    background: #ff4242;
    &:active{
        background: #da3939;
    }
    svg{
        fill: #fff;
    }
}
.menu-user{
    position: relative;
    background: radial-gradient(at 79.72176190214597% 20.412320497817582%, hsla(210.65693430656935, 64.92890995260665%, 58.62745098039215%, 1) 0%, hsla(210.65693430656935, 64.92890995260665%, 58.62745098039215%, 0) 100%), radial-gradient(at 24.413187967900242% 28.27256794794579%, hsla(180, 65.87677725118483%, 58.62745098039215%, 1) 0%, hsla(180, 65.87677725118483%, 58.62745098039215%, 0) 100%), radial-gradient(at 30.34125287587619% 5.401737468288581%, hsla(210.65693430656935, 64.92890995260665%, 58.62745098039215%, 1) 0%, hsla(210.65693430656935, 64.92890995260665%, 58.62745098039215%, 0) 100%), radial-gradient(at 57.6007624202924% 88.50047878878982%, hsla(180, 65.87677725118483%, 58.62745098039215%, 1) 0%, hsla(180, 65.87677725118483%, 58.62745098039215%, 0) 100%), radial-gradient(at 37.88374714683545% 57.23078357676581%, hsla(210.65693430656935, 64.92890995260665%, 58.62745098039215%, 1) 0%, hsla(210.65693430656935, 64.92890995260665%, 58.62745098039215%, 0) 100%), radial-gradient(at 50.83962840413041% 88.3184908438116%, hsla(180, 65.87677725118483%, 58.62745098039215%, 1) 0%, hsla(180, 65.87677725118483%, 58.62745098039215%, 0) 100%), radial-gradient(at 74.20232419014442% 54.065814714755646%, hsla(210.65693430656935, 64.92890995260665%, 58.62745098039215%, 1) 0%, hsla(210.65693430656935, 64.92890995260665%, 58.62745098039215%, 0) 100%), radial-gradient(at 3.1579470440860735% 86.36362193530418%, hsla(180, 65.87677725118483%, 58.62745098039215%, 1) 0%, hsla(180, 65.87677725118483%, 58.62745098039215%, 0) 100%), radial-gradient(at 60.88519854763468% 80.0489760878012%, hsla(210.65693430656935, 64.92890995260665%, 58.62745098039215%, 1) 0%, hsla(210.65693430656935, 64.92890995260665%, 58.62745098039215%, 0) 100%);               
    box-shadow: 0px 5px 29px -5px rgb(0 0 0 / 22%);
    width: calc(100% + 40px);
    height: 30vh;
    margin-left: -20px;
    margin-top: -20px;
    border-radius: 150% / 0 0 56% 56%;
}
.menu-user__data{
    position: absolute;
    top: -50px;
    bottom: 0;
    left: 40px;
    margin: auto;
    display: flex;    
    align-items: center;
    height: max-content;
}
.menu-user__avatar{
    max-width: 80px;
    min-width: 80px;
    height: 80px;
    margin-right: 10px;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0px 10px 16px -5px rgba(34, 60, 80, 0.6);
    border: 4px solid #57d8ff;
    img{
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        object-fit: cover;
    }
}
.menu-user__name{
    font-size: 18px;
    color: #fff;
}
.result-user{
    padding: 10px 0px;
    border-bottom: 1px solid #ebebeb;
}
.result-user__num{
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    svg{
        margin-left: 10px;
    }
}
.result-user__group{
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.result-user__name{
    font-size: 18px;
    display: flex;
    align-items: center;
}
.result-user__count{
    font-size: 18px;
    span{
        color: #fd7198;
    }
}
@media (max-width: 576px) {
    .result{
        height: 60px;
        padding: 5px;
        gap: 5px;
        div{
            height: 50px;
        }
    }
    .status{
        div{
            font-size: 10px;
        }
    }
}