html,body { margin:0; background:#463727; }
#boot-splash { position:fixed; inset:0; z-index:10000; overflow:hidden; background:#463727; color:#fff3d9; container-type:size; transition:opacity .3s; font:20px/1.35 Georgia,serif; }
.boot-scene { position:absolute; left:50%; top:50%; width:max(100cqw,177.683cqh); height:max(100cqh,56.28cqw); transform:translate(-50%,-50%); container-type:inline-size; }
.boot-art { position:absolute; inset:0; width:100%; height:100%; object-fit:fill; }
.boot-logo { position:absolute; left:36%; top:3%; width:44%; height:auto; }
.boot-status { position:absolute; left:24%; width:52%; bottom:5%; text-align:center; }
#boot-progress { position:relative; width:100%; aspect-ratio:8; background:url('./assets/preloader/track.webp') center/100% 100% no-repeat; }
.boot-track-inner { position:absolute; left:14%; right:14%; top:32%; height:44%; }
#boot-fill { position:absolute; inset:0 auto 0 0; width:2%; background:url('./assets/preloader/fill.webp') left center/100% 100% no-repeat; border-radius:30px 0 0 30px; transition:width .2s; }
#boot-brush { position:absolute; width:22%; max-width:none; height:240%; object-fit:contain; left:2%; top:-100%; transform:translateX(-25%); pointer-events:none; transition:left .2s; }
.boot-caption { display:flex; justify-content:center; align-items:baseline; gap:.55em; margin:2px 0 0; padding:0 8%; font-size:clamp(16px,1.65cqw,32px); text-shadow:0 2px 4px #1c100b,0 1px 2px #1c100b; }
#boot-label { margin:0; }
#boot-percent { white-space:nowrap; font-variant-numeric:tabular-nums; }
.boot-title { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#boot-retry { margin:12px auto; font:inherit; background:#f3e7cc; color:#4c382a; border:1px solid #b38b52; border-radius:8px; padding:8px 20px; cursor:pointer; }
#boot-splash.boot-finished { opacity:0; pointer-events:none; }
@media (max-aspect-ratio: 4/5) {
 .boot-scene { width:max(100cqw,56.28cqh); height:max(100cqh,177.683cqw); }
 .boot-logo { left:7%; top:5%; width:86%; }
 .boot-status { left:6%; width:88%; bottom:5%; }
 .boot-caption { font-size:clamp(15px,4cqw,24px); padding:0 5%; }
}
@media (prefers-reduced-motion:reduce) { #boot-splash,#boot-fill,#boot-brush { transition:none; } }
