/* ============================================================
   TEST-TOOLS.CSS — Botão flutuante (canto inferior esquerdo),
   painel das Ferramentas de Teste e os seus modais.

   Propositalmente AUTÓNOMO (não depende de variáveis --ink-*/
   --chakra nem de classes .np-modal/.np-tool-btn de style.css ou
   game.css), porque este ficheiro é incluído em TODAS as páginas
   do jogo — incluindo páginas como pvp-combate.html que não
   carregam esses outros CSS.
   ============================================================ */

.tt-lateral-btn {
  position: fixed;
  left: 14px; bottom: 14px;
  z-index: 2000;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #0e1117;
  border: 1px solid rgba(255,255,255,.14);
  color: #4fd1ff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: background .15s, border-color .15s, transform .15s;
}
.tt-lateral-btn:hover {
  background: #202533;
  border-color: #4fd1ff;
  transform: scale(1.06);
}

.tt-panel {
  position: fixed;
  left: 14px; bottom: 66px;
  z-index: 1999;
  width: 250px;
  max-height: 70vh;
  overflow-y: auto;
  background: #0e1117;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  font-family: 'Nunito', sans-serif;
}
.tt-panel.tt-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tt-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tt-panel-titulo {
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .3px;
  color: #dde2ea;
}
.tt-panel-close {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #8891a1;
  font-size: .75rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.tt-panel-close:hover { border-color: #ff5a36; color: #fff; }

.tt-panel-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
}

/* ── Botão genérico das ferramentas ─────────────────────────── */
.tt-tool-btn {
  width: 100%;
  text-align: left;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.14);
  background: #202533;
  color: #dde2ea;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.tt-tool-btn:hover { border-color: #4fd1ff; background: rgba(79,209,255,.14); }

/* ── Modal genérico ──────────────────────────────────────────── */
.tt-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tt-modal.tt-hidden { display: none; }
.tt-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(6,7,10,.72);
  backdrop-filter: blur(2px);
}
.tt-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 16px;
  padding: 22px 24px;
  border-radius: 12px;
  background: #12151d;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  font-family: 'Nunito', sans-serif;
  color: #dde2ea;
}
.tt-modal-card h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
}
.tt-modal-close {
  margin-top: 14px;
  font-weight: 700;
  font-size: .82rem;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.14);
  background: #202533;
  color: #dde2ea;
  cursor: pointer;
}
.tt-modal-close:hover { border-color: #ff5a36; color: #fff; }

.tt-btn-primary {
  font-weight: 800;
  font-size: .85rem;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: #4fd1ff;
  color: #0e1117;
  cursor: pointer;
}
.tt-btn-primary:hover { filter: brightness(1.08); }
.tt-btn-cancelar {
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: #dde2ea;
  cursor: pointer;
}
.tt-btn-cancelar:hover { border-color: #ff5a36; color: #fff; }

.tt-input {
  width: 100%;
  background: #202533;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 10px;
  font-size: 1rem;
  color: #dde2ea;
  font-family: 'Nunito', sans-serif;
}
.tt-input::placeholder { color: #8891a1; }

.tt-attrs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.tt-attr-row { display: flex; flex-direction: column; gap: 4px; }
.tt-attr-row label { font-size: .75rem; color: #8891a1; font-weight: 700; }

.tt-vila-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 4px;
}
.tt-btn-vila-opt {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: #202533;
  color: #dde2ea;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  text-align: center;
}
.tt-btn-vila-opt:hover { border-color: #4fd1ff; }
.tt-btn-vila-opt.tt-atual { border-color: #35d488; color: #35d488; background: rgba(53,212,136,.1); }
