/* CSS/Main Site Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
}
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg-dark); color: var(--text-primary); margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* NAVBAR */
.navbar { background: rgba(30,41,59,.95); backdrop-filter: blur(10px); padding: 0 20px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 24px; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text-primary); }
.btn-nav { padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.btn-nav { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-nav:hover { border-color: var(--primary); color: var(--primary); }
.btn-register { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-register:hover { background: var(--primary-dark); }
.text-muted-nav { padding: 0; color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.text-muted-nav:hover { color: var(--text-primary); text-decoration: underline; }
.burger { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; }

/* HERO */
.hero { text-align: center; padding: 100px 20px 80px; background: radial-gradient(ellipse at center, rgba(99,102,241,.08) 0%, transparent 70%); }
.hero h1 { font-size: 52px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero { padding: 14px 32px; border-radius: 10px; font-size: 16px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.btn-hero.primary { background: var(--primary); color: #fff; }
.btn-hero.primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-hero.secondary { background: transparent; color: var(--text-primary); border: 2px solid var(--primary); }
.btn-hero.secondary:hover { background: rgba(99,102,241,.1); }

/* FEATURES */
.features { padding: 80px 0; }
.features > .container > h2 { text-align: center; font-size: 32px; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 16px; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 32px 24px; text-align: center; transition: transform .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

/* FEATURED GAMES */
.featured-games { padding: 60px 0 80px; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.game-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform .2s; }
.game-card:hover { transform: translateY(-4px); }
.game-thumb { width: 100%; height: 160px; object-fit: cover; }
.game-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, #1e293b, #0f172a); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.game-card h3 { padding: 12px 16px 4px; font-size: 16px; }
.game-card p { padding: 0 16px; color: var(--text-secondary); font-size: 13px; }
.game-plays { padding: 4px 16px 12px; color: var(--text-muted); font-size: 12px; }
.btn-play { margin: 0 16px 16px; width: calc(100% - 32px); padding: 10px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; }
.btn-play:hover { background: var(--primary-dark); }
.loading { text-align: center; padding: 40px; color: var(--text-muted); }
.text-center { text-align: center; }

/* FOOTER */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 40px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: 40px; }
.footer-col h4 { font-size: 16px; margin-bottom: 12px; }
.footer-col p, .footer-col a { color: var(--text-secondary); font-size: 14px; text-decoration: none; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: var(--primary); }
.footer-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .burger { display: block; }
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}