@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Orbitron', sans-serif;
    user-select: none;
}

#gameCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    cursor: crosshair;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#score-board {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: #0ff;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
    z-index: 10;
}

#start-screen, #game-over-screen {
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border: 2px solid #0ff;
    border-radius: 10px;
    box-shadow: 0 0 20px #0ff, inset 0 0 20px #0ff;
    backdrop-filter: blur(5px);
    pointer-events: auto;
    animation: pulse 2s infinite;
}

.hidden {
    display: none !important;
}

h1 {
    color: #fff;
    font-size: 48px;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px #f0f, 0 0 20px #f0f, 0 0 30px #f0f;
}

p {
    color: #ccc;
    font-size: 18px;
    letter-spacing: 2px;
}

button {
    background: transparent;
    border: 2px solid #0ff;
    color: #0ff;
    padding: 15px 30px;
    font-size: 20px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 20px;
}

button:hover {
    background: #0ff;
    color: #000;
    box-shadow: 0 0 20px #0ff;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px #0ff, inset 0 0 20px #0ff; }
    50% { box-shadow: 0 0 40px #0ff, inset 0 0 40px #0ff; }
    100% { box-shadow: 0 0 20px #0ff, inset 0 0 20px #0ff; }
}

/* ── Responsivo ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    h1 {
        font-size: clamp(18px, 6vw, 36px);
        margin-bottom: 12px;
    }

    p {
        font-size: 14px;
        letter-spacing: 1px;
    }

    #start-screen,
    #game-over-screen {
        padding: 24px 16px;
        margin: 0 12px;
        max-width: calc(100vw - 24px);
    }

    button {
        padding: 12px 24px;
        font-size: 16px;
        min-height: 44px;
    }

    #score-board {
        font-size: 16px;
        top: 12px;
        left: 12px;
    }
}

@media (max-width: 360px) {
    h1 { font-size: 16px; }
    p  { font-size: 12px; }
}
