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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e;
    color: white;
    min-height: 100vh;
    padding-top: 20px;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 70vh;
    background: #000;
    touch-action: none;
}

#ui-container {
    position: relative;
    z-index: 10;
    pointer-events: none;
    width: 100%;
    height: 0;
    /* Let overlays handle their own positioning */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#score-container {
    margin-top: 10vh;
}

#score {
    font-size: 6rem;
    font-weight: 900;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
}

#banner-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: auto;
    width: 320px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: fixed;
    top: 35vh;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.hidden {
    display: none !important;
    opacity: 0;
}

#title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

#prompt {
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

#game-over h2 {
    margin-bottom: 10px;
    color: #ff4d4d;
}

#game-over p {
    font-size: 1.2rem;
    margin: 5px 0;
}

button {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #4d79ff;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
}

button:active {
    transform: scale(0.95);
    background: #3366ff;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}