
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


.category-main {
    padding: 40px 0 60px;
    padding-bottom: 0;
    
}


.category-header {
    margin-bottom: 35px;
}

.category-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.category-count {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}


.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}


.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #1a1a1a;
    aspect-ratio: 1 / 1;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 195, 247, 0.3);
}


.game-card-large {
    grid-column: span 2;
    grid-row: span 2;
}


.load-more-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.5);
}

.load-more-btn:active {
    transform: translateY(0);
}


.footer {
    background-color: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 30px 0;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #666;
    font-size: 14px;
}

.footer-copyright p {
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-link {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4fc3f7;
}

.footer-separator {
    color: #444;
    user-select: none;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeIn 0.5s ease forwards;
}


.game-card:nth-child(1) { animation-delay: 0.05s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.15s; }
.game-card:nth-child(4) { animation-delay: 0.2s; }
.game-card:nth-child(5) { animation-delay: 0.25s; }


@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .category-main {
        padding: 30px 0 50px;
    }
    
    .category-header {
        margin-bottom: 25px;
    }
    
    .category-title {
        font-size: 28px;
    }
    
    .category-count {
        font-size: 13px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .load-more-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-main {
        padding: 20px 0 40px;
        padding-bottom: 0;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .game-card {
        border-radius: 8px;
    }
    
    .footer {
        padding: 20px 0;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    .footer-links {
        gap: 10px;
    }
}


@media screen and (min-width: 769px) {
    
    ::-webkit-scrollbar {
      width: 10px;
    }
  
    ::-webkit-scrollbar-track {
      background: #1a1a1a;
    }
  
    ::-webkit-scrollbar-thumb {
      background: #4fc3f7;
      border-radius: 5px;
    }
  
    ::-webkit-scrollbar-thumb:hover {
      background: #29b6f6;
    }
  }

