/* Login-check splash. Local assets only (LIFF CSP): thom-wordmark.svg is an automatic trace of the THOM
   part of thom-logo.png, and PILATES STUDIO is live text, so both stay sharp at any pixel density.
   Replacing the artwork: swap thom-wordmark.svg and, if needed, --splash-mark-width and --splash-mark-shift. Timing lives in splash.js. */
.splash{--splash-ink:#000;--splash-mark-width:168px;
  /* The T's swash reaches far to the left, so the letters T–M sit right of the image's centre (by 4.76% of its width).
     Shifting the image left by that much centres the letters themselves, on the screen and over PILATES STUDIO; the pop
     animation scales about the letters' centre (50% + 4.76%) so they stay put while it plays. Browsers without the
     translate property simply show the unshifted image. */
  --splash-mark-shift:calc(var(--splash-mark-width)*-.0476);position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:var(--paper);
  transition:opacity .24s ease-out,visibility 0s linear .24s;
  /* Failsafe if the script never runs: reveal the login screen underneath, which carries the real status. */
  animation:splash-failsafe 0s linear 30s forwards}
.splash[hidden]{display:none}
.splash.is-leaving{opacity:0;visibility:hidden;pointer-events:none}
.splash-lockup{display:flex;flex-direction:column;align-items:center;gap:var(--space-3);margin-bottom:6vh}
.splash-mark{display:block;width:var(--splash-mark-width);height:auto;translate:var(--splash-mark-shift) 0;transform-origin:54.76% 50%;animation:splash-pop .42s cubic-bezier(.2,.8,.3,1) both}
/* Sized from the mark so the line keeps THOM's width; the negative margin re-centres the trailing tracking. */
.splash-sub{font:300 calc(var(--splash-mark-width)*.075)/1 "Helvetica Neue",Roboto,Arial,sans-serif;letter-spacing:.34em;margin-right:-.34em;color:var(--splash-ink);white-space:nowrap;
  animation:splash-sub-in .42s ease-out .38s both}
@keyframes splash-pop{0%{opacity:0;transform:scale(.72)}60%{opacity:1;transform:scale(1.06)}100%{opacity:1;transform:scale(1)}}
@keyframes splash-sub-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes splash-failsafe{to{visibility:hidden;pointer-events:none}}
@media (prefers-reduced-motion:reduce){
  .splash{transition:none}
  .splash-mark,.splash-sub{animation:none}
}
