

.card-hand-container {
    display: flex;
    justify-content: center;
    margin-top: 10rem;
    margin-bottom: 2rem;
    width: 100%;
}

.card-hand {
    position: relative;
    width: 150px;
    height: 200px;
    perspective: 1000px;
}

.card {
    position: absolute;
    width: 120px;
    height: 170px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform-origin: bottom center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    z-index: 2;
}

.card img {
    width: 95%;
    height: 95%;
    object-fit: cover;
}

.card-1 {
    z-index: 4;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    transform: translateX(-60px) rotate(-15deg);
}

.card-2 {
    z-index: 3;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    transform: translateX(-20px) rotate(-5deg);
}

.card-3 {
    z-index: 2;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    transform: translateX(20px) rotate(5deg);
}

.card-4 {
    z-index: 1;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    transform: translateX(60px) rotate(15deg);
}

.fan-out .card-1 {
    transform: translateX(-90px) rotate(-30deg);
}

.fan-out .card-2 {
    transform: translateX(-30px) rotate(-10deg);
}

.fan-out .card-3 {
    transform: translateX(30px) rotate(10deg);
}

.fan-out .card-4 {
    transform: translateX(90px) rotate(30deg);
}

.progress-container {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 4px;
    animation: loading 4s ease-in-out infinite;
}

.loading-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.dots {
    display: inline-block;
    width: 20px;
    text-align: left;
}

.dot {
    opacity: 0;
    animation: dotAnimation 1.5s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.5s;
}

.dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes loading {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

@keyframes dotAnimation {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Hide preloader when loading is complete */
.loaded .preloader-container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.content {
    display: none;
}

.loaded .content {
    display: block;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
