/* NexoRol · Generador de personajes — estética: negro 70% · hueso 20% · rojo 10% */
.nxr, .nxr * { box-sizing: border-box; }
.nxr {
	--k: #0B0B0B; --k2: #151515; --k3: #232323; --h: #EDEAE4; --h2: #b9b5ac; --h3: #8a8780; --r: #E10600;
	background: var(--k); color: var(--h); padding: clamp(14px, 3vw, 32px); margin: 0 auto; max-width: 1040px;
	font-family: Montserrat, Inter, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.45;
	border: 1px solid var(--k3);
}
.nxr button, .nxr input, .nxr select { font-family: inherit; font-size: 1rem; }
.nxr a { color: var(--r); }

/* Barra superior */
.nxr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--k3); margin-bottom: 18px; }
.nxr-brand { display: inline-flex; align-items: center; font-weight: 900; letter-spacing: .16em; font-size: 1.15rem; text-transform: uppercase; }
.nxr-brand b { color: var(--r); }
.nxr-kicker { font-family: VT323, "DejaVu Sans Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .72rem; letter-spacing: .08em; color: var(--r); text-transform: uppercase; }
.nxr-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nxr-px { font-family: VT323, "DejaVu Sans Mono", ui-monospace, monospace; font-size: .8rem; border: 1px solid var(--r); color: var(--h); padding: 4px 9px; margin-left: 8px; }

/* Títulos y barra roja */
.nxr-h { font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.05; margin: 8px 0 0; color: var(--h); letter-spacing: .01em; }
.nxr-bar { width: 64px; height: 4px; background: var(--r); margin: 12px 0 22px; }
.nxr-crumb { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.nxr-saved { font-family: VT323, "DejaVu Sans Mono", ui-monospace, monospace; font-size: .7rem; color: var(--h3); }

/* Botones */
.nxr-btn { background: transparent; color: var(--h); border: 1px solid var(--h2); padding: 11px 16px; cursor: pointer; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; font-size: .82rem; min-height: 44px; border-radius: 0; text-decoration: none; display: inline-block; text-align: center; }
.nxr-btn:hover:not(:disabled) { border-color: var(--r); color: var(--r); }
.nxr-btn:disabled { opacity: .45; cursor: not-allowed; }
.nxr-primary { background: var(--r); border-color: var(--r); color: #fff; }
.nxr-primary:hover:not(:disabled) { background: var(--h); border-color: var(--h); color: var(--k); }
.nxr-armed { background: var(--r); border-color: var(--r); color: #fff; }
.nxr-small { min-height: 34px; padding: 6px 10px; font-size: .7rem; width: 100%; }
.nxr-link { background: none; border: none; color: var(--h2); cursor: pointer; padding: 8px 6px; text-transform: uppercase; font-weight: 700; font-size: .8rem; letter-spacing: .05em; border-bottom: 2px solid transparent; }
.nxr-link:hover { color: var(--h); }
.nxr-link.on { color: var(--h); border-bottom-color: var(--r); }
.nxr-ico { background: var(--k2); border: 1px solid var(--k3); color: var(--h); cursor: pointer; min-width: 40px; min-height: 40px; font-size: 1rem; border-radius: 0; }
.nxr-ico:hover:not(:disabled) { border-color: var(--r); }
.nxr-ico.on { border-color: var(--r); }
.nxr-btn:focus-visible, .nxr-ico:focus-visible, .nxr-link:focus-visible, .nxr-segbtn:focus-visible, .nxr-input:focus-visible, .nxr-amb:focus-visible, .nxr-minibtn:focus-visible { outline: 2px solid var(--h); outline-offset: 2px; }

/* Ambientaciones */
.nxr-ambgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.nxr-amb { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--k2); border: 1px solid var(--k3); border-left: 4px solid var(--r); color: var(--h); padding: 18px; cursor: pointer; min-height: 130px; border-radius: 0; }
.nxr-amb:hover { background: var(--k3); }
.nxr-ambname { font-weight: 900; text-transform: uppercase; font-size: 1.3rem; }
.nxr-ambdesc { color: var(--h2); font-size: .9rem; }
.nxr-soon { border-left-color: var(--k3); cursor: default; opacity: .6; }
.nxr-soon:hover { background: var(--k2); }

/* Formulario */
.nxr-form { max-width: 640px; }
.nxr-field { margin-bottom: 18px; }
.nxr-field label { display: block; font-family: VT323, "DejaVu Sans Mono", ui-monospace, monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--h2); margin-bottom: 7px; }
.nxr-seg { display: flex; flex-wrap: wrap; gap: 0; }
.nxr-segbtn { background: var(--k2); color: var(--h2); border: 1px solid var(--k3); margin: 0 -1px -1px 0; padding: 11px 16px; cursor: pointer; min-height: 44px; text-transform: uppercase; font-weight: 700; font-size: .8rem; letter-spacing: .04em; border-radius: 0; }
.nxr-segbtn.on { background: var(--h); color: var(--k); border-color: var(--h); position: relative; z-index: 1; }
.nxr-input { width: 100%; background: var(--k2); color: var(--h); border: 1px solid var(--h3); padding: 12px 14px; min-height: 46px; border-radius: 0; }
.nxr-input:disabled { opacity: .5; }
.nxr-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--h) 50%), linear-gradient(135deg, var(--h) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.nxr-select option { background: var(--k2); color: var(--h); }
.nxr-input::placeholder { color: var(--h3); }
.nxr-more { margin: 4px 0 18px; border-top: 1px solid var(--k3); padding-top: 12px; }
.nxr-more summary { cursor: pointer; font-family: VT323, "DejaVu Sans Mono", ui-monospace, monospace; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--h2); margin-bottom: 14px; }
.nxr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.nxr-note { color: var(--h3); font-size: .82rem; margin-top: 14px; }

/* Resultado */
.nxr-result { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 26px; align-items: start; }
.nxr-portrait { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--k2); border: 1px solid var(--k3); border-bottom: 4px solid var(--r); cursor: zoom-in; }
.nxr-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; overflow: hidden; cursor: default; padding: 16px; text-align: center; }
.nxr-scan { position: absolute; left: 0; right: 0; height: 3px; background: var(--r); opacity: .7; animation: nxrscan 2.2s linear infinite; }
@keyframes nxrscan { 0% { top: 0; } 100% { top: 100%; } }
.nxr-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.nxr-namerow, .nxr-hookrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nxr-name { font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.02; margin: 6px 0; color: var(--h); }
.nxr-sub { color: var(--h2); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: 14px; }
.nxr-hooks { display: flex; flex-wrap: wrap; gap: 8px; }
.nxr-chip { border: 1px solid var(--r); color: var(--h); padding: 6px 11px; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.nxr-attitude { font-size: 1.05rem; margin: 16px 0 6px; }
.nxr-quote { font-style: italic; color: var(--h2); border-left: 3px solid var(--r); padding-left: 12px; margin: 8px 0 18px; }

/* Ficha */
.nxr-sheet { margin-top: 22px; border-top: 1px solid var(--k3); padding-top: 14px; }
.nxr-pillar { padding: 10px 0; border-top: 1px solid var(--k3); color: var(--h2); }
.nxr-pillar b { color: var(--h); }
.nxr-phead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.nxr-ptag { font-family: VT323, "DejaVu Sans Mono", ui-monospace, monospace; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--r); margin-right: auto; }
.nxr-meta { color: var(--h3); font-size: .85rem; }
.nxr-mt { margin-top: 18px; }
.nxr-share { border: 1px solid var(--k3); border-left: 4px solid var(--r); padding: 14px; margin: 8px 0 14px; background: var(--k2); }
.nxr-share .nxr-input { margin: 10px 0 0; }

/* Mis personajes */
.nxr-minigrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.nxr-mini { display: flex; flex-direction: column; gap: 6px; }
.nxr-minibtn { background: var(--k2); border: 1px solid var(--k3); border-bottom: 3px solid var(--r); color: var(--h); text-align: left; cursor: pointer; padding: 0 0 10px; display: flex; flex-direction: column; gap: 3px; border-radius: 0; }
.nxr-minibtn:hover { background: var(--k3); }
.nxr-minibtn img, .nxr-noimg { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--k3); margin-bottom: 8px; }
.nxr-noimg { display: flex; align-items: center; justify-content: center; color: var(--h3); font-size: .8rem; }
.nxr-minibtn b, .nxr-minibtn span { padding: 0 10px; }
.nxr-minibtn b { text-transform: uppercase; font-size: .9rem; }
.nxr-minibtn span { color: var(--h2); font-size: .78rem; }

/* Avisos y tarjetas */
.nxr-toast { padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--r); background: var(--k2); font-size: .92rem; }
.nxr-toast.ok { border-color: var(--h2); }
.nxr-card { background: var(--k2); border: 1px solid var(--k3); border-left: 4px solid var(--r); padding: 22px; color: var(--h); }
.nxr-card h2 { margin: 6px 0 10px; text-transform: uppercase; font-weight: 900; color: var(--h); }
.nxr-foot { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--k3); font-family: VT323, "DejaVu Sans Mono", ui-monospace, monospace; font-size: .7rem; letter-spacing: .08em; color: var(--h3); }

/* Pantalla completa del retrato */
.nxr-overlay { position: fixed; inset: 0; z-index: 99999; background: #000; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.nxr-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nxr-overname { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 18px 18px; background: linear-gradient(transparent, rgba(0,0,0,.9)); color: #EDEAE4; font-weight: 900; text-transform: uppercase; font-size: 1.6rem; text-align: center; font-family: Montserrat, Inter, Arial, sans-serif; }
.nxr-overclose { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.6); color: #EDEAE4; }

/* Página compartida */
body.nxr-share { margin: 0; background: #0B0B0B; }
.nxr-sharewrap { border: none; padding-top: 28px; padding-bottom: 28px; }
.nxr-sharecard { max-width: 560px; margin: 0 auto; }
.nxr-sharecard .nxr-portrait { cursor: default; margin-bottom: 18px; }

@media (max-width: 720px) {
	.nxr-result { grid-template-columns: 1fr; }
	.nxr-left { max-width: 360px; width: 100%; margin: 0 auto; }
	.nxr-nav { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .nxr-scan { animation: none; } }

.nxr-logo { display: inline-flex; margin-right: 10px; }
.nxr-brand b { margin-left: 0; }

/* Zona exclusiva */
.nxr-zona .nxr-lead { font-size: 1.05rem; color: var(--h2); max-width: 60ch; margin: 0 0 22px; }
.nxr-zactions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.nxr-zactions .nxr-btn { display: inline-flex; align-items: center; text-decoration: none; }
.nxr-zona a.nxr-btn { color: var(--h); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.nxr-zona a.nxr-btn.nxr-primary { color: #fff; }
.nxr-zona a.nxr-btn.nxr-primary:hover { color: var(--k); }
.nxr-zlayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; position: relative; width: min(1080px, calc(100vw - 32px)); max-width: none; left: 50%; transform: translateX(-50%); }
@media (max-width: 860px) { .nxr-zlayout { grid-template-columns: minmax(0, 1fr); } }
.nxr-newsitem { background: var(--k2); border: 1px solid var(--k3); border-left: 4px solid var(--r); padding: 16px 18px; margin-bottom: 12px; }
.nxr-newsitem h3 { margin: 6px 0 8px; font-weight: 900; text-transform: uppercase; font-size: 1.1rem; color: var(--h); }
.nxr-newsbody p { margin: 0 0 8px; color: var(--h2); }
.nxr-newsbody p:last-child { margin-bottom: 0; }
.nxr-box { background: var(--k2); border: 1px solid var(--k3); border-top: 3px solid var(--r); padding: 16px; margin-bottom: 16px; }
.nxr-box h3 { margin: 0 0 12px; font-weight: 900; text-transform: uppercase; font-size: .95rem; letter-spacing: .08em; color: var(--h); }
.nxr-menu { list-style: none; margin: 0; padding: 0; }
.nxr-menu li { border-bottom: 1px solid var(--k3); }
.nxr-menu li:last-child { border-bottom: 0; }
.nxr-menu a { display: block; padding: 10px 2px; color: var(--h); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.nxr-menu a:hover { color: var(--r); }
.nxr-xplv { font-weight: 900; font-size: 1.05rem; text-transform: uppercase; margin-bottom: 8px; }
.nxr-xplv b { color: var(--r); }
.nxr-xprow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--k3); font-size: .85rem; color: var(--h2); }
.nxr-xprow b { color: var(--h); font-family: VT323, "DejaVu Sans Mono", ui-monospace, monospace; letter-spacing: .04em; font-size: 1rem; }
.nxr-xpbar { height: 8px; background: var(--k3); margin: 10px 0 4px; }
.nxr-xpbar i { display: block; height: 100%; background: var(--r); }
.nxr-boxlink { display: inline-block; margin-top: 10px; color: var(--r); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.nxr-boxlink:hover { color: var(--h); }
.nxr-tools { list-style: none; margin: 0 0 10px; padding: 0; }
.nxr-tools li { padding: 12px 0; border-bottom: 1px solid var(--k3); }
.nxr-tools li:first-child { padding-top: 0; }
.nxr-tools li:last-child { border-bottom: 0; }
.nxr-toolhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.nxr-toolhead b { font-weight: 900; text-transform: uppercase; font-size: .9rem; color: var(--h); }
.nxr-cost { font-family: VT323, "DejaVu Sans Mono", ui-monospace, monospace; color: var(--r); font-size: 1.05rem; white-space: nowrap; }
.nxr-tools p { margin: 6px 0 10px; color: var(--h2); font-size: .88rem; }
.nxr-box .nxr-note { margin: 8px 0 0; font-size: .75rem; color: var(--h3); }

/* Descripción */
.nxr-desc { margin: 8px 0 0; line-height: 1.6; color: var(--h); }
.nxr-textarea { resize: vertical; min-height: 72px; font-family: inherit; }

/* Noticias */
.nxr-ntabs { display: flex; gap: 8px; margin: 0 0 16px; }
.nxr-ntab { padding: 10px 16px; border: 1px solid var(--h3); color: var(--h); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.nxr-ntab.on, .nxr-ntab:hover { background: var(--r); border-color: var(--r); color: #fff; }
.nxr-nfilters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.nxr-nfilters .nxr-input { flex: 1 1 150px; width: auto; }
.nxr-nfilters .nxr-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.nxr-news { background: var(--k2); border: 1px solid var(--k3); border-left: 4px solid var(--r); padding: 16px 18px; margin-bottom: 12px; }
.nxr-news h3 { margin: 6px 0 8px; font-weight: 900; font-size: 1.1rem; color: var(--h); }
.nxr-news h3 a { color: var(--h); text-decoration: none; }
.nxr-news h3 a:hover { color: var(--r); }
.nxr-news p { margin: 0 0 8px; color: var(--h2); }
.nxr-news .nxr-src { font-size: .78rem; color: var(--h3); }
.nxr-lock { color: var(--r); }
.nxr-op { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--h3); background: var(--k); color: var(--h); font-size: .92rem; }
.nxr-op b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--r); margin-bottom: 4px; }
.nxr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nxr-tag { border: 1px solid var(--k3); color: var(--h2); padding: 3px 9px; font-size: .75rem; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.nxr-tag:hover { border-color: var(--r); color: var(--h); }
.nxr-launch { border-left-color: var(--h); }
.nxr-launch .nxr-btn { text-decoration: none; display: inline-flex; margin-right: 6px; }
.nxr-pager { display: flex; gap: 6px; margin: 16px 0; flex-wrap: wrap; }
.nxr-pager a, .nxr-pager span { padding: 6px 12px; border: 1px solid var(--k3); color: var(--h); text-decoration: none; }
.nxr-pager .on { background: var(--r); border-color: var(--r); color: #fff; }
.nxr-pubnews .nxr-box { margin-bottom: 22px; }
.nxr-news .nxr-more { color: var(--r); font-weight: 700; text-decoration: none; }
.nxr-news .nxr-more:hover { text-decoration: underline; }
.nxr-thumb { float: right; width: 96px; height: 96px; object-fit: cover; margin: 0 0 8px 14px; border: 1px solid var(--k3); background: #EDEAE4; }
.nxr-news::after { content: ''; display: block; clear: both; }
.nxr-news-wrap .nxr-nfilters { margin-top: 26px; }
.nxr-news-wrap .nxr-sub { margin-top: 20px; }
.nxr-news .nxr-snip { margin: 0 0 6px; }
.nxr-news .nxr-ext summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--r); margin: 4px 0 8px; }

.nxr-news details.nxr-ext > summary { list-style: none; cursor: pointer; }
.nxr-news details.nxr-ext > summary::-webkit-details-marker { display: none; }
.nxr-news details.nxr-ext > summary h3 { margin: 6px 0 8px; }
.nxr-news .nxr-hint { font-family: VT323, "DejaVu Sans Mono", monospace; color: var(--r); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.nxr-news .nxr-full { margin-top: 10px; }

.nxr-zlayout { display: block; }
.nxr-dd > summary { list-style: none; cursor: pointer; }
.nxr-dd > summary::-webkit-details-marker { display: none; }
.nxr-toolrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--k3); color: var(--h); text-decoration: none; }
.nxr-toolrow:hover b { color: var(--r); }
.nxr-toolrow small { display: block; color: var(--h2); }
.nxr-more-news { margin-top: 18px; }
.nxr-more-news > summary { list-style: none; cursor: pointer; display: inline-block; }
.nxr-more-news > summary::-webkit-details-marker { display: none; }
