*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #e2e8f0;
    line-height: 1.6;
    background: #0a0a1a;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a78bfa;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.brand-icon {
    color: #a78bfa;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.2s;
}

.nav a:hover {
    color: #a78bfa;
}

.hero {
    padding: 140px 32px 80px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
}

.hero-inner {
    max-width: 640px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 40px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #a78bfa;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
}

.games {
    padding: 80px 0;
}

.games h2,
.leaderboard h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 36px;
    color: #f1f5f9;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.game-card {
    background: #111128;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: border-color 0.25s, transform 0.2s;
}

.game-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateY(-3px);
}

.game-thumb {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        hsla(var(--hue), 60%, 50%, 0.12) 0%,
        hsla(var(--hue), 80%, 30%, 0.06) 100%);
    color: hsla(var(--hue), 70%, 70%, 1);
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #f1f5f9;
}

.game-info p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 12px;
}

.game-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
}

.players {
    font-size: 12px;
    color: #64748b;
}

.leaderboard {
    padding: 60px 0 80px;
}

.lb-table {
    max-width: 560px;
}

.lb-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: background 0.15s;
}

.lb-row:not(.lb-header):hover {
    background: rgba(139, 92, 246, 0.06);
}

.lb-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 8px;
}

.lb-rank {
    width: 40px;
    font-weight: 600;
    font-size: 15px;
    color: #64748b;
}

.lb-rank.gold { color: #fbbf24; }
.lb-rank.silver { color: #94a3b8; }
.lb-rank.bronze { color: #d97706; }

.lb-name {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
}

.lb-score {
    font-weight: 600;
    font-size: 15px;
    color: #a78bfa;
    font-variant-numeric: tabular-nums;
}

.footer {
    padding: 32px 0;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: #475569;
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 20px 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .stats {
        gap: 32px;
    }

    .stat-num {
        font-size: 22px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .games,
    .leaderboard {
        padding: 48px 0;
    }

    .nav {
        gap: 16px;
    }
}
