@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;700&display=swap');

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Space+Grotesk', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    background: linear-gradient(135deg, #0a0e15, #0d1420);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
    
    100% {
        background-position: 0% 50%;
    }
}

#game-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    height: 500px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(13, 29, 40, 0.7), rgba(8, 17, 24, 0.9));
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                inset 0 0 20px rgba(41, 128, 185, 0.1);
    overflow: hidden;
}

#game-board {
    border-radius: 10px;
    background: rgba(13, 29, 40, 0.3);
    image-rendering: pixelated;
}

#score-display {
    position: absolute;
    top: 15px;
    left: 50%;
    z-index: 10;
    transform: translateX(-50%);
    font-size: 36px;
    font-weight: 700;
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    opacity: 0.9;
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 20;
    width: 100%;
    transform: translate(-50%, -50%);
    font-size: 52px;
    font-weight: 700;
    color: #ff3366;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#restart-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    z-index: 30;
    transform: translateX(-50%);
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 400;
    color: white;
    background: linear-gradient(145deg, #2980b9, #2c3e50);
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(41, 128, 185, 0.3);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

#restart-button:hover {
    transform: translateX(-50%) scale(1.05);
    background: linear-gradient(145deg, #3498db, #34495e);
}
