/* =====================================================================
   BATALHA PARTY — Rodada 51: faixas de aviso em tempo real (js/ui/live-notify.js; docs/ROUND51-TEMPO-REAL-CARTEIRA-EMAIL.md).
   Ficam DENTRO do palco (#stage, escalado junto) logo abaixo da barra do topo, por cima de telas, janelas e modais:
   depósito confirmado / saque pago / estorno / comissão / e-mail novo. Palco fixo 1280x720 escalado: sem media queries.
   ===================================================================== */
#notices {
  position: absolute; left: 0; right: 0; top: 78px; height: 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.ntf {
  pointer-events: auto; position: relative; flex: none; display: flex; align-items: center; gap: 14px; width: 580px; min-height: 80px;
  padding: 8px 14px 8px 10px; border-radius: 20px; cursor: pointer; color: #fff; overflow: hidden;
  border: 3px solid #16102b; box-shadow: 0 6px 0 rgba(0, 0, 0, .35), 0 12px 26px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .35);
  opacity: 0; transform: translateY(-26px) scale(.9);
  transition: transform .3s cubic-bezier(.2, 1.5, .4, 1), opacity .2s;
}
.ntf.in { opacity: 1; transform: none; }
/* revisão r51: faixa sem botão (carteira) não segura toques — some sozinha e o que está embaixo continua clicável */
.ntf.passive { pointer-events: none; }
.ntf.out { opacity: 0; transform: translateY(-18px) scale(.95); transition: transform .28s ease-in, opacity .25s; }
/* brilho passando uma vez quando a faixa entra */
.ntf::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 65%);
  background-size: 260% 100%; background-position: 160% 0; animation: ntf-shine 1.1s .25s ease-out 1 both;
}
@keyframes ntf-shine { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.ntf.tone-green { background: linear-gradient(#66e481 0%, #2fb24c 58%, #22963c 100%); }
.ntf.tone-blue { background: linear-gradient(#86c9ff 0%, #3f8ff0 58%, #2c6fd0 100%); }
.ntf.tone-teal { background: linear-gradient(#78ece2 0%, #22b8c8 58%, #1793a8 100%); }
.ntf.tone-orange { background: linear-gradient(#ffc777 0%, #ff9a1f 58%, #e07a00 100%); }
.ntf.tone-gold { background: linear-gradient(#fff38a 0%, #ffd23c 45%, #ffaa22 100%); color: #4a2400; }
.ntf.tone-red { background: linear-gradient(#ff9a8c 0%, #e8453c 58%, #c42e26 100%); }

.ntf-ico {
  flex: none; width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #eef3ff 70%, #d8e2f5 100%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 3px 0 rgba(0, 0, 0, .28);
  animation: ntf-pop .5s .15s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes ntf-pop { from { transform: scale(.3) rotate(-25deg); } to { transform: none; } }
.ntf-ico .ico { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .2)); }
.ntf-txt { flex: 1 1 auto; min-width: 0; }
.ntf-t {
  font-size: 25px; font-weight: 900; line-height: 1.12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  -webkit-text-stroke: 1.3px rgba(0, 0, 0, .55); paint-order: stroke fill; text-shadow: 0 2px 0 rgba(0, 0, 0, .45);
}
.ntf-s {
  margin-top: 3px; font-size: 16px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}
.ntf.tone-gold .ntf-t { -webkit-text-stroke: 0; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.ntf.tone-gold .ntf-s { text-shadow: none; }

/* valor à direita: +N / −N com o ícone da moeda (de onde os diamantes saem / para onde voltam) */
.ntf-amt { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ntf-amt-i {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px 0 6px; border-radius: 999px;
  background: rgba(10, 6, 30, .32); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25);
  font-size: 26px; font-weight: 900; color: #fff; white-space: nowrap;
}
.ntf-amt-i b { -webkit-text-stroke: 1.3px rgba(0, 0, 0, .55); paint-order: stroke fill; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.ntf-amt.out .ntf-amt-i b { color: #ffe3dd; }
.ntf.tone-gold .ntf-amt-i { background: rgba(120, 60, 0, .22); }

/* revisão r51: posição por tela — no lobby abaixo da fileira de eventos (não cobre o botão E-mail nem os toasts); na
   loja/inventário embaixo (em cima ficam as abas de categoria, como os toasts); nas outras, com faixa na tela os toasts
   descem; na partida nunca */
body[data-ui-screen="lobby"] #notices { top: 162px; }
body[data-ui-screen="shop"] #notices, body[data-ui-screen="inventory"] #notices { top: auto; bottom: 96px; flex-direction: column-reverse; }
body:not([data-ui-screen="lobby"]):not([data-ui-screen="shop"]):not([data-ui-screen="inventory"]) #stage:has(#notices .ntf) #toasts { padding-top: 178px; }
body.in-game #notices { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ntf, .ntf.in, .ntf.out { transform: none; transition: opacity .2s; }
  .ntf::after, .ntf-ico { animation: none; }
}

/* botão (e-mail: "Abrir") */
.ntf-btn {
  flex: none; height: 52px; padding: 0 24px; border: 0; border-radius: 14px; cursor: pointer; font-family: inherit;
  font-size: 21px; font-weight: 900; color: #3a1d00; background: linear-gradient(#ffd24a, #ff9c1a);
  box-shadow: 0 4px 0 #a05a00, 0 6px 8px rgba(0, 0, 0, .22); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); transition: transform .06s;
}
.ntf-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a05a00; }
