/* Tela de abertura do sistema: a marca, uma frase e uma barra que corre enquanto a sessão carrega. */
.boot { min-height: 62vh; display: grid; place-items: center; }
.boot-in { display: grid; justify-items: center; gap: var(--space-2); text-align: center; animation: boot-in .4s ease-out both; }
.boot-mark { width: 84px; height: 84px; margin-bottom: var(--space-4); }
.boot-mark .logo-core { transform-box: fill-box; transform-origin: center; animation: boot-pulse 1.6s ease-in-out infinite; }
.boot-title { font-size: var(--text-xl); font-weight: var(--weight-bold); letter-spacing: -0.015em; }
.boot-sub { color: var(--muted); font-size: var(--text-sm); }
.boot-bar { position: relative; width: 160px; height: 4px; margin-top: var(--space-4); overflow: hidden; border-radius: 2px; background: var(--bg-2); }
.boot-bar i { position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--accent); border-radius: 2px; animation: boot-run 1.2s ease-in-out infinite; }

@keyframes boot-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes boot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.82); } }
@keyframes boot-run { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Sem movimento: a barra fica parada e cheia. */
@media (prefers-reduced-motion: reduce) {
  .boot-bar i { width: 100%; }
}

/* Espera dentro do sistema: a barra avança até o tempo limite; passado ele, vira aviso com saída. */
.wait { position: fixed; inset: 0 0 auto 0; z-index: 60; display: grid; justify-items: center; gap: var(--space-2); pointer-events: none; }
.wait[hidden] { display: none; }
.wait-bar { width: 100%; height: 4px; background: var(--bg-2); }
.wait-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; animation: wait-run var(--wait-limit, 10s) cubic-bezier(.1, .8, .3, 1) both; }
.wait-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3); max-width: calc(100% - 2 * var(--space-4)); margin: 0; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); background: var(--bg-2); color: var(--text); font-size: var(--text-sm); pointer-events: auto; }
.wait[data-stage="stuck"] .wait-bar i { animation: none; }

@keyframes wait-run { from { transform: scaleX(.05); } to { transform: scaleX(.95); } }

@media (prefers-reduced-motion: reduce) {
  .wait-bar i { animation: none; }
}
