/* Styles related to enemy layout and positioning */
.enemy-container {
    display: flex;
    flex-wrap: nowrap; /* enemies DO NOT wrap on mobile */
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    min-height: 200px;
}

.enemy-container > * {
    flex: 1 1 0;
    min-width: 0;
}

.enemy-tile {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.5rem;
    margin: 0.25rem;
    display: flex;
    align-items: stretch;
    justify-content: center;
    border: 2px dashed var(--mud-palette-lines-default);
    border-radius: 0.5rem;
    box-sizing: border-box;
    transition: opacity 0.25s ease-in-out;
}

.enemy-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.enemy-stack {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
}

.enemy-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1 1 auto;
    width: 100%;
}

.status-area {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin-right: 0.25rem;
    gap: 0.25rem;
    height: 100%;
}

.enemy-tile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.enemy-tile .mud-image {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
}

.dead {
    opacity: 0 !important;
}

@media (pointer: coarse) {
    .enemy-container {
        min-height: 150px;
        padding-top: 0 !important;
    }

    .enemy-tile .mud-image {
        max-height: 64px;
    }
}

@media (orientation: landscape) and (pointer: coarse) {
    .enemy-container {
        min-height: 120px;
        padding-top: 0 !important;
    }

    .enemy-tile .mud-image {
        max-height: 48px;
    }
}
