:root {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --accent-color: #38bdf8;
    --secondary-color: #64748b;
    --card-bg: #1e293b;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

header {
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.logo .dot {
    color: var(--accent-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

p {
    font-size: 1.125rem;
    color: var(--secondary-color);
    font-weight: 300;
}

/* Game Container */
.game-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 200px;
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#gameOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#gameOverlay.visible {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

#gameOverlay p {
    color: #fff;
    font-weight: 500;
}

.key {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.6em;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9em;
    margin: 0 0.3em;
}

.score {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 700;
}

footer {
    margin-top: auto;
    padding-top: 3rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .game-container {
        height: 180px;
    }
}
