/* Interaktivní rodokmen – samostatné okno bez zásahu do herních výpočtů. */
.pedigree-open-button{font-weight:700;padding:12px 18px!important}
.pedigree-modal[hidden]{display:none!important}
body.pedigree-modal-open{overflow:hidden}
.pedigree-modal{position:fixed;inset:0;z-index:999999;background:rgba(3,12,18,.88);display:flex;align-items:center;justify-content:center;padding:16px;color:#f3fbff}
.pedigree-modal-shell{width:min(1520px,100%);height:min(92vh,960px);background:#142b35;border:1px solid #47737e;border-radius:16px;box-shadow:0 22px 70px #0009;display:flex;flex-direction:column;overflow:hidden;padding:18px}
.pedigree-modal-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.pedigree-modal-header h2{font-size:21px;margin:0;line-height:1.3}
.pedigree-close{background:#365762!important;color:#fff!important;border:1px solid #66848e!important;white-space:nowrap}
.pedigree-muted{color:#b6d3dc;font-size:13px;margin:9px 0 14px}
.pedigree-modal-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:14px;min-height:0;flex:1}
.pedigree-tree-scroll{overflow:auto;background:#10232d;border:1px solid #355663;border-radius:12px;padding:16px}
.pedigree-tree-columns{display:grid;grid-template-columns:200px 215px 235px 250px;gap:20px;min-width:max-content;min-height:100%}
.pedigree-generation{display:flex;flex-direction:column;min-width:0}
.pedigree-generation h3{font-size:13px;text-align:center;color:#a8d5e0;margin:0 0 14px}
.pedigree-generation-nodes{display:flex;flex:1;flex-direction:column;justify-content:space-around;gap:12px}
.pedigree-node{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;min-height:105px;width:100%;background:#23424e!important;border:1px solid #4d7480!important;border-radius:11px;padding:8px!important;color:#f5fbfd!important;white-space:normal!important;position:relative}
.pedigree-node:not(:disabled):hover{border-color:#65dcb3!important;background:#2c5860!important}
.pedigree-node.selected{background:#225c50!important;border:2px solid #4cdea4!important}
.pedigree-node.missing{opacity:.42;cursor:default}
.pedigree-role{font-size:11px;color:#b6d5df}
.pedigree-node strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}
.pedigree-node-score{font-size:11px;color:#b8e6d1}
.pedigree-avatar{width:80px;height:43px;display:flex;align-items:center;justify-content:center;font-size:26px}
.pedigree-avatar img{width:100%;height:100%;object-fit:contain}
.pedigree-detail{overflow-y:auto;background:#1c3944;border:1px solid #456976;border-radius:12px;padding:15px}
.pedigree-detail-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.pedigree-detail-head .pedigree-avatar{width:100px;height:75px;flex-shrink:0}
.pedigree-detail-head h3{font-size:16px;margin:0;overflow-wrap:anywhere}
.pedigree-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pedigree-stat{background:#284956;border:1px solid #3b6170;border-radius:8px;padding:9px;min-width:0}
.pedigree-stat small{display:block;color:#b8d4de;font-size:11px;margin-bottom:5px}
.pedigree-stat strong{display:block;font-size:13px;overflow-wrap:anywhere}
.pedigree-descendants{margin-top:18px;border-top:1px solid #426471;padding-top:10px}
.pedigree-descendants h4{margin:0 0 9px}
.pedigree-child-list{display:flex;flex-wrap:wrap;gap:7px}
.pedigree-child-list button,.pedigree-root-button{background:#2b5c60!important;border:1px solid #5c8d91!important;color:#fff!important;font-size:12px;padding:8px!important}
.pedigree-root-button{margin-top:12px;width:100%}
@media(max-width:900px){.pedigree-modal{padding:6px}.pedigree-modal-shell{height:98vh;padding:10px}.pedigree-modal-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(180px,1fr) minmax(180px,1fr)}.pedigree-tree-columns{grid-template-columns:155px 165px 180px 190px;gap:12px}.pedigree-node{min-height:85px}.pedigree-modal-header h2{font-size:16px}}
