.card.dismissing {
    will-change: transform, opacity;
    z-index: 1000 !important;
    pointer-events: none;
}.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    color: white;
}

@media screen and (max-aspect-ratio: 1/1) {
    .mobilehidden {
        display: none !important;
    }

    #swiper {
        width: 60svw !important;
        height: auto !important;
        max-height: 60svh !important;
        aspect-ratio: 2 / 3 !important;
    }
    
    .controls-container {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        width: 100%;
    }
    
    #mobile-like, 
    #mobile-dislike {
        font-size: 8vh;
        width: 12vh;
        height: 12vh;
        margin: 0 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        position: relative;
        z-index: 1;
        transition: transform 0.2s ease, box-shadow 0.3s ease;
        cursor: pointer;
        animation: pulse 3s infinite ease-in-out;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
    
    #mobile-like {
        color: #61de99;
        background: rgba(97, 222, 153, 0.15);
    }
    
    #mobile-dislike {
        color: #f96a53;
        background: rgba(249, 106, 83, 0.15);
    }
    
    #mobile-like:active,
    #mobile-dislike:active {
        transform: scale(0.95);
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.7);
    }
    
    #mobile-like.clicked,
    #mobile-dislike.clicked {
        transform: scale(1.3) rotate(5deg);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    
    #mobile-like.swipe-anim,
    #mobile-dislike.swipe-anim {
        animation: explode 0.6s ease-in-out forwards;
    }
}

#swiper {
    height: 60svh;
    aspect-ratio: 2 / 3;  
    perspective: 1000px;
    perspective-origin: center 50%;
    transform-style: preserve-3d;
    position: relative;
}

.controls-container {
    display: none;
}

.card {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 20px;
    transform: translateZ(calc(-30px * var(--i))) translateY(calc(-20px * var(--i))) rotate(calc(-4deg * var(--i)));
    filter: drop-shadow(2px 2px 20px rgba(0, 0, 0, 0.5));
    cursor: pointer;
    user-select: none;
    transition: transform 0.5s;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.8s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    backface-visibility: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.card .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.card .gradient-overlay .title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.card .gradient-overlay .description {
    font-size: 1rem;
}

.card.fading-out {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
}

.card.swipe-like {
    box-shadow: 0 0 30px #61de99;
    filter: hue-rotate(-30deg);
}

.card.swipe-dislike {
    box-shadow: 0 0 30px #f96a53;
    filter: hue-rotate(30deg);
}

#like,
#dislike {
    margin: 5vw;
    font-size: 12vh;
    width: 16vh;
    height: 16vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    animation: pulse 3s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#like {
    color: #61de99;
    background: rgba(97, 222, 153, 0.15);
}

#dislike {
    color: #f96a53;
    background: rgba(249, 106, 83, 0.15);
}

#like:hover,
#dislike:hover {
    transform: scale(1.15) rotate(2deg);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.4);
}

#like:active,
#dislike:active {
    transform: scale(0.95);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.7);
}

#like.clicked,
#dislike.clicked {
    transform: scale(1.3) rotate(5deg);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    }
}

@keyframes animation1 {
    0%,
    100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

@keyframes animation2 {
    0%,
    100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.8) rotate(20deg);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

#like.swipe-anim,
#dislike.swipe-anim {
    animation: explode 0.6s ease-in-out forwards;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
    animation: pop 0.6s ease-out forwards;
}

@keyframes pop {
    to {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}