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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, #0f0f1a 0%, #1a1a2e 100%);
    color: #ffffff;
    line-height: 1.5;
    min-height: 100vh;
}

/* ========== NAVBAR (rounded) ========== */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 80px;
    width: 92%;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0.5rem 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 15px;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    background: linear-gradient(135deg, #2563eb, #a855f7);
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    gap: 6px;
}
.logo-icon i {
    font-size: 1.2rem;
    color: white;
}
.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #2563eb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.logo-text span {
    font-size: 0.7rem;
    color: #94a3b8;
    display: block;
}

/* HAMBURGER */
.hamburger {
    background: rgba(255,255,255,0.1);
    border: none;
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    border-radius: 60px;
    cursor: pointer;
    transition: 0.2s;
    color: white;
}
.hamburger:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.03);
}

/* DROPDOWN */
.dropdown {
    position: fixed;
    top: 90px;
    right: 5%;
    background: rgba(20, 20, 35, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    width: 260px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: 0.25s;
    border: 1px solid rgba(255,255,255,0.2);
}
.dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s;
}
.btn-carnival {
    background: linear-gradient(115deg, #f97316, #ef4444);
    color: white;
}
.btn-gaming {
    background: linear-gradient(115deg, #3b82f6, #8b5cf6);
    color: white;
}
.dropdown-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 16px rgba(59,130,246,0.7);
}

/* HERO */
.hero {
    text-align: center;
    margin: 3rem auto;
    padding: 0 1.5rem;
}
.hero h1 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.hero p {
    color: #cbd5e1;
    margin: 1rem 0 2rem;
}
.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}
.big-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.big-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 22px rgba(59,130,246,0.7);
}

/* Section Title */
.section-title {
    text-align: center;
    margin: 3rem 0 1.5rem;
}
.section-title h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, #ffffff, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Game Cards */
.games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.game-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(4px);
    border-radius: 2rem;
    padding: 1.8rem;
    text-align: center;
    width: 240px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 28px rgba(59,130,246,0.4);
    border-color: #3b82f6;
}
.game-card i {
    font-size: 3rem;
    color: #a855f7;
}
.game-card h3 {
    margin: 1rem 0 0.5rem;
}
.game-card p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 1.2rem;
}
.game-btn {
    background: linear-gradient(100deg, #3b82f6, #8b5cf6);
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s;
}
.game-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px #3b82f6;
}

/* Leaderboard */
.leaderboard {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(0,0,0,0.3);
    border-radius: 2rem;
    padding: 1rem;
}
.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rank {
    font-weight: 800;
    font-size: 1.3rem;
    width: 50px;
    color: #fbbf24;
}
.name {
    flex: 1;
    font-weight: 600;
}
.score {
    margin-right: 1rem;
    color: #a855f7;
}
.profile-link {
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-size: 0.8rem;
    transition: 0.2s;
}
.profile-link:hover {
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}

/* Tournaments */
.tournaments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 1rem auto 3rem;
}
.tournament-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 1.5rem;
    padding: 1.5rem;
    width: 300px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}
.tournament-card h3 {
    margin-bottom: 0.5rem;
}
.tournament-card p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}
.tournament-btn {
    background: #f97316;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    display: inline-block;
    transition: 0.2s;
}
.tournament-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 12px #f97316;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 700px) {
    .navbar {
        width: 95%;
        padding: 0.4rem 1.2rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .big-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .game-card {
        width: 100%;
        max-width: 260px;
    }
    .leaderboard-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .profile-link {
        margin-left: auto;
    }
}