/* =====================
   Page Transition Overlay
   ===================== */
.page-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform: translateY(0);
}
.page-overlay.is-entering {
    pointer-events: all;
    animation: overlay-slide-in 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.page-overlay.is-leaving {
    pointer-events: none;
    animation: overlay-slide-out 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes overlay-slide-in {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}
@keyframes overlay-slide-out {
    from { transform: translateY(0); }
    to   { transform: translateY(100%); }
}

.page-overlay__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0A293A 0%, #11151B 100%);
    overflow: hidden;
}
.page-overlay__bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.page-overlay__bubble--1 {
    width: 600px;
    height: 600px;
    right: -120px;
    top: -200px;
    background: radial-gradient(ellipse at 50% 50%, #D51A1A 0%, #5A0A1B 60%, transparent 100%);
    opacity: 0.6;
}
.page-overlay__bubble--2 {
    width: 400px;
    height: 400px;
    left: -80px;
    bottom: -100px;
    background: radial-gradient(ellipse at 50% 50%, #D51A1A 0%, #5A0A1B 70%, transparent 100%);
    opacity: 0.45;
}
.page-overlay__bubble--3 {
    width: 320px;
    height: 320px;
    left: 38%;
    top: 8%;
    background: radial-gradient(ellipse at 50% 50%, #D51A1A 0%, #5A0A1B 55%, transparent 100%);
    opacity: 0.3;
}
.page-overlay__bubble--4 {
    width: 260px;
    height: 260px;
    left: 20%;
    bottom: 10%;
    background: radial-gradient(ellipse at 50% 50%, #D51A1A 0%, #5A0A1B 60%, transparent 100%);
    opacity: 0.32;
}
.page-overlay__bubble--5 {
    width: 350px;
    height: 350px;
    right: 25%;
    bottom: -60px;
    background: radial-gradient(ellipse at 50% 50%, #D51A1A 0%, #5A0A1B 65%, transparent 100%);
    opacity: 0.28;
}

.page-overlay__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.page-overlay__logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.page-overlay__divider {
    width: 370px;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
}
.page-overlay__label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}
.page-overlay__sponsors {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.page-overlay__sponsor {
    width: 218px;
    height: 80px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.page-overlay__sponsor img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* =====================
   Overlay — Responsiveness
   ===================== */
@media (max-width: 768px) {
    .page-overlay__content {
        gap: 14px;
        padding: 0 16px;
        width: 100%;
    }
    .page-overlay__logo {
        height: 50px;
    }
    .page-overlay__divider {
        width: 80%;
        max-width: 320px;
    }
    .page-overlay__sponsors {
        gap: 10px;
    }
    .page-overlay__sponsor {
        width: 140px;
        height: 56px;
        border-radius: 8px;
    }
    .page-overlay__sponsor img {
        height: 40px;
    }
    .page-overlay__bubble--1 {
        width: 360px;
        height: 360px;
        right: -80px;
        top: -120px;
    }
    .page-overlay__bubble--2 {
        width: 260px;
        height: 260px;
        left: -60px;
        bottom: -60px;
    }
    .page-overlay__bubble--4 {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-overlay__sponsor {
        width: 110px;
        height: 48px;
    }
    .page-overlay__sponsor img {
        height: 32px;
    }
    .page-overlay__sponsors {
        gap: 8px;
    }
}
