/* ============================================
   AimTap - Features Styles
   ============================================ */

.screen-shake {
    animation: screenShake 0.12s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes screenShake {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-3px, 1px) rotate(-0.5deg); }
    50% { transform: translate(3px, -1px) rotate(0.5deg); }
    75% { transform: translate(-1px, 2px) rotate(0.3deg); }
    100% { transform: translate(0, 0) rotate(0); }
}

.hit-flash {
    animation: hitFlashScreen 0.08s ease-out;
}

@keyframes hitFlashScreen {
    0% { background-color: rgba(255, 255, 255, 0); }
    50% { background-color: rgba(255, 255, 255, 0.2); }
    100% { background-color: rgba(255, 255, 255, 0); }
}

.hit-marker {
    position: fixed;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
}

.hit-marker::before,
.hit-marker::after {
    content: '';
    position: absolute;
    background: white;
    box-shadow: 0 0 5px #00D4FF;
}

.hit-marker::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.hit-marker::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
}

.hit-marker.animate {
    animation: hitMarkerPop 0.25s ease-out forwards;
}

@keyframes hitMarkerPop {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

.combat-text {
    position: fixed;
    font-weight: bold;
    font-size: 24px;
    font-family: monospace;
    pointer-events: none;
    z-index: 1001;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    white-space: nowrap;
    animation: combatTextFloat 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

.combat-text.crit {
    color: #F59E0B;
    font-size: 32px;
    text-shadow: 0 0 10px #F59E0B;
}

@keyframes combatTextFloat {
    0% { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(0.8); }
    50% { transform: translate(-50%, -50%) translateY(-30px) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -50%) translateY(-60px) scale(0.9); }
}

.crosshair-dot {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4" fill="none" stroke="%2300D4FF" stroke-width="2"/><circle cx="12" cy="12" r="2" fill="%2300D4FF"/></svg>') 12 12, crosshair !important;
}

.crosshair-cross {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><line x1="2" y1="12" x2="10" y2="12" stroke="%2300D4FF" stroke-width="2"/><line x1="14" y1="12" x2="22" y2="12" stroke="%2300D4FF" stroke-width="2"/><line x1="12" y1="2" x2="12" y2="10" stroke="%2300D4FF" stroke-width="2"/><line x1="12" y1="14" x2="12" y2="22" stroke="%2300D4FF" stroke-width="2"/></svg>') 12 12, crosshair !important;
}

.crosshair-neon-ring {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="12" fill="none" stroke="%2300D4FF" stroke-width="2"/><circle cx="16" cy="16" r="4" fill="%2300D4FF" opacity="0.8"/><circle cx="16" cy="16" r="16" fill="none" stroke="%2300D4FF" stroke-width="1" opacity="0.4" stroke-dasharray="4 4"/></svg>') 16 16, crosshair !important;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px var(--accent-glow); }
    50% { box-shadow: 0 0 25px var(--accent-glow); }
    100% { box-shadow: 0 0 5px var(--accent-glow); }
}

.theme-chroma,
.theme-rainbow,
.theme-aurora {
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
}

.background-particles {
    position: relative;
    overflow: hidden;
}

.background-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 40%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulseGlow 2s ease infinite;
    pointer-events: none;
}

@media (max-width: 768px) {
    .combat-text {
        font-size: 18px;
    }
    .combat-text.crit {
        font-size: 24px;
    }
}

/* MISS анимации */
@keyframes missFlash {
    0% {
        background-color: rgba(239, 68, 68, 0.6);
    }
    100% {
        background-color: rgba(239, 68, 68, 0);
    }
}

@keyframes hitMarkerPop {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
}