/* Árbol de caminos de héroe (detalle.php). Usa las variables de detalle.css */
.hp-layout { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: start; }
@media (max-width: 700px) { .hp-layout { grid-template-columns: 1fr; } }

.hp-side { display: flex; flex-direction: column; gap: 10px; }
.hp-counter {
    background: var(--panel2); border: 1px solid var(--border); border-radius: 10px;
    padding: 14px; text-align: center; font-size: 1.6rem; font-weight: 800;
    letter-spacing: 4px; color: #ffa94d; font-family: 'Courier New', monospace;
}
.hp-resets { display: flex; flex-direction: column; gap: 8px; }
.hp-reset {
    background: transparent; border: 1px solid #a5692d; color: #ffa94d;
    border-radius: 8px; padding: 9px; font-size: 11px; font-weight: 700;
    letter-spacing: 1px; cursor: pointer; transition: .2s;
}
.hp-reset:hover { background: #a5692d33; }

.hp-tree { display: flex; flex-direction: column; gap: 16px; overflow-x: auto; }
.hp-row-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hp-nodes { display: flex; align-items: flex-start; }
.hp-node-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.hp-link { width: 28px; height: 3px; background: #2f2f45; margin-top: 32px; flex-shrink: 0; }
.hp-node-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #b0b0d0; font-family: 'Courier New', monospace; }

.hp-node {
    width: 68px; height: 68px; border-radius: 50%; padding: 0; cursor: pointer;
    background: #000; border: 3px solid #45455e; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s, border-color .15s, opacity .15s, box-shadow .15s;
}
.hp-node img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-node-num { color: #888; font-weight: 800; font-size: 20px; }
.hp-node:hover { transform: scale(1.07); border-color: #8a8aa8; }
.hp-node.selected { border-color: #ffc107; box-shadow: 0 0 12px #ffc10766; }
.hp-node.locked { opacity: .3; filter: grayscale(.6); cursor: not-allowed; }
.hp-node.locked:hover { transform: none; border-color: #45455e; }
.hp-shake { animation: hp-shake .3s; }
@keyframes hp-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Fila nueva de la tabla al pulsar un tier */
.hp-row-new { animation: hp-row-in .35s ease-out; }
@keyframes hp-row-in {
    from { opacity: 0; transform: translateY(-6px); background: #ffc10726; }
    to   { opacity: 1; transform: none; }
}

.hp-desc { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hp-desc li { font-size: 12px; line-height: 1.5; color: #d6d6ea; }
.hp-desc b { color: #ffa94d; }
