/* Tela de carregamento (independente, para usar em qualquer página). Escondida por tela.js ao fim do carregamento. */
/* Carregamento */
#carregando { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center; gap: 1.2rem; background: #1d150d; color: #fbf6ea; transition: opacity .5s ease, visibility .5s; animation: carregando-sumir .01s 8s forwards; }
#carregando.pronto { opacity: 0; visibility: hidden; }
#carregando b { font: italic 400 clamp(2.4rem, 8vw, 4rem)/1 'Instrument Serif', Georgia, serif; letter-spacing: .06em; }
#carregando i { position: relative; display: block; width: min(60vw, 220px); height: 3px; background: rgba(251, 246, 234, .18); overflow: hidden; }
#carregando i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, #2f6bff, #ff5a1f); animation: carregando-barra 1.3s ease-in-out infinite; }
@keyframes carregando-barra { 0% { translate: -100% 0; } 100% { translate: 260% 0; } }
@keyframes carregando-sumir { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { #carregando i::after { animation: none; width: 100%; } #carregando { transition: none; } }
