
#screen-zoo .panel.card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: calc(var(--menu-height) + var(--menu-gap) + 18px);
}

#zooList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 6px;
}

.animal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    background: linear-gradient(180deg, rgba(37, 50, 88, 0.56) 0%, rgba(26, 37, 68, 0.66) 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.animal-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.animal-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 6px 14px rgba(0,0,0,0.12);
}

.animal-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.14));
}

.animal-text {
    min-width: 0;
    flex: 1 1 auto;
}

.animal-name {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.05;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.animal-desc,
.animal-owned {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.84);
    overflow-wrap: anywhere;
}

.animal-owned {
    margin-top: 3px;
    font-weight: 800;
    color: #d9f6b2;
}

.animal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 196px;
    min-width: 196px;
    flex-shrink: 0;
}

.animal-actions button {
    min-width: 0;
    border: none;
    border-radius: 14px;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.animal-actions button:active {
    transform: scale(0.97);
}

.animal-actions button:first-child {
    color: #ffffff;
    background: linear-gradient(180deg, #41cf88 0%, #23a86b 100%);
    box-shadow: 0 8px 16px rgba(39, 185, 110, 0.22);
}

.animal-actions button:last-child {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(92, 109, 162, 0.96) 0%, rgba(66, 82, 128, 0.96) 100%);
    box-shadow: 0 8px 16px rgba(19, 29, 58, 0.22);
}

.animal-actions button:hover {
    filter: brightness(1.03);
}

@media (max-width: 640px) {
    #screen-zoo .panel.card {
        padding-bottom: calc(var(--menu-height) + var(--menu-gap) + 16px);
    }

    .animal-row {
        gap: 12px;
        padding: 11px;
    }

    .animal-icon {
        width: 58px;
        height: 58px;
        border-radius: 14px;
    }

    .animal-icon img {
        width: 46px;
        height: 46px;
    }

    .animal-name {
        font-size: 16px;
    }

    .animal-desc,
    .animal-owned {
        font-size: 12px;
    }

    .animal-actions {
        width: 180px;
        min-width: 180px;
        gap: 7px;
    }

    .animal-actions button {
        min-height: 40px;
        font-size: 12px;
    }
}

@media (max-width: 520px) {
    #screen-zoo .panel.card {
        padding-bottom: calc(var(--menu-height) + var(--menu-gap) + 14px);
    }

    .animal-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 11px;
        border-radius: 18px;
    }

    .animal-left {
        align-items: center;
        gap: 10px;
    }

    .animal-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .animal-icon img {
        width: 44px;
        height: 44px;
    }

    .animal-name {
        font-size: 15px;
    }

    .animal-desc,
    .animal-owned {
        font-size: 12px;
    }

    .animal-actions {
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .animal-actions button {
        min-height: 40px;
        border-radius: 12px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    #screen-zoo .panel.card {
        padding-bottom: calc(var(--menu-height) + var(--menu-gap) + 12px);
    }

    .animal-row {
        padding: 10px;
        border-radius: 16px;
    }

    .animal-left {
        align-items: flex-start;
    }

    .animal-icon {
        width: 52px;
        height: 52px;
    }

    .animal-icon img {
        width: 40px;
        height: 40px;
    }

    .animal-name {
        font-size: 14px;
    }

    .animal-desc,
    .animal-owned {
        font-size: 11px;
    }

    .animal-actions {
        grid-template-columns: 1fr;
    }

    .animal-actions button {
        min-height: 38px;
        font-size: 12px;
    }
}