/* Abertura: estilos do primeiro quadro, carregados antes dos estilos e fontes do app.
   Arquivo próprio (e não <style> embutido) porque a CSP só permite estilos do próprio site.
   Cores espelham os tokens de shared/styles.css (:root); alterar os dois juntos.
   O app remove a abertura ao montar (frontend/src/lib/boot.ts). */
html { background: #f5f1e7; }
.boot {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: #f5f1e7; color: #121210;
  transition: opacity 280ms ease, visibility 0s linear 280ms;
  /* Segurança: se o JavaScript falhar, a abertura sai sozinha e o conteúdo aparece. */
  animation: boot-timeout 0s linear 10s forwards;
}
.boot--done { opacity: 0; visibility: hidden; }
.boot__mark, .boot__line { opacity: 0; animation: boot-in 360ms ease 160ms forwards; }
.boot__mark {
  margin: 0; font: 400 clamp(56px, 12vw, 104px)/1 Anton, 'Arial Narrow', Impact, sans-serif;
  letter-spacing: 0.01em;
}
.boot__mark span { color: #b41518; }
.boot__line {
  position: relative; overflow: hidden;
  width: clamp(120px, 24vw, 200px); height: 3px; background: #d8d2c6;
}
.boot__line::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; background: #b41518;
  animation: boot-run 1100ms cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes boot-in { to { opacity: 1; } }
@keyframes boot-run { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes boot-timeout { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .boot__mark, .boot__line { animation: none; opacity: 1; }
  .boot__line::after { animation: none; width: 100%; opacity: .5; }
}
