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

:root {
    --neon-pink: #ff2d95;
    --neon-blue: #0ff0fc;
    --neon-purple: #8a2be2;
    --neon-green: #00ff66;
    --neon-yellow: #ffff00;
    --dark-bg: #03001a;
    --darker-bg: #01000c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--darker-bg);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    overflow: hidden;
    height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 45, 149, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 60%, rgba(0, 242, 254, 0.1) 0%, transparent 20%);
    touch-action: manipulation;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    border: 2px solid var(--neon-pink);
    box-shadow:
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-blue),
        inset 0 0 10px var(--neon-purple),
        0 0 30px var(--neon-pink);
    background-color: var(--dark-bg);
    max-width: 100%;
    max-height: 80vh;
    animation: canvas-glitch 3s infinite;
}

@keyframes canvas-glitch {
    0%, 90%, 100% {
        filter: hue-rotate(0deg) brightness(1);
        transform: translateX(0);
    }
    1%, 91% {
        filter: hue-rotate(180deg) brightness(1.2);
        transform: translateX(-2px);
    }
    2%, 92% {
        filter: hue-rotate(90deg) brightness(0.8);
        transform: translateX(2px);
    }
    3%, 93% {
        filter: hue-rotate(270deg) brightness(1.1);
        transform: translateX(0);
    }
}

#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    animation: hud-flicker 2s infinite;
}

@keyframes hud-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    51% { opacity: 0.3; }
    52% { opacity: 1; }
}

.stat-bar {
    width: 150px;
    height: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-blue);
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    animation: stat-glitch 4s infinite;
}

@keyframes stat-glitch {
    0%, 95%, 100% {
        border-color: var(--neon-blue);
        box-shadow: 0 0 5px var(--neon-blue);
    }
    96% {
        border-color: #ff2d95;
        box-shadow: 0 0 10px #ff2d95;
        transform: translateX(1px);
    }
    97% {
        border-color: #00ff66;
        box-shadow: 0 0 8px #00ff66;
        transform: translateX(-1px);
    }
    98% {
        border-color: var(--neon-blue);
        box-shadow: 0 0 5px var(--neon-blue);
        transform: translateX(0);
    }
}

.stat-fill {
    height: 100%;
    background: var(--neon-blue);
    width: 80%;
    transition: width 0.3s ease;
}

.health-fill {
    background: var(--neon-green);
}

.cyberware-fill {
    background: var(--neon-purple);
}

.stat-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    text-shadow: 0 0 5px var(--neon-blue);
    animation: text-flicker 1.5s infinite;
}

@keyframes text-flicker {
    0%, 100% {
        text-shadow: 0 0 5px var(--neon-blue);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
        opacity: 0.9;
    }
    75% {
        opacity: 0.6;
    }
}

#level-display {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-pink);
    padding: 5px 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: var(--neon-pink);
    animation: text-flicker 1.5s infinite;
}

#score-display {
    position: absolute;
    top: 40px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-yellow);
    padding: 5px 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: var(--neon-yellow);
    animation: text-flicker 1.5s infinite;
}

#mobile-controls {
    display: none;
    position: fixed;
    bottom: 20px;
    width: 100%;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    user-select: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 5px var(--neon-blue);
    animation: button-glitch 5s infinite;
}

@keyframes button-glitch {
    0%, 98%, 100% {
        transform: scale(1) rotate(0deg);
        border-color: var(--neon-blue);
    }
    99% {
        transform: scale(1.1) rotate(2deg);
        border-color: #ff2d95;
        box-shadow: 0 0 15px #ff2d95;
    }
}

.control-button:active {
    transform: scale(0.9);
    box-shadow: 0 0 15px var(--neon-blue);
}

.action-button {
    background: rgba(255, 45, 149, 0.3);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 5px var(--neon-pink);
}

.action-button:active {
    box-shadow: 0 0 15px var(--neon-pink);
}

#joystick-area {
    position: relative;
    width: 120px;
    height: 120px;
}

#joystick {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.3);
    border: 2px solid var(--neon-blue);
    top: 35px;
    left: 35px;
    touch-action: manipulation;
    transition: all 0.1s ease;
    box-shadow: 0 0 10px var(--neon-blue);
    animation: joystick-glitch 3s infinite;
}

@keyframes joystick-glitch {
    0%, 90%, 100% {
        box-shadow: 0 0 10px var(--neon-blue);
        transform: translate(0, 0);
    }
    91% {
        box-shadow: 0 0 20px #ff2d95, 0 0 30px #ff2d95;
        transform: translate(2px, -2px);
    }
    92% {
        box-shadow: 0 0 15px #00ff66, 0 0 25px #00ff66;
        transform: translate(-2px, 2px);
    }
}

#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 150;
}

#level-complete {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 150;
}

#loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #020111, #03001a);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.loading-bar-container {
    width: 80%;
    max-width: 500px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-pink);
    margin-bottom: 20px;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    transition: width 0.5s ease;
    animation: bar-glitch 1s infinite;
}

@keyframes bar-glitch {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    25% {
        filter: hue-rotate(90deg);
    }
    50% {
        filter: hue-rotate(180deg);
    }
    75% {
        filter: hue-rotate(270deg);
    }
}

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: var(--neon-blue);
    text-align: center;
    margin-bottom: 10px;
    animation: loading-glitch 2s infinite;
}

@keyframes loading-glitch {
    0%, 100% {
        text-shadow: 0 0 10px var(--neon-blue);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 20px var(--neon-pink), 0 0 30px var(--neon-pink);
        opacity: 0.8;
    }
    75% {
        opacity: 0.5;
        letter-spacing: 2px;
    }
}

#mission-notification {
    position: absolute;
    top: 20px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-purple);
    padding: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    display: none;
    animation: pulse 2s infinite;
    max-width: 70%;
}

@keyframes pulse {
    0% { border-color: var(--neon-purple); }
    50% { border-color: var(--neon-blue); }
    100% { border-color: var(--neon-purple); }
}

#intro-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #020111, #03001a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
}

#intro-canvas {
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink);
    max-width: 100%;
    max-height: 100%;
}

#skip-intro {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    animation: pulse 2s infinite;
    z-index: 301;
}

.neon-text {
    text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue), 0 0 15px var(--neon-blue);
}

.cyberpunk-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 242, 254, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 2;
}

#dialogue {
    position: absolute;
    bottom: 20px;
    width: 90%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-pink);
    padding: 10px;
    font-family: 'Rajdhani', sans-serif;
    display: none;
    z-index: 15;
}

#dialogue-text {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 14px;
}

#dialogue-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dialogue-option {
    padding: 5px;
    cursor: pointer;
    color: var(--neon-blue);
    font-size: 12px;
}

.dialogue-option:hover {
    background: rgba(255, 45, 149, 0.2);
}

#game-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 242, 254, 0.03) 2px,
        rgba(0, 242, 254, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
    animation: scanline-glitch 0.1s linear infinite;
}

@keyframes scanline-glitch {
    0% {
        transform: translateY(0);
        opacity: 0.5;
    }
    100% {
        transform: translateY(10px);
        opacity: 0.3;
    }
}

@keyframes static-glitch {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.1; }
}

@keyframes color-shift {
    0%, 100% { filter: hue-rotate(0deg) saturate(100%); }
    25% { filter: hue-rotate(90deg) saturate(150%); }
    50% { filter: hue-rotate(180deg) saturate(200%); }
    75% { filter: hue-rotate(270deg) saturate(150%); }
}

@keyframes distort-glitch {
    0%, 100% { transform: scaleX(1) scaleY(1); }
    20% { transform: scaleX(1.05) scaleY(0.95); }
    40% { transform: scaleX(0.95) scaleY(1.05); }
    60% { transform: scaleX(1.02) scaleY(0.98); }
    80% { transform: scaleX(0.98) scaleY(1.02); }
}

/* Agregar animación para el efecto de rayos */
@keyframes lightning-flash {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Agregar estilo para el contenedor de partículas de rayos */
.lightning-particle {
    position: absolute;
    background: linear-gradient(180deg, #ffffff 0%, #0ff0fc 50%, #ff2d95 100%);
    box-shadow: 0 0 20px #0ff0fc, 0 0 40px #ffffff;
    animation: lightning-flash 0.1s infinite;
    pointer-events: none;
    z-index: 1000;
}

/* Agregar estilo para el efecto de electricidad alrededor del jefe */
.boss-aura {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(0, 242, 254, 0.2) 50%, transparent 70%);
    animation: boss-electricity 1s infinite;
    pointer-events: none;
}

@keyframes boss-electricity {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
        box-shadow: 0 0 20px #0ff0fc;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 40px #ffffff, 0 0 60px #0ff0fc;
    }
}

#level-display {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-pink);
    padding: 5px 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: var(--neon-pink);
    animation: text-flicker 1.5s infinite;
}

#score-display {
    position: absolute;
    top: 40px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-yellow);
    padding: 5px 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: var(--neon-yellow);
    animation: text-flicker 1.5s infinite;
}

#menu {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #01000c 0%, #03001a 30%, #020111 70%, #01000c 100%);
}

#menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 45, 149, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 254, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 60% 10%, rgba(138, 43, 226, 0.1) 0%, transparent 35%);
    animation: background-pulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes background-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#menu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 242, 254, 0.05) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(255, 45, 149, 0.05) 50%, transparent 100%);
    background-size: 200px 200px, 300px 300px;
    animation: matrix-scan 6s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes matrix-scan {
    0% {
        transform: translateX(-200px) translateY(0);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: translateX(200px) translateY(-100px);
        filter: hue-rotate(90deg);
    }
    50% {
        transform: translateX(-200px) translateY(200px);
        filter: hue-rotate(180deg);
    }
    75% {
        transform: translateX(200px) translateY(100px);
        filter: hue-rotate(270deg);
    }
    100% {
        transform: translateX(-200px) translateY(0);
        filter: hue-rotate(360deg);
    }
}

.title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff2d95 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 20px rgba(255, 45, 149, 0.8),
        0 0 40px rgba(0, 242, 254, 0.6),
        0 0 60px rgba(138, 43, 226, 0.4);
    animation: title-glitch 3s infinite, title-float 6s ease-in-out infinite;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    position: relative;
}

@keyframes title-glitch {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(255, 45, 149, 0.8),
            0 0 40px rgba(0, 242, 254, 0.6),
            0 0 60px rgba(138, 43, 226, 0.4);
        transform: translateX(0);
    }
    94% {
        text-shadow:
            -2px 0 20px rgba(255, 45, 149, 0.8),
            2px 0 40px rgba(0, 242, 254, 0.6),
            -2px 0 60px rgba(138, 43, 226, 0.4);
        transform: translateX(-2px);
    }
    95% {
        text-shadow:
            2px 0 20px rgba(255, 45, 149, 0.8),
            -2px 0 40px rgba(0, 242, 254, 0.6),
            2px 0 60px rgba(138, 43, 226, 0.4);
        transform: translateX(2px);
    }
    96% {
        text-shadow:
            0 0 40px rgba(255, 45, 149, 1),
            0 0 80px rgba(0, 242, 254, 0.8),
            0 0 120px rgba(138, 43, 226, 0.6);
        transform: translateX(0);
    }
}

@keyframes title-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: #0ff0fc;
    text-shadow:
        0 0 10px rgba(0, 242, 254, 0.8),
        0 0 20px rgba(0, 242, 254, 0.4);
    animation: subtitle-flicker 4s infinite;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

@keyframes subtitle-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    51% { opacity: 0.3; }
    52% { opacity: 1; }
}

.menu-button {
    background: linear-gradient(135deg, rgba(255, 45, 149, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #ff2d95, #0ff0fc) 1;
    color: #0ff0fc;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.8rem 1.8rem;
    margin: 0.6rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
    animation: button-idle 3s infinite;
}

@keyframes button-idle {
    0%, 100% {
        transform: scale(1);
        filter: hue-rotate(0deg);
    }
    50% {
        transform: scale(1.02);
        filter: hue-rotate(10deg);
    }
}

.menu-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.menu-button::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff2d95, #0ff0fc, #8a2be2);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-button:hover {
    background: linear-gradient(135deg, rgba(255, 45, 149, 0.4) 0%, rgba(0, 242, 254, 0.4) 100%);
    color: #ffffff;
    transform: scale(1.08) translateY(-5px);
    box-shadow:
        0 10px 30px rgba(255, 45, 149, 0.5),
        0 0 40px rgba(0, 242, 254, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 1);
    animation: button-hover-glitch 0.5s infinite;
}

@keyframes button-hover-glitch {
    0%, 100% { transform: scale(1.08) translateY(-5px); }
    25% { transform: scale(1.08) translateY(-5px) translateX(-2px); }
    50% { transform: scale(1.08) translateY(-5px) translateX(2px); }
    75% { transform: scale(1.08) translateY(-5px) translateX(-1px); }
}

.menu-button:hover::before {
    left: 100%;
}

.menu-button:hover::after {
    opacity: 1;
}

.menu-button:active {
    transform: scale(1.02) translateY(-2px);
    transition: all 0.1s ease;
}

#game-over, #level-complete {
    background: linear-gradient(135deg, rgba(1, 0, 12, 0.95) 0%, rgba(3, 0, 26, 0.98) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 45, 149, 0.3);
    box-shadow:
        0 0 50px rgba(255, 45, 149, 0.3),
        inset 0 0 30px rgba(0, 242, 254, 0.1);
}

#game-over .title, #level-complete .title {
    font-size: 3rem;
    background: linear-gradient(135deg, #ff2d95 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 45, 149, 0.8);
    animation: game-over-glitch 2s infinite;
}

@keyframes game-over-glitch {
    0%, 100% {
        text-shadow: 0 0 40px rgba(255, 45, 149, 0.8);
        filter: hue-rotate(0deg);
    }
    25% {
        text-shadow: 0 0 60px rgba(255, 45, 149, 1);
        filter: hue-rotate(90deg);
    }
    50% {
        text-shadow: 0 0 80px rgba(138, 43, 226, 1);
        filter: hue-rotate(180deg);
    }
    75% {
        text-shadow: 0 0 60px rgba(255, 45, 149, 1);
        filter: hue-rotate(270deg);
    }
}

#loading-screen {
    background: linear-gradient(135deg, #01000c 0%, #03001a 50%, #020111 100%);
}

.loading-bar {
    background: linear-gradient(90deg,
        #ff2d95 0%,
        #ff4d95 25%,
        #0ff0fc 50%,
        #8a2be2 75%,
        #ff2d95 100%);
    box-shadow:
        0 0 20px rgba(255, 45, 149, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    animation: loading-bar-glow 2s infinite;
}

@keyframes loading-bar-glow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(255, 45, 149, 0.8),
            inset 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 40px rgba(255, 45, 149, 1),
            0 0 60px rgba(0, 242, 254, 0.8),
            inset 0 0 15px rgba(255, 255, 255, 0.3);
    }
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #0ff0fc, #ff2d95, #8a2be2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
    animation: loading-text-pulse 3s infinite;
}

@keyframes loading-text-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

#version-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--neon-green);
    border-radius: 4px;
    padding: 10px 15px;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    color: var(--neon-green);
    text-shadow:
        0 0 5px var(--neon-green),
        0 0 10px var(--neon-green);
    box-shadow:
        0 0 15px rgba(0, 255, 102, 0.4),
        inset 0 0 10px rgba(0, 255, 102, 0.1);
    animation: version-pulse 4s infinite;
    backdrop-filter: blur(5px);
}

.version-text {
    display: block;
    margin: 2px 0;
    letter-spacing: 1px;
}

.ip-display {
    font-size: 9px;
    opacity: 0.8;
}

@keyframes version-pulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-1px);
    }
}

#version-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 102, 0.1) 50%, transparent 100%);
    animation: console-scanline 2s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes console-scanline {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

#version-info::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.1"/></svg>');
    animation: static-noise 0.5s infinite;
    pointer-events: none;
}

@keyframes static-noise {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.1; }
    51% { opacity: 0; }
    52% { opacity: 0.15; }
}

#weapon-selection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #01000c 0%, #03001a 50%, #020111 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 250;
}

.weapon-menu-container {
    text-align: center;
    max-width: 800px;
    width: 90%;
}

.weapon-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ff2d95 0%, #0ff0fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 45, 149, 0.8);
    margin-bottom: 1rem;
    animation: title-glitch 3s infinite;
}

.weapon-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #0ff0fc;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
    margin-bottom: 2rem;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.weapon-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.weapon-card:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--neon-pink);
    box-shadow:
        0 10px 30px rgba(255, 45, 149, 0.5),
        0 0 40px rgba(0, 242, 254, 0.4);
}

.weapon-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.weapon-card:hover::before {
    left: 100%;
}

.weapon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.weapon-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    margin-bottom: 0.5rem;
}

.weapon-card p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.weapon-stats {
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

/* Estilos para el escudo del jugador */
.shield-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.3) 0%, transparent 70%);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green);
    animation: shield-pulse 1s infinite;
    pointer-events: none;
}

@keyframes shield-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Animación para el daño al escudo */
.shield-damage {
    animation: shield-damage 0.3s ease-out;
}

@keyframes shield-damage {
    0% {
        border-color: var(--neon-red);
        box-shadow: 0 0 30px var(--neon-red);
    }
    100% {
        border-color: var(--neon-green);
        box-shadow: 0 0 20px var(--neon-green);
    }
}

.difficulty-selector {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.difficulty-label {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
    letter-spacing: 1px;
}

.difficulty-button {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    margin: 0.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.difficulty-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.difficulty-button:hover {
    background: rgba(255, 45, 149, 0.2);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--neon-pink);
}

.difficulty-button:hover::before {
    left: 100%;
}

.difficulty-button.active {
    background: linear-gradient(135deg, rgba(255, 45, 149, 0.4) 0%, rgba(0, 242, 254, 0.4) 100%);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green);
    animation: difficulty-active 2s infinite;
}

@keyframes difficulty-active {
    0%, 100% {
        box-shadow: 0 0 20px var(--neon-green);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px var(--neon-green), 0 0 40px var(--neon-green);
        transform: scale(1.02);
    }
}

.difficulty-button[data-difficulty="zombies"] {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.difficulty-button[data-difficulty="blackops"] {
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
}

.difficulty-button[data-difficulty="extreme"] {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.difficulty-button[data-difficulty="extreme"].active {
    background: linear-gradient(135deg, rgba(255, 45, 149, 0.6) 0%, rgba(138, 43, 226, 0.6) 100%);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 25px var(--neon-pink);
    animation: extreme-pulse 1.5s infinite;
}

@keyframes extreme-pulse {
    0%, 100% {
        box-shadow: 0 0 25px var(--neon-pink);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px var(--neon-pink), 0 0 60px var(--neon-purple);
        transform: scale(1.03);
    }
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .menu-button {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
        margin: 0.5rem;
    }

    .difficulty-button {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .menu-button {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        margin: 0.4rem;
    }

    .difficulty-selector {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .difficulty-button {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        min-width: 80px;
    }
}