/* تأثير الدخول المستقبلي - نافذة منزلقة مع لهيب */
@keyframes slideFromLeft {
    0% { transform: translateX(-400px); opacity: 0; }
    10% { transform: translateX(0); opacity: 1; }
    90% { transform: translateX(calc(100vw - 100px)); opacity: 1; }
    100% { transform: translateX(calc(100vw + 100px)); opacity: 0; }
}

@keyframes fireGlow {
    0%, 100% { 
        box-shadow: 
            0 0 5px #ff4500,
            0 0 10px #ff4500,
            0 0 20px #ff6600,
            0 0 30px #ff8800,
            0 0 40px #ffaa00,
            inset 0 0 10px rgba(255,100,0,0.3);
    }
    25% { 
        box-shadow: 
            0 0 10px #ff6600,
            0 0 20px #ff4500,
            0 0 30px #ff8800,
            0 0 50px #ffcc00,
            0 0 60px #ff4500,
            inset 0 0 15px rgba(255,150,0,0.4);
    }
    50% { 
        box-shadow: 
            0 0 8px #ff8800,
            0 0 15px #ff6600,
            0 0 25px #ff4500,
            0 0 35px #ffaa00,
            0 0 45px #ff6600,
            inset 0 0 12px rgba(255,120,0,0.35);
    }
    75% { 
        box-shadow: 
            0 0 12px #ffaa00,
            0 0 22px #ff8800,
            0 0 35px #ff6600,
            0 0 45px #ff4500,
            0 0 55px #ffcc00,
            inset 0 0 18px rgba(255,180,0,0.45);
    }
}

@keyframes flameFlicker {
    0%, 100% { opacity: 1; transform: scaleY(1) scaleX(1); }
    25% { opacity: 0.9; transform: scaleY(1.1) scaleX(0.95); }
    50% { opacity: 1; transform: scaleY(0.95) scaleX(1.05); }
    75% { opacity: 0.95; transform: scaleY(1.05) scaleX(0.98); }
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,100,0,0.7); }
    50% { box-shadow: 0 0 0 10px rgba(255,100,0,0); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes crownBounce {
    0%, 100% { transform: scale(1) rotate(-10deg); }
    50% { transform: scale(1.3) rotate(10deg); }
}

@keyframes fireParticle {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-30px) scale(0); opacity: 0; }
}
@keyframes borderRotate {
    0% { border-color: #ff4500; box-shadow: 0 0 10px #ff4500, 0 0 20px #ff4500; }
    25% { border-color: #ff8c00; box-shadow: 0 0 10px #ff8c00, 0 0 20px #ff8c00; }
    50% { border-color: #ffd700; box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700; }
    75% { border-color: #ff4500; box-shadow: 0 0 10px #ff4500, 0 0 20px #ff4500; }
    100% { border-color: #ff4500; box-shadow: 0 0 10px #ff4500, 0 0 20px #ff4500; }
}
#enterking {
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: auto !important;
    z-index: 2147483647 !important;
    border: none !important;
    background: transparent !important;
    pointer-events: none;
    animation: moveAcross 6s linear forwards;
}

@keyframes moveAcross {
    0% { transform: translateX(-100%); }
    10% { transform: translateX(10px); }
    90% { transform: translateX(calc(100vw - 250px)); }
    100% { transform: translateX(100vw); }
}

.king-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: linear-gradient(135deg, rgba(30, 10, 0, 0.95) 0%, rgba(50, 20, 0, 0.95) 100%);
    border-radius: 50px;
    border: 3px solid #ff6600;
    animation: borderRotate 2s linear infinite;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: visible;
}

.king-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,150,0,0.2), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

.king-crown {
    font-size: 20px;
    animation: crownBounce 0.8s ease-in-out infinite;
    filter: drop-shadow(0 0 8px gold) drop-shadow(0 0 15px orange);
}

.king-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff8800;
    animation: avatarPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255,100,0,0.8);
}

.king-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.king-name {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px #ff6600, 0 0 20px #ff4500;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.king-title {
    font-size: 9px;
    color: #ffaa00;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 5px #ff6600;
}

.king-flag {
    width: 22px;
    height: 15px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255,150,0,0.5);
    margin-left: 8px;
    border: 1px solid #ff8800;
}

.king-particles { display: none !important; }
.king-overlay { display: none !important; }
