/* Boot overlay — admin (#admin-boot-screen) + site (#site-boot-screen) */
html.site-boot-pending,
body.admin-boot-pending {
  overflow: hidden;
}
html.site-boot-pending .tudo,
body.admin-boot-pending .admin {
  visibility: hidden;
}

.site-boot-screen {
  --boot-cor-principal: #2d8a4e;
  --boot-cor-fundo: #f47721;
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.site-boot-screen__inner {
  width: 180px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.site-boot-screen__icons {
  position: relative;
  width: 105px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-boot-dots {
  position: absolute;
  inset: 0;
}
.site-boot-dots__arm {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
.site-boot-dots__arm span {
  display: block;
  margin: 0 auto;
  width: 8px;
  height: 8px;
  background: var(--boot-cor-principal);
  border-radius: 50%;
  animation: site-boot-dot-fade 1.2s linear infinite;
}

.site-boot-screen__gavel {
  position: relative;
  z-index: 3;
  font-size: 43px;
  color: var(--boot-cor-fundo);
  transform-origin: 75% 80%;
  animation: site-boot-hammer 1.15s ease-in-out infinite;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.2));
}

.site-boot-screen__impact {
  position: absolute;
  z-index: 2;
  bottom: 17px;
  left: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--boot-cor-principal);
  opacity: 0;
  animation: site-boot-impact 1.15s ease-in-out infinite;
}

.site-boot-screen__spark {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--boot-cor-principal);
  opacity: 0;
  animation: site-boot-spark 1.15s ease-in-out infinite;
}

.site-boot-screen__text {
  margin-top: 35px;
  width: 100%;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.site-boot-screen__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--boot-cor-principal);
  letter-spacing: 0.2px;
  text-align: center;
}

.site-boot-screen__bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.site-boot-screen__bar-fill {
  position: absolute;
  top: 0;
  left: -50%;
  height: 100%;
  width: 50%;
  background: var(--boot-cor-principal);
  border-radius: 4px;
  animation: site-boot-bar 1.5s ease-in-out infinite;
}

html:not(.site-boot-pending) #site-boot-screen,
body:not(.admin-boot-pending) #admin-boot-screen {
  display: none !important;
}

@keyframes site-boot-hammer {
  0% { transform: rotate(0deg) scale(1); }
  18% { transform: rotate(-12deg) scale(1.02); }
  40% { transform: rotate(14deg) scale(1.05); }
  47% { transform: rotate(20deg) scale(0.96); }
  54% { transform: rotate(7deg) scale(1.02); }
  70%, 100% { transform: rotate(0deg) scale(1); }
}

@keyframes site-boot-impact {
  0%, 42% { opacity: 0; transform: scale(0.3); }
  48% { opacity: 0.9; transform: scale(1.4); }
  60%, 100% { opacity: 0; transform: scale(2.5); }
}

@keyframes site-boot-spark {
  0%, 40% { opacity: 0; transform: scale(0.3); }
  48% { opacity: 1; transform: scale(1.5); }
  60%, 100% { opacity: 0; transform: scale(2); }
}

@keyframes site-boot-dot-fade {
  0% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0.15; transform: scale(0.6); }
}

@keyframes site-boot-bar {
  0% { left: -50%; }
  100% { left: 100%; }
}
