/* El editor del personaje (la taquilla). Limpio, de videojuego: esquinas cortadas, letra de datos en monoespaciada y
   un color de acento (--pj-acento). Sin desenfoques ni mezclas (en gráficas Intel dan franjas negras). */
.pj-editor { --pj-acento: #4cff8f; --pj-borde: rgba(160, 140, 255, .28); --pj-tinta: #f2eeff; --pj-suave: #a99fd0;
  display: flex; flex-direction: column; height: 100%; min-height: 0; color: var(--pj-tinta); font: 15px/1.35 'Archivo', system-ui, sans-serif; }
.pj-editor button { font-family: inherit; }
.pj-cab { display: flex; gap: 10px 14px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; padding-bottom: 10px; }
.pj-tit { min-width: 0; flex: 1 1 180px; }
.pj-tit h2 { margin: 0; font-weight: 900; font-stretch: 125%; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.pj-ayuda { margin: 5px 0 0; font-size: 13px; color: #d6cff2; }
.pj-nombre { display: flex; flex-direction: column; gap: 3px; }
.pj-nombre span, .pj-etq, .pj-sec h3 { font: 700 11px ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--pj-acento); }
.pj-nombre input { width: 170px; height: 34px; padding: 0 10px; background: #000; color: #fff; border: 1px solid var(--pj-borde); font: 700 15px 'Archivo', sans-serif; outline: none; }
.pj-nombre input:focus, .pj-buscar:focus { border-color: var(--pj-acento); }
.pj-pestanas { display: flex; flex-wrap: wrap; gap: 3px; padding-bottom: 8px; border-bottom: 1px solid var(--pj-borde); }
.pj-pest { flex: 0 0 auto; height: 30px; padding: 0 9px; background: transparent; color: #cfc6ee; border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 13px; white-space: nowrap; }
.pj-pest[aria-selected="true"] { background: var(--pj-acento); color: #0b0718; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.pj-pest:hover:not([aria-selected="true"]) { border-color: var(--pj-borde); }
.pj-cuerpo { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 6px 6px 0; overscroll-behavior: contain; }
.pj-sec { margin: 0 0 18px; }
.pj-sec h3 { margin: 0 0 7px; }
.pj-nota { margin: 6px 0 0; font-size: 12px; color: var(--pj-suave); }
.pj-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pj-etq { display: block; margin: 10px 0 5px; }
.pj-chips + .pj-colores, .pj-colores + .pj-colores, .pj-colores + .pj-chips { margin-top: 10px; }
.pj-chip { min-height: 32px; padding: 4px 10px; background: #1c1436; color: var(--pj-tinta); border: 1px solid var(--pj-borde); cursor: pointer; font-weight: 700; font-size: 13px; text-align: left; }
.pj-chip:hover { border-color: rgba(255, 255, 255, .3); }
.pj-chip[aria-pressed="true"] { border-color: var(--pj-acento); background: #2a2050; box-shadow: inset 3px 0 0 var(--pj-acento); }
.pj-grandes .pj-chip { display: flex; flex-direction: column; gap: 2px; flex: 1 1 160px; padding: 8px 10px; }
.pj-chip small { font-weight: 400; font-size: 12px; color: var(--pj-suave); line-height: 1.3; }
.pj-est { margin-top: 8px; }
.pj-est .pj-chip { min-height: 28px; font-size: 12px; }
.pj-colores { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pj-colores .pj-etq { width: 100%; margin: 0 0 1px; }
.pj-muestra { position: relative; width: 28px; height: 28px; padding: 0; border: 2px solid rgba(0, 0, 0, .45); cursor: pointer; }
.pj-muestra[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 2px; }
.pj-libre { display: inline-grid; place-items: center; background: repeating-conic-gradient(#3a3060 0 25%, #241c40 0 50%) 0 0 / 10px 10px; color: #fff; font: 700 17px ui-monospace, monospace; }
.pj-libre input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.pj-buscar { width: 100%; height: 38px; padding: 0 12px; background: #000; color: #fff; border: 1px solid var(--pj-borde); font: 600 15px 'Archivo', sans-serif; outline: none; }
.pj-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pj-disfraz { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; text-align: left; background: #150f2c; border: 1px solid var(--pj-borde); color: var(--pj-tinta); cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.pj-disfraz b { font-weight: 800; font-size: 14px; text-transform: uppercase; line-height: 1.1; }
.pj-disfraz small { font-size: 12px; color: var(--pj-suave); line-height: 1.3; }
.pj-disfraz:hover { border-color: rgba(255, 255, 255, .3); }
.pj-disfraz[aria-pressed="true"] { border-color: var(--pj-acento); box-shadow: inset 0 3px 0 var(--pj-acento); }
.pj-puntos { display: flex; gap: 3px; }
.pj-puntos i { width: 12px; height: 12px; border: 1px solid rgba(0, 0, 0, .5); }
.pj-pie { display: flex; gap: 6px; padding-top: 10px; border-top: 1px solid var(--pj-borde); }
.pj-hueco { flex: 1; }
.pj-btn { height: 40px; padding: 0 12px; border: 0; cursor: pointer; font-weight: 900; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--pj-tinta); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.pj-btn.pj-b2 { background: rgba(255, 255, 255, .09); }
.pj-btn.pj-primario { background: var(--pj-acento); color: #0b0718; min-width: 96px; }
.pj-btn:disabled { opacity: .4; cursor: default; }
.pj-btn:hover:not(:disabled) { filter: brightness(1.15); }
.pj-editor :focus-visible { outline: 2px solid #ffd23f; outline-offset: 2px; }
@media (max-width: 760px) {
  .pj-cab { padding-bottom: 8px; align-items: center; }
  .pj-tit { display: none; }
  .pj-ayuda { display: none; }
  .pj-nombre { flex-direction: row; align-items: center; gap: 6px; }
  .pj-nombre input { width: 132px; height: 32px; font-size: 14px; }
  .pj-rejilla { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .pj-pest { height: 28px; padding: 0 7px; font-size: 12px; }
  .pj-pie { flex-wrap: wrap; }
  .pj-btn { flex: 1 1 40%; height: 36px; padding: 0 8px; font-size: 12px; }
  .pj-btn.pj-primario { min-width: 0; }
  .pj-hueco { display: none; }
}
