.magic-card {
    /* width: 100vw; */
    height: calc(100vh - 90px);
    background: #151e2c;
    border-radius: 0 !important;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.title-section {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.title-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 10px #00000080;
}

.title-section h2 span {
    color: #ffcf8a;
    font-weight: 700;
    display: inline-block;
    animation: softGlow 3s infinite alternate;
}

@keyframes softGlow {
    0% {
        text-shadow: 0 0 5px #ffa726;
    }

    100% {
        text-shadow: 0 0 25px #ffbb4a;
    }
}

.title-section p {
    color: #b0c4e0;
    font-size: 1.3rem;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.comparison-slider {
    margin-top: 20px;
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    cursor: none;
    user-select: none;
}

.comparison-slider img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.image-left,
.image-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-left {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.image-right {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, #ffd700, #ffa500);
    transform: translateX(-50%);
    border-radius: 10px;
    z-index: 25;
    pointer-events: none;
}

.handle-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75px;
    height: 75px;
    background: radial-gradient(circle at 30% 30%, #fff3d1, #c68a2c);
    border-radius: 50% !important;
    transform: translate(-50%, -50%) rotate(var(--wand-rotation));
    border: 3px solid #ffffff;
    z-index: 30;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.handle-knob img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50% !important;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.comparison-slider.dragging .handle-knob {
    transform: translate(-50%, -50%) scale(1.2) rotate(calc(var(--wand-rotation) + 10deg));
}

.magic-wand-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.magic-sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffd700, #ffa500, transparent);
    border-radius: 50% !important;
    pointer-events: none;
    z-index: 100;
    animation: sparkleFade 0.8s ease-out forwards;
    filter: blur(1px);
}

@keyframes sparkleFade {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }

    50% {
        opacity: 0.8;
        transform: scale(2) rotate(180deg);
    }

    100% {
        opacity: 0;
        transform: scale(3) rotate(360deg);
    }
}

.magic-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.magic-trail {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6), transparent 70%);
    border-radius: 50% !important;
    pointer-events: none;
    filter: blur(5px);
    animation: trailFade 0.8s ease-out forwards;
}

@keyframes trailFade {
    0% {
        opacity: 0.8;
        transform: scale(0.5);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.5);
    }

    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.info-note {
    margin-top: 15px;
    margin-bottom: 0;
    color: #ffdba5;
    font-size: 1.2rem;
    text-align: center;
    background: #1a2332;
    padding: 10px 20px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.magic-emoji {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px #ffaa33);
    animation: emojiFloat 2s infinite alternate;
}

@keyframes emojiFloat {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }
}

@media (max-width: 700px) {
    .magic-card {
        padding: 10px;
    }

    .title-section h2 {
        font-size: 1.4rem;
    }

    .title-section p {
        font-size: 1rem;
    }

    .handle-knob {
        width: 55px;
        height: 55px;
    }

    .info-note {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .magic-emoji {
        font-size: 1.4rem;
    }
}