/* ===== Editor de personajes de rol: etiqueta con nombre + paleta de color + campo de información grande ===== */

/* El brillo va en un contenedor porque el hexágono usa clip-path (que recorta su propia sombra) */
.rp-hex-glow-wrap { width: 7rem; margin: .4rem auto 0; transition: filter .2s ease; }
.rp-hex-glow-wrap .rp-hex-pick { margin: 0 auto; background-color: color-mix(in srgb, var(--rol, #a855f7) 75%, transparent); transition: background-color .2s ease; }

/* Etiqueta (misma forma que en el panel de rol) + botón de paleta al lado */
.rp-tag-row { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: .7rem auto 1rem; max-width: 100%; }
.rp-tag-preview {
  max-width: 11rem; font-size: .76rem; padding: .22rem .85rem; color: #fff; font-weight: 600;
  border: 1px solid var(--rol, #a855f7);
  background: color-mix(in srgb, var(--rol, #a855f7) 38%, #0d0817);
  transition: background .2s ease, border-color .2s ease;
}
.rp-tag-preview.is-empty { opacity: .6; font-weight: 500; }

.rp-palette-btn {
  position: relative; flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; padding: 0;
  border-radius: 50%; cursor: pointer; color: var(--bone, #efe9e1);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2);
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.rp-palette-btn svg { width: 1.15rem; height: 1.15rem; }
.rp-palette-btn:hover, .rp-palette-btn.open { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .42); }
.rp-palette-btn:active { transform: scale(.94); }
.rp-palette-dot {
  position: absolute; right: -.1rem; bottom: -.1rem; width: .8rem; height: .8rem; border-radius: 50%;
  border: 2px solid #12101c; background: conic-gradient(#f0ab54, #ec4899, #a855f7, #2563eb, #22d3ee, #16a34a, #f0ab54);
}
.rp-palette-dot.is-auto { background: conic-gradient(#f0ab54, #ec4899, #a855f7, #2563eb, #22d3ee, #16a34a, #f0ab54); }

/* Desplegable de colores */
.rp-color-pop {
  margin: -.2rem 0 1rem; padding: .8rem .85rem; border-radius: 16px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .12);
  animation: rpPopIn .16s ease both;
}
.rp-color-pop[hidden] { display: none; }
.rp-color-pop .rp-color-row { margin-top: 0; justify-content: center; }
.rp-color-pop .rp-color-auto { margin-left: 0; }
.rp-color-pop .rp-color-hint { text-align: center; }
@keyframes rpPopIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Información grande + contador */
.rp-info-area { min-height: 12rem; resize: vertical; line-height: 1.5; }
.rp-count { display: block; margin-top: .3rem; text-align: right; font-size: .7rem; color: var(--ash, #a8a0b4); font-variant-numeric: tabular-nums; }
.rp-count.is-near { color: #f0ab54; }

@media (prefers-reduced-motion: reduce) { .rp-color-pop { animation: none; } }
