/* ============================================================
   LUMI LOADER — Középre igazított, mobilbarát verzió
   ============================================================ */

#lumi-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Lumi: A modern mobilok címsorát is figyelembe vesszük */
    height: 100dvh; 
    z-index: 99999;
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Lumi: Kőkemény középre igazítás */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    
    /* Lumi: Animáció az eltűnéshez */
    animation: lumiLoaderFadeOut 0.5s ease-in-out 1.5s forwards;
}

.lumi-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    animation: loaderZoomIn 0.6s cubic-bezier(.2,.9,.3,1.2) forwards;
    /* Lumi: Mobilon is fix szélesség, hogy ne csússzon el */
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.lumi-loader-icon {
    font-size: 64px;
    filter: drop-shadow(0 0 30px rgba(94, 184, 255, 0.8));
    animation: lumiFloat 2s ease-in-out infinite;
}

.lumi-loader-text {
    font-family: 'Caveat', cursive;
    font-size: 32px;
    color: #f5c56b;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(245, 197, 107, 0.4);
    opacity: 0;
    animation: textFadeIn 0.6s ease-out 0.3s forwards;
}

.lumi-loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

.lumi-loader-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 50%;
    background: linear-gradient(90deg, transparent, #5eb8ff, #f5c56b, transparent);
    animation: loaderSlide 1.5s cubic-bezier(.2,.9,.3,1.2) infinite;
}

/* ============================================================
   KULCSKOCKÁK
   ============================================================ */

@keyframes lumiLoaderFadeOut {
    0% { opacity: 1; visibility: visible; pointer-events: all; }
    99% { opacity: 0; visibility: hidden; pointer-events: none; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; display: none; }
}

@keyframes loaderZoomIn {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes textFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes lumiFloat {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-15px) scale(1.1) rotate(8deg); }
}

@keyframes loaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}