
:root {
    --bg: #f4f1ea;
    --primary: #004d40;   /* Deep Racing Green */
    --accent: #ff6b35;    /* Vibrant Orange */
    --ink: #1a1a1a;
    --border: 2px solid #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; }
body { background: var(--bg); color: var(--ink); line-height: 1.5; }

/* --- NAVIGATION --- */
.header {
    background: #fff; border-bottom: var(--border);
    padding: 0 5%; height: 70px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 1000;
}
.logo { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -1px; }
.logo span { color: var(--primary); }

.search-wrap {
    background: #fff; border: var(--border);
    padding: 8px 15px; width: 30%; display: flex; align-items: center;
}
.search-wrap input { border: none; outline: none; width: 87%; font-size: 13px; font-weight: 600; }

/* --- SMART CATEGORY DRAWER --- */
.nav-zone { background: var(--primary); border-bottom: var(--border); position: sticky; top: 70px; z-index: 999; }
.m-toggle {
    display: none; width: 100%; padding: 12px 5%; color: #fff;
    font-size: 12px; font-weight: 800; text-transform: uppercase; cursor: pointer;
    justify-content: space-between; align-items: center;
}
.cat-list { padding: 10px 5%; display: flex; gap: 20px; transition: max-height 0.3s ease; overflow: hidden; }
.cat-item { color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; cursor: pointer; opacity: 0.7; }
.cat-item:hover, .cat-item.active { opacity: 1; color: var(--accent); }

/* --- GAME GRID --- */
.main-container { max-width: 1400px; margin: 30px auto; padding: 0 5%; min-height: 60vh; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }

.card { background: #fff; border: var(--border); display: flex; flex-direction: column; transition: 0.2s; box-shadow: 6px 6px 0 var(--ink); }
.card:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink); }
.thumb { width: 100%; aspect-ratio: 16/10; overflow: hidden; border-bottom: var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.card-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.game-title { font-size: 16px; font-weight: 900; margin-bottom: 5px; }
.game-desc { font-size: 12px; color: #666; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.play-btn { margin-top: auto; background: var(--primary); color: #fff; text-align: center; padding: 10px; font-size: 11px; font-weight: 800; text-decoration: none; border: var(--border); }
.play-btn:hover { background: var(--accent); color: var(--ink); }

/* --- SEO DESCRIPTION SECTION (Optimized) --- */
.seo-section { max-width: 1200px; margin: 80px auto 40px; padding: 0 5%; }
.seo-content-wrap { position: relative; max-height: 120px; overflow: hidden; transition: max-height 0.5s ease; border-left: 5px solid var(--accent); padding-left: 25px; }
.seo-content-wrap.expanded { max-height: 2000px; }

/* Fade effect for long text */
.seo-content-wrap::after {
    content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 60px;
    background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
.seo-content-wrap.expanded::after { display: none; }

.seo-section h2 { font-size: 24px; font-weight: 900; margin-bottom: 15px; text-transform: uppercase; }
.seo-section p { font-size: 14px; color: #444; margin-bottom: 15px; line-height: 1.8; }

.read-more-btn { display: inline-block; margin-top: 15px; font-size: 12px; font-weight: 900; color: var(--primary); cursor: pointer; text-decoration: underline; text-transform: uppercase; }

/* --- FOOTER --- */
.footer { background: #fff; border-top: var(--border); padding: 50px 5%; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col h4 { font-size: 13px; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; }
.footer-col a, .footer-col p { font-size: 12px; color: #777; text-decoration: none; margin-bottom: 10px; display: block; }
.footer-col a:hover { color: var(--accent); }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .m-toggle { display: flex; }
    .cat-list { flex-direction: column; max-height: 0; padding: 0 5%; }
    .nav-zone.open .cat-list { max-height: 500px; padding: 20px 5%; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .search-wrap { width: 45%; }
    .header { height: 60px; padding: 0 15px; }
}
.cat-list a{
    color:#fff;
}
a{
    text-decoration: none;
}