/* Motion polish on top of the approved design. Extends its tokens (--ease, --spring); adds the strong curves. */
:root{--ease-out:cubic-bezier(0.23,1,0.32,1);--ease-in-out:cubic-bezier(0.77,0,0.175,1)}

/* boot screen instead of a blank page while /api/bootstrap loads */
#boot{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:var(--bg,#F3F2EE);transition:opacity .26s var(--ease-out)}
#boot.gone{opacity:0;pointer-events:none}
#boot .lg{display:grid;justify-items:center;gap:16px}
#boot i{width:52px;height:52px;border-radius:16px;background:var(--y,#FBDD0B);display:grid;place-items:center;animation:bootPulse 1.1s var(--ease-in-out) infinite alternate}
#boot .bar{width:120px;height:3px;border-radius:3px;background:rgba(20,22,24,.08);overflow:hidden}
#boot .bar b{display:block;width:40%;height:100%;border-radius:3px;background:#141618;animation:bootBar 1.1s var(--ease-in-out) infinite}
@keyframes bootPulse{from{transform:scale(.94);opacity:.75}to{transform:none;opacity:1}}
@keyframes bootBar{from{transform:translateX(-100%)}to{transform:translateX(250%)}}

/* buttons: press feedback for everyone, lift only for a real mouse (touch fires false hovers) */
.btn{transition-property:transform,background-color,border-color,color,box-shadow,opacity;transition-timing-function:var(--ease-out)}
.btn:hover{transform:none}
.btn:active{transform:scale(.97);transition-duration:.1s}
@media (hover:hover) and (pointer:fine){.btn:hover{transform:translateY(-1px)}.btn:hover:active{transform:scale(.97)}}

/* modal: leaves the way it came in, faster than it entered */
.modal.out{animation:fade .16s var(--ease-out) reverse forwards;pointer-events:none}
.modal.out .mbox{animation:pop .16s var(--ease-out) reverse forwards}

/* toast: strong ease-out on its existing transform/opacity transition */
.toast{transition-timing-function:var(--ease-out)}

@media (prefers-reduced-motion:reduce){
  #boot i,#boot .bar b{animation:none}
  .btn:active,.btn:hover{transform:none}
}
