/* Panel "Juego en Red" propio. Usa solo clases reales de netplay.js / emulador.
   Hipótesis sin verificar: cuál de ejs_popup_container / ejs_popup_box es la capa y cuál la tarjeta. */

@keyframes np-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes np-pop  { from { opacity: 0; transform: translateY(14px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes np-row  { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

/* Capa y tarjeta */
body .ejs_popup_container {
  background: rgba(8, 8, 9, .72) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: np-fade .18s ease-out;
}
body .ejs_popup_box,
body .ejs_popup_container_box {
  background: #17171a !important;
  color: #f2f2f2 !important;
  border: 1px solid #2a2a2d !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55) !important;
  animation: np-pop .22s cubic-bezier(.2, .8, .2, 1);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
body .ejs_popup_body { color: #f2f2f2 !important; }
body .ejs_popup_body strong { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #8d8d93; }

/* Botones en píldora */
body .ejs_popup_button,
body .ejs_popup_submit,
body .ejs_netplay_join_button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px !important;
  border-radius: 999px !important;
  border: 1px solid #2a2a2d !important;
  background: transparent !important;
  color: #f2f2f2 !important;
  font: 600 14px Inter, system-ui, sans-serif !important;
  cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
body .ejs_popup_button:hover,
body .ejs_popup_submit:hover,
body .ejs_netplay_join_button:hover { background: #222226 !important; border-color: #3a3a3f !important; transform: translateY(-1px); }
body .ejs_popup_button:active,
body .ejs_popup_submit:active,
body .ejs_netplay_join_button:active { transform: scale(.96); }
body .ejs_popup_button:first-of-type,
body .ejs_netplay_join_button { background: #fff !important; color: #111 !important; border-color: #fff !important; }
body .ejs_popup_button:first-of-type:hover,
body .ejs_netplay_join_button:hover { background: #e9e9ec !important; }

/* Tablas de salas y jugadores */
body .ejs_netplay_table { border-collapse: separate; border-spacing: 0 6px; }
body .ejs_netplay_table thead td { font-size: 12px; color: #8d8d93; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; }
body .ejs_netplay_table tbody td { padding: 10px; background: #1f1f23; }
body .ejs_netplay_table tbody td:first-child { border-radius: 12px 0 0 12px; }
body .ejs_netplay_table tbody td:last-child { border-radius: 0 12px 12px 0; }
body .ejs_netplay_table tbody tr { animation: np-row .25s ease-out both; }
body .ejs_netplay_table tbody tr:hover td { background: #26262b; }
body .ejs_netplay_table img { height: 14px; width: auto; border-radius: 2px; vertical-align: -2px; margin-right: 6px; }

/* Paso del nombre */
body .ejs_netplay_name_heading { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; }
body .ejs_netplay_header { margin: 8px 0 14px; }
body .ejs_netplay_header input,
body .ejs_popup_body input[type="text"],
body .ejs_popup_body input[type="password"] {
  width: 100%; box-sizing: border-box; margin-top: 8px;
  padding: 12px 16px; border-radius: 999px;
  background: #0f0f10; color: #f2f2f2; border: 1px solid #2a2a2d;
  font: 500 15px Inter, system-ui, sans-serif; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body .ejs_netplay_header input:focus,
body .ejs_popup_body input:focus { border-color: #d0412f; box-shadow: 0 0 0 3px rgba(208, 65, 47, .22); }
body .ejs_netplay_dialog_label { color: #8d8d93; font-size: 13px; }
body .ejs_netplay_dialog_buttons { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
body .ejs_netplay_error_box { background: rgba(208, 65, 47, .14); color: #ff9c8f; border-radius: 12px; padding: 8px 12px; }
body .ejs_netplay_warning { color: #c9a227; }
