/* =========================================================
   Relaunch Plugin – Curtain Animation
   ========================================================= */

body.relaunch-active {
    overflow: hidden !important;
}

.relaunch-curtain-wrap {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    overflow: hidden;
    pointer-events: none;
}

.relaunch-curtain-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.18, 1),
                opacity   0.3s ease 1.5s;
}

.relaunch-curtain-left {
    left: 0;
    background-position: left top;
}

.relaunch-curtain-right {
    right: 0;
    background-position: right top;
}

/* Curtains slide open */
.relaunch-curtain-wrap.relaunch-curtain-open .relaunch-curtain-left {
    transform: translateX(-100%);
    opacity: 0;
}

.relaunch-curtain-wrap.relaunch-curtain-open .relaunch-curtain-right {
    transform: translateX(100%);
    opacity: 0;
}

/* Escape / skip: instant fade */
.relaunch-curtain-wrap.relaunch-curtain-skip .relaunch-curtain-half {
    transition: opacity 0.25s ease;
    opacity: 0;
}

.relaunch-intro-wrap {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    overflow: hidden;
    pointer-events: none;
    background: #000;
    transform: translateY(0);
    transition: transform 2s cubic-bezier(0.77, 0, 0.18, 1);
    will-change: transform;
}

.relaunch-intro-wrap.relaunch-intro-open {
    transform: translateY(-100%);
}

.relaunch-intro-logo {
    position: absolute !important;
    top: 40vh !important;
    left: 40vw !important;
    z-index: 2 !important;
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    height: 20vh !important;
    max-width: 40vw !important;
    object-fit: contain !important;
    opacity: 0.95 !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.relaunch-spotlight {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70vmax;
    height: 70vmax;
    margin-left: -35vmax;
    margin-top: -35vmax;
    border-radius: 50%;
    background: radial-gradient(circle,
    rgba(255, 255, 255, 1), 
    rgba(255, 255, 255, 1) 18%, 
    rgba(255, 255, 255, 0.03) 30%,
    rgba(0, 0, 0, 0) 62%);
    );
    filter: blur(1px);
    opacity: 0.85;
    animation: relaunch-spotlight-move 4.2s ease-in-out infinite;
}

.relaunch-spotlight.relaunch-spotlight-2 {
    width: 55vmax;
    height: 55vmax;
    margin-left: -27.5vmax;
    margin-top: -27.5vmax;
    opacity: 0.75;
    animation-duration: 5.3s;
    animation-delay: -1.2s;
}

.relaunch-spotlight.relaunch-spotlight-3 {
    width: 42vmax;
    height: 42vmax;
    margin-left: -21vmax;
    margin-top: -21vmax;
    opacity: 0.65;
    animation-duration: 6.1s;
    animation-delay: -2.2s;
}

@keyframes relaunch-spotlight-move {
    0%   { transform: translate(-18vw, -10vh) scale(0.95); }
    30%  { transform: translate( 14vw, -18vh) scale(1.05); }
    65%  { transform: translate( 18vw,  14vh) scale(0.98); }
    100% { transform: translate(-18vw, -10vh) scale(0.95); }
}

/* Stop spotlights: pause animation + fade out */
.relaunch-spotlights-stopped .relaunch-spotlight {
    animation-play-state: paused;
    opacity: 0;
    transition: opacity 0.4s ease;
}
