.games-page {
    padding: 10px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.games-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 20px 40px;
}

.games-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.games-header p {
    color: #c8b08a;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.search-container {
    position: relative;
    max-width: 400px;
    margin: 16px auto 0;
}

.search-box {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: rgba(255, 140, 50, 0.05);
    border: 1px solid rgba(255, 140, 50, 0.2);
    border-radius: 8px;
    color: #ffd4a3;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box::placeholder {
    color: #c8b08a;
}

.search-box:focus {
    outline: none;
    border-color: rgba(255, 140, 50, 0.5);
    background: rgba(255, 140, 50, 0.08);
    box-shadow: 0 0 12px rgba(255, 140, 50, 0.15);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c8b08a;
    pointer-events: none;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.game-card {
    background: linear-gradient(135deg, rgba(45, 18, 8, 0.84), rgba(25, 10, 5, 0.78));
    border: 1px solid rgba(255, 140, 50, 0.16);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 140, 50, 0.4);
    box-shadow: 0 10px 24px rgba(255, 140, 50, 0.12);
}

.game-card-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(255, 140, 50, 0.15), rgba(255, 100, 30, 0.08));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-thumbnail .placeholder-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 50px;
    background: rgba(255, 140, 50, 0.08);
    filter: opacity(0.5);
}

.game-link-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 50, 0.9);
    border: 1px solid rgba(255, 140, 50, 1);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.game-link-btn:hover {
    background: rgba(255, 140, 50, 1);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 140, 50, 0.5);
}

.game-link-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.game-card-body {
    padding: 14px;
}

.game-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffd4a3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.game-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.game-tag {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    background: rgba(255, 140, 50, 0.1);
    color: #ffaa4d;
    border: 1px solid rgba(255, 140, 50, 0.2);
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 140, 50, 0.05) 25%, rgba(255, 140, 50, 0.1) 50%, rgba(255, 140, 50, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
}

.skeleton-title {
    height: 18px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 80%;
}

.skeleton-tags {
    display: flex;
    gap: 6px;
}

.skeleton-tag {
    display: inline-block;
    height: 20px;
    width: 55px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(255, 140, 50, 0.05) 25%, rgba(255, 140, 50, 0.1) 50%, rgba(255, 140, 50, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
    .games-page {
        padding: 10px 16px 40px;
    }

    .games-header h1 {
        font-size: 28px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
        margin-top: 24px;
    }
}