/* The crypt follows the same ivory panels and physical card component as equipment. */
.necro-path-panel{padding:12px;border-color:#a6bda9;background:linear-gradient(135deg,#f9faec,#edf2e6)}
.necro-path-panel>header{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.necro-path-panel>header>img{width:30px;height:32px;object-fit:contain;flex:none}
.necro-path-panel header div,.necro-crypt-open span{display:grid;gap:3px;min-width:0}
.necro-path-panel small{font-size:10px;color:#879075}
.necro-style-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.necro-style-options button{min-width:0;min-height:36px;border:1px solid #b9c9b0;border-radius:8px;background:#fffdf2;color:#537467;font:700 12px Interface,sans-serif;transition:background .2s,box-shadow .2s}
.necro-style-options button[aria-pressed=true]{background:#dcead7;border-color:#5c9381;box-shadow:inset 0 0 0 2px #fff8}
.necro-style-options button:disabled{opacity:.55}
.necro-crypt-open{width:100%;display:flex;align-items:center;gap:10px;margin-top:10px;padding:8px 10px;border:1px solid #c5cfb7;border-radius:9px;background:#fffdf1;color:#426d61;text-align:left;font:inherit}
.necro-crypt-open>img{width:32px;height:40px;object-fit:contain}.necro-crypt-open>i{margin-left:auto;font-size:24px;font-style:normal}
.necro-crypt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:8px 0}
.necro-crypt-panel{max-height:85dvh;overflow-y:auto}.necro-crypt-panel .hint{font-size:11px;line-height:1.5}
.necro-soul{height:190px;min-width:0;overflow:visible!important;background:none!important}
.necro-soul .relic-face{padding:9px;box-sizing:border-box;background:linear-gradient(140deg,#f7f8eb,#e0ede0);border:1px solid #81aa98;display:flex;flex-direction:column;gap:7px;overflow:hidden;border-radius:12px}
.necro-soul header{display:flex;justify-content:space-between;align-items:center;color:#80947b;font-size:9px}.necro-soul header img{width:17px;height:17px;object-fit:contain}
.necro-soul strong{font-size:11px;line-height:1.3;color:#3d6659}.necro-soul .relic-front>strong{height:29px;text-align:center;overflow:hidden}
.necro-vessel{position:relative;height:95px;flex:1;min-height:0;isolation:isolate}
.necro-vessel>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.necro-vessel>i{position:absolute;bottom:10%;left:26%;right:26%;height:calc(var(--soul-fill)*.72);border-radius:25% 25% 35% 35%;background:linear-gradient(#58b7b999,#3b8f9d);box-shadow:0 0 13px #55abb469;z-index:-1;transition:height .4s}
.necro-vessel .necro-vessel-ghost{inset:24% 20% 15%;width:60%;height:61%;opacity:.4;filter:grayscale(1) sepia(.4) hue-rotate(110deg)}
.necro-soul.is-unknown .necro-vessel{filter:grayscale(1);opacity:.45}.necro-soul-count{text-align:center;color:#47695c;font-size:12px}
.necro-facts{display:grid;grid-template-columns:1fr 1fr;gap:5px}.necro-facts>span{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;padding:5px 3px;border:1px solid #c3d0b4;border-radius:5px;background:#fffef2;font-size:10px;color:#537066}.necro-facts img{width:13px;height:13px;object-fit:contain}
.necro-soul .relic-back p{margin:0;font-size:10px;line-height:1.4;overflow:hidden;flex:1}.necro-soul-price{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;color:#55766b}.necro-soul-price img{width:18px;height:18px;object-fit:contain}
.necro-inspect>img{display:block;width:120px;height:110px;object-fit:contain;margin:4px auto 14px;filter:drop-shadow(0 0 5px #71b8b36b)}.necro-inspect>.necro-facts>span{font-size:13px;padding:9px}.necro-inspect p{font-size:12px;line-height:1.55;color:#748071}
.necro-shards h3{font-size:12px}.necro-shards>span{display:flex;align-items:center;gap:8px;font-size:12px}.necro-shards img{width:24px;height:30px;object-fit:contain}
.necro-picker-shade{position:absolute;inset:0;z-index:13000;background:#243b345c;display:flex;align-items:flex-end;justify-content:center}
.necro-picker{width:100%;box-sizing:border-box;border:1px solid #b0b99b;border-radius:18px 18px 0 0;padding:15px;background:linear-gradient(#fffdf2,#edf0df);box-shadow:0 -8px 30px #183b3033;animation:necro-picker-in .22s ease-out;max-height:72%;display:flex;flex-direction:column}
.necro-picker>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#3b685b}.necro-picker>header button{width:34px;height:34px;border:1px solid #cfcbab;border-radius:9px;background:#fff8e8;color:#4b7668;font-size:23px;line-height:1}
.necro-picker>div{overflow-y:auto;min-height:0;display:grid;gap:7px}.necro-picker [data-necro-option]{display:flex;align-items:center;gap:12px;padding:8px;border:1px solid #bdc9ac;border-radius:9px;background:#f9fbed;color:#416e5c;text-align:left}.necro-picker [data-necro-option]>img{width:48px;height:48px;object-fit:contain}.necro-picker [data-necro-option]>span{display:grid;gap:4px}.necro-picker small{font-size:11px;color:#8a9277}
.necro-companions{position:absolute;bottom:25%;left:72%;display:flex;align-items:flex-end;gap:2px;z-index:3}
.necro-companion{position:relative;width:54px;height:66px;border:0;background:none;padding:0;cursor:pointer;animation:necro-arrive .5s ease-out}
.necro-pet-sprite{position:absolute;inset:0 0 9px;display:block;opacity:.85;filter:drop-shadow(0 0 2px #63c5b9);background-size:0 0!important}
.necro-pet-sprite .combat-frame-art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.necro-pet-hp{position:absolute;left:5px;right:5px;bottom:4px;height:3px;background:#d8ddc4;border-radius:3px;overflow:hidden}.necro-pet-hp i{display:block;height:100%;background:#68ac98;transition:width .2s}
.necro-pet-turns{position:absolute;bottom:-10px;right:3px;min-width:16px;height:14px;display:grid;place-items:center;border:1px solid #b8c5a3;border-radius:4px;background:#fafbe9;color:#537366;font:700 9px/1 Interface,sans-serif}
.necro-companion.is-ending{pointer-events:none;animation:necro-depart .4s ease-in forwards}.necro-flying-soul{position:fixed;width:24px;height:28px;object-fit:contain;pointer-events:none;z-index:17000}
.necro-pet-health{position:relative;overflow:hidden;padding:8px;text-align:center;background:#e7ecd9;color:#4c7266;font-size:13px}.necro-pet-health i{position:absolute;bottom:0;left:0;height:3px;background:#71ac98}
@keyframes necro-picker-in{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes necro-arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes necro-depart{to{opacity:0;transform:translateY(-10px)}}
@media(max-width:350px){.necro-crypt-grid{gap:6px}.necro-soul{height:176px}.necro-soul .relic-face{padding:7px}}

.necro-status-burst{position:absolute;top:45%;left:50%;width:80px;height:100px;object-fit:contain;z-index:6;pointer-events:none}

/* Summoned creatures stand in front of their master, face the enemy and read clearly. */
.necro-companions{left:auto;right:-58%;bottom:2%;gap:0;align-items:flex-end;pointer-events:auto}
.necro-companion{width:86px;height:78px;margin-left:-14px;animation:none;overflow:visible}
.necro-companion:first-child{margin-left:0}
.necro-pet-sprite{inset:0 0 10px;opacity:.94;transform:scaleX(-1);filter:drop-shadow(0 0 3px #5fd0c2aa) saturate(.75) brightness(1.04)}
.necro-companion::before{content:'';position:absolute;left:12%;right:12%;bottom:6px;height:9px;border-radius:50%;background:radial-gradient(#3f9d9466,#3f9d9400 70%);pointer-events:none}
.necro-pet-hp{left:16px;right:16px;bottom:1px;height:4px;border:1px solid #fff9;box-shadow:0 1px 2px #0002}
.necro-pet-turns{bottom:-1px;right:2px;height:13px;min-width:15px;font-size:8.5px}
.necro-pet-burst{position:absolute;left:50%;bottom:4px;width:64px;height:64px;object-fit:contain;pointer-events:none;z-index:2}
.necro-companion.is-acting{z-index:5}
.necro-companion.is-ending{animation:necro-depart .42s ease-in forwards}
.perf-lite .necro-pet-sprite{filter:saturate(.75) brightness(1.04)}

.necro-companions{right:-112%;bottom:-2%}
.necro-companion{width:124px;height:106px;margin-left:-34px}
.necro-pet-sprite{inset:0 0 12px}
.necro-pet-hp{left:34px;right:34px}
.necro-pet-turns{right:26px}

/* Necromancer spell objects: soft teal soul light, no heavy filters on phones. */
#battle-field .effect-necro .effect-painting{width:100%;height:100%;object-fit:contain}
#battle-field .effect-necro.necro-bolt .effect-painting{filter:drop-shadow(0 0 6px #6fe3d0)}
#battle-field .effect-necro.necro-curse-mark .effect-painting{filter:drop-shadow(0 0 8px #9b6bd6)}
.perf-lite #battle-field .effect-necro .effect-painting{filter:none}
.necro-status-burst{width:96px;height:112px;filter:drop-shadow(0 0 6px #7fd8c8aa)}
.perf-lite .necro-status-burst{filter:none}

/* Crypt: each vessel shows its own creature; unknown kinds are a dark silhouette. */
.necro-vessel .necro-vessel-ghost{inset:30% 14% 18%;width:72%;height:52%;opacity:.92;filter:drop-shadow(0 0 4px #6fd6c8aa);z-index:1}
.necro-soul.is-unknown .necro-vessel{filter:none;opacity:1}
.necro-soul.is-unknown .necro-vessel>img:not(.necro-vessel-ghost){opacity:.5;filter:grayscale(1)}
.necro-soul.is-unknown .necro-vessel-ghost{filter:brightness(0);opacity:.28}
.necro-soul.is-known .necro-vessel>img:not(.necro-vessel-ghost){opacity:.85}
.perf-lite .necro-vessel .necro-vessel-ghost{filter:none}
.perf-lite .necro-soul.is-unknown .necro-vessel-ghost{filter:brightness(0)}

/* Summon selection uses small, fixed portrait cards, without running titles. */
.necro-summon-picker .necro-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:2px 2px 8px;align-items:start}
.necro-summon-picker .necro-choice-grid.is-single{grid-template-columns:minmax(0,170px);justify-content:center}
.necro-summon-picker [data-necro-option].necro-summon-choice{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px;min-width:0;border:1px solid #899c60;border-radius:13px;text-align:center;background:linear-gradient(145deg,#fffdf5,#edf2df);box-shadow:inset 0 0 0 3px #fffdf1,0 2px 5px #263f2514;color:#36594a}
.necro-choice-art{display:grid!important;place-items:center;height:76px;border-bottom:1px solid #d3d9bd;background:radial-gradient(ellipse,#dfe9cb88,transparent 70%)}
.necro-choice-art>img{width:94px;height:70px;object-fit:contain;object-position:center}
.necro-summon-choice>strong{font:700 13px/1.2 Interface,sans-serif;white-space:normal;min-height:16px;margin:0;animation:none;transform:none}
.necro-summon-choice .necro-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:0}
.necro-summon-choice .necro-facts>span{min-width:0;min-height:23px;display:flex;align-items:center;justify-content:center;gap:4px;padding:2px;border:1px solid #d3ddbc;border-radius:5px;background:#fffef5;font:700 10px/1 Interface,sans-serif}
.necro-summon-choice .necro-facts img{width:13px;height:13px;object-fit:contain}
.necro-summon-choice>.necro-choice-footer{display:flex!important;align-items:center;justify-content:space-between;gap:4px;border-top:1px solid #d3d9bd;padding-top:7px}
.necro-choice-footer>span{display:flex;align-items:center;gap:4px;font-size:12px}.necro-choice-footer img{width:18px;height:18px;object-fit:contain}.necro-choice-footer small{font-size:9px;white-space:nowrap}
.necro-summon-choice>.necro-choice-action{display:block!important;padding:6px 3px;border:1px solid #a7b584;border-radius:6px;background:#e1e9cf;font:700 11px/1.2 Interface,sans-serif}
.necro-summon-choice:focus-visible{outline:2px solid #6c8a44;outline-offset:2px}
.necro-summon-picker{width:min(360px,calc(100% - 24px));max-height:24dvh;padding:10px!important;display:flex;flex-direction:column;overflow:hidden}
.necro-summon-picker>header{flex:none;margin-bottom:7px}
.necro-summon-picker .necro-choice-grid,.necro-summon-picker .necro-choice-grid.is-single{display:flex!important;justify-content:flex-start;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x mandatory;touch-action:pan-x;min-height:0;padding:2px 1px 4px}
.necro-choice-grid::-webkit-scrollbar{display:none}
.necro-summon-picker [data-necro-option].necro-summon-choice{flex:0 0 132px;scroll-snap-align:start;grid-template-columns:40px minmax(0,1fr);grid-template-rows:36px 20px 20px;gap:4px;padding:7px;text-align:left;min-height:0}
.necro-summon-choice .necro-choice-art{height:36px;grid-row:1;grid-column:1;border:0}.necro-summon-choice .necro-choice-art>img{width:38px;height:36px}
.necro-summon-choice>strong{font-size:10px;align-self:center;min-height:0;grid-column:2;grid-row:1}
.necro-summon-choice .necro-facts{display:none!important}
.necro-summon-choice>.necro-choice-footer{grid-column:1/-1;grid-row:2;padding:0;border:0;gap:4px}
.necro-choice-footer>span{font-size:10px}.necro-choice-footer img{width:13px;height:13px}.necro-choice-footer small{font-size:8px}
.necro-summon-choice>.necro-choice-action{grid-column:1/-1;grid-row:3;font-size:9px;padding:3px;text-align:center}

/* Soul library: clean creature portraits, no vessels or overlapping art. */
.necro-path-panel{padding:0!important;overflow:hidden;background:#fcfbed;border-color:#c9d2b4}
.necro-path-panel .necro-crypt-open{margin:0!important;border:0!important;background:none;padding:14px;gap:12px}
.necro-crypt-open>img{width:29px;height:32px}.necro-crypt-open strong{font:700 15px/1.3 Interface,sans-serif}.necro-crypt-open small{font-size:10px}
.necro-crypt-panel.soul-library{width:min(420px,calc(100% - 20px));padding:16px!important;max-height:84dvh;scrollbar-width:none;overflow-x:hidden}
.necro-crypt-panel::-webkit-scrollbar{display:none}
.soul-library .modal-header{align-items:center;margin-bottom:13px}.soul-library .modal-header h2{font-size:19px;margin:0}
.soul-library .modal-header button{width:32px;height:32px;min-height:32px;display:grid;place-items:center;padding:0;line-height:1;font-size:22px;flex:none}
.soul-library-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #d6dcc3;border-radius:10px;background:#edf2e2;color:#68805b;font:11px/1.3 Interface,sans-serif}
.soul-library-summary span,.soul-inspect-cost span{display:flex;align-items:center;gap:5px}.soul-library-summary img{width:19px;height:19px;object-fit:contain}
.soul-library-list{display:grid;gap:8px;margin-top:12px}
.soul-library-entry{position:relative;min-width:0}
.soul-library-row{width:100%;display:flex;align-items:center;gap:10px;min-height:82px;padding:9px!important;text-align:left;border:1px solid #cbd5b6;border-radius:11px;background:linear-gradient(130deg,#fffef8,#f0f4e5);color:#3e6253;box-sizing:border-box}
.soul-library-favorite{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:42px;height:44px;padding:0;border:0;border-radius:10px;background:#fffdf3b8;color:#596748;font:24px/1 sans-serif}
.soul-library-favorite[aria-pressed="true"]{color:#926717}
.soul-library-favorite:disabled{opacity:.65}
.soul-library-row.is-unknown{background:#f8f7ee;color:#8a917c}.soul-library-row.is-unknown img{filter:grayscale(1);opacity:.6}
.soul-library-portrait{width:54px;height:58px;display:grid;place-items:center;flex:none;border:1px solid #d7dfc5;border-radius:9px;background:#eaf0df}.soul-library-portrait img{width:50px;height:52px;object-fit:contain}
.soul-library-copy{min-width:0;flex:1;display:grid;gap:5px}.soul-library-copy strong{font:700 12px/1.2 Interface,sans-serif}.soul-library-copy small{font:9px/1.3 Interface,sans-serif;color:#91947d}.soul-library-copy i{height:3px;display:block;background:#e1e6d3;border-radius:3px;overflow:hidden}.soul-library-copy em{display:block;height:100%;background:#8eaa66;border-radius:3px}
.soul-library-stock{display:grid;gap:3px;text-align:center;flex:none}.soul-library-stock b{font:700 15px/1 Interface,sans-serif}.soul-library-stock small{font:9px/1 Interface,sans-serif;color:#929881}.soul-library-arrow{font:21px/1 Interface,sans-serif;color:#8b9b74}
.soul-library-back{border:0;background:none;padding:0 0 10px;color:#75866b;font:700 10px/1.3 Interface,sans-serif}
.soul-library .necro-inspect{display:block}.soul-inspect-art{height:126px;display:grid;place-items:center;background:radial-gradient(ellipse,#e5edcf88,transparent 72%);margin:0 0 13px}.soul-inspect-art>img{width:150px!important;height:120px!important;object-fit:contain}
.soul-library .necro-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}.soul-library .necro-facts>span{display:grid;grid-template-columns:18px auto;justify-content:center;align-items:center;column-gap:6px;padding:9px 4px;border:1px solid #d5ddc2;border-radius:8px;background:#f4f7eb;min-width:0}.soul-library .necro-facts img{width:17px;height:17px;object-fit:contain}.soul-library .necro-facts b{font:700 13px/1.2 Interface,sans-serif}.soul-library .necro-facts small{grid-column:1/-1;text-align:center;font:9px/1.3 Interface,sans-serif;color:#92967f;margin-top:4px}
.soul-inspect-cost{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:12px 0;padding:10px 0;border-block:1px solid #d9ddc6;font:10px/1.4 Interface,sans-serif;color:#7c8c67}.soul-inspect-cost img{width:18px;height:18px;object-fit:contain}.soul-inspect-note{padding:11px;border:1px solid #d9ddc6;border-radius:9px;background:#f8f7ec}.soul-inspect-note h3{margin:0 0 6px;font:700 12px/1.3 Interface,sans-serif}.soul-inspect-note p{margin:0;font:11px/1.6 Interface,sans-serif;color:#7f8873}
/* Every summon stays in one horizontal row; scrolling consumes no gutter. */
.necro-summon-picker{width:min(420px,calc(100% - 20px));max-height:min(340px,46dvh);padding:12px!important}
.necro-summon-picker .necro-choice-grid,.necro-summon-picker .necro-choice-grid.is-single{display:flex!important;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x proximity;gap:9px;padding:3px 2px 6px;touch-action:pan-x}
.necro-summon-picker [data-necro-option].necro-summon-choice{flex:0 0 142px;display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:60px 26px 45px 18px 24px;gap:5px;padding:8px;text-align:center}
.necro-summon-choice .necro-choice-art{grid-column:1;grid-row:1;height:60px}.necro-summon-choice .necro-choice-art>img{width:80px;height:60px;object-fit:contain}.necro-summon-choice>strong{grid-column:1;grid-row:2;font-size:11px;line-height:1.2}
.necro-summon-choice .necro-facts{display:grid!important;grid-column:1;grid-row:3;gap:3px}.necro-summon-choice .necro-facts>span{height:21px;min-height:0;padding:2px;box-sizing:border-box}.necro-summon-choice .necro-facts small{display:none}.necro-summon-choice>.necro-choice-footer{grid-column:1;grid-row:4}.necro-summon-choice>.necro-choice-action{grid-column:1;grid-row:5;align-self:stretch}

/* Full summoned skins in the soul library, not cropped portrait avatars. */
.soul-library-row{min-height:96px;gap:10px}
.soul-library-portrait{width:76px;height:76px;background:radial-gradient(ellipse,#e0e9ca80,transparent 76%);border-color:#d9dfc9}
.soul-library-portrait img{width:70px;height:70px;object-fit:contain;object-position:center;box-sizing:border-box;padding:3px}
.soul-library .soul-inspect-art{height:158px}
.soul-library .soul-inspect-art>img{width:190px!important;height:150px!important;object-fit:contain;padding:5px;box-sizing:border-box}

/* 09.11.2026 (owner): the favourite star sits in the card corner without a white square; grey when off, gold when on */
.soul-library-favorite{top:4px!important;right:4px!important;width:34px!important;height:34px!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;color:#cfc6a6!important;font:19px/1 Interface,sans-serif!important;text-shadow:0 1px 0 #fff;transition:color .15s,transform .15s;-webkit-tap-highlight-color:transparent;z-index:2}
.soul-library-favorite[aria-pressed="true"]{color:#d29a1e!important;text-shadow:0 1px 0 #fff,0 0 6px rgba(214,160,40,.35)}
.soul-library-favorite:active{transform:scale(.85)}
.soul-library-favorite span{display:block;pointer-events:none}

.necro-inspect .necro-echo-heading{display:flex;align-items:center;justify-content:center;gap:7px}
.necro-inspect .necro-echo-heading img{width:30px;height:30px;object-fit:contain}

/* One ability card for the soul library and a living summon. */
.necro-inspect .necro-ability-panel{padding:14px;text-align:left;border:1px solid #c9d2bc;border-radius:14px;background:linear-gradient(145deg,#f8f8ed,#eef0e2);display:grid;gap:10px}
.necro-inspect .necro-ability-panel>header{display:flex;align-items:center;gap:9px}
.necro-inspect .necro-ability-panel>header img{width:32px!important;height:32px!important;object-fit:contain;flex:none;margin:0}
.necro-inspect .necro-ability-panel h3{margin:0;text-align:left;font-size:15px;line-height:1.3}
.necro-inspect .necro-ability-panel p{margin:0;font:500 12px/1.5 Interface,sans-serif;color:#63745b}
.necro-inspect .necro-ability-panel .necro-echo-order{font-size:11px;color:#7a856f}
.necro-inspect .necro-ability-panel footer{display:flex;flex-wrap:wrap;gap:7px;padding-top:10px;border-top:1px solid #cbd1b8}
.necro-echo-cooldown{display:inline-flex;flex-direction:column;gap:3px;padding:5px 9px;border:1px solid #c8c3a2;border-radius:8px;background:#eee9d6;color:#6b6344;font:700 11px/1.35 Interface,sans-serif}
.necro-echo-cooldown small{font-weight:500;font-size:10px}
.local-dark-screen .necro-inspect .necro-ability-panel{background:linear-gradient(145deg,#2c4050,#243644);border-color:#617b8a}
.local-dark-screen .necro-inspect .necro-ability-panel h3{color:#e0e9e9}
.local-dark-screen .necro-inspect .necro-ability-panel p{color:#c3d1d1}
.local-dark-screen .necro-inspect .necro-ability-panel .necro-echo-order{color:#a6babd}
.local-dark-screen .necro-inspect .necro-ability-panel footer{border-color:#58717c}
.local-dark-screen .necro-echo-cooldown{background:#324a52;border-color:#68868a;color:#c7ded8}

.necro-inspect .soul-inspect-type{display:flex;width:max-content;max-width:100%;align-items:center;justify-content:center;gap:10px;margin:0 auto 10px;padding:6px 12px;border:1px solid #cbd2b7;border-radius:20px;background:#edf0df;font:600 11px/1.3 Interface,sans-serif;color:#617455}
.necro-inspect .soul-inspect-type small{padding-left:10px;border-left:1px solid #cbd2b7;font:500 10px/1.3 Interface,sans-serif}
.necro-inspect .necro-summon-behavior{margin:0 0 13px;padding:9px 11px;border:1px solid #d5d9c2;border-radius:10px;background:#f1f2e7;color:#708065;font:500 11px/1.5 Interface,sans-serif;text-align:center}
.local-dark-screen .necro-inspect .soul-inspect-type{border-color:#617b85;background:#2d4350;color:#c4d6d2}
.local-dark-screen .necro-inspect .soul-inspect-type small{border-color:#617b85}
.local-dark-screen .necro-inspect .necro-summon-behavior{border-color:#566e7e;background:#263b48;color:#b9cbce}
.local-dark-screen .necro-inspect .necro-ability-panel{border:1px solid #617b8a!important;outline:none!important;box-shadow:inset 0 1px #ffffff08!important}
.local-dark-screen .necro-inspect .soul-inspect-art{border:1px solid #617b8a!important;outline:none!important;box-shadow:none!important;border-radius:15px}
.skill-battle-limit{margin:12px 0;padding:11px 0;border-block:1px solid #cbd0b6;color:#667559;font:600 11px/1.5 Interface,sans-serif}
.local-dark-screen .skill-battle-limit{border-color:#5b7481;color:#bfced0}

#hero .hero-technique-detail[data-technique-detail="relic-undeath"]>p{font:12px/1.55 Interface,sans-serif;letter-spacing:normal}
.skill-battle-limit{font:500 12px/1.55 Interface,sans-serif;letter-spacing:normal}
.skill-facts .skill-fact.battle-limit{grid-column:1/-1;background:linear-gradient(#f2e3ca,#e9d8bd);border-color:#b9a17c;text-align:center;padding:11px 12px}
.skill-facts .skill-fact.battle-limit dd{margin:0;font:600 12px/1.5 Interface,sans-serif;color:#765047}
.local-dark-screen .skill-facts .skill-fact.battle-limit{background:linear-gradient(#4b3b40,#3d3038);border-color:#8c6b6d}
.local-dark-screen .skill-facts .skill-fact.battle-limit dd{color:#e4c9c4}
.reader-prose .skill-battle-limit{border-block:1px solid #bca981;padding:10px 0}

.necro-facts .necro-attack-type{grid-column:1/-1;min-height:50px;justify-content:center;gap:4px}

/* Compact attack fact: fixed icon column, readable value and inline label. */
.necro-inspect .necro-facts>.necro-attack-type{display:grid;grid-template-columns:22px max-content minmax(0,1fr);align-items:center;column-gap:8px;grid-column:1/-1;min-height:42px;padding:8px 12px;box-sizing:border-box}
.necro-inspect .necro-facts>.necro-attack-type img{width:22px;height:22px;object-fit:contain;grid-column:1;grid-row:1}
.necro-inspect .necro-facts>.necro-attack-type b{grid-column:2;grid-row:1;font:650 12px/1.3 Interface,sans-serif;white-space:nowrap}
.necro-inspect .necro-facts>.necro-attack-type small{grid-column:3;grid-row:1;margin:0;text-align:right;font:10px/1.3 Interface,sans-serif}
.necro-inspect .soul-inspect-type{gap:12px;padding:6px 12px;line-height:1.4;margin-bottom:12px}
.necro-inspect .soul-inspect-type small{border:0!important;padding:0!important;margin:0;line-height:1.4}
.necro-inspect .necro-echo-cooldown{display:inline-flex;align-items:center;gap:6px;min-height:28px;box-sizing:border-box}
.necro-inspect .necro-echo-cooldown>img{width:13px;height:13px;object-fit:contain}

.soul-library .necro-inspect .soul-inspect-type{display:flex!important;gap:12px!important;align-items:center!important;padding:6px 12px!important;margin:0 auto 12px!important;width:max-content!important;font-size:11px!important}
.soul-library .necro-inspect .soul-inspect-type>b{flex:none;padding:0!important;margin:0!important;line-height:1.4!important}
.soul-library .necro-inspect .soul-inspect-type>small{flex:none;border:0!important;padding:0!important;margin:0!important;font-size:10px!important;line-height:1.4!important}

.necro-ability-panel .necro-passive-footer{display:block}
.necro-ability-panel .necro-passive-badge{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:30px;padding:7px 12px;border:1px solid #bdc9b0;border-radius:8px;background:#e8edde;color:#526951;font:600 11px/1.35 Interface,sans-serif;letter-spacing:normal}
.local-dark-screen .necro-ability-panel .necro-passive-badge{background:#2b423f;border-color:#58736b;color:#c5dcd2}

/* Soul detail: taller sheet with a fixed heading and its own scrolling content. */
.necro-crypt-panel.soul-inspect-panel{display:flex!important;flex-direction:column!important;width:min(440px,calc(100vw - 24px))!important;height:min(940px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)!important;box-sizing:border-box;overflow:hidden!important;padding:16px!important;background:#fffdf3;color:#315d50;border-radius:18px}
.soul-inspect-panel>.modal-header{flex:none;min-height:42px;gap:12px;margin:0 0 12px!important;padding-bottom:12px;border-bottom:1px solid #d6dac5}
.soul-inspect-panel>.modal-header h2{font:700 20px/1.3 Interface,sans-serif;overflow-wrap:anywhere;min-width:0}
.soul-inspect-panel>.modal-header button{width:40px;height:40px;min-height:40px;border-radius:12px}
.soul-inspect-scroll{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px 6px}
.soul-inspect-panel .soul-library-back{display:inline-flex;align-items:center;gap:8px;min-height:36px;margin:0 0 14px;padding:8px 12px!important;border:1px solid #cbd4ba;border-radius:9px;background:linear-gradient(#f2f4e8,#e8eddd);color:#4b6a58;font:600 11px/1.3 Interface,sans-serif;box-shadow:inset 0 1px #fff}
.soul-inspect-panel .soul-library-back:active{box-shadow:inset 0 2px 4px #38544325;transform:translateY(1px)}
.soul-inspect-panel .soul-inspect-art{height:clamp(128px,24dvh,210px);margin-bottom:14px;border-radius:14px}
.soul-inspect-panel .soul-inspect-art>img{width:100%!important;height:100%!important;max-height:210px;object-fit:contain;padding:12px;box-sizing:border-box}
.soul-inspect-panel .necro-inspect>.necro-summon-behavior{font:500 12px/1.55 Interface,sans-serif;padding:10px 12px;margin-bottom:12px}
.soul-inspect-panel .necro-facts{gap:8px}
.soul-inspect-panel .necro-facts>span{border-radius:11px;padding:10px 7px}
.soul-inspect-panel .necro-facts small{font-size:10px;line-height:1.4}
.soul-inspect-panel .necro-facts .necro-attack-type{min-height:42px;padding:8px 12px}
.soul-inspect-panel .soul-inspect-cost{margin:14px 0;padding:12px 0;border-color:#d6dac5;font:500 11px/1.5 Interface,sans-serif}
.soul-inspect-panel .necro-ability-panel{padding:14px;border-radius:13px}
.soul-inspect-panel .necro-ability-panel header{align-items:center;gap:10px}
.soul-inspect-panel .necro-ability-panel header>img{width:32px;height:32px;object-fit:contain;flex:none}
.soul-inspect-panel .necro-ability-panel h3{font:700 14px/1.4 Interface,sans-serif;margin:0}
.soul-inspect-panel .necro-ability-panel p{font:500 12px/1.65 Interface,sans-serif;margin:12px 0;color:#62755f}
.soul-inspect-panel .necro-echo-cooldown{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px;white-space:nowrap;padding:7px 10px;min-height:30px;font:600 11px/1.3 Interface,sans-serif}
.local-dark-screen .necro-crypt-panel.soul-inspect-panel{background:#1b2c38!important;color:#dbe7eb;border:1px solid #66818d}
.local-dark-screen .soul-inspect-panel>.modal-header{border-color:#415d6a}
.local-dark-screen .soul-inspect-panel>.modal-header h2{color:#e0e9ed}
.local-dark-screen .soul-inspect-panel .soul-library-back{background:linear-gradient(#304956,#293e4b);color:#d0dfe0;border-color:#587581;box-shadow:inset 0 1px #ffffff0b}
.local-dark-screen .soul-inspect-panel .soul-inspect-art{background:radial-gradient(ellipse,#344e5b55,#1e303c 75%);border-color:#4d6978}
.local-dark-screen .soul-inspect-panel .necro-facts>span{background:#293e4a!important;border-color:#4d6774!important;color:#d2e3e1!important}
.local-dark-screen .soul-inspect-panel .necro-facts small{color:#afc3c6!important}
.local-dark-screen .soul-inspect-panel .necro-facts b{color:#d1e6e2}
.local-dark-screen .soul-inspect-panel .soul-inspect-cost{color:#b4cad0;border-color:#415d6a}
.local-dark-screen .soul-inspect-panel .necro-ability-panel{background:#263d49!important;border-color:#56727e!important}
.local-dark-screen .soul-inspect-panel .necro-ability-panel h3{color:#dbe8eb}
.local-dark-screen .soul-inspect-panel .necro-ability-panel p{color:#c3d3d8}
.local-dark-screen .soul-inspect-panel .necro-echo-cooldown{background:#30483e;color:#c9e0d1;border-color:#597566}
