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

:root {
    --primary-cyan: #06b6d4;
    --primary-blue: #2563eb;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --accent-yellow: #eab308;
    --dark-bg: #0b0f19;
}

body {
    font-family: 'Rajdhani', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.font-tech {
    font-family: 'Orbitron', monospace;
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(13, 20, 36, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(6, 182, 212, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(6, 182, 212, 0.1);
}

.glass-panel-danger {
    background: rgba(36, 13, 13, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 8px 32px 0 rgba(239, 68, 68, 0.2);
}

.neon-border {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.neon-border-red {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

/* Overheat Pulsing Animation */
@keyframes overheatPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
        background-color: #ef4444;
    }
    50% {
        box-shadow: 0 0 25px rgba(239, 68, 68, 1);
        background-color: #b91c1c;
    }
}

.overheat-active {
    animation: overheatPulse 0.5s infinite;
}

/* Floating Damage Text */
.floating-damage {
    position: absolute;
    font-family: 'Orbitron', monospace;
    font-weight: 800;
    pointer-events: none;
    animation: floatUp 0.8s ease-out forwards;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
    z-index: 40;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-25px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

/* Cooldown sweep overlay */
.cooldown-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: inherit;
    transition: height 0.1s linear;
}

/* Scanline Overlay for Cyber Retro Aesthetic */
.scanlines {
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    ), linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.03),
        rgba(0, 255, 0, 0.01),
        rgba(0, 0, 255, 0.03)
    );
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

/* Mobile Virtual Joystick styling */
#joystick-zone {
    touch-action: none;
}

.joystick-base {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.15);
    border: 2px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    pointer-events: none;
    transform: translate(-50%, -50%);
    display: none;
}

.joystick-knob {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, #22d3ee, #0891b2);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
    pointer-events: none;
    transform: translate(-50%, -50%);
    display: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(11, 15, 25, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.4);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.8);
}
