/* ============================================================
   GAME.CSS — Ninja Revolution / Naruto Players 2.0
   Shell compartilhado por todas as páginas do jogo:
   banner, topbar, navegação, barra de saldo, modal, footer.
   ============================================================ */

.np-body {
  background: var(--page-bg);
  padding-bottom: 40px;
}

/* ── BANNER TOPO ────────────────────────────────────────────── */
/* Removido a pedido — ficava acima do cabeçalho e não era necessário. */
.np-banner-topo { display: none; }

/* ── TOPBAR ─────────────────────────────────────────────────── */
.np-topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  box-sizing: border-box;
  padding: 0 24px;
  background: linear-gradient(180deg, var(--header-bg), var(--header-bg-dim));
  border-bottom: 1px solid var(--ink-line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}

/* Logo */
.np-logo { display: flex; align-items: center; flex-shrink: 0; }
.np-logo-img {
  height: 84px;
  width: auto;
  position: relative;
  z-index: 2;
  /* Maior e "cavalgando" a borda do cabeçalho — metade em cima (azul do
     topbar), metade embaixo (branco da barra de saldo). O translateY é
     sempre metade da altura do .np-topbar (64px), não muda com o
     tamanho da logo — é isso que mantém o centro dela na borda. */
  transform: translateY(32px);
}
.np-logo-txt { display: flex; flex-direction: column; line-height: 1; }
.np-logo-ninja {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 1px;
}
.np-logo-rev {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 700;
  color: var(--ember);
  letter-spacing: 3px;
}

/* Navegação — assinatura: lâmina (kunai) desliza sob o link ativo */
.np-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  /* overflow-x:auto força overflow-y a virar 'auto' também (regra do
     spec de overflow), então sem essa folga embaixo a kunai do link
     ativo era cortada pela própria caixa do menu. */
  padding-bottom: 20px;
  scrollbar-width: none;
}
.np-nav::-webkit-scrollbar { display: none; }
.np-nav-link {
  position: relative;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  white-space: nowrap;
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s ease;
}
.np-nav-link:hover { color: #fff; }
.np-nav-link.active { color: var(--chakra); }
.np-nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -15px;
  width: 34px; height: 34px;
  transform: translateX(-50%);
  background: url("../img/cabeçalho/kunai.png") no-repeat center / contain;
  filter: drop-shadow(0 0 4px var(--chakra-glow));
  pointer-events: none;
}

/* Links de nav com imagem (banners ilustrados no lugar do texto) */
.np-nav-link.np-nav-img {
  display: flex;
  align-items: center;
  padding: 4px 6px;
}
.np-nav-icon {
  height: 36px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
  transition: transform .12s ease;
}
.np-nav-link.np-nav-img:hover .np-nav-icon { transform: translateY(-1px) scale(1.03); }
/* O banner já mostra a seleção pela própria arte — sem o traço/ponta de kunai por baixo */
.np-nav-link.np-nav-img.active::after,
.np-nav-link.np-nav-img.active::before { display: none; }

/* Badges de notificação sobre os links (mensagens / trade) */
.sidebar-msg-badge, .sidebar-trade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  margin-left: 5px;
  font-size: .62rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  vertical-align: middle;
}

/* Lado direito: relógio, online, nome, sair */
.np-topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.np-topbar-info { display: flex; align-items: center; gap: 12px; }
.np-clock {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-dim);
}
.np-online {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-dim);
  border: 1px solid var(--ink-line);
  padding: 3px 9px;
  border-radius: 999px;
}
.np-online-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: np-pulse 2s ease-in-out infinite;
}
@keyframes np-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
.np-tbname {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .88rem;
  color: var(--parchment);
}

/* ── BARRA DE SALDO ─────────────────────────────────────────── */
.np-saldo-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--ink-line);
  position: sticky;
  top: 64px; /* logo abaixo do .np-topbar (altura fixa de 64px) */
  z-index: 49;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.np-saldo-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
  padding: 8px 24px;
  gap: 4px;
}

.np-saldo-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: background .15s ease;
}
a.np-saldo-item:hover { background: rgba(79,209,255,.08); }
.np-saldo-inv.active .np-saldo-label { color: var(--chakra); }
.np-saldo-inv.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -14px;
  width: 28px; height: 28px;
  transform: translateX(-50%);
  background: url("../img/cabeçalho/kunai.png") no-repeat center / contain;
  filter: drop-shadow(0 0 4px var(--chakra-glow));
  pointer-events: none;
}
.np-saldo-icon { font-size: .95rem; }
.np-saldo-label {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.np-saldo-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .86rem;
  color: var(--text);
}
.np-saldo-ryo .np-saldo-val { color: var(--gold); }
.np-saldo-cash .np-saldo-val { color: var(--chakra); }
.np-saldo-cash-tip {
  font-size: .62rem;
  color: var(--text-faint);
  font-style: normal;
}
.np-saldo-chakra-regen {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-faint);
  margin-left: 2px;
}

/* Divisor em "selo hexagonal" — em vez da linha reta genérica */
.np-saldo-sep {
  width: 6px; height: 6px;
  flex-shrink: 0;
  background: var(--ink-700);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  margin: 0 4px;
}

/* ── MODAL genérico ─────────────────────────────────────────── */
.np-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.np-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(6,7,10,.72);
  backdrop-filter: blur(2px);
}
.np-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 16px;
  padding: 22px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.np-modal-close {
  margin-top: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-line-strong);
  background: var(--ink-750);
  color: var(--text);
}
.np-modal-close:hover { border-color: var(--ember); color: #fff; }

/* ── FOOTER DE FERRAMENTAS (dev/teste) ─────────────────────── */
.np-footer-tools {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--ink-900);
  border-top: 1px solid var(--ink-line);
}
.np-footer-tools-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 24px;
}
.np-footer-tools-label {
  font-size: .74rem;
  color: var(--text-faint);
  font-weight: 700;
  white-space: nowrap;
}
.np-footer-tools-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── RESPONSIVO ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .np-topbar { gap: 10px; padding: 0 14px; }
  .np-saldo-bar-inner { padding: 8px 14px; }
}
