.market-image {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    overflow: hidden;
    background: #0d0e15;
}

.market-image--mobile {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.market-image--detail {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
}

.market-image--launch,
.market-image--farming {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border: 1px solid #292a3c;
    border-radius: 4px;
    background: #11121a;
}

.market-image__asset,
.market-image__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.market-image__asset {
    z-index: 2;
    display: block;
    object-fit: cover;
    visibility: hidden;
    opacity: 0;
}

.market-image--loaded .market-image__asset {
    visibility: visible;
    opacity: 1;
}

.market-image__placeholder {
    z-index: 1;
    background: linear-gradient(
        90deg,
        #171825 0%,
        #1f2033 50%,
        #171825 100%
    );
    background-size: 200% 100%;
    border-radius: 2px;
}

.market-image--loading .market-image__placeholder {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.market-image--loaded .market-image__placeholder {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .market-image--loading .market-image__placeholder {
        animation: none;
    }
}
