/* My Little Valley 27: scope to collection panel, after ui.css. */
.mlv-collection.panel{width:min(96vw,820px);border:18px solid transparent;border-image:url('../assets/ui/collection/panel_frame.png') 40 fill / 18px stretch;background:#ffedce;background-clip:padding-box;border-radius:0;box-shadow:0 6px 0 #38241765;color:#543a24}
.mlv-collection .panel-head{border:0;padding:5px}
.mlv-collection .panel-close{background:transparent url('../assets/ui/collection/close_button.png') center/100% 100%;border:0;box-shadow:none}
.mlv-collection .panel-close img{visibility:hidden}
.mlv-collection .panel-body{padding:6px;min-height:0}
.mlv-col-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:4px 0 12px}
.mlv-col-tabs button{flex:1;min-width:76px;background:url('../assets/ui/collection/tab_normal.png') center/100% 100%;border:0;box-shadow:none;padding:8px 5px;color:#573a24}
.mlv-col-tabs button[aria-pressed="true"]{background-image:url('../assets/ui/collection/tab_selected.png')}
.mlv-col-tabs img{width:24px;height:24px;image-rendering:pixelated;vertical-align:middle}
.mlv-col-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:10px}
.mlv-col-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;align-content:start}
.mlv-col-slot{aspect-ratio:1;position:relative;background:url('../assets/ui/collection/slot_normal.png') center/100% 100%;border:0;min-width:0;padding:8px;display:grid;place-items:center}
.mlv-col-slot[aria-pressed="true"]{background-image:url('../assets/ui/collection/slot_selected.png')}
.mlv-col-slot img{width:85%;height:auto;max-width:56px;image-rendering:pixelated}
.mlv-col-slot[data-found="false"] img{opacity:.72}
.mlv-col-slot .mlv-new{position:absolute;top:3px;right:3px;width:20px;height:20px}
.mlv-col-detail{padding:9px;border:12px solid transparent;border-image:url('../assets/ui/collection/row_normal.png') 20 fill / 12px stretch;min-width:0}
.mlv-col-detail .mlv-col-item{display:block;width:80px;height:80px;object-fit:contain;image-rendering:pixelated;margin:0 auto}
.mlv-col-progress{display:block;width:100%;height:12px;appearance:none;accent-color:#8eaf47;background:#f7e6bf;border:2px solid #9d6c35;border-radius:6px;overflow:hidden}
.mlv-col-progress::-webkit-progress-bar{background:#f7e6bf}
.mlv-col-progress::-webkit-progress-value{background:#8eaf47}
.mlv-col-progress::-moz-progress-bar{background:#8eaf47}
.mlv-col-slot:focus-visible,.mlv-col-tabs button:focus-visible{outline:2px solid #855426;outline-offset:2px}
.toast.mlv-discovery-toast{border:12px solid transparent;border-image:url('../assets/ui/collection/row_highlight.png') 20 fill / 12px stretch;background:transparent;color:#543a24}
@media(max-width:540px){.mlv-collection.panel{width:calc(100vw - 12px - var(--sal,0px) - var(--sar,0px));border-width:9px;border-image-width:9px}.mlv-col-layout{grid-template-columns:1fr}.mlv-col-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.mlv-col-slot{padding:6px}.mlv-col-tabs button{min-width:70px}.mlv-col-detail{border-width:8px;border-image-width:8px}}
@media(prefers-reduced-motion:reduce){.toast.mlv-discovery-toast{animation:none}}
