/* WalletPress launch screen (assets/js/walletpress-preloader.js).
 *
 * A stylesheet rather than a <style> the script injects, so the page's
 * Content-Security-Policy can refuse inline styles altogether. Linked right
 * before the preloader script, so it is in place for the first paint.
 *
 * The colours and the type ramp are kept in step with app.css by hand, because
 * this paints before app.css has loaded.
 */
#wp-preloader {--wp-bg:#F7F6F3; --wp-ink:#1D1C1A; --wp-brand:#264F8B; --wp-brand-dark:#173C70; --wp-brand-mid:#5A81BC; --wp-green:#137738; --wp-track:#E6E3DD}
@supports (color: oklch(0.5 0.1 250)) {#wp-preloader {--wp-brand:oklch(0.43 0.11 258); --wp-brand-dark:oklch(0.36 0.10 258); --wp-brand-mid:oklch(0.60 0.10 258); --wp-green:oklch(0.50 0.13 150)}
}
#wp-preloader {position:fixed; inset:0; z-index:2147483000; background:var(--wp-bg); display:grid; place-items:center; padding:24px 16px; transition:opacity .5s cubic-bezier(.22,1,.36,1),visibility .5s}
#wp-preloader.wp-done {opacity:0; visibility:hidden}
/* The mark sits dead centre, the same place and size as the icon on Android's
 * launch screen, so the handover is seamless. The wordmark and bar hang below
 * it without pulling it off centre. */
#wp-preloader .wp-in {position:relative}
#wp-preloader .wp-under {position:absolute; top:100%; left:50%; transform:translateX(-50%); margin-top:18px; display:flex; flex-direction:column; align-items:center; gap:18px}
#wp-preloader svg {display:block; overflow:visible}
#wp-preloader .wp-fb {transform-box:fill-box}
/* Every keyframe starts and ends at rest, so the first frame matches the
 * static launch-screen icon exactly. */
#wp-preloader .wp-card {animation:wpCard 1s cubic-bezier(.22,1,.36,1) both}
#wp-preloader .wp-c1 {animation-delay:.05s}
#wp-preloader .wp-c2 {animation-delay:.15s}
#wp-preloader .wp-c3 {animation-delay:.25s}
#wp-preloader .wp-body {transform-origin:50% 100%; animation:wpBody .9s cubic-bezier(.22,1,.36,1) .55s both}
#wp-preloader .wp-clasp {transform-origin:50% 50%; animation:wpClasp .5s cubic-bezier(.22,1,.36,1) .95s both}
#wp-preloader .wp-word {white-space:nowrap; font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif; font-size:22px; font-weight:600; line-height:1.2; letter-spacing:-.01em; color:var(--wp-ink); animation:wpWord .7s cubic-bezier(.22,1,.36,1) .2s both}
#wp-preloader .wp-word span {color:var(--wp-green)}
#wp-preloader .wp-track {width:132px; height:3px; border-radius:3px; background:var(--wp-track); overflow:hidden}
#wp-preloader .wp-bar {height:100%; border-radius:3px; background:linear-gradient(90deg,var(--wp-brand),var(--wp-green)); transform-origin:0 50%; animation:wpBar 2.2s cubic-bezier(.65,0,.35,1) .2s both}
@keyframes wpCard {0%,100% {transform:none}
40% {transform:translateY(-5px)}
70% {transform:translateY(1px)}
}
@keyframes wpBody {0%,100% {transform:none}
30% {transform:scale(1.05,.93)}
60% {transform:scale(.98,1.03)}
}
@keyframes wpClasp {0%,100% {transform:scale(1)}
45% {transform:scale(1.6)}
}
@keyframes wpWord {from {opacity:0; transform:translateY(8px); filter:blur(4px)}
to {opacity:1; transform:none; filter:none}
}
@keyframes wpBar {from {transform:scaleX(0)}
to {transform:scaleX(1)}
}
@media (prefers-reduced-motion:reduce) {#wp-preloader * {animation-duration:.01s!important; animation-delay:0s!important}
}
