/* === Zona Mística — Barra flutuante de conta (sitewide, login/saldo) ===
   Paleta clara do proprio blog (fundo branco + turquesa #3BE3C2), diferente
   da paleta escura usada dentro dos cards de resultado dos jogos. */

#zm-account-bar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  font-family: 'Inter', sans-serif;
}
#zm-account-bar * { box-sizing: border-box; }

.zm-bar-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #3BE3C2;
  color: #0D9488;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(13,148,136,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
}
.zm-bar-toggle:hover { transform: scale(1.06); }
.zm-bar-toggle:active { transform: scale(.96); }

.zm-bar-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 240px;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
#zm-account-bar.zm-bar-open .zm-bar-panel,
#zm-account-bar:hover .zm-bar-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.zm-bar-greet   { margin: 0 0 6px; font-size: .85rem; color: #6B6B6B; }
.zm-bar-balance { margin: 0 0 14px; font-size: 1.15rem; font-weight: 700; color: #111111; }
.zm-bar-loading,
.zm-bar-error   { margin: 0; font-size: .85rem; color: #6B6B6B; text-align: center; }
.zm-bar-error   { color: #DC2626; }

.zm-bar-btn {
  display: block;
  text-align: center;
  padding: 10px 14px;
  border-radius: 9px;
  background: #3BE3C2;
  color: #0D9488 !important;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none !important;
  margin-bottom: 8px;
  transition: opacity .15s;
}
.zm-bar-btn:last-child { margin-bottom: 0; }
.zm-bar-btn:hover { opacity: .85; }
.zm-bar-btn-outline {
  background: transparent;
  border: 1px solid #3BE3C2;
  color: #0D9488 !important;
}

/* Em telas sem hover (touch), so o clique abre/fecha -- a regra :hover acima
   simplesmente nunca casa, sem precisar de feature-detect separado. */
@media (max-width: 480px) {
  #zm-account-bar { right: 14px; bottom: 14px; }
  .zm-bar-panel   { width: calc(100vw - 28px); right: -6px; }
}
