.kyf-loader-screen {
    position: fixed;
    inset: 0;
    background: #ffffff; /* Neutral modern grey */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kyf-loader-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.kyf-photo-wrapper {
    position: relative;
    /* Responsive sizing based on viewport */
    width: clamp(240px, 40vw, 340px);
    height: clamp(300px, 50vw, 420px);
    margin-bottom: 50px;
}

.kyf-card {
    position: absolute;
    inset: 0;
    background: #ffffff;
    padding: 10px 10px 40px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0;
    transform: scale(0.8) translateY(150px) rotate(15deg);
    transition: 
        transform 0.9s cubic-bezier(0.2, 1.4, 0.4, 1), 
        opacity 0.4s ease,
        filter 0.6s ease;
    will-change: transform, opacity;
}

.kyf-card.kyf-active {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(var(--kyf-rot));
}

.kyf-card.kyf-buried {
    filter: blur(1.5px) grayscale(0.6) brightness(0.9);
    transform: scale(0.96) translateY(-15px) rotate(var(--kyf-rot));
}

.kyf-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    pointer-events: none;
}

/* Final image transition */
.kyf-card.kyf-active:last-child img {
    filter: grayscale(0%);
    transition: filter 1.2s ease-in-out;
}

.kyf-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-family: sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #888;
}

.kyf-ui-footer {
    width: clamp(180px, 30vw, 240px);
}

.kyf-progress-track {
    height: 2px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

#kyf-progress-fill {
    height: 100%;
    width: 0%;
    background: #111;
    transition: width 0.4s cubic-bezier(0.1, 0.5, 0.5, 1);
}

.kyf-meta-info {
    display: flex;
    justify-content: space-between;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #555;
    font-weight: bold;
}