/* Volante do cofre (js/volante.js): carregamento entre telas e indicador pequeno de sincronizar/salvar/conferir */
.volante { display: block; overflow: visible; }
.volante .vol-giro { transform-origin: 50px 50px; transform-box: view-box; }
.volante .vol-pinos line { transition: transform 0.42s cubic-bezier(0.55, 0, 0.25, 1); }
.volante.recolhido .vol-pinos line { transform: translate(var(--dx), var(--dy)); }
.volante.sem-transicao .vol-pinos line { transition: none; }

.vol-camada {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none;
  background: rgba(6, 12, 26, 0.42); opacity: 0; transition: opacity 0.28s ease;
}
.vol-camada.ve { opacity: 1; }
.vol-grande { width: 104px; height: 104px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45)); }
@media (max-width: 900px) { .vol-grande { width: 88px; height: 88px; } }

.vol-mini { display: inline-flex; align-items: center; gap: 0.45rem; vertical-align: middle; }
.vol-mini .volante { flex: none; }
.vol-mini .vol-giro { animation: vol-gira 1.2s linear infinite; }
@keyframes vol-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .vol-mini .vol-giro { animation-duration: 4s; }
  .vol-camada { transition: none; }
}

/* troca de telas (Volante.troca): ritmo curto, pinos recolhem em 0,18 s e a camada some em 0,16 s */
.volante.rapido .vol-pinos line { transition-duration: 0.18s; }
.vol-camada:has(.rapido) { transition-duration: 0.16s; }
/* tela nova monta por trás, oculta; a antiga fica por cima como "fantasma" com os valores mascarados */
#tela.tela-oculta { opacity: 0; }
#tela.tela-entra { animation: tela-entra 0.16s ease-out; }
@keyframes tela-entra { from { opacity: 0; } to { opacity: 1; } }
.tela-fantasma { position: fixed !important; z-index: 80; pointer-events: none !important; overflow: hidden !important; margin: 0 !important; }
@media (prefers-reduced-motion: reduce) { #tela.tela-entra { animation: none; } }
