.ast-mascote {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  transform: translateX(calc(100% + 30px));
  opacity: 0;
  visibility: hidden;
}

.ast-mascote.ativo {
  visibility: visible;
  animation: ast-mascote-entrada 700ms cubic-bezier(.2,.8,.2,1) forwards;
}

.ast-mascote.saindo {
  visibility: visible;
  animation: ast-mascote-saida 520ms ease-in forwards;
}

.ast-mascote-balao {
  position: relative;
  width: min(350px, calc(100vw - 190px));
  margin-bottom: 48px;
  padding: 16px 42px 16px 18px;
  border: 1px solid rgba(255, 153, 0, .42);
  border-radius: 18px 18px 4px 18px;
  color: var(--text-primary, #f6f7fb);
  background: rgba(24, 28, 36, .96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .36), 0 0 0 1px rgba(255,255,255,.04) inset;
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.ast-mascote-titulo {
  display: block;
  margin-bottom: 5px;
  color: #ffad32;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.ast-mascote-texto {
  font-size: 15px;
  line-height: 1.45;
}

.ast-mascote-fechar {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: #aeb5c2;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ast-mascote-fechar:hover {
  color: #fff;
  background: rgba(255,255,255,.09);
}

.ast-mascote-img {
  width: 155px;
  height: auto;
  max-height: 245px;
  object-fit: contain;
  object-position: bottom;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,.35));
  pointer-events: none;
}

@keyframes ast-mascote-entrada {
  0% { transform: translateX(calc(100% + 30px)); opacity: 0; }
  72% { transform: translateX(-8px); opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes ast-mascote-saida {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(calc(100% + 30px)); opacity: 0; }
}

@media (max-width: 680px) {
  .ast-mascote { right: 8px; bottom: 8px; gap: 0; }
  .ast-mascote-img { width: 112px; max-height: 180px; }
  .ast-mascote-balao {
    width: min(280px, calc(100vw - 115px));
    margin-bottom: 35px;
    padding: 13px 34px 13px 14px;
  }
  .ast-mascote-texto { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .ast-mascote.ativo { animation-duration: 1ms; }
  .ast-mascote.saindo { animation-duration: 1ms; }
}
