/* Стили для игрового окна */
.game-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.game-card-container {
    background: white;
    width: 100%;
    
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.game-card-body {
    padding-top: 15px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 15px;
}
.game-progress {
    height: 5px;
    background: #eee;
}
.game-progress-bar {
    height: 100%;
    background: #ff4757;
    transition: width 0.3s;
}
/* Разрываем слишком длинные слова или коды, чтобы не ломать ширину */
.message-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all; /* Это самое важное свойство */
    max-width: 100%;
}

/* Центрируем и ограничиваем карточку игры */
.game-invite-card {
    display: inline-block;
    width: 100%;
    max-width: 240px;
}
/* Адаптивные кнопки свайпа для игры */
.game-swipe-btn {
    width: 60px !important;
    height: 60px !important;
    font-size: 24px !important;
}
/* По умолчанию (для мобильных телефонов) */


.game-card-text {
    font-size: 18px; 
    font-weight: 300;  
    min-height: 60px;
    
}
.modal_game_wr{
    width: 95%;
    text-align: center;
    height: 90vh;
    max-width: 1000px;
    overflow-y: scroll;
}
.game_item_card {
    height: 40vh;
    min-height: 350px;
    background-color: #f8f9fa; 
     overflow: hidden;
}
.game_style_card{
    cursor:pointer; 
    transition: transform 0.2s; 
    height: 35vh; 
    min-height: 450px;
     background-color: #f8f9fa;
     border-radius: 1rem;
}

 .game_style_txt {
        font-weight: 300;
        font-size: 24px;
    }
.game_style_progr {
    height: 12px; 
    border-radius: 10px; 
    background-color: #f0f0f0;
}
.flag_wr{
    height: 50vh;
}

.flag_btn{
    flex-direction: row;
}





/* Для планшетов и ПК (от 992px) */
@media (min-width: 992px) {
    .game-card-img {
       max-height: 100%;
       width: 80% !important;
    }
    
    .game-card-text {
        font-size: 18px; 
        font-weight: 300;  
        min-height: 60px;
    }
}

@media(max-width:900px){
    .game-card-img {
        
        max-height: 55vh;
        object-fit: cover;
    }
    .game_style_card {
    min-height: 426px;;
  max-width: 426px;
    }
   
   
 
}
@media(max-width: 769px) {
    .game-swipe-btn {
    width: 45px !important;
    height: 45px !important;
    font-size: 20px !important;
    }
    .game_item_card {
    height: 30vh;
    }
    .game_style_wr {
        display: flex;
        justify-content: center;
    }
    .game_style_txt {
        font-size: 20px;
    }
   .flag_wr {
        min-height: 270px !important;
        height: 40vh;
    } 
    .flag_img {
        max-height: 34vh;
    }
    .flag_btn{
    flex-direction:column;
}
   
}
@media(max-width: 600px) {
     .game_item_card {
    
    min-height: 217px;
    } 
   
    
 
}

@media(max-width: 500px){
   
    .game-card-text {
    font-size: 16px;
    }
        .game-swipe-btn {
        width: 37px !important;
        height: 37px !important;
        font-size: 19px !important;
    }
    
    .game_style_card {
           min-height: 300px; 
        }
     .game_style_txt {
        font-size: 18px;
    }

        
}

@media(max-width:400px) {
    .game_style_card {
           min-height: 280px; 
        }
    .game_style_txt {
        font-size: 16px;
    }
    .game_style_progr{
        margin-bottom: 10px !important;
    }
    .game_style_pg {
        margin-top: 0;
    }
}
@media(max-width: 390px) {
        .game_style_card {
        min-height: 260px;
    }
}