@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&family=Inter:wght@400;600;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    background-color: #010409;
    color: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

#game-wrapper {
    position: relative;
    width: 100%;
    max-width: 1024px;
    height: 100vh;
    background-color: rgba(2, 6, 23, 0.4);
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    background-image: url('../img/stars.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    /* Mezcla sutil con el color de fondo */
}

canvas#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.mono-font {
    font-family: 'JetBrains Mono', monospace;
}

.crt::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #334155;
    border-radius: 2px;
}

#level-up-notif {
    animation: levelUpPop 2.5s ease-out forwards;
}

@keyframes levelUpPop {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    15% {
        transform: translateY(0);
        opacity: 1;
    }

    85% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.hud-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.heart-beat {
    animation: heartBeat 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.4);
        color: #fff;
        text-shadow: 0 0 15px red;
    }

    100% {
        transform: scale(1);
    }
}

.grenade-pulse {
    animation: grenadePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes grenadePop {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.4);
        color: #fff;
        text-shadow: 0 0 15px #3b82f6;
    }

    100% {
        transform: scale(1);
    }
}

.combo-text {
    animation: comboBounce 0.3s ease-out;
}

@keyframes comboBounce {
    0% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}