/* X-ZONE — renovação das páginas de conta (login e painel do participante).
   Fica por cima do app.css: mesma estrutura e os mesmos scripts, visual da renovação do site. */
:root { --rn-v: #13e600; --rn-v2: rgba(19, 230, 0, .28); --rn-corte: 12px; }

body.xz-app {
  background:
    linear-gradient(rgba(19, 230, 0, .045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(19, 230, 0, .045) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse at 20% -10%, rgba(19, 230, 0, .12), transparent 55%),
    radial-gradient(ellipse at 110% 110%, rgba(153, 51, 255, .12), transparent 50%),
    #050505;
  background-attachment: fixed;
}

/* ---------- barra do topo: largura toda, presa no alto ---------- */
.xz-topbar, .xz-topbar.xz-container {
  max-width: none !important; width: 100%; margin: 0 !important;
  padding: 14px clamp(16px, 4vw, 56px) !important;
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 5, 5, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rn-v2) !important;
  box-shadow: 0 1px 0 rgba(19, 230, 0, .08), 0 10px 30px rgba(0, 0, 0, .35);
}
.xz-topbar::after { content: ""; position: absolute; left: clamp(16px, 4vw, 56px); bottom: -1px; width: 90px; height: 2px; background: var(--rn-v); box-shadow: 0 0 12px var(--rn-v); }
.xz-logo { font-size: 1.6rem; text-shadow: 0 0 18px rgba(19, 230, 0, .25); }
.xz-btn-link { transition: color .2s, text-shadow .2s; }
.xz-btn-link:hover { text-shadow: 0 0 10px rgba(19, 230, 0, .6); }

/* ---------- painel: acompanha a largura da tela ---------- */
.xz-container.xz-panel-layout {
  /* menu encostado na borda esquerda e o conteúdo ocupando todo o resto, em qualquer tamanho de tela */
  max-width: none !important; width: 100%; margin: 0 !important;
  padding: clamp(14px, 1.6vw, 28px) clamp(12px, 1.6vw, 32px) 80px clamp(10px, 1vw, 18px) !important;
  grid-template-columns: clamp(220px, 15vw, 290px) minmax(0, 1fr) !important;
  gap: clamp(16px, 1.8vw, 36px) !important;
  align-items: start;
}

/* menu lateral: numerado, com cabeçalho e item atual em neon */
.xz-sidebar {
  position: sticky; top: 92px; counter-reset: rn-m; gap: 3px !important;
  max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(19,230,0,.35) transparent;
  padding: 14px 10px; background: linear-gradient(160deg, rgba(19, 230, 0, .07), rgba(10, 10, 10, .9) 40%);
  border: 1px solid var(--rn-v2);
  clip-path: polygon(var(--rn-corte) 0, 100% 0, 100% calc(100% - var(--rn-corte)), calc(100% - var(--rn-corte)) 100%, 0 100%, 0 var(--rn-corte));
}
.xz-sidebar::before {
  content: "X-ZONE // Painel"; display: block; padding: 4px 12px 12px; margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--rn-v); font: 900 .68rem/1 inherit; letter-spacing: .28em; text-transform: uppercase;
}
.xz-sidebar button {
  counter-increment: rn-m; position: relative; width: 100%;
  padding: 11px 12px !important; border-left: 0 !important;
  transition: background .2s, color .2s, transform .2s;
}
.xz-sidebar button::after {
  content: counter(rn-m, decimal-leading-zero); margin-left: auto; padding-left: 8px;
  font-size: .62rem; letter-spacing: .1em; color: rgba(255, 255, 255, .28);
}
.xz-sidebar button::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px;
  background: var(--rn-v); box-shadow: 0 0 10px var(--rn-v); transform: scaleY(0); transition: transform .2s;
}
.xz-sidebar button:hover:not(.active) { background: rgba(255, 255, 255, .04); transform: translateX(2px); }
.xz-sidebar button.active { background: linear-gradient(90deg, rgba(19, 230, 0, .16), rgba(19, 230, 0, .02)) !important; color: var(--rn-v) !important; }
.xz-sidebar button.active::before { transform: scaleY(1); }
.xz-sidebar button.active::after { color: var(--rn-v); }

/* ---------- cartões: vidro, canto cortado e barra neon ---------- */
.xz-card-box, .xz-stat-card {
  position: relative; border-radius: 0 !important;
  background: linear-gradient(160deg, rgba(19, 230, 0, .06), rgba(14, 14, 14, .92) 38%) !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  clip-path: polygon(0 0, calc(100% - var(--rn-corte)) 0, 100% var(--rn-corte), 100% 100%, var(--rn-corte) 100%, 0 calc(100% - var(--rn-corte)));
  transition: border-color .25s;
}
.xz-card-box::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 2px; background: var(--rn-v); box-shadow: 0 0 10px var(--rn-v); }
.xz-card-box:hover { border-color: rgba(19, 230, 0, .3) !important; }
.xz-card-box h3 { letter-spacing: .02em; }
.xz-card-box h3::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 10px; background: var(--rn-v); }

/* ---------- botões e campos ---------- */
.xz-btn {
  border-radius: 0 !important; letter-spacing: .16em !important;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: filter .25s, transform .2s, opacity .2s !important;
}
.xz-btn:hover:not(:disabled) { opacity: 1 !important; filter: brightness(1.08) drop-shadow(0 0 12px rgba(19, 230, 0, .55)); transform: translateY(-1px); }
.xz-btn-secondary:hover:not(:disabled) { background: rgba(19, 230, 0, .1) !important; }
.xz-field input:focus, .xz-field select:focus, .xz-field textarea:focus { box-shadow: 0 0 0 3px rgba(19, 230, 0, .15); }
.xz-badge { border-radius: 0 !important; }
.xz-table tr:hover td { background: rgba(19, 230, 0, .04); }

/* ---------- telas grandes: login centralizado na altura e na largura ---------- */
body.rn-login .xz-center-wrap { max-width: min(1400px, 100%); margin: 0 auto; }

/* ---------- celular: menu vira faixa de botões que rola de lado ---------- */
@media (max-width: 800px) {
  .xz-container.xz-panel-layout { grid-template-columns: minmax(0, 1fr) !important; padding: 12px 12px 90px !important; gap: 14px !important; }
  .xz-panel-layout > *, #card-identificacao-jogador [style*="grid-template-columns"] > * { min-width: 0; }
  .xz-sidebar {
    position: sticky; top: 64px; z-index: 40; flex-direction: row !important; overflow-x: auto; scrollbar-width: none;
    padding: 8px !important; margin: 0 -12px; clip-path: none; border-left: 0; border-right: 0;
    background: rgba(5, 5, 5, .94) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .xz-sidebar::-webkit-scrollbar { display: none; }
  .xz-sidebar::before, .xz-sidebar button::after { display: none; }
  .xz-sidebar button { width: auto !important; flex: 0 0 auto; white-space: nowrap; padding: 9px 12px !important; font-size: .74rem !important; }
  .xz-sidebar button br { display: none; }
  .xz-sidebar button::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 2px; transform: scaleX(0); }
  .xz-sidebar button.active::before { transform: scaleX(1); }
  .xz-topbar, .xz-topbar.xz-container { padding: 10px 14px !important; gap: 10px; }
  .xz-card-box { padding: 18px !important; }
}
@media (prefers-reduced-motion: reduce) { .xz-sidebar button, .xz-btn, .xz-card-box { transition: none !important; } }
/* topo dos painéis: logo e nomes nunca quebram */
.xz-logo, .xz-topbar .xz-btn-link, .xz-badge { white-space: nowrap; }
#nome-usuario { max-width: 26vw; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
@media (max-width: 800px) {
  .xz-logo { font-size: 1.3rem; }
  .xz-topbar > div { gap: 12px !important; }
  #nome-usuario { display: none !important; }
}
/* itens do menu sempre numa linha só */
.xz-sidebar button { white-space: nowrap; }
.xz-sidebar button br { display: none; }
.xz-sidebar button > span, .xz-sidebar button { overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 801px) {
  .xz-container.xz-panel-layout { grid-template-columns: clamp(240px, 15vw, 290px) minmax(0, 1fr) !important; }
  .xz-sidebar button { font-size: .8rem !important; letter-spacing: .03em !important; }
}
