.gallery.residents{grid-template-columns:repeat(auto-fill,minmax(175px,1fr))}
.residents .npc-art{height:180px}
.npc-art{display:grid;place-items:center}
.npc-model{display:block;position:relative;font-size:4px;width:16em;height:32em;filter:drop-shadow(0 5px 3px #25193229)}
.npc-model i,.npc-model .head:after{position:absolute;background-image:var(--skin);background-size:64em calc(var(--height)*1em);image-rendering:pixelated}
.npc-model .head{left:4em;width:8em;height:8em;background-position:-8em -8em}
.npc-model .head:after{content:'';inset:0;background-position:-40em -8em}
.npc-model .body{left:4em;top:8em;width:8em;height:12em;background-position:-20em -20em}
.npc-model .arm,.npc-model .leg{width:4em;height:12em}
.npc-model .arm{top:8em;left:0;background-position:-44em -20em}
.npc-model .leg{top:20em;left:4em;background-position:-4em -20em}
.npc-model .arm.right{left:12em}
.npc-model .leg.right{left:8em}
.npc-model .right{transform:scaleX(-1)}
.npc-layout{display:grid;grid-template-columns:minmax(215px,1fr) minmax(0,2fr);gap:20px;align-items:start}
.npc-layout .npc-art{height:300px}
.npc-profile .npc-model{font-size:8px}
.npc-back{display:block;margin-top:18px}
.npc-layout .shop{min-width:0;padding:clamp(12px,2vw,28px)}
.shop h2{margin:0}
.shop small{display:block;margin:12px 0 20px;line-height:1.7}
.mc-box{background:#c6c6c6;border:3px solid #161616;border-radius:5px;padding:12px;box-shadow:inset 3px 3px white,inset -3px -3px #555;color:#353535}
.mc-title{font:bold 17px monospace;margin:0 0 10px}
.mc-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr))}
.mc-grid .slot{display:grid;place-items:center;position:relative;aspect-ratio:1;width:100%;min-width:0;padding:0;border:0;border-radius:0;background:#8b8b8b;box-shadow:inset 2px 2px #373737,inset -2px -2px white}
.mc-grid button.slot:is(:hover,:focus-visible){background:#ccc;cursor:pointer}
.mc-grid button[aria-pressed=true]{outline:2px solid white;outline-offset:-3px}
.slot>img,.slot>.pixel{width:77%;height:auto;aspect-ratio:1;object-fit:contain;image-rendering:pixelated;filter:none;margin:0}
.slot>.pixel{position:relative}
.slot .pixel>*{position:absolute;inset:0;width:100%;height:100%}
.slot.pane:before{content:'';width:64%;height:68%;background:linear-gradient(135deg,transparent 30%,#ffffff24 30% 35%,transparent 35% 43%,#ffffff18 43% 47%,transparent 47%),#393939;border:2px solid #191919}
.slot.pane.blue:before{background:#76c7ec;border-color:#318cb5}
.mc-chest{width:70%;height:69%;border:2px solid #37230d;background:linear-gradient(#ba792e 30%,#402608 31% 40%,#ad6724 41%);box-shadow:inset 2px 2px #e2a451;display:grid;place-items:center}
.mc-chest:before{content:'';width:18%;height:32%;background:silver;border:1px solid #333}
.mc-tip{width:fit-content;max-width:100%;padding:10px 13px;background:#100010fa;border:2px solid #140920;box-shadow:inset 0 0 0 2px #48139a;color:white;font:16px/1.48 monospace;white-space:pre-wrap;text-shadow:1.5px 1.5px #19151b;overflow-wrap:anywhere}
.mc-tip span{color:var(--dark,inherit)}
.mc-tip .lore-line{padding:0;margin:0;border:none}
.mc-tip .lore-gap{height:.85em}
.mc-name{margin-bottom:5px}
.mc-tip.floating{position:fixed;z-index:90;pointer-events:none;max-width:min(420px,92vw);max-height:90vh;overflow:hidden;width:max-content}
.slot-info .more{margin-top:14px}
@media(max-width:800px){
 .npc-layout{grid-template-columns:minmax(0,1fr)}
 .npc-layout .npc-art{height:166px}
 .npc-profile .npc-model{font-size:4px}
 .mc-box{padding:8px}
 .mc-tip{font-size:14px}
}
@media(max-width:480px){.gallery.residents{grid-template-columns:repeat(2,minmax(0,1fr))}}
.npc-model[style*="--height:64"] i:not(.head){background-image:var(--skin),var(--skin);transform:none}
.npc-model .body{background-position:-20em -36em,-20em -20em}
.npc-model .arm.left{background-position:-44em -36em,-44em -20em}
.npc-model .arm.right{background-position:-52em -52em,-36em -52em}
.npc-model .leg.left{background-position:-4em -36em,-4em -20em}
.npc-model .leg.right{background-position:-4em -52em,-20em -52em}
