/* V24: Kleidung besitzt ein eigenes Slotlayout, getrennt von der Ausrüstung. */

.inventory-v16-clothing-grid > button {
    position: relative !important;
    overflow: hidden !important;
}

/* Slotname steht immer oben links. */
.inventory-v16-clothing-grid > button > small {
    position: absolute !important;
    top: 5px !important;
    right: 6px !important;
    bottom: auto !important;
    left: 6px !important;
    z-index: 6 !important;
    display: block !important;
    overflow: hidden !important;
    color: #9f8654 !important;
    font-size: 7px !important;
    line-height: 9px !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Der Name des ausgerüsteten Kleidungsstücks steht direkt darunter. */
.inventory-v16-clothing-grid > button > strong {
    position: absolute !important;
    top: 14px !important;
    right: 6px !important;
    bottom: auto !important;
    left: 6px !important;
    z-index: 6 !important;
    display: block !important;
    overflow: hidden !important;
    color: #eee9e1 !important;
    font-size: 8px !important;
    line-height: 9px !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Leere Slots benötigen nur die obere Bezeichnung. */
.inventory-v16-clothing-grid > button:not(.filled) > span {
    position: absolute !important;
    top: 15px !important;
    right: 3px !important;
    bottom: 3px !important;
    left: 3px !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
    background-image: none !important;
    pointer-events: none !important;
}

/* Bei belegten Slots beginnt die Bildfläche unter beiden Textzeilen. */
.inventory-v16-clothing-grid > button.filled > span {
    position: absolute !important;
    top: 24px !important;
    right: 3px !important;
    bottom: 3px !important;
    left: 3px !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: grid !important;
    place-items: center !important;
    pointer-events: none !important;
}

/* Das sichtbare, bereits pixelzentrierte Motiv nutzt die freie Fläche groß aus. */
.inventory-v16-clothing-grid .inventory-v16-centered-slot-image {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 118% !important;
    height: 118% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: center center !important;
    clip-path: none !important;
    mix-blend-mode: normal !important;
}

.inventory-v16-clothing-grid > button:not(.filled) .inventory-v16-centered-slot-image {
    opacity: .28 !important;
    filter: grayscale(1) sepia(.15) contrast(.82) brightness(.72) !important;
}

.inventory-v16-clothing-grid > button.filled .inventory-v16-centered-slot-image {
    opacity: 1 !important;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .72)) !important;
}
