/* Original transparent game sprites: preserve their colours and proportions. */
body img:is([data-item-hd],[src*="/public/assets/images/items/"]) {
    object-fit: contain !important;
    image-rendering: auto !important;
    mix-blend-mode: normal !important;
}

/* A fixed image height used to enlarge even 32px items in Secret. Keep the
   surrounding frames, while letting each sprite retain its intrinsic size. */
body.secret-theme :is(#secret-cms, .sc-commerce) :is(.sc-shop-tile,.sc-item) img:is([data-item-hd],[src*="/public/assets/images/items/"]) {
    width: auto !important;
    height: auto !important;
    max-width: calc(100% - 12px) !important;
    max-height: 105px !important;
    flex: 0 1 auto;
}
body.secret-theme :is(#secret-cms, .sc-commerce) .sc-item img:is([data-item-hd],[src*="/public/assets/images/items/"]) { max-height: 79px !important; }
body.secret-theme :is(#secret-cms, .sc-commerce) .sc-shop-detail__image img:is([data-item-hd],[src*="/public/assets/images/items/"]) {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 112px !important;
}
body.secret-theme :is(#secret-cms, .sc-commerce) .sc-lot__image img:is([data-item-hd],[src*="/public/assets/images/items/"]) {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 102px !important;
}
body.secret-theme :is(#secret-cms, .sc-commerce) img.sc-detail__image:is([data-item-hd],[src*="/public/assets/images/items/"]) {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 205px !important;
    margin-inline: auto;
}
