/* Knightfall artwork Foundry. Concept imagery is used as art previews, not as control labels. */
.kf-art-studio{--art-line:#6e4c73;background:linear-gradient(145deg,#1e1626,#100d17)!important}
.kf-art-heading{display:flex;gap:1rem;align-items:center;justify-content:space-between;border-bottom:1px solid var(--art-line);padding-bottom:1rem}
.kf-art-heading>div{min-width:0}.kf-art-heading h2{font-size:clamp(1.35rem,3vw,2.2rem);color:#f7eff1}
.kf-art-heading img{width:clamp(70px,11vw,130px);height:auto;object-fit:contain;filter:drop-shadow(0 9px 14px #0007)}
.kf-art-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:1rem;margin:1rem 0 1.5rem}
.kf-art-card{min-width:0;padding:.65rem;display:flex;flex-direction:column;gap:.5rem;border:1px solid #70536c;border-radius:14px;background:linear-gradient(150deg,#28202d,#11121e);box-shadow:0 10px 24px #0006}
.kf-art-card img{width:100%;aspect-ratio:4/3;object-fit:contain;background:radial-gradient(circle at 50% 35%,#352035,#130f18 70%);border-radius:9px}
.kf-art-card h3{margin:.3rem .35rem 0;font-size:1.02rem;color:#f6efff}.kf-art-card p{margin:0 .35rem .5rem;font-size:.83rem;line-height:1.55;flex:1}
.kf-art-card a{display:inline-flex;align-items:center;align-self:flex-start;min-height:40px;margin:0 .35rem .35rem;padding:.55rem .75rem;border:1px solid #927597;border-radius:9px;color:#f3e9fa;text-decoration:none}
.kf-art-card a:hover,.kf-art-card a:focus-visible{border-color:#d9ad68;color:#ffe1a3}
.kf-art-uploader{border-top:1px solid var(--art-line);padding-top:.8rem}
.kf-art-uploader h3{color:#f5e5ee}.kf-art-uploader>p{max-width:72ch}
.kf-art-drop{min-height:160px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.45rem;cursor:pointer;border:2px dashed #a36b86;border-radius:14px;background:linear-gradient(135deg,#331d35,#161526);text-align:center}
.kf-art-drop>span{font-size:2rem;color:#ffafd9}.kf-art-drop strong{color:#f7efff}.kf-art-drop small{color:#c6bccb}
.kf-art-drop:hover,.kf-art-drop.is-over,.kf-art-drop:focus-visible{outline:2px solid #d8bc76;outline-offset:2px;border-color:#e3bc88}
.kf-art-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin:.85rem 0}
.kf-art-staged{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,205px),1fr));gap:.7rem;margin:.8rem 0}
.kf-art-item{min-width:0;padding:.7rem;border:1px solid #674b64;border-radius:13px;background:#181420}
.kf-art-item img{width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:8px;background:repeating-conic-gradient(#261f2c 0 25%,#39313d 0 50%) 50%/24px 24px}
.kf-art-item strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f1ebf5;font-size:.84rem}
.kf-art-item small{display:block;color:#c3b4c5;margin:.3rem 0}
.kf-art-item .kf-art-item-actions{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.65rem}
.kf-art-item :is(button,a){min-height:36px;border:1px solid #826586;border-radius:8px;color:#eee4f0;background:#28202f;font:inherit;font-size:.75rem;padding:.45rem .6rem;text-decoration:none;cursor:pointer}
.kf-art-item .kf-art-publish{border-color:#caa576;background:#4b2d43;color:#fff}
.kf-art-item :is(button,a):focus-visible{outline:2px solid #e3bc88;outline-offset:2px}
.kf-art-item button:disabled{opacity:.5;cursor:wait}
@media(max-width:550px){.kf-art-heading{align-items:flex-start}.kf-art-heading img{width:74px}.kf-art-drop{min-height:140px}.kf-art-card img{aspect-ratio:5/4}}


.kf-art-gallery .kf-art-brand img{aspect-ratio:4/3;object-fit:contain;padding:clamp(8px,1.6vw,20px)}
.kf-collection-actions{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}
.kf-collection-actions a{font-size:.78rem}
.kf-collection-subtitle{font-size:1.18rem;margin:1.4rem 0 .3rem;color:#f0d8ea}
.kf-art-sprite-gallery{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));
 gap:.65rem;margin:1rem 0 1.3rem
}
.kf-art-sprite-card{
 min-width:0;display:flex;flex-direction:column;align-items:center;gap:.25rem;
 padding:.55rem;border:1px solid #70546d;border-radius:12px;
 background:linear-gradient(150deg,#261a2f,#11121b)
}
.kf-art-sprite-card canvas{display:block;width:100%;max-width:144px;aspect-ratio:144/164;object-fit:contain}
.kf-art-sprite-card strong{font-size:.76rem;color:#f2e6f2;text-align:center;line-height:1.3}
.kf-art-sprite-card small{font-size:.65rem;color:#bba5bc;text-transform:capitalize}
.kf-art-item .kf-art-submit{border-color:#b18d6f;color:#f9d6a6;background:#30202f}
.kf-art-uploader :is(.kf-art-staged,#kf-art-review) p{color:#cbb8c9;font-size:.84rem}

/* Production crop library: icon previews do not inherit pixelated scaling. */
.kf-relic-card canvas{width:100%;max-width:144px;aspect-ratio:1;background:radial-gradient(circle,#292735,#11121a 76%);image-rendering:auto;border-radius:9px}
.kf-art-sprite-card .kf-relic-export{margin-top:auto;min-height:40px;width:100%;padding:.5rem .6rem;border:1px solid #bc9477;border-radius:9px;background:linear-gradient(145deg,#403044,#24202e);color:#f9e8d3;font:800 .72rem system-ui,sans-serif;cursor:pointer}
.kf-art-sprite-card .kf-relic-export:hover,.kf-art-sprite-card .kf-relic-export:focus-visible{border-color:#ebd2ae;outline-offset:2px}
.kf-relic-gallery{grid-template-columns:repeat(auto-fill,minmax(min(100%,146px),1fr))}

/* Keep the Android system photo picker interactable through its native label,
   without adding a second distracting file field to the Foundry. */
.kf-art-photo-native{
 position:absolute!important;width:1px!important;height:1px!important;
 padding:0!important;opacity:0!important;overflow:hidden!important;
 clip-path:inset(50%)!important;pointer-events:none!important;
}
#site-image-library label[for="kf-art-photo-input"]{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:44px;cursor:pointer;text-align:center;
}
#site-image-library label[for="kf-art-photo-input"]:focus-visible{
 outline:3px solid #79ffe7;outline-offset:3px;
}
