/* QuickMart brand splash — 2026-12-02
   A short, self-dismissing intro: dark navy field, logo mark, wordmark, load line. */
#qm-splash{
  position:fixed;inset:0;z-index:10050;display:grid;place-items:center;
  background:radial-gradient(125% 85% at 50% 8%,#182652 0%,#0d1430 48%,#060912 100%);
  color:#fff;font-family:Sora,Cairo,sans-serif;
  opacity:1;transition:opacity .42s ease,transform .6s cubic-bezier(.4,0,.2,1);
  will-change:opacity,transform;overflow:hidden;
}
#qm-splash.qms-out{opacity:0;transform:scale(1.07);pointer-events:none;}
#qm-splash .qms-glow{
  position:absolute;width:min(78vw,420px);aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle,rgba(242,100,90,.28) 0%,rgba(247,166,90,.10) 45%,transparent 70%);
  filter:blur(6px);opacity:0;animation:qms-glow 2.4s cubic-bezier(.3,0,.2,1) both;
}
#qm-splash .qms-inner{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;}
#qm-splash .qms-mark{
  width:96px;height:96px;border-radius:26px;overflow:hidden;
  box-shadow:0 26px 60px -22px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.07);
  opacity:0;transform:scale(.62);animation:qms-mark 1s cubic-bezier(.16,1,.3,1) .12s both;
}
#qm-splash .qms-mark img{display:block;width:100%;height:100%;}
#qm-splash .qms-word{
  margin-top:1.15rem;font-size:1.72rem;font-weight:700;letter-spacing:.22em;
  text-transform:none;color:#fff;opacity:0;transform:translateY(9px);
  animation:qms-word .85s cubic-bezier(.16,1,.3,1) .55s both;
}
#qm-splash .qms-word span{color:#F7A65A;}
#qm-splash .qms-ar{
  margin-top:.45rem;font-family:Cairo,Sora,sans-serif;font-size:.86rem;font-weight:600;
  color:rgba(255,255,255,.55);letter-spacing:.06em;opacity:0;
  animation:qms-fade .8s ease .78s both;
}
#qm-splash .qms-bar{
  margin-top:1.75rem;width:118px;height:3px;border-radius:999px;
  background:rgba(255,255,255,.13);overflow:hidden;opacity:0;
  animation:qms-fade .5s ease .92s both;
}
#qm-splash .qms-bar i{
  display:block;height:100%;width:100%;border-radius:999px;
  background:linear-gradient(90deg,#F2645A,#F7A65A);
  transform:scaleX(0);transform-origin:0 50%;
  animation:qms-load 1.5s cubic-bezier(.3,.7,.2,1) 1s both;
}
#qm-splash .qms-skip{
  position:absolute;bottom:max(28px,env(safe-area-inset-bottom));left:0;right:0;margin:auto;
  width:max-content;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.75);border-radius:999px;padding:.55rem 1.15rem;
  font:600 .78rem Cairo,Sora,sans-serif;cursor:pointer;opacity:0;
  animation:qms-fade .5s ease 1.1s both;min-height:40px;
}
@keyframes qms-mark{0%{opacity:0;transform:scale(.62)}62%{opacity:1;transform:scale(1.04)}100%{opacity:1;transform:scale(1)}}
@keyframes qms-word{0%{opacity:0;transform:translateY(9px);letter-spacing:.34em}100%{opacity:1;transform:none;letter-spacing:.12em}}
@keyframes qms-fade{from{opacity:0}to{opacity:1}}
@keyframes qms-load{0%{transform:scaleX(0)}70%{transform:scaleX(.82)}100%{transform:scaleX(1)}}
@keyframes qms-glow{0%{opacity:0;transform:scale(.7)}55%{opacity:1;transform:scale(1.04)}100%{opacity:.72;transform:scale(1)}}
/* deterministic freeze for storyboard capture: ?splash=frame&t=0.9 */
#qm-splash.qms-freeze *{animation-play-state:paused !important;animation-delay:calc(-1 * var(--qms-freeze,0s)) !important;}
#qm-splash.qms-freeze .qms-skip{opacity:1;}
@media (prefers-reduced-motion:reduce){
  #qm-splash .qms-glow,#qm-splash .qms-mark,#qm-splash .qms-word,#qm-splash .qms-ar,#qm-splash .qms-bar,#qm-splash .qms-bar i{animation:none !important;opacity:1 !important;transform:none !important;}
  #qm-splash .qms-bar i{transform:scaleX(1) !important;}
}

/* v2: stroke-by-stroke logo draw-on, then fill + glow */
#qm-splash .qms-mark{opacity:1 !important;transform:none !important;animation:qms-pop .5s ease .05s both !important;box-shadow:none;overflow:visible;border-radius:0}
@keyframes qms-pop{from{opacity:0}to{opacity:1}}
#qm-splash .qms-logo{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 22px 40px rgba(0,0,0,.7))}
#qm-splash .qms-tile{stroke:rgba(255,255,255,.08);stroke-width:.6}
#qm-splash .qd{stroke-dasharray:1;stroke-dashoffset:1;animation:qms-draw .55s cubic-bezier(.5,0,.2,1) both}
#qm-splash .d1{animation-delay:.25s}#qm-splash .d2{animation-delay:.36s}#qm-splash .d3{animation-delay:.47s}
#qm-splash .d4{animation-delay:.55s;animation-duration:.45s}
#qm-splash .d5{animation-delay:.75s;animation-duration:.75s}
#qm-splash .d6{animation-delay:1.35s;animation-duration:.3s}#qm-splash .d7{animation-delay:1.45s;animation-duration:.3s}
@keyframes qms-draw{to{stroke-dashoffset:0}}
#qm-splash .qfill{fill:rgba(242,100,90,0);animation:qms-draw .75s cubic-bezier(.5,0,.2,1) .75s both,qms-fillin .5s ease 1.55s forwards}
@keyframes qms-fillin{to{fill:rgba(242,100,90,.9)}}
#qm-splash .qms-logo{animation:qms-glowpulse .7s ease 1.6s both}
@keyframes qms-glowpulse{0%{filter:drop-shadow(0 22px 40px rgba(0,0,0,.7))}50%{filter:drop-shadow(0 0 26px rgba(242,100,90,.85))}100%{filter:drop-shadow(0 0 14px rgba(242,100,90,.45))}}
#qm-splash .qms-word{animation-delay:1.25s !important}
#qm-splash .qms-ar{animation-delay:1.5s !important}
#qm-splash .qms-bar{animation-delay:1.6s !important}
#qm-splash .qms-bar i{animation-delay:1.65s !important;animation-duration:.9s !important}
#qm-splash .qms-skip{animation-delay:.6s !important}
@media (prefers-reduced-motion:reduce){#qm-splash .qd{animation:none;stroke-dashoffset:0}#qm-splash .qfill{animation:none;fill:rgba(242,100,90,.9)}}
