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

body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    overflow: hidden;
    background-color: #00001a; /* Match scene background */
}

#gameCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    touch-action: none;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    text-shadow: 0 0 8px #00ccff;
    font-size: 1.5em;
    color: #00ccff;
}

#score, #highScore {
    margin: 0.5em 0;
    transition: color 0.3s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: rgba(0, 10, 20, 0.5);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.5s ease-in-out;
}

.menu {
    text-align: center;
    background: rgba(0, 25, 51, 0.8);
    padding: 3em 4em;
    border-radius: 25px;
    border: 2px solid #00ccff;
    box-shadow: 0 0 40px rgba(0, 204, 255, 0.5), inset 0 0 20px rgba(0, 204, 255, 0.3);
}

.start-tip {
    margin-top: 2em;
    font-size: 1.2em;
    color: #aaa;
    animation: pulse 2s infinite;
}

h1 {
    margin-top: 0;
    font-size: 5em;
    font-weight: 700;
    color: #00ccff;
    text-shadow: 0 0 20px #00ccff, 0 0 35px #00ccff, 0 0 50px #00ccff;
    letter-spacing: 3px;
}

.inquiry {
    margin-top: 2.5em;
    font-size: 1.1em;
    color: #ccc;
    line-height: 1.8;
}

.inquiry b {
    color: #ff8c8c;
    text-shadow: 0 0 10px #ff8c8c;
}

#pauseOverlay, #gameOverOverlay {
    flex-direction: column;
    font-size: 4em;
    text-shadow: 0 0 20px #ffffff;
}

#gameOverOverlay small {
    font-size: 0.5em;
    margin-top: 0.8em;
    color: #aaa;
}

/* Keyframe animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .menu {
        width: 85%;
        padding: 2em 2.5em;
    }

    h1 {
        font-size: 3.5em;
    }

    #hud {
        font-size: 1.2em;
    }

    .inquiry {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.8em;
    }

    #pauseOverlay, #gameOverOverlay {
        font-size: 3em;
    }

    .start-tip {
        font-size: 1em;
    }
}
