/* Identical composition for menu entry, online entry and VS preparation. */
#startupLoading.match-loading-screen,#game-loading.match-loading-screen,#onlineEntryCover.match-loading-screen,#vsLoading.match-loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;background:#000;color:#fff}
.match-loading-screen .vs-loading-brand{display:flex;flex-direction:column;align-items:center;gap:14px}
.match-loading-screen .fbs-loading-logo{display:block;width:62px;height:73px;flex:none}
.match-loading-screen:not([data-fonts-ready=true]) :is(.vs-loading-brand,.entry-loading-text,#vsLoadingText){visibility:hidden}

.match-loading-progress{width:min(280px,60vw);margin:26px auto 0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.match-loading-shot{display:block;width:100%;height:auto;overflow:visible}
.match-loading-cue{animation:match-cue-approach 5.62s ease-out both;transform:translateX(0)}
#startupLoading .entry-loading-text,#game-loading .entry-loading-text,#onlineEntryCover .entry-loading-text,#vsLoadingText{box-sizing:border-box;width:100%;padding:0;text-align:center;margin:0;color:#fff;font:400 13px Barlow,Arial,sans-serif;letter-spacing:.08em;animation:match-loading-pulse 1.8s ease-in-out infinite alternate}
@keyframes match-loading-pulse{from{opacity:1}to{opacity:.5}}
@keyframes match-cue-approach{0%{transform:translateX(0)}29%{transform:translateX(182px)}100%{transform:translateX(196px)}}
@media(max-height:360px){.match-loading-progress{width:min(230px,60vw);margin-top:18px;gap:4px}}
@media(prefers-reduced-motion:reduce){.match-loading-cue,#startupLoading .entry-loading-text,#game-loading .entry-loading-text,#onlineEntryCover .entry-loading-text,#vsLoadingText{animation:none}.match-loading-cue{transform:translateX(170px);will-change:auto}}

/* The menu loader advances once, then the white cue ball expands on contact. */
#game-loading .match-loading-cue{animation:none;transform:translateX(var(--cue-travel,0px))}
.match-loading-shot circle{transform-box:fill-box;transform-origin:center}
.match-loading-screen[data-stage=impact] .match-loading-cue{animation:none;transform:translateX(202px)}
.match-loading-screen[data-stage=impact] .match-loading-shot circle{animation:match-ball-impact .17s ease-out both}
@keyframes match-ball-impact{from{transform:scale(1);opacity:1}to{transform:scale(3.4);opacity:0}}
@media(prefers-reduced-motion:reduce){.match-loading-screen[data-stage=impact] .match-loading-shot circle{animation:none}}

#startupLoading{position:fixed;inset:0;z-index:5000}
