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

* {
    box-sizing: border-box;
    user-select: none;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0b0c10;
    font-family: 'Outfit', sans-serif;
    touch-action: none; 
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    color: #c5c6c7;
    font-size: 20px;
    font-weight: 700;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#score {
    color: #66fcf1;
    font-size: 28px;
}

#gameOverScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #c5c6c7;
    z-index: 20;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

#gameOverScreen.hidden {
    opacity: 0;
    pointer-events: none;
}

#gameOverScreen h1 {
    margin: 0 0 10px 0;
    font-size: 48px;
    color: #ff0055;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
}

#gameOverScreen p {
    font-size: 24px;
    margin: 10px 0;
}

#finalScore {
    color: #66fcf1;
    font-size: 32px;
    font-weight: 700;
}

#gameOverScreen .hint {
    margin-top: 30px;
    font-size: 16px;
    color: #888;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.3; transform: scale(0.98); }
}

canvas {
    display: block;
}
