/**
 * u54cdu5e94u5f0fu6837u5f0fu8868 - u9002u5e94u4e0du540cu5c4fu5e55u5c3au5bf8
 */

/* u5927u578bu5c4fu5e55 */
@media (max-width: 1400px) {
    .app-container {
        grid-template-columns: 220px 1fr 300px;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* u4e2du578bu5c4fu5e55 */
@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: 200px 1fr 280px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-text {
        font-size: 14px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* u5e73u677fu7535u8111u548cu5c0fu578bu7b14u8bb0u672c */
@media (max-width: 992px) {
    .app-container {
        grid-template-columns: 180px 1fr 0;
    }
    
    .user-chat-sidebar {
        position: fixed;
        right: -300px;
        width: 300px;
        z-index: 100;
        transition: right 0.3s ease;
        top: 0;
        height: 100vh;
    }
    
    .user-chat-sidebar.active {
        right: 0;
    }
    
    .toggle-chat {
        display: block;
        position: fixed;
        right: 20px;
        top: 20px;
        z-index: 101;
        width: 40px;
        height: 40px;
        background-color: #6c5dd3;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }
    
    .promo-banner {
        padding: 15px;
    }
    
    .banner-content {
        max-width: 70%;
    }
    
    .banner-title {
        font-size: 20px;
    }
    
    .banner-text {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .btn-bonus {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .table-header, .table-row {
        grid-template-columns: 1fr 0.8fr 0.5fr 1fr 0.8fr;
    }
}

/* u624bu673au548cu5c0fu5c4fu5e55u8bbeu5907 */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: fixed;
        left: -240px;
        width: 240px;
        z-index: 100;
        transition: left 0.3s ease;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        padding-top: 60px; /* u4e3au83dcu5355u6309u94aeu7559u51fau7a7au95f4 */
    }
    
    .logo {
        position: relative;
        z-index: 5;
        padding-top: 5px;
        padding-bottom: 10px;
    }
    
    .task-hub {
        margin-top: 5px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .toggle-menu {
        display: block;
        position: fixed;
        left: 20px;
        top: 20px;
        z-index: 101;
        width: 40px;
        height: 40px;
        background-color: #6c5dd3;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: left 0.3s ease;
    }
    
    .toggle-menu.shifted {
        left: 260px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-banner {
        flex-direction: column;
        padding: 20px;
    }
    
    .banner-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .banner-image {
        position: relative;
        right: 0;
        transform: none;
        margin-top: 20px;
    }
    
    .banner-image img {
        max-height: 150px;
    }
    
    .latest-games-table {
        overflow-x: auto;
    }
    
    .table-header, .table-row {
        min-width: 700px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination {
        margin-top: 15px;
        align-self: flex-end;
    }
}

/* u5c0fu624bu673au5c4fu5e55 */
@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }
    
    .banner-title {
        font-size: 18px;
    }
    
    .banner-text {
        font-size: 12px;
    }
    
    .btn-bonus {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .game-card {
        margin-bottom: 15px;
    }
    
    .latest-games-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 16px;
    }
}
