#letris-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8fafc; /* Lighter background than the original blue */
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}
#letris-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.loader-content {
    text-align: center;
}

/* TAPPING HAND STYLES */
.hand-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100px;
    margin-bottom: 20px;
}

.finger {
    position: relative;
    width: 24px;
    background-color: #1d4ed8; /* Brand Blue */
    border-radius: 20px;
    animation: tap 1.5s infinite ease-in-out;
}

.finger-1 { height: 60px; animation-delay: 0.0s; }
.finger-2 { height: 80px; animation-delay: 0.15s; }
.finger-3 { height: 90px; animation-delay: 0.3s; }
.finger-4 { height: 75px; animation-delay: 0.45s; }

.knuckle {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 2px;
    background-color: #f8fafc;
    box-shadow: 0 5px 0 #f8fafc;
}

.nail {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 16px;
    background-color: #f8fafc;
    border-radius: 5px 5px 14px 14px;
}

.thumb {
    position: absolute;
    bottom: 15px;
    right: -28px;
    width: 32px;
    height: 24px;
    background-color: #1d4ed8;
    border-radius: 0 20px 20px 0;
    z-index: -1;
    animation: thumb-tap 1.5s infinite ease-in-out;
    animation-delay: 0.6s;
}

@keyframes tap {
    0%, 40%, 100% { transform: translateY(0); }
    20% { transform: translateY(-15px); }
}

@keyframes thumb-tap {
    0%, 40%, 100% { transform: translateY(0) rotate(0deg); }
    20% { transform: translateY(-2px) rotate(-5deg); }
}

.loader-text {
    font-family: 'Poppins', sans-serif;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: loader-pulse 1.5s infinite;
}
@keyframes loader-pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}
