.screen-transition {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    pointer-events: none;
    overflow: hidden;
}
.screen-transition.is-visible { pointer-events: auto; }
.transition-wing {
    position: absolute;
    top: -8%;
    bottom: -8%;
    width: calc(50% + 10vh + 10px);
    box-sizing: border-box;
    transform-origin: center;
    border: 5px solid #321a0d;
    background: repeating-linear-gradient(155deg, transparent 0 56px, #ffffff13 57px 60px, transparent 61px 120px),
        linear-gradient(130deg, #85e3fc, #27b8e8 52%, #137da9);
    box-shadow: inset 0 0 0 5px #b3edff, 0 0 0 5px #f6b54a;
    transition: transform .42s cubic-bezier(.65, 0, .25, 1);
}
.transition-wing-left { right: 50%; transform: translateX(-110%) skewX(-7deg); }
.transition-wing-right { left: 50%; transform: translateX(110%) skewX(-7deg); }
.is-visible .transition-wing { transform: translateX(0) skewX(-7deg); }
.transition-seal {
    position: absolute;
    left: 50%;
    top: 50%;
    box-sizing: border-box;
    margin: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    width: clamp(140px, 24vw, 230px);
    aspect-ratio: 1;
    border: 4px solid #321a0d;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #fff1b0, #ffc04e 60%, #ef8d24);
    box-shadow: inset 0 0 0 5px #ffe8a5, 0 6px 0 #6b341a;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.8) rotate(-9deg);
    transition: opacity .18s ease, transform .34s ease;
}
.is-visible .transition-seal { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); transition-delay: .18s; }
.screen-transition img {
    width: 92%;
    height: auto;
    filter: drop-shadow(0 4px 2px #321a0d75);
}
