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

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Roboto Mono', monospace;
}

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

#hud {
    position: absolute;
    top: 80px;
    /* Shifted down for framework Top Bar */
    left: 20px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    /* Let mouse clicks pass through to canvas */
    text-shadow: 0 0 5px rgba(0, 0, 0, 1);
}

h2 {
    font-size: 16px;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
}

.stat {
    font-size: 13px;
    margin-bottom: 5px;
}

.label {
    display: inline-block;
    width: 130px;
    opacity: 0.6;
}

#mouseHint {
    margin-top: 20px;
    font-size: 12px;
    color: #ffaa00;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

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

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

/* Navigation Links */
.nav-links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
    /* Links need pointer events */
}

.nav-links a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.toggle-hud-btn {
    display: none;
    position: absolute;
    top: 70px;
    /* Shifted down for top bar */
    right: 10px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    .toggle-hud-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        top: auto;
        bottom: 30px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 1.5rem;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.15);
    }

    #hud.hidden {
        display: none !important;
    }
}