/* Schermata di avvio dell'app e schermata d'attesa durante la ricerca */

/* schermata di avvio dell'app (vedi .app-start), stile Pulito: bianco, il logo al centro e una
   riga rossa sottile che si riempie */
.splash { display: none; }
html.app-start .splash { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; gap: 16px;
  background: #FFFFFF; color: #121216; transition: opacity .35s ease; }
.splash.out { opacity: 0; pointer-events: none; }
.splash-img { width: auto; height: 160px; animation: splash-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.splash-name { font-family: 'Saira', system-ui, sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -0.035em; animation: splash-up .6s .35s both; }
.splash-track { position: absolute; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; width: 96px; margin-left: -48px; height: 3px;
  border-radius: 2px; background: #F3F3F6; overflow: hidden; }
.splash-track i { display: block; height: 100%; background: #E5383B; animation: splash-load 1.8s .4s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes splash-in { from { opacity: 0; transform: scale(.85); } }
@keyframes splash-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes splash-load { from { width: 0; } to { width: 100%; } }

/* attesa: motore monocilindrico in una card sopra lo sfondo oscurato */
.engine {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  background: #1E1E21;  /* pieno, dello stesso grigio della card: niente sfumato sotto */
  color: #fff; text-align: center;
}
.engine-card {
  background: #1E1E21;
  padding: 28px 24px; border-radius: 24px; max-width: 340px; width: 100%;
}
.engine svg { display: block; width: 130px; height: auto; margin: 0 auto; }
.engine-msg { margin: 16px 0 0; min-height: 1.2em; font-family: var(--cond); font-size: 22px; font-weight: 700; transition: opacity .3s; }
.engine-sub { margin: 6px 0 0; font-size: 13.5px; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
