/* Shared by the Next shell and the existing YourLegacy static pages. */
.ylt-loading{position:fixed;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9998;display:grid;place-items:center;width:min(460px,calc(100vw - 40px));padding:0;background:transparent;border:0;box-shadow:none;color:#14213b;font-family:Inter,Arial,sans-serif;text-align:center;pointer-events:none}
.ylt-loading__content{width:min(100%,460px)}
.ylt-loading picture{display:block;margin:0 auto 12px;width:clamp(150px,36vw,250px)}
.ylt-loading img{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 0 22px #42bdfa25)}
.ylt-loading__headline{margin:0 0 12px;font-size:clamp(20px,4.8vw,28px);font-weight:600;line-height:1.3;letter-spacing:-.025em}
.ylt-loading__message{margin:0 auto;max-width:370px;color:#495970;font-size:clamp(14px,3.7vw,16px);line-height:1.65}
.ylt-loading__status{display:inline-block;margin-top:25px;color:#08788c;font-size:12px;letter-spacing:.06em}
/* The standalone YourLegacy card, NFC funnel and private hub have dark body backgrounds. */
body:has(link[href^="/brand-loading.css"]) .ylt-loading{color:#f5f7ff}
body:has(link[href^="/brand-loading.css"]) .ylt-loading__message{color:#c0ccdf}
body:has(link[href^="/brand-loading.css"]) .ylt-loading__status{color:#7dd9ef}
/* Never strand a visitor if hydration or an unrelated script fails. */
.ylt-loading--initial{animation:ylt-loading-release 0s 6s forwards}
.ylt-loading--initial:has(~ main .ylt-loading){display:none}
@keyframes ylt-loading-release{to{visibility:hidden;opacity:0}}
/* Avoid overlapping letters with half-rendered forms; preserve the page's own background. */
@media(scripting:enabled){
body:has(.ylt-loading--initial):not(:has(#main-content .ylt-loading)) #main-content,
body.ylt-entry-pending>:not(.ylt-loading){visibility:hidden;animation:ylt-content-release 0s 6s forwards}
}
@keyframes ylt-content-release{to{visibility:visible}}
@media(max-height:520px){.ylt-loading picture{width:110px}.ylt-loading__status{margin-top:12px}}
@media(scripting:none){.ylt-loading--initial{display:none}}
