/* ════════ 檐岚开屏动画 CSS ════════
   配色照着现在的“纸面”风格：米白纸底、灰色细线、淡芥末黄、一点珊瑚橘 */
#yl-splash{
  --paper:#f5f5f2; --ink:#6b6b66; --ink-l:#c9c8c1; --mustard:#d3b46c; --coral:#e2785c; --cat:#efdfb4;
  position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;
  padding:calc(24px + env(safe-area-inset-top,0px)) 16px calc(24px + env(safe-area-inset-bottom,0px));
  background:var(--paper);overflow:hidden;cursor:pointer;
  transition:opacity .5s ease,visibility .5s ease;-webkit-tap-highlight-color:transparent
}
#yl-splash.yl-out{opacity:0;visibility:hidden;pointer-events:none}

/* 岚：纸上淡淡飘过的雾 */
#yl-splash .yl-fog{position:absolute;border-radius:50%;filter:blur(30px);opacity:0;animation:yl-fog 3s ease-in-out forwards}
#yl-splash .yl-fog.f1{width:70vmax;height:22vmax;left:-30vmax;top:36%;background:#e9e7df;--o:.9}
#yl-splash .yl-fog.f2{width:56vmax;height:18vmax;right:-26vmax;top:50%;background:#efe6d2;--o:.6;animation-delay:.15s;animation-direction:reverse}
#yl-splash .yl-fog.f3{width:48vmax;height:14vmax;left:-20vmax;top:58%;background:#e3e9e0;--o:.5;animation-delay:.3s}
@keyframes yl-fog{0%{opacity:0;transform:translateX(0)}30%{opacity:var(--o)}100%{opacity:calc(var(--o) * .4);transform:translateX(22vmax)}}

#yl-splash .yl-scene{position:relative;width:min(78vw,340px);aspect-ratio:320/130}
#yl-splash svg{width:100%;height:100%;overflow:visible}

/* 檐：灰色细线，一笔画出来 */
#yl-splash .yl-eave{fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:420;stroke-dashoffset:420;animation:yl-draw 1s cubic-bezier(.55,.1,.3,1) .15s forwards}
#yl-splash .yl-eave.thin{stroke:var(--ink-l);stroke-width:1.2;animation-delay:.45s}
@keyframes yl-draw{to{stroke-dashoffset:0}}

/* 风铃 */
#yl-splash .yl-chime{transform-origin:262px 76px;opacity:0;animation:yl-in .3s ease .9s forwards,yl-sway 1.6s ease-in-out .9s 2}
#yl-splash .yl-chime line{stroke:var(--ink-l);stroke-width:1}
#yl-splash .yl-chime circle{fill:var(--coral)}
@keyframes yl-sway{0%,100%{transform:rotate(0)}30%{transform:rotate(9deg)}70%{transform:rotate(-6deg)}}

/* 猫猫探头 */
#yl-splash .yl-cat{transform:translateY(30px);animation:yl-peek .6s cubic-bezier(.3,1.4,.5,1) 1s forwards}
#yl-splash .yl-cat .body{fill:var(--cat);stroke:var(--ink);stroke-width:1.6;stroke-linejoin:round}
#yl-splash .yl-cat .eye{fill:var(--ink);transform-box:fill-box;transform-origin:center;animation:yl-blink .22s ease 1.9s 1}
#yl-splash .yl-cat .blush{fill:var(--coral);opacity:.35}
#yl-splash .yl-cat .mouth{fill:none;stroke:var(--ink);stroke-width:1.4;stroke-linecap:round}
@keyframes yl-peek{to{transform:translateY(0)}}
@keyframes yl-blink{50%{transform:scaleY(.1)}}

/* 星：芥末黄，像屋里那个月亮的颜色 */
#yl-splash .yl-star{fill:none;stroke:var(--mustard);stroke-width:1.6;stroke-linejoin:round;transform-box:fill-box;transform-origin:center;opacity:0;animation:yl-twinkle .9s ease 1.35s forwards}
@keyframes yl-twinkle{0%{opacity:0;transform:scale(.2) rotate(-40deg)}60%{opacity:1;transform:scale(1.2) rotate(8deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@keyframes yl-in{to{opacity:1}}

@media (prefers-reduced-motion: reduce){
  #yl-splash *{animation:none!important}
  #yl-splash .yl-eave{stroke-dashoffset:0}
  #yl-splash .yl-cat{transform:none}
  #yl-splash .yl-chime,#yl-splash .yl-star{opacity:1}
  #yl-splash .yl-fog{opacity:.4}
}

/* Integration only: keep the supplied scene and animation unchanged. */
#yl-splash [data-boot-status]{position:absolute;top:calc(50% + min(16vw,70px) + 12px);left:16px;right:16px;margin:0;text-align:center;font-size:12px;line-height:1.7;color:#747971;cursor:inherit}
#yl-splash:focus-visible{outline:1px dashed var(--ink);outline-offset:-12px}
#yl-splash ~ #app .boot-page [data-boot-status]{visibility:hidden}
/* Loading waits for the application, while the original wind chime keeps moving. */
#yl-splash{cursor:progress}
#yl-splash.yl-ready{cursor:pointer}
#yl-splash .yl-chime{animation:yl-in .3s ease .9s forwards,yl-sway 1.6s ease-in-out .9s infinite}
@media(prefers-reduced-motion:reduce){#yl-splash{transition:none}}
