@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #05070a;
    --card-bg: rgba(20, 25, 35, 0.6);
    --accent-color: #4ade80;
    /* Bonsai Green */
    --accent-glow: rgba(74, 222, 128, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Splash Screen */
#splash {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: radial-gradient(circle at center, #1a202c 0%, #05070a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out, visibility 1s;
}

#splash.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 50px var(--accent-glow);
    animation: pulse 3s infinite ease-in-out;
    margin-bottom: 2rem;
}

.splash-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.2rem;
    background: linear-gradient(to right, #4ade80, #2dd4bf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* Main Content */
#app {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-base);
}

#app.visible {
    opacity: 1;
    transform: translateY(0);
}

.welcome-msg {
    margin-bottom: 3rem;
}

.welcome-msg h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.welcome-msg p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 40, 55, 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    opacity: 0;
    transition: var(--transition-base);
}

.game-card:hover::before {
    opacity: 1;
}

.game-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.game-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.game-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

@media (max-width: 768px) {
    .splash-image {
        width: 220px;
        height: 220px;
    }

    .splash-title {
        font-size: 2rem;
    }

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