/* ═══════════════════════════════════════════════════════════
   talent-panel.css — v0.9.2 — SEULE SOURCE DE VÉRITÉ
   Overlay .talent-panel, modale #tp-modal, onglets, SVG
   ═══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────
   OVERLAY (créé par JS via .talent-panel)
   ────────────────────────────────────────────────────────── */

/* NE PAS TOUCHER : .talent-panel est dans buildings.css */
/* On surcharge juste la taille de la modale ici */

/* ── Modale — grande sur PC ─────────────────────────────── */
#tp-modal {
  width:  min(1340px, 97vw);
  height: min(880px,  96vh);
  background: linear-gradient(170deg, #0c0820 0%, #060412 100%);
  border: 1px solid rgba(200,160,60,0.4);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.96), 0 0 60px rgba(80,30,160,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: tp-in .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes tp-in {
  from { opacity:0; transform:scale(.93) translateY(12px); }
  to   { opacity:1; transform:scale(1)   translateY(0); }
}

/* ── En-tête ────────────────────────────────────────────── */
.tp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px 14px;
  border-bottom: 1px solid rgba(200,160,60,0.25);
  background: rgba(8,4,22,0.99);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.tp-title {
  font-family: 'Cinzel Decorative', Cinzel, serif;
  font-size: 18px;
  font-weight: 800;
  color: #e8d070;
  letter-spacing: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Barre d'onglets ────────────────────────────────────── */
.tp-tab-bar {
  display: flex;
  gap: 5px;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}
.tp-tab-btn {
  padding: 8px 18px;
  font-family: Cinzel, serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(200,160,60,0.22);
  background: rgba(200,160,60,0.05);
  color: rgba(210,185,120,0.48);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all .15s;
  white-space: nowrap;
  line-height: 1.3;
}
.tp-tab-btn:hover {
  background: rgba(200,160,60,0.11);
  color: rgba(210,185,120,0.82);
  border-color: rgba(200,160,60,0.38);
}
.tp-tab-btn.tp-tab-active {
  background: rgba(200,160,60,0.2);
  border-color: rgba(230,185,80,0.68);
  color: #f4df80;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(200,160,60,0.2);
}
.tp-tab-btn[data-tp="ether"].tp-tab-active    { background:rgba(150,80,255,0.17);  border-color:rgba(180,110,255,0.62); color:#d8b0ff; }
.tp-tab-btn[data-tp="codex"].tp-tab-active    { background:rgba(200,149,26,0.2);   border-color:rgba(220,175,50,0.68);  color:#f8e080; }
.tp-tab-btn[data-tp="pantheon"].tp-tab-active { background:rgba(60,140,255,0.15);  border-color:rgba(80,160,255,0.58);  color:#90c8ff; }
.tp-tab-btn[data-tp="zones"].tp-tab-active    { background:rgba(60,200,100,0.13);  border-color:rgba(80,200,100,0.52);  color:#80e8a0; }

/* ── Bouton fermer ──────────────────────────────────────── */
.tp-close {
  background: none;
  border: 1px solid rgba(200,80,80,0.33);
  color: rgba(200,100,100,0.72);
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.tp-close:hover { background:rgba(200,80,80,0.15); color:#e88080; border-color:rgba(200,80,80,0.6); }

/* ── Barre d'ère ────────────────────────────────────────── */
#tp-era-bar {
  flex-shrink: 0;
  padding: 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(6,3,18,0.92);
}
.tp-era-status  { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.tp-era-badge   { font-family:Cinzel,serif; font-size:13px; font-weight:700; padding:4px 14px; border-radius:20px; border:1px solid; letter-spacing:0.5px; }
.tp-ether-count { font-family:Cinzel,serif; font-size:16px; font-weight:800; color:#c090ff; }

/* ── Corps de la modale ─────────────────────────────────── */
.tp-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ══════════════════════════════════════════════════════════
   ONGLETS SVG — en-tête interne + canvas + sidebar
   ══════════════════════════════════════════════════════════ */

.et-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 22px;
  border-bottom: 1px solid rgba(200,160,60,0.12);
  background: rgba(6,3,14,0.85);
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}
.et-ether-count { font-family:Cinzel,serif; font-size:17px; font-weight:800; letter-spacing:0.3px; }
.et-hint        { font-size:13px; color:rgba(255,255,255,0.28); font-style:italic; }

/* Layout canvas + sidebar */
.at-wrap { flex:1; display:flex; min-height:0; overflow:hidden; }

/* SVG Éther fixe (viewBox) */
.at-svg-box { flex:1; min-width:0; overflow:hidden; display:flex; }
.at-svg-box svg { width:100%; height:100%; display:block; }

/* Canvas Drachmes (pan/zoom) */
.at-canvas-outer {
  flex:1; min-width:0; overflow:hidden;
  position:relative; cursor:grab; user-select:none;
  background:#060500;
}
.at-canvas-outer:active { cursor:grabbing; }
.at-canvas-inner { position:absolute; top:0; left:0; transform-origin:0 0; will-change:transform; }

/* Sidebar tooltip */
.at-tooltip-panel {
  width: 296px;
  flex-shrink: 0;
  border-left: 1px solid rgba(180,100,255,0.16);
  background: rgba(5,3,14,0.96);
  overflow-y: auto;
  padding: 20px 18px;
  display: flex; flex-direction: column;
}
.at-tooltip-panel::-webkit-scrollbar { width:4px; }
.at-tooltip-panel::-webkit-scrollbar-thumb { background:rgba(180,100,255,0.28); border-radius:2px; }

.at-tt-placeholder {
  color: rgba(255,255,255,0.18);
  font-size: 14px; font-style:italic;
  text-align: center; margin-top:80px; line-height:2;
}

/* ── Contenu du tooltip ─────────────────────────────────── */
.tt2-head  { display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; }
.tt2-icon  { font-size:38px; line-height:1; flex-shrink:0; }
.tt2-name  { font-family:Cinzel,serif; font-size:16px; color:#f0ecff; font-weight:800; line-height:1.3; margin-bottom:4px; }
.tt2-branch{ font-size:11px; letter-spacing:1.4px; font-weight:700; opacity:0.8; text-transform:uppercase; }
.tt2-desc { font-size:16px; color:rgba(255,255,255,0.75); line-height:1.75; margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,0.08); }
.tt2-req   { font-size:13px; color:rgba(220,180,80,0.82); padding:7px 11px; background:rgba(220,180,60,0.07); border-left:2px solid rgba(220,170,50,0.36); border-radius:0 5px 5px 0; margin-bottom:11px; line-height:1.55; }
.tt2-cost  { font-family:Cinzel,serif; font-size:17px; color:rgba(200,225,100,0.9); font-weight:700; margin-bottom:14px; }
.tt2-buy {
  display:block; width:100%; padding:12px 14px;
  font-family:Cinzel,serif; font-size:15px; font-weight:700;
  border-radius:9px; cursor:pointer; transition:all .16s;
  text-align:center; line-height:1.4;
  border:1px solid rgba(160,80,255,0.5);
  background:rgba(90,30,160,0.24); color:#d0a8ff;
}
.tt2-buy:hover { background:rgba(130,55,220,0.42); border-color:rgba(200,120,255,0.78); color:#f0d8ff; transform:translateY(-1px); box-shadow:0 5px 16px rgba(160,80,255,0.24); }
.tt2-buy-d { border-color:rgba(220,170,50,0.52); background:rgba(130,95,8,0.24); color:#f2d860; }
.tt2-buy-d:hover { background:rgba(195,148,28,0.38); border-color:rgba(240,200,80,0.76); color:#fff8c0; box-shadow:0 5px 16px rgba(200,155,30,0.24); }
.tt2-buy-e { border-color:rgba(160,80,255,0.5); background:rgba(90,30,160,0.24); color:#d0a8ff; }
.tt2-buy-e:hover { background:rgba(130,55,220,0.42); border-color:rgba(200,120,255,0.78); }
.tt2-acquired { text-align:center; padding:12px; font-family:Cinzel,serif; font-size:15px; color:#8ee860; border:1px solid rgba(120,200,60,0.33); border-radius:9px; background:rgba(55,140,18,0.13); font-weight:700; }
.tt2-locked   { text-align:center; padding:10px; font-size:13px; color:rgba(220,100,80,0.8); border:1px solid rgba(200,60,40,0.22); border-radius:8px; line-height:1.55; }

/* Contrôles zoom */
.at-zoom-controls { display:flex; align-items:center; gap:5px; }
.at-zoom-btn {
  width:36px; height:36px; border-radius:7px;
  border:1px solid rgba(200,160,60,0.34); background:rgba(28,18,3,0.82);
  color:#d0b060; font-size:18px; cursor:pointer; transition:all .13s;
  display:flex; align-items:center; justify-content:center;
}
.at-zoom-btn:hover { background:rgba(75,52,8,0.82); border-color:rgba(240,190,60,0.62); color:#ffe080; }
.at-zoom-label { font-family:Cinzel,serif; font-size:13px; color:rgba(200,160,60,0.65); min-width:46px; text-align:center; }

/* ══════════════════════════════════════════════════════════
   ONGLET CODEX
   ══════════════════════════════════════════════════════════ */
.cx-wrap {
  background: rgba(8,5,18,0.6);
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><text x='10' y='50' font-size='24' fill='rgba(200,160,255,0.04)' font-family='serif'>ᚠᚢᚦ</text><text x='60' y='110' font-size='20' fill='rgba(200,160,255,0.03)' font-family='serif'>ᛁᛃᛇ</text><text x='120' y='170' font-size='22' fill='rgba(200,160,255,0.04)' font-family='serif'>ᛏᛒᛖ</text></svg>");
  flex:1; overflow-y:auto; padding:22px 28px 28px;
  display:flex; flex-direction:column; gap:18px;
}
.cx-wrap::-webkit-scrollbar { width:5px; }
.cx-wrap::-webkit-scrollbar-thumb { background:rgba(200,149,26,.28); border-radius:3px; }

.cx-header { display:flex; align-items:center; gap:14px; padding:14px 18px; flex-wrap:wrap; background:linear-gradient(135deg,rgba(200,150,26,0.11),rgba(30,20,5,0.72)); border:1px solid rgba(200,150,26,0.28); border-radius:12px; }
.cx-book-icon  { font-size:26px; flex-shrink:0; }
.cx-title-block{ flex:1; }
.cx-title      { font-family:Cinzel,serif; font-size:26px; font-weight:800; color:#f0d060; }
.cx-subtitle   { font-size:18px; color:#a08040; margin-top:2px; }
.cx-mult-badge { background:rgba(200,150,26,0.2); border:1px solid rgba(200,150,26,0.52); border-radius:10px; padding:8px 14px; font-family:Cinzel,serif; font-size:25px; font-weight:800; color:#f0d060; white-space:nowrap; text-shadow:0 0 12px rgba(240,208,96,0.5); }

.cx-prog-section{ display:flex; flex-direction:column; gap:7px; }
.cx-prog-label  { display:flex; justify-content:space-between; font-size:19px; color:#a09060; }
.cx-prog-label b{ color:#f0d060; font-size:20px; }
.cx-prog-track  { height:10px; background:rgba(255,255,255,0.07); border-radius:5px; overflow:hidden; }
.cx-prog-fill   { height:100%; background:linear-gradient(90deg,#c8961a,#f0d060); border-radius:5px; transition:width .5s; box-shadow:0 0 8px rgba(240,208,96,0.38); }

.cx-preview      { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07); border-radius:10px; padding:13px 16px; }
.cx-preview-title{ font-size:16px; font-weight:700; color:#707070; text-transform:uppercase; letter-spacing:0.8px; margin-bottom:9px; }
.cx-preview-row  { display:flex; justify-content:space-between; font-size:19px; color:#a0a0a0; margin-bottom:4px; }
.cx-pages-gain { color:#f0d060; font-weight:700; }
.cx-bonus      { color:#80e080; font-weight:700; }

.cx-invest-title,.cx-level-title { font-family:Cinzel,serif; font-size:20px; font-weight:700; color:#887040; text-transform:uppercase; letter-spacing:0.6px; border-bottom:1px solid rgba(255,255,255,0.07); padding-bottom:6px; }
.cx-ether-avail   { font-size:19px; color:#c0a060; text-align:right; margin-top:-9px; }
.cx-ether-avail b { color:#f0d060; font-size:20px; }

.cx-invest-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:11px; }
.cx-invest-card { background:rgba(255,255,255,0.03); border:1px solid rgba(200,150,26,0.15); border-radius:10px; padding:14px; display:flex; flex-direction:column; gap:6px; }
.cx-invest-card.cx-maxed { border-color:rgba(128,224,128,0.2); background:rgba(128,224,128,0.03); }
.cx-ic-label { font-size:20px; font-weight:700; color:#d0b060; }
.cx-ic-level { font-size:17px; color:#808060; }
.cx-ic-desc  { font-size:18px; color:#707070; line-height:1.5; flex:1; }
.cx-ic-btn { margin-top:7px; background:linear-gradient(135deg,#3a2a08,#6a4a10); border:1px solid #c8961a; border-radius:7px; color:#f0d060; font-size:18px; padding:8px 10px; cursor:pointer; transition:transform .12s,background .12s; text-align:center; font-family:Cinzel,serif; font-weight:700; }
.cx-ic-btn:hover { background:linear-gradient(135deg,#5a4010,#8a6018); transform:scale(1.02); }
.cx-ic-btn.cx-ic-locked { background:rgba(255,255,255,0.03); border-color:rgba(255,255,255,0.09); color:#606060; cursor:default; }
.cx-ic-btn.cx-ic-locked:hover { transform:none; }

.cx-level-table{ display:flex; flex-direction:column; gap:3px; }
.cx-lv-row     { display:flex; align-items:center; padding:8px 12px; border-radius:6px; font-size:18px; color:#706050; }
.cx-lv-row.cx-lv-active { background:rgba(200,150,26,0.12); color:#f0d060; font-weight:700; border:1px solid rgba(200,150,26,0.3); }
.cx-lv-num  { width:64px; font-weight:700; }
.cx-lv-req  { flex:1; }
.cx-lv-row.cx-lv-active .cx-lv-req { color:#c0a060; }
.cx-lv-mult { font-weight:800; color:#c8961a; font-size:19px; }
.cx-lv-row.cx-lv-active .cx-lv-mult { color:#f0d060; font-size:20px; }

/* ══════════════════════════════════════════════════════════
   ONGLET ZONES
   ══════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════
   ONGLET PANTHÉON
   ══════════════════════════════════════════════════════════ */
#pan-wrap { flex:1; display:flex; flex-direction:column; min-height:0; overflow:hidden; }

/* ══════════════════════════════════════════════════════════
   FALLBACK COLONNES DRACHMES
   ══════════════════════════════════════════════════════════ */
.tp-cols { flex:1; display:flex; min-height:0; overflow:hidden; }
.tp-col  { flex:1; min-width:180px; display:flex; flex-direction:column; gap:8px; overflow-y:auto; padding:16px 13px; border-right:1px solid rgba(255,255,255,0.05); }
.tp-col:last-child { border-right:none; }
.tp-col::-webkit-scrollbar { width:3px; }
.tp-col::-webkit-scrollbar-thumb { background:rgba(200,160,60,0.22); border-radius:2px; }
.tp-col-label { font-family:Cinzel,serif; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.9px; color:rgba(200,180,100,0.55); text-align:center; padding-bottom:8px; border-bottom:1px solid rgba(255,255,255,0.06); margin-bottom:4px; flex-shrink:0; }

.tp-icon { font-size:26px; width:36px; text-align:center; flex-shrink:0; line-height:1; }
.tp-info { flex:1; min-width:0; }
.tp-name { font-size:15px; font-weight:700; color:#e0d090; margin-bottom:3px; line-height:1.3; }
.tp-desc { font-size:13px; color:#a09070; line-height:1.5; }
.tp-cost { font-size:14px; margin-top:5px; display:flex; flex-wrap:wrap; gap:4px; color:#c0a040; }
.tp-acquired { display:inline-flex; align-items:center; gap:4px; font-size:13px; font-weight:700; color:#80e080; background:rgba(80,200,80,0.1); border:1px solid rgba(80,200,80,0.2); border-radius:4px; padding:2px 7px; margin-top:3px; }
.tp-req { font-size:12px; color:#e08080; margin:3px 0; }

.tp-btn { display:block; width:100%; padding:10px 13px; font-family:Cinzel,serif; font-size:14px; font-weight:700; border-radius:8px; cursor:pointer; transition:all .15s; text-align:center; margin-top:6px; }
.tp-btn.tp-ok { background:rgba(180,140,60,0.17); border:1px solid rgba(180,140,60,0.58); color:#e0c060; }
.tp-btn.tp-ok:hover { background:rgba(180,140,60,0.33); box-shadow:0 3px 11px rgba(180,140,60,0.2); }
.tp-btn.tp-locked { background:rgba(60,60,80,0.36); border:1px solid rgba(100,100,120,0.26); color:#706870; cursor:not-allowed; font-size:13px; }

.tp-ether-btn.tp-ok { background:linear-gradient(135deg,rgba(130,55,230,0.2),rgba(95,35,190,0.16)); border:1px solid rgba(175,95,255,0.52); color:#d0a8ff; }
.tp-ether-btn.tp-ok:hover { background:linear-gradient(135deg,rgba(155,75,255,0.34),rgba(115,55,215,0.28)); box-shadow:0 0 13px rgba(160,80,255,0.26); }

.tp-ether-node.tp-learned   { background:rgba(95,200,95,0.06); border-color:rgba(95,200,95,0.28) !important; }
.tp-ether-node.tp-available { background:rgba(135,55,235,0.07); border-color:rgba(165,80,255,0.36) !important; }
.tp-ether-node.tp-locked    { opacity:0.4; }

.tp-era-active { display:inline-block; font-size:14px; font-weight:700; color:#80e080; background:rgba(80,200,80,0.09); border:1px solid rgba(80,200,80,0.26); border-radius:6px; padding:3px 11px; margin:3px 0; }
.tp-era-locked { display:inline-block; font-size:14px; color:#e09040; background:rgba(200,140,40,0.08); border:1px solid rgba(200,140,40,0.2); border-radius:6px; padding:3px 11px; margin:3px 0; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE MOBILE (< 640px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  #tp-modal {
    width: 100vw !important;
    height: 100svh !important;
    border-radius: 0 !important;
    border: none !important;
  }
  .tp-header  { padding:9px 10px 8px; gap:5px; }
  .tp-title   { font-size:13px; letter-spacing:0.5px; }
  .tp-tab-btn { font-size:11px; padding:6px 9px; }
  .tp-close   { width:34px; height:34px; font-size:15px; }
  #tp-era-bar { padding:6px 10px; }
  .tp-ether-count { font-size:13px; }

  /* SVG : tooltip sous le canvas */
  .at-wrap { flex-direction:column; }
  .at-canvas-outer { flex:1; min-height:0; }
  .at-svg-box      { flex:1; min-height:0; }
  .at-tooltip-panel {
    width:100% !important;
    min-height:160px; max-height:38vh;
    flex-shrink:0;
    border-left:none !important;
    border-top:1px solid rgba(180,100,255,0.18);
    padding:10px 12px;
    overflow-y:auto;
  }
  .et-header { padding:7px 10px; }
  .et-ether-count { font-size:14px; }
  .at-zoom-btn { width:32px; height:32px; font-size:16px; }
  .tt2-name { font-size:13px; }
  .tt2-desc { font-size:16px; color:rgba(255,255,255,0.75); line-height:1.75; margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,0.08); }
  .tt2-buy  { font-size:13px; padding:9px; }

  /* Colonnes Drachmes : scroll horizontal */
  .tp-cols { overflow-x:auto; overflow-y:hidden; }
  .tp-col  { min-width:155px; max-width:155px; overflow-y:auto; }

  .cx-wrap { padding:10px 10px 16px; gap:10px; }
  .cx-invest-grid { grid-template-columns:1fr; }
  .zn-wrap { padding:10px 10px 16px; }
}

/* TABLET 641-1200px */
@media (min-width:641px) and (max-width:1200px) {
  #tp-modal { width:98vw !important; height:96vh !important; }
  .at-tooltip-panel { width:250px; }
  .tp-tab-btn { font-size:13px; padding:7px 14px; }
}

/* ══════════════════════════════════════════════════════════
   DRACHMES — sous-onglets par catégorie
══════════════════════════════════════════════════════════ */
.dt-sub-tabs {
  display: flex;
  gap: 5px;
  padding: 10px 14px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(200,149,26,0.15);
  flex-shrink: 0;
}
.dt-sub-tabs::-webkit-scrollbar { display: none; }

.dt-sub-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,149,26,0.2);
  border-radius: 8px;
  color: rgba(200,180,130,0.6);
  font-family: Cinzel, serif;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}
.dt-sub-btn:hover {
  background: rgba(200,149,26,0.1);
  border-color: rgba(200,149,26,0.4);
  color: #e8d090;
}
.dt-sub-active {
  background: rgba(200,149,26,0.18) !important;
  border-color: rgba(200,149,26,0.65) !important;
  color: #f0d060 !important;
  box-shadow: 0 0 10px rgba(200,149,26,0.2);
}
.dt-sub-icon  { font-size: 15px; }
.dt-sub-label { letter-spacing: 0.03em; }

/* Drachmes count header */
.dt-drachmes-count {
  padding: 6px 14px;
  font-family: Cinzel, serif;
  font-size: 13px;
  color: #c8961a;
  border-bottom: 1px solid rgba(200,149,26,0.1);
  flex-shrink: 0;
}

/* dt-content / dt-scroll-wrap → see image backgrounds section below */

/* Tooltip branches Drachmes */
#dt-tooltip {
  position: relative;
  margin: 0 14px 8px;
  background: rgba(14,11,28,0.98);
  border: 1px solid rgba(200,149,26,0.4);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.dt-branch-tt { font-family: Cinzel, serif; }
.dt-tt-icon   { font-size: 26px; text-align: center; }
.dt-tt-name   { font-size: 15px; font-weight: 700; color: #f0d880; text-align: center; }
.dt-tt-state  { font-size: 12px; text-align: center; margin-bottom: 2px; }
.dt-tt-desc   { font-size: 13px; color: rgba(220,200,160,0.7); line-height: 1.5; }
.dt-tt-cost   { font-size: 13px; color: #c8961a; }
.dt-tt-lock   { font-size: 12px; color: #e08080; font-style: italic; }
.dt-tt-buy {
  margin-top: 4px;
  background: linear-gradient(135deg, #3a2808, #6a4810);
  border: 1px solid #c8961a;
  border-radius: 7px;
  color: #f0d060;
  font-family: Cinzel, serif;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.dt-tt-buy:hover { background: linear-gradient(135deg, #5a3a10, #8a5818); }

/* ── Pantheon canvas : no overflow ─── */
#pan-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}
#pan-header { flex-shrink: 0; }
#pan-canvas-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
#pan-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
/* tp-body — no padding for any tab with canvas content */
#tp-body:has(.pnt-wrap),
#tp-body:has(.at-svg-box),
#tp-body:has(.zn-grid) {
  padding: 0 !important;
  overflow: hidden !important;
}
#tp-body:has(.pnt-wrap) {
  display: flex;
  flex-direction: column;
}

/* Pantheon tooltip — position:fixed pour éviter le jitter */
#pan-tooltip {
  position: fixed !important;
  pointer-events: auto;
  z-index: 9999;
  width: 240px;
  background: linear-gradient(145deg, #1a1030, #0d0818);
  border: 1px solid rgba(200,149,26,0.55);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.85);
}
#pan-tooltip.hidden {
  display: none !important;
}

/* Zones tab — increase font sizes */

/* ══════════════════════════════════════════════════════════
   RUNES SCINTILLANTES — partagé tous les onglets talents
   ══════════════════════════════════════════════════════════ */
@keyframes runeGlow {
  0%   { opacity: 0.04; }
  40%  { opacity: 0.13; color: rgba(255,140,40,0.18); }
  60%  { opacity: 0.09; color: rgba(180,80,255,0.14); }
  100% { opacity: 0.04; }
}
.svg-rune {
  animation: runeGlow 3.5s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

/* Décalages de phase pour l'effet de vague */
.svg-rune:nth-child(3n)   { animation-delay: 0s; }
.svg-rune:nth-child(3n+1) { animation-delay: 1.1s; }
.svg-rune:nth-child(3n+2) { animation-delay: 2.2s; }
.svg-rune.rune-orange { color: rgba(255,140,40,0.10); }
.svg-rune.rune-purple { color: rgba(180,80,255,0.10); }

/* ══════════════════════════════════════════════════════════
   RETOUR VISUEL TALENT SÉLECTIONNÉ
   ══════════════════════════════════════════════════════════ */
.dt-node.dt-selected > polygon {
  stroke: #f0a820 !important;
  stroke-width: 3 !important;
  filter: drop-shadow(0 0 8px rgba(240,168,32,0.9));
}
.dt-node.dt-selected > text {
  fill: #ffe080 !important;
}

/* Ether — highlight selected */
.et-node-selected circle, .et-node-selected ellipse {
  stroke: #f0a820 !important;
  stroke-width: 3 !important;
}

/* ══════════════════════════════════════════════════════════
   ONGLET ÉTHER — refonte hexagonale style Drachmes
   ══════════════════════════════════════════════════════════ */
.et-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 8px;
  border-bottom: 1px solid rgba(180,100,255,0.18);
  flex-shrink: 0;
}
.et-ether-count {
  font-family: Cinzel, serif; font-size: 17px; font-weight: 700;
  color: #c090ff;
}
.at-wrap {
  flex: 1; display: flex; min-height: 0; overflow: hidden; gap: 0;
}
.at-svg-box {
  flex: 1; overflow: auto; position: relative;
  scrollbar-width: thin; scrollbar-color: rgba(180,100,255,.3) transparent;
}
.at-tooltip-panel {
  width: 250px; min-width: 220px; flex-shrink: 0;
  border-left: 1px solid rgba(180,100,255,0.18);
  padding: 14px 15px; overflow-y: auto;
  background: rgba(10,6,22,0.7);
}
.tt2-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.tt2-icon { font-size: 32px; flex-shrink: 0; }
.tt2-name { font-family: Cinzel,serif; font-size: 16px; font-weight: 700; color: #e8d8ff; }
.tt2-branch { font-size: 13px; margin-top: 3px; font-weight: 600; }
.tt2-desc { font-size:16px; color:rgba(255,255,255,0.75); line-height:1.75; margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,0.08); }
.tt2-req  { font-size: 13px; color: #e08070; margin-bottom: 6px; }
.tt2-cost { font-size: 15px; font-weight: 700; color: #c090ff; margin-bottom: 10px; }
.tt2-buy {
  display: block; width: 100%; padding: 10px; font-family: Cinzel,serif;
  font-size: 14px; font-weight: 700; border-radius: 8px; cursor: pointer;
  background: linear-gradient(135deg, rgba(130,55,230,0.28), rgba(95,35,190,0.22));
  border: 1px solid rgba(175,95,255,0.55); color: #d0a8ff;
  transition: all .15s;
}
.tt2-buy:hover { background: linear-gradient(135deg,rgba(155,75,255,0.42),rgba(115,55,215,0.34)); }
.tt2-acquired { font-size: 14px; color: #80e080; font-weight: 700; text-align:center; padding: 10px 0; }
.tt2-locked   { font-size: 13px; color: #e08060; text-align: center; padding: 8px; }
.at-tt-placeholder { color: #50405a; font-size: 14px; text-align: center; margin-top: 40px; }

/* ══════════════════════════════════════════════════════════
   ONGLET ZONES — style v0.9.2 restauré + fonts plus grandes
   ══════════════════════════════════════════════════════════ */
.zn-wrap { flex:1; overflow-y:auto; padding:18px 20px 24px; display:flex; flex-direction:column; gap:14px; scrollbar-width:thin; scrollbar-color:rgba(100,200,100,.22) transparent; }
.zn-wrap::-webkit-scrollbar { width:5px; }
.zn-wrap::-webkit-scrollbar-thumb { background:rgba(100,200,100,.22); border-radius:3px; }

.zn-curse-bar { display:flex; align-items:center; gap:10px; padding:8px 14px; background:rgba(220,60,40,0.1); border:1px solid rgba(220,100,60,0.3); border-radius:8px; font-size:14px; color:#e09070; }
.zn-score-row { display:flex; justify-content:space-between; align-items:center; padding:6px 4px; font-size:15px; }
.zn-score-label { color:#a0a080; }
.zn-score-val   { font-family:Cinzel,serif; font-weight:700; color:#f0d060; font-size:17px; }

.zn-craft-active { display:flex; flex-direction:column; gap:6px; }
.zn-craft-slot   { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:8px; padding:8px 12px; font-size:14px; }
.zn-craft-bar    { flex:1; height:8px; background:rgba(255,255,255,0.07); border-radius:4px; overflow:hidden; }
.zn-craft-fill   { height:100%; border-radius:4px; transition:width .6s; }
.zn-craft-rem    { font-size:13px; color:#a0a080; min-width:32px; text-align:right; }

.zn-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

.zn-card { border-radius:14px; padding:20px; display:flex; flex-direction:column; gap:12px; border:1px solid rgba(255,255,255,0.08); background:rgba(10,8,20,0.7); position:relative; overflow:hidden; transition:border-color .2s; }
.zn-card::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg, rgba(var(--zone-rgb,255,255,255),0.04) 0%, transparent 60%); pointer-events:none; }
.zn-card-unlocked { border-color:rgba(80,200,80,0.3) !important; background:rgba(20,40,20,0.5) !important; }
.zn-card-cursed   { border-color:rgba(220,80,40,0.35) !important; }
.zn-card-locked   { opacity:0.9; }

.zn-card-head { display:flex; align-items:center; gap:12px; }
.zn-card-icon { font-size:40px; flex-shrink:0; }
.zn-card-info { flex:1; }
.zn-card-name { font-family:Cinzel,serif; font-size:22px; font-weight:800; }
.zn-card-biome{ font-size:15px; color:#909090; margin-top:3px; }
.zn-card-status { font-size:13px; font-weight:600; padding:3px 9px; border-radius:6px; flex-shrink:0; }
.zn-card-status.zn-card-unlocked { background:rgba(80,200,80,0.12); color:#60d060; border:1px solid rgba(80,200,80,0.28); }
.zn-card-status.zn-card-cursed   { background:rgba(220,80,40,0.12);  color:#e07050; border:1px solid rgba(220,80,40,0.28); }
.zn-card-status.zn-card-locked   { background:rgba(100,100,120,0.12);color:#707090; border:1px solid rgba(100,100,120,0.26); }

.zn-prod { font-size:16px; color:#a0c080; display:flex; flex-wrap:wrap; gap:8px; }
.zn-residual { font-size:13px; color:#e0a060; background:rgba(220,140,40,0.08); padding:6px 10px; border-radius:6px; border:1px solid rgba(220,140,40,0.2); }

.zn-conds { display:flex; flex-direction:column; gap:5px; }
.zn-cond  { font-size:15px; display:flex; align-items:center; gap:6px; padding:3px 0; }
.zn-cond-ok { color:#80b880; }
.zn-cond-no { color:#7070a0; }
.zn-craft-bar-sm { flex:1; height:5px; background:rgba(255,255,255,0.07); border-radius:3px; overflow:hidden; margin-left:6px; }

.zn-key-section { display:flex; flex-direction:column; gap:6px; }
.zn-key-label  { font-size:14px; color:#a09060; line-height:1.4; }
.zn-key-ready  { font-size:14px; font-weight:700; color:#f0d060; text-align:center; padding:8px; background:rgba(240,208,96,0.08); border-radius:8px; border:1px solid rgba(240,208,96,0.25); }

.zn-ritual-section { display:flex; flex-direction:column; gap:6px; }
.zn-ritual-label { font-size:13px; color:#a09060; }

.zn-btn { width:100%; padding:11px 14px; font-family:Cinzel,serif; font-size:15px; font-weight:700; border-radius:8px; cursor:pointer; transition:all .15s; text-align:center; background:linear-gradient(135deg,rgba(100,180,100,0.15),rgba(60,140,60,0.12)); border:1px solid rgba(100,180,100,0.4); color:#90d090; }
.zn-btn:hover { background:linear-gradient(135deg,rgba(100,200,100,0.26),rgba(70,160,70,0.2)); }
.zn-btn-unlock { background:linear-gradient(135deg,rgba(180,140,40,0.2),rgba(120,90,20,0.16)); border-color:rgba(200,160,60,0.52); color:#f0d060; font-size:15px; padding:11px; }
.zn-btn-unlock:hover { background:linear-gradient(135deg,rgba(220,170,60,0.3),rgba(150,110,30,0.22)); }
.zn-btn-disabled { background:rgba(60,60,80,0.3); border-color:rgba(100,100,120,0.25); color:#606070; cursor:not-allowed; }
.zn-btn-disabled:hover { background:rgba(60,60,80,0.3); }

.zn-curse-detail { display:flex; justify-content:space-between; align-items:center; padding:7px 10px; background:rgba(220,60,40,0.08); border:1px solid rgba(220,80,40,0.2); border-radius:8px; font-size:13px; color:#e07050; }
.zn-curse-timer  { font-weight:700; }

@media (max-width:640px) {
  .zn-wrap { padding:10px 10px 14px; }
  .zn-grid { grid-template-columns:1fr; }
  .zn-card-name { font-size:16px; }
  .at-wrap { flex-direction: column; }
  .at-tooltip-panel { width:100% !important; min-height:150px; border-left:none; border-top:1px solid rgba(180,100,255,0.2); }
}

/* ══════════════════════════════════════════════════════════
   TALENT SELECTED HIGHLIGHT — tous onglets
   ══════════════════════════════════════════════════════════ */
.dt-node.dt-selected path:first-of-type {
  stroke: #f0c840 !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 8px rgba(240,200,64,0.9)) drop-shadow(0 0 16px rgba(240,200,64,0.5));
}

/* ══════════════════════════════════════════════════════════
   ETHER description font boost
   ══════════════════════════════════════════════════════════ */

/* Zone production items with icons */
.zn-prod { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.zn-prod-item { display:inline-flex; align-items:center; gap:5px; background:rgba(100,180,80,0.1); border:1px solid rgba(100,180,80,0.2); border-radius:8px; padding:5px 10px; }
.zn-prod-icon { font-size:20px; line-height:1; }
.zn-prod-val  { font-size:17px; font-weight:700; color:#90e060; font-family:Cinzel,serif; }
.zn-prod-name { font-size:13px; color:#80a870; }

@media (max-width:640px) {
  .zn-grid { grid-template-columns:1fr !important; }
}

/* ══════════════════════════════════════════════════════════
   PANTHÉON — Redesign onglet-par-branche
   ══════════════════════════════════════════════════════════ */
.pan-wrap { display:flex; flex-direction:column; height:100%; overflow:hidden; }

.pan-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px 8px;
  border-bottom:1px solid rgba(200,149,26,0.2);
  flex-shrink:0;
}
.pan-title { font-family:Cinzel,serif; font-size:15px; color:#e8c040; font-weight:700; }
.pan-ether { font-family:Cinzel,serif; font-size:13px; color:#a0d0ff; }

.pan-layout { display:flex; flex:1; overflow:hidden; }

/* Branch tab list (left sidebar) */
.pan-branch-tabs {
  display:flex; flex-direction:column; gap:3px;
  padding:8px 6px; overflow-y:auto; flex-shrink:0;
  width:130px; border-right:1px solid rgba(200,149,26,0.12);
  background:rgba(8,5,18,0.5);
}
.pan-branch-btn {
  display:flex; align-items:center; gap:6px;
  padding:7px 8px; border-radius:8px;
  border:1px solid rgba(200,149,26,0.15);
  background:rgba(200,149,26,0.04);
  cursor:pointer; transition:all 0.15s; text-align:left;
}
.pan-branch-btn:hover { background:rgba(200,149,26,0.12); }
.pan-branch-btn.active { background:rgba(200,149,26,0.18); border-color:rgba(200,149,26,0.6); }
.pan-branch-btn.locked { opacity:0.5; cursor:not-allowed; }
.pan-bb-icon { font-size:18px; flex-shrink:0; }
.pan-bb-label { font-family:Cinzel,serif; font-size:10px; flex:1; line-height:1.3; }
.pan-bb-count { font-size:9px; background:rgba(200,149,26,0.3); color:#e8c040; border-radius:4px; padding:1px 4px; flex-shrink:0; }
.pan-bb-lock { font-size:11px; flex-shrink:0; }

/* Tree area (right) */
.pan-tree-area { flex:1; overflow-y:auto; padding:10px 12px; display:flex; flex-direction:column; gap:10px; }

.pan-branch-header {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:10px; border:1px solid;
  background:rgba(20,15,35,0.7); flex-shrink:0;
}
.pan-bh-icon { font-size:28px; }
.pan-bh-name { font-family:Cinzel,serif; font-size:15px; font-weight:700; }

.pan-ring-section { display:flex; flex-direction:column; gap:6px; }
.pan-ring-label { font-family:Cinzel,serif; font-size:11px; padding:4px 8px; border-left:3px solid; border-radius:0 4px 4px 0; background:rgba(255,255,255,0.04); }
.pan-ring-nodes { display:flex; flex-direction:column; gap:5px; }

/* Node card */
.pan-node-card {
  display:flex; align-items:center; gap:10px;
  padding:8px 10px; border-radius:10px; border:1px solid;
  cursor:pointer; transition:all 0.15s;
}
.pan-node-card:hover { filter:brightness(1.2); transform:translateX(2px); }
.pan-node-card.locked { opacity:0.6; cursor:default; }
.pan-node-card.locked:hover { filter:none; transform:none; }
.pan-node-hex { flex-shrink:0; }
.pan-node-info { flex:1; min-width:0; }
.pan-node-name { font-family:Cinzel,serif; font-size:13px; font-weight:700; color:#f0ecff; margin-bottom:2px; }
.pan-node-desc { font-size:11px; color:rgba(255,255,255,0.55); line-height:1.4; }
.pan-node-pts  { font-size:10px; color:#f0d060; margin-top:3px; }
.pan-node-cost { font-size:11px; white-space:nowrap; flex-shrink:0; padding:3px 7px; border-radius:6px; font-family:Cinzel,serif; }
.pan-node-cost.cost-ok   { background:rgba(100,200,100,0.12); color:#90e080; border:1px solid rgba(100,200,100,0.3); }
.pan-node-cost.cost-done { background:rgba(200,149,26,0.12); color:#e8c040; border:1px solid rgba(200,149,26,0.3); }
.pan-node-cost.cost-lock { background:rgba(200,80,80,0.10); color:#e08080; border:1px solid rgba(200,80,80,0.25); }
.pan-node-card.uncapped .pan-node-cost.cost-ok { background:rgba(160,80,255,0.15); color:#c090ff; border-color:rgba(160,80,255,0.4); }

.pan-locked-msg { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; gap:8px; color:#666; text-align:center; }

.pan-tt-box { display:none; } /* not used in card layout */

/* ══════════════════════════════════════════════════════════
   PANTHÉON v2 — arbre de talents redesigné
   ══════════════════════════════════════════════════════════ */

/* Branch nav column */

/* Node grid content area */

/* old pnt rules removed — see v0.9.88 block below */

/* ══════════════════════════════════════════════════════════
   SUB-ONGLET BACKGROUNDS — images de fond thématiques
   v0.9.88
══════════════════════════════════════════════════════════ */

/* ── Drachmes branch backgrounds (new hi-res images) ── */
#dt-content {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
}

/* Background images are now embedded directly in the SVG (no CSS pseudo-element needed) */
/* These rules kept for fallback reference only */

/* Scroll wrapper: centered, transparent — image shows from #dt-content::before */
#dt-scroll-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,149,26,0.3) transparent;
}
/* SVG inside scroll wrapper: no background */
#dt-scroll-wrap svg {
  display: block;
  background: transparent !important;
}

/* ── Drachmes 2-panel layout ── */
.dt-body-row {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Left: scrollable SVG area */
.dt-body-row #dt-scroll-wrap {
  flex: 1;
  min-width: 0;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,149,26,0.3) transparent;
}

/* Right: persistent detail panel */
.dt-side-panel {
  width: 240px;
  flex-shrink: 0;
  background: rgba(8,5,18,0.92);
  border-left: 1px solid rgba(200,149,26,0.18);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,149,26,0.2) transparent;
}

.dt-side-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Reuse dt-tt-* styles for side panel content */
.dt-side-panel .dt-tt-icon {
  font-size: 36px;
  text-align: center;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 8px currentColor);
}
.dt-side-panel .dt-tt-name {
  font-family: Cinzel, serif;
  font-size: 13px;
  font-weight: 800;
  color: #f0e8d0;
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.3;
}
.dt-side-panel .dt-tt-state {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
}
.dt-side-panel .dt-tt-desc {
  font-size: 12px;
  color: rgba(220,200,160,0.82);
  line-height: 1.6;
  padding: 8px 0;
  border-top: 1px solid rgba(200,149,26,0.12);
  border-bottom: 1px solid rgba(200,149,26,0.12);
  margin-bottom: 8px;
}
.dt-side-panel .dt-tt-cost {
  font-size: 11px;
  color: rgba(200,180,100,0.7);
  text-align: center;
  margin-bottom: 8px;
}
.dt-side-panel .dt-tt-lock {
  font-size: 10px;
  color: rgba(180,160,120,0.5);
  margin-bottom: 8px;
  line-height: 1.5;
}
.dt-side-panel .dt-tt-branch {
  font-size: 10px;
  color: rgba(180,160,120,0.5);
  text-align: center;
  margin-bottom: 10px;
}
.dt-side-panel .dt-tt-buy {
  width: 100%;
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 7px;
  border: 1.5px solid rgba(200,149,26,0.55);
  background: rgba(60,40,10,0.45);
  color: #f0d880;
  font-family: Cinzel, serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.dt-side-panel .dt-tt-buy:hover:not(:disabled) {
  background: rgba(120,90,20,0.55);
  border-color: rgba(240,200,60,0.8);
  transform: translateY(-1px);
}
.dt-side-panel .dt-tt-buy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .dt-side-panel { display: none; }
}

/* ══════════════════════════════════════════════════════════
   PANTHÉON — refonte visuelle v0.9.88
   Layout elliptique, 6 dieux seulement
══════════════════════════════════════════════════════════ */

/* Wrap principal */
.pnt-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.pnt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 8px;
  border-bottom: 1px solid rgba(200,149,26,0.2);
  background: rgba(4,2,14,0.98);
  flex-shrink: 0;
}

.pnt-title {
  font-family: 'Cinzel Decorative', Cinzel, serif;
  font-size: 16px;
  font-weight: 800;
  color: #e8d070;
  letter-spacing: 2px;
}

.pnt-ether {
  font-family: Cinzel, serif;
  font-size: 13px;
  color: #a0d8ff;
}

.pnt-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Canvas SVG zone — takes most width */
.pnt-canvas-box {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #100824 0%, #04020e 100%);
  cursor: grab;
}
.pnt-canvas-box:active { cursor: grabbing; }

/* Side detail panel */
.pnt-side {
  width: 240px;
  min-width: 200px;
  flex-shrink: 0;
  overflow-y: auto;
  background: rgba(6,3,16,0.98);
  border-left: 1px solid rgba(200,149,26,0.18);
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.pnt-side::-webkit-scrollbar { width: 4px; }
.pnt-side::-webkit-scrollbar-thumb { background: rgba(200,149,26,0.3); border-radius: 2px; }

.pnt-hint {
  color: rgba(160,140,100,0.45);
  font-family: Cinzel, serif;
  font-size: 12px;
  text-align: center;
  margin-top: 40px;
  line-height: 1.8;
}

/* Detail card */
.pnt-d-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pnt-d-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pnt-d-info { flex: 1; min-width: 0; }
.pnt-d-name {
  font-family: Cinzel, serif;
  font-size: 13px;
  font-weight: 700;
  color: #f0e090;
  line-height: 1.3;
}
.pnt-d-branch {
  font-family: Cinzel, serif;
  font-size: 11px;
  margin-top: 2px;
}
.pnt-d-ring {
  font-size: 10px;
  color: rgba(160,140,100,0.6);
  margin-top: 2px;
  font-family: Cinzel, serif;
}
.pnt-d-state {
  font-family: Cinzel, serif;
  font-size: 12px;
  font-weight: 700;
}
.pnt-d-desc {
  font-size: 12px;
  color: rgba(200,185,155,0.85);
  line-height: 1.5;
  border-left: 2px solid rgba(var(--rgb,200,149,26),0.5);
  padding-left: 8px;
}
.pnt-d-prereq {
  font-size: 10.5px;
  color: rgba(180,160,120,0.7);
}
.pnt-d-buy {
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(200,149,26,0.18);
  border: 1px solid rgba(200,149,26,0.55);
  color: #f0d060;
  font-family: Cinzel, serif;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  line-height: 1.4;
}
.pnt-d-buy:hover:not(.disabled):not([disabled]) {
  background: rgba(200,149,26,0.32);
  border-color: rgba(240,200,64,0.9);
  color: #fff8d0;
}
.pnt-d-buy.disabled, .pnt-d-buy[disabled] {
  opacity: 0.4;
  cursor: default;
  background: rgba(60,60,80,0.3);
  border-color: rgba(100,100,120,0.3);
  color: rgba(160,140,100,0.5);
}

@media (max-width: 700px) {
  .pnt-body { flex-direction: column; }
  .pnt-side { width: 100%; min-width: unset; border-left: none; border-top: 1px solid rgba(200,149,26,0.18); max-height: 180px; }
  .pnt-canvas-box { min-height: 300px; }
}

/* ═══ Panthéon — edge animations (SVG stroke-dashoffset flow) ════════════ */
@keyframes pnt-flow {
  from { stroke-dashoffset: 120; }
  to   { stroke-dashoffset: 0;   }
}
@keyframes pnt-breathe {
  0%,100% { opacity: 0.18; }
  50%      { opacity: 0.55; }
}
@keyframes pnt-pulse-glow {
  0%,100% { filter: url(#glow-s); opacity: 0.28; }
  50%      { filter: url(#glow-m); opacity: 0.60; }
}
@keyframes pnt-ember {
  0%       { stroke-dashoffset: 0;  opacity: 0.55; }
  50%      { opacity: 0.80; }
  100%     { stroke-dashoffset: 28; opacity: 0.55; }
}
@keyframes pnt-ribbon {
  from { stroke-dashoffset: 32; }
  to   { stroke-dashoffset: 0;  }
}
@keyframes pnt-orb-pulse {
  0%,100% { r: 36; opacity: 0.80; }
  50%      { r: 41; opacity: 1.00; }
}

/* Active edge glow layers pulse */
#pnt-svg .edge-zeus-glow    { animation: pnt-breathe 1.8s ease-in-out infinite; }
#pnt-svg .edge-dem-glow     { animation: pnt-breathe 2.2s ease-in-out infinite 0.4s; }
#pnt-svg .edge-hep-ember    { animation: pnt-ember   1.0s linear infinite; }
#pnt-svg .edge-aph-ribbon   { animation: pnt-ribbon  3.0s linear infinite; }
#pnt-svg .edge-had-fissure  { animation: pnt-breathe 2.5s ease-in-out infinite 0.8s; }
#pnt-svg .edge-art-flow     { animation: pnt-flow    2.0s linear infinite; }


/* Rangs d'un nœud dans le panneau détail */
.pnt-d-prereq {
  font-size: 11px;
  color: rgba(180,160,110,0.75);
  margin-bottom: 6px;
  padding: 5px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 5px;
}
.pnt-d-ranks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 0;
  padding: 6px 8px;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  max-height: 120px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.pnt-d-rank-row {
  font-size: 10.5px;
  font-family: Cinzel, serif;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1px 0;
}