/* Pantalla de seleccion de heroes con el pack de GUI del autor (marco, fondo, botones y anillo de retrato en gui/). Solo CSS: el HTML/JS no dependen del estilo. */
#chars .panel { position:relative; max-width:500px; gap:12px; padding:22px 22px 20px; border:50px solid transparent; border-image:url("gui/chars_frame.webp") 96 / 50px stretch; border-radius:0; background:#0c0d11 url("gui/chars_bg.webp") center / 135% 135%; box-shadow:0 0 60px #000d, 0 0 0 1px #000; }
#chars h2 { text-align:center; font:700 28px/1.1 "Cinzel Decorative","Cinzel",Georgia,serif; letter-spacing:1px; color:#f1d48c; text-shadow:0 2px 0 #5a3a0c, 0 0 18px #e3b04b55; margin-top:2px; }
#chars #charsCount { text-align:center; font:600 13px "Cinzel",Georgia,serif; letter-spacing:2px; text-transform:uppercase; color:#9d8d6a; padding-bottom:8px; background:linear-gradient(90deg, transparent, #e3b04b66, transparent) bottom / 100% 1px no-repeat; }
#chars #charList { display:flex; flex-direction:column; gap:10px; }

#chars .hero { display:grid; grid-template-columns:auto 1fr; grid-template-areas:"face info" "face btns"; gap:2px 14px; align-items:center; margin:0; padding:10px 14px 10px 10px; border:1px solid #3d3326; border-radius:6px; background:linear-gradient(180deg, #1b1c22ee, #0e0f13ee); box-shadow:inset 0 0 0 1px #000, inset 0 1px 0 #ffffff0d; }
#chars .hero:hover { border-color:#6b5428; }
#chars .portrait { grid-area:face; position:relative; width:78px; height:78px; border-radius:50%; background:radial-gradient(circle at 50% 30%, #3c4672, #141622 75%); }
#chars .portrait img { position:absolute; inset:5%; width:90%; height:90%; border-radius:50%; object-fit:cover; opacity:0; transition:opacity .35s; }
#chars .portrait.ready img { opacity:1; }
#chars .portrait::after { content:""; position:absolute; inset:-3px; background:url("gui/ring.webp") center / 100% 100% no-repeat; pointer-events:none; }
#chars .hero .info { grid-area:info; align-self:end; min-width:0; }
#chars .hero .info b { font:700 19px/1.15 "Cinzel",Georgia,serif; color:#f3e3c0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#chars .hero .info .muted { font-size:12.5px; color:#a99c80; letter-spacing:.4px; }
#chars .hero .btns { grid-area:btns; align-self:start; justify-content:flex-start; gap:8px; margin-top:4px; }

/* botones: rojo del pack (principal) y marco oscuro (secundario) */
#chars button { flex:none; min-width:84px; padding:8px 16px; border:0; border-radius:0; font:700 13px/1.2 "Cinzel",Georgia,serif; letter-spacing:.8px; text-transform:uppercase; color:#f6e6c4; text-shadow:0 1px 2px #000; cursor:pointer;
  background:url("gui/btn_red.webp") center / 100% 100% no-repeat #3a0f0c; }
#chars button.alt { color:#c9bda2; background:url("gui/btn_dark.webp") center / 100% 100% no-repeat #14151a; }
#chars button:hover:not(:disabled) { filter:brightness(1.25); }
#chars button:active:not(:disabled) { filter:brightness(.85); transform:translateY(1px); }

#chars #newChar { margin-top:2px; }
#chars #newChar input { flex:1; min-width:0; padding:11px 12px; font:600 15px "Cinzel",Georgia,serif; color:#f3e3c0; background:#0a0b0e; border:1px solid #5a4a30; border-radius:4px; box-shadow:inset 0 2px 6px #000; }
#chars #newChar input:focus { outline:none; border-color:#e3b04b; box-shadow:inset 0 2px 6px #000, 0 0 0 2px #e3b04b44; }
#chars #newChar button { min-width:100px; }
#chars #logoutBtn { align-self:center; min-width:160px; margin-top:2px; }
#chars .msg { min-height:0; }

@media (max-width:520px) {
  #chars .panel { border-width:30px; border-image-width:30px; padding:14px 8px 12px; }
  #chars h2 { font-size:23px; }
  #chars .portrait { width:64px; height:64px; }
  #chars .hero { gap:2px 10px; padding:8px; }
  #chars .hero .info b { font-size:17px; }
  #chars button { min-width:72px; padding:8px 10px; font-size:12px; }
}
