
:root {
    --ps-primary: #2d5bff;
    --ps-bg: #f8f9fa;
    --ps-card: #ffffff;
    --ps-text: #1a1d23;
    --ps-muted: #6b7280;
    --ps-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--ps-bg); color: var(--ps-text); font-family: 'Inter', sans-serif; line-height: 1.6; }

/* --- Navigation --- */
.ps-navbar {
    position: sticky; top: 15px; width: 92%; max-width: 1200px; margin: 0 auto;
    height: 70px; background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
    border-radius: 20px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 30px; box-shadow: var(--ps-shadow); z-index: 1000; border: 1px solid rgba(255,255,255,0.3);
}
.ps-logo { font-size: 22px; font-weight: 900; color: var(--ps-primary); text-decoration: none; }

/* --- Main Content --- */
.ps-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.ps-filter-bar { display: flex; gap: 12px; margin: 40px 0; overflow-x: auto; padding-bottom: 5px; }
.ps-btn-filter {
    padding: 8px 22px; border-radius: 50px; border: 1px solid #e5e7eb; background: #fff;
    cursor: pointer; font-weight: 600; transition: 0.3s; white-space: nowrap; color: var(--ps-muted);
}
.ps-btn-filter.is-active { background: var(--ps-primary); color: #fff; border-color: var(--ps-primary); }

.ps-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }

.ps-game-card {
    background: var(--ps-card); border-radius: 24px; padding: 12px;
    text-decoration: none; color: inherit; transition: 0.4s; box-shadow: var(--ps-shadow);
    border: 1px solid transparent; display: block;
}
.ps-game-card:hover { transform: translateY(-8px); border-color: var(--ps-primary); }
.ps-game-card.is-hidden { display: none; }

.ps-card-thumb { width: 100%; aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; margin-bottom: 15px; }
.ps-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ps-card-tag { font-size: 11px; font-weight: 800; color: var(--ps-primary); text-transform: uppercase; margin-bottom: 5px; }

/* --- NEW: Website Description Section --- */
.ps-site-desc { margin: 80px 0; padding: 40px; background: #fff; border-radius: 30px; box-shadow: var(--ps-shadow); }
.ps-desc-title { font-size: 24px; font-weight: 800; margin-bottom: 15px; color: var(--ps-text); }
.ps-desc-content { color: var(--ps-muted); font-size: 15px; }

.ps-btn-top {
    position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
    background: var(--ps-primary); color: #fff; border-radius: 50%;
    display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 900;
}

.ps-card-desc {
    font-size: 13px;
    color: var(--ps-muted);
    margin-top: 8px;

    /* The magic 4 lines for line clamping */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5; /* Fixed height for consistency */
    max-height: 3em; /* line-height * 2 */
}

/* --- Global Footer --- */
.ps-footer { background: #fff; padding: 60px 0 40px; border-top: 1px solid #eee; }
.ps-footer-inner { display: flex; justify-content: space-between; align-items: center; }

.ps-share-group { display: flex; gap: 10px; }
.ps-share-item {
    width: 38px; height: 38px; border-radius: 12px; background: #f3f4f6;
    display: flex; align-items: center; justify-content: center; color: #4b5563; text-decoration: none; transition: 0.3s;
}
.ps-share-item:hover { background: var(--ps-primary); color: #fff; transform: translateY(-3px); }

/* --- Search Overlay --- */
.ps-search-overlay {
    position: fixed; inset: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    z-index: 2000; display: none; flex-direction: column; align-items: center; padding-top: 100px;
}
.ps-search-input { width: 80%; max-width: 600px; padding: 20px 30px; border-radius: 50px; border: 2px solid #eee; font-size: 20px; outline: none; }
