/* Motion: splash, page transitions, moving backgrounds and tap effects. Loaded on every page. */
.lmfx-wipe { position: fixed; inset: 0; z-index: 2147483500; display: grid; place-items: center; background: var(--c, #17c268); clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); animation: lmfx-wipe .42s cubic-bezier(.7, 0, .2, 1) both; pointer-events: none; }
@keyframes lmfx-wipe { to { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); } }
.lmfx-wipe svg { width: 64px; height: auto; animation: lmfx-fade .3s linear both .12s; }

/* First-visit splash: the ridge draws itself, the town lights come on, then the brand. */
.lmfx-splash { position: fixed; inset: 0; z-index: 2147483600; display: grid; place-items: center; overflow: hidden; background: #23272e; color: #fff; cursor: pointer; transition: transform .7s cubic-bezier(.76, 0, .24, 1); }
.lmfx-splash.is-out { transform: translateY(-100%); pointer-events: none; }
.lmfx-splash__land { position: absolute; left: 0; right: 0; bottom: 0; height: 46vh; }
.lmfx-splash__ridge { position: absolute; left: 0; top: 0; width: 100%; height: 62%; overflow: visible; }
.lmfx-splash__ridge path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; animation: lmfx-line 1.7s cubic-bezier(.6, 0, .2, 1) both; }
.lmfx-splash__ridge .r1 { stroke: #17c268; stroke-width: 3; }
.lmfx-splash__ridge .r2 { stroke: #fff; stroke-width: 1.5; opacity: .28; animation-delay: .25s; }
@keyframes lmfx-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.lmfx-splash__lights { position: absolute; left: 0; right: 0; top: 62%; bottom: 0; }
.lmfx-splash__lights i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: 0; animation: lmfx-light .6s ease-out both; }
.lmfx-splash__lights i:nth-child(3n) { background: #17c268; }
.lmfx-splash__lights i:nth-child(3n+1) { background: #fc7220; }
.lmfx-splash__lights i:nth-child(5n) { background: #f25c9a; }
.lmfx-splash__lights i:nth-child(7n) { background: #1f7ae0; }
@keyframes lmfx-light { to { opacity: .8; } }
.lmfx-splash__mid { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; padding: 16px 16px 16vh; text-align: center; }
.lmfx-splash__bag { width: clamp(70px, 11vmin, 104px); height: auto; animation: lmfx-up .7s cubic-bezier(.2, .9, .3, 1) both .55s; }
.lmfx-eye { transform-box: fill-box; transform-origin: center; animation: lmfx-wink .5s ease both 1.7s; }
@keyframes lmfx-wink { 50% { transform: scaleY(.1); } }
@keyframes lmfx-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes lmfx-fade { from { opacity: 0; } }
.lmfx-splash__brand { margin: 0; font: 600 clamp(13px, 2vmin, 16px)/1.2 "Poppins", system-ui, sans-serif; letter-spacing: .02em; color: #17c268; animation: lmfx-up .6s ease both .95s; }
.lmfx-splash__t { margin: 0; font: 800 clamp(30px, 6.4vmin, 60px)/1.04 "Poppins", system-ui, sans-serif; letter-spacing: -.035em; color: #fff; animation: lmfx-up .7s cubic-bezier(.2, .9, .3, 1) both 1.1s; }
.lmfx-splash__skip { position: absolute; right: 14px; top: calc(14px + var(--lm-bar, 0px)); z-index: 3; min-height: 40px; padding: 7px 16px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 999px; background: transparent; color: #fff; font: 600 14px/1 "Poppins", system-ui, sans-serif; cursor: pointer; }

/* Moving background */
.lmfx-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lmfx-bg i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.lmfx-bg i:nth-child(1) { width: 62vmax; height: 62vmax; left: -22vmax; top: -24vmax; background: radial-gradient(circle, color-mix(in srgb, var(--hub, #17c268) 34%, transparent), transparent 66%); animation: lmfx-a 21s ease-in-out infinite alternate; }
.lmfx-bg i:nth-child(2) { width: 54vmax; height: 54vmax; right: -20vmax; top: 6vh; background: radial-gradient(circle, rgba(96, 41, 204, .17), transparent 66%); animation: lmfx-b 27s ease-in-out infinite alternate; }
.lmfx-bg i:nth-child(3) { width: 50vmax; height: 50vmax; left: 10vw; bottom: -24vmax; background: radial-gradient(circle, rgba(252, 114, 32, .17), transparent 66%); animation: lmfx-c 24s ease-in-out infinite alternate; }
.lmfx-bg i:nth-child(4) { width: 36vmax; height: 36vmax; right: 8vw; bottom: 2vh; background: radial-gradient(circle, rgba(242, 92, 154, .17), transparent 66%); animation: lmfx-a 31s ease-in-out infinite alternate-reverse; }
.lmfx-bg b { position: absolute; display: block; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--hub, #17c268) 28%, transparent); will-change: transform; animation: lmfx-float var(--t, 18s) ease-in-out infinite alternate; }
@keyframes lmfx-a { to { transform: translate(16vw, 14vh) scale(1.2); } }
@keyframes lmfx-b { to { transform: translate(-18vw, 20vh) scale(.85); } }
@keyframes lmfx-c { to { transform: translate(14vw, -18vh) scale(1.15); } }
@keyframes lmfx-float { to { transform: translate(var(--x, 30px), var(--y, -90px)) rotate(40deg) scale(1.15); } }

/* WordPress bar for admin logins: let it grow, and keep the app below it */
#wpadminbar { height: auto !important; }
.admin-bar .lm-rail { top: var(--lm-bar, 0px); height: calc(100dvh - var(--lm-bar, 0px)); }

/* Tap ripple */
.lmfx-ink { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); pointer-events: none; animation: lmfx-ink .55s ease-out forwards; }
@keyframes lmfx-ink { to { transform: scale(1); opacity: 0; } }

/* Confetti */
.lmfx-confetti { position: fixed; inset: 0; z-index: 99995; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
	html.lm-arriving::after, html.lm-first::after, .lmfx-bg, .lmfx-wipe, .lmfx-splash, .lmfx-ink, .lmfx-confetti { display: none !important; }
}
