.activities-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-sizing: border-box;
    overflow: hidden;
    background: #18181b;
}

.activities-container .games-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.activities-container .games-search-bar {
    width: 100%;
    max-width: 500px;
    height: 50px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.activities-container .games-search-bar:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.activities-container .games-search-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 12px;
}

.activities-container .activity-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    height: 100%;
    outline: none;
}

.activities-container .activity-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.activities-container .games-refresh-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
}

.activities-container .games-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.05);
}

.activities-container .game-grid-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.activities-container .game-grid-container::-webkit-scrollbar {
    width: 6px;
}

.activities-container .game-grid-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.activities-container .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    box-sizing: border-box;
}

.game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    aspect-ratio: 1 / 1.3;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.game-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s;
}

.game-card .game-info {
    padding: 12px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.game-card h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.no-results-message {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    text-align: center;
    display: none;
}

.game-card.skeleton {
    pointer-events: none;
}

.game-card.skeleton .game-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.05);
    animation: pulse 1.5s infinite ease-in-out;
}

.game-card.skeleton .skeleton-text {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 0 auto;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 0.4;
    }
}