/* Стили для блока комнат в заголовке */
.title .rooms {
    margin-right: 15px;
}

.title .rooms ul {
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    align-items: center !important;
    position: static !important;
}

.title .rooms li {
    position: relative;
    float: none !important;
    height: auto !important;
    margin: 0 !important;
}

.title .rooms li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px !important;
    line-height: 1.4;
    white-space: nowrap;
    min-height: 40px !important;
    height: 40px !important;
    box-sizing: border-box;
    text-shadow: none !important;
    text-align: center !important;
}

.title .rooms li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.title .rooms li.active a {
    background: rgba(108, 122, 224, 0.4);
    border-color: rgba(108, 122, 224, 0.6);
}

.title .rooms .name {
    font-weight: 600;
    margin-right: 3px;
}

.title .rooms b {
    font-weight: 500;
    opacity: 0.8;
    font-size: 13px;
}

.title .rooms .new-coin-icon {
    margin-left: 3px;
    font-size: 12px;
}

/* Стили для кнопок "Честная игра" и "История" */
.title .flex {
    gap: 5px;
    align-items: center;
}

.title .flex > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px !important;
    line-height: 1.4;
    white-space: nowrap;
    min-height: 40px !important;
    height: 40px !important;
    box-sizing: border-box;
}

.title .flex > a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== АДАПТИВНОСТЬ ДЛЯ ВСЕХ УСТРОЙСТВ ===== */

/* Большие мониторы (1920px и выше) */
@media (min-width: 1920px) {
    .title .rooms {
        margin-right: 20px;
    }
    
    .title .rooms ul {
        gap: 8px;
    }
    
    .title .rooms li a {
        padding: 10px 25px !important;
        font-size: 16px !important;
        min-height: 45px !important;
        height: 45px !important;
    }
    
    .title .rooms b {
        font-size: 15px;
    }
    
    .title .flex > a {
        padding: 10px 25px !important;
        font-size: 16px !important;
        min-height: 45px !important;
        height: 45px !important;
    }
}

/* Стандартные мониторы (1200px - 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
    .title .rooms {
        margin-right: 18px;
    }
    
    .title .rooms ul {
        gap: 6px;
    }
    
    .title .rooms li a {
        padding: 9px 22px !important;
        font-size: 15px !important;
        min-height: 42px !important;
        height: 42px !important;
    }
    
    .title .rooms b {
        font-size: 14px;
    }
    
    .title .flex > a {
        padding: 9px 22px !important;
        font-size: 15px !important;
        min-height: 42px !important;
        height: 42px !important;
    }
}

/* Ноутбуки и планшеты в альбомной ориентации (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .title .rooms {
        margin-right: 15px;
    }
    
    .title .rooms ul {
        gap: 5px;
    }
    
    .title .rooms li a {
        padding: 8px 18px !important;
        font-size: 14px !important;
        min-height: 40px !important;
        height: 40px !important;
    }
    
    .title .rooms b {
        font-size: 13px;
    }
    
    .title .flex > a {
        padding: 8px 18px !important;
        font-size: 14px !important;
        min-height: 40px !important;
        height: 40px !important;
    }
}

/* Планшеты (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .title .rooms {
        margin-right: 12px;
    }
    
    .title .rooms ul {
        gap: 4px;
    }
    
    .title .rooms li a {
        padding: 7px 16px !important;
        font-size: 13px !important;
        min-height: 38px !important;
        height: 38px !important;
    }
    
    .title .rooms b {
        font-size: 12px;
    }
    
    .title .flex > a {
        padding: 7px 16px !important;
        font-size: 13px !important;
        min-height: 38px !important;
        height: 38px !important;
    }
    
    .title .rooms .name {
        margin-right: 2px;
    }
}

/* Большие смартфоны и маленькие планшеты (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .title .rooms {
        margin-right: 10px;
    }
    
    .title .rooms ul {
        gap: 3px;
    }
    
    .title .rooms li a {
        padding: 6px 14px !important;
        font-size: 12px !important;
        min-height: 36px !important;
        height: 36px !important;
    }
    
    .title .rooms b {
        font-size: 11px;
    }
    
    .title .flex > a {
        padding: 6px 14px !important;
        font-size: 12px !important;
        min-height: 36px !important;
        height: 36px !important;
    }
    
    .title .rooms .name {
        margin-right: 1px;
    }
    
    .title .rooms .new-coin-icon {
        margin-left: 2px;
        font-size: 10px;
    }
}

/* Обычные смартфоны (415px - 575px) */
@media (min-width: 415px) and (max-width: 575px) {
    .title .rooms {
        margin-right: 8px;
    }
    
    .title .rooms ul {
        gap: 2px;
    }
    
    .title .rooms li a {
        padding: 5px 12px !important;
        font-size: 11px !important;
        min-height: 34px !important;
        height: 34px !important;
    }
    
    .title .rooms b {
        font-size: 10px;
    }
    
    .title .flex > a {
        padding: 5px 12px !important;
        font-size: 11px !important;
        min-height: 34px !important;
        height: 34px !important;
    }
    
    .title .rooms .name {
        margin-right: 1px;
    }
    
    .title .rooms .new-coin-icon {
        margin-left: 1px;
        font-size: 9px;
    }
}

/* Маленькие смартфоны (до 414px) */
@media (max-width: 414px) {
    .title {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .title .rooms {
        margin-right: 0;
        width: 100%;
        order: 2;
    }
    
    .title .rooms ul {
        gap: 2px;
        justify-content: space-between;
    }
    
    .title .rooms li {
        flex: 1;
    }
    
    .title .rooms li a {
        padding: 4px 8px !important;
        font-size: 10px !important;
        min-height: 32px !important;
        height: 32px !important;
        flex-direction: column;
        line-height: 1.2;
    }
    
    .title .rooms .name {
        margin-right: 0;
        margin-bottom: 1px;
        font-size: 9px;
    }
    
    .title .rooms b {
        font-size: 8px;
        opacity: 1;
        display: flex;
        align-items: center;
        gap: 1px;
    }
    
    .title .rooms .new-coin-icon {
        margin-left: 0;
        font-size: 7px;
    }
    
    .title .flex {
        order: 1;
        width: 100%;
        justify-content: center;
        gap: 8px;
        margin-bottom: 5px;
    }
    
    .title .flex > a {
        padding: 6px 16px !important;
        font-size: 11px !important;
        min-height: 32px !important;
        height: 32px !important;
        flex: 1;
        max-width: 140px;
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .title .rooms li a {
        padding: 3px 6px !important;
        font-size: 9px !important;
        min-height: 30px !important;
        height: 30px !important;
    }
    
    .title .rooms .name {
        font-size: 8px;
    }
    
    .title .rooms b {
        font-size: 7px;
    }
    
    .title .rooms .new-coin-icon {
        font-size: 6px;
    }
    
    .title .flex > a {
        padding: 5px 12px !important;
        font-size: 10px !important;
        min-height: 30px !important;
        height: 30px !important;
    }
}
