
:root {
    --accent: #a855f7; /* Electric Purple */
    --bg-deep: #0f172a; /* Midnight Blue-Black */
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
nav.navbar {
    height: 70px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
}
.nav-container {
    max-width: var(--max-w); margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.brand { font-size: 24px; font-weight: 900; letter-spacing: 2px; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand span { color: var(--accent); }

.search-box {
    background: var(--bg-card); border: 1px solid var(--border);
    height: 40px; border-radius: 8px; padding: 0 15px;
    display: flex; align-items: center; flex: 0 1 350px;
}
.search-box input { background: transparent; border: none; color: #fff; width: 100%; outline: none; margin-left: 10px; font-size: 14px; }

/* --- Spotlight Section --- */
.spotlight { padding: 13px 0; background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.15), transparent); }
.hero-text { text-align: center; margin-bottom: 40px; }
.hero-text h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; line-height: 1.1; margin-bottom: 15px; }
.hero-text p { color: var(--text-dim); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* --- Category Bar --- */
.cat-bar { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 30px; justify-content: center; scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-link {
    padding: 8px 20px; border-radius: 100px; background: var(--bg-card);
    color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 600;
    border: 1px solid var(--border); transition: 0.3s;
}
.cat-link:hover, .cat-link.active { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* --- Game Grid --- */
.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px; padding: 0 20px 80px;
    max-width: var(--max-w); margin: 0 auto;
}
.game-item {
    background: var(--bg-card); border-radius: 16px; overflow: hidden;
    text-decoration: none; color: inherit; border: 1px solid var(--border);
    transition: 0.3s; display: flex; flex-direction: column;
}
.game-item:hover { border-color: var(--accent); transform: scale(1.02); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.preview { width: 100%; aspect-ratio: 16/9; background: #000; position: relative; }
.preview img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; background: rgba(0,0,0,0.4); }
.game-item:hover .play-overlay { opacity: 1; }
.play-icon { width: 50px; height: 50px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }

.info { padding: 20px; flex-grow: 1; }
.info h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: 0.5px; }
.info p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* --- New About Section (SEO & Brand) --- */
.site-about { background: rgba(255, 255, 255, 0.02); padding: 60px 20px; border-top: 1px solid var(--border); }
.about-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.about-inner h2 { font-size: 24px; margin-bottom: 20px; color: var(--accent); }
.about-inner p { font-size: 15px; color: var(--text-dim); line-height: 1.8; margin-bottom: 15px; }

/* --- Footer --- */
footer { padding: 40px 20px; text-align: center; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }
.footer-nav { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; }
.footer-nav a { color: var(--text-main); text-decoration: none; opacity: 0.6; transition: 0.3s; }
.footer-nav a:hover { opacity: 1; color: var(--accent); }

/* --- Scroll Top --- */
#goTop {
    position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
    background: var(--accent); color: #fff; border-radius: 12px;
    display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 1001;
}

@media (max-width: 768px) {
    .cat-bar { justify-content: flex-start; }
    .main-grid { grid-template-columns: 1fr; }
}