/*
 * W9_SR_GAME_ARTWORK_EXACT_VIEWPORT_V5
 *
 * Probe-confirmed source geometry:
 *
 * card          = 160px
 * image wrapper = 152x152
 * source image  = absolute p-2
 *
 * Source currently leaves height:auto, producing ~152x107
 * for 287x193 artwork.
 *
 * Fix only the actual game artwork element.
 */

.game-icon-size > .relative.mb-3 {
    overflow: hidden !important;
}

/*
 * Tailwind p-2 remains intact.
 * border-box makes the padded image occupy the complete
 * 152x152 wrapper without spilling over the cabinet.
 */
.game-icon-size > .relative.mb-3 >
img.absolute.p-2[src*="/image/gameIcon/"] {
    box-sizing: border-box !important;

    position: absolute !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: cover !important;
    object-position: center center !important;
}

/*
 * Provider logos are not game artwork.
 */
img[src*="/image/platform/"] {
    object-fit: contain !important;
    object-position: center center !important;
}
