/* Art-first collection cards. Inspect by hover, keyboard focus or tap. */
.collection-preview{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;min-width:0;min-height:0!important;padding:8px 0 16px!important;border:0!important;background:none!important;box-shadow:none!important;color:#e8e9dc;cursor:pointer;text-align:center}
.collection-preview:focus-visible,.relic-item:focus-visible{outline:2px solid #8fcf91!important;outline-offset:4px}
.collection-preview .collection-name{display:block;font:600 27px/1.15 'CK Titles',Georgia,serif;white-space:normal;overflow-wrap:break-word;max-width:100%;color:#e8e9dc}
.inspect-mark{position:absolute;right:0;top:6px;display:grid;place-items:center;width:21px;height:21px;border:1px solid #c6a76180;border-radius:50%;font:italic 13px Georgia;color:#c6a761;background:#101713c9}
.hero-card .collection-preview{flex:1}
.hero-card .hero-portrait{height:192px!important;min-height:192px!important;margin:4px 0!important;width:100%}
.hero-card .hero-portrait .ck-sheet-portrait{transform:scale(1.3);transform-origin:center center}
.hero-card .hero-ascension-badge{align-self:center;margin:0 0 12px}
.hero-card .hero-card-top{justify-content:space-between}
.hero-card .hero-actions{margin-top:12px}
.pet-card .collection-preview{flex:1;padding:0 0 12px!important;gap:10px}
.pet-card .pet-art{height:126px;min-height:126px}
.pet-card .pet-art .ck-pet-portrait{transform:scale(1.35);transform-origin:center}
.pet-card .collection-name{font-size:25px}
.pet-card-top span{cursor:default}
.pet-card>button:not(.collection-preview){flex:none}
.relic-layout{display:block}
.relic-inventory{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.relic-item{position:relative;display:flex;flex-direction:column;justify-content:flex-start;text-align:center;gap:12px;padding:18px 14px;min-height:230px}
.relic-item .artifact-art{width:122px;height:122px;flex:none}
.relic-item>span:not(.artifact-art){display:flex;flex-direction:column;align-items:center;width:100%;gap:6px;flex:1}
.relic-item b{font-size:24px;margin:0;line-height:1.15;overflow-wrap:break-word}
.relic-item small{font-size:10px}.relic-item em{margin-top:auto;padding-top:4px;font-size:11px}
.collection-tooltip{position:fixed;z-index:1200;box-sizing:border-box;width:300px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:20px;border:1px solid #c6a761;background:#101d16;box-shadow:0 12px 36px #000a;color:#e8e9dc;border-radius:3px;pointer-events:auto}
.collection-tooltip .collection-detail-art{display:none}
.collection-detail-tag{display:block;font-size:10px;letter-spacing:1px;color:#c6a761;line-height:1.5}
.collection-tooltip h2{font:26px/1.15 'CK Titles',Georgia;margin:8px 0 12px}
.collection-tooltip p,.collection-detail-dialog p{font-size:13px;line-height:1.6;color:#c8d3c5;white-space:normal;overflow-wrap:break-word}
.collection-tooltip dl,.collection-detail-dialog dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.collection-tooltip dl>div,.collection-detail-dialog dl>div{padding:10px;background:#233025;min-width:0;border:1px solid #c6a76130}
.collection-tooltip dt,.collection-detail-dialog dt{font-size:10px;color:#a9b5aa;line-height:1.5}
.collection-tooltip dd,.collection-detail-dialog dd{font:21px/1.3 'CK Titles',Georgia;margin:5px 0 0;overflow-wrap:break-word}
.collection-note{font-size:11px!important;color:#a9b5aa!important}
.collection-detail-art{height:200px;display:flex;align-items:center;justify-content:center;margin:0 0 18px}
.collection-detail-art .ck-sheet-portrait{transform:scale(1.15)}
.collection-detail-art .ck-pet-portrait{transform:scale(1.5)}
.collection-detail-dialog h2{margin:10px 0 16px!important}
.collection-detail-dialog>.close{z-index:5;background:#101713ed!important;border:1px solid #c6a76180!important;color:#e8e9dc!important;border-radius:3px}
.collection-detail-dialog>.close .control-art{display:block!important;width:18px!important;height:18px!important;stroke:currentColor}
#relic-dialog .relic-detail{position:static;top:auto;border:0;padding:0;background:none;max-width:100%;min-width:0}
#relic-dialog .relic-detail-head{grid-template-columns:124px minmax(0,1fr);margin:10px 0 20px}
#relic-dialog .relic-detail-head .artifact-art{width:124px;height:124px}
#relic-dialog .relic-detail h3{font-size:30px}
#relic-dialog .relic-detail .relic-effect{font-size:14px}
@media(hover:hover) and (pointer:fine){.collection-preview:hover .collection-name{color:#cde8b9}.collection-preview:hover .inspect-mark{color:#101713;background:#8fcf91;border-color:#8fcf91}.relic-item:hover{border-color:#c6a761}}
@media(max-width:900px){.relic-inventory{grid-template-columns:repeat(3,minmax(0,1fr))}.relic-item{padding:14px 10px}.relic-item .artifact-art{width:104px;height:104px}.relic-item b{font-size:22px}}
@media(max-width:599px){
 .collection-preview .collection-name{font-size:27px}.hero-card .hero-portrait{height:200px!important;min-height:200px!important}
 .pet-card .collection-name{font-size:21px}.pet-card .pet-art{height:112px;min-height:112px}
 .relic-inventory{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.relic-item{min-height:220px;padding:14px 9px}.relic-item b{font-size:21px}.relic-item .artifact-art{width:96px;height:96px}
 #relic-dialog .relic-detail-head{grid-template-columns:90px minmax(0,1fr);gap:12px}#relic-dialog .relic-detail-head .artifact-art{width:90px;height:90px}#relic-dialog .relic-detail h3{font-size:24px}
 .collection-detail-art{height:180px}.collection-detail-dialog dd{font-size:19px}
}
@media(max-width:359px){.relic-inventory{grid-template-columns:minmax(0,1fr)}}
