/* WIKI HARADON — Simulateur de talents (public/simtal.js). Classes st-* seulement ;
   couleurs = variables de wiki2.css. */
.st { margin: 0 0 18px; }
.st-barre { display: grid; gap: 10px; margin: 0 0 14px; }
.st-onglets { display: flex; flex-wrap: wrap; gap: 6px; }
.st-on {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 5px 12px 5px 5px; border: 1px solid var(--border); border-radius: 2px;
  background: var(--panel); color: var(--text); font: 600 13px/1.2 var(--cinzel); letter-spacing: .04em;
}
.st-on:hover { border-color: var(--gold-dark); color: var(--bright); }
.st-on.st-actif { border-color: var(--gold); color: var(--gold-light); background: linear-gradient(180deg, #232a44, #161b2e); }
.st-on-i { width: 30px; height: 30px; border-radius: 50%; background: center / cover no-repeat; flex: none; }
.st-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.st-niv { display: inline-flex; align-items: center; gap: 10px; font-family: var(--cinzel); font-size: 13px; }
.st-niv input { width: 180px; accent-color: var(--gold); }
.st-niv-n { min-width: 2ch; color: var(--gold-light); font-size: 18px; }
.st-pts { font-size: 15px; }
.st-pts-n { color: var(--gold-light); font-weight: 700; }
.st-pts-s { color: var(--dim); }
.st-rouge { color: #ff6b5e !important; }
.st-btns { display: flex; gap: 8px; margin-left: auto; }
.st-btn2 {
  cursor: pointer; padding: 9px 14px; border: 1px solid var(--border); border-radius: 2px; background: none;
  color: var(--gold); font: 11.5px var(--cinzel); letter-spacing: .1em; text-transform: uppercase;
}
.st-btn2:hover { border-color: var(--gold); }

/* arbre : 7 colonnes (paliers) x 3 lignes, comme l'écran du jeu */
.st-arbre {
  position: relative; padding: 14px 8px 6px; border: 1px solid var(--border); border-radius: var(--r);
  background: radial-gradient(600px 260px at 50% 40%, rgba(120, 52, 30, .28), transparent 75%),
              linear-gradient(180deg, #1b1420, #120f19);
}
.st-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); }
.st-case { display: flex; justify-content: center; align-items: center; padding: 10px 2px; min-height: 64px; }
.st-sep { border-left: 1px solid rgba(240, 215, 138, .14); }
.st-n {
  position: relative; width: min(62px, 100%); aspect-ratio: 1; padding: 0; cursor: pointer;
  border: 2px solid #6b5a33; border-radius: 50%; background: #0c0d14;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .6); -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}
.st-n-i { position: absolute; inset: 2px; border-radius: 50%; background: center / cover no-repeat; }
.st-n-r {
  position: absolute; right: -6px; bottom: -6px; min-width: 26px; padding: 0 4px; border-radius: 9px;
  background: #0b0e18; border: 1px solid var(--border); color: var(--dim); font: 700 11px/16px var(--crimson);
}
.st-n.st-bloque .st-n-i { filter: grayscale(1) brightness(.45); }
.st-n.st-bloque { border-color: #3a3a44; cursor: default; }
.st-n.st-dispo { border-color: var(--gold-dark); }
.st-n.st-dispo:hover { border-color: var(--gold-light); }
.st-n.st-pris { border-color: var(--vert); box-shadow: 0 0 10px rgba(51, 170, 85, .45); }
.st-n.st-pris .st-n-r { color: #8fe0a6; border-color: var(--vert); }
.st-n.st-max { border-color: var(--gold); box-shadow: 0 0 12px rgba(212, 168, 71, .6); }
.st-n.st-max .st-n-r { color: var(--gold-light); border-color: var(--gold); }
.st-n.st-sel { outline: 2px solid var(--bright); outline-offset: 3px; }
.st-fl { position: absolute; left: 0; top: 0; pointer-events: none; }
.st-fl-l { stroke: #5a5a66; stroke-width: 2.5; }
.st-fl-l.st-on { stroke: var(--gold); }
.st-fl-p { fill: #5a5a66; }
.st-fl-p.st-on { fill: var(--gold); }
.st-regle { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 4px; border-top: 1px solid rgba(240, 215, 138, .14); }
.st-seuil { text-align: center; padding: 4px 0; font: 600 14px var(--cinzel); color: var(--bright); cursor: help; }

/* bulle (survol, bureau) et fiche (sous l'arbre) */
.st-bulle {
  position: absolute; z-index: 5; width: min(320px, 100%); padding: 10px 12px; pointer-events: none;
  background: rgba(14, 12, 20, .97); border: 1px solid var(--gold); border-radius: var(--r); box-shadow: 0 6px 18px rgba(0, 0, 0, .7);
}
.st-fiche { margin-top: 10px; padding: 12px 14px; min-height: 64px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); }
.st-d-tete { display: flex; align-items: center; gap: 10px; }
.st-d-i { width: 40px; height: 40px; border-radius: 50%; flex: none; background: center / cover no-repeat; border: 1px solid var(--gold-dark); }
.st-d-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.st-d-nom { font: 600 15px var(--cinzel); color: var(--gold-light); }
.st-d-rang { color: var(--bright); font-size: 14px; }
.st-pm {
  width: 38px; height: 38px; flex: none; cursor: pointer; border: 1px solid var(--gold-dark); border-radius: 2px;
  background: #1b2033; color: var(--gold-light); font: 700 20px/1 var(--crimson);
}
.st-pm:disabled { opacity: .35; cursor: default; }
.st-d p { margin: 6px 0 0; }
.st-d-txt { color: var(--jaune); white-space: pre-line; }
.st-d-suiv { color: var(--dim); font-style: italic; }
.st-d-req { color: #ff6b5e; }
.st-d-req.st-ok { color: #8fe0a6; }
.st-d-info { color: var(--dim); }
.st-d-porte { color: #b9c7ff; font-size: 14px; }
.st-aide { color: var(--dim); font-size: 14px; margin: 8px 0 0; }

@media (max-width: 599px) {
  .st-arbre { padding: 8px 2px 4px; }
  .st-case { padding: 7px 1px; min-height: 46px; }
  .st-n-r { right: -4px; bottom: -5px; min-width: 22px; font-size: 10px; line-height: 14px; }
  .st-on { padding: 4px 8px 4px 4px; font-size: 12px; }
  .st-on-i { width: 24px; height: 24px; }
  .st-niv input { width: 140px; }
  .st-btns { margin-left: 0; }
  .st-seuil { font-size: 12px; }
}
