/* Banner overlay & subtle grain */
.overlay:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 15, 0.65),
            rgba(10, 10, 15, 0.55) 30%,
            rgba(10, 10, 15, 0.85) 100%);
    pointer-events: none;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" viewBox="0 0 140 140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}

.card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    box-shadow: 0 0 20px rgba(255, 45, 149, 0.4), 0 0 40px rgba(255, 24, 76, 0.2);
}

/* Form states */
.input:focus {
    box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.35);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-bg {
    background: linear-gradient(-45deg,
            #050508,
            #0b0b12,
            #14141f,
            #1a0d13);
    background-size: 400% 400%;
    animation: gradientShift 60s ease infinite;
}

@keyframes slowPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 45, 149, 0.3);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 30px rgba(255, 45, 149, 0.6);
    }
}

.pulse-slow {
    animation: slowPulse 4s ease-in-out infinite;
}

.cookie-bar.hidden {
    display: none;
}

.cookie-bar {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 30px rgba(255, 45, 149, .15);
}

/* Modal */
.dl-modal.hidden {
    display: none;
}

.dl-modal .dl-backdrop {
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
}

.dl-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(800px, calc(100% - 2rem));
    transform: translate(-50%, -50%);
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(10, 10, 15, .9);
    box-shadow: 0 0 40px rgba(255, 45, 149, .15);
}

.dl-close {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .75rem;
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    background: transparent;
}

.dl-close:hover {
    background: rgba(255, 255, 255, .06);
}


.backdrop-blur-ultra {
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

#image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.rim-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* hidden by default, JS fades in */
}

.rim {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rim.glow {
    position: absolute;
    filter: drop-shadow(0 0 8px rgba(255, 230, 180, 0.5)) drop-shadow(0 0 16px rgba(255, 154, 60, 0.35));
    pointer-events: none;
}
