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

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
}

.logo {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    background: linear-gradient(135deg, #ff6b6b, #fdcb6e, #00cec9, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(162, 155, 254, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(162, 155, 254, 0.6)); }
}

.tagline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    font-weight: 600;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Game Card */
.game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px color-mix(in srgb, var(--accent) 30%, transparent);
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

.game-card:nth-child(2) .game-icon { animation-delay: 0.1s; }
.game-card:nth-child(3) .game-icon { animation-delay: 0.2s; }
.game-card:nth-child(4) .game-icon { animation-delay: 0.3s; }
.game-card:nth-child(5) .game-icon { animation-delay: 0.4s; }
.game-card:nth-child(6) .game-icon { animation-delay: 0.5s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.game-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.game-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 20px;
}

.play-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.game-card:hover .play-btn {
    transform: scale(1.1);
    box-shadow: 0 5px 20px color-mix(in srgb, var(--accent) 50%, transparent);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer .privacy {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .logo {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .container {
        padding: 20px 15px;
    }

    .game-card {
        padding: 25px 20px;
    }
}
