.flight.in-space .hud-edges {
    inset: 0;
    opacity: 1;
    background:
        url("/art/swift-canopy.svg") center bottom / 100% 100% no-repeat,
        linear-gradient(#070c10, #82735d 35%, #363938 66%, #10181b) top / 100% 5px no-repeat,
        linear-gradient(#212624, #7d6c52 44%, #292b27 68%, #101513) bottom / 100% 5px no-repeat;
}

/* On a tall canopy the short forked castings stay attached to the sill. */
@media (orientation: portrait) {
    .flight.in-space .hud-edges {
        background-size: 100% min(85vw, 100%), 100% 5px, 100% 5px;
    }
}

#collision-alert:not([hidden]) {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(48px, 14vh, 108px) 12px 0;
    text-align: center;
    color: #fff1e9;
    animation: collision-glow 1.2s ease-in-out infinite alternate;
}
#collision-alert strong, #collision-alert bdi {
    max-width: 80%;
    background: #490e13ed;
    padding: 3px 10px;
    line-height: 1.25;
}
#collision-alert bdi { font-size: .85em; }
@keyframes collision-glow {
    from { box-shadow: inset 0 0 10px 2px #dc372c77; }
    to { box-shadow: inset 0 0 64px 8px #e6372cb0; }
}
@media (prefers-reduced-motion: reduce) {
    #collision-alert:not([hidden]) { animation: none; box-shadow: inset 0 0 24px 5px #dc372c99; }
}
