/* The opening of every Quasova game: the studio mark for a moment, then the game's own art with a loading bar and tips.
   The mark needs no script: it plays and leaves by itself while the game loads underneath, so it never holds a game back. */
#qgSplash { position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 42%, #171b2b, #07080e 72%); pointer-events: none; animation: qgLeave 0.35s ease 1.3s forwards; }
#qgSplash svg { width: min(24vmin, 132px); height: auto; animation: qgRise 0.75s cubic-bezier(0.2, 1.25, 0.35, 1) both; }
#qgSplash b { margin-top: 16px; padding-left: 0.42em; font: 700 clamp(12px, 2.6vmin, 17px)/1 "Segoe UI", system-ui, sans-serif; letter-spacing: 0.42em; color: #f5f3ee; animation: qgFade 0.5s ease 0.3s both; }
@keyframes qgLeave { to { opacity: 0; visibility: hidden; } }
@keyframes qgRise { from { opacity: 0; transform: scale(0.72); } to { opacity: 1; transform: scale(1); } }
@keyframes qgFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

#loading.qg-loading { display: block; padding: 0; background: #07080e; color: #fff; overflow: hidden; }
#loading.qg-loading .qg-art { position: absolute; inset: 0; background: url(../splash-wide.jpg) center / cover no-repeat; animation: qgDrift 9s ease-out both; }
#loading.qg-loading .qg-panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px max(18px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 8px; background: linear-gradient(to top, rgba(5, 6, 12, 0.92), rgba(5, 6, 12, 0.72) 60%, transparent); }
#loading.qg-loading .ldbar { width: min(420px, 78vw); height: 10px; margin: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.16); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5); }
#loading.qg-loading #ldFill { height: 100%; min-width: 8%; border-radius: 6px; background: linear-gradient(90deg, #ffc861, #ff6a2b); transition: width 0.5s ease; }
#loading.qg-loading .qg-status { font: 700 12px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
#loading.qg-loading .qg-tip { min-height: 1.4em; max-width: 640px; font: 500 clamp(13px, 2.2vmin, 15px)/1.4 "Segoe UI", system-ui, sans-serif; text-align: center; color: #fff; transition: opacity 0.25s; }
@keyframes qgDrift { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (max-aspect-ratio: 1/1) { #loading.qg-loading .qg-art { background-image: url(../splash-tall.jpg); } }
@media (prefers-reduced-motion: reduce) { #qgSplash svg, #qgSplash b, #loading.qg-loading .qg-art { animation: none; } }
