.monster-portrait-image {
    position: absolute;
    left: 50%;
    top: 50%;
    width: auto;
    height: auto;
    max-width: 110px;
    max-height: 110px;
    object-fit: contain;
    transform: translate(-50%, -50%);
}

/* Индивидуальная посадка иконок лесных монстров в боевой карточке. */
.monster-portrait-image.monster-wolf,
.monster-portrait-image.monster-bear,
.monster-portrait-image.monster-eagle,
.monster-portrait-image.monster-boar {
    max-width: 100px;
    max-height: 100px;
}

.monster-portrait-image.monster-gorilla {
    max-width: 110px;
    max-height: 110px;
}

.monster-portrait-image.monster-great_wolf {
    top: 55%;
    max-width: 100px;
    max-height: 100px;
}

.monster-portrait-image.monster-mouse {
    top: 55%;
    max-width: 130px;
    max-height: 130px;
}

/* Индивидуальная посадка иконок пустынных монстров в боевой карточке. */
.monster-portrait-image.monster-scorpion,
.monster-portrait-image.monster-worm {
    max-width: 100px;
    max-height: 100px;
}

.monster-portrait-image.monster-spider,
.monster-portrait-image.monster-cockroach,
.monster-portrait-image.monster-termite,
.monster-portrait-image.monster-bumblebee,
.monster-portrait-image.monster-scarab {
    max-width: 110px;
    max-height: 110px;
}

.monster-portrait-image.monster-scarab {
    top: 60%;
}

.monster-api-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 8px;
    min-height: 126px;
    padding: 10px 11px;
}

.monster-api-card.without-monster-icon {
    grid-template-columns: minmax(0, 1fr);
}

.monster-card-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
}

.monster-card-icon img {
    display: block;
    width: auto;
    height: auto;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.monster-card-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
}

.monster-card-heading strong {
    overflow: hidden;
    color: #e9dfcc;
    font: 700 14px Georgia, serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.monster-card-heading small {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
    color: #c9b98f;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.monster-card-hp-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.monster-card-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
}

.monster-card-rewards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 5px;
    width: min(100%, 150px);
}

.monster-card-rewards > span {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.monster-card-rewards b {
    color: #d9c89e;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.monster-reward-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.monster-api-card.loading-card,
.monster-api-card.api-error-card {
    display: block;
}
